My Weblog

Blog about programming and math

yatra.com left my family stranded in midnight

You want to book a room in hotel which is fully occupied? No worries. Yatra can book a room for you in even fully occupied hotel. I booked a room in Hotel President in Patna Reference No. 28051438884, Hotel confirmation number: YAT0001458518 for one day from 31-05-2014 to 01-06-2014. Train arrived five hours late in Patna, my mother and sister some how managed to reach Hotel President at 1AM. Now the biggest part of booking plan that there was no booking! The hotel staff were surprised how come Yatra was able to book a room in completely occupied hotel. The staff of Hotel President did not let my family check in because there was no confirmation of booking/payment from Yatra to Hotel. I tried to call yatra.com at 1AM but there was no response because they work from 7AM-12AM. I tried to convince hotel staff but he simply replied that there is no vacant room so we can’t accommodate. I was really worried because they were complete stranger in the city, had no place to stay and next day my sister was going to appear in entrance examination. Some how I managed to call my friend and arranged the place for their stay but the question remains, how is it possible for company like Yatra to behave like this. After looking at their page on facebook, you can see in the review section that there is no happy customer and they don’t allow you to write on their wall. I found couple of links on mouthshut and counsumercourt about their service and customer satisfaction.
I am planning to file a case against yatra.com because it’s not business but fraud. If it’s possible for you then please share this post and spread the word.

June 1, 2014 Posted by | Uncategorized | , | Leave a comment

We, after 67 years of Independence

India has been invaded by many emperors since its inception but if we start looking back from colonial era, it is mainly ruled by British from 1757 – 1947. British ruled only here because of our nature to fight with each other[Battle of Plassey]. We were declared as free country on 15 August 1947 and from that day onwards we stand as one big nation. Did we learn anything from our mistakes in the past we committed. Probably not! Out of these 67 years, Indian National Congress is ruling the country for 48 of the 60 years since independence in 1947. Now below are some facts about how we are doing as a nation or we should be proud of

[1]Scams
We are very good at this and those who raised their voice against corruption is either killed or punished[ Satyendra Dubey and Ashok Khemka]. You haven’t seen enough! Our Minister of Home affairs Sushil Kumar Shinde on coal scam “Earlier, the Bofors was a talking point. People forgot about it. Now it is coal. This too will be forgotten. Once hands are washed off coal, they again become clean.” The union minister later said he was just joking. Certainly, this is joke on us that we elected you.

[2] Poverty
Our 33% population earns less than US$ 1.25 per day while 81 % live on less than US$ 2.50 per day[World Bank]. Quoting from The Guardian “A pledge to eliminate poverty has figured prominently in the election campaigns of all of India’s political parties since the country gained independence in 1947. Yet the ruling Congress party – and particularly prime minister Manmohan Singh, labelled as ‘Mr Silent’ for failing to answer questions on the landmark food security bill – is accused of exploiting poverty rather than putting in place effective measures to tackle it”.

[3] Literacy
The literacy rate in India stand to 74.04% in 2011 and the level is well below the world average literacy rate of 84%, and of all nations, India currently has the largest illiterate population. There are many reasons for this but I have a strong believe that lack of strong will power among political leaders to educate their people is the major reason.

[4] Communal violence
It’s very common among India to have a fight on very petty things. We are still fighting with each other for something happened 500 years ago[ RamJamanbhoomi ] and this led to many unfortunate events including Mumbai Bomb blast, Mumbai Riots and emergence of many terrorist groups. One of our leading political party BJP always promises to construct a temple to Rama at the site. They are still not aware that we have already payed a heavy price and lost many beloved ones!

Now why I am writing this ? Today a political party named Aam Aadmi Party formally launched on 26 November 2012 by Arvind Kejriwal defeated the Indian Nation Congress in Delhi elections. This is certainly not a miracle but because of their dedication to clean the Indian politics. Delhi is ruled by Indian Nation Congress for 15 years and Delhi holds the top position in crime against women. In 2012, We had seen the worst crime in Delhi[2012 Delhi gang rape]. Delhi government and Central government tried to downplay the crime but it was the protest of common man which pushed the government to act fast. It was the anger of common man against the corrupt politicians and promise of Arvind Kejriwal to clean the politics which swept away the Indian National Congress from Delhi. I hope Arvind Kejriwal would fulfill his promise to clean the politics and I will remember this day ( 8 December 2013 ) as a day in history which changed the India and Indian Politics.

December 8, 2013 Posted by | Uncategorized | , , , , | 1 Comment

Mail from Kamlesh Verma

Today I received mail from kamlesh verma and its really hilarious which tempted me to post here. Great prediction for kanya rashi.

