• About

    Swaroop C H is 29 years of age. He is a coder and startupper. He has previously worked at Yahoo!, Adobe, his own startup and Infibeam.


    Read more about him


    Email: swaroop (at) swaroopch.com

  • Subscription

    If you want to know when new stories and articles appear on this website, you can receive them via:

  • I'm a Wannabe Hacker

    The Glider: A Universal Hacker Emblem

Archive for the ‘Tech’ Category

isbn.net.in open-sourced

Friday, December 31st, 2010

I have been getting many emails regarding isbn.net.in since I put it out 9 months ago. For example:

Hi Swaroop, I am following your blog for last year. I have visited and used ur isbn.net.in service. It is a good idea.

To easy of mobile phone buyers, I wanna create a application like isbn.net.in for the mobile phone availability and comparison.

Can i do this as a Final year project? Is it take that much work? To create that what should I know!

I have knowledge in Open source softwares, LAMP and basic python (From A Byte of Python).

and this:

Hi Swaroop,

Love your site isbn.net.in!

I am planning to start an online bookstore to sell used books. I need help to acquire book info like title, author etc. based on ISBN. Will you be able to help? Do you have an API that I can use? I see that you use Amazon. I was not sure if Amazon would have the details for books published in India. Please let me know your thoughts. Appreciate your help.

I actually wrote isbn.net.in as a means of learning Ruby, so I had written some hacked-up code using Sinatra. As it was my first Ruby project, the code was very amateurish and was not something I wanted to share.

Since so many people have been asking how it works, I decided it would be easier to just open source it. I took this opportunity to rewrite it using Rails 3 and try out Heroku as well. So, voila, Rails 3, Heroku and using MongoDB for tracking background jobs (to do the screen scraping) means a brand new isbn.net.in that is now live.

And the source code is now at https://github.com/swaroopch/isbnnetin (Note that this software requires Memcached and MongoDB to run).

The code is under an Apache license, so use it as you please.

Now that the source code is out there, there are some contributions that can make the site better:

  • Detection of ‘out of stock’ / delivery time
  • Detection of extra shipping charges / other hidden charges
  • Mobile version
  • Any improvements to the web design at all (I suck at UI design)

I would love any help on the above. If you’re interested, please fork away and when you’re ready, send me a pull request on GitHub :-)

Still Spreading

I am surprised to still see the response to isbn.net.in, mainly because I do zero marketing, and yet I still get 1-2 emails per day about it. That is amazing considering that the site has been there for nearly nine months and I didn’t do much other than write a blog post about it. I don’t tweet it or facebook it and all that jazz. I guess it’s a case of “Build it and they will come”?

For example, it was featured in startup articles, it was even mentioned in interviews of new online ecommerce stores that are coming up.

My favorite part is that people are using it as a bookmark URL (which was a use case that I had in mind), see @xrivatsan, @PurpleFoodie and @Shalin10

And I get emails and tweets when the site used to go down for even a few hours!

Oh, and thanks for all the feedback:

Shashank ND says:

“isbn.net.in saves a ton of time when trying to buy books online. Indian e commerce needs more of them. Thank you @swaroopch.”"isbn.net.in saves a ton of time when trying to buy books online. Indian e commerce needs more of them. Thank you @swaroopch.”

Swaroop Hegde says:

“Been searching for Kochan’s Objective-C book for a day now but hitting out of stock everywhere. And oh, Kudos to @SwaroopCH’s isbn.net.in”

Nandan Dubey says:

“http://isbn.net.in/ best site to compare price of the books visit it once before buying any online books”

Vinay says:

isbn.net.in is one simple and great site which is give you the best prices online. Great service for book lovers

The greatest flattery, though, is when it has inspired many other book price comparison websites.

For example, take the story behind mySmartPrice:

I chanced upon a book price search engine by Swaroop through a post on Flipkart. I will always remain thankful for that since I have gained a lot of insight by going through his blog. If you intend to ever start your startup then do subscribe to his blog.

