2014 – What I learned

  1. Maintaining fitness is easy. The best way to do this is to register for at least a couple of marathons / 10K runs. Compared to a few years ago, most cities now host these events many times a year. Sometimes, you need that extra motivation so that you don’t go on vacations (from running). I participated in two 10K runs and three half-marathons. That made me run 602 Kms this year. It seems so less now! And yes, tracking your workouts are important so that you compete against yourself. A good app like Endomondo helps. And the most important rule I have set; do not set a time for working out, rather set the minimum number of workouts for a week. My number is 4 per week (minimum).
  2. Discipline is hard. Like getting up at 5 AM in the morning.  Like trying to have cold shower all through the year. Like trying to write a blog post at least once in a week. Like trying to cycle to work all year. Discipline will be top priority for the next year.
  3. Change is required. Every once in a few years, you get used to your job so much that eventually, a feeling of stagnation creeps in. You want to change the situation. But every day, you say you’ll do it tomorrow. You have so many reasons, that you’re not prepared enough for interviews, that may be things will improve at your current job, that you have a big event at home coming soon etc. Now I’ve finally learned that you should just take the leap and forget about everything else. One day, I just drove my car and attended a walk-in interview with no intention of even joining that company. That brought me out of my slumber and has put me in a better situation today.
  4. Not being mean is necessary, not just useful. A lot of times, the meanness of others entices you to reply with meanness. And almost always, the negativeness that comes out is detrimental to oneself. OK, enough philosophy. Lets just say that “not being mean is necessary”.
  5. Karmanye Vadhikaraste, Ma phaleshu kada chana
    Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani
    The famous verse from the Bhagavat Gita is a great guiding principle. It says one to do his duty and not think of the reward. This year was tough for me during various times. The above guideline kept me going during those times. (And allowed me to remain an atheist. I saw so many people resort to God during those times. Good that God gives strength to them.).

I feel good to know that life can be re-purposed into a constantly improving experiment rather than just a purpose-less decay. I had to say that because I turned 30 this year and am compulsorily supposed to get those thoughts.

2015 should be made better. Happy new year.

Thirunelli to Murappilangad, Nov, 2010.

This one’s an old draft from 4 years back about a beautiful cycling trip. I don’t know why I had not posted it though.  I reproduced it here without any new changes. The post though ends abruptly for reasons I don’t remember now.

BTW, All the awesome photos thanks to Sandeep.

Wayanad Kannur Cycling

It was on a Friday night that Juergen, Sandeep and I took a bus from Bangalore to Thirunelli, a small village surrounded on all four sides by lush green hills, in Wayanad in Kerala. While Juergen would be with us for the next two days in Thirunelli experiencing village life and trekking, Sandeep and I had some bigger plans. Suraj would be joining us the next day, Saturday.

Saturday, we went around the village, the forest which is just next to my uncle’s house and the small river which runs through the valley in the village. On the same day, we also took permission from the forest office for trekking. On Sunday, we trekked straight up some 7 kms and reached Brahmagiri peak, which is on the border of Kerala and Karnataka. A green vine, a shield tail, a couple of wild squirrels and a few elephants far far away were all the wild animals we could spot. Despite the constant attack by the blood sucking leeches, we came back pretty much unscathed; reason being the use of snuff mixed in oil. Now it was time to sleep and get ready for the big thing.

Kerala Karnataka Border, Brahmagiri Peak

Before all this, on Friday evening, I left office early, bought a box about 4ft x 3ft x 1ft wide for about Rs.10 so that I could pack up the most important thing for our trip. Sandeep had finished his packing on Friday itself. Suraj built a new one from old parts. Monday morning, I, Suraj and Sandeep were ready with our bicycles and a target of reaching the Kerala coast.

The journey started at 10 AM with a 20 km ride through the elephant infested forest’s curving, canopied roads. After a brief halt for lunch and then due to rains, we started again and reached an unexpectedly beautiful place called Boys Town! Here was a junction where 3 roads met, a bus stop neat and clean in one corner and a tea shop opposite the bus stop. Wherever our eyes could see, there were tea estates. It had just stopped raining and the sky had opened up quite a bit. As a result the contrast between the bright green estates, the tar black roads, the blue skies the brightly painted brick red bus stop was pleasing to the eye. One of those roads went down to a place called Kottiyoor which was at the bottom of the hill. We didn’t intend to go there yet since we had other plans. We just went to a view point close by from where we could see a waterfall, the splendid forests of Wayanad and all the hills which we might have crossed to reach this place. At about 4.30 PM, we started again towards a place called Kuttiadi. Here we made an exceptionally terrible calculation that we could reach the place in 2 hours based on the assumption that the place is 35 kms away. Probably I am to blame here considering that I was making most of the assumptions. 2 hours later, we had climbed up and down four hills and our progress was just 15 kms. The sun had long switched off and our brains too were about to. We even considered sleeping in a bus stop when a few passers by suggested that we try our luck at a village 2 kms away. A man in white shirt and a white shawl showed us the way to a 135 year old house built by some British officer of then called William Logans. Only the 3 of us would be the guests there. With no people to be seen around, this was a classic ghost house in the middle of a forest. That night, we slept like dead.