मेष
इस साल आपका विवाह योग बन रहा है मगर ज़्यादा खुश होने की ज़रूरत नहीं है क्योंकि आप पहले से शादीशुदा हैं। गणेशा कहते हैं कि इस आफत के लिए आप खुद ज़िम्मेदार हैं। टाइमपास करने के चक्कर में ऑफिस में जिस लड़की से आपने फ्लर्ट करना शुरू किया था, उसे लेकर आप अब सीरियस होने लगे हैं। आपके प्यार में वो लड़की भी इतना आगे जा चुकी है कि आपका तलाक तक करवा सकती है वैसे भी वो घर उजाड़ने के मिशन पर निकली है।
जब-जब आप ऑफिस में होते हैं तो बीवी को धोखा देने के लिए मन में गिल्ट होता है मगर घर पहुंचते ही बीवी की कर्कश आवाज़ सुन, आप सोचते हैं कि ये यही डिज़र्व करती है। बावजूद इसके गणेशा सलाह देंगे कि इन चक्करों में मत पड़िए। ये उम्र आपकी सैटिंग करने की नहीं, कन्यादान करने की है। ज़रा नज़र उठाकर देखिए, आपकी बेटी जवान हो गई है।
सलाह-पांच शनिवार छह कौओं को शहद चटाइए, इससे आपकी बीवी की कर्कशता चली जाएगी।
लाल रंग की गिलहरी को बूंदी का रायता खिलाएं
वृष
31 दिसम्बर की शाम पतले होने का जो resolution आपने लिया था, वो दो जनवरी की सुबह आलू के परांठे खाने के साथ टूट जाएगा। तीन जनवरी की शाम दोस्त के साथ टहलते हुए आप उसके कहने पर मोमो खा लेंगे। पहला मोमो मुंह मे लेते ही पतले होने का आपका resolution आपको धिक्कारेगा मगर उसे इग्नोर कर आप एक और प्लेट का ऑर्डर देंगे। दस जनवरी की शाम बीवी आपको बताएगी कि रनिंग के लिए आपने जो नया ट्रैक सूट खरीदा था, बिना एक बार भी पहने उसे चूहा काट गया है।
बीवी पर लापरवाही का इल्ज़ाम लगाते हुए आप उससे झगड़ा करेंगे, जिस पर बीवी के हाथों आपकी उन स्पोर्ट्स शूज़ से पिटाई हो जाएगी जिन्हें आपने ट्रेक सूट के साथ खरीदा था।
सलाह-किसी गरीब आदमी को रा वन और रामगोपाल वर्मा की आग की डीवीडी भेंट करें, उसे देखने के बाद वो आपको इतनी बद्दुआएँ देगा कि आप खुद-ब-खुद पतले हो जाएँगे।
मिथुन
बाकी सालों की तरह इस साल भी आप कुछ ख़ास नहीं उखाड़ पाएंगे। ऑफिस में आपको बॉस से डांट खानी पड़ेगी और घर पर बीवी से। न तो रिश्तेदार आपको भाव देंगे और न ही मांगने पर बच्चे पानी का गिलास। जून आते-आते आपका पालतू कुत्ता भी आपको देखकर पूंछ हिलाना बंद कर देगा। इस सबसे तंग आकर आप आत्महत्या करना चाहेंगे और जान देने के लिए एक दिन टीवी पर ‘मौसम’ की डीवीडी लगाएंगे। मगर प्रिंट ख़राब होने के कारण वो चल नहीं पाएगी। गुस्से में आप अपने हाथ की बनी चाय पिएंगे मगर उससे भी आप मरेंगे नहीं बस मुंह से झाग निकलने के बाद बेहोश होंगे।
सलाह-सात मंगलवार किसी लाल गिलहरी को बूंदी वाला रायता खिलाएं, लाभ मिलेगा।
कर्क
पिछले साल की तरह ये साल भी आप फेसबुक पर बैठ कर बर्बाद कर देंगे। दूसरों की वॉल से अच्छे-अच्छे स्टेटस चोरी करने, उन स्टेटस पर आने वाले लाइक का घंटों इंतज़ार करने, हर फोटो में दोस्तों को टैग करने, स्कूल में साथ पढ़ी लड़कियों के प्रोफाइल ढूंढने और एक्सेप्ट न किए जाने की उम्मीद के बावजूद उन्हें फ्रेंड रिक्वेस्ट भेजने में आप अपनी ज़िंदगी का एक और साल तबाह कर देंगे।
फेसबुक पर बैठे रहने के चक्कर में आप पूरी सर्दी बिना नहाए गुज़ार देंगे। इसी चक्कर में मां-बाप से गालियां खाएंगे मगर आप इतने ढीठ हो चुके हैं कि इन गालियों का आप पर कोई फर्क नहीं पड़ेगा। सारी गालियां एक कान से होते हुए बिना दिमाग में घुसे दूसरे कान से चुपचाप निकल जाएंगी।
सलाह-आप जैसे ढीठ आदमी को सलाह देने का कोई फायदा नहीं है।
सिंह
नौकरीपेशा लोगों के लिए ये साल काफी फलदायक रहेगा। सरकारी नौकरी में हैं तो दो नम्बर का पैसा बनाने का अच्छा मौका मिलेगा। प्राइवेट में हैं तो बॉस की लगातार चमचागिरी करने के चलते आपकी भारी तरक्की होगी। आपकी सैलरी बाकी लोगों से ज़्यादा बढ़ाई जाएगी। आपको ऐसे काम में लगाया जाएगा जिसके लिए न्यूनतम बुद्धि की आवश्यकता होगी। आपका काम बाकी लोगों की बॉस से चुगली करना है और वो आप पूरी ईमानदारी से करते रहें।
गणेशा सलाह देते हैं कि जून के बाद आप थोड़ा सतर्क हो जाएं क्योंकि इस दौरान बॉस का एक और सिफारिशी टट्टू ऑफिस में ज्वॉइन करेगा। तब आपको नए सिरे से खुद को प्रूव करना होगा। मगर घबराएं नहीं, खुद पर विश्वास रखें। हर आदमी के पास गिफ्टिड टेलेंट होता है। बॉस के सामने दूसरों की चुगली करने के लिए नए आदमी को एफर्ट करना होगा जबकि ऐसा करने का आपमें पैदाइशी गुण है।
सलाह- ‘लगाई-बुझाई’ की अपनी प्रतिभा को निखारने के लिए रोज़ाना तीन हिंदी सीरियल देखें।
कन्या
आपकी राशि भले ही कन्या हो मगर आपकी ज़िंदगी में कोई कन्या आती दिखाई नहीं दे रही। मगर इसमें किसी का कोई कसूर नहीं है, सिवाए आपके। करियर सेट करने की उम्र में आप लड़कियां सेट करते रहे और जब बारी लड़की सेट करने की आई तो आप करियर सेट करने में लगे हैं। आपकी अरेंज मैरिज हो सके ऐसी आपकी इमेज नहीं है और आप लव मैरिज कर सकें, ऐसी आपकी शक्ल नहीं। गणेशा कहते हैं कि ये स्थिति अभी कुछ और वक्त तक बनी रहेगी और 2017 के बाद जाकर आपका विवाह होगा मगर तब भी कन्या मनुष्य जाति से होगी या नहीं, इसकी गारंटी गणेशा नहीं लेते।
सलाह-इक्कीस सोमवार सुबह-शाम खुद को दस-दस थप्पड़ लगाएं, इससे उन लड़कियों के मन को शांति मिलेगी जो कभी आपको पीटना चाहती थीं।

