Rajesh Kumar

Things to say, things to think

Turning Hobby Into Profession

28 Mar 2009

For the longest time, except for perhaps a very few memorable exceptions, I've always found it extraordinarily arduous to get up from my bed each morning. It would always require a huge amount of effort on my part, and even after I'd managed to get myself up, I'd go through the chores of the morning with such great distaste, boredom, and utter mundaneness. Fall 2008 was a sheer disaster because of this.

I tried all sorts of techniques and advices from my #2, but to not much avail. It was a boring life honestly. I had all this energy in me, but no motivation to use it. I clearly wasn't being as effective as I could be with my day job (i.e. school) and there was no way I could excel at what I did best by working in this manner.

Things changed when I moved to San Francisco for an 8-month co-op term. I've never had any problems waking up in the last 85 or so days of my stay here. And I've completely gotten rid of my alarm clock. Don't have a need for it anymore.

The change obviously didn't have much to do with the city I was in. The change happened because I had started doing what I liked for once instead of what others would like me to do. This, trivially obvious as it may seem, was all that was needed to make me automatically wake up early feeling refreshed and energized.

The lesson was crystal clear: I had to start doing more of what I liked. And the stuff I liked, I was already doing as hobbies. So I had to convert my hobby into my profession. And that's what I did.

It all began back when I was in Grade 10 in Dubai and I wanted to create an online archive of all the back-issues of Young Times, the most popular teen magazine in the Middle East. They were already publishing reduced versions of their magazine online each week. The solution was incredibly simple: all I had to do was download their entire website every Wednesday and put it online on my own website which was hosted on Geocities, the only free web hosting service I knew of at the time.

My brother soon caught wind of what I was doing and thought I was wasting a lot of time doing things manually each week. He introduced me to the concept of a "cron job" which is essentially the UNIX term for a scheduled task, and "wget", which allows you to download an entire website, as opposed to just a page, using a single command. I was now "crawling" Young Times' website every Wednesday automatically without my intervention.

Remember, this was all in Grade 9/10, when I didn't know anything about computers except for how to surf the net, check my hotmail, and play games. This was all super high-tech for me. I didn't even know what Linux was. At this point, everything was still a hobby to scratch an itch and nothing more.

After a few months, my brother thought my "YT History" website was crap and re-wrote his own using a strange and esoteric programming language known as PHP. This beast needed a "web server" and what not. It was all too confusing to me. All the programming I had done until then was in BASIC at elementary school and that was it. Man, I didn't get PHP at all.

Time passed by, we moved to Canada, I got caught up in a culture shock, and the Young Times website, as you can imagine, quickly became outdated. My dad bought me my own desktop computer and that was my first break. I was now free to do whatever I wanted. I took a second look at all the PHP code my brother had written and none of it made any sense. I still couldn't understand seemingly complex ideas as arrays and functions.

I read a couple of articles online. But none of them helped. Out of disgust and frustration, I used the then popular P2P software Kazaa to download the first book I could find on the topic. I was very fortunate to pick up a really good book on the first try itself. I now had an illegal version of Build your own Database Driven Website using PHP & MySQL in PDF format.

The author, an Australian, Kevin Yank, was one of the best and most prolific writers on the topic. This was all in Oct 2002. I was fifteen and in Grade 10. The only things I were good at, at that point, were arguing and solving high-school textbook math problems. I'm still good at both ;)

Turns out Kevin and Kevin's co-worker Matt are good friends with my current neighbor who moved to San Francisco from Melbourne a year or so ago. Kevin's book was monumental to my core understanding of the PHP language. I probably wouldn't have landed the job I'm currently enjoying if it weren't for his book 7 years ago.

Since I couldn't print out this e-book, I had to read it on-screen. Reading 300 pages of black text on a white background off of a LG CRT screen was incredibly difficult, especially since I hadn't done anything like that before. I was done reading the book in a little under 10 days. I still remember the day I read with watering eyes and tears running all over my cheeks. My eyes were permanently red for a certain duration in Grade 10. But I kept reading. I couldn't get enough. I was ruining my eyes yes, but I was faced with this insatiable thirst for learning new things. And I couldn't get over it. I talk more about this in my other post on screen reading.

At the end of reading the book, I wrote my own blog in PHP and MySQL when everyone else was using pre-built solutions by the then popular blogging engine MovableType. My brother was using this too. But I wrote my own. I was too cool to use somebody else's solution ;)

That summer, in 2003, I wrote a web forum from scratch at Atomicbobs.com. It's a forum that is still actively used by hundreds of people even today. I didn't get paid for this project, but about 85% of my current PHP knowledge comes from working on this project.

Fast forward 6 years and numerous hobby projects, free-lance projects, and experiments including this very website you're viewing, I landed a pure PHP/Javascript job at Tagged Inc. What had so far been simply a hobby is now making me hot cash in a pretty messed up economy.

Today, I can read and write PHP just as easily, if not more, as I can read and write English. I can write facebook's wall complete with authentication and session management in bare-bones PHP, i.e. no framework or library, in under 30 minutes. That's really saying something. Anyone can write PHP. But very few people can write PHP fast. Speed is my only strategic advantage and I intend to exploit it fully.

If I was a parent and I were raising a 15-year old kid, I'd be very concerned about my kid's hobbies. Concerned enough to stop myself from pushing the hobby I think is right for him. Because if my kid can convert his hobby into his profession, I doubt I'd have much reason to worry about his future. Every hobby can be turned into a profession. I just wish more people would do that.

If nothing else, at least they'd find it easier to rise from their beds each morning.

