Sunday, March 29, 2015

Coming Back To Life

In the month of Jan, I visited this blog and thought its been a while since I wrote anything here. I was feeling a bit exhausted and low that day and perhaps that's why I spent some time reading some of my very old posts which I had written way back in 2007-08. It felt nice to read those and felt sad that I had stopped writing, specially since I had more to write about now than before. I was heartened to see the curiosity, inquisitiveness, wonder and simplicity that I had back then. Somewhere along the line it seems to have gotten lost. I drew a plot of the frequency with which I posted.

While there is variation between 2007 and 2011, 2012 onwards clearly has been a different picture. And understandably so. With more and more challenges at work, I was in a different zone and never really came to a point where I was in the flow to write. My blogger posts dashboard is filled with draft posts, including this one. So its not as if I never sat down to write, but I never really got in the flow to write and thus many of my draft posts are just one sentence with a headline. Now that I am taking some time off, I realize just how much of my mind was on other issues, both professional as well as personal. I am slowly trying to get back in the zone and getting into a routine, finishing off things which are a distraction (taxes etc.) and trying to focus on my health as well as other things that matter.  One of those is writing. It was so nice to be able to read how the 25 year old me saw the world as well as how the world was at that time. I wont be able to do that 5 years from now about the 32 year old me, if I don't continue to write. Also, writing needs practice and it is a skill where I seem to have lost a bit of touch. So hopefully, with this, I get some practice and discipline going! Cheers!

Sunday, April 13, 2014

Focus

Take your time figuring out what is your next mission. What is the objective? What are you targeting? Know the constraints within which you work. Think about the calculated risks you would want to take.

And once you have a picture where you think you can proceed - START and FOCUS.

Weed out the things around you that distract you. Even though it may seem counter intuitive. Just focus on reaching your target.

You try and you fail - but the failure is the worst when you did not focus, because without focus you will not be able to identify the finer points that lead to failure. That closing of your eyes when the opponent hits a ball for a smash while playing ping pong, resulting in you always losing a point on smash. You missing plucking the 5th string while strumming the guitar, wondering why doesn't your strumming though good, doesn't quite sound the way you want it to.

You will identify these minute but important lapses, only if you have focus.

Otherwise, you can keep trying and keep working hard, but you won't make much progress.

So focus - try and repeat. Keep at it. You are getting better!

Wednesday, August 21, 2013

The impact of Babajob

Just heard this story from a friend of mine, Raj.

Raj's friend wanted to discontinue the services of his driver and asked him to stop coming to work. The driver taken aback and worried about his future asked for a month's notice to search for a job. Raj when hearing of this, suggested the driver to register on Babajob.com so that he will be able to search for driver jobs.

Within a fortnight, the driver had multiple job offers and took up an offer at a business which was paying him 14,000 per month plus food. This was a significant increase from the 10,000 per month that the driver was earning. The driver, Raj told me, was super happy in finding such a better job so easily without running around too much.

It was heartening to hear this story from my friend. In our day to day work, keeping the servers up, fixing bugs, developing new features etc, we don't always get a first hand account of the impact of the work that we are doing. One of the goals at Babajob is to create a radical efficiency in the informal job market, so that people like that driver also have the power of easily searching and finding jobs which they like.

To talk about such goals is one thing. But to hear a story from someone, that your work is indeed making a difference, is just simply amazing.

Sunday, July 28, 2013

A feature request for Web Based Email

Its July and the last to file IT Returns is around the corner. My bank emails me the bank statements every month, so to look at my transactions for the past year, I am trying to download all the statements for the last financial year from email.

I was able to select all the emails for last year which have the statements as an attached PDF. Now instead of going to each individual email, I want to be able to download all the attachments from the emails that I have selected.

This does not seem possible right now. You can download all attachments in an email but not across emails.

It would be great to have this.

Tuesday, March 5, 2013

What I thought of when buying a cycle?

Cycling was something which I enjoyed as a kid. Even though I had the option to take the bus, I sometimes rode to school on my Hero Impact. It was fun. Even in Manipal, where either you had a motorbike or you walked, I was among the very few who tried their hand at cycling. So back in 2010, when I used to work out of Jaaga, I was inspired by Deepan of Hashcube, who went on long weekend rides to places like Ooty, Mysore etc.

I thought, I should buy a cycle sometime. Having joined Babajob in 2011, I was in a slightly better position to buy a cycle.  I was thinking of buying a Hero Hawk or some other simple geared cycle. I thought the max I would spend on my cycle would be 6 grand. Surely, I could not afford anything more expensive than that.  So I started asking around - which one should I buy?

Random cyclists I met on the road at the traffic signal, or outside a snack shop etc. all suggested to go for a good cycle.  "You mean like Firefox, which is about 9 grand?" I asked. "Well it depends on you, but I would recommend to go for something better. It may cost you, but this is a one time purchase. If you think you will start with a low end model and then move onto a better one later, that will just not happen. You will never get started with a low end model. Your enthusiasm will fade and you will give up." Hmm..now that was the response I had heard from three random strangers, so I started giving it a thought. Maybe I could increase my budget a bit.

Then one fine day, I got a call from Ram of Hashcube that he was going to buy a cycle. I said, I am coming with you. He was buying a TREK 3700 MTB from BumsOnTheSaddle (BOTS as its popularly known). I said, well I will go with the same. Basically, I trusted Ram's judgement and if he was spending 19 grand, then the cycle must be a good one. But the question which I still had at the back of my mind was, how do I justify spending 19 grand on the cycle?

