Saturday, July 31, 2010

Spider solitaire - the road to victory (how to win)

Well, before you think 'what's the big deal in solitaire', I would urge you to try playing it once. Spider solitaire-> difficult-> 4 suites. Chances are that you probably would not be able to complete even one suit. It is a tough game and can be painstakingly slow. Few people will actually believe that I got addicted to this game.. A stupid game but fascinatingly overpowering. First I just wanted to win, which I somehow managed to if I played more than 20 games (a success rate of 5%), then I wanted to strive for consistency. Can I win every game? I must admit I have not been able to, but what I have achieved is a success rate of close to 50% (large sample size of course), that is a win every alternate game! A result developed over months and probably more than the number of ODIs Sachin has played. It all might look really very silly, but (Ripley's) believe it or not, I am actually quite serious! Am I the only seemingly jobless guy to even attempt this? Surely not, there must be quite a few souls out there who would have said 'the grapes must be sour' and walked away. This blog is sincerely dedicated to those souls :P
.
Ok, what do you need to win in this game? Patience, time and iteration. And mind you it is a product of all three, so if you do not follow even one, you must depend on Lady luck. There are three diffrent levels Easy (single suit), medium level (two suits) and hard (four suits). Single suit you must be able to win hands down. I have finished it with a little over 100 moves or perhaps even lesser. The medium level (two suits) can be difficult at times but it is easy enough you can finish all games. Depending on other factors I can finish in about 150 moves or so. But I never got addicted to these two levels. The difficult is the hard nut to crack and following are some tricks of the trade.
.
Terminologies
Stack - Any series of cards stacked one over another at least respecting the card order
Correct stack - A stack with cards of the same suit
Pack - the cards that are in the upper most row with face down. I believe there will be 10 packs.
Deal - The cards that are in the bottom right corner.
.
Basic rules of the game
It is like any other solitaire game. You must form the combination KQJ1098765432A of 4 suits*2, that is 8 series in all. (Yes, there are two packs of cards out there). But when you stack cards, other than respecting the order there is no other restriction. That is you can stack a 2 spade over a 3 heart (or club or spade or diamond). As long as you respect the order KQJ1098765432A you can stack any suit over another. This was probably the first attraction to me towards this game. Other rules we can learn as play (There are no other big rules I believe).
.
Step #1- Start simple. A game well begun is half done, but even if you begin well, there is no guarantee that you will able to finish this game. But beginning well is the easiest and the most basic step that we can take so that we find at least the initial part easy. What is beginning well? When you start the game, you will see a display of cards. Try to see if you can stack some of those correctly (at least 2 immediately) that is stacking with the same suit. Even though you can stack a 2 hearts over a 3 spade, stacking a 2 heart over a 3 heart will enable you to move the 3 and 2 together. That is, if a particular stack is correctly stacked (all of the same suit) you can lift them as one. So, when you start the game, at the first look, see if you can stack at least two cards correctly (same suit). If not press F2 to have a new game. Keep doing this till you can begin easily.
.
Step #2 - Iterate. Once you begin well, chances are that you might have more than one move available to perform. Feel free to choose any move, but remember this point. Once you have taken a move and got stuck, press ctrl-Z (undo) and come back to the point where you have more than one feasible move. Now, try the other moves. See if it is any better. If yes, good. If not, bad luck. Go back to the original move (yes, you can press ctrl-z any number of times, at a small penalty. But, at this point let us concentrate on winning the game, efficiency can be dealt with once you have experience).
.
Step #3 - Always have an eye on correct stacking (as it enables you to lift all of the stack together in one clean pick). For example let us say you had a stack of 4 and 3 diamond on one pack, a 3 club on another pack and a 2 spade on another pack. Now, you have two options. You can either put the 2 spade over the 3 club or the 3 diamond. Suppose you choose to put it over the 3 diamond and let us say a 5 diamond gets revealed. Now, the stack of 4 and 3 diamond could be put over the 5 diamond to create a bigger correct stack. But the 2 spade over the 3 diamond will prevent you from doing this. So iterate by putting the 2 spade over the 3 club and free the stack of 4 and 3 diamond. Now you have made a bigger correct stack.
.
Step #4 - Try to reveal as much as possible (to get empty slots). Once you clear all the cards in a pack, you get an empty slot and this will be very handy. In the above example instead of a 5 diamond, lets say a 5 of hearts turned up. You still go ahead and do the above steps, because if you stack the 4 and 3 diamond over the 5 of hearts (even though incorrect) it will enable you to reveal one more card that is beneath the 4 and 3 diamond, thus getting you closer to an empty slot.
.
Step #5 Respect the order. Say if you have two options, you can put a 10 of hearts over a Jack of spades or a 9 of clubs over the 10 of hearts. First, understand that both are incorrect stackings but you don't have a choice. Now putting first the 9 of clubs over the 10 of hearts will 'lock' the stack 10 and 9 as you cannot lift them together to put them over the Jack (they are of different suits). But of you first put the 10 of hearts over the Jack and then the 9 over 10, you have revealed two cards (one beneath the 10 of hearts and the other beneath the 9 club). But since you have incorrectly stacked, always keep an eye on a possibility of step 3. You should mostly prefer correct stacking to incorrect one (exception is talked about below), since a correct stacking enables you to lift togther.
.
Step #6 - This is a follow-up of Step #2, Iteration. If you have two feasible moves, one that will result in correct stacking and the other with an incorrect stacking, try both and stick with the one that revealed many cards or was more useful. That is, not always do we go for correct stacking. It varies from situation to situation.
.
Step #7 - Managing the empty slots.
Now you have an empty slot. How to best use it? Empty slot in Spider Solitaire is a definite achievement. Use the empty slot to rearrange cards into correct stackings. You will be amazed at how much one empty slot can help you achieve. For eg you have one stack of K hearts, Q and J of club, and another stack of K club, Q and J of hearts and an empty slot. Use the empty slot to correct these two stacks. That is, keep the Q and J of hearts in the empty slot and stack the K,Q and J of hearts together. Then stack the K,Q and J of clubs. It is crucial to get back the empty slot after this rearrangement like how we got it back in the above step. Now use the empty slot for further rearrangement.
.
Swapping empty slots
You can forego an empty slot if you can get another by rearrangment (although two empty slots will be awesome. I have rarely lost after I get two empty slots). For eg K, Q, J of hearts stacked over a 10. Now, using the empty slot you can make it KQJ10. There are many more such possibilities. So be open and look out for them.
.
Before you click deal for a new set of cards, make sure you don't clog the empty slot. Either keep just one card (after all your iterations) or keep a correct stack. This way you can again have an empty slot reasonably quickly. Of course, if you happen to a get a King in the deal in the empty slot then sorry mate, it is blocked!
.
Step #8 - Before you click deal, press 'm' or 'h'. It is an hint for any available moves and you might have overlooked any move. It might appear as cheating and some may avoid doing this. I do it so that it saves my time. But, be careful though, the hints or the moves the computer shows are not the best ones. You should try to follow the above steps as and when possible.
.
Major tips
#1 Try to create empty slots (that is clearing all the cards in one of the stack). More the empty slots the merrier. Empty slots can be used to iterate as you can keep cards in the slot, rearrange and then remove it again. Thus, empty slots can be a temporary place to keep the card to perform many of the above steps. So  if you have an option of removing a card from a bigger stack and removing a card from a smaller stack, other things being the same, opt for removing from the smaller stack (you are closer to getting an empty slot)
.
#2 Avoid keeping an Ace or a King in the empty slot. Because a King can lock the empty slot until you finish the series and an Ace also sort of locks the slot as you will not able to stack anything over an Ace.
.
#3 Feel free to undo (Ctrl+Z) as there might be several steps possible at a given point of time and nobody is sure what is right. So you can try one combination and if it does not go well, press ctrl+z all the way down and try the other combination. In Windows xp you cannot undo the step where you completed one series and you cannot undo once you opened a new deal. But in windows 7 you can undo just anything. Some might think this is cheating. But if it is allowed, why not do it? Besides, I don't think, this game is designed for winning every time. It is still a random deal and hence you might be still unlucky and end up losing.
.
And after typing all this, I just happened to google for 'winning spider solitaire' and actually found quite a few useful links myself :P .. So the biggest tip is to google perhaps!! And yes, why do you need patience? Because, on an average before I finish this game, it takes about 300 steps and some times even close to 500 steps. That many iterations may be needed. So if you lose the game with less than 100 moves, sorry you need to iterate a lot more than that!! Good luck!!

