Circular Reasoning


Life comes a full circle, whether you like it or not. Sometimes, its great just to take a pause, measure the radians, and see if you are close. Think about what you had said then, and how things turned out. Think about what you could have said instead and how things would be?

Its a strange cycle. The same people that seemed invincible and could do no wrong, falter today. You did doubt your potential for a fleeting moment then. But today you are at your best, confident and passionate to win this world. Or may be its the other way round?

 well, it doesn't matter. Life still follows the circle, whether you like it or not.

Circles are referentially neutral. Meaning, The starting point is just another dot , and hence meaningless. View it from another angle, and the journey reverses.  What matters is the radians you cover, and what you learn enroute.

I am learning a ton, I hope you are too. 

Bedtime Wanderings

Fear must be mankind's biggest enemy? Most of us, we shroud our fears into socially acceptable nomenclature. 'Practicality' being one of the most ubiquitous. We strive to be practical and sensible, which merely means that we will mostly do something that is tried and tested and is basically failure proof. we hate to fail , and love to minimize risks.

On the contrary, homo sapiens were designed to take risks. Why? because we have the most amazing and complex brains of all living beings. We can negotiate risks like none other , and if we try we can be at ease with uncertainty. 

But what do we do instead? We buy insurance. Every kind of insurance. Our dislike for uncertainty is big business. 

That said, there  will always be are a select group of people that will swim against the tide. And wether or not you belong to this subset of humankind is a consequence of a few multivariate equations. The most conspicuous of them being how and where you grew up, how certain or uncertain the outcomes of your actions were, and how your reward history looked like versus other men of your time.

I will talk more later. or maybe not.


The Violet Scooter


We grew up together in Palamu, actually he was one of my best friends growing up. I would wait for him to come home in the evenings on his violet scooter. Sometimes, I was not waiting for him to come, but for him to bring his scooter along so I could try my hand at it. I did not have a scooter at the time, I remember. He had that thing about him, the kind of careless guts to ask people for things even when rejection was imminent. That scooter was the same way. It belonged to his uncle who had a small electronics repair shop in the narrow bazaars of Daltonganj. I would ask him to come see me and he would tell me "dekhte hain chachwa deta hai ki nahi scooter..". I secretly prayed that he arrive on that weird colored scooter. Sometimes he did, at other times he rode on an old bicycle instead.

He was a great bowler too, but sometimes he would go for runs. We had a common friend that would hit him for a boundary on the very first ball he bowled. But if it was a serious game, Ratan was a match winner. We could trust him , and he rarely disappointed. Oh, and he had this old issue with his skin. He was sunlight intolerant, and would develop rashes all over as we played in the hot summer afternoons. Sometimes mini cricket with a lunch box,  at other times football with a cricket ball. Ratan always carried an anti-allergic with him and popped one in whenever those rashes appeared. Over time, he had learnt to live with his rashes. Just like we must learn to live without him now.

Yesterday, I got news that Ratan has died, and I am told it was heart attack. Ever since that news came,  I find myself going back to our facebook messages - reading them and re-reading them. That's all I have in the name of concrete text. All else are distant and sometimes vague memories.

He secretly loved a girl in school..obviously the girl did not love him back. I think she was a class lower than we were?  He was a polished speaker of the english language,  a great asset, given all of us were grew up in Palamu where few understood english, let alone speak the language. He was a wannabe rogue on the outside, but on the inside,  there was this very soft polished guy that few saw. I like to believe that I was one of them.

After  10th grade, we moved different ways. I am not sure where he went, but I think it was Pilani. And the distance drove a wedge between what had so far seemed like an unbreakable bond of friendship.  We were still friends, but I guess we silently understood that I had my own issues to address, he had his. We lived in different cities for the next 14 years, meeting no more than 3 times in all. But we would chat on facebook sometimes, and wish each other on Diwali, Holi and Dusshera. I was reading one of our conversations that happened last year, where Ratan was unhappy that I had not bothered to call him ever. I apologized and told him I would call him soon, and he took my word for it. I did not call him even after that, and now I can't call him anymore. No matter how much I want to.

