Monday, March 19, 2012

I am a big girl now!

Rewa has been asserting herself as a big girl lately. From preferring to eat out of her own hands, to putting bindis, she is showing signs everywhere. She was refusing to sit in the "babies' swing" (the chair kind) for quite some time. She would go hysterical. Yesterday I tried the >5yrs flat-board swing with her. And, she just loved it. She laughed and said "pir se" (again please) :) We don't have to hide dustbin from her, infact she identifies kachra on her own and goes and dumps that into the dustbin. When asked if she is a "good girl" or "bad girl", she says "gu gil" and choses "bii gil" between "small girl" and "big girl"!
My little girl, please remain little for a while, Mumma has not had enough :-x

Friday, March 16, 2012

Sweet mistakes

I love the way Rewa says some words wrongly. I am tempted to speak the same way though I know I need to correct her :)
iya (her own name) which became eba recently,
anna (anda)
gigya (gir gaya)
naiii giraaa (nahin gira)
kaiya (kela)
kiyols (crayons)
dudu (milk)
chuchu (susu)
au buton (more butter)
baiji which bacame banoon recently.
beba (zebra)

List is never-ending. Find more details in a miraculously staged video here:
http://youtu.be/f5HmemEFxNM

Monday, March 05, 2012

When she takes over...

I was trying to make Rewa eat chapati with dal/sabji instead of having it plain as usual. I tried all sorts of things, tried to cajole her, ate it myself, acted yummmyy and so on. Nothing worked. She would spit it out every time. Ultimately I got tired, put down the plate and gave up.
She saw me sitting there quietly for a moment. Then she went and picked up the chapati, tore it, dipped and rolled into the daal, and put into her mouth, saying "Yummmyyy" :) She finished a whole chapati like that!

Tuesday, April 27, 2010

Nishkama Karma

I am reading this book called "The Difficulty of being Good" by Gurcharan Das. In the book, he discusses the merits and non-merits of the concept of "Nishkama Karma" or being a "Karma Yogi", as put forward by Krishna in Gita.
He raises some interesting points. Like, the good think about doing something without caring for the fruits is that you can lose yourself into the task in hand, without getting diverted by thoughts about whether you will be successful, how your work will pay back, what will be the consequences. This can result in a better concentration and efficiency in the task. On the other hand, not thinking rightly about the results, and stifling your emotions to perform your duty can be dangerous. As, Nazis happen to justify executing millions of jews as "performing their duty for their country", although the task in hand seemed hateful. So, perhaps more jews would be saved if the individual officers worried about the consequences, and hateful nature of the task.
My take on this is, once you have decided this is what you are supposed to do, or this is what your duty is, you should then become a "karma yogi". Because doing anything with full heart is better than dillydallying whatever the nature of the task might be. Although, a difficult thing to do...

Monday, October 19, 2009

Kayaking in Ganga

Just back from a roller-coaster holiday in the roaring waters of Ganga!
We enrolled for a basic level course on "Kayaking", yes the exciting cute colorful boats that run along with rafts for rescue.

We stayed in a most beautiful camp on white sand beach of Ganga. Camp was some 16-20 kms from Rishikesh. It could be reached only by a boat from the road. That gave it an exciting feeling of remoteness. We reached the camp in the evening, unpacked, had food, and enjoyed the camp-fire.


Next day Dharmendra, our instructor arrived with the gear. Things started with learning the 5 basic necessities for a kayaker - kayak, paddle, helmet, life-jacket, and the skirt. We learnt simple paddling, how to keep the kayak steady, and how to paddle upstream. We were also shown how to exit from the kayak if it topples over - the wet exit. I must say, it was all more difficult than I had imagined.


Second day morning... Trying to catch some sun, relaxing our torn muscles, we were praying for Dharmendra (our instructor) to get a little delayed :)


But he was as always punctual, and had no mercies. We learned to ferry across the river the second day. I liked ferrying. In a flowing river, if you want to reach the opposite bank, you have to take a sort of triangle (remember school day physics?). This, unlike paddling upstream, was more of balancing than muscle power. We were also taught "T-rescue". This is a technique where you can get your kayak straightened with the help of another kayak, without exiting from it. Saves a lot of time, which will otherwise be spent in emptying your kayak of water and setting it up again.

