Joined IITM

After long holidays and roaming around India I have finally joined a day job at Indian Institute of Tropical Meteorology(IITM), Pune. Its been almost three weeks here in Pune, The Institute and IITM colony are great. Beautiful location and Beautiful people all around.

Hopefully from now on-wards I may blog regularly about work and my workouts.

ncl-mode for Emacs!

ncl-mode is a Emacs major mode for editing ncl scripts. The project also also consists several useful features to assist writing ncl scripts. I have used this mode long enough to recommend to anyone who writes ncl scripts with in Emacs. The major features of this packages consists (from the readme:)

  • Easy code navigation (consistent with other Emacs modes)
  • Better indentation
  • Proper comment handling
  • Imenu support (my favorite)
  • Menu support
  • Snippets for yasnippet
  • auto-complete support
  • ctags support (ctags generation script included)
  • ncl-doc-mode minor mode for browsing/searching NCL documentation from NCAR website
  • inf-ncl.el mode for running NCL within Emacs.

ncl-mode can be easily installed from either MELPA or el-get package managers. Feel free to try and open an issue on github for any feature request.

Finally I have graduated from Hokudai.

Finally I managed to finish my PhD. I wasn’t totally satisfied, nevertheless happy that I am getting the degree. Now, I can have prefix to my name if I want to.

I may put my thesis online some time soon and also I wish to write some long never ending post about my PhD life.

China, India, Tibet, Arunachal Pradesh

Yesterday Prime minister Modi visited Arunachal Pradesh to inaugurate its first ever railway link. Within hours, Chinese government protested by saying “India should pay attention to the strong concern of the Chinese Side”. To begin with, Its ridiculous to think that Chinese government even has a concern about an Indian prime minister visiting to its own Indian State.


Chinese have long tradition to rake up the boarder issues with its neighbors to keep a check on them. Chinese should first introspect about their involvement in Tibet before voicing concerns about other countries. Not long ago in 2008, Chinese had an embarrassment with all over the world when Olympic torch baton relay took place. Even their state owned media could not keep mum about strong protests by young Tibetans against Chinese illegal occupation of Tibet.

The unfortunate leadership of early leadership of Indian independent India allowed China to become a neighbor. Fact is, Historically China was never been a neighbor to India before it illegally occupied Tibet in 1951. The Chinese gripe about India is that it is sheltering Central Tibetan Administration (CTA) leader Dailai Lama in India. It wants to put pressure on India by raking up with boarder disputes. Whenever any discomfort with Indian government there will be incursions in the Ladakh region to bully and bring India to a negotiation table. This has been going too far now, but China will soon slowly take notice of the power shift in Delhi and will behave better in the years to come.

Modi is well aware of the issues with China, for now he would totally concentrate on Indian economic growth and modernization of Indian military and rightly so. The process has begun already, India started aggressively spend on three branches of the military. Progress in total Indigenous defense manufacturing on its way. On the diplomatic front India will strongly lobby for permanent membership of the United Nations Security Council (UNSC). Now that, all the five veto powered nations principally, at least verbally, agreed to Indian state induction to UNSC, Modi will pursue on that with continuous effort. Modi should be as proactive as he was with the International Yoga Day announcement by UN. It may not be easy but becoming a permanent member is just a eventuality because of India’s sheer size in both population and economy.

Meanwhile India can play low key fight with India voicing for Tibet’s Independence. The previous Indian establishments are too timid to talk about Tibet. Modi doesn’t belong to that list but I believe he is waiting to set his own house right first before showing eye to eye to the Chinese. This is/should also be an eventuality.

wrf_install: Helper scripts to build WRF model (v0.7 release)

wrf_instll is a small project consists of a bunch of shell scripts which I use for building WRF model. WRF is large enough to have many dependencies such as NETCDF, HDF5, zlib and so on. This wrf_install scripts are very handy, at least for me, saves a lot of time and headache.

I just now released v0.7 with a lot of improvements. This is a point release as I thought the last release was almost two years ago and let me push out some tag for now. There are some significant changes in the way the scripts run. Now the building process is much more sensitive to the errors and gives lot of feed back. I also improved README file significantly, as I was writing README earlier I found that how bizarre state it was in. I don’t say Its super good now, I believe its at least readable.