Friday, March 26, 2010

Why I hate Solanum Melongena


It is crowned the King of Vegetables and is known as eggplant in countries like U.S., Aus... With the hue and cry over Bt Brinjal, I just started wondering why I hate this seemingly lovely vegetable... I am sure there are many lovers of it including my immediate family members... But somehow brinjal could never relish my tongue...
.
It all started when I was a kid, when my tongue was learning the tricks of the trade and when your mother had all the control over what you can and what you cannot taste... When, for the first time brinjal made its entry into my soul.. like many kids my body after a sequence of chemo-physio-thermo-kinetic reactions decided to frighten my mom with an allergic reaction. Out came abnormal bumps and out went brinjal from my diet. Little did I know that it was not only my skin but my muscles had joined the war too. (FYI tongue is a muscle)
.
As I grew up my mother again decided to take control of my diet. Brinjal can no longer be denied entry. Allergy can no longer be an excuse. So what do you do when you are force served? You keep it in a corner of your plate, promise that you will eat at the end of the meal and then silently manage to tuck it and throw it when nobody notices. But if you are caught, you have to gulp it down ensuring that it never kisses your taste buds, lest you have to 'make' faces. (So with a laborious maneuver you take the small pieces, position it perfectly to fall directly into the throat and in a split second motion allow it to pass through the oesophagus). Slowly my mother gracefully understood that I was smart enough to waste it (without their notice of course) and stopped feeding me, thinking 'if you don't eat it, you are at a loss'. Thinking of 'punishing' me, she 'rewarded' me by keeping Brinjal away! So the deal was every time she makes Brinjal, she should also make my favorite tatoes (potatoes) so that I have some veggies to eat! Awesome!
.
Why do I hate the King? Is it because it somehow for me resembled a 'fish' and being a vegetarian I just could not stand it? Well, frankly having never eaten or not even seen a cooked fish dish, the argument looks too far fetched. The only fish that was close to being blue, like Brinjal, is the Blue Whale and I have no clue if someone eats it! Or maybe was it the very appearance? Its 'kozha kozha' (mucilagenous/sticky) nature that made me feel odd, whenever I touched it or put it in my mouth? Or is it just a feeling that I could not overcome?
.
So after years of abstaining, I finally decided to try it again. After coming to the US, when my cooking experiments had temporarily taken rest, I thought why not give it a try! The egg plants in the US resembled the size of a blue whale's egg (oops whale is a mammal.. never mind.. if a whale decides to lay eggs, it might resemble it?). Chopped it into big pieces.. fried it.. spices.. the dish was ready... it din't have any resemblance, what so ever, with what my mother makes. Good for me, I thought. This should be better than how my mother makes. First spoon....yucccccccccck! Never! Never will I attempt again! But within minutes, I reneged and the buck I wasted on my experiment found its way into my stomach somehow, after fighting and gulping for 30 minutes! Phew!
.
I think I found the answer, rather an excuse. Wiki tells me that Brinjal has the highest amount of nicotine among all edible plants and 9 kgs of Brinjal has as much nicotine as a cigarette! Since, I am a non-smoker I will not eat Brinjal! Its NOT a food for thought for me.. He he..