तुला
वक्त आ गया है कि तुला राशि वाले अपनेआप को लेकर ग़लतफहमी पालना बंद कर दें और थोड़ा व्यावहारिक हो जाएं। सिर्फ आपके ये मानने से कि मैं बहुत होशियार हूं और ज़िंदगी में बहुत अच्छा डिज़र्व करता हूं, दुनिया को घंटा फर्क नहीं पड़ता। टीवी डिस्कशन्स में आने वाले गेस्ट को मूर्ख मानने से आप खुद होशियार नहीं हो जाते। दसवीं पास दोस्तों को अपने अल्पज्ञान से आतंकित करने से कुछ पल्ले नहीं पड़ने वाला। अब भी वक्त है, संभल जाइए। आपके दोस्तों के दो-दो बच्चे हो गए और आपकी अभी शादी तक नहीं हुई, ये बात अलग है कि बच्चे आपके भी दो हो चुके हैं जिनमें से एक की तो खुद आपको भी जानकारी नहीं है।
सलाह- खुद के कमाए पैसों से एक अंडरवियर खरीदने बाज़ार जाएं, अपनेआप अक्ल ठिकाने आ जाएगी।
दही में तीन चम्मच चाय पत्ती मिलाकर पंडित जी को पिलाएँ
वृश्चिक
वृश्चिक राशि वालों का इस साल भाग्य खूब साथ देगा। खरीदारी करने बाज़ार जाएंगे तो सेल में कुछ सस्ते स्वेटर मिल जाएंगे, बुक करवाने के दो दिन बाद सिलेंडर की डिलिवरी हो जाएगी, फुटपाथ से खरीदी पाइरेटिड सीडी का प्रिंट अच्छा निकलेगा, आटे की थैली में साबुनदानी का मुफ्त स्टैंड निकलेगा, जिस गाड़ी में सफर करेंगे उसमें सुंदर लड़कियां दिखेंगी, पड़ौसी मंगलू के दसवीं में अच्छे नम्बर आएंगे, उसकी बुआ की लड़की अपने मायके से आपके लिए नया पजामा लाएगी और और तो और आपकी भैंस माया भी इस साल बाकी सालों के मुकाबले ज़्यादा दूध देगी।
सलाह-अपनी गली के आठ आवारा कुत्तों की नसबंदी करवाएं, इससे आपका भाग्य और चमकेगा।
धनु
धनु राशि वालों की किस्मत इस साल बिलुकल साथ नहीं देगी। ऑफिस जाने की जल्दी होगी तो रास्ते में स्कूटर पंचर हो जाएगा, मेहमान आए होंगे तो सिलेंडर ख़त्म हो जाएगा, ज़रूरत पड़ेगी तो नेट काम नहीं करेगा, बीवी बीमार होगी तो कामवाली छुट्टी ले लेगी, सहवाग की बैटिंग के वक्त लाइट चली जाएगी, लाइट आने पर मिमोह चक्रवर्ती की फिल्म चल रही होगी और तो और जब-जब चाय में डुबोकर खाने के लिए ग्लूकोज़ का बिस्किट उसके अंदर डालेंगे, वो उसी में डूब जाएगा!
सलाह- बिस्किट चाय में न डूबे इसके लिए ज़रूरी है कि उसे लाइफ जैकेट पहनाएं।
मकर
टीवी देखने के लिहाज़ से ये साल महिलाओं के लिए काफी अच्छा है। मार्च के आसपास आप सोनी टीवी पर दो नए सीरियल देखने शुरू करेंगी और अपनी दृढ़ इच्छाशक्ति के दम पर बिना नागा उसे पूरा साल देखेंगी। इस दौरान रिमोट के लिए कई दफा आपका अपने पति से झगड़ा होगा मगर सीरियल्स की साजिश रचने वाली बहुओं की तरह आप भी हार नहीं मानेंगी।
वहीं दूसरी ओर रिएलिटी शोज़ के हिसाब से ये साल आपके लिए उतना अच्छा नहीं है। आप जिस-जिस कंटेस्टेंट को सपोर्ट करेंगी वो फाइनल तक तो पहुंचेगा मगर जीत नहीं पाएगा जिसे लेकर आपको भारी दुख होगा। रात-रात भर कमरा बंद कर फूल की कढ़ाई वाला तकिया मुंह में ले रोएंगी और हो सकता है इस बीच डिप्रेशन की शिकार भी हो जाएं।
सलाह- पति के सोते ही उसके मोबाइल से अपने चहेते प्रतिभागी को ढेरों वोट करें। इससे पति भले ही डेंजर ज़ोन में चला जाए, मगर आपका पसंदीदा गवैया बच जाएगा।
कुंभ
कुंभ राशि वाले अपना ये साल पंडितों के चक्कर में बर्बाद कर देंगे। आपके लिए ये समझना बहुत ज़रूरी है कि अगर आपकी ज़िंदगी में कुछ नया नहीं हो रहा तो उसकी वजह आपकी ख़राब किस्मत नहीं, आपका आलस हैं। ऑफिस से घर आने के बाद आपका सारा दिन पड़े रहने में बीतता है और यही वजह है कि आप दस साल से एक ही ऑफिस में पड़े हुए हैं। आपके पड़े-पड़े आपके बच्चे बड़े हो गए मगर आप अपने करियर में कहीं नहीं बढ़े। गणेशा सलाह देते हैं कि यूं दिनभर भेजे के कुकर में ख्याली पुलाव पकाते रहने और बॉस के घर की महिला सदस्यों को याद कर उसे गाली देने का कोई फायदा नहीं है।
लिहाज़ा बिना कुछ किए हालात सुधरने की उम्मीद में चार अख़बारों में राशियां पढ़ने और हाथ की अंगुलियों से लेकर पैर के अंगूठे तक में अंगूठियां पहनने के बजाए रजाई से निकलिए…गैस पर पानी गर्म कर नहाइए, नहीं नहाना तो मुंह-हाथ ही धोइए और स्कूटर स्टार्ट कर कहीं बाहर जाइए।
सलाह- एक पाव दही में तीन चम्मच चाय पत्ती डालने के साथ उसमें रात की बची एक कटोरी दाल डालिए और इसमें आधा गिलास फिनाइल मिक्स कर, उस पंडित को पिलाइए जो खुद आपको अब तक ऐसे उल्टे-सीधे उपाय बताता आ रहा था।
मीन
जहां तक बारगेनिंग या मोलभाव का सवाल है, मीन राशि की महिलाओं के लिए ये साल काफी शुभ हैं। दुकान से सूट का कपड़ा खरीदने से लेकर गली में सब्ज़ी वाले से लड़-झगड़कर पैसे कम करवाने में आपको व्यापक सफलता मिलेगी। आपकी ख्याति मौहल्ले में ही नहीं, देशभर में फैलेगी। और तो और अंतर्राष्ट्रीय स्तर पर हथियार खरीदते समय भारत सरकार दूसरे देशों से मोलभाव के लिए आपको बुलावा भेजेगी। फ्रांस जैसे देशों से मिसाइल खरीद के समय आप ये कहते हुए रेट कम करवाएंगी…जाओ भइया जाओ…पचास में पीछे जापान वाले दे ही रहे थे या फिर ‘हम तो हमेशा आप ही के यहां से खरीदते हैं’, कहकर उन्हें इमोशनली ब्लैकमेल करेंगी।
सलाह- कॉलेज में आप भाव खाती रही हैं और अब मोलभाव कर रही हैं। हमारी गुज़ारिश है कि यही हाव-भाव बनाए रखें।