Cycling through Wayanad Wildlife Sanctuary Cycling through Wayanad Wildlife Sanctuary

Morning came, we cycled another hour, climbed up a moderate hill and when we reached the top, it was time for collecting the reward. We were at the edge of the western ghats. In front of us, the hill would abruptly drop into sea level. 10 hair pin bends on the road lay ahead ahead of us and from where we stood, we could see the beautiful road turn, drop, turn and drop. After getting ourselves etched in Sandeep’s camera, we made a dash down the hill. No more pedalling but just controlling the handles, we glided down the hills turning left and right, at speeds close to 60 kmph. After some 10-15 kms of high adrenaline rush down the hills, we reached flat roads which meant we were closing on the sea. Cool weather at the hills was past us and we were now in hot, humid Kerala. A light breakfast, bad roads, ruthless traffic and a few liters of sweat later, we were looking at the sea. Oh, what a feeling! To cross hills, to ride so far and finally reach the sea. To just think that this would have been yet another usual day at office if not for a small idea to do such a thing. To look at the sky and think of how much it changed as we travelled, from clouds to rains to clear blue skies at the edge of the sea. To just look at one’s own legs and feel a certain amount of pride. To think of human endurance. To be with people who share your ideas. To live. We continued our journey along the coast towards talicherry since Mahe had nothing but wine shops and petrol bunks.

After a night’s sleep at a pretty luxurious hotel, we started Wednesday morning towards Muzhappilangad. After 10kms on the highway and another 2 km through coconut groves, the road opened into a wide wide wide expanse. What a beach! Ride the bicycle on the beach and the tyres don’t sink in the sand. It’s a drive-in beach. Splashing water on both sides, we rode our bicycles through the beach.

Finally, the beach. Finally, the beach.

On Running

I have always liked running. I loved to run the 3.6 kms around Kukkarahalli lake in Mysore. The 8 kms run up Chamundi hills in Mysore with Suraj was my greatest challenge until a few years ago. Once in a year, I used to run the sunfeast 10k (now TCS 10k) and I had completed the BSNL 21K as well. But I still had my doubts about running. Partly due to people-talk, I was thinking in fact that running may wear off my knees.

Running becomes enjoyable once you develop endurance
Running becomes enjoyable once you develop endurance

I still couldn’t keep myself off running. Last year, I ran at the TCS 10K again with knee supports. I thought that my car’s really hard clutch had caused the knee injury (disproved later after I started running; not running was the cause of weak knees). I then went on a cycling trip to Ladakh last year when fitness levels were at an all time high. I have noticed that fitness is kind of an addiction. If you take it seriously once, you will be a fitness buff ever afterwards. So naturally, after coming back from Ladakh, I did not want to lose momentum and participated in the thonnur lake duathlon (40km cycling + 10km running) and finished with a decent time. But things slowed down a bit after that for the next half year or so.

The TCS 10K run is a awesome event in the sense that it is the most popular event of Bangalore, sees a huge participation and hence creates a large number of fitness buffs who eventually motivate others. You could call it peer pressure of the good kind. So, it happened with me as well and I registered. A lot of my friends were registered as well. As I had taken 70 minutes last year, I started training with a target of 60 minutes. The event happens during the hot month of May every year and some training is definitely required.

TCS 10K, the best known run in Bangalore
TCS 10K, the best known run in Bangalore

Around the same time, based on Venu’s recommendation, I happened to read ‘Born to run’ by Chris McDougall. Now, this is the kind of book that can change your outlook towards running. It speaks of the Raramuri (Tarahumara), a 500 year old tribe in Mexico who are ultra runners. Unlike the Kenyans and Ethiopians, they don’t run much in competitions but they just run as part of everyday life. These people showed to the world that humans were designed to run. Probably humans are the way they are because they ran. They ran to hunt food, they ran to live. Running is something embedded in our nature. Probably that is why so many people love running so much in spite of the physical stress.

So, I began training for the TCS 10K with a new found purpose. The purpose was just to go back to the roots of human evolution; to make running an intrinsic part of me. The 10K was supposed to be a stepping stone towards that purpose. And hence began my training experiments.

Training Plan
The marathon training plan – Derived from Hal Higdon’s plan