Third day, and we were doing much better in taking our kayak where we wanted it to go. And, were ready to do peel into and out of "eddies". This was a little risky. Including me, most of us toppled during this practice. We were introduced to a third and the optimal way of reinstating the kayak on topple - the eskimo roll. Though, none of us could get it going correctly :( Chetan tried most sincerely. One signal from the instructor, and he would topple his kayak! And, then try to come back doing the roll. I was pretty uncomfortable toppling myself.

From Shivpuri


Fourth day, and we were pretty much enjoying the paddling. We went to our first rapids today - the "Shivpuri rapids". I came out unscathed :) Chetan had a pretty difficult experience. He toppled, and had no place to set it up again. Dharmendra and he somehow managed.

Fifth day was the most exciting one. We went for a 10Km river run, starting from the "marine drive". This had about 4 distinct rapids. One of them - the 3 blind mice was a 2+ rapid, consisting of 3 rapids one after another. All of us toppled in this one by one, crossed one or more rapids in our life-jackets, rocketing on the waves. Pretty horrifying experience..., though seemed pretty exciting once rescued :)
From Shivpuri


In all it was a lifetime experience. I hope I continue kayaking in future too!
From Shivpuri


All photos

Monday, July 13, 2009

DevD and Gulaal

Anurag Kashyap's movie grows on you. For both DevD and Gulaal, I did not like them that much on first viewing. Probaly, shocked by the "randomness". But, the scenes kept coming back to my mind. And, DevD felt absolutely brilliant on second time. Haven't had a second take on Gulaal yet :)
And, music..., don't know how Anurag Kashyap manages to do this every time! If you haven't yet heard Gulaal's music, please do this the first thing. Absolutely "Aarambh hai Prachand!"

Thursday, May 14, 2009

vim tip: generate get-set functions

Been programming in java now for some time. And, as it happens java needs a lot of get-set functions. Yes, I know you can generate them easily in Eclipse, but as it happens I love vi (or may be I am too lazy to switch ;)) So, here is a tip for all those vi lovers out there. To generate get set functions from your variable definitions:

1. Write all variable definitions.
Example:

1 public class KeywordDimension extends Model implements Serializable
2 {
3 private Long m_vendorId;
4 private Long m_keywordId;
5 private String m_vendor;
6 private String m_keyword;


2. Copy them once more below where you want to generate get-functions.

1 public class KeywordDimension extends Model implements Serializable
2 {
3 private Long m_vendorId;
4 private Long m_keywordId;
5 private String m_vendor;
6 private String m_keyword;
7
8 private Long m_vendorId;
9 private Long m_keywordId;
10 private String m_vendor;
11 private String m_keyword;


3. Run this substitute command in vi:

:8,11s/private \(.*\) m_\(.*\);/public \1 get\2() \r {\r return m_\2;\r }/gc


4. You will get this:

1 public class KeywordDimension extends Model implements Serializable
2 {
3 private Long m_vendorId;
4 private Long m_keywordId;
5 private String m_vendor;
6 private String m_keyword;
7
8 public Long getvendorId()
9 {
10 return m_vendorId;
11 }
12 public Long getkeywordId()
13 {
14 return m_keywordId;
15 }
16 public String getvendor()
17 {
18 return m_vendor;
19 }
20 public String getkeyword()
21 {
22 return m_keyword;
23 }


4. Now run this to replace getk by getK (capital) for example:
:8,23s/get\([a-z]\)/get\u\1/gc


You get this:

1 public class KeywordDimension extends Model implements Serializable
2 {
3 private Long m_vendorId;
4 private Long m_keywordId;
5 private String m_vendor;
6 private String m_keyword;
7
8 public Long getVendorId()
9 {
10 return m_vendorId;
11 }
12 public Long getKeywordId()
13 {
14 return m_keywordId;
15 }
16 public String getVendor()
17 {
18 return m_vendor;
19 }
20 public String getKeyword()
21 {
22 return m_keyword;
23 }

Voila! Just two vim substitutes and you are done! Repeat similar stuff for sets, replacing get by set, and substituting by assignments:


:25,28s/private \(.*\) m_\(.*\);/public void set\2(\1 \2) \r {\r m_\2 = \2;\r }/gc
:25,40s/set\([a-z]\)/set\u\1/gc