January 6, 2012 Posted by | Uncategorized | | 1 Comment

Memories@IIITM

My first non technical post. Today is my last day in IIITM and now i am leaving the hostel. I spent 5 years and had lot of good memories about everyone.I will try to write my thoughts about everyone and first shot goes to Ashok Vijay A.K.A. Lui …Iska naam lui kaise pada ? Bahut majedaar kahani hian. Ek baar vineet ko bulaya tha seniors ne interaction ke liye aur usse mortin ka add dikha diya . Aur vineet ko niche aate hee lui mila aur phir kya tha bus pad gaya naam lui 🙂 .. Very good in programming and ACM world finalist. Having great capacity to consume alcohol after Manish …

Vineet Chauhan AKA Jodha Gillu
a great man from heart. Hamesa 500 ya 1000 ki currency rakhta hian. Sabse aasani se kisi ko bhi goli de sakta hian …even kai baar hum logon ko bhi de deta tha. Isne bike khardne ke liye ghar walo kya goli thi . Ghar walo se bola mujhe JAVA sikhani hian aur subah subah class jana padta hain to bike dila do. Phir kya tha bike dila di aur jaise hee iske paas bike aayi uske baad kabhi class hee nahi gaya 🙂 . finally decided to go for MBA. Hum logon ki saari party ka sponser..