Technology is of great help in some ways. Google maps and phone apps like Endomondo allow you track distance, speed and use these data to improve oneself over time. Loads of information at runnersworld, livestrong etc help develop better running techniques, warmup and stretch routines. HalHigdon’s training calendars help you plan your runs.

But there is one place where technology is of not much use, shoes. I now run just shy of barefoot. I use decathlon’s newfeel shoes which cost just Rs.500 and I have even removed its cushions. Every small stone on the roads are now felt by the feet. The first few days used to hurt a bit but now the feet and ankle have well adapted. My old Nike shoes are gathering dust these days.

The cheapest shoes seem to be the best

And have I improved my speed and endurance? Results speak.

Improvement from March to June
Improvement from March to June

In March, I could hardly run 3kms at a stretch. On July 26th, I completed the 21 km ‘The Run of Raramuri Tribe’ in 2 hrs 20 minutes in gruelling terrain. Not a time to boast of but I have now unlocked the secret ingredient to running long distance. Practice, Practice and Practice. If it is possible to improve speed by 25% in 5 months and increase distance from 3kms to 25kms in 5 months, imagine what can be achieved in an year.

A key point is to note this: science says that the human body is designed to run and hence age will never be a factor (at least until your are 65. extreme case: Fauja Singh). The idea therefore is to keep running and keep learning new things about running. For example, interval trainings and tempo runs help improve speed and increase lactate thresholds. The most important thing is to practice consistently. When you make running an integral part of your life (just like brushing your teeth), then you automatically start running better.

Finally, important points to be happily running and being fit at the same time:

  • Remember that running is why our body is the way it is. If you care to clean your teeth, you should care to run as well.
  • Run at least 3-5 times a week. You will automatically be compelled to do other stretch exercises. You will also automatically eat better as running will demand that from you.

I plan to post again after the Kaveri trail full marathon this September.

A travel in time to Gundimane

I sit and listen while Ganapathy uncle and his father speak about their land. It seems their ancestors used to live in a vast forest area called Bheemeshwara. Pepper was the main produce and it probably reached the kings of then. The grinding stones can be found in the forests even now. But nobody lives in the deeper forests now. Those were abandoned long back. Nevertheless, Gundimane feels just as remote to the normal city dweller. When you reach here, you immediately feel that you have reached the land of trees, spices and kings.

Gundimane house in the midst of a forest

A few decades back, a temple village called Sigandur was about 5 miles from Gundimane. People used to walk and reach the place. About 60 years back, the river Sharavathi was checked by a huge dam and the backwaters submerged large swathes of land and Sigandur suddenly became 75 Kms by road. Now, mobile phones have decreased the distance by catching signal from Sigandur’s towers. How strange is the abstract concept called distance! Talking of distance, Gundimane is about 20 kms from Jog falls.

Gundimane balcony

I sit here in the balcony and try to separate out the bird songs from one another and from the sound of insects. I realize that this is an incredibly difficult task. I give up after every 5-6 minutes. Some sound like chimes, others knock on the wood. The peacock though is loud distinct and clear. This musical play happens here every day.

Sharavathi Backwaters

A short walk from the house towards the hill brings the entire stretch of Sharavathi backwaters in front of us. At one end is the dam and at the other end are the tree lined shores. The islands surrounded by the blue waters are a beautiful sight.

A few minutes after sunset, just when the sky turned dark, there was a faint glow at the top of one of the hills. First, it looked like someone lit a campfire on top of the hill. After a few seconds, it looked like a tree was burning red. Then slowly, the circular shape of the moon became visible. A stunning sight but I do not have the poetic words to describe this.

The food cooked by Ganapathy uncle’s wife is priceless. It has all the culinary history of the place and the priceless ingredients of the region embedded in it. To this, if you add the amazing love and hospitality of the hosts, you get food unlike any other in the world.

Gundimane temple

Ganapathy uncle’s father took us to the local village temple through the forest road. The priest’s wife treated my wife like she was a queen who had come down from the city. Probably it is normal for them to treat guests as Gods but we started wondering if we had travelled back in time by a few centuries. The temple’s idol being a few centuries old, the simplicity of the people and there being so few people around the place definitely gives the impression of a place lost in time.

Evening, sitting in the train, I was already planning about my next visit to this land where time stays still.


Why can’t I be there again?

Where only the sun woke us up,
The peaks showed us the way,
The sight of people cheered us.

Where life was simple,
There was happiness in the smile of an old man,
There was satisfaction in the face of every traveller.

Where the road ahead was always unknown,
The days were always difficult but never impossible,
The goal was never bigger than the journey.