A lot of users of Swaroop’s project liked the product. However many of them were asking for a way to start with the title of the book instead of the isbn number. I guess Swaroop has not made the changes since it was not his idea to start with and he might be busy with his new job at Infibeam. Coincidentally I am on the exit mode from my job to get into the startup phase.

One of the biggest inspirations for working on this project has been my own desire to prove to myself that I continue to be a geek even 5 years after I stopped coding to go to IIM Bangalore. There are many improvements that are required even now and I will talk about them in future posts. However I am already proud of the product that I have.

I will close this post by wishing myself and MySmartPrice luck and by thanking Tapas for introducing me to the wonderful blog of Swaroop and Swaroop for providing me such a nice homework to bring out the coder in me

There have been other sites such as MyDiscountBay that also seem to have taken inspiration from isbn.net.in. Update: confirmed via twitter.

And we seem to be spawning many more.

The irony is that I myself was inspired by isbn.nu. We all stand on the shoulders of giants :-)

Oh, and isbn.net.in is certainly just a side project, definitely not meant as a competition to these startups.

The single biggest crib that I hear is that one needs to know the ISBN number to use isbn.net.in – it seems that most people forget that I have a bookmarklet which solves that problem, sigh. I really don’t see the need to make a completely new search engine when all these ecommerce sites are already putting in effort to make a great search engine. But I guess people want everything online and don’t want to even use a browser feature, such is the Net effect! (If you do have an idea in mind how to solve this, as I mentioned before, fork away ;-) )

This was my list of updates about isbn.net.in. Feedback welcome!

Update: Someone has written a Flipkart to isbn.net.in link greasemonkey script. Nice to see people building on top of isbn.net.in! On the same note, if you ever want to get the prices from isbn.net.in, just append .json to the URLs, example http://isbn.net.in/0142000280.json for the JSON data of the prices.

My Bash and Vim setups

Monday, December 6th, 2010

I find it surprising on how little time coders spend on their development environment (the “dev env”). And especially, I find it amusing that I can find, refactor and test code way faster than the Netbeans IDE users in my office, with just a shell and Vim setup.

So why is a good dev env necessary? Because we do searching, refactoring, editing and updating of code much more than appending fresh code, and this also applies to code that you wrote half an hour ago, because you will want to quickly refactor it when a new constraint, a new requirement, a new design or a new idea comes to your mind.

I learned this lesson while I was writing my Vim book. Since then, I have been investing quite a bit of time on my vimrc file, heavily customized to my liking.

To give one very quick example – I like the cursor to always be at the middle of the window (as opposed to at the bottom of the screen when you’re scrolling down), so that I can see the lines of code before and after the current line. To achieve this, you simply set scrolloff=999 and you’re done. A one-line setting, but it makes a world of difference in usage.

Extrapolate this to dozens of customizations and you have just optimized your environment for lesser time at the keyboard, lesser time fighting the editor, and more time on the actual code. You do not want to break your flow of thought because you’re unable to quickly switch between the right files (say, between the controller and the view files), and so on. [1]

These customizations are stored in .vim and .bashrc files, collectively referred to as “dotfiles”. I have been asked quite a few times by readers of my book to share my dotfiles, but I was not comfortable to share it because I felt it was too hacked up and did not have a good “base”.

So when I came across bash-it and vim-addon-manager, I knew they were good foundations and a good excuse for me to overhaul my bash and vim setups.

And lo, behold, my dotbash and dotvim repos (on GitHub).

These are my actual working environments at office and on my personal laptop, so if you don’t agree with some of my defaults, fork away.

Now, on to what is interesting about my setup…

What bash-it provides

bash-it provides great defaults and aliases, right from .. as a shortcut for cd .. and ... for cd ../.. to bash completion setups for git, rake, etc., and of course, a gorgeous theme to use:

Bash prompt