Kamlesh verma AKA Kammo
First year se hee hardware and software expert. Kai logon ne iske suggestion se pc kharida . Unka pc to thik chal lekin jab ye aapna super computer kharid ke laaya to 2 mahine mein 2 baar motherboard fuk gaya 🙂 . Hum logon ke group ka sabse sidha banda aur hum sabko english movies se familier karane wala. Isi ke suggestion se CD lekar aate the vineet ke home theater mein movie dekhne ke liye . Our second sponsor with vineet .

Manish Jangir AKA Tharki, Tommy ..
One of the smart and handsome guy with brown eyes, Inke saari cheeje deadly hian 🙂 kyon manish ? Inke first yeat ke kisse chahe wo TAPRA ho MELA manish saari jagah maujood rehte the. Wo to first year mien pata nahi inko kya ho gaya warna pata nahi ye kya gajab kar dete. Alcohol ke mamle thode flexible hian. Jitni bhi de do kabhi mana nahi karte aur issi baat se jodha ko sabse aadhik dar lagta tha.Coll ki her bakar mein ye mast tan man aur tan se lage rehte the . We had a lot of fun becoz of u manish … thank you for being there ….

Amit Gupta AKA Barati
Ab baarati kyon bolte hain ye to mujhe pata nahi lekin inke corridor wale inko bolte the . Our respected topper of batch ( ab yaar ye honge nahi to kunal hoga ). CS ke aache players mein ek the hamare “TH3 KILL3R ” kyon gupta ji aapka naam to sahi likha hian na ? Pehle 4 saal mein to inke khub number aaye lekin jabse inke saath hamara pyara BABA baithne laga tabse inper bhi baba effect lag gaya 🙂 aur number to kya pass hone ke laale pad gaye ..majak kar raha hoon be baba . Kanpur trip mein hamare pyare gupta ji ne pura time hum logon ke saath cards khel kar paas kiya .Memorable trip AMIT ….

kunal AKA kukku , takla
jab ye aaya tha to iske sir per thode baal the lekin phir pata nahi iske baalo se kya paresaani hui ki issne phir baalo ko khilkhilane ka mauka hee nahi diya. Ye bhi hamare respected batch topper tha . Her samay kisi na kisi facult ki khujli door karne mein laga rehta tha .chahe trivedi sir ka lan card ho kv arya ki download ki problem. Iska sabse favorite dialogue ” chu….ye ho kya ?”.
Party mein hum logon ke out hone ke baad yehi utha ke laata tha .thankx yaar kunal ..hope ki alumni meet mein bhi hamara khayal rakhega 🙂

Abhishek Sisodiya AKA BABA …
Baba ko kabhi kisi cheej ki tesnion nahi hui. Pehle 3 saal mein to ye gin ke 20 baar class gaya hoga ..kyon baba jyada to nahi hian? aur baaki ke 2 saal mein class hee nahi hui . Bus isko ek baar hee tansion hui thi. Kanpur trip per Hum logon ko shukla ji ne biomatrix padhne ko bol diya tha phir to baba aisa tension mein aaya ki pucho mat . Kyon baba kanpur wala gadha yaad hian na tujhe. baba ko ek aur baat se chid thi …koi isse pahadi na kahe lekin ye bhi kya kar sakta tha ..pura batch isse pahadi hee bolta tha. Batch ka sabse kool banda ..movies ke mamle xpert aur net per jinti bhi faltu cheej hain sab isko pata hian …

Kumar Sidharth Choudhary AKA Saanp ji
Batch ke sabse helpful bande itne helpful ki inka room public room aur pc public pc tha. Inke ghar jaane ke baad bhi inka room khula rehta tha aur log inke pc per kuch na kuch install kar hee dete the.Ab inka naam saanp kaise pada ye badi lambi aur adult kahan hian jo mian yahan likh nahi sakta. Inko saanpo ke baare mein seniors ne kuch task diya aur Sidharth ne ipg 2004 mein survey kiya. Ab survey ka result to mujhe pata nahi lekin aagle din se inka naam saanp jaroor pad gaya. Mere thesis group( Me , Rahul , Siddhart Singh and kumar sidharth choudhary) ke partner aur puri thesis mein mentor(Somanth tripathi , KV Arya ko to pata hee nahi ki hamne thesis mein kiya kya hain ) se aadhik inhone mujhe paresaan kiya hian . kyon sidharth ? Mentor ne kuch karne ko diya nahi ki aagle din hee solution ke saath upasthit . Aur main , rahul aur siddhart singh hamesa Narendra tomar ko koste ki saale ne saanp ji ko faarebaaji karte pakad kyon liya. Pehle jab padhta nahi tha tab saanp bada aacha tha lekin ab iske padhne ki aadat se hame badi dikkat ho gayi hian. Lekin thnkx to kumar sidharth jo hamne finally thesis paper likh hee diya. Inke interaction ke kisse bhi bade mashoor hue jaise ” Sir mein chot laga tha sir ” ” nahi sir main hans nahi raha hoon ” ” jab main kacha paanch mein tha to 5 baat chat se gir gaya tha sir ” aur bhi bahut hian jo hum logon ne pure 4 saal enjoy kiye. Finally placed in YAHOO . Congrats Sidharth ..all the best for future