My mind wanders to our times together in Daltonganj, that weird scooter of his and the "in-swinging yorker" he always wanted to bowl. I remember the small house that they lived in, and the lovely tea his mother offered in small china teacups. I can't help but remember the girl he loved but never confessed to, and all the inappropriate things he did to make us believe he was a rogue. Hard to believe that our rogue is no more.

Rest in peace, my friend.  Teach the Gods a trick or two. You know we will all miss you here.


Retrieving IMDB movie IDs

So , I recently was working on an interesting problem where I needed a way to retrieve IMDB movie IDs given movie names and use the IDs to further retrieve its Ratings . I used this opportunity to test a long standing code that I wrote to read data in the JSON format.  Well, it worked and made the job a lot quicker and easier. Here's the code

just copy and paste in your notepad/ text editor >> save it as an HTML and RUN!


ShellShocked? Check if you are vulnerable (and fix it)

This is only for apple users using advance versions of OSX.

Type the following code to your terminal to check if you are vulnerable to the ShellShock bug.

env x='() { :;}; echo vulnerable' bash -c 'echo hello'


if you see the word "vulnerable" printed out on your terminal. Your are vulnerable. (and most probably you will find yourself vulnerable )

Note your bash version - run the following command on your terminal

macbook:~ Abhishek$ bash -version
GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
Copyright (C) 2007 Free Software Foundation, Inc.

So you need to obtain and recompile bash to fix this. 

MAKE SURE YOU HAVE XCODE INSTALLED BEFORE PROCEEDING TO THE NEXT STEP 

Copy the following code and then type 

$ mkdir bash-fix
$ cd bash-fix
$ curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf -
$ cd bash-92/bash-3.2
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0    
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0  
$ cd ..
$ sudo xcodebuild
$ sudo cp /bin/bash /bin/bash.old
$ sudo cp /bin/sh /bin/sh.old
$ build/Release/bash --version # GNU bash, version 3.2.53(1)-release
$ build/Release/sh --version   # GNU bash, version 3.2.53(1)-release
$ sudo cp build/Release/bash /bin
$ sudo cp build/Release/sh /bin

(Note: you can run this by copy-and-pasting the above code block, going into Terminal and then running pbpaste | cut -c 2- | sh. Always take care when running random scripts from the internet though ...)

After this, the Bash version should be v3.2.53:

run the checker command again

macbook:~ Abhishek$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
hello

"Vulnerable" is gone. 

Go to Sleep ....You are safe.. (for now)









11 Stories You Don’t Want To Miss This Week . via @techcrunch

1.   Larry Ellison, CEO of Oracle since he founded the company in 1977, has relinquished his CEO title. New co-CEO structure consisting of Mark Hurd and Safra Catz.
2. Chinese e-commerce giant Alibaba has gone public, NYSE opening at $92.70 per share, up 36 percent from the $68 share price of its ipo. valued at  $237.7 billion
3. 17-year-old Kai Kloepfer has invented a biometric smart gun that unlocks with your fingerprint. The high school student from Boulder hopes that his prototype, which employs a user ID and fingerprint match, will help reduce gun-related accidents.
4. Sarah Buhr reported on a San Francisco startup called ManServants, a service through which you can hire attractive men to wait on you hand and foot for $125 an hour. In an effort to dig deeper into this controversial idea,
7. Tomorrow Group founder Tom Goodwin wrote a piece called “How The Internet Killed Profit” about how he sees the Internet as a destructive force against the foundations of business and how digitalization has skewed economic balance.
8. Launched: iPhone 6 and the iPhone 6 Plus, and Matthew Panzarino showed us what using these new devices is actually like in real life, as he brought the new iPhones with him on a trip to Disneyland..
10. Mike Ducker took us back in time with his story “It’s Not About Creating Another Silicon Valley, But Preventing Another Motor City” in which he discusses how to develop ecosystems that will support the job-creating entrepreneurs of the future.
11. Twitter’s CEO had a great comeback to Peter Thiel’s attack on the company’s management, suggesting that there is “probably a lot of pot-smoking going on there” telling Thiel that he’d get back to him when he finished his bag of Doritos.