Friday, February 5, 2010

Beware, citizens of Venus! Men are coming!

Men are from earth and women are from Venus? Move over ladies and make some space, we are already there!
.
Lions (Male) sport manes, lioness don't. Peacock (Male) spreads its tail feathers, peahens cannot , and Bucks (Male deer) grow antlers while the Does don't. Yes, you can guess it. The male species try to attract the female ones by their physique and fancy accessories. But human beings are peculiar and the behavior is reversed, or so I thought....
.
But I think we have started going 'primitive'. We have enough animal instincts already but this one 'attraction' thing was reversed and we have started to fill this gap. We are trying to exploit the world of Venus. Working out and hitting the gym is no longer reserved for Arnold.. Men are worried about their single pack (of fat/belly) and want to convert it to at least two if not six. Tight fit shirts are slowly starting to appear. Though the word 'metrosexual' has been around for some time now, I think it is accelerating even faster of late.
.
When I first saw the 'Fair & Handsome' ad, I thought it was ridiculous. I know women fall for the beauty products just like flies getting attracted to light but to imagine the same fate for men was too far fetched for me.. Yet, that's exactly what reality turned out to be. Words like 'color of the skin is not important even for women' I know will fall in deaf ears but now when men go after fairness and whiteness it sounds strange.
.
It is a famous saying that 'Men fall for women who are bautiful whereas women like men who can speak well'. But will the saying lose its relevance now? So what next? Will the future wallet of Men come with special features to fit the make-up kit of men (ala handbag). Even if it comes, will men be smart enough to pack a dozen items in that small space? And then there will be some funny things too.. Imagine a fat guy trying to show off by wearing tights or a guy's wallet spitting out a dozen items when he tries to get his credit card! Crazy things await!
.
Who wants to live on Earth any more.. So ladies, here Men come!
.
P.S - If there are any hints of male chauvinism, it is purely unintentional. I know I cannot generalize my opinions for all women. I just went with the mass opinion on things which I believe is true for 'most' women.