Naveen Nahata AKA Bakelaal Scientist
Iski hansi ne first year mein isko hansi pochne ka expert bana diya tha. Hansi pochte samay bhi hansta tha 🙂 aur phir pochta tha matlab jab bhi ye interaction ke liya upper jaata tha pure time hansi hee pochta tha.Having great programming , logic and coding skills. Hamne ( me , naveen and ashok ) kai ACM regional mein as a team participate kiya and i enjoyed ur company naveen. Seriously yaar those were the best days of my life. Ek baar hum log ACM participation mien Kerla gaye aur naveen ne chawal khakar wahan pure time hindi malyali style mein boli 🙂 . sorry yaar naveen but i could not resist. Uske baad naveen ki wo style hostel mein kafi popular hui at least Baba , Saanp ji aur kammo ne to feel bhi kiya :). Baakelaal ke comic series ka fan hian hamare pyare nahata ji.aur na jaane kannojia ne inki kitni comics tapai hian , kannojia ko khud nahi pata. Kannojia ke saath inke bike ke kisse jaise ” aur tej aur tej ” ” maja aa raha hain yaar ” aur inka insti mein accident 🙂 . One of the my best friend and hope one day we will work together naveen ..

Rakesh Sinha AKA Jhara , Yuvraj CP
Rakesh sinha ye batch mein waise hee popular hian jaise India mein Dhoni. Lekin ye dhone ke team India mein aane ke pehle se hee hum logon ke saath IIITM mien the aur infact hum logon ke beech aapne tension ke liye bhaut popular the. Log majak majak mein inko tension de jaate the jaise bina result aaye ladke isko bolte the ” abe jhare tera Finance mein C hian ” aur finance to inka area of interest hian :).Inka naam jhara kaise pada.Ye kannojia jyada aachi tarah se batayega lekin ek reason ye bhi hian ki Jharkhand se hian hamare rakesh ji. Yuvraj CP ke piche bhi kuch kam interesting story nahi hian lekin yahan nahi batayi ja sakti hian. Inki kundali mein saare graho ki jagah ek hee grah baitha hian aur wo hian “TENSION”. Bina tension ke to ye mar jayega isliye hum log bhi isko time time per bachane ke liye tension dete rehte the. Pichle 3 saal se hum log ek hee corrdor mein rahe aur hamne iske saath her moment enjoy kiya jaise Jab iski job nahi lagi thi to subah subah uth kar cards khelna , dopaher mien cricket , shaam ko bakar aur raat mein movie. Phir uske baad ek ghante discussion ” yaar job nahi lagi ” :).Inke bhi kai kisse kafi popular hue jaise ” 4 saal ki dosti ” , “Dhobi Dhobi ” “yuvraj CP” ” Meri girlfriend US chali gayi “. Sabse hard working bando mein se ek lekin exam ke time inka confidence thoda gadbad ho jaata tha. Bahut hee nervous ho jaata tha aur galat kadam utha leta saanp ji ki tarah :). Kyon be jhare ? Finally palced in Allahabad Bank as IT officer. Blog likhne ke time ye Bhagalpur mein posting hain aur kafi dukhi hian ye Bhagalpur se :). …..One of the my best friend and wish you all the best for future dude ….
P.S. Oye Jhare tere room se maine thode farre utha liya hian as a souvenir aur tujhe tere shaadi per gift karoonga.Yaar tune to pura ek polythin bag bhar rakha hian :). bahut bada gift milega tujhe. Saare farro per dubey aur narendra se sign karaonga ….

