Saturday, December 26, 2015

Node.js what is that

What is Node.js

Well many of us (basic programmers know JavaScript) and node.js is server side java script which is compiled and powered by Chrome's V8 JavaScript engine. It's very simple to start and anyone can learn by putting some efforts on it. I am not yet pro only because of not giving it much attention. But have written few apps in very less time like weekend efforts only. I am going to keep posting more blog in this series simply trying to put more details on various things like frame work used with node.js. 

Things I am trying

 I am going to try with small example from scratch which will be useful to get the feeling of it. you can try downloading it from official web sit i.e https://nodejs.org/en/ . 
I just downloaded from this site and installed on my windows system. I have installed cygwin for my use (just love from Linux). I can simply run the app.js like 

$ node app.js

to start my server. 

Thursday, December 24, 2015

Kitu with eggs



Fun with Eggs!!!

Kitu loves playing with surprise eggs. Today he said me to shoot with video camera and see if something really great comes. And we did it. 

Kitu loves opening surprise eggs and keep watching hours for them on youtube. 

This is really fun seeing his presentation skills and confidence. 

Today's kids are very smart, way ahead of our time. 

Thanks.

Details:

These are normal eggs bought separately from market. I guess these are fisher price eggs. Toys inside are mostly from hotwheels.

have fun. 

Tuesday, July 5, 2011

memory leak in libmemcached-0.25

I was working on client library for some time and realize that its leaking. was wondering if there where any updates on same but my bad luck I couldn't find any. So I end up with two choice, either write my own library or fix the existing one. So I decided to go with second option and here I am presenting a patch for same.


--- libmemcached-0.25.patched/libmemcached/memcached_server.c 2011-07-06 10:07:08.000000000 +0530
+++ libmemcached-0.25/libmemcached/memcached_server.c 2008-11-28 22:50:08.000000000 +0530
@@ -54,12 +47,6 @@
}
else
ptr->is_allocated= MEMCACHED_USED;
-
- //checking for memory leak error here
- if(ptr)
- free(ptr);
-
-
}

/*

This will be helpful to anyone who is trying to use memcached client library in any daemon.

Saturday, May 30, 2009

Travel to Jaipur

This is very interesting story as we all (I , Anurag, Dimpal and Vashanta) were going to abhishek's marriage. As ususal anurag booked the train tickets and we where schedule to reach station. Train was on time and its time told by anurag was 6:00 P.M. So as per indian time we left home 2 hours prior to departure time. We had one big laguage so decided to take a cab. As per mumbai's traffic we took 1 hour to reach Bandra station. Now we have good time to rest and take the refershments. Later in cab wenoticed that train is at 6:50. Oops now we started making fun of anurag as he told us its at 6:00. Any way we are waiting for train to come at Bandra station. at 6:20-23 I went to get some tea and called anurag. "What you want? Should I get a machine made tea?" He replied : "Oye I just saw the tickets and its written BCT". Before to this Anurag along with Vashant went to enquery room for train's platform detail. God knows what did he asked and that person told him "Yes it will come on platform no 1".
Now I reached to Anurag and saw the ticked papaer and its like 1000 Volts of current runs from my vain. I just took that paper and rush to enquery center for train. Oh god its from Bombay central and it will departure at 6:50. Oh God its 6:25. I told ok lets rush and we try to take train either at Dadar or Borivalli. We rushed to taxi stand and asked for Borivalli as train was not stopping at Dadar. That taxi driverasked for 600. Oh These taxi drivers ... some time we fill to say anything to these peoples. Anyway on taxi driver get readyto go with meter.

We are into the taxi now. Every one is very tense as we have to catch the train.My wife was very tense and stated prayering. Evening time and we have very less time. Any way we started and that taxi driver we good. He manages to reach we till Malad and now its huge traffic jam. Now our last hope is about to die. Sudenlly our hero (taxi driver) take a turn and we are out of traffic jam. Good ... there is always hope against hope.

we are again in the quest for train. now time is slipping like anything and so as out heart beat. Still the driver is trying heard to reach us there. Oh god we are about to rach Borivilli station and train will reach thre at 7:27. Its 7:20 now and again we get stuck at Borivilli station's near by. Again out hero showed one stunt and we are about to rach station.

Man we are at borivilli station and Anurag paid him some 220 and we again rush to station. My One sky bag is very heavy and we are trying hard to keep the time with feets. Now we are at platfrom no 8.

Holi shit ... we have to be at platform no 4. Oh god just 1 min is left and now we started rushing towards platform no 4. just crossed platform no 7 and there is an anouncement... "JP Express is arriving at platform no4". Rush anurag rush I said and we almost started running with that big sky bag. ....

Thanks god train was 3 min late so we just entered the platform and train was just about to stop. Luckelly our compartment was in front of us and we all are in.

In this lufe I have never tried this much hard for nay train. There was one time that we thought ... bossits time to say good buy to train and get a cab to Jaipur. But its altimate faith in al-mighty that we got train. Some one said true... everything is possible but you have to try...

we tried and got our train. Such thing can be possible in life also. I am writing this blog whle sitting on my birth and thinking of all time event. Full of excitment.

...

Saturday, October 20, 2007

my first

good start..
finally i also started to do posting on blogs. well this is my first. happy navratri. as this is g8 occession not just for north indian but for all. I am planning to go home on 8th morning. will be returning on 13th.