So I started doing some calculations. I used to spend around a thousand rupees a month on petrol at that point of time. If I stopped using my bike, I would be saving 1000 rupees a month. That's 12,000 in a year and 24,000 in two years(not accounting for the rising cost of petrol). I also knew that sitting in front of the lappie all day is not good for my health. I did not feel energetic and at 28, the body needed at least some exercise. In the past, I had tried but failed miserably at putting a disciplined exercise regimen as part of my daily routine. I was just never able to sustain it. I had been thinking of joining a gym to force myself to go. After all if you have put in money, then there is some motivation (or should I call it shame) for you to go? A simple gym membership at that time was costing 1200 a month for a one year membership. So that's 14,400 a year. Hmm.. so if I don't take a gym membership for a year and don't buy petrol for a year then I can basically recover the cost of my expensive 19 grand bike in a year!

This deal now seemed pretty interesting. I decided to go with it and bought the bike. Yes, I had been frustrated with the frequent punctures that I had to fix and yes, I ended up spending much more than 19,000 grand on the bike (helmet, backlight, frontlight, water bottle stand, pollution mask etc.) But for a year I did not buy petrol (not kidding) and I did not join a gym.

I am not sure if I was absolutely able to recover my investment by buying the cycle (Yes, think of it as an investment and have a strategy as to how you will recover it) but am sure by the next year, I
would have. I regularly cycle to work - its just over 7 kms one way, and go for longer rides sometimes on the weekends. I feel much more energetic and positive after cycling (though I guess that applies to exercise in general)

The important factors which helped me in cycling regularly were -
1) My commute time and exercise time were clubbed so I was saving time (which was crucial)
2) I worked at a startup, and thus could go dressed to work the way I wanted and at the time I wanted (avoid rush hour traffic) . It is cool to cycle to work.
3) It easily became a part of my daily routine as my flatmate started using my bike and thus I had to cycle or take public transport. 
4)  After getting in the habit of cycling, it was difficult to get out of it.
5) The commute to office was not much (7-8 kms) and I was able to take side roads to avoid traffic. Also it took me just 8-10 mins extra on the cycle as it took me on the motorbike.
6) The Bangalore weather! (of course!!)
7) I loved it.

So as the prices of petrol shoot up, and you think that its time to give cycling a try, I thought of sharing my own experience so that it helps tilts the scale in favor of your bumsonthesaddle. :)

Cheers

Wednesday, January 2, 2013

A simple convention when hosting multiple sites locally

 

Firstly, A very Happy New Year 2013.

I wanted to share a sort of a neat trick/convention which I use to make my life easier when I am hosting multiple sites locally.

Suppose you are working on multiple web applications on the same desktop/laptop. Apart from using the built in Visual Studio Web Development Server, you would typically host your application on your local IIS as well, lets say for easier automated testing on your system.

Suppose you are working on two web applications which are hosted on the domains, earlyadopter.in and imadeitcount.com. Now you want to host these locally on your IIS as well. The typical approach would be to add an application to your IIS so that you may access these sites running locally through your browser by the following urls:

http://localhost/earlyadopter/

http://localhost/imadeitcount/

There are cases I have encountered where this has made life difficult. For example, if you are paring your url, you would have to do it differently for your localhost and for your actual production site.

What I do nowadays in these cases is that I modify the hosts file such that the following domains point to 127.0.0.1

http://earlyadopter.local

http://imadeitcount.local

Now, I can have as many local web applications without worrying about localhost.

What do you think? I think there may be better solutions out there, so if you know, please do leave a comment. I am also not sure how this would apply to LAMP stack solutions, so again, please do leave a comment if you have any insights on that end.

Cheers

Wednesday, December 12, 2012

Note to Self: Commit code frequently on git

Its been a long time since I blogged here. I have written drafts of THE post which was supposed to end this long hiatus from blogging, but I guess the short note I am writing today is short enough to go from draft to publish.

Since the last post, much has happened. One such thing is that I have started using Git. Its awesome. It is the way a SCM should be. Well at least most of it. I came across an issue today where I ended up losing some code I had written. In fact, it took a while to realize that code was lost. Here is how it can happen if you are not careful.

Create a temporary directory. Then try the following commands:

$ git init
$ echo “Baba Black Sheep” > blacksheep.txt
$ git add blacksheep.txt
$ git commit –m “First Commit”
$ git checkout –b whitesheep
$ echo “No black sheep, only white sheep here” > blacksheep.txt
$ cat blacksheep.txt
$ git checkout master
$ cat blacksheep.txt

The changes done in branch whitesheep are carried over to the master branch. I found this behaviour unexpected. I was expecting that when I create a branch, whatever changes I do there, remain in that branch. But apparently that is not the case.

Thus, this small note to self that whenever done with a piece of code, even on another branch, always commit. In case you are wondering how I lost the code, I think I made changes to a branch, forgot to commit the code, changed to master, and then pulled from bitbucket and during the rebase the changes made on the other branch were overwritten. At least that is what I think happened.
Will play around with this a bit more, but if I expected that changes made on whitesheep should not have reflected on master, I guess there would be others who would expect the same. So just something to keep in mind.

To end, I hope to be blogging more often here.