Wednesday, January 27, 2010

The aura that comes with being at the top

Disclaimer - This is not a sports articles though it will start with that note
.
Two instances... One in which, Federer came back from a set down, suddenly shifting his gear and moving to 'his' zone, just blasting Davydenko to reach the semis of Aus. open and ..... Two in which, Aussies digging deep and finding their resilience, came back from a situation of no-return in the second test match against Pak.... But that is only one side of the story.. the other way of seeing it is ofcourse Davydenko going down after leading 3-0 and that too after already pocketing a set, and Pakistan managing to find a door to defeat after dominating Australia for 3 days...
.
A lot has been and always be written about the top and superior guys. All credits to their spirit for hitting back from such situations. But spare a thought for the 'heroes' (or rather comedians?) of the other side. Because even we get into such situations without even realizing it. And so here goes my comment on trying to investigate what actually happens.
.
Though several philosophical and technical explanations can be given to scenarios such as above I think the aura of being at the top and the underdog(relatively) tag might play a crucial role here. The underdog may just cannot believe that he is at the top there. It is not only a thing of surprise for others who are watching him, but even within himself he is quite surprised. 'Is it that I am really playing that well or is it that he is having an off day here?', and that I think is a killer doubt, your concentration wavers and there you have lost your energy!
.
The reason why I had put the disclaimer was it is not a scenario that happens only in sport. It happens in my life and so (I believe) it does in each of our lives. It is because of the simple reason that you can never be 'the best' in what you do (and even if you do, you cannot be 'the best' in everything you do). And when we seem to be winning against an individual whom we consider (and the world in general) as superior to us, we lose our way somewhere. It might be studies in school (you beating the top ranked guy in small tests and then losing out on the Final), might be in presentation skills with a co-employee, might be winning contracts for a small company and then goofing up when it comes to a bigger client.. I am sure we will be able to think of several examples of our own.
.
Under these circumstances, I think, it is important to remember how we reached that winning position. It well might have been that the 'superior' person was having an off day, but we cannot take the role of our hardwork lightly. It deserved every winning step that we achieved.
.
But this is where sport differs from real life. What is 'winning' in life? Nothing is permanent as we all know, so it is that 'fleeting' superior satisfactory performance that we call win, it is the consistency of wins that we call a success. But we all know it is not an end point, it is a continuous journey that we are always reminded of. We keep raising our bar. (Even in sports one might argue the same thing about winning, but I guess I communicated what I intended to)
.
Being aware of such a thing is of course the first thing in preventing the slide early. We need to remember that if we slack even for a moment, our so called superior opponent will just cruise through. It is hence important to sustain the steam, it is not about self confidence or belief, but rather about indefatigableness, the power of never giving up till your goal is reached.

Monday, January 4, 2010

Are Indian rookie bowlers underbowled?

It has been some time since I wrote.. Here is one again on Cricket, a thought I wanted to record long before.. so before I forget..
It is the final day of a test match. India needs just 3 more wickets to seal the test match with a lot of runs to defend themselves and an entire three sessions. Whom do you think will open the day's bowling? You can expect the 'leading' pace bowler (currently Zaheer Khan for example) and the 'first' spinner (currently Harbhajan Singh). I would not say it is a bad decision. Obviously, you would want to seal the win as quickly as possible without letting things out of your control. But in the process what happens is you tend to 'overbowl' your main bowlers and 'underbowl' your sideline bowlers.
 