Or maybe I do not have to go anywhere
Maybe it is not about the place itself.
Isn’t this all in the wanderer’s mind?


Hosting this blog on openshift

I’m sure there are hundreds of posts already on how to do this. Openshift has a one click installation as well. It’s ok. I’ll still write my take on it. The idea is to learn something about how openshift works and how to deploy a simple application on the cloud. A one click install does not provide learning opportunity. However, taking the longer route and doing a few mistakes in the process does exactly that.

Let me make it clear, this is not written after I completed the process. Instead, I am yet to start the process. By the time I finish, I should be finished with the porting of my existing blog from a rented server space to openshift cloud. I owe a lot to this blog by amit shah apart from the documentation found on openshift and stackoverflow.

And to those who don’t know what is openshift, it is just like amazon AWS.

What is required before you start?

  1. Some knowledge of GIT
  2. A user account in openshift.

Before you start..

  1. Create an account in openshift, go to the settings page and create a namespace as well.
  2. Install all the tools that are required for deploying your application (in this case, a wordpress application) into the cloud. Installation of ruby, git and rhc are documented in the following openshift documentation.
  3. I also prefer to have these things done in a linux environment as everything just works out of the box (or rather command line). In windows, I normally have to set a whole lot of environment variables, download putty for ssh related stuff and so on. Anyway, it is a personal choice. You could try cygwin though I haven’t tried it myself in this particular case.
  4. Once those are installed, it is time to setup SSH keys. This allows you to remotely access your application. On linux, all you have to do is run
    • rhc setup.
  5. On windows, you will have to play around with putty first. A detailed explanation is given here: Openshift Remote access.

Prepare backend…

  1. First, type
    • rhc cartridge list
    • This gives a list of all the cartridges that are available for you to create apps. Cartridges are nothing but platforms; ex: php, node.js, python, ruby etc. You will have to use the correct version numbers in the below commands to get things working correctly.
  2. In the terminal, just type the following:
    • rhc app create -a xyz-t php-5.3
    • where  xyz is the name of the application and can be anything. This will take a few seconds and will create an application on the server. Also a copy of the code for your application will be checked out locally into a folder with the same name as your application.
  3. Now, add mysql cartridge to this app using the command:
    • rhc cartridge add mysql-5.1 -a xyz
    • Note down the credentials that are output by the terminal somewhere.
  4. Now, add phpmyadmin which is just like the previous step:
    • rhc cartridge add phpmyadmin-4 -a xyz
    • The credentials should be the same as the previous one.
  5. Now login to the following link: https://xyz-namespace.rhcloud.com/phpmyadmin/ . This is your own phpmyadmin page. Replace the app name and namespace with your own. Create a new user and a database there. The database should have full privileges for the user.

Now deploy wordpress…

  1. Download the wordpress bundle from WordPress.org. Unzip that file and place the contents of that file into the php folder of your app folder. It should look similar to the following example.
  2. Now open wp-config-sample.php file in a text editor and fill in the details there. You should use environment variables provided by Openshiftto do this. So, the contents would like this:
    • define(‘DB_NAME’, $_ENV[‘OPENSHIFT_APP_NAME’]);
    • define(‘DB_HOST’, $_ENV[‘OPENSHIFT_MYSQL_DB_HOST’]);
  3. Also generate the secret keys as described in the
  4. In case of any problems, you could look at the wordpress 5 minute installation help.
  5. Now create/modify the following file: .openshift/action_hooks/deploy and make it look like the following: WordPress-example-deploy.
  6. Next, push your repository to openshift:
    • git add –all
    • git commit -a -m “Type some commit message here”
    • git push -u origin master
  7. That’s it. Your wordpress blog is now almost ready. In the browser, type <app>-<namespace>.rhcloud.com. Replace <app> and <namespace> with what you have given.
  8. Now, enter all the details that is asked there. Your blog is now ready and you can start adding posts/pages.
  9. If you already have a blog somewhere else, you can now import the contents from there to your new installation using the tools provided in the control panel.
Alias and custom domain
  1. In the wordpress control panel, in the general settings tab, change the wordpress address and site address to your custom domain.
  2. Type the following command so that your custom domain is shown:
    • rhc alias add xyz www.ashwinupadhyaya.com
  3. In your custom domain provider’s cpanel, you will have to change the cname so that it points correctly to your <app>-<namespace>.rhcloud.com.

There are further things to be done in order to gain full functionality. For example, facebook integration, change of uploads directory etc can be done. I’ll not cover those here.

And yes, by the time I finished this blog, I am now on openshift.

Total time taken: 6Hrs including time taken to write this blog. So, provided you are familiar with web tools, it is not really hard to setup a blog on the cloud.

Experiment, Explore, Enjoy