Posts

हर समस्या का हल संवाद नहीं होता

कुछ संवाद ऐसे जिनका आदि तो होता है अंत नहीं होता जब आसुंओं से भी न भरे जख्म तो उनका कोई मलहम नहीं होता ऐसे में जब आग उगलते  हैं शोले तो मसले हल भी होते हैं कि हर समस्या का हल संवाद नहीं होता जब चलती हैं आंधियां तो पेड़ झुक भी जाते हैं फ़िर बातें बहोत की हमने पर अब और परोपकार नही होता जब आग उगलते  हैं शोले ... फ़िर बिना तूफानों के भी डूब जाती हैं किश्तियाँ सभी किश्तियों का मझदार नहीं होता जब आग उगलते  हैं शोले ... है गरज हमे वतन के शहीदों की कि हर नाग का फ़न कुचलना जानते हैं हम जाया कभी शहीदों का बलिदान नहीं होता जब आग उगलते  हैं शोले ... बंद दरवाजों में भी सुलगती हैं चिंगारियां कि हर चिंगारी का आगाज़ सरेआम नहीं होता जब आग उगलते  हैं शोले ... बचपन में कभी पड़ी थी कहानी जो खूब लड़ी थी वो थी झांसी की मर्दानी कह दो बुजदिलों से खून सिर्फ मर्दों का लाल नहीं होता जब आग उगलते  हैं शोले ... कहते हैं वो "ठीक है" भाषण के अंत में अरे इतना निर्मम तो समाज का गद्दार नहीं होता बन बैठे प्रधानमंत्री बिना चुनाव क...

अभी पालने में है

ओह री  चुनारिया ... ना हो बाँवरिया, अभी तो सांवरिया अपना ... पालने  में है। करूँ ममता की छैया... कि मेरे जीवन की नैया , और सबका खेवैया  अभी  पालने    में है। दादा जी मुस्कावें... दादी को रिझावें, झूम झूम दिखावें वो जो... पालने  में है।  करें नाना जी तैयारी... बिटिया की साड़ी और बिटुवा की गाड़ी, पड़े नानी पे भारी वो जो...  पालने  में है।  मामा जी हर्शावें... मामी से बतियावें,   कहें लाखों में एक है जो... पालने  में है।  बुआ जी हमारी... जायें वारी वारी, कहें बड़ा मनोहारी है जो... पालने  में है।  घरोंदे की गैया,  राधा की मैया... तनिक ठहरो तो भैया, अभी तो कन्हैया मेरा...  पालने  में है।  ओह री चुनारिया... ना हो बाँवरिया, अभी तो सांवरिया अपना... पालने  में है.

public abstract sealed class MyFundooClass {}

Ever heard of a class that is abstract as well as sealed? Sounds impossible right? abstract means some functions must be defined in derived class and sealed means class can not be derived. Conflicting statements!!? Well actually the catch is in the meaning of abstract class. Creating abstract class means that instance of a class can not be created. That is why you can have following class in c#: public abstract class MyFundooClass { //abstract class without any abstract members. } So now you are clear that abstract means class can not be instantiated. But what if someone decided to derive your class and create an instance of it? For ex: public class MyFundooClassImpl : MyFundooClass { } .... void SomeFunc() { MyFundooClass obj= new MyFundooClassImpl(); //Ohh some has an instance of MyFundooClass !!?? } Here the sealed keyword comes to rescue. Sealed means class can not be derived. So now you can write your class as publ...

My Rants on Scrum

It is like Churchill or Rooseveldt said something along the lines of: "Democracy is flawed, but nothing else works!". Which is also true. Democracy is the rule of the mob and pop culture, but all other governing styles leads to chaos, elitism or despotism. I do like a lot of the ideas behind Scrum, the agile thinking is great, the XPways do work. Everyone seems to jump on the Scrum bandwagon taking every element as gospel, and defending it religiously. But Scrum, has introduced many elements I don't like. I can see why, and what they can achive, but some I really detest. Unfortunetly, all other project managent styles have more flaws, so I think "Scrum matured", or some better Agile methodalogies in the future is a better solution. For Scrum and agile there are 3 sides to view from the pros and cons to its benefits.  Management  Developers  Customers It is mainly been developers who having been pushing Scrum as it will be better for customers, ...

C# Polymorphic types conversion with Generics

Image
Polymorphism has been interviewer's  delight for ages. I have been taking interviews for quite some time.  And ever since i started preparing question on C# Polymormism, I have been getting surprises. To prepare interview questions, I try writing code, verify it and and then twist the code snippet to make it "interview-able". This blog is to highlight some of the surprises that i have got while preparing the questions.  The motive of this blog is to highlight tricky points to keep in mind while writing overloaded Functions with Generic parameter. To explain the concept, I'll start with this short code snippet and would like readers to predict the output without scrolling down to answer. Code - 1  If you know the output and the reasoning behind it, then you may leave the rest of blog as you probably are better expert than rest of my audience.  And if you are still read...

A morning dream

My eyes were paining, as I coded per requirements, I shouted for it was crowded, and he gifted me diamonds, I kept on coding and he kept on gifting, Diamonds kept shining, and it started rhyming, and then a figure appeared it said in my ears... "it's not wise to loose your eyes for diamonds for any requirements" oh please, one day i'll be rich with AAA from Fitch and S&P would die to rate me, who you are to teach me, do you love, or do you hate me? and there the dream broke, was it a reality or was it a joke?

I would always be there

I never said, won't need help, neither I said, you won't help, its friendship that we share, asking help is too rare, I know before I need it, you would always be there, you would always be there. our frindship may stale, and those memories may ail but am assured my pal, you would be there when rest may fail, you talked like a bro, with skills of a pro, never get tired, of teaching me to grow i trust you and i know before I need you my bro, you would hared like a hare as you would always be there, you would always be there. I promise before you ask for it, ...I would always be there, I would always be there,

Data Binding in .net

Image
I have been toying with data binding in .net for quite some time now. And ever since I started working and analyzing the binding support in .net f/w 2.0, I have always been eager to know: What makes WPF data binding so great that Microsoft showcased it as the biggest driver for WPF and MVVM? Even though the data binding existed in .net framework 2.0, why didn't MS pushed for its use as it did for WPF? The INotifyPropertyChanged interface was introduced in .net framework 2.0 and was fully supported by WinForm binding engine. However, most of my fellow developers are unaware of this fact.  So the fundamental question that arise is why should one go for WPF if all we want is nice Data Binding support and it’s available in .net 2.0? The answer to this question is, MS has introduced an all new Data Bindinding engine in WPF which fixes lots of bugs of WinForm data binding, has a much improved performance. And I think this is enough for any GUI developer to consider switching to WPF ...

the last few walks...

I could have resisted but couldn't, could have missed it but couldn't, i had to travel this last few walks so i decided to give it a shot the french mystery the italian history, the tower of pisa, the pop with Isaiah the city of venice and the 5 villages were all to be seen this turned me keen.. and now as i walk, with memories of my talk in italian and in french of paris and its stench of pisa and its chiesa am pleased that i could make these memories to take as i walk this last few walks, i have with me, a lot to cheer, nothing to fear, something for my dad, and myself for my mom. i am going home, oh yea I am going home.

MVVM explained again!

I just started to work on WPF after quite a long break (8 month). And I wanted to recap my WPF knowledge and use MVVM in a plugin like scenario. Download from here... (Download link: http://www.4shared.com/file/VrKkQQkH/TestWPFApps.html) I have prepared a very basic plugin like app which makes use of MVVM with Commands, DataBindings and DataTemplates. The AnimalsLibrary is a Plugin base which is referenced by every plugin. The OuterUserAnimals is a Plugin which creates a new animal type. It also defines its own way of displaying its animals using a data template. The TestListBoxTemplate is our main app which displayes the standard animals and loads other animals from plugin dll. For now you may finc the path od plugin dll hard coded so you would have to change that to match your needs (as per you save loaction of the zip). This example shows how to create a ViewModel which can be bound to a view. How to create and load DataTemplates from a referenced Dll (animals lib). ...