One can argue that it is fair enough as the last wickets are mostly easy scalps and your main bowlers deserve them for all their hardwork through out their career. Their confidence can also go up with two to three wickets added to their names and of course their stats page. But at what cost? One, you tend to 'overwork' your bowlers. It is perhaps the ideal situation to give your bowlers some much needed rest (that too in such a packed calendar now a days). Two, best chance to give your sideline bowlers some work to complete. Those two to three wickets will be a huge confidence boost to the young chaps who would want to cement their place in the teams. I think the twin benefits of the latter are much more than the possible benefits you get from the former. In case your main bowlers are out of form then it can be argued differently.

I guess teams like Australia consider this factor (though I know I have to prove this with stats or examples), if my memory serves me right. They trust their young bowlers to finish their job for the team.
No stats here. Just my plain opinion. If I find some time later I would back up my opinion with stats. It will be an interesting task in itself.

Saturday, July 11, 2009

My experiments with cooking

After a series of serious ones here is a light 'kitkat' break.. Days before I left for US, my mother began pleading me to learn some basic cooking stuff and as like any male progeny, I duly brushed aside her comments. Perhaps, the only thing she forced me to learn was vegetable rice and I nonchalantly nodded for the series of instructions she told me. (Man! if the simplest of recipes had so big an instruction set.. nope I am not thinking ahead)... But soon I was made to repent for my non-heeding..

Making the cooker 'feel the pressure'
This was the first of many things that made me feel "what we often take so much for granted is not that easy". Forgetting to put the whistle, adding salt, to add water to the cooker base before keeping anything etc etc.. What are the implications? Here goes one.. In my enthusiasm, once I forgot to add water to the cooker. The copper bottom (which is welded to the bottom of the cooker) took all the blame and decided to loose 50% of its circumference. Meaning, it was kind of hinging at the bottom. As a result the cooker did all the modes of heat transfer, conduction (direct metal contact where the hinges are alive), convection (metal and water) and radiation (where the hinge is pretty much open). And after a few months of attempts, I successfully de-bottomed (if there is a 'de-throned' there has to be a 'de-bottomed' too) my cooker. It's no longer the famed 'copper bottomed' butterfly. It still has some traces of the weld material and statinless steel. I still have some time though to penetrate this material.

An hungry chef is an advantage
One worst part about cooking is when you are really hungry, you badly want somebody to cook for you, so that, you can eat immediately. You just can't see the processing of your food, you badly want the whatever you are making to get cooked immediately. Remembered of my mother time and again, "Amma I am hungry". There she goes in 2 mins I have my plate ful, the latter even if I am not hungry :P. But the good thing about cooking is, if you are that hungry it just doesn't matter how bad your cooking had been. It just directly goes into the stomach bi-passing all its senior managers including the tongue.

Forgetting Physics lessons can be dangerous
Physics tells me that the boiling point of water is much lower than oil and my first teacher (mother) has told me never to mix water with oil and heat, but throwing caution to wind and not bothering to wipe the vessel, one day I started heating oil in a vessel that had droplets of water.... an immediate diwali was celbrated and i went (s)currying for cover! (For those who did not understand the water droplets evaporate and the vapour actually blasts, splitting some oil in the process which is ofcourse way too hot for your skin)

Forgetting can be equally interesting
Usually before you fry, you add oil followed by mustard seeds, and wait till the mustards blast (this is kind of a cooking timer, as the mustards blast once the oil is hot enough! lol), but one day I don't know what was going in my head, I poured the oil, kept the mustards in my hand and kept staring at it as though something miraculous will automatically happen, it was ages before I finally realised that the mustards are still in my hands!! Even worse was the day when I din't even turn on the stove and kept staring at the oil and mustards!

... and can also lead to serendipity
Another day - had forgotten to add water for Dal. I discovered dal coagulates together to form a heap. i thought these dhal unite under the 'depression' of lack of water. But later, realised that the heap was because when i pour dal it automatically results in a heap (ok ok it is a PJ .. sorry).
Another day - first ever experience of the sabji (Kari/Kai) getting blackened. I wasn't to be blamed this time though. It is cricket 07 (a computer cricket game). I thought I will play just one over before the sabji is done. 1 over became 2 .. 2 became 3 and sabji became hot and black :P .