The best part though is it’s neat organization into aliases, completion, custom, lib, plugins, themes and template folders. That makes a big difference in the long run, for the same reasons why a cleanly modularized codebase is better than one giant script.

And it will get various new features over time contributed by the community, example, completion of server names for ssh.

What vim-addon-manager provides

vim-addon-manager provides a super-simple way to install plugins into separate folders and then use them all, instead of lumping all of them together into a .vim folder. Just add the name of a new Vim plugin to the list of plugins you want to load, and it will automatically fetch the plugin and install it for you! This makes it easy to play around with new plugins as well as a simple way of having the latest version of the Vim plugins.

I use vim-addon-manager, but there are alternatives – others prefer pathogen.vim and there is also Vimana which gives you an apt-get-like command to search for Vim plugins. Choose your weapon.

There are caveats to vim-addon-manager, mainly that all plugins don’t seamlessly work with it. For example, I couldn’t get pyflakes.vim to work with it, so I had to unzip pyflakes into my regular .vim directory to use it.

My Bash customizations

Ever since I saw gemedit, I wanted something like that for Python eggs, and I realized that it was easy because Python modules have a __file__ attribute that I can use, and I created my own egg_edit command to do the same trick. Similarly, I have my own sync command with the settings that I prefer, etc.

tmux setup

tmux is a modern alternative to GNU Screen which is a common arsenal in any Unix coder’s war-chest. I prefer to use tmux because it makes it easy to script sessions which makes it super-easy to start a new session working on a project. For example:

Put this as flask-boilerplate-tmux.bash into the custom folder of your bash-it/dotbash folder, and then you can run flask-boilerplate-tmux any time to start a new session to work on the flask-boilerplate codebase! ( Update : Check out Teamocil which will allow you to do the same with a simple yaml config file )

I have a highly customized tmux configuration which sets many good default settings, especially starting the numbering of the windows from 1 (switching between 0 and 1 is painfully because they are at the opposite ends of the keyboard).

autojump

A good Bash plugin to use is autojump which monitors which directories you spend most of your time in, and then makes it easy to jump to your most favorite directories using a simple j command.

Don’t forget to use jumpstat to see which are those directories. Also, bash-it/dotbash provides a command called rh that does something similar.

Note that I have started using autojump only recently, so I don’t have as much experience using it as the other tools.

My Vim customizations

I have a fairly customized vimrc, right from changing the status line to providing shortcuts like :A to copy the full buffer to the clipboard and :B for vice-versa, which I find it very useful in situations such as I am writing this article in Vim and can quickly copy/paste into WordPress when I am done with the draft. I also have a \o shortcut to open a URL that the cursor is on, and many other goodies.

Vim plugins I use

There are three Vim plugins which are must-have for me:

First is command-t.vim which is a “fuzzy finder” to quickly jump to another file under the current directory.

command-t.vim

Second is ack.vim which allows you to intelligently grep your source code for patterns and then jump to each occurrence in a split-window fashion.

My favorite feature is that I can search my code with :Ack --python or :Ack --ruby and it will ignore all the JavaScript libraries which can have the same variable or function names.

ack.vim

Third is conque shell which allows you to to create a split window which can be any interpreter prompt.

The best part is that you can use a shortcut \e (assuming the default mapleader) to send the visually selected text to the interpreter prompt as if it was copy-pasted and it will execute it! This is incredibly helpful when you want to iterate the development of a multi-line function or fragment of code and you find extracting that code to a separate file and editing that file to be a pain (The interpreter prompts are designed for playing around with one-liners, they are simply not built for multi-line code).

conqueshell.vim

I have the following lines in my vimrc to quickly create ConqueShell sessions:

command Shell :set nolist | ConqueTermSplit bash
command PythonShell :set nolist | ConqueTermSplit python

So, I quickly run PythonShell to create a new session.

Setups by others

For other Vim setups, see the Janus repo on GitHub which is used by Yehuda Katz himself. You’ll find many more on the dotfiles website.

