<?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 Hari Natrajan on Medium]]></title>
        <description><![CDATA[Stories by Hari Natrajan on Medium]]></description>
        <link>https://medium.com/@hari.zizou?source=rss-b62bf73b97b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LoRAdae1Xm3YgF_r.</url>
            <title>Stories by Hari Natrajan on Medium</title>
            <link>https://medium.com/@hari.zizou?source=rss-b62bf73b97b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 03:34:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hari.zizou/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[Book Summary: Deep Work by Cal Newport]]></title>
            <link>https://medium.com/@hari.zizou/book-summary-deep-work-by-cal-newport-ae5970d34f42?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae5970d34f42</guid>
            <category><![CDATA[cal-newport]]></category>
            <category><![CDATA[book-summary]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[deep-work]]></category>
            <category><![CDATA[concentration]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Sat, 09 Nov 2019 02:30:11 GMT</pubDate>
            <atom:updated>2019-11-09T08:30:07.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*g9ip3fMjbrH5ccuu.jpg" /></figure><p><strong>Title:</strong> Deep Work</p><p><strong>Author:</strong> Cal Newport</p><p><strong>Publisher: </strong>Little, Brown Book Group</p><p><strong>ISBN-10: </strong>9780349413686</p><p><strong>ISBN-13: </strong>978–0349413686</p><p><strong>Buy on: </strong><a href="https://www.amazon.in/Deep-Work-Focused-Success-Distracted/dp/0349413681?tag=httpwwwtheind-21">Amazon.in</a> | <a href="https://www.amazon.com/Deep-Work-Focused-Success-Distracted/dp/0349413681/ref=tmm_pap_swatch_0?tag=harikrishna06-20&amp;_encoding=UTF8&amp;qid=&amp;sr=">Amazon.com</a></p><h3>Introduction</h3><p>In a generation that is constantly distracted by several inputs, either from too many electronic devices or by the constant interruptions of a an open plan work space, Cal Newport is a contrarian emphasising that several hours of work where you are uninterrupted by devices or humans is essential if you want to perform ground-breaking work. In his book Deep Work, he classifies all important work that requires total focus and utmost concentration as deep work or the type of work in which you need to work hard and dive deep down into the depths of your brain or body to find focus and achieve your goals. All other work which keep you busy, but have no significant change in your life, say checking emails, chatting with your colleagues over work and commuting as shallow work.</p><h3>Why deep work?</h3><p>Multi-tasking is a myth. When you perform two tasks at the same time or different tasks rapidly one after the other, we believe that we are being efficient. But the brain is unable to focus effectively on any of the tasks that are being worked on. This is especially true for work that requires concentration, such as writing a book, understanding a report, constructing a software program or even building a piece of furniture. The best things in life and those that make a lot of difference to our lives require pure unadulterated focus, otherwise the results will be a string of sloppy mistakes and forgone deadlines.</p><p>Newport makes the case that the best in their respective fields constantly put themselves out of reach when working on something important. He talks about J K Rowling booking a suite for herself at a five-star hotel in Edinburgh in order to complete the Harry Potter series. He even talks about entrepreneur Peter Shankman, who booked himself a round-trip flight from United States to Japan, and back, in order to complete the manuscript of a book. While the two examples seem extreme, it is clear that the two of them prioritised their work and the ability to work at them completely uninterrupted in order to realise their best quality of effort.</p><h3>Deep work strategies</h3><p>Newport talks about the following four strategies to make deep work easy for you day after day.</p><ol><li>Work deeply: is a set of habits that help you enter your deepest state of focus and stay there by keeping distractions at bay.</li><li>Embrace boredom: is a set of practices that acknowledge that deep work day after day is boring and how you must embrace the process however boring it is.</li><li>Quit social media: is a set of habits that help you cut out distraction from online social media by cutting them out of your life or at least by scheduling them to a meagre part of your day.</li><li>Drain the shallows: is a set of habits that make sure that you set a hard deadline to your work hours, so that you have limited time to achieve what you need to and hence you cut your all shallow work.</li></ol><h3>Work deeply</h3><p>Like most good habits, deep work requires that you schedule a set of habits that will help you work deep everyday. The set of habits you decide for yourself depends on the philosophy of deep work that you believe in. There are four such philosophies:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*A6i1PGDizXuUw-ezfeVX3Q.jpeg" /></figure><ol><li>Monastic: Monastic persons believe in only thing: deep work at all costs. The word comes from the life of monks who are not connected to the outside world from inside a monastery. Nor do they make it easy for someone to reach their monastery quarters easily. Monastic deep work persons are unreachable for most of their lives. Occasionally they reach out to the world on their own accord when the latest work of their deep work is done and they need to share it with the world. This includes several authors whose works are known, but very little is known about their personal lives, since they decline interviews. Several technology companies are obscure until their software is released. Their engineers seem to work in a hermetic life.</li><li>Bimodal: Bimodal people divide their time into seasons or halves. One half of their life is spent alone on deep work, while another is highly social. Professors who work on theses during holiday seasons are incredibly hard to reach during holiday seasons, whereas during the academic year, they are available all the time during college hours. Some company managers spend the first half of the day making business plans and tell their secretaries to put up a ‘Do not disturb’ board, but spend the second half of the day conducting meetings with employees, clients and share-holders.</li><li>Rhythmic: Rhythmic people practise deep work like clockwork. They set a daily routine and prefer to allot a certain block of time every single day for deep work. Their life runs like a time-table with predictable blocks of time allocated to things everyday. Rhythmic approach requires discipline, but is one of the most effective ways to get deep work done. It is easy to follow for freelancers, authors, sculptors and chefs. A little bit done everyday goes on to compound the effects. In this type of approach, the consistency of deep work trumps the amount of time spent. Being a freelancer, I am a devout follower of the rhythmic approach, wherein I have two slots for deep work everyday: 4:30 am to 6:00 am and 1:30 pm to 3:00 pm. My phone has all its notifications switched off and is always on silent mode. So during those 3 to 4 hours, I never look at the phone or any other distractions.</li><li>Journalist: The journalistic approach to deep work is whimsical, but still effective. Whenever the follower of the journalist approach finds a slot of time that he / she knows is guaranteed to be free of distractions, say after his/her kids have gone to sleep or are yet to wake up, this type of person dives in. Free time and down time are also used up for deep work. This approach is mostly due to chance, so nothing can be planned to a deadline. The person can put his/her best effort as soon as a slot becomes available.</li></ol><p>Along with habits, the environment is wildly responsible for our ability to work deep or get distracted. Practitioners of deep work use all the opportunities to prioritise deep work and bust distractions. Locking their door, keep their rooms sparse, explaining others not to disturb them and setting deadlines are some ways in which these people ensure that they reach a deep state and are not disturbed.</p><p>Deep work people also realise that they need to stop when they get too tired of focusing hard. Hence they limit their day to 4–5 hours of deep work only. It’s possible that they have to drop what they are doing today only to work on it tomorrow. It is common to have the work lingering in their brains long after it was left incomplete. This is called Zeigarnik effect. Newport suggests that we take not of things that were left undone and make a plan of what will be done to complete it the next day. Then speak to you yourself a magic phrase such as ‘I am done’, so that your brain is relaxed into thinking that your work for the day is over and that a plan has been made for the next day.</p><h3>Embrace boredom</h3><p>Deep work can get very boring when done for long hours. But it is important not to give into distraction when the urge strikes. This is why it is important to practise deep work every day. Concentration doesn’t occur by will power. It is a skill that must be trained just like your muscles. During the initial days, your mind will wander at every opportunity. But with practice, you will master the act of focusing on a single task at a time, even when it seems boring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*KYXeWrwvtyXFdKwN-kASMw.png" /></figure><p>It is not possible to be free from distractions. So it is better to acknowledge that you need them and should schedule a part of your day to fulfill them. E.g. half an hour every day to check messages, email and social media content. You should not indulge in distractions during any other part of the day.</p><h3>Quit social media</h3><p>Cal Newport is not a member of social media. He has no account anywhere and is happy about it, since he doesn’t have to check for messages like you or I do. Events that he should care about usually reach him through someone. If something doesn’t reach him, then it’s probably not important enough.</p><p>How is he able to stay away from social media like that? Due to his one principle where he evaluates the benefit. If your reason to join and stay connected to social media is vague and does not outline a clear benefit, then you are in it for the wrong reasons. Usually you should have a clear professional purpose for joining and an even clearer reason for checking the content everyday. It should not be due to casual reasons such as presence of friends or family or because everyone else is doing it. After joining, the social media should measurably improve your professional outreach. E.g. in my case, LinkedIn has allowed me to find several projects as a freelance, while YouTube, Twitter and Facebook have helped me share my blogs’s contents and increase engagement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*gMvX2V59xTDWtenJi7coEQ.jpeg" /></figure><p>Newport is not against joining social media for family or friendship, but in that case, your time spent on them should be severely restricted, such as to once every week or month.</p><h3>Drain the shallows</h3><p>Draining the shallows means to set up your deep work time so restrictively such that shallow work cannot creep in. Newport shares the story of a few technology companies which reduced the number of working hours of work per day and even the number of working days per week. They reported no difference in the productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*osY6KqjCkGB3X9ikvWvTRA.jpeg" /></figure><p>During a traditional Mon — Fri, each day being 9–5, employees wasted a lot of time surfing the Internet, catching up on water cooler conversations and taking smoking breaks. However when the number of hours were reduced, they started using those hours more judiciously and came out having achieved the same amount of work that they’d have achieved in a regular work week.</p><p>When you reduce the time you have available for a task and set hard deadlines, your usually distracted brain eliminates the unnecessary things and focuses sharply.</p><p>In addition to your brain’s enhanced focus, here are some more tips that you can follow.</p><ol><li>It is not necessary to schedule any type of shallow work during the work day, e.g. meetings without clear agenda, errands and favours.</li><li>It is not necessary to reply to communication unless explicitly asked for. E.g. an email that says, “Meeting at 2 pm”, doesn’t need a string of replies saying, “Ok”, “I’ll be there”, etc. It is only necessary to reply if you are unable to attend or if re-scheduling is needed.</li><li>Make it a habit to ignore communication with a vague purpose. This will signal to the sender that it is not okay to send messages where the onus of understanding and inference is on the reader. Communication should be such that the reader is able to understand and take action immediately.</li></ol><h3>Conclusion</h3><p>We live in a hyper-connected world today and the management of several companies tout that as a wonderful thing since they can always stay connected to employees, clients and stakeholders. But with such connectivity comes distraction and the loss of focus when working on something important.</p><p>Deep Work provides a contrarian view and a practical one, suggesting that nothing is more important than the hours you spend in isolated focus and achieve all the things that you have set yourself to, even if it comes at the cost of availability to other people.</p><p>We know you love books. We would you like to give two FREE audio books. Grab your trial <a href="https://www.amazon.com/gp/product/B00NB86OYE/?tag=harikrishna06-20">Audible Membership with Two Free Audio Books </a>. Cancel at anytime and retain your books.</p><h3>Published by</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/56/0*30TEn78NW-BVaLAh" /></figure><p><em>Originally published at </em><a href="https://www.wearetheliving.com/book-summary-deep-work-cal-newport/"><em>https://www.wearetheliving.com</em></a><em> on November 9, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae5970d34f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When no UI is the best UI — Tech 101]]></title>
            <link>https://medium.com/@hari.zizou/when-no-ui-is-the-best-ui-tech-101-e701e3bd0191?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e701e3bd0191</guid>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Sat, 19 Oct 2019 02:30:47 GMT</pubDate>
            <atom:updated>2019-11-09T08:19:59.765Z</atom:updated>
            <content:encoded><![CDATA[<h3>When no UI is the best UI — Tech 101</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6J5x7y6w8lZ9tTEu.png" /></figure><p>A couple of years ago, I read the book <a href="https://www.amazon.com/Best-Interface-No-brilliant-technology/dp/0133890333?tag=harikrishna06-20">The Best Interface Is No Interface</a>, by a man who calls himself <a href="https://www.goldenkrishna.com/">Golden Krishna</a>. Mr Krishna is a UI/UX specialist who consults several big companies on how to design their UI. While most UI/UX specialists get paid based on the number of screens / UI components they design, Golden Krishna gets paid based on how many UI components he <em>eliminates</em> from an application. Sounds contradictory, but true. Why?</p><p>This is because the golden boy of UI is eliminating unnecessary work and saving development time for companies. His consult on making less UI and screens is taken seriously and as a result companies make small, light-weight and easy to use applications.</p><p>The book led me to think of so many occasions where companies I worked for could have reduced the number of UI components and the obsessions with their immaculate looks. They could have rather worked to eliminate so many inputs, thereby truly enhancing the user experience. Sure, a user loves to look at well-designed screens, colours and fonts. Yes, people love to drool at any device with the prefix ‘i’, because they look great. But the drooling and admiration have a limit. Beyond that limit, the user feels annoyed. They hate having to look at and swipe through a huge deck of screens and typing or selecting inputs in them. In the end, they’d prefer not having to interact with a device’s screen. They’d rather have devices and applications that have few or no screens, but still make their work simple.</p><p>In this post, I offer some tips to steer clear of multiple screens that the user has to wade through.</p><p><strong>Use the device’s sensors when available.</strong></p><p>You must have surely come across apps and websites that start with a set of questions that make you roll your eyes. Please choose your country, please enter your city, please drop a pin on the map… and so on. Screen after screen goes before you can get to what you opened the application for. It can be exasperating.</p><p>If getting the user’s current location is the goal, it is better to assume that the user is ready to share his/her location readily. Most people talk about user privacy, but only the paranoid ones see location detection as a genuine threat. They’d rather have the device work out where they are.</p><p>Instead of a deck of screens, detect the user’s location and present a reasonable estimate directly on the screen where the user wants to start his/her work. E.g. if you are showing the user the nearest fuel stations, then pick his / her location and start the application on the map page already.</p><p>If the user hasn’t provided access to location detection, then you should first ask for permission. Only if one of two things happen should you revert to the deck of input screens. The first is if the user refuses permission for using sensors. The second option should be on the home screen of the app. If the wrong location was detected, then a button such as ‘No, this is not where I am’, should take the user to the deck of screens, so that he/she can override the sensor.</p><p>This should be true for all sensors. If you are the author of a sports app, you should be detecting walking, running, swimming, riding, etc. through the app without having to prompt the user. This is where Google Fit has an edge over an app such as Endomondo. Although Endomondo’s statistics are more accurate and the app is more engaging, I find it a pain to have to start the app and key in some inputs before I can start my workout. Google Fit automatically records everything and lets me change things in the recorded information later. If I want, I can suppress Google Fit from recording things. This is true for most fitness bands too.</p><p><strong>Integrate with an interface that the user is habituated to.</strong></p><p>Vodafone India has been sending me on a multi-screen chase for the last few years. Recently they upped the ante to annoy me even further. Here is the story.</p><p>Vodafone regularly sends me the latest bill for my postpaid phone connection. The payment is automated through my bank. Whenever my bank makes the scheduled monthly payment, I receive an email and an SMS from the bank that a certain amount was debited for my connection. Vodafone doesn’t reveal a clue on whether they received the payment or not.</p><p>So, what do I do? Here’s what my workflow used to be. Giving my bank and Vodafone 3 days to settle the dues, I would log into my account on Vodafone’s website. On the website it usually showed that the payment was successful. Phew! So much to verify whether Vodafone received payment. But wait, it doesn’t end there.</p><p>One fine day towards the end of 2019, Vodafone’s website presented me with a screen that said that ‘Manage Account’ section was moved to the mobile app! What? I need to download your app from the Play Store so that you will show me if you have received your dues? With a huge sigh and seeing no other option, I installed their app. An app? Yes, you know, a piece of software with MORE SCREENS.</p><p>At the least, Vodafone can courteously send me a communication on an interface I already use everyday as a habit, say an email or an SMS. Instead, they make me download an app and wade through screens just to see if I have successfully paid their monthly bill!</p><p>Don’t be Vodafone! Whenever possible, integrate into a user’s daily habit instead of sending them to more apps, more screens and more inputs. Are you a newspaper? Send the salient news articles directly to the user’s inbox. Don’t expect him/her to log into your website or open your app everyday. The user may be reading 4–5 newspapers. Don’t make them open a new deck of screens for each until they really need a new screen. Think about it. Do you want vanity metrics like more eyeballs on an app screen or real metrics like more satisfied users using your service?</p><p><strong>Don’t make motorists look away from the road.</strong></p><p>While looking at more screens for the above two points are simply annoyances, doing so for this point is dangerous. Stop making motorists look at your app’s screens while driving. But why won’t they pull over to the kerb and look at my app? You see, those who drive a car are usually bound to momentum and wouldn’t want to stop their vehicle and pull over just to respond to more screens in an app. An illusion of multitasking makes them use your application and drive at the same time.</p><p>I loved Waze app, but stopped using it after 2014. Everytime I wanted to contribute something to the app, such as a road block or an accident, I’d have to peel my eyes off the road and tap away on a couple of screens to make entries. It was perilous for me and for others on the road. Waze didn’t have elegant solutions like, “Ok Waze, there is roadblock 100 metres ahead”. “Ok, marking a roadblock 100 metres ahead.”</p><p>When engaging with a motorist, try to use voice control, speech detection, hand gestures, etc. If the application is going to run on a device inside the car instead of a smartphone / tablet, then consider making extra knobs / buttons on the dashboard and engaging with the car’s circuitry using hardware protocols such as CAN (Controller Access Network).</p><p><strong>Don’t offer help unless asked for.</strong></p><p>My fingers are pointed towards all the apps that shove an overlaid help section down the user’s throats. The user lifts a finger to use the app when suddenly, a set of overlays start floating over the very buttons, tabs and inputs that the user wants to use. This menu does this, this button does this and so on. The user, who isn’t looking for help, starts tapping and swiping away to make the annoying floating text and shapes go away, but the sequence of help tips doesn’t seem to end. After eternity, the user is allowed to do his/her work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*1QOTwf5-RbVlX1Xt.png" /></figure><p>What if your app simply had a link or a button named ‘May I help you?’ in prominent colours and font, but still out of the user’s way? Application design, whether web or app, follows a standard layout these days and most users, especially millennials, just get it.</p><p><strong>Offer the very basic features without authentication.</strong></p><p>Only a certain category of apps require that you log in as the first thing to be able to access the features. Banking is a legitimate example. Online shopping is not and in fact, all shopping apps get it right. You can always browse through products without having to log in. It is only when you need access to a shopping cart that you are asked to log in. In fact, some shopping applications maintain the shopping cart throughout a browsing session without asking the user to log in. Only the payment stage is used for authentication. The application lets the user work by moving out of the way until the user wants to access a service specific to him / her.</p><p>One example of an application which doesn’t get the design right is the Indian Railways ticket booking application, IRCTC ticketing. Ideally, I would want to search for trains and ensure that berths are available before I choose to even login. If no seats / berths are available, I’d just close the application and move on.</p><p>Another caveat of this approach, where I have to log in even to search, is that the pages are not indexable by Google. If I were to search for a train number or name on Google, Google is unable to show IRCTC’s results for the train and take me directly there. So what’s the consequence. I need to open IRCTC’s app or website first and go through their screens to find my preferred train.</p><p>In contrast, search results for a product or a destination from Amazon shopping and MakeMyTrip appear directly on Google’s search results and I can jump right to the page where I can view product / service information and buy.</p><p><strong>Avoid a screen at all if possible.</strong></p><p>Do you even require a device with a screen for the job? Devices like FitBit, Nest, Alexa and Google Home have worked for nearly a decade without a physical screen. Sure you need a device with a screen to configure them, but most of the configuration is one-time or once in a while.</p><p>Voice control, WiFi signals, Bluetooth signals, sensors and speakers are all it takes to control these devices. The user hardly looks up from what he / she is doing. The working of these devices is triggered by time schedules, voice commands or even through one service talking to another via a system such as IFTTT.</p><p>RFID chips, Bluetooth Low Energy beacons, GPS and technologies like ZigBee have been used extensively by several companies to make their systems aware of someone or something’s location and context. Chips are fitted to products, to the trucks that ship them, to the clothes of persons or animals who are being tracked and to gates and portals which need to track what’s going on between them. Why use standard screens with credentials for authentication when one can use biometrics such as iris scan or fingerprint scan?</p><p>Today, we are in a world where proactive technology is more pervasive than ever before and they should be in charge of inputs. Why should we still make applications where the user needs to navigate screens and enter tons of information himself/herself?</p><p>We were excited in the end of 1990s when we left the world of command line terminals and entered the world of pervasive GUI. Then came capacitive touchscreens which made mobile phones easy to use, without having to tap away on buttons on an old Nokia.</p><p>But along the way, we got carried away and put in too much user interface. So much that applications are annoying to use. They present the users with too much UI that are not necessary. Users are forced to enter more inputs in the form of typing, swiping, tapping, flicking, dragging, etc.</p><p>Maybe it is time for us to step back and like Golden Krishna, determine if the best UI is one with no UI.</p><p><em>Originally published at </em><a href="https://www.tech101.in/when-no-ui-is-the-best-ui/"><em>https://www.tech101.in</em></a><em> on October 19, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e701e3bd0191" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How OpenGL changed computer graphics]]></title>
            <link>https://medium.com/@hari.zizou/how-opengl-changed-computer-graphics-347123c6c743?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/347123c6c743</guid>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[opengl]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Sun, 11 Nov 2018 05:26:15 GMT</pubDate>
            <atom:updated>2018-11-11T05:36:26.271Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*_Pw_05llbCBbDr56YChyIA.png" /></figure><p>Once there lived a king whose land produced plenty of grains. The king made a policy to secure 1/5th of the produce and have it distributed to the poorest homes in his land for a subsidy.</p><p>The kingdom had a main distribution centre that was responsible for buying grains from the farmers and then distributing them to the local village distribution centres. Due to the sheer number of farmers and the number of villages to whom the grains were to be distributed, this main centre was overworked. Being busy, this centre would sometimes forget to reserve 20% for the poor neighbourhoods and send part of it to the regular villages. Sometimes, they would delay the distribution to the poor neighbourhoods.</p><p>The king wanted to change the system, ensuring that the poor got what they were promised. He set up a seperate distribution centre for the poor at the kingdom’s main temple. He instructed the farmers to take 1/5th of their produce to this centre and offer it to the kingdom’s chief deity at the temple. The rest of the produce was to be taken to the capital’s regular distribution centre. The temple’s distribution centre was immediately effective and the poor got the portion that they were promised for a subsidy.</p><h3>What about OpenGL?</h3><p>The moral of the story is that if you want something to be done on priority, then a seperate system must be set up for it. In computer graphics, <a href="https://opengl.org/">OpenGL</a> (Open Graphics Library) is a system that makes sure that apps forgo the computer’s main memory (RAM) and processor and instead use a seperate memory and processor (GPU or Graphics Processing Unit) inside the graphics card to which the screen is attached. The main memory and the CPU is where all applications compete for attention, but since drawing happens on the dedicated graphics memory and GPU, even the most complex of shapes on the screen are drawn very quickly, though you play an intense computer game with a lot of moving scenes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*SgWT88GyKniyZo2gVdMAOA.png" /></figure><h3>What is OpenGL?</h3><p>The world of computer graphics got really confusing in the 1990s when competing companies made competing solutions. None of the solutions were compatible with each other. One hardware would work with one app on one operating system, while not working on others. This made the progress of computer graphics really slow and cautious as graphics application makers were wary of permanently locking into a vendor for each solution. Everyone wanted some standards and interoperability.</p><p>At the end of the 1990s, companies that make software for developing apps (e.g. Google, Microsoft, Mozilla), companies that make operating systems (e.g. Microsoft, Apple) and companies that make graphics cards (e.g. NVIDIA, ATI, Intel) came together to make the <a href="https://www.khronos.org/">Khronos</a> group. This group made a set of specifications. The specification was a list of instructions that can be used by programmers and supported by operating systems and hardware for the most common drawing operations.</p><p>Instructions are as simple as placing a single dot on the screen or as complex as drawing 3-dimensional structures for an entire scene, complete with lighting and shadows. Instructions use the GPU and the dedicated memory provided on the graphics card made by the hardware vendors. The specifications are updated every year as the world of graphics evolves and more complex things are possible.</p><h3>How OpenGL helps software programmers</h3><p>Any specification or user’s manual creates an expectation about the set of things possible in a piece of technology. If you are given even an unbranded washing machine, you know that you can wash and dry clothes in it. Sure, there are semi-automatic machines and fully automatic models. But the behaviour is standardised. Put dirty clothes in, get them washed in water, get them dried and take out clean clothes.</p><p>The OpenGL specification creates expectations for the software programmers about a set of outcomes that a graphics system can achieve. Programmers are promised a set of instructions with what results to expect from them. The specification says that if they use instruction X, then it will lead to result Y. Since the OpenGL standard is adopted by multiple vendors, the programmers know that the same instructions will work on multiple operating systems and with multiple hardware vendors, as long as they promise to adhere to OpenGL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*qv_rMC8oc0a9Zu8gYbt-9Q.png" /></figure><p>Before OpenGL, there was no such standard and each hardware and operating system had their own unique instructions which didn’t work with others. Even the instruction to place a tiny dot on the screen would fail across multiple systems and programs were made for every system that the company wanted to support.</p><h3>How OpenGL helps vendors</h3><p>A company that makes washing machines knows that the customer expects a machine to do two things. Wash clothes in water and dry clothes by spinning. The vendor can provide other fancy details such as voice controlled input, temperature control of water or remote control through a smart phone. But if the machine doesn’t wash and dry, then its a failure. By default, the vendor is given those two goals for his/her product.</p><p>Vendors of operating systems and graphics cards are to provide at a minimum all the instructions that are specified by OpenGL. They have a goal to start with. They can add other fancy things that differentiate their product from others, but if they promise to adhere to OpenGL, then the instructions in the specification are to be mandatorily provided for.</p><p>Some companies are very savvy at graphics than others. These companies will make new breakthroughs in the field and will expect OpenGL to support those new features in the future. OpenGL allows vendors to package new features as extensions to the regular functionality, along with how to name those add-ons. Every year, vendor-specific extensions are reviewed by the OpenGL community and the most promising ones are inducted as new instructions in the specification. Every other vendor will need to support the new instructions too. Thus OpenGL provides a way for vendors to innovate and pave the way for the future.</p><h3>Conclusion</h3><p>From a chaotic mess of too many narrow solutions, OpenGL has united the community of computer graphics into an organised industry with standards. The computer graphics industry has promptly responded. From cartoonish 2-D characters that we saw in the 90s, on-screen characters have started resembling the real-world equivalents, complete with facial expressions and behaviour. As more vendors and programmers enter the field and virtual world mingles with reality, we can only watch in amazement as technology improves.</p><p><em>Originally published at </em><a href="https://www.tech101.in/how-opengl-changed-computer-graphics/"><em>www.tech101.in</em></a><em> on November 11, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=347123c6c743" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit testing and integration testing: the X-ray scan for your software]]></title>
            <link>https://medium.com/@hari.zizou/unit-testing-and-integration-testing-the-x-ray-scan-for-your-software-120419c46bbd?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/120419c46bbd</guid>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 13:00:00 GMT</pubDate>
            <atom:updated>2018-10-27T13:24:04.305Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ojrSX6hrPra0_lzWdDMz4A.jpeg" /></figure><p>Adarsh is a young chocolate maker whose chocolate products, especially chocolate sauce, are extremely popular in town. His chocolate sauce is loved by retails shoppers and restaurant kitchens alike. Restaurants use his chocolate products as part of their own recipes such as sundaes. It’s a wonder, because Adarsh has been making chocolates for only two years. Food connoisseurs are impressed with Adarsh. They have been to his shop floor and they attribute his success to his meticulous attention to detail. One particular connoisseur, Bindia, writes for the ‘Foodies’ section of the town newspaper and is excited at the chance to interview Adarsh about his success. Here is how their interview goes.</p><p><strong>Bindia:</strong> Adarsh, it’s great to get to talk to someone who is so talked about in this town. The first thing on everyone’s mind, readers and foodies alike, is — how have you been able to succeed as a chocolate maker? You had no experience at chocolate making before this. So what is your secret?</p><p><strong>Adarsh:</strong> This may sound strange. Before being a chocolate maker, I was a software tester at a company named Star Software Services. That job taught me many things. Quality assurance has become a way of life for me, be it in chocolate making or even while I brush my teeth.</p><p><strong>Bindia:</strong> That is indeed strange. What does being a software tester make possible for you?</p><p><strong>Adarsh:</strong> Two things. First, I limit the number of ways in which my products can be used. I make those limitations publicly known. Let’s call this scope limitation. Second, when I advertise that something is good, it is damn good. I have tested it several times myself. This is quality assurance.</p><p>Look at the label on this chocolate sauce bottle, for instance. It says, “Suitable for use with vanilla, butterscotch, strawberry, black currant and mango”. I have limited the scope of the product. Why? Because given the limited time I have to produce and ship this sauce to the market, that is only testing I am able to fit in. But I have made sure that my sauce works really well on those five flavours.</p><p>So my previous job helps me promise less and limit the scope. Then it helps me truly deliver on the promises I make.</p><blockquote>“In quality assurance, you promise less, then make sure that what you promise is delivered without flaws.”</blockquote><blockquote><em>Adarsh, chocolate maker</em></blockquote><p><strong>Bindia:</strong> How do you test?</p><p><strong>Adarsh:</strong> If I were to speak like a software engineer, I do unit testing and integration testing on all my chocolate products.</p><p><strong>Bindia:</strong> Ehh? Now what are those?</p><p><strong>Adarsh:</strong> It’s very simple actually. Software professionals enjoy using jargon and watching the rest of the world look bewildered. I don’t know why!</p><p>Anyway, in unit testing, you take a single part of a system and test if that part works exactly as promised. In integrating testing, you test if those individual parts work together as promised.</p><p>If you were to take my chocolate sauce for instance, you need to ask yourself: what is chocolate sauce supposed to do? You devise a set of tests based on that question. Those form the unit tests. Next, you ask: before chocolate sauce ends up inside the tummy of a foodie, how does it interact with the world? It gets stored in pet bottles or cartons and then inside a fridge. It gets dumped on an ice cream sundae, and so on. Initially you make assumptions based on the current market for a product, but as your product gets used, you get to hear new conditions from its users. It is upto you to listen to those users and put their use cases as part of your unit and integration testing.</p><blockquote><strong>Unit testing:</strong> If someone has promised that he/she that will perform a task, are the results delivered exactly as promised?</blockquote><blockquote><strong>Integration testing:</strong> If someone has promised that he/she will work with another person to perform a task, are the results delivered exactly as promised?</blockquote><p><strong>Bindia:</strong> What are the unit tests that you do?</p><p><strong>Adarsh:</strong> Chocolate sauce is supposed to taste sweet. Every 200 gram batch of our sauce is tested for the same level of sweetness. But that’s too vague a description. So we have measurements in place. A batch of our chocolate sauce shouldn’t be sweeter than honey. So we use a spoon of honey as a benchmark. It shouldn’t be less sweet than a digestive biscuit. Anything in between will pass the test.</p><p>The colour is supposed to be dark brown. But that’s too vague a specification as well. So I have a colour sheet on the wall for every product. I compare the colour on the sheet with that of the actual product after it’s done.</p><p>The sauce is supposed to solidify if it is dripped on ice cream. So I test that the sauce freezes at -12 degrees C and thaws at 1 degree C. I use a refrigerator with temperature settings to test this. It is a special lab refrigerator, since a household refrigerator does not let you control temperature exactly. You MUST invest in the right testing tools if you want reliable test results.</p><p>The sauce is supposed to be of a certain thickness and density. 200 grams of our sauce is supposed to take up 100 ml in volume.</p><p>If even a single property fails the test, I reject the batch and set it aside for adjustments. In software sense, we’d say that the sauce has bugs!</p><blockquote>You MUST invest in the right testing tools if you want reliable test results.</blockquote><blockquote><em>Adarsh, chocolate maker</em></blockquote><p><strong>Bindia:</strong> And what after you make adjustments? Do you perform just the test that failed or all of them?</p><p><strong>Adarsh:</strong> One must ALWAYS repeat every test meant for an item. It is possible that an adjustment introduced for passing one test may interfere with another.</p><p>E.g. I see that a batch of sauce of 100 ml weighs 215 grams. That’s thicker than usual by 7.5%. Huge difference. Then I add a little bit of milk to the sauce to make it thinner and make sure that it passes the weight test. But what if it doesn’t freeze at -12 degrees C anymore? We’ll see unhappy customers with liquid sauce dripping all over their plates, while they expect it to freeze over on top of their ice cream.</p><p>Sometimes, a test failure is indicative of a larger problem and small adjustments will further break the system. Sometimes the solution may need to be from the ground up with a lot of rework. But you should catch the problem yourself by doing all the tests after every tiny adjustment or major rework. A customer shouldn’t have to see those problems. There should be no defect among the features you already promised.</p><p><strong>Bindia:</strong> What about integration testing?</p><p><strong>Adarsh:</strong> If there is anything in the world that our sauce touches, we test with it.</p><p>E.g. The sauce is stored in 100 ml pet bottles and shipped. So first things first, no bottle should leak. Before we ship, we inspect every bottle.</p><p>We guarantee that our sauce is usable for 2 weeks. From every batch of shipment, we retain one bottle at the shop and consume it for our own use. We gradually deplete that test bottle, making sure that some sauce left in the bottle at the end of two weeks. If we notice that the sauce is still good for use, then we consider that the sauce is not reacting to the pet bottle or to external elements. That integration is a success. Otherwise we may have to recall that batch and give free replacements.</p><p>How should sauce behave when scooped out with a steel spoon? Our promise is that when your pour it back, it will fall in a smooth syrupy stream. It shouldn’t fall in chunks, nor as a watery liquid. A 10th of the weight of the sauce you have scooped out should still be sticking to the spoon after you finish pouring.</p><p>Finally, we promise that our sauce works well with five flavours. We have samples of ice creams in those flavours. The sauce should freeze on contact with ice cream and the end result should taste good.</p><p><strong>Bindia:</strong> This sounds to me like a display of a lot of patience.</p><p><strong>Adarsh:</strong> It is. Display of patience is one of the points that a quality assurance professional should take care of.</p><p><strong>Bindia:</strong> What are the others?</p><p><strong>Adarsh:</strong> #1 Preparation. Quality assurance starts before the product is produced. Everyone has to agree upon standards and behaviour. Too often we see that production and quality assurance teams are out of sync, causing arguments. This is because the expectations of the two are so out of sync. Without a gold standard, the production team is working towards something that just works. Quality assurance is looking for perfection. It is the responsibility of the product / project manager to bring everyone to the table and set standards on what will be delivered by the production team and certified by the quality assurance team. Too often, quality assurance is an after-thought. Imagine if I brought someone off the streets and simply asked him/her to test our chocolate sauce. That person is going to judge based on his/her taste and not according to the standards we set. What if he/she likes chocolate sauce sweeter than honey or a bitter one. Naturally, he/she will consider the test a failure while the sauce chef is bewildered. This is what will happen if you thrust an app into the hands of a software tester without telling him/her the expectations. They will use their judgement and not the ones agreed upon by the production team or the project manager.</p><p>#2 The ability to communicate in fine details. It is not enough to say that the ‘sauce doesn’t taste good’. Be more specific. Say, “Here is batch #23, box number #8 of chocolate sauce. The sauce in this box tastes sweeter than honey. Here is the bottle of honey I used as reference.” Often we have testing teams coming up with complaints like “this isn’t working”. You have to be very, very specific about what isn’t working and under what conditions. It is your job as a tester to make the production team’s job easy to narrow down on the problem. Don’t use a vague sentence like, “Doesn’t work” and leave the production team searching for a needle in the haystack all day to figure out what doesn’t work.</p><p>#3 Honesty. Mainly about the product’s capabilities. You are explaining to either the product manager or to a client that your sauce tastes good with vanilla, butterscotch and strawberry. They may ask you if it tastes good with carrot too. You shouldn’t say, “Of course”, unless you have really tested your sauce with carrot flavour. Rather, your answer should be, “I haven’t tested that. This wasn’t agreed upon or thought out. So you won’t see it on the product label either. I cannot guarantee that it will taste good. Either you may try at your own discretion or we may open a new discussion on tweaking the product as per your wishes.” This takes a lot of integrity, even some courage. Dialling down the expectation of a client or a superior. Sometimes your own team may question your intelligence when you reveal that something is unverified and so you won’t vouch for it. But you need to stick to it. The last thing you need are the bad consequences of a false promise to a client. Testing is the only way to guarantee that expectations are met. Wishful thinking isn’t.</p><blockquote>“Testing is the only way to guarantee that expectations are met. Wishful thinking isn’t.”</blockquote><blockquote><em>Adarsh, chocolate maker</em></blockquote><p><strong>Bindia:</strong> Adarsh, It was such a pleasure talking to you. Thanks for sharing the secret sauce for your chocolate sauce!</p><p><strong>Adarsh:</strong> Aptly put! My pleasure.</p><p><em>Originally published at </em><a href="https://www.tech101.in/unit-testing-and-integration-testing-the-x-ray-scan-for-your-software/"><em>www.tech101.in</em></a><em> on October 26, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=120419c46bbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What to do when choices overwhelm you… everyday!]]></title>
            <link>https://medium.com/@hari.zizou/what-to-do-when-choices-overwhelm-you-everyday-660007dabfad?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/660007dabfad</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[choice-architecture]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-10-27T13:07:46.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKknpmsr1iAnOiHP1cuJRQ.jpeg" /></figure><p>You know the feeling when you stand at popular ice-cream outlets such as Gelato, Baskin Robbins or Natural’s. There are more than a hundred choices. If you’ve had a difficult day at work, you are tempted to walk out as your brain feels the fatigue of taking one more decision from a staggering number of choices. “Let’s just go eat the falooda from the road side vendor”, you say as you walk out. What should you do when you are overwhelmed with choices?</p><h3>The default process</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*X9y6aMIARUiXBoVBCKaYGQ.png" /><figcaption>Your brain is good at elimination based on your preferences and history. But it gets fatigued when making a choice among the rest.</figcaption></figure><p>Here is how your brain works when it comes to taking decisions.</p><p>First, your brain is very good at knowing what you definitely don’t want. You certainly don’t want to eat vanilla or chocolate. Those are too common. So common that you’d rather make them at home rather than pay a price at an ice cream outlet. You don’t like certain flavours, say jackfruit or papaya. Secondly, your brain is good at recollecting and eliminating your most recent experiences. You had mango ice cream just last week and orange just the week before that. With these two processes, you have already eliminated about 25 items on the list.</p><h3>Proceeding…</h3><p>If the number of choices now stands at 4 or 5, you will pick one without too much effort. But that’s not the case with large ice cream outlets. There are still a staggering 75 choices. You still have to choose among strawberry, fig, tiramisu, mint, rum, raisin and what not. To bring the list of 75 down to 1, you still have to ask yourselves another 10–12 questions. That’s no easy feat. How can we tackle such as choice overwhelm?</p><h3>The cheat method that I don’t recommend</h3><p>Henry Ford was famously quoted as saying, “I’ll give you a car of any colour, as long as it’s black.” I understand this one. The process of car making was so complex in the early 20th century that the decision about making cars in different colours was an unnecessary additional complexity. Giving only one choice to people was a good decision.</p><p>However here are two questionable practices: Steve Jobs wore the same black turtleneck tee to every presentation. Mark Zuckerberg wears only grey tees. In fact, his wardrobe is filled with only grey tees so that it doesn’t matter which one he picks. Let’s call this method the ‘single attire practice’.</p><p>Decision-making gurus have lauded the ‘single attire practice’, but it so totally disappoints me. The decision of wearing a different attire for work everyday can be so easily structured that it is not a complex decision tree at all. The ‘single attire practice’ is an example of laziness being exhibited by two of the most successful businessmen in the world. How would it be if you were to walk into the world’s best ice cream parlour and order just one scoop of vanilla ice cream every single day, just because it is too tedious to make a decision. A rather boring life. You should be tackling the problem with a good plan instead of running away from it by cheating with an easy and boring way out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*3vwijaIP814U2rf7HcpadQ.jpeg" /><figcaption>Steve Jobs repeatedly wore the same combination to several WWDC presentations, claiming that this dress built a consistent brand image of him.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRJPmti94jkPpxDmmpuupA.jpeg" /><figcaption>Mark Zuckerberg claims that having several tees of the same colour in his wardrobe simplified it for him. He could just pick one and go.</figcaption></figure><p>Indian Prime Minister Narendra Modi has shown that that one can be busy and yet be mindful about his/her clothing. As the leader of an emerging country with more than a billion people, he surely has more work to do than Jobs did or Zuckerberg does. And yet, he has set up a system to wear something new in public every time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*aafRnMJzYEqAXUt9WmbeaQ.jpeg" /><figcaption>With outfits that look super sharp and professional, Modi has wowed his audiences, local and international, with a system that chooses his clothes for him. Despite being busier, somehow he has pulled off what Jobs and Zuckerberg haven’t.</figcaption></figure><p>Instead of calling Jobs and Zuckerberg ‘geniuses’ for their boring ‘single attire approach’, let’s just say that dressing up was not a priority for Jobs and is not so for Zuckerberg either, given their busy lives. For Modi, his own presentation in public is so important to him, that he made the effort and worked out a system.</p><h3>The solution: Structuring your choices</h3><p>It is okay to be overwhelmed by choices and to take your time when an important decision is one-off. E.g. choosing a house or naming your baby. We won’t be dealing with those decisions in this blog post. But, our most unnecessary stalled moments come when we have to choose something every day. E.g. what to make for breakfast today, what to wear to office today, which restaurant to eat at this weekend. We should tackle these with a good system that guarantees us a decision today, but a different one tomorrow and an even different one next month. Manual decision making should be tossed out of the equation. Here are two systems to automate your decisions for you and also enjoy variety in your life.</p><h3>Categories and master list</h3><p>Here are the steps for a decision making process that uses categories and a master list.</p><ol><li>Make a list of all the choices to a problem and then categorise them into logical groups. The groups depend on the problem at hand.</li><li>Take one member from each group in turn and copy it to a master list. Do not take two items out of the same group consecutively, unless you have run out of options in all other groups.</li><li>The master list is your decision fatigue buster. You must follow the master list in the order in which items are listed in it. Once you reach the end of the list, start over. The list will guarantee that you get to enjoy something new everyday.</li></ol><h3>Examples</h3><p>After completing trip <a href="https://india360.theindianadventure.com/">India 360</a>, Priya and I made a list of all the breakfast items that we loved all over India. We wanted to enjoy all of them, one every day. We shortlisted 14 items that are delicious and easy to make quickly in the morning. First, we categorised the items into groups: Bread based (e.g. veg sandwich, kladi sandwich, etc), besan based (e.g. veg omelette, chilla), south Indian (idli, rava upma). Next we picked one item from each category in turn and copied them into a master list. We follow the master list religiously. No two items from the same category repeat on back to back days. No item repeats before two weeks are up. Breakfast has become fun for us. Here is a snapshot of what our cooking is for the week when I write this post. We also drew up similar lists for lunch, dinner and what we should have after a workout at our gym.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpdrNP4ZNAKriz28k6qZbQ.jpeg" /><figcaption>Our entire week of cooking planned out. It includes breakfast, lunch, dinner and what to have after a workout. Several names are in Tamil, Hindi and Marathi languages. So they won’t make sense to everyone! Just making a point that we don’t think about what we should make when we enter the kitchen. The dosa items are repeated on consecutive days because otherwise the dough turns sour.</figcaption></figure><p>I applied a similar approach for which tee shirt to wear next. When I retrieve tee shirts freshly cleaned from the laundry room, I put each of them into a different stack based on its colour. All blue tees go into one stack, reds in another and so on. This is the categorisation step. Next, I pick one tee from each colour stack in turn and arrange them in a single stack. This is the equivalent of the master list. The single stack goes into my wardrobe. After my bath, I reach for the tee at the top of the stack. It is guaranteed that the colour of this tee is not the same as the one I wore before my bath. Also, the tee that I wore before my bath will not be repeated for at least one week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2h-Xs-RVzG-0m1ichyNiDw.jpeg" /><figcaption>My tees arranged before being tucked into the wardrobe. The red tees are far apart from each other and so are the yellows. I also make a point of alternating dark shades and light shades.</figcaption></figure><p>What if you were to categorise ice creams by colour too? Yellow flavours will list items like pineapple and mango. Orange coloured flavours will be orange and saffron. Brown flavours are chocolate, coffee, almond and fig. And so on. Then take one flavour from each colour and put it in a master list. This list will make sure that no colour repeats for two days in a row. Perhaps a month will pass before you eat the same flavour again!</p><h3>Theming and sequencing</h3><p>My father has a huge collection of Carnatic music. There are hundreds of albums and thousands of songs. But he never has to take a decision. A daily theme automates it for him. Mondays mornings are dedicated to Lord Shiva songs, Friday mornings for Devi songs, Thursday for Guru songs, etc. Within each theme, he has a set of albums, which he plays in round robin fashion. He has automated the process that decides which album’s turn it is to be played.</p><p>As soon as dad attaches a 1 TB hard disk with the humongous song collection to the living room MP3 player, he doesn’t root around or think about what is to be played today. He dives straight into a folder named after the day of the week. That folder is guaranteed to have songs related to the theme of the day. Next, he sorts the folders by a field named ‘Last Accessed’ which holds the date on which an album was last played. He sorts the list in ascending order of the dates. The most recently played album is dumped to the bottom and the least recently played one floats to the top. All that remains for dad is to pick the first folder in the list (least recently played) and add the songs from that album to the music player’s playlist. No decision fatigue, no time wasted thinking what to play.</p><p>Priya and I use theming to design workouts at our local gym. We start with a major muscle group near the top of our body, i.e. shoulder, at the start of the week. Every subsequent day, we work our way down, picking muscle groups lower down our body, i.e. arms, chest, back and so on, until we reach our thighs and calves on Friday. We rest during the weekend and start over with shoulders next week.</p><h3>The fallback option</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*A6Th7rvAOQ1F8B8340oasw.png" /></figure><p>There will be days when your best preparation meets with failure. Right on the day that you were supposed to wear your red crew neck tee, you discover that it developed a small tear that needs to be repaired. You were held up at work and reached home at 10 pm. Where is the time to make your planned dinner of the day? You need to whip something up quick and easy. The ice cream shop ran out of pistachio flavour right on the day you were supposed to eat it. Damn! You sprained your shoulder while playing with your young niece during the weekend and you cannot work out your shoulder muscles.</p><p>There are two ways for a fallback. The obvious thing is to skip the affected item and move onto the next one. This is also the most logical thing to do. You pretend that the scheduled item doesn’t exist in your list and just move on. Another way to tackle the problem is to mark one of the items on the list as your ‘favourite’. You will exercise your favourite option if the regular option is not possible. E.g. If Natural’s ice cream does not have the flavour I want to have that day, then I usually fall back to ‘tender coconut’, my favourite flavour in that ice cream chain.</p><p>However be warned that it is too easy to exercise your ‘favourite’ option for insufficient reasons. “I am too bored to cook breakfast today. Let me just make poha.” “My wife loves it when I wear the green tee, so let me wear it again today.” This way you are letting your mind take a decision, instead of the system doing it for you. Soon you will find excuses to fallback all the time and become an example like Steve Jobs and Mark Zuckerberg. Don’t let that happen. Let go and let your system tell you what to do.</p><h3>Conclusion</h3><p>Choices are overwhelming. If choices are to be made everyday, then they will often make you stall and waste precious time and energy. Work on a system to automate choices for you in a way that is fair to all the choices. You will soon enjoy variety, the spice of life.</p><p><em>Originally published at </em><a href="https://www.wearetheliving.com/what-to-do-when-choices-overwhelm-you/"><em>www.wearetheliving.com</em></a><em> on October 26, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=660007dabfad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[City focus: Mysuru, Karnataka]]></title>
            <link>https://medium.com/@hari.zizou/city-focus-mysuru-karnataka-2c5acee3bc8c?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c5acee3bc8c</guid>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[mysore]]></category>
            <category><![CDATA[india-travel]]></category>
            <category><![CDATA[mysuru]]></category>
            <category><![CDATA[karnataka]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 13:00:00 GMT</pubDate>
            <atom:updated>2018-10-06T04:26:48.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*obelKhQ4l_-_Gioz.jpg" /></figure><p>Which city has the following things named after itself? A bathing soap, a type of south Indian fast food with stuffing, a variety of s+ilk, a soft and porous sweet dish with a lot of ghee and an erstwhile State Bank subsidiary. The names are: Mysore sandal soap, Mysore masala dosa, Mysore silk, Mysore Pak and State Bank of Mysore. Nestled at the foot of Chamundi hills and watched over by Chamundi Devi or the Mahishasuramardhini, the city of Mysuru is one of the most beautiful, ecologically most balanced and tourism-wise most abundant locations in India. During India 360, Mysuru was one of our most enjoyed cities in India. This was enhanced by the fact that we were at Mysuru right during Navratri and Dassera, when the city is a potpourri of funfairs, performances, flower and food fests.</p><h3>A short history of Mysuru</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hMo4_pvqK1L6idLb.jpg" /><figcaption>Mahishasura Mardini’s story is very close to Mysuru’s heart.</figcaption></figure><p>The name Mysuru comes from <strong><em>Mahishasuramardhini</em></strong> which means the slayer of the buffalo demon. There is a popular Hindu mythology that says that Mysuru was tormented by Mahishasura (Mahisha Asura) or the buffalo demon. The grand way in which Mysuru celebrates its Navratri and Dassera, revering godess Shakti, stands testimony to this story and etimology.</p><p>Mysuru was ruled by the <strong><em>Wodeyar</em></strong> rulers for 6 centuries from 1399 until the time that India became a republic. During the late 1700s, Mysore was briefly seized by the Sultanate from across the river, when Tipu Sultan held Srirangapattana as his capital until his death in 1799. The modern day Mysuru was envisioned by King Chamarajendra Wodeyar the 10th, who set up the Mysore Zoo, the present municipal office, several colleges, schools and industrial training centres, many dedicated to the sandalwood industry. The Wodeyar family still lives in Mysuru palace today. But they are no longer rulers after the treaty of 1950, when Mysuru ceased to be a kingdom. Mysuru was the headquarters of the Mysore presidency for a while. Then the formation of Karnataka state and the shifting of headquarters to the cantonment city of Bengaluru turned Mysuru from an administrative heaquarters to Karnataka’s cultural hub.</p><p>During the British rule, the spelling of the city was anglicised to Mysore, as it is still unofficially referred to today. In 2014, the official name was restored to Mysuru, an exact representation of the Kannada spelling. This is when the Karnataka government went on a renaming spree in October 2014, changing the English names of 12 cities to match the Kannada spellings, some of them including Belagavi (Belgaum), Hubballi (Hubli), Vijayapura (Bijapur), Mangaluru (Mangalore) and Shivamogga (Shimoga).</p><h3>Geography of Mysuru</h3><p>Mysuru is at the foot of <strong><em>Chamundi</em></strong> hills and is on the southern bank of the <strong><em>Cauvery</em></strong> river. The Krishna Raja Sagara dam holds the river in Mandya district, about 16 km from Mysuru city. To the south of Mysuru, beoynd Chamundi Hill, is the Eastern Ghat mountain range. These are mountains ranging from 1500 to 2000 metres in altitude with an evergreen tropical forest. The forests are famous for sandalwood and several medicinal herbs. To the west of Mysuru is the coffee growing district of Coorg, which lies on the Western Ghats.The Eastern Ghats meet the Western Ghats near Ooty in Tamil Nadu, about 160 km away. Mysuru is about 100 km from both the Kerala and Tamil Nadu borders. It is about 150 km south-west of the state capital, Bengaluru.</p><p>Let us take a tour of the best places to see in Mysuru.</p><h3>Mysore palace</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3lDxkM_VNEv9zBP8.jpg" /><figcaption>The Mysore Wodeyar Palace</figcaption></figure><p>Commissioned by Krishnarajendra Wodeyar and used by the royal family, the Mysore palace was built in 1897. The Mysore palace is the centre piece of a city which is architecturally exemplary. Part of the Mysore palace is open to public. The interiors of the palace showcase high ceilings, tall pillars, cavernous hallways and an excellent collection of art. Part of the art is the typical woodwork that Mysuru is famous for. Ceilings have patterns made of natural dyes. All pillars have wood work and carving. The door lintels and frames are beautifully carved too. Plenty of silverware is showcased in glass enclosures. At 7 pm every evening, the lights on the exterior of the palace are turned on. The sight is gorgeous. This is the only palace of the three in Mysuru where public photography is allowed.</p><h3>Lalita Mahal palace</h3><p>This is the second of the three famous palaces in Mysuru. Lalita Mahal is right at the foothill of Chamundi hills. Similar to the Mysore palace, the Lalita Mahal palace showcases the artistic taste of the Wodeyars. There are grand marble staircases cases with balustrades carved with art. The walls are decked with paintings and Mysuru woodwork. The ceiling is covered with patterns made from natural dyes.</p><h3>Jaganmohan palace</h3><p>The Jaganmohan palace is very close to the Mysore palace. It is now exclusively an art gallery and has two floors of exhibits. The best work in these galleries are done by the legendary Raja Ravi Varama of Travancore.</p><h3>Town hall</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Imi3yMxu3CtXrP12.jpg" /><figcaption><em>Mysuru town hall, also known as Rangacharlu Memorial Hall</em></figcaption></figure><p>This is the city’s convention place and gathering spot for large public shows. The town hall is used by the city for special occasions. Public celebrations such as for light and sound shows during Navratri happen here, using the building’s large facade as the screen. The town hall is also called Rangacharlu Memorial Hall.</p><h3>Chamundi hill and Mahishasuramardhini temple</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uWEwAUbh4ZJKW5yd.jpg" /><figcaption><em>Mysuru’s famous Chamundi Devi temple</em></figcaption></figure><p>To the south of Mysuru city, the road ascends steeply up Mysuru’s oldest landmark, the Chamundi Hills. At the top of the hill is the temple dedicated to Chamundi Devi, the one known as Mahishasuramardhini, the slayer of the buffalo demon king who oppressed the people of Mysuru. The temple draws pilgrims from all over Karnataka and even across the border from Tamil Nadu and Kerala.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*n9ZTK6uKItRvVlKO.jpg" /><figcaption>Statue of Mahishasura outside Chamundi Devi temple, Mysuru.</figcaption></figure><p>At the centre of the township on top of the mountain is a statue of Mahishasura with his sword. Halfway through the climb is a viewpoint that overlooks the city of Mysuru, from where one can see the palaces and several famous landmarks.</p><h3>Mysore zoo</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AlzkiTzI196lRxV7.jpg" /><figcaption>Bonobo ape at Mysuru Zoo, India’s first, largest and richest zoo. Bonobo is the closest predecessor to human beings. You can see the human-like musculature in the arms, shoulders and thighs. Mysuru zoo is the only zoo with a bonobo.</figcaption></figure><p>Started in 1892 by King Chamarajendra Wodeyar the 10th, Mysore Zoo is the oldest zoo in India and also the largest. The collection of animals is staggering. Mysore Zoo also has an innovative program of seeking lifetime sponsors for each of its animals. Individuals have pledged annual support for certain animals in the zoo, thus adopting an animal. This program keeps the quality and the upkeep of the zoo in excellent condition. The rarest exhibit at Mysore Zoo is a Bonobo ape, which is one step below human beings in evolution.</p><h3>Brindavan gardens</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sB47QIMWjnxrP6ZZ.jpg" /><figcaption>View of the sprawl and beauty of Brindavan gardens. You can also see the Krishna Raja Sagara dam in the background.</figcaption></figure><p>The Brindavan Gardens are not exactly in Mysuru city. They are 16 km to the north of the city, on the southern bank of the Cauvery river. The Brindavan gardens are India’s oldest curated botanical gardens. They are built on the leeway of the Krishnarajasagara dam in Mandya district. The garden complex has sprawling lawns with walkways, an aquarium, a glass house and several gaming complexes. There is also a resort named Royal Orchid just outside the gardens.</p><h3>Ranganathittu bird sanctuary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sVbxBbk_Zb-ecufv.jpg" /><figcaption>A pelican sits at the top of a tree at Ranganathittha bird sanctuary.</figcaption></figure><p>Dr Salim Ali bird sanctuary at Rangathittu, Mandya district is a bird spotter’s heaven. It lies off the road that leads to Brindavan gardens from Mysuru. There is a walkway right by the river after going through the entrance. There are two sight towers on the walkway from where one can spot birds. Then there is a boating point where one can get tickets for boats that take us into the river and right by the trees where various birds roost. There are also crocodiles resting by the shores of the river islands. If you are lucky, you can even see some of them swimming in the water very close to you!</p><h3>During Navratri / Dassera</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KTpZzs5ybZ07dGTx.jpg" /><figcaption>Kathak performance in front of Mysuru palace during Navratri fest.</figcaption></figure><p>Mysuru is one of the best places to be in India during Navratri / Dassera festival. Several places in the city rise to the occasion. The Kala Bhavan, Mysuru palace and the exhibition grounds across the palace become venues for various cultures performances, floral exhibitions, food courts and processions. The road between Bannimantapa ground and Chamundi Hill is reserved for a huge performance procession, the climax of which is the jumbo / elephant procession that carries Chamundi Devi’s idol in a parade across the city.</p><h3>What to eat / drink</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*1tOsqmTXEnWT-n_v.jpg" /><figcaption>Kannadigas take their dosas seriously. Tasting different types of dosas at exhibition ground across the Mysuru palace.</figcaption></figure><p>Mysuru is well-known for its delectable food palate. There are items so typical of the city that they are named after the city. Mysore masala dosa is by the far the tastiest delicacy you will eat in Mysuru city. But there are several other snacks such as bonda, medu vada, masala vada, akki roti (roti made of rice, similar to Maharashtra’s bhakri), avalakki dosa (dosa made of poha), Hesaru dosa (green dosa made of moong, similar to Andhra’s pesarattu). For idli, you should try Mallige idli, which is a soft and delicate idli. Mylari’s on Vishwamanava Double road in Kuvempu Nagara is one of the best for the choiciest south Indian delicacies in Mysuru. While in Mysuru, you should forget about tea and always have fresh filter coffee. Mysuru gets its coffee from neighbouring Coorg district, where coffee is the star crop. Filter coffee in Mysuru is excellent anywhere you go, be it the upscale restaurants near Mysore palace or the small coffee joints on Chamundi Hill near the temple. If you are looking for a non-caffeinated beverage, then you have an extremely delicious choice. Almost every place that makes coffee also makes baadaam milk. This is made by heating up milk and the mixing into it a sachet of instant MTR baadaam milk mix. The mix is made of powdered almonds and cardamom. MTR is a very popular brand in Karnataka.</p><h3>Getting around Mysuru and their unique Trin Trin system</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*FC1C6w2GV3-9AEvA.jpeg" /><figcaption>Trin Trin bicycles</figcaption></figure><p>Mysuru has an excellent city bus service and state bus service. The bus station is right outside the Mysore palace. There is no concept of local train service or metros yet. Auto rickshaws are also a great option. However, the residents of Mysuru have it extremely lucky. If you are in Mysuru for at least a month, then you can get a smart card to give you access to Trin Trins. These cute sounding things are corporation owned bicycles that can be picked up from several Trin Trin pads around the city. The bicycles are chained to posts and can be unlocked by using the city smart card. The smart cards are prepaid and you will be charged for time for which you use a bicycle. Once you drop your bicycle off at any Trin Trin pad in the city and lock it in place, you need to place your card on a dock’s smart card slot. The tariff equivalent to the time for which you hired the bicycle will be debited from your smart card. Hires upto half an hour are free of cost. Here is the link to <a href="https://www.mytrintrin.com/">Trin Trin</a> bicycles and how they work.</p><h3>Souvenirs / gifts from Mysuru</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*ueQX0eibYBNL-g2s.jpg" /><figcaption>Mysuru woodwork, a souvenir that now hangs on our home wall</figcaption></figure><p>Mysuru is excellent when it comes to picking up souvenirs. There are so many things unique about the city. Pure sandal and soaps made of sandal (the famous Mysore Sandal soap and plenty of local brands) can make excellent souvenirs or gifts. While you cannot carry Mysore masala dosa or Mysore back home with you, you definitely can get a box of Mysore Pak. MTR’s or Maiyya’s packaged snacks are also an excellent choice. If you really want to push your limits, then you can go for a piece of Mysore woodwork portrait. Mysore woodwork is a unique form of portrait making that involves no paint. A scene is made by sticking thin wood chips of different colours on a base wooden board. For instance, rose wood is used for red coloured areas of the portrain, ebony for black and so on. The effect is very artistic.</p><h3>Conclusion</h3><p>Mysuru is a city hard not to fall in love with. It is architecturally beautiful, it is close to nature with hills and trees. Beautiful destinations like Coorg, Ooty and Wayanad are within 3 hours away. The city is modern and always up with the times, but it has consciously refused to grow too fast like Bengaluru, Mumbai or New Delhi. The concept of Trin Trins is simply genius. For us, Mysuru was love at first sight and one of the cities we would consider moving to for a few days if we ever get tired of Mumbai.</p><p><em>Originally published at </em><a href="https://india360.theindianadventure.com/2018/10/05/city-focus-mysuru-karnataka/"><em>india360.theindianadventure.com</em></a><em> on October 5, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c5acee3bc8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Message queue and task queue]]></title>
            <link>https://medium.com/@hari.zizou/message-queue-and-task-queue-9547b9901bd7?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9547b9901bd7</guid>
            <category><![CDATA[parallel-processing]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[task-queues]]></category>
            <category><![CDATA[computer-programming]]></category>
            <category><![CDATA[message-queue]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 12:30:00 GMT</pubDate>
            <atom:updated>2018-10-06T04:31:11.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*JfKKA6_GoYJ2hg3o.jpeg" /></figure><p>Consider that you are preparing for a party at your home. There are several tasks to be done. Walls are to be decorated, plates are to be washed, food is to be made ready and you may need an extra shoe rack for guests to leave their footwear. Most probably, you do not do everything alone. You get the help of the members of your household. In fact if the load is too much, then you even ask your friends for help.</p><p>When more people work on the tasks for organising a party, you get multiple things done parallely. But with more participation comes the need for co-ordination and communication. Some of the tasks may be related to each other, e.g. someone who has promised to wipe washed dishes and stack them on your shelf will need the one who washes dishes to complete his/her task first. Usually, one of the participating persons needs to stay on top of what gets done and who does what. He/she is like the captain of a sports team. When everyone smoothly communicates the status of his/her tasks and one or two persons are aware of each task’s status, things go on quite well despite the complexity.</p><p>Modern computers work the same way. They have multiple processors capable of executing multiple things at the same time. Even a single modern processor performs time slicing, i.e. divides its attention among several processes / threads at the same time. Processes need to communicate among each other. For this, they use a system called a message queue.</p><h3>Message queue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*JYz3dVWEejSuL1RG.jpg" /></figure><p>Whenever one process wants to communicate with another, the sender process sends out a piece of communication to the receiver. This piece is called a message. The receiving process needs to have a system to receive and process incoming messages, just like you have an inbox for email and a postbox for your home. This system is called a message queue.</p><p>Here is how we can describe an application driven by a message queue.</p><ol><li>Your application has a main process that is responsible for whatever your application does. As an example, let’s say that your application is a stock ticker that shows the current price for 100 stocks.<br>The main process is only responsible for displaying the stock prices and staying responsive to user’s touch inputs. The algorithm that gets the latest price updates is intensive and can slow down your application. Hence you have seperated it into another process. This seperate process will use your main process’s message queue to post stock price updates as soon as they are available.</li><li>Another process running in parallel to your main process is the message queue.</li></ol><p>Here is what the message queue consists of.</p><ol><li>It contains a bucket into which new messages are dropped when sent by another process. For practicality, the size of the bucket is limited and once the limit is breached, incoming messages are dropped and lost, just like an overflowing bucket. Capacity management is a huge challenge in message queue systems, especially when the system is running on a small, low-memory device like a <a href="https://www.raspberrypi.org/">Raspberry Pi</a>.</li><li>The algorithm of the message queue itself is an unending loop. It has only one job for eternity.</li><li>Look inside the bucket for new messages.</li><li>If there are messages, then extract them and pass them to the main process so that it can deal with the message. In our application, the messages will be the updated prices of stocks. These messages will fly in at incredible speeds as the stock market updates prices nearly every second.</li><li>Just like your email inbox has an email address and your home’s postbox has a postal address, all message queues have a well-known address that is known to all other processes.</li><li>A message contains two parts:</li><li>An instruction or code that usually tells the main process what to do. For our stock example, one possible instruction is UPDATE, that tells that main process to update the price shown on its display. Another possible instruction is CIRCUIT-BREAK, which says that a stock’s price is too volatile and that the stock market has frozen trading on that stock. The main application can use this message to put a special icon on the screen against that stock.</li><li>A message can have data that is used by the main process to carry out the instruction. E.g. the UPDATE instruction should have the name of the stock and the updated price, so that the main process can update the appropriate row on the screen. The CIRCUIT-BREAK instruction should have the name of the stock.</li></ol><h3>Programming languages that have in-built message queues</h3><p>The following systems have the concept of message queues built in:</p><ol><li>Javascript scripts running in a browser.</li><li>Javascript applications running in NodeJS web server.</li><li>Applications running on mobile phone platforms, i.e. Android, iOS, Window mobile.</li><li>Desktop applications with a user interface on Windows, Mac OS and Linux.</li><li>Applications written in Erlang programming language.</li></ol><p>The above systems support message queues out of the box, so there is no special third-party software that you need to install to unleash communication between processes running in parallel.</p><h3>Centralised and distributed message queues</h3><p>Message queues can be of two types: centralised and distributed. In a distributed message queue, each process has its own message queue and every other process needs to know the address of or have a reference to that queue in order to send messages to it. Each process can only read from its own queue. It has no idea what is going on in all other queues.</p><p>But what if your messaging needs were more complicated. What if you want to broadcast a message to multiple processes so that they all get to work on the same signal. E.g. a hard disk running out of space is of concern to all processes who wish to write to the hard disk. What if processes want to opt in and opt out of receiving messages based on certain conditions? E.g. a user will either want to or not want to receive notifications from an app.</p><p>In this case, a single message queue is used. All processes use this queue for their messaging. Such as system is called a centralised queue. Here are some features of a centralised queue.</p><ol><li>A piece of software seperate from the ones that require messaging runs the message queue. The address of the queue hosted by this software is well known to the ones that require messaging. This software is called a message broker.</li><li>Any process that requires access to the message queue sets up a connection with the broker and maintains that connection as long as the process runs.</li><li>In addition to the connection, the process also ‘subscribes’ to topics. Whenever another process sends a message whose topic matches a topic subscribed to by our process, then our process will receive that message. Otherwise our process will never come to know about that message. A process can subscribe to multiple topics. E.g. our application’s main process will subscribe to topics with names such as ‘stock updates’ and ‘software updates’. Messages from the first topic will cause our app to get latest stock prices, whereas the ones from the second topic will cause our app to prompt the user that a new version of the app is available for download.</li><li>In addition to messages being sent to all processes who have opted for a topic, there are special messages called broadcast messages that cause a message to be sent to all processes who have connected to the broker, without any exceptions. The computer shutting down or Internet going down are good examples.</li></ol><p>A centralised queue is made to solve the following problems</p><ol><li>For a setup that doesn’t support message queues out of the box, a centralised queue is a good way to enable message queues.</li><li>A centralised queue enables broadcasting of messages and sending messages to multiple processes.</li><li>The queue can run on a machine seperate from the machine that is hosting the main application. This reduces issues with processing and memory consumption, but brings up fresh problems due to network speed.</li></ol><h3>How to use a message queue in any programming language</h3><p>We mentioned 5 frameworks in which message queues are built-in. What if we want to use them in other languages? E.g. a standard Java or a Python program? We have two types of solutions.</p><ol><li>As mentioned in the previous paragraph, we can use a centralised message queue by installing a broker software, connecting our Java / Python program to the broker and subscribing to topics.</li><li>A second approach is to use a library called ZeroMQ. Using this library, each process, even in Java and Python, can have its own message queue.</li></ol><h3>Task queue</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*vVz23TCMFNYWHBLw.jpg" /></figure><p>So far we have talked about message queues where one process sends a message in the form of a small instruction plus some data to another process. It is upto the receiving process to set up an algorithm that actually uses that instruction and data. This is akin to you asking your computer graphics savvy friend to convert a TIFF image to a JPEG image for you. He has the know-how. All you gave him was an instruction ‘convert’ and the data, i.e. your TIFF file. He’ll know how to open Photoshop and use the Save As menu and the array of options that allow us to set the image quality. He’ll message you back when he’s done.</p><p>But what if you have hired 5 new trainees who do not know how to use Photoshop? In this case, you will have to tell them how to open a TIFF image, which menus to navigate through to bring up the option to save as JPEG and how to control the quality options to get the desired quality of output. Instead of giving them just an instruction, you’d be giving them detailed steps, like an algorithm. What’s the use of hiring trainees if you have to tell them detailed steps when you can do those steps yourselves? Well, what if you have 100 images to convert from TIFF to JPEG? I am sure your work hours are more valuable than converting images from one form to another. You may need to document and tell your trainees those steps once, but they will continue to use those instructions as long as they are trainees with you.</p><p>Computer applications can work similarly. Instead of an instruction, the application’s main process can hand out entire algorithms to processes and threads. These processes will do the hard work while our application’s main process can stay responsive to the user.</p><p>Similar to message queues, processes can have their own task queues. Other processes can fill up the task queue with algorithms, which the process with the task queue will pick up and execute as is. This is similar to the trainees executing your detailed instructions to the dot.</p><p>Task queues are supported out of the box by Java’s Executor framework and by Android. In Javascript, callback functions and promises are task queues. A third-party tool named <a href="http://www.celeryproject.org/">Celery</a> enables task queues for Python programs.</p><h3>Conclusion</h3><p>To get things done at the double, programming languages offer threading and multi-tasking. But this makes it necessary for multiple processes to communicate with each other. Messaging queues and task queues offer the solution by allowing processes to send short instructions, status messages or even entire algorithms between each other.</p><p><em>Originally published at </em><a href="https://www.tech101.in/message-queue-and-task-queue/"><em>www.tech101.in</em></a><em> on October 5, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9547b9901bd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thematic Trips: The Panch Prayag of Ganga]]></title>
            <link>https://medium.com/@hari.zizou/thematic-trips-the-panch-prayag-of-ganga-8f9aa36b6751?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f9aa36b6751</guid>
            <category><![CDATA[panch-prayag]]></category>
            <category><![CDATA[chardham]]></category>
            <category><![CDATA[uttarakhand]]></category>
            <category><![CDATA[ganga]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Fri, 28 Sep 2018 07:30:00 GMT</pubDate>
            <atom:updated>2018-09-29T05:41:18.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-ICgNYeyTHt3PSjw0Js_g.jpeg" /></figure><p>In Uttarakhand, the towns of Rishikesh and Haridwar are the only ones that that see Ganga river in its entirety. To their east, several towns see the tributaries that go on to make up the mighty river. Several rivers make up India’s longest river that is considered a Goddess or a mother figure by Indians. But the three major rivers that play the biggest part are Alaknanda, Mandakini and Bhagirathi. All of them are in the Garhwal region, the region that forms the northern half of the state of Uttarakhand. At the origin of these three rivers are three of the holy pilgrimages which are part of Char Dham (the 4 abodes) desinations: Badrinath, Kedarnath and Gangotri. The fourth of the Char Dham is Yamnotri, which is the source of Yamuna river. The Yamuna river plays no part in the Ganga river system until much farther in Uttar Pradesh at Allahabad. So let’s ignore Yamuna for this post. We’ll come back to Her later.</p><p>Along with three of the four Dhams, there are 5 more places that are considered holy for a different purpose. These are the places where major tributaries joins forces to form a bigger river. These places are known as Prayags or Sangams. Since there are 5 holy unions, they are collectively termed as the Panch Prayag. In relation to the Char Dham, the 5 Prayags are less well-known, but they make up extremely beautiful destinations, especially Rudraprayag. Let’s go on a beautiful and interesting journey, flowing through the tributaries of river Ganga and pause at the places where She joins other rivers and becomes a bigger river. We will have a closer look at each of the 5 Prayags.</p><h3>Alaknanda river starts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oK3Q_bngnhaLaNynzet5vQ.jpeg" /><figcaption>Alaknanda river flowing through Badrinath.</figcaption></figure><p>Let’s start at the eastern-most point of Ganga’s trip. At <strong><em>Mana glacier</em></strong>, on the icy slopes above <strong><em>Badrinath</em></strong>, where India’s mountains rub shoulders with China’s mountains, the <strong><em>Alaknanda</em></strong> river starts. While the people of India come to Badrinath for religious reasons, its true importance is as the source of Alaknanda. This is to be remembered for all the four Dhams. They are important to religion because of the geological / geographical importance. Badrinath is the place where the Alaknanda river bed takes shape as the water from the surrounding glaciers join forces and set course as one. The biggest rivulet is from the Mana glacier and hence that is considered the official origin of the Alaknanda river. Since we will cover Badrinath in detail in a seperate post about Char Dham, let’s move on to focus on the Prayags. We will travel from east to west.</p><h3>Vishnu Prayag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YFJEq06ixpw4FdLlyi7OOw.jpeg" /><figcaption>Dhauli Ganga joins Alaknanda at Vishnu Prayag.</figcaption></figure><p>The <strong><em>Dhauli Ganga</em></strong> river flows from the south of Badrinath from the slopes of the <strong><em>Niti Pass</em></strong> in Chamoli district. It meets <strong><em>Alaknanda</em></strong> river at <strong><em>Vishnu Prayag</em></strong>. Vishnu Prayag is apparently the least significant of the lot. At the Prayag, there is just a viewpoint and a small temple that overlooks the confluence. It is situated conveniently: right on the highway from Joshimath to Badrinath, on the Rishikesh — Badrinath highway. But you will hardly see tourists lining up for the view here, especially during off-season. There are no lodges, no restaurants and no taxi stands at Vishnu Prayag. Buses do not have the space to park here since the road bends into a hairpin right where the Prayag’s view point is. If you are on your way to Badrinath by a private taxi or by your own vehicle, you can park on the curb and visit the viewpoint. You could get off here using public transport. But then that transport will move on, leaving you behind and then you will be forced to wait for the next one. During off-season, that all-important ‘next bus’ or ‘next Sumo’ is elusive.</p><h3>Nand Prayag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adYJqypfRv2SspnEdNYomw.jpeg" /><figcaption>Alaknanda (left) and Nandakini (right) with the Prayag viewpoint in the centre.</figcaption></figure><p>The <strong><em>Nandakini</em></strong> river flows from the south and joins <strong><em>Alaknanda, </em></strong>which we read about both in the Badrinath and Vishnu Prayag sections. This river also approaches from the southern direction. It originates in the lower slopes of <strong><em>Nandadevi</em></strong> range, which is at the border of India and Nepal. Nand Prayag is populated enough to be a town with lodges and restaurants. However there is no official taxi stand or a bus terminal. A shared Sumo plying between Karn Prayag and Joshimath or an Uttarakhand state transport bus plying between Haridwar / Rishikesh and Joshimath can drop you off here. Similar transport can be used to leave town as well.</p><p>To see the confluence, you take a long winding staircase that descends from the Rishikesh — Badrinath highway and leads to a small delta that overlooks the confluence of the two rivers. Nandakini is a really narrow river. But the Alaknanda, flowing in from Badrinath and already having built plenty of momentum is a raging mass. The sound of the confluence can be heard throughout the day and can be a soothing effect as you relax in a cosy lodge inside town.</p><p>A good place to stay at Nandprayag is at a lodge named Kedar-Badri Samiti Dharamshala. The rooms belong to a religious, non-profit trust affiliated to the Kedarnath and Badrinath temples, so profit is not their chief motive. We got a room for as low as ₹ 300.</p><h3>Karn Prayag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-rlVSkpxsG2KvrlF7UsMiQ.jpeg" /><figcaption>At Karn Prayag confluence. Left (south): Pindar, right (east): Alaknanda.</figcaption></figure><p>The river <strong><em>Pindar</em></strong>, after melting from the <strong><em>Pindari glacier</em></strong> adjacent to the Nandadevi range in the Kumaon region, flows north and meets <strong><em>Alaknanda</em></strong> at the busy town of <strong><em>Karn Prayag</em></strong>. A temple with a small staircase takes us to a bed of pebbles on the eastern bank of the confluence of the two rivers. Each river is straddled by a highway bridge.</p><p>Karn Prayag is an important town and a vital junction in Uttarakhand. The Rishikesh — Badrinath highway runs parallel to the Alaknanda river. Another highway starts at Karn Prayag, stays with the Pindar river and enters the Kumaon region via the town of <strong><em>Gwaldam</em></strong>. From here, one can go to Kausani, Almora and Nainital, popular hill stations since the British era.</p><p>Karn Prayag can be called the gateway between Garhwal and Kumaon regions of Uttarakhand. As a result, travelling to Karn Prayag is quite easy. It is a major stop on the highway between Rishikesh and Badrinath. Plus, you can travel from a Kumaoni city like Almora. Due to this reason, buses halt here for 15–20 minutes, allowing people plenty of time to interchange buses. Taxis are also aplenty, as are restaurants and lodges.</p><h3>Rudra Prayag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYqSvaaqo8MZNwdCLBKw7Q.jpeg" /><figcaption>View of the Alaknanda (right) — Mandakini (left) confluence and the Rudranath temple.</figcaption></figure><p><strong><em>Rudra Prayag</em></strong> is the second most important confluence in Uttarakhand. It is the confluence of two rivers coming from two important Dhams in the Char Dham Yatra. The river <strong><em>Mandakini</em></strong> flowing from <strong><em>Kedarnath</em></strong> in the north joins the <strong><em>Alaknanda</em></strong> river flowing from <strong><em>Badrinath</em></strong> in the east. The confluence is marked by the <strong><em>Rudranath</em></strong> temple. A beautiful lodge named the <em>Baba Kaali Kamli Wala Dharamshala</em> is situated on the bank of the confluence across the temple. There is beautiful view of the confluence from this lodge, enhanced by the constant music of the two rivers bouncing on rocks and joining each other.</p><p>Also interesting at this confluence is the long stretch of a river beach on the southern bank of Alaknanda. Similar river beaches can be seen at Rishikesh. You can spend an entire evening on this beach, having fun on the sand. Every dawn and dusk, a Ganga Aarti prayer takes place at the Rudranath temple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50_HTngdkO99d34GtxvQBg.jpeg" /><figcaption>River beach at Rudra Prayag</figcaption></figure><p>Rudra Prayag is a very busy town and a very major highway junction. The Rishikesh — Badrinath highway that stays parallel to the Alaknanda river is met by the Rudra Prayag — Gupt Kashi highway. This latter highway goes all the way to a village named Gauri Kund, which is the starting point for the Kedarnath trek. Rudra Prayag is the perfect transit hub to switch transport during a sight-seeing tour that covers both Kedarnath and Badrinath. Another town that offers an interchange for transportation between Kedarnath and Badrinath is Chamoli, but there are no beautiful confluences at Chamoli! However, the Chamoli route has the mystifying Gopeshwar temple, the gorgeous Chopta village and the town of Ukhimath. We’ll see those in later posts about Uttarakhand.</p><h3>Dev Prayag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbv4cHB-2yIxJeoMEgobSg.jpeg" /><figcaption>Alaknanda flows from the left (east) and joins forces with Bhagirathi (the clearer blue river on the right coming from the north) and flows towards the south (right) as Ganga.</figcaption></figure><p><strong><em>Dev Prayag</em></strong> is India’s second-holiest river confluence, second only the to Ganga — Yamuna Sangam at Allahabad. At Dev Prayag, the river <strong><em>Alaknanda</em></strong> is joined by river <strong><em>Bhagirathi</em></strong>. The latter rushes in from the icy slopes of <strong><em>Gangotri</em></strong> from the northern direction.</p><p>Bhagirathi is considered the mother river even though its contribution to the confluence in terms of volume of water is only 1/3rd. Also, the length of Bhagirathi in kilometres is significantly less than that of Alaknanda. However, the faster and the more turbulent current of Bhagirathi deflects the path of the confluence in its direction. It appears that the longer and more voluminous, yet calmer Alaknanda is submitting to the strength of the smaller and shorter Bhagirathi river, which is more forceful and energetic. Even the name of the source, Gangotri (the source of Ganga), suggests that Bhagirathi is the more important river. This is also confirmed by the Hindu mythological story of sage Bhagirath’s penance to Goddess Ganga, who is believed to be a celestial river. According to that story, the Goddess becomes a terrestrial river and first touches ground at Gangotri.</p><p>In all other confluences, the river Alaknanda gets to keep Her name after the confluence. The names Dhauli Ganga, Nandakini, Pindar and Mandakini vanish. But at Dev Prayag, neither Alaknanda nor Bhagirathi gets to retain Her name. Beyond the confluence, the river is called Ganga. This is the name by which the whole world knows Her. This is the sacred name by which She flows through important cities like Rishikesh, Haridwar, Roorkee, Varanasi, Allahabad, Patna and all the way to Farakka in West Bengal beyond which She crosses into Bangladesh, where She peacefully terminates at the Bay of Bengal.</p><h3>Beyond…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtSh0U5aNfkuYx-hOscqbQ.png" /><figcaption>The amazing orchestration of the evening time Ganga Aarti at Rishikesh’s Triveni Sangam</figcaption></figure><p>Rishikesh is the first major city in the combined river’s path where you get to see Ganga river in Her full glory and strength. It is also the first city on the course of the river where She is celebrated, worshipped and revered by every household. One look at the evening time Aarti at the city’s Triveni Sangam is a goose-bump inducing experience. It says all about the river’s importance to Rishikesh, Uttarakand and all of India.</p><p>Here is a video of the entire Ganga Aarti performance at Rishikesh.</p><p><a href="https://www.youtube.com/watch?v=LEhbW5c31cU">https://www.youtube.com/watch?v=LEhbW5c31cU</a></p><h3>Conclusion</h3><p>The Ganga river system is complex, but it is also mesmerising. The river’s hypnotising energy casts a spell on you. The hypnotism is magnified when you stand at the very places where multiple rivers run into each other with boundless energy from the high slopes of the Garhwal mountains, only to smooth out and flow with a motherly calm that is so apt to her name Gange Mata, as she makes Her way through some of India’s holiest towns, enriching them in terms of soil, flora and fauna, history and culture.</p><p><em>Originally published at </em><a href="https://india360.theindianadventure.com/2018/09/28/the-panch-prayag-of-ganga/"><em>india360.theindianadventure.com</em></a><em> on September 28, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f9aa36b6751" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple two-sided trick to get better at discipline]]></title>
            <link>https://medium.com/@hari.zizou/a-simple-two-sided-trick-to-get-better-at-discipline-9a93b405b475?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a93b405b475</guid>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[persistence]]></category>
            <category><![CDATA[dos-and-donts]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Tue, 14 Nov 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-11-19T15:06:54.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*iOuvZ534IZ-s2qkrfw6oIA.jpeg" /></figure><p>Travelling by bus through the Himalayas, we noticed a man attempting to throw three empty plastic water bottles out of the bus window. We immediately told him not to do that. The man looked at us, then withdrew the bottles, thankfully not converting the beautiful landscape into a landfill. After a while, he walked to us and asked if we ever planted trees. When we said no, he launched into a virtue-loaded story about how he planted a tree on his birthday every year from when he was a certain age and on special occasions like Diwali, children’s day, etc and now that he was 57, he must have planted more than 50 trees. <a href="http://www.wearetheliving.com/author/priya">Priya</a> (my wife) and I did our best to listen and keep up with his bragging.</p><p>The man’s story was good. He had focused on what he should do to increase the earth’s green cover one tree at a time. However, what about garbage and their harmful effects? What about his non-biodegradable plastic bottles meddling with the Himalayan landscape and causing a hazard for the soil, the plants and the animals?</p><p>The man had focused only on what to DO and had ignored what NOT to DO. The man would have benefited from a DOs and DON’Ts list. You often need both to enforce discipline.</p><h3>The power of Dos and Don’ts</h3><p>While following any activity that needs discipline, it makes sense to follow a list of Dos and Don’ts. This is because not making certain mistakes is as important as performing the right activities. Without the Dos, you wouldn’t know how to proceed and what action to take. Without the don’ts, you wouldn’t know what to avoid. Want to make the earth a greener place? Plant trees in your locality, use bicycles for commute when you travel solo with less than 10 kilos of luggage, sort your waste into those biodegradable and those non-biodegradable. But also, don’t throw waste anywhere other than inside a dustbin, don’t use your car unless there are at least two persons travelling with luggage in tow and don’t buy merchandise from any company that you know is flouting environmental rules. Want to lead a healthy lifestyle? Wake up an hour before sunrise, eat plenty of proteins, fruits and vegetables, exercise regularly. But also, don’t watch TV for more than half an hour a day, don’t eat more than 20 grams of fried food a day, don’t ever have carbonated drinks and don’t stay awake beyond 11 pm.</p><p>As you can see, creating these two lists can provide you with a manifesto on how to stay on course for the goals that you value most. On one side, you have the steps to take action to get you towards the goal, while on the other, you have a list of mistakes that you know you must avoid.</p><h3>How to make and expand a list</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*MgcHosi8f1rn06JOQDk0cg.png" /></figure><p>Starting with a Dos and Donts list is very easy. You need a long sheet of paper. Divide the paper into two columns, with Dos on the left column and Don’ts on the right one. Start writing all the activities you must do in the Dos column. Don’t worry about being perfect and all-inclusive. You have all the time in the world to refine the list anytime you want. Always be as concrete as you can. The action written must create movies in your mind. For instance, “Eat proteins (legumes, besan, nuts), vegetables and fruits” or “Run 5 kilometres at 6 am” are better than “Eat healthy food” and “Exercise in the morning”. Next, you move onto the Don’ts list with whatever you know must be avoided. Again, don’t worry about including everything. You always have room to make mistakes and expand the Don’ts list as you learn. If you are learning a new skill, such as playing a guitar, you may not even have any items on the Don’ts list. That is okay. You will have a long list as you master the skill. Here is another simple trick about Don’ts that works for me. Don’t use words like ‘Avoid’, ‘Boycott’, ‘Refuse’. These words convey the meaning of “Don’t”, but unless my eyes see the word “Don’t”, the prohibition does not register. For me, “Don’t ever shoot regular landscape photos in shutter speed mode” is more powerful than “Avoid using shutter speed mode for regular landscape photography”.</p><h3>Giving yourself some slack</h3><p>The idea of Dos and Don’ts is to keep you in a straight line lest you diverge. But life happens, so it is not always possible to stick to your lists all the time. Some adjustments to the Dos and Don’ts list can help you here. Instead of drawing a straight line to march on, you can draw two lines to create margins and stay within them. So, a Do rule of “Run 5 km everyday” is hard for most people to stick to. But you can have two rules as, “Run 5 km at least 4 times a week” and “Don’t ever skip running sessions for two days in a row”. You have given yourself a margin to miss running 3 times a week, but not more than that. The Don’t rule also makes sure that you don’t miss 3 days in a row at the start of the week and then suddenly run for 4 days straight to catch up. This way your running sessions will be spread out over the week even if you are not yet ready to run everyday. You can have similar rules for writing. “Write upto 500 words for my book everyday” and “Don’t write less than 50 words for my book on any day” gives you the leeway to write between 50 and 500 words everyday. You should try to stick to 500, but if you can’t then your minimum should be 50.</p><h3>Conclusion</h3><p>While starting with an activity, discipline is what keeps you going. But discipline is an abstract term simply recommending that you stay on your course to get maximum benefits. A Dos and Don’ts list is a concrete and an actionable way to setting up discipline to work for you everyday. Give it a try and let me know how it works.</p><p><em>Originally published at </em><a href="https://www.wearetheliving.com/a-simple-two-sided-trick-to-get-better-at-discipline/"><em>www.wearetheliving.com</em></a><em> on November 14, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a93b405b475" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the world (mis)understands agnostics]]></title>
            <link>https://medium.com/@hari.zizou/how-the-world-mis-understands-agnostics-e28c808cb598?source=rss-b62bf73b97b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28c808cb598</guid>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[atheism]]></category>
            <category><![CDATA[faith]]></category>
            <category><![CDATA[agnosticism]]></category>
            <dc:creator><![CDATA[Hari Natrajan]]></dc:creator>
            <pubDate>Sun, 12 Nov 2017 16:40:07 GMT</pubDate>
            <atom:updated>2017-11-12T16:40:07.537Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*s6lTxitQ_Gu5UYrVJeCh0w.jpeg" /></figure><p>You probably know about two types of people based on their faith in God. First, there are believers in God. They may also follow a certain religion. Let’s simply call them Believers in this post. Next, there is a group of people who are certain that there is no God. They don’t believe in religion, don’t like any practices that are religious and do not believe in anything written in the religious books, epics and mythologies. These people are atheists.</p><p>I don’t belong to either category. Because, there is a third group of people who don’t subscribe to either school of thought. They just don’t care. These are the agnostics. An agnostic person’s philosophy is, “I don’t know if there is God… and I don’t care. I am glad that belief helps person A. But it doesn’t drive me. But unlike the atheist person B, I don’t believe that faith is blind and that the earth is better off without it. I just look the other way!”.</p><p>Agnostics are very clear about their philosophy. But they are often misunderstood by the other two categories of people. Believers think that agnostics are on their way to atheism. Atheists think of agnostics as people who don’t believe, but don’t have the courage to own up! Being an agnostic can bring up some exasperating, but really comical and entertaining conversations. This happens because everyone thinks that a person has to absolutely polar when it comes to belief. It’s hard for someone to imagine how someone can simply not care about which side to lean on. Go figure!</p><p><strong>Believer A:</strong> Hey Hari, I heard you are an atheist. You don’t believe in God? You say He doesn’t exist.</p><p><strong>Hari:</strong> Uhh… I am not an atheist. I am agnostic. I don’t believe or disbelieve in God or question whether He exists or not. Its just that I don’t care about that concept. I prefer not to have any opinion about faith. The entire setup is just not for me.</p><p><strong>Believer B:</strong> Come on, how can it be? You can either believe or you can’t. How can there be a neutral side to it? A coin has only two sides, you know.</p><p><strong>Hari:</strong> Well, this is not a coin. See, you must have seen apolitical people who just don’t vote, regardless of whichever political party has good candidates in their constituency. Or you must have seen a choice named ‘None of these’ in entrance examinations and IQ tests. This is like that. Q: Does God exist? A: I don’t know, I don’t care.</p><p><strong>Believer A:</strong> I think you imply He doesn’t exist. You are just not comfortable saying so and are making excuses.</p><p><strong>Hari:</strong> No, no!! I am not saying He doesn’t exist.</p><p><strong>Believer B:</strong> So where is your Poonal (Upanion thread)? Why don’t you pray every morning? Why don’t you perform Pooja rituals at your home?</p><p><strong>Hari:</strong> I don’t care about prayers and rituals. In my opinion, they are not a productive use of my time. But I am happy for people who derive pleasure and meaning in prayers and rituals.</p><p><strong>Believer A:</strong> But I know that you medidate thrice a day. You see that as a productive use of your time. But not the rituals? You can be religious one way, but not the other?</p><p><strong>Hari:</strong> Meditation isn’t religious. Meditation is a process of discovering yourself, your deepest sense of consciousness. It is the process of methodically slowing, even suspending your thoughts and discovering who you really are and what everything around you is. I would call that spirituality, definitely not religion. There are certainly methods within each religion which deals with spirituality. Many people I know chant Om Namashivaya or Om Namonarayanaya in order to seek Shiva or Vishnu within their meditation and ulitimately use that to reach a deep state of consciousness. I don’t need that. In fact, any kind of chant or even the faintest human voice actually distracts me. I prefer complete silence or some kind of low frequency flute music.</p><p><strong>Believer B:</strong> You are being ignorant about belief. You should read epics like Ramayana or Mahabharata to learn the essence of life. Maybe even Bhagwad Gita or Upanishad. Maybe they will change your mind about religion. I am certain that you have never read those books in your life.</p><p><strong>Hari:</strong> I haven’t. Nor will I ever. The Ramayana, for instance, is not written for an audience like me. Let me tell you that unlike atheists, I believe in the authenticity of the Ram Setu. I believe that such a bridge existed and that there were generations of people who had technology either comparable to or even better than what we do now. The concept of Ram Setu and its construction is very interesting to me. The architectural marvel, the logistics, the effort. Trust me, if the Ramayana describes the minute scientific and architectural details of the Ram Setu, I’d be hooked. Likewise, if it describes what chemicals were used to concoct the Laxman Rekha, I’d love it. As an interested traveller, it would be interesting to know how to spend 14 years in a deep forest. But Ramayana mostly talks about human virtues and emotions. That’s not interesting to me. I ignore Ramayana the same way I ignore Frederick Nietzsche or Paulo Coelho.</p><p><strong>Believer A:</strong> That’s spoken without respect. Are all agnostics so characterless?</p><p><strong>Hari: </strong>Says who? You don’t need religion or fear of God to build good character. You just need motivation and need to feel good when you do your best for everyone. I know so many atheists and agnostics who practice philanthropy, teaching, medicine and other noble deeds. They follow rules and pay taxes fairly.</p><p><strong>Atheist:</strong> Hey Hari, heard you hate religion and that you don’t believe in God. Way to go man!</p><p><strong>Hari:</strong> Uh.. I don’t hate religion. I am happy for those who practice it. I personally find religion and faith in God irrelevant in my life.</p><p><strong>Atheist:</strong> Bah… happy for those who practice it? Whatever good ever came from religion? People divide themselves into groups, they practice blind beliefs and rituals, they looks for signs in stars and planets, they…. Oh well! Forget it! You should come with me to this conference on atheism that I am going to tommorrow. Let’s rid the world of its blind beliefs.</p><p><strong>Hari:</strong> Well, faith has made people do a lot of wonderful things. So many wonderfully architected temples, the pyramids, cathedrals, music… the list goes on. It turns sick people into superhumans. If faith gives people wings, what’s wrong with that. And… I won’t attend your recommended conference the same way that I won’t attend a Bhajan mass. I don’t care about either sides.</p><p><strong>Atheist:</strong> Alright… your wish. I am going for sure.</p><p><strong>Believer B:</strong> Hey, you wonderfully dispelled that atheist’s claims. Why don’t you just start believing?</p><p><strong>Hari:</strong> Uff… listen, I respect that you are a believer. But please stop egging me to share your belief. I am happy as I am.</p><p><strong>Believer A:</strong> Ok, ok. You are entitled to your opinion. We won’t press you further.</p><p><strong>Hari:</strong> Thank God!</p><p><strong>Believer B:</strong> God? You said God. You are actually a believer. So sweet of you!</p><p><strong>Hari:</strong> Hey … what??? Wait, wait! That’s just an expression in English language…. Hey come on………………</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28c808cb598" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>