Even though this is a tiny project, it gives me immense pleasure once in a while when a young and enthusiastic meteorologist sends me mails and ask questions about how to use the scripts and build WRF model. Even though, I must say, they often come up very basic problems. But hey, everybody starts from zero, right?

If any of used it and find problems or suggestions please let me know by commenting here or github issue page.

Happy Predicting :)

Restoration of sapporoindians site.

Few years ago, I created a website for Indian Association Sapporo (or IAS as we call it). I think most of our community members don’t even bother to look at it. It is mainly indented to help those Indians who are planning to come to Sapporo.

This website is a simple wordpress site with less than 5 pages. But Last year, I noticed it has a security flaw which had been exploited by a spammer. This scammer sending mass spam mails by using wp plugin folder to which I had mistakenly gave write access. I admit that It was dumb mistake. Luckily I noticed that very early as I traced bouncing mails for the spam that is being sent out. I had simply disabled whole site without fixing the problem. I was busy breifly at that time and hadn’t been motivated enough to devote time to that not so important work. Frankly not a single sole complained about it and It dragged on.

Anyway, after a long delay, yesterday, I took a stab at it and finished the restoration work of the site. On the way I upgraded wordpress from 3.5 to 4.1.

How did I fix it, it was just setting up proper access controls to wp-content folder. The site is hosted at hcoop which uses afs file system. Hcoop wiki has very nice article on how to setup wordpress blog properly and details about access controls. I just used those instructions.

The site seems to work beautifully now.

Elisp wrapper for Tinkerer

I just finished writing a tiny Elisp package to help myself writing this blog. Its a wrapper for tinkerer blogging engine. Its called unsurprisingly tinkerer.el. It still needs some polishing. But its in working shape, in fact, this blog post is written by using the that package.

As I use it more and more I will improve progressively. This should be handy for Emacs tinkerers if there are any out in the wild. Right now, It can be installed from el-get package manager (if you use el-get, just do M-x el-get-install RET tinkerer RET). I will add it MELPA soon.

The Unusual Suspects of Cricket World Cup 2015

In my last post I discussed the possible winners of the World Cup 2015. Now I try to predict the possible high impact players of this world cup. I think most of cricket fans have an idea about the star players who would make an strong impact in this world cup, i.e., likes of AB de-Villiers, Virat Kohli, Hashim Amla, Steven Smith, Kane Williamson, David Warner etc. But I like to guess those who are not in the radar, but will have real impact in this time. Here is my list of The Unusual Suspects:

  • George Bailey: Nice and Gritty Bailey, though captaining Australia, still uncertain of his place in the team. I expect him to do a lot better than the most of Aussie players.
  • JP Duminy: JP is really low key in South Africa team is really good player. He will be the man who will have high impact in both bat and bowl departments.
  • David Miller: Even though SA top order looks solid, David Miller will become savior when top order batsman fall cheaply.
  • Shehzad Ahmad: Pakistanis always bring new faces, so its tough to predict names. But from what I have seen little of Shehzad, I expect him to shine this time around.
  • Suresh Raina: He made to this list because I am big fan of him. I really believe he is better player than the statistics on his back. If he tries to play little cautiously and maintain slow pace than he is capable of he would surprise many this time.
  • Mitchel Starc: Even though Mitchel Johnson is lead bowler I expect Starc to be most wicket taker for Australia. I predict because Starc looked very passionate to perform.
  • Guptil: He is good player than his recent form says.
  • Andre Russels: He is just better player in the WI cricket team. Since he bats in the lower order, so far he hasn’t been able to make much impact but I expect him to do well in this world cup.

I am not much familiar with the Associate members’ teams of ICC. So I couldn’t list their names. If you have any name that should be in this list please inform me in the comments.

On a final note is, to my own surprise, no English player made into my list. I searched through the English team, but nobody sparked to my eye. Hopefully English players will prove me wrong at the end of the world cup.

Cricket World Cup 2015