Summary

I’m hoping this article will help Vimmers and Bash users to broaden their usage and help them be more productive, the same intention behind my Vim book:

“I used to play with vim for years. I think this book would have to save me much time if it was written 10 years ago! Anyways, thank you for this amazing work you are doing.”

– turky_samy (at) hotmail (dot) fr

If you like what you have read so far, then go ahead and install dotbash and install dotvim.

Bottom line:

“Give me six hours to chop down a tree and I will spend the first four sharpening the axe.”

– Abraham Lincoln



[1] The flip side though is that I have been told “You’re the most mysterious guy in this office. No one understands what you’re doing when we see you coding.” Heh. Hopefully, it is not as mysterious after this article.

PESIT Offer to Startups: Mentor Students, Get Office Space

Monday, May 24th, 2010

My alma mater, PESIT (in Bangalore), has an interesting proposition for startups – mentor students and get office space in return.

The background is that they are working to improve the quality of education in the IS / CS departments. One of the ideas they identified was to work with in-industry programmers who can answer questions from students on the innumerable topics out there, from a practical point of view. Of course, GIYF would be your first response, but students who are just starting out need face time and guidance to make them comfortable, even if the answer is going to be “Check this URL.” Some of the kinds of questions you can expect are:

  • How can I use the vi editor to edit my file?
  • What is CouchDB?
  • How can I compile my program better than typing javac myProgram.java?
  • How can I use the Facebook OpenGraph API?

The only way for PESIT to make this happen is to get motivated in-industry programmers to spare some of their time to mentor students. And what better way is there than offer office space to startups who can work out of the PESIT campus and mentor students face-to-face right there!

Startups can also get access to clusters of hundreds of machines in the computer labs and even get interested students to work as interns with you!

If this sounds like an opportunity for your startup and an opportunity for you to improve the quality of CS education, then go ahead and write to Mr. Harihara Vinayakaram (visiting lecturer at PESIT) at nextgenerationbangalore [at] gmail.com with “Startup Student Mentor” in the subject line.

About Deep Procrastination

Wednesday, May 5th, 2010

Cal Newport, one of my favorite bloggers ever, wrote about the upside of deep procrastination last week. I had a few thoughts on the subject.

So what is deep procrastination? You know you’re in it when “No matter how dire the stakes, starting work becomes an insurmountable prospect.”

I remember this starkly happen to me when I transitioned from 2nd PUC to B.E.

I had the fortune of studying in a school which exposed us to computers very early. I remember playing a lot with Logo and fascinated that you can draw circles and rectangles on a screen. I knew back then that I wanted to study computers.

So in PUC, I had chosen to study computer science (PCMCs) and not choose biology at all, compared to most of my peers who wanted to “keep their options open”. No sirree, computers was for me.

I couldn’t wait to get to “B.E. in Computer Science” so that all I would do was learn about computers.

Uh oh.

I found myself studying about “strength of materials”, about the different materials used in construction of a building, about the calculation of the weight that a pillar has to support, blah blah. WTF.

I was disgusted. I was very demotivated. I was in deep procrastination. I had stopped studying. And I didn’t care.

I have usually stood in the top 2-3 ranks of my class throughout my school and pre-university days (well, geeky was the word used to describe me…). In engineering days, I was given a rap for having attendance shortage.

But something happened. I soon started to enjoy it.

I explored a lot in those days – from lots of trekking (which meant travelling outside the city with friends! Whoa!) to reading tons about technology.

Because I studied well in PUC and got a good rank in CET (463, out of lakhs of people), my grandpa surprised me with a gift of 5000 rupees (don’t remember the exact amount). I had never seen so much money in my life (back then).

I blew it all up by sitting in a cybercafe. I used to download web pages, put it in floppy disks, come back home and read them on the home computer. I fondly remember reading about a lot of open source projects and a lot of Tim O’Reilly’s essays.