Rahul Choudhary AKA Sukhi
Ab inka naam sukhi kyon ? kyonki juniors mein gili thi isliye ye sukhi. Lekin mujhe bhi nahi pata ki iska naam sukhi kyon pada ye bhi kanojia hee batayega aur infact iske baare mein is blog mein guest writing bhi karega . But here is my thoughts abt rahul. batch ka sabse kool banda aur mera thesis partner in Masters. Hamne thesis mein khub masti ki jaise jab bhi mentor bulata tha. sabse pehle saanp ji taiyaar hote the jaane ke liye.phir main aur rahul bolte the ” aaj nahi yaar kal chalenge aur wo kal 1 mahine baad hee aata tha. tabhi saanp ji kai baar akele hee chale jaate the”.Insti mein Football ke sabse aache players mein se ek.Aur humne kai aache match bhi khele jaise wo PG wala match. kyon rahul yaad hian wo match jismein gajju ne goal mara tha ? Insti mein sabse aadhik time tak sone ka record bhi infact isi ke naam hoga . ek baar ye 3 din tak sota hee raha tha [ Source Kanojia].Sabse pehle sumant ko paresaan walo mein se ek ye bhi the. Inhone sumant ka password bhi change kar diya aur wapas isi ne break bhi kiya :). password kya tha be rahul ? uske baad to sumant ne kabhi isko aapne room mein ghusne nahi diya.Ek baar kanojia ne vipin ke room mein saare jagah “DHOLAK” likh diya tha aur vipin ne gusse mein sukhi ko pel diya jo 2 din baad sokar utha tha :)…Run ke comedy scenes ke fans( main , bihari , sukhi , gattu , sukhi aur sam ) mein se ek aur hamne her time isko njoy kiya . kyon sukhi ” are sidhu hum ganesh. tumare dost, yaad nahi hian ka ,hamne tumhare birthday per kaun sa gaana gaya tha. ishq kamina- ishq kamina “. Hope we will meet someday in US in some university or company :)… wish u all the best for future dude …

Vipin Verma AKA Dholu , Golu , Doctor Prasad , Dholak
Vipin verma batch ke sabse bade alasi logon mein se ek.infact inka naam hee dholak isliye pada ki ye aaram se ludhak ludhak kar chalte the. Inki chaal mein ladkiyoon se bhi jyada appeal thi. first year se fifth year tak mein inmein 180 degree ka change aaya. First year mein gaali dete samay rone lagta tha hamara pyara dholu aur 5th mein to bina gaali ke baat hee nahi karta tha. First year mein isko ghar walo ne bol rakha tha beta 9 baje so jana aur ye ek aagyakari balak ki tarah thik 9 baje so jaata(chahe din ke 9 baje ho ya raat ke 9 baje ) tha aur fifth year mein raat bhar telugu movies ke wallpaper download karta tha. First year mein jab sab log seniors ke saath interaction karne ke upper jaate the to hamare pyara DOCTOR bolta tha ” nahi yaar , ghar walo ne upper jaane se mana kar rakha hain :)”. 5th year mein iske saath ek badi dhukhad ghatna ho gayi . isko kisi se pyar ho gaya aur uske baad to hamare doctor sahab jo form mein aaye ki uski puri class ki timing yaad kar li. Jab bhi uske class jaane ya khatam hone ka time hota tha to hamar doctor sahab yehi bolte the ” CANTEEN CHALO”. tension wali koi baat bhi nahi thi kyonki jisko le jaata tha uska pura finance doctor sahab hee karte the. is scheme ka sabse aadhik fayda gajju ne uthaya tha ..kyon be dholu ? ab kya bataye ye usse kitna pyar karta tha. yahan tak ki ek ek guard ko pata tha ki wo kis ladki ko line marta hain….. maali ko bhi aur to aur wo canteen mein kaam karne wala rahul bhi janta tha. hamesa dinner ke baad 3-4 logon ke saath usko dekhne ke liye PMC jaata tha. Wo canteen mein agar lays leti to hamara dholu bhi lays hee leta . wo colddrink to ye bhi coldrink wo lollypop to ye bhi lollypop :).magar kabhi bol nahin paya dil ki baat aur pyaar bhulane k liye us ladki ki foto jalane ki koshish ki. aur wo adha jala hua foto abhi kisi k kamre ki shaan badha raha hai foto frame mein kaid hokar[Teri shaadi mein gift karoonga dholu tujhe wo pic ]. 1st year mein carrom board bahut khelta tha magar kanojia se haar jata tha……kyunki saala kanojia apni goti tapa leta aur uski wapas board pe rakh deta.Atul uska langotia yaar…..uske chalte ghar pe bahut pila dholu. Atul achhi cg lata aur ghar walon ko batata tha aur dholu ji kam laate aur wo bhi nahin batate the….lekin jab atul ke ghar se news pahonchti thi to phir to dholu ke ghar wale mast pelte the [ Bihari ] . One of mine best friend and hope we will be friends forever ….all the best dholu 🙂

August 2, 2009 Posted by | Uncategorized | 29 Comments

Project Euler 200

The problem itself is self explanatory and brute is enough is solve the problem.I was not suru for upper bound on 200th number so my blind guess was it should be less 10^18 :).Then i keep running the program till i found that bound is 10^12. You generate all the primes below 10^6 . Calculate p^2*q^3 find out that it contains a substring “200”.If it contains then simply replace every single digit by 0 to 9 and check for primality.Here is half answer 🙂 i relpace 6 digits of answer by *.

22******2008

June 28, 2009 Posted by | Uncategorized | Leave a comment

Binomial Cofficient

