<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hafiz Hussain on Medium]]></title>
        <description><![CDATA[Stories by Hafiz Hussain on Medium]]></description>
        <link>https://medium.com/@hhafizhussain?source=rss-64a504b05c3a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*jmdTQ4h_ubXpJiOGnnM2fg.jpeg</url>
            <title>Stories by Hafiz Hussain on Medium</title>
            <link>https://medium.com/@hhafizhussain?source=rss-64a504b05c3a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:57:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hhafizhussain/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My YouTube channel]]></title>
            <link>https://hhafizhussain.medium.com/my-youtube-channel-efb752bfeb38?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/efb752bfeb38</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 17:59:53 GMT</pubDate>
            <atom:updated>2023-12-06T17:59:53.729Z</atom:updated>
            <content:encoded><![CDATA[<h2>I created a YouTube channel and started publishing useful quotes from different books of all genre. Following is the link of the my channel.</h2><p><a href="https://youtube.com/@BookAbstract-bt2bt?feature=shared">Book Abstract</a></p><h2>Please like share and subscribe.</h2><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efb752bfeb38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Couchbase — An alternative to Redis or MongoDB?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://hhafizhussain.medium.com/couchbase-an-alternative-to-redis-or-mongodb-e4edfeaa4de8?source=rss-64a504b05c3a------2"><img src="https://cdn-images-1.medium.com/max/648/1*2KQ8oqs8P4llH3idiq69Yg.png" width="648"></a></p><p class="medium-feed-snippet">&#x201C;Redis for Caching and MongoDB for NoSQL, these are the de facto tech stacks come to our mind&#x201D;</p><p class="medium-feed-link"><a href="https://hhafizhussain.medium.com/couchbase-an-alternative-to-redis-or-mongodb-e4edfeaa4de8?source=rss-64a504b05c3a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://hhafizhussain.medium.com/couchbase-an-alternative-to-redis-or-mongodb-e4edfeaa4de8?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4edfeaa4de8</guid>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[couchbase]]></category>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Sat, 27 May 2023 16:59:48 GMT</pubDate>
            <atom:updated>2023-05-27T16:59:48.157Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Owasp Top 10]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">I have attempted to pen down Owasp 10 in an abstract level. Following is my understanding and I am planning to write an article for every&#x2026;</p><p class="medium-feed-link"><a href="https://hhafizhussain.medium.com/owasp-top-10-ec21090687c9?source=rss-64a504b05c3a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://hhafizhussain.medium.com/owasp-top-10-ec21090687c9?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec21090687c9</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 20:51:42 GMT</pubDate>
            <atom:updated>2023-03-12T21:12:43.320Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Compare two strings using javascript (nodejs) get uncommon characters count]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Sample input</p><p class="medium-feed-link"><a href="https://hhafizhussain.medium.com/compare-two-strings-using-javascript-nodejs-get-uncommon-characters-count-ad02d735ced0?source=rss-64a504b05c3a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://hhafizhussain.medium.com/compare-two-strings-using-javascript-nodejs-get-uncommon-characters-count-ad02d735ced0?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad02d735ced0</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Wed, 01 Jun 2022 08:59:36 GMT</pubDate>
            <atom:updated>2022-06-01T09:12:07.939Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Two way SSL encryption using nodejs]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://awstip.com/two-way-ssl-encryption-using-nodejs-ba9abc231ab9?source=rss-64a504b05c3a------2"><img src="https://cdn-images-1.medium.com/max/1311/1*L2Zn_dC33w4zjYtJT0-hSQ.png" width="1311"></a></p><p class="medium-feed-snippet">Secure your REST APIs using self signed certificates</p><p class="medium-feed-link"><a href="https://awstip.com/two-way-ssl-encryption-using-nodejs-ba9abc231ab9?source=rss-64a504b05c3a------2">Continue reading on AWS Tip »</a></p></div>]]></description>
            <link>https://awstip.com/two-way-ssl-encryption-using-nodejs-ba9abc231ab9?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba9abc231ab9</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Tue, 30 Nov 2021 16:50:46 GMT</pubDate>
            <atom:updated>2021-12-07T05:54:19.990Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Elasticsearch vs MongoDB — When to use what]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://hhafizhussain.medium.com/elasticsearch-vs-mongodb-when-to-use-what-56c18d3e7620?source=rss-64a504b05c3a------2"><img src="https://cdn-images-1.medium.com/max/865/1*jtosy-XU5mnR8iWZVGGmvg.png" width="865"></a></p><p class="medium-feed-link"><a href="https://hhafizhussain.medium.com/elasticsearch-vs-mongodb-when-to-use-what-56c18d3e7620?source=rss-64a504b05c3a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://hhafizhussain.medium.com/elasticsearch-vs-mongodb-when-to-use-what-56c18d3e7620?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/56c18d3e7620</guid>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[data-storage]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Sat, 29 May 2021 08:57:21 GMT</pubDate>
            <atom:updated>2021-05-29T08:57:21.177Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Abstraction and Reasoning Challenge]]></title>
            <link>https://hhafizhussain.medium.com/abstraction-and-reasoning-challenge-d3b856b9d70d?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3b856b9d70d</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 18:41:31 GMT</pubDate>
            <atom:updated>2020-04-28T18:41:31.513Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Abstraction and Reasoning Challenge</strong></p><p>Kaggle recently announced a competition on AI of a building a system that can think and solve analytical reasoning problems just like a human being solves riddles. Following is the link of the challenge.</p><p><a href="https://www.kaggle.com/c/abstraction-and-reasoning-challenge">Abstraction and Reasoning Challenge</a></p><p>I went through various notebooks published by the users on this challenge trying to achieve the solution by using one of the existing python libraries. Some even spoke about creating a “Domain Specific Language”.</p><p>So far, the AI systems we know is capable of solving problems which it has already seen. But in this case we are expecting the system to solve problems which it has not seen before.</p><p>For eg: If I ask a high school kid to solve the following problem</p><p>1=5</p><p>2=10</p><p>3=15</p><p>4=20</p><p>Then What is 6 = ?</p><p>Any kid who is doing atleast average in Mathematics will answer with 30. Because the kid has actually figured out that the input is multiplied with 5 to get the output. This shows that human brain will react to new problems by finding the relative problems and its solutions it went through earlier.</p><p>But as I told earlier, today’s AI systems are not efficient to solve these kind of problems. So, how do we solve this?</p><p>Here is my approach.</p><p>Firstly, we are going to build a machine that is going to behave like humans.</p><p>Instead of calling this building a machine we should think that we are raising a machine from zero like we raise a baby after it is born. We teach everything we know and it goes to school and it learns many things gradually. I am going to use the same approach.</p><p><strong>Building from the scratch</strong></p><p>Since analytical reasoning could be anything from numeric to analogy to verbal. But only if he knows numbers he would be able to solve arithmetic reasoning problems and should know a language and its vocabulary to solve verbal reasoning. I thought to raise a machine by adding basic to complex numerical capability.</p><p><strong>Automatic Arithmetic Reasoning:</strong></p><p>I started to code in python to achieve this so that when I scale, it would be easy to reuse python frameworks.</p><p>I wrote a simple program that will derive the relationship between two numbers and does it iteratively for many set of numbers and there by saving the results in memory.</p><p>If one of the relations (adding with 5) matches with other relations in the same iteration, it is considered that the relation is the formula to derive the result. So, whatever the test data is, the result will be exact as it has derived the formula to get outputs.</p><p>For eg: Take the earlier example of 1 = 5, 2 = 10… the relationship between two numbers is nothing but the multiplication of input with the number 5. So our system calculates any input with the formula (multiply with 5) and give the result. Now, for the test data, whatever the number you give, no matter it has seen that number earlier or not, it will give the expected result.</p><p>If the all arithmetic operations are given inside the system, it will be ready to give the answer for any arithmetic reasoning problem.</p><p><strong>Long way to go</strong></p><p>I know it is a small step towards a very long journey but my assumption is this is the easiest approach that will take us there fast.</p><p>Since, I am done with arithmetic reasoning I am currently working on analytical and verbal and combining everything so that any result can be yielded and one day we start interacting with machines and work with machines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3b856b9d70d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Habits to Achieve more]]></title>
            <link>https://hhafizhussain.medium.com/habits-to-achieve-more-ae9d1704f72d?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9d1704f72d</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Thu, 16 Apr 2020 17:11:05 GMT</pubDate>
            <atom:updated>2020-04-16T17:11:05.146Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog is inspired by two books, The power of Habit by Charles Duhigg and 7 Habits of highly effective people by Stephen R. Covey</p><p>I always have in my mind that one day, I will become a corporate Leader, but when I analyzed myself, I realized with my routine I can never be a leader and I wont be able to handle people.</p><p>I am full stack developer and passionate about building products. My day starts and ends with coding and if anything apart from coding I get, I am not ready to take it as coding has been my comfort zone. With just interacting with computers how do I become a people’s leader. That’s when I started focusing much on my weaknesses and thinking how do I strengthen myself. The thought process goes like this.</p><p>I started studying about leaders, especially their day to day life. I understood, there are few things common in their routine and they are very much disciplined about it. I always wonder, how do I become disciplined about something. The only way to do is, make things which you always want to do as your Habits.</p><p>Making something as a Habit is something very difficult. So here is the way I tricked my brain as suggested in the book, The Power of Habit.</p><p>Cue-Action-Reward. When you want something to become your habit, make it as Cue, means you encourage yourself to take action so that if the action is taken you will something is achieved. And once you take action, you reward yourself with something that pleases you.</p><p>21/90 Rule: Whatever you want to make as a habit, do it for three straight weeks, doing the same thing for 21 days becomes a habit. Then If it is continued for another 90 days, it becomes a permanent lifestyle.</p><p>Creating a new Habit is fine, but what are all the habits you need to build to become a leader.</p><p>That is when, the book, “7 Habits of highly effective people” helped me. It is very straight and simple. I am penning it down the 7 habits and its brief explanation how it can be achieved easily.</p><ol><li>Be Proactive and take control of your own fate: Taking responsibility of the situation instead of blaming everything and everyone around.</li><li>Begin with an end in Mind: Visualize you end destiny before even taking the first step, plan and then act.Write a personal mission statement and integrate it into your daily life.</li><li>Put first things first: Rigorously prioritize everything, so that important things are always taken care of first.</li><li>Think win-win — With any deal, always think a win situation for you and your counterpart.</li><li>Seek first to understand, then to be understood: Before explaining things to people and providing them a solution or suggestion, try to understand the whole picture first.</li><li>Synergize by treating others with openness and respect: Synergy means the result where the contribution of many is equal to more than the combined contributions of the individuals. Means, when things combined in a perfect way, one plus one may equals three or more.</li><li>Sharpen the saw, if you want to keep sawing: This is nothing but, keep learning till the time you want to get rewarded.</li></ol><p>These are my observations and probably my action points to become a leader. Hope soon I will become what I want to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9d1704f72d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WFH increased my productivity multifold]]></title>
            <link>https://hhafizhussain.medium.com/wfh-increased-my-productivity-multifold-d123227c1eb7?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d123227c1eb7</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 18:43:43 GMT</pubDate>
            <atom:updated>2020-04-11T18:43:43.718Z</atom:updated>
            <content:encoded><![CDATA[<p>Well, that would be surprising for many people who are struggling to work from home during COVID situation, but it is true that I figured out a way to work from home in a most productive manner.</p><p>I am programmer and technical entrepreneur, I have a team of developers to manage and code myself.</p><p>Like everyone, when I started working sitting at home, I had all the challenges from unable to track time to attending boring meetings. In the first two days of lockdown, I literally did not do anything but sitting in front of my laptop.</p><p>The psychological problem I had was, I am at home and I felt like sleeping and I had disturbance of TV Volume and everything else. There is no surprise that my team members were also going through the same problem. Three days no productivity at all, in turn our client blasted our whole team. I realized, this is an alarm, take some action now or it is going to be never.</p><p>Fourth day, by noon I tried a couple of ways to work which didn’t have any impact.</p><p>At 2 PM, I got a call from my client asking for a very small change that can be developed and implemented in half an hour. Since, I know it is a very simple, easy and small task that I can complete in no time. I completed the task in just twenty minutes and implemented successfully in the next two hours after testing.</p><p>Then I started thinking for a moment, though I all have the priority tasks to complete, how was I able to complete this one?</p><p>The answer is simple, I know the task is small and it can be completed in no time. This made me think that our brain does not get diverted with external influences if we have a very specific task and tiny to do.</p><p>Then I saw the list of items that has to be completed. I figured out each task which already a smaller one can be breakdown in to atleast ten parts and make it as tiny tasks.I did the same and created a revised list not just for me but the entire team and asked my team members to decide how many things they want to complete, but take regular break intervals after every task.</p><p>Even I followed the same, soon after each task that lasted for 30 minutes, I took a 5 min break. On the same day, I was able to see a drastic change in the way we worked. All the team members performed very well. They worked only for 8 hours still the productivity shot up.</p><p>I completed my work so fast that, I had time to think how to do my job better. Now I’m able to do 3X things than before and the same result I got my team as well.</p><p>The technique I used is very simple, I worked for 30 minutes and I took a break and 30 minutes again, sometimes lesser. But only one thing to keep in mind is, if our break interval crosses more than 10 minutes and we take every 30 minutes, then it will get you into trouble.</p><p>There are only two rules to be followed, work just for 30 minutes and take break not more than 10 minutes.</p><p>Please share your stories of Working from Home during Covid. Stay home, Stay Safe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d123227c1eb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Must know for a  Non-Tech  Manager entering a Tech Company.]]></title>
            <link>https://hhafizhussain.medium.com/must-know-for-a-non-tech-manager-entering-a-tech-company-d4523188b8b5?source=rss-64a504b05c3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4523188b8b5</guid>
            <dc:creator><![CDATA[Hafiz Hussain]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 18:07:44 GMT</pubDate>
            <atom:updated>2020-04-11T18:07:44.442Z</atom:updated>
            <content:encoded><![CDATA[<h3>Must know for a Non-Tech Manager entering a Tech Company.</h3><p>One Challenge which product and project managers from non technical background have is to understand developers’ language.</p><p>Following are the common questions that popup in Managers’ mind which I want to address.</p><p>1. Are they asking for a reasonable timeline or they are fooling around?</p><p>2. How do you know if there is actually a technical challenge with something or it can be implemented easily?</p><p>3. How do you know, if you have software frameworks to do things and need to be developed from the scratch?</p><p>4. How do you know if a developer is good at using frameworks or developing from the scratch?</p><p>5. How much time a developer will take to learn a new technology?</p><p>I am sure, in this article, I will be explaining about the technologies used in the life-cycle of a Software.</p><p>It takes 10,000 Hours of practice to become an expert in any domain according to Malcolm Gladwell in his book, Outliers. But here, I am not going to help with mastering a skill but explaining the basics of various technologies so that you understand what is what.</p><p>Firstly, Life cycle of an application: For any application, there are only three stages in the life cycle.</p><ol><li><strong>Front End</strong>: which is something your user see and interact with the user, this could be usually in HTML, CSS, Javascript sometimes .NET. This includes mobile apps also.</li><li><strong>Back End: </strong>This is generally the database where all the data is stored and the technologies are mostly SQL and NoSQL (Mysql, Oracle SQL, MongoDB, etc)</li><li><strong>Middleware: </strong>It is the interface between the Front and Back end. This is vast subject, but in short, the technologies which are commonly used is JAVA for the servers, Nodejs, Python, etc.</li></ol><p>How to start about it? Well, it is very simple.</p><p><strong>Frond End:</strong></p><p>A web application is built with HTML, CSS and Javascript. HTML is for basic website development, for any style from background to complex animation, CSS is used. Whatever the logic we have in the website, it is all Javascript. There is an advanced version of Javascript which reduces lot of pain is called JQUERY.</p><p>For Mobile and Tablet Apps, there are three ways to do it. Native development, which means you develop android app separately and ios app separately. Second is way, hybrid app with Ionic technology, this means, the code will be same for android and ios, only the place you deploy will be different. For Mobile Notifications, Firebase by Google is used predominantly.</p><p>Other commonly used, front end interface is Desktop App, which is nothing but any application installed on your Windows or Apple computers. For Windows it is developed with Microsoft .NET technology called WPF. for Mac, it is developed with technologies called Objective C and Swift.</p><p>Sometimes, front end include complex data presentations like Charts, Tree Structure, Real time tables or any animation as such. All these things are not developed from the scratch, but coders use existing third party libraries like Highcharts (Licensed), D3 Charts (Open Source), Neo JS(Open Source), Telerik (For Windows App Charts, Licensed).</p><p><strong>Back End or Database:</strong></p><p>Traditionally, SQL is used to store and retrieve data, but now in the last 5 years No-SQL and BigData has changed the game. Elastic Search is helpful in retrieving information quicker.</p><p>Most of the Database, like Mysql is free to use, in No-SQL, MongoDB is something which is very easy to deploy. BigData is used when we are dealing with millions of records.</p><p><strong>MiddleWare:</strong></p><p>This is a vast and complex subject, since there are already lot of Technological terms, I will explain in short.</p><p>Most of the large scale applications are developed with JAVA and for a middleware java application to run, we need a mediator between our OS and Application called WebServer, sometimes it is understood as AppServers also.</p><p>The most common WebServers used are, WebSphere, Weblogic, TomCat, JBOSS.</p><p>Other technologies like python, perl, nodejs are also used as Middleware, where nodejs does not require a WebServer as it runs itself.</p><p><strong>Conclusion: </strong>Most of the applications are developed with technologies only. I think it is a good start to just to know the technology names and its purpose in the application life-cycle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4523188b8b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>