Those were amazing days. And legend has it, that it all began with a few good seniors who taught us Linux and open source, and I eventually ended up writing a book (stop yawning alright!).

Fast forward by 5 years… As a good friend likes to say: “There are only two times you innovate in your life – 1. when you’re in college 2. when you retire.” True enough, I don’t think I have ever read deep tech stuff since then. Nowadays, reading the LLVM Blog makes my brain hurt. Sigh.

The point of my story is this: Since I stopped focusing on studies in college, I let my curiosity guide me. All that curiosity has led me places and I’m forever grateful for that.

My Advice: The key to get out of deep procrastination is to have a constant balancing act between hard focus and curiosity. Leaning towards either for an extended period of time can be completely demotivating.

I believe that working on projects that will have long-lasting impact and simultaneously priming your curiosity, and engaging with the unlimited number of topics to explore out there, will keep you on an even keel and a good frame of mind. Maybe even a happy frame of mind.


isbn.net.in updates

Sunday, April 18th, 2010

A while back, I released a side-project called http://isbn.net.in – a simple tool for comparing book prices in India. I received lots of feedback, suggestions and praise. I have updated it with fixes for the bugs reported and implemented most of the suggestions.

It was interesting to see people writing blog posts and linking to the corresponding book page on isbn.net.in as a “canonical page” about the book. I hadn’t thought of that.

Feedback

Lots of bug reports, suggestions and praise came via email, such as from Onkar:

“Nice idea with simple implementation. I am sure this will make my father happy. Thanks for your work. :-)

And as expected, Twitterers were most vocal about it:

@saurabh says: isbn.net.in is awesome #recommended #ftw #awesomeness

@kranium256 says: isbn.net.in is actually quite bloody awesome!

@kr0y says: For all those who love to order books online, this site can really help you get a good deal http://isbn.net.in/

@abhinittiwari says: Awesome book price comparision engine! http://isbn.net.in/

@vineetmundhra says: A wonderful tool for comparing book prices in India http://isbn.net.in

@l0nwlf says: http://isbn.net.in -> a pretty neat site to compare prices of book

@yarooruvann says: http://isbn.net.in/ very good tool to compare book prices in India

@jasdeep says: isbn.net.in is awesome, thank you @swaroopch

@tan1337 says: Awesome!

And some of the blog comments were heartening to note as well, especially this one:

Chandan V says: I was searching for a book from past 1 week and was unable to find it. Thanks to you, finally I was able get my book at flipkart. It was like, I thought I’ll not get that book any where in Bangalore and I open my google reader to see your link. Bingo, I have placed an order and eagerly looking forward for the delivery. Thanks a ton. You do not know how much it meant for me to have that book.

Note that last sentence. That is the stuff that creators love! :)

Search by title

The biggest feedback was: “Getting ISBN numbers is a little difficult for everyone. Consider taking a book title as your input and searching prices based on that directly.”

I understand the motivation behind this. But unfortunately, this was what I was exactly trying to avoid! I do not want to build a search engine! That is a non-trivial task, as I’m sure you can imagine.

My idea was to piggyback on top of people who are already doing that well. For example, Flipkart and Infibeam are supposed to have the most titles for the Indian market. So my idea was this: Why not use those search engines which are being constantly updated and tweaked by those companies to search for the books, and then use the bookmarklet + isbn.net.in to compare the actual prices. I actually don’t want you to use isbn.net.in as the starting point.

If you still want to search by book title, then head on over to the new Google Product Search for India. The reasons why you would use isbn.net.in over Google Product Search, is that isbn.net.in is comprehensive, accurate, has latest prices (as much as possible), and helps you decide whether to buy the book using the full description and Amazon rating.

Fixes and Updates