The problem is we have to calculate NCK (K chose out of N) modulo some number P.The problem boils down to Lucas Theorem if P is prime. What if P is not prime ? This problem can also be solve with the help of prime factorisation. Here you can look at Lucas theorem (http://en.wikipedia.org/wiki/Lucas’_theorem) .It is quite easy to impliment but problem is how to solve if P is not prime.My implimentation .If you find any bug then kindly let me know.
bool isprime[1000010];
vector V;
long long _mod(long long a,long long b,long long c)
{
long long ret=1;
while(b)
{
if(b&1) ret=ret*a%c;
a=a*a%c;
b/=2;
}
return ret%c;
}
void _precompute()
{
memset(isprime,0,sizeof isprime);
isprime[0]=1,isprime[1]=1;
for(long long i=2LL;i*i<=1000000LL;i++)
if(!isprime[i])
for(long long j=i*i;j<=1000000LL;j+=i)
isprime[j]=1;

for(long long i=2LL;i<=1000000LL;i++)
if(!isprime[i])V.push_back(i);
}
long long NCK(long long N,long long K,long long mod)
{
memset(isprime,0LL,sizeof isprime);
long long ret=1LL;
for(long long i=0LL;V[i]<=N;i++)
{
for(long long j=V[i];j<=N;j*=V[i])
ret=(ret*_mod(V[i],(N/j-K/j-(N-K)/j),mod))%mod;

}
return ret;
}
int main()
{

long long m,n,p;
V.clear();
_precompute();
while(scanf(“%lld%lld%lld”,&n,&m,&p)==3)
printf(“%lld\n”,NCK(n,m,p));
}

February 12, 2009 Posted by | Uncategorized | Leave a comment

Convex Hull

In computational geometry, it is common to use the term “convex hull” for the boundary of the minimal convex set containing a given non-empty finite set of points in the plane. Unless the points are collinear, the convex hull in this sense is a simple closed polygonal chain.For convex hull we have lots of algorithm having different complexity.This code is implimentation of Graham scan.

#include<iostream>
#include<vector>
#include<stack>
using namespace std;
vector<pair<int,int> >v;
void fun(vector<pair<int,int> > &v)
{
for(int i=1;i<v.size();i++)
{
if(v[i]<v[0])
swap(v[0],v[i]);

}
}
bool cmp(pair<int,int>p1,pair<int,int>p2)
{
int w=(p1.second-v[0].second)*(p2.first-v[0].first)-(p2.second-v[0].second)*(p1.first-v[0].first);
if(w<0)
return 1;
else if(w==0)
{
if( p1.first<p2.first)
return 1;
else if(p1.first==p2.first)
return p1.second<p2.second;
else
return 0;
}
else
return 0;
}
int cross(pair<int,int>p1,pair<int,int>p2,pair<int,int>p3)
{
return (p1.first-p2.first)*(p3.second-p2.second)-(p3.first-p2.first)*(p1.second-p2.second);
}
int main()
{
int t,n;
cin>>t;
while(t–)
{
int k1,k2;
cin>>n;
v.clear();
for(int i=0;i<n;i++)
{
cin>>k1>>k2;
v.push_back(make_pair(k1,k2));
}
fun(v);
sort(v.begin()+1,v.end(),cmp);
stack<pair<int,int> >S;
pair<int,int>p1,p2;
S.push(v[0]);
S.push(v[1]);
for(int i=2;i<n;i++)
{
p1=S.top();
S.pop();
p2=S.top();
S.push(p1);
int w=cross(p1,p2,v[i]);
if(w==0)
S.pop(),S.push(v[i]);//pop previous point and take next collinear point
else if(w>0)
S.push(v[i]);//left turn
else//right turn
{
while(w<=0 && S.size()>2)
{
S.pop();
p1=S.top();
S.pop();
p2=S.top();
S.push(p1);
w=cross(p1,p2,v[i]);
}
S.push(v[i]);
}

}
cout<<“points on hull are \n”;
while(!S.empty())
{
p1=S.top();
S.pop();
cout<<p1.first<<” “<<p1.second<<endl;
}
}
}

May 26, 2008 Posted by | Uncategorized | | Leave a comment

Solving problems in C/C++ Vs Pyhton

I used to solve problems of project euler(http://projecteuler.net). This site has quite interesting and challenging problems of number theory. If you want to solve any problem you must have knowledge of atleast one programming language  and  bit of math is also required[:)].My programming language is C and i admire this language but this site does not pose any constraint for programming language because you have to submit your answer rather than code.Now a days i started learning Python and i solved cople of problems in Python.The major difference which i noticed if you are trying to solve the problem in C/C++ , you have to consider overflow otherwise your program will not behave as you want:(  and you have to come up with some sophisticated techniques and algorithm to reach the answer.But if you are using some scripting language like perl , python ,Tcl or Ruby you even need not to bother until unless problem is challenging.Depending on algorithm used execution of C/C++ programs will be enough  less than Python or other scripting language.What is personally fill that if you want to become a good programmer you must learn first C/C++ but its totally my personal opinion.Here is python code for problem 119

#!/bin/python

def fun(n,k):
w=1;
for i in range(k):
w=w*n;
sum=0;v=w;
while w:
sum+=w%10;
w=w/10;
if(v>9):
return sum;
else:
return 0;

l=[];
for i in range(2,100):
for j in range(1,100):
v=fun(i,j);
if ((v==i)) :
#print i,’ ‘,j,’ ‘,i**j;
l.append(i**j);

l.sort();
print l[29];

March 2, 2008 Posted by | Uncategorized | Leave a comment

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

February 25, 2008 Posted by | Uncategorized | 1 Comment