Cricket world cup 2015 kicked off today. I was introduced the game of cricket when I was 11 during 1996 world cup. I loved watching cricket and occasionally playing it. I will reserve my experiences and memories for another post. The exciting question today is that who will the world cup or who has better chance of winning the cup this year. I safely bet only one of these four teams have an chance of winning the cup: Australia, New Zealand, South Africa and India. I listed the order with their winning probability. Mind you my prediction of any thing is as good as my prediction of weather as a researcher.


Australia have real chances purely by looking at the quality of the side. Second important factor is that they are playing in their own backyard. Australians have a strong bowling line up lead by Michel Johnson and the batting line with likes of Warner, Bailey, Maxwell and in form Steve Smith. I would say they have almost 80% of chance of bagging their fifth world cup.

New Zealand:

New Zealand team is full of confidence right now with its recent form. One of the major advantages is that they are playing all the league (up to semi finals if they reach there) matches in New Zealand. They have good if not great batting line up and also couple of all rounder like Corey Anderson, Luke Ranchi. Personally I am backing up New Zealanders to win this world cup.

South Africa:

As always with every world cup, South African are one of the favorites this time again. Would they win the cup this time? well, I say they have very bright chances, especially because of their batting line up is on par with ever green bowling line up. I wish they will remove the tag of Chokers after this world cup by winning it.


India is on my list only because the rest of the teams are far worse and my own bias them as Indian. India’s bowling is just rubbish, the less we talk about it is the better. They have fair chances because of their strong batting line up. One thing I would point I noticed at least among the fans the appetite to win the cup. I was speaking to some of the friends, Its okay if we don't win this cup, since we already won the last one. May be its just Indian mentality and I hope that’s not the cricketers are thinking.

Hope world cup to be fun watching and the best team get to lift the cup. Have a look at my list of unusual suspects of this world cup.

Aam Aadmi Party online propaganda tricks used in the Assembly Elections 2015

Aam Aadmi Party (AAP) won the 2015 assembly elections with resounding mandate. I looked into some of the reasons that helped to achieve this spectacular win and its implications. There is also another factor which I haven’t touched in that post, i.e, their clever online campaign.

They outsmarted Bharatiya Janata Party (BJP) easily and created lot of positive perception among the young voters. I will try to sum up what are things they have done or at least I have noticed them doing and what BJP and others should learn from this online campaign.

  1. Twitter: AAP continuously able to make their hashtags trend on top. This is very important because India’s total politics played on twitter these days. Most of the Indian politicians and journalists sits on twitter all day along to gauge the news and mood of the campaign. AAP has created and placed bots and excellent graphics on the twitter stream to shine their voice. If you can imagine the details, this doesn’t cost much money and few systems with proxies setup can automate all this work.
  1. Graphics: I am guessing AAP has good designers continuously made very huge number of propaganda graphics. I don’t even need to go into details of why good graphics are essential for a political campaign. Their excellent graphics are continuously trended all over twitter India. I can safely bet, after looking at many of their works, that the number of graphic designers worked on this task not more than three. Let me give one example to illustrate how smart AAP designers are. Look at the picture they printed all over Delhi at very beginning of their campaign. A happy faced Arvind Kejriwal vs moody face Jagadeesh Mukhi. A very subtle, unnoticeable way of putting AK is the best choice. Its I consider hitting below the belt but hey who stopped BJP in doing that.
  2. disqus comments: All popular news sites use disqus for their comments. disqus comments displayed sorted by votes given to that comment. Unfortunately votes can be easily manipulated. AAP used some javascript code to automatically bump votes up for their comments to bring them on to the top. If you see all popular news sites, top comments will be filled up with AAP propaganda. This is very very cheap and huge impact on ordinary readers of the news sites.
  3. whatsapp/email: Chain emails, whatsapp forwards were also huge. They have created a huge database of email ids and then bombarded propaganda messages to those mails, same with whatsapp and phone numbers.
  4. mobile app: This has minor impact but yet again this shows their intensity of reaching out targeted audience.

In conclusion AAP played well their game in beating BJP or any other in this area. A group of more or less 10 people would have worked for all this very effectively. I think BJP should start embrace some tecno-saavy volunteers to step up their game. Otherwise as India progresses towards more internet penetration, BJP will face lot of difficulties in fighting AAP’s online game.