Regarding the fixes and updates based on your suggestions, here is the list:

  1. Fixed error on multiple pages such as http://isbn.net.in/8190453025 (via @sudhiru) and http://isbn.net.in/0074637762 (via email from Abhinav Sood)
  2. Fixing fetching of prices from a1books, thanks to bug report from Amit Sharma
  3. Added link to Google Product Search for India, because of many queries to allow search by title.
  4. Added CoralHub.com to the list of online book stores that is searched.
  5. Linked to iglooo.in and bookase.com in the about page under the list of similar projects.
  6. Added a “generic grep” to make the bookmarklet try a little harder for sites that is not known in its default list – IIRC, this was a suggestion by @talonx
  7. Bookmarklet now works with Amazon pages, but for this, you will need to take the bookmarklet again from http://isbn.net.in frontpage
  8. Added Kindle prices.

Favorite New Feature

My favorite new feature is Kindle ebook prices because, sometimes, buying the Kindle edition is cheaper than getting the paper book. That’s what I did with Seth Godin’s new book.

Further suggestions and feedback are welcome.


An experiment to be Google-Free

Sunday, March 21st, 2010

Update on 13 Jan, 2012: Most of my online services has been replaced by good Mac applications + Dropbox. I have moved away from Zoho services because their UI tended to be quite buggy, and using the browser’s “live bookmarks” feature as the RSS reader. The main things I’m still dependent on Google for is Feedburner (because it is the standard for RSS reader count) and Google Analytics (again, the standard for analytics).

Update on 30 Jul, 2011: I have switched to another paid option now – Rackspace Email.

Update on 24 Apr, 2011: I was using Zoho Mail exclusively for a long time, but I got tired of my email landing in spam folders of Yahoo! Mail and Gmail users. Going back to Yahoo! Mail was not an option (IMAP support is only in an expensive paid option and I don’t like the Yahoo! Mail UI any more), so the Hobson’s choice was to get back to Gmail. Sigh.


100% Google Free!A series of incidents and thoughts led me to try an experiment – to be “100% Google Free”. This turned out to be a lot harder than I thought, and ended up admiring Google a lot, and at the same time, worried and curious about what they do with all that data they have.

First things first, since I no longer use Google’s Feedburner, please kindly update your RSS readers to use http://www.swaroopch.com/feed/ instead of the earlier Feedburner link. For those 140+ people who are subscribed via email, I have migrated to MailChimp (emails were also being sent by Feedburner earlier), so emails will continue to be delivered to you from this post onwards. You can subscribe or unsubscribe for email delivery on this page.

Back to the main topic… there were a few reasons that led me to this experiment:

Phew. I think those were enough reasons to move away from Google, at least for a while.

And, boy, it has been tough. Let’s face it, it’s hard for companies to beat Google when Google makes slick products and gives it away for free.

Here is what my transition looks like:

  1. Search – The funny thing is I used Google Search only in 2004-2005, started using Yahoo! Search since 2006, and have moved to Bing exclusively since the past 6 months. (free)
  2. Analytics – Moved to Mint ($30) + Piwik (open source)
  3. Reader – Moved to Tiny Tiny RSS (open source)
  4. Feedburner – Moved to the default WordPress feed link + MailChimp for emails (freemium)
  5. Google Apps – Moved to Zoho for Business ($5 per month)
  6. Docs – Moved to Zoho Docs which turned out to be way more powerful (free)
  7. GTalk – Stopped using IM, it was a distraction anyway. (zero)
  8. Contacts – Exported from Google, stored only on iPhone (free)
  9. Calendar – Zoho Calendar (free)
  10. Google Groups – subscribe to RSS feeds of the group (free)
  11. Maps – Since the map application on iPhone uses Google Maps, no alternative
  12. Google Alerts – no alternative
  13. Google Adsense – This is still a todo item, haven’t looked into it yet. I have heard about Komli, Chitika, etc. but yet to investigate.
  14. Phone – My next phone is probably going to be an Android phone, looks like there is no alternative (I’m tired of having to use Windows just for iTunes, only because I have an iPhone)

As I’m sure you have deciphered, this took some installation of server-side software and some money to make this transition. These were the best alternatives that I came across that suited me.

