Monday, March 30, 2009

"billu barber" and "chandnichowk to china"
are the two movies out of many recently i have spoiled my hard earned money on ....

most hyped with biggest stars but like what u will say to a diwali cracker which doesnt crack at last hindi we say fuss patakha :)
that's what i say them at my home ..

when i read srk's interview he told that he have not seen his movies from long as he wants to save his time and work more he will watch all of them when he'll be old..but i think he shd watch them at least so that he can keep working till he become old..

it shd not be his and his only advertisement and his personal problems solving platform on which we are wasting our time and money ..

now a days u will see low budget movies like dusvidaniya, wednesday , and like are mush better at giving u sth in return of 3 hrs than these big movies i have now stopped askig for first show tickets now i read reviews then only i go for a movie...

other places r thr where u can boast --pl spare them

This is an incident i thought i would fight back at the same point but could not muster enough courage to do so and repented afterwards ..i was in train coming from delhi to mumbai in rajdhani ..there were a few middle aged men with me in same compartment interacting singing and little light chat about everything starting from politics to food to places to delhi and to US even . in that small compartment ..
then came our dinner time ..waiter as usually came and asked for food ..he brought food then suddenly one man out of the ones sitting around me, shouted that he needs a tablet for stomach ache ..and at the same moment he became center of attention for everyone (as he must have wanted ) then waiter came and asked "sir do u need it "
he said "no not now" the food quality was so bad that he might need that in future :)
that's what u call punjabi from delhi first time out of home.
but things did not end here as he started with kacha rice then hard chapati and kept on picking one item after other ..
and simultaneously kept us fully informed of who all he know in politics which position he can just make a call and that waiter is gone ...and so on
see at this time ppl like us sometime start thinking that Are we some inanimate objects eating same thing so casually which he is complaining so much
or we are so dumbed by situations to say anything
or we actually are wise enough to keep quiet finally what i fond better to believe

but he went on like this ..scene becomes more interesting when other ppl sitting nearby who were not at all complaining anything a few minutes before started fulfilling their long craved need for recognition ..a lady at once told "oh bhaisaab take my rice if its so poor"(so caring was she for an unknown boasting man) ...a man asked that he should complain as its their insult (i thought in india this must be his first day)

then last blow hit the respect of man when the waiter came and he asked for water and that arrogant waiter asked for advance money from civilized man in my compartment ..
He at once made issue of it asking for a complaint book yelling at him ...telling it was their insult was asking money in advance proves that waiter is considering them cheap enough to run away before paying from train that i don't know how people draw such big conclusions from these things ...

now issue raised waiter started apologizing as one complaint means he is lost and may be detained ..he called senior old waiter he started putting his head in the man's feet ...asking for mercy ...but this did not satisfy the man
he then was left with ending the matter with a show of magnanimity of his heart ..he said it was he only now forgiving both of them just because old waiter came and apologized otherwise they don't deserve any ....

so i thought sometime some ppl are left with a few places and a few ppl they can boast in front of and they dont spare them ...

Tuesday, March 17, 2009

good code-- traversing process list

#define for_each_process(p) \
for (p=&init_task;(p=list_entry((p)->,struct,task_struct,tasks))!= &init_task;)

here i wanted to traverse task list from init_task to last task in circular linux process linked list ---
now i started with p=&init_task -- and if i dio it casually i will put the condition that
p!=&init_task but by doing that it wont go inside the loop even once---

what they have done is -- taken p=&init_task and while checking first condition itself incremented the p and chaged it to the next process and then compared it --Good one --

no doubt we too have a solution that is to start with the 2nd node only that is p=&init_task-> as p's initial value...

but it was good hmmm!!