Share in Google Reader Share | Permalink Permalink

Living Frugally

03 Mar 2009

Inspired by Paul Graham's essay, I wrote this post entirely within EtherPad.

In times of economic recession like this one, I think it's important we learn to live as frugally as possible. The people who have hitherto lived lavishly are now struggling when times are tough, the economy is in turmoil, and jobs are being laid off.

I think the idea can be stretched a little further. If you accustom yourself to living frugally all the time, you may not even realize that the economy is doing bad. The shock will be much less pronounced. Learning to live frugally is like giving yourself an airbag while driving a sports car.

Living frugally is really an art. It is also quite hard. It involves reducing your life to your absolute minimum without foregoing basic necessities. If you have doubts about an expense, just say no. Don't ask questions. Chances are if you're wondering about buying something, you probably don't need it in the first place.

I have decided to go frugal not because I'm running out of money, or I'm at a risk of losing my job, but because it gives me immense satisfaction to do things that I believe are truly hard. And it'll give me a great edge if and when I do start my own startup since most successful startups are notoriously parsimonious with their expenses.

There seems to be a correlation between living frugally and reducing your total environmental, or ecological, or carbon footprint. I feel that if I strive to reduce my total environmental footprint on this planet, I will automatically live a frugal life. I hope there will come a time when people won't know I exist on this planet until they physically see me.

One of my resolutions for this year is to reduce my total environmental (or carbon) footprint. Let's see what this entails:

  1. Continue to be strictly vegetarian. Feeding on plants, among other things, reduces the amount of methane (a green-house gas) in the atmosphere.
  2. Eat just enough to make me hungry exactly before my next meal, not "after". I had gotten so used to forcing down my next meal even if I'm not hungry that I found this one particular hard to achieve. I now eat about a third of how much I used to eat and about a sixth of how much everyone tells me I should eat and about a tenth of how much the average Indian usually eats. Great savings :)

    The fact that I am able to cut down my food intake so dramatically implies that all the excess food I had been eating until this year was being ejected wastefully.

    It turns out I don't really need that much food to live a normal life and be productive. This is assuming of course I adopt the necessary practices to ensure I'm absorbing every single nutrient out of every single morsel I consume. So tricks like eating slowly, chewing until your food turns liquid, consuming lots of liquid, good exercise, etc. become really important when you cut down your food intake.

    What I'm observing here is Parkinson's Law for food: Your body's requirements expand to fill the amount of food it is fed. The more you feed your body, the more your body will try to convince you of your correctness in doing so.

  3. Exercise regularly. This has direct relevance to #2. Turns out regular exercise, contrary to my previously-held opinion, allows me to eat less and still be productive. Don't know the exact reason but perhaps it's because exercise improves digestion and the overall nutrient-extraction-quotient.
  4. Turn off the shower when I'm soaping, shampooing and applying conditioner. The amount of water savings over a year can be quite dramatic with just this one change.
  5. I have a tendency to want to urinate even when I get the slightest sensation. I have discovered this is largely a psychological disorder in my case at least. I have now been able to reduce my flush frequency from 8-10 a day to about 3 a day. That's a lot of water saved over a year, isn't it?
  6. Quit buying. We buy way too much stuff we don't need. I've only been buying what I absolutely need these days. I wanted to get an extra pair of shoes, but I've said a firm no. And I'm not going to buy any more clothing since I have more than enough. I have bought two t-shirts in the last 2 months and I already feel I'm going to be satisfied for a very long time.
  7. Turn off all lights in the room at night before sleeping and when I leave for work. I have been applying this rule quite diligently the last 2 months.
  8. Don't drive if I can avoid it. I don't have a car so this has been easy. Rely on public transport more. Walk more. I am training myself to walk incredibly long distances (~10-15 km) with no breaks. This means I can walk to a lot of places within San Francisco without taking the bus.
  9. Turn off heating. Substitute with wearing warm clothing.
  10. Turn off electrical appliances. The only appliances that are on for a large part of the day are lamps for lighting, my laptop, and my fridge. I haven't had the TV on in weeks. And I barely use the microwave, kettle, toaster, iron or radio. I also wake up early to try and make hay when the sun shines.
  11. Do laundry in batches so I'm always running a full load each time. This is great power/water savings over a year.
  12. Be frugal on recreational expenses. I've been very successful at this the last 2 months. Turns out there's a ton of recreational stuff that can be done at very low cost. This doesn't really directly help me reduce my environmental footprint though. But it does reduce how much I buy.
  13. Go completely paperless. I currently use about one sheet of paper a week.
  14. Take the stairs as much as I can. Use the elevator only when I absolutely need to.

It gives me great pride to be able to live frugally—or at least semi-frugally for now—even though I spent the better part of my childhood in a city as extravagant as Dubai. Dubai, as we all know, is sort of the antithesis of frugal living.

Things I'd like to achieve, but don't currently implement:

  1. Go completely paperless.
  2. Start using stainless steel plates, cups, bowls and other cutlery instead of plastic ones at work.
  3. Turn off my laptop at night and when I'm out at work.
  4. Invest in a dryer-stand. In maybe a month or two, I should be able to dry my clothes outside in my balcony instead of using a dryer.
  5. Go back to using a bucket and a mug to shower instead of using the shower head.
  6. While shaving, use a mug full of water to rinse my razor, rather than let the water flow for the duration of the shave.

Share in Google Reader Share | Permalink Permalink

[ home | about | publications | resume | archives | telescopy | sitemap ]

Last modified: Tue Feb 23 07:31:50 PST 2010
© Rajesh Kumar <rajesh@meetrajesh.com>