So far I’ve been very happy about this experiment, because I got to discover and try out new tools and realized that there is so much more cool functionality available out there that I would have never discovered otherwise!

And at the same time, I admire Google even more now (from a startupper’s perspective) because they discovered a business model because of which they are able to give away so much functionality for free, and hence brought more people online.

Update: Thanks to Helen (in the comments below), got to know that Leo Babauta (Zen Habits) wrote about the exact same topic just 2 days ago. Good to know that I’m not alone in my concern!

How to get funding from Government of India

Friday, March 12th, 2010

I will be speaking in a panel at the HeadStart Conference, Hyderabad today regarding what is the funding that was granted by the Govt. of India to my ex-startup, and how you can apply.

Headstart Panel

I converted the content I had prepared into for-web-only slides for your perusal:

isbn.net.in – One Place to find the best online price for a book in India

Thursday, March 11th, 2010

I had an itch – I wished there was a simple way of deciding whether to buy a book and where to buy a book. So I created http://isbn.net.in

isbn.net.in

The initial idea I had was to make a bookmarklet that will do everything – it will figure out the unique book number (the ISBN) from the current book page (whether a publisher’s site or any ecommerce site), and then search on all the potential Indian online book stores. I then realized that you can’t fetch from other domains because of the same-domain policy of AJAX (I could’ve used YQL or something like that, but I felt it was a slippery slope).

So I had to create a web backend that will do the searching on behalf of the bookmarklet and changed the idea to simply show a jQueryUI dialog showing the sorted list of prices.

Then I chanced upon http://isbn.nu and immediately said to myself: “I want that with Indian prices”. Since I was half-way there already, it took a few additional steps of buying a good domain name and configuring to use the simple URL format they used.

There was one major problem with the bookmarklet – on sites which already have jQuery, it used to conflict, and although jQuery itself can live with multiple versions side-by-side, I could never figure out if jQueryUI was loaded properly or not. I tried various things but had to give up in vain.

Finally, I decided the pop-up overlay thing was not important, and the bookmarklet can just simply take you to the correct isbn.net.in page directly.

So the “where” part of the question was answered.

I still had to answer the “whether” part of the question – that’s when a friend told me about Amazon ECS using which I was able to get the very useful Amazon ratings. Then I was able to get the image of the cover of the book and other details.

Then I came across bookseer.com which makes great book recommendations, so I included an automatic link to that on the book page.

So, after much ado, I present http://isbn.net.in to you. All the instructions are on the homepage.

If you have any feedback, please read the disclaimers on the homepage and the About page, and then send me feedback.

Implementation was a lot of fun – I used Ruby, Sinatra, HAML, Mechanize, amazon-ecs, jQuery, Blueprint CSS. It was the first time I had really used any of these.

Disclaimer: I created isbn.net.in because I needed a tool like this. This has nothing to do whatsoever with my employer. It is just a personal side-project.

Updates on Praise, Feedback and New Feature: See isbn.net.in updates article.

Fun can change behavior

Saturday, December 26th, 2009

Once in a while I come across something really inspiring, and this time it was The fun theory – a “thought that something as simple as fun is the easiest way to change people’s behavior for the better.”

Getting people to use the staircase than the escalator


Getting people to throw into the garbage bin


Getting people to iron their clothes

Road Roller Iron

“Ironing clothes can be a boring task and getting the creases removed from your clothes perfectly is next to impossible. Now all you need to do is place your shirt on a customized iron board with sensors. You need to define the task. What is to be ironed? Shirt, trouser etc. The board defines your play area with lights depending on your selection. Creases are highlighted. Place the mini road roller iron on the shirt, sit back and let the fun begin. With a remote control you need to guide the road roller around the highlighted creases. If you move out of your play area, you lose points. If you get all the creases sorted in quick time you gain points.”


Getting children to clean their rooms


So what?

I hope to keep this inspiration in mind whenever I’m building products for others to use.

P.S. Go vote for the best entries before January 15, 2010!

The 5-year limit to being a coder in India?

Wednesday, December 9th, 2009

Let me start with a story I had heard about long ago when I was at Adobe.

There was this guy who had come in for interviews for a technical role. He passed all the tech interviews with flying colors, the team liked his personality and felt he would fit in well, and the manager was all smiles. In the last HR-style round with the group head, he was informed that the team works on products that are completely owned by the Bangalore-based group and that there won’t be any travel to USA. The guy was taken aback. He told the group head “Sir, please let me go to USA for just one day. If I have a USA stamp in my passport, I will get one crore dowry.”

Needless to say, the guy was not offered a job.

I’m sure you can draw your own lessons and observations from this incident, because it will come into context below, about a discussion we’ve been having on Twitter. It all started with @debabrata who read my previous blog post on the magic of foss.in and asked:

why this ’5 years limit’ applies to Indian software pro ? In other countries people are happy being programmer after 20 years .

I asked the tweeps for their opinions, and it got very interesting.

@cruisemaniac said: society defined age to get married and settle down = ~27 = 22+5 failing which u’re an outcast! and: also, post that age, ur risk apetite goes down due to family and other commitments…

to which:

@HJ91 said: True. Very true. Outcast is the right word, and its sad. Outcast. Insulting, hurting and pathetic.

Wow, this feeling runs deep.

so I asked:

You mean risk appetite or time commitment? … how does risk appetite relate to interest in coding?

And the replies came pouring in:

@mixdev: One of the reasons why brilliant people end up being (just) tell-me-whatto-do-n-leave-me-alone software engineers

@cruisemaniac: I’d say both… U cant risk a new tech and venture 4 fear of financial security… U want tat cozy safe zone and pay packet.

@cruisemaniac: time is a big costly commodity 4 us… we indians cant afford to spend it at our will with spouses and children at home…

@mallipeddi: It’s very hard to keep getting bigger paychecks yr after yr if you’re a 30 yr old coder. You’re expected to become a mgr/MBA

@abhinav: I believe the reason is our society. We tie success to degrees, and later, more ppl you manage more successful you are.

@abhinav: Where in western societies your idea fails, here it is you who have failed! Our society doesnt appreciate risk takers

@abhinav: Yes, more money, higher status, easy life. And most importantly, more dowry!

@mixdev: Because our goals are set by the society & achieving them also in their control. You get bored faster.

@debabrata: I guess to the great extent our society dictates us what we want to be unlike the west

I found it surprising that the situation why people cannot remain coders in India is almost the same as why people want to become entrepreneurs! It’s like this: The passion for coding will remain only when you’re doing cool and interesting stuff. But big companies (at least in India) want only stability which implies boring tedious jobs with standard languages and libraries. There is no room for experimentation. So the coder will have to move to a smaller company or a startup if he/she wants to continue to like coding (I’m ignoring the case of research laboratories for obvious reasons of numbers).

But moving to a smaller company or startup is, by definition, not encouraged. As @abhinav mentioned, there is societal pressure for more money, higher status, fancier cars and bigger houses. There is nothing wrong with wanting this, but don’t force it on other people! Alas, it is hard to reason regarding this. I remember having a long argument with an uncle of mine, he was, hmm, “strongly” suggesting that I buy a car and I reasoned out why it makes no sense (after all, most peers of mine use the car only for weekend drives, not for everyday commute) but it fell on deaf ears.

So I’m conflicted here: Are there not enough people who are actually interested in coding, or is it that the interested people are being peer-pressurized into “moving up” into managerial roles and hence lose touch with coding? Or are we completely off the mark here?


Update 1: As suggested by Peter, read this entry tited “Stuck in Code” by Ravi Mohan for his tale on this topic.

Update 2: A related article in NYTimes recently titled “In India, Anxiety Over the Slow Pace of Innovation”