But experimentation is not funny
Cooking is best learnt/enjoyed by experimenting ;) . So I don't follow recipes exactly. I figure out why my mother cooks in a certain way by trying the exact opposite :D, and thus prove that what she does is perhaps right! But then there is a limit to experimentation. I got so bored of eating beans, carrot, turnip etc again and again that I wanted to try something different. Saw somethign called 'Celery' in the shelf, it was green and cylindrical (like carrot), thought it will be like snake gourd and tried to make a dish out of it. After opening the cover i realised they were stalks ('thandu' in tamil), but still was courageous enough to continue. The dish was bland, and the oddest thing that I had tasted. Curiosity led me to find out that Celery is something that is put in a soup!!

Introducing Sambhar Makhani
Well, we have heard of Dal Makhani, but what in the world is this? Honestly, I wanted to make Dal Makhani. But though I had the beans and stuff, I did not want to put Garam Masala as it had a tinge of onion and garlic and I wanted to make a sattvic food :P. So I decided to put some sambhar and rasam powder and thus was born Sambhar Makahni lol. To me cooking is not analog, it is digital. Either I like it (edible) which is 1, or I don't which is 0. And this dish was thankfully a 1 !!

To be frank my cooking is not that bad. But then as you can see there were many a interesting happening in my cooking career ;) Variety is the spice of life, but when I cook even if I add spice, it becomes another variety and thus I survived an entire year by just managing with less than 5 recipes (Sambhar, kuttu, rasam, sabji)

Wednesday, July 8, 2009

Budget is no longer my gadget

'Yup! It's budget time' says the MBA in me. 'So what?' says the rest of me. Until I decided to do MBA, I was never really bothered about the budget except for the income tax rate which affected our family income. But then, during my preparation for MBA, I had analysed the then budget left, right and centre. No, No I din't analyse so deeply! I just looked at what the Left had to say, what the Centre had to say (No PM is going to blame his FM, it is anyway through him) and the opposition and then read what the national dailes had to say and so on. MBA first year, look at all the above from an MBA perspective and if possible add your perspective too. Come second year things started to change....
.
The railway budget will invariably have some price revisions (cuts if the election is close by and rise in first class price if the election is over) and some new trains for certain states based on which local party is part of the coalition. But then not many is really interested in the railway one. It is the next day that matters.
.
How about the union budget? Not many Indians are aware of the fact that less than 10% of our population constitute the middle class and higher. (But then they are responsible for a big chunk of the GDP). So for 90% of the people the budget matters very little. Schemes keep popping up under various names (yeah the names do change like James Bond movies), but then nothing great has happened in my personal opinion. Other than his own income tax and other consumable tax cuts the middle class is not bothered. Who is left? The honchos and they make sure they looby enough to get what they want both above and under the carpet. Afterall they are the funders for the parties.. hmph
.
Just like how inflation changes prices every year, I think the FM adjusts the rates here and there to make sure there ARE changes in certain figures (You see the budget has to run certain pages at the bare minimum right?). The % increase in defence outlay matches the % increase in MIG crashes. To match the dropouts out of midschool, give higher education more funding. Seriosuly guys I am fed up!
.
People think of giving rice for 2 Rs and ration cards for free. But then the number of looters will far exceed the benefactors. Why cant they think of implementing a scheme which will make them earn their 2 Rs. Surely the looters cant loot the jobs? But then how to generate so much employment? Infrastructure, agriculture (give the seeds and fertilizers free), government schools..... avenues are plenty. But everything has its own loopholes to make sure that any scheme benefits only the 'sharks'.
.
Yes, it has been years since we had a revolutionary budget. What is happening to the tax money? What is happeining to the education allocations? Agri allocations? Small scale industries development? It is a basic principle that you cannot treat the entire nation and reform the nation at one instance. But why not start from a small place. Say, one city from every state and then move from there on? But then politics can be a so frustrating speed breaker that it can be so steep to even decide which city should be the first.. Yes, pilot projects do exist but they hardly take off !!
.
India has come a long way, but then it has already taken a long time. It is progressing but not at the pace it has to and no where near the pace it is capable of. When can we see the turnaround? Not far says the optimist in me.... Jai Hind!