Preeti Edul's Bloghttps://preetiedul.wordpress.com
For thoughts that surviveSun, 22 Jul 2018 05:17:26 +0000enhourly1http://wordpress.com/https://s0.wp.com/i/buttonw-com.pngPreeti Edul's Bloghttps://preetiedul.wordpress.com
A little less lazyhttps://preetiedul.wordpress.com/2013/12/24/a-little-less-lazy/
https://preetiedul.wordpress.com/2013/12/24/a-little-less-lazy/#commentsTue, 24 Dec 2013 15:32:54 +0000http://preetiedul.wordpress.com/?p=2805Continue reading →]]>Two things, laziness and the fear of making the wrong decision, have left me with nothing to show for all my brilliant ideas and capabilities. If you think this is about unrealistic goals a woman (like me) might set, e.g. losing 10 pounds by going on a raw vegan juice diet or having the shoe closet perennially organized, then you are mistaken. I won’t deny it, I did at one point think I was super woman, but with old age came the realization that being ordinary, odd and ignorant can be really fun. I no longer pretend I know who Steven Spielberg is.

So if everything on my list is something I love doing, what’s stopping me? Yesterday, was significant because I got to cross out an item on my list :)

To-do item: Visit Coit Tower

Reason for procrastination: Must learn photography to be able to take good pictures.

Outcome: Beautiful walk to the tower ending in a well deserved fried chicken sandwich @ The Naked Lunch. Overexposed and blurry pictures pictures taken in Manual mode and some decent pictures taken in Auto mode.

]]>https://preetiedul.wordpress.com/2013/12/24/a-little-less-lazy/feed/437.774929 -122.41941637.774929-122.419416preetsyIMG_2628IMG_2631IMG_2640IMG_2642IMG_2647IMG_2651IMG_2653IMG_2655IMG_2665IMG_2674IMG_2680IMG_2695IMG_2698Creating a “Hello, World !” Kindle Fire app using App Inventor – it’s easy, it’s free !https://preetiedul.wordpress.com/2011/12/13/create-kindle-fire-app-using-app-inventor/
https://preetiedul.wordpress.com/2011/12/13/create-kindle-fire-app-using-app-inventor/#commentsTue, 13 Dec 2011 22:24:37 +0000http://preetiedul.wordpress.com/?p=2644Continue reading →]]>I was browsing the Amazon app store today morning, looking for an app for my Kindle Fire, but unfortunately I just couldn’t find one that looked as sleek as the iPad counterparts. I even upped my budget from FREE to 0.99$, but in vain. So being a developer, I did what came naturally to me – reinventing the wheel by creating an app of my own.

Step 1 of 2 – Creating the application on your computer

So, first things first, a “Hello, World!” application. I stumbled upon the the App Inventor by Google that allows you to create apps for the android phone and as luck would have it the apps work on Kindle Fire too. A perfect start for someone like me who knows nothing about mobile development.

Installing the necessary components so that the App Inventor can work in your browser is really easy and hassle free. Just visit App Inventor Website and follow the instructions to a T !

I’m not going to repeat the instructions, as it has been explained very well on the App Inventor website. You need to follow the section that explains how to create an app using an emulator (and not the phone). I’ve added a few snapshots and some notes on slight glitches I faced.

A snapshot of the App Inventor with the “Hello World” interface – a button and a label :

Note 1. I installed the app inventor on OS X Lion and Windows 7 Home Premium without any hassle at all using Chrome.

Note 2. After I closed and restarted the browser, the app inventor did not load correctly. I fixed this by explicitly executing the adbdevices.bat file which can be found at “C:\Program Files (x86)\AppInventor\commands-for-Appinventor\adbdevices.bat” on a 64 bit windows machine.

The Block Editor allows you to define the behavior for your user interface. The graphical model for describing the logic seemed a little too cute to be very practical but it does get the job done and worked without any problems. I am going to have to dig deeper and figure out if the App Inventor allows you to define logic the ‘text editor’ way, or if I am going to have to switch development environments for building applications that do more than purr.

A snapshot of the Block Editor – toggles the label on button click :

Note 3. On the mac, the “connect to device..” button on the Block Editor was grayed out for me. I am sure this can be fixed but I just switched to Windows 7 to avoid being derailed.

So at the end of this process you should have a .apk file somewhere on your computer.

Step 2 of 2 – Installing the application on your Kindle Fire

This was easy, now comes the frustrating part of transferring the .apk file to the Kindle without a USB cable. Eventually I did find a roundabout way of getting this done.

Firstly, you need to install the ES Explorer application on your Kindle Fire. Next, you need to enable application installation from “unknown sources”. Unknown to Amazon that is, not you. If the application is unknown to you, you might be better off without it. This option can be found under settings -> More -> Device -> Allows Installation on Applications -> ON.

Install the ES Explorer app on Kindle Fire

Turn on app installation from unknown sources for Kindle

You now need to send the .APK file to your kindle. Emailing the file to your-amazon-id@kindle.com does not work. If you have a USB cable thats great, but since I didn’t have one I mailed myself a copy of the file and downloaded it via the Email app on Kindle.

You can install the application by launching the ES Explorer application and locating your .apk file. If you downloaded it via email, you will find it under the “Downloads” directory. Install the application and your app will be added to “Apps” available on your Kindle.

Our HelloWorld app under “Apps”

You are now ready to greet the world !

]]>https://preetiedul.wordpress.com/2011/12/13/create-kindle-fire-app-using-app-inventor/feed/1240.714353 -74.00597340.714353-74.005973preetsydesigning-app-interface-app-inventorapp-inventor-block-editores-file-explorer-appallow-installation-of-applications-kindle-firesend-apk-file-to-kindle-fire-without-usbinstall-app-from-es-explorerhello-world-app-kindle-firehello-world-kindle-fireGoogle Chromebook – better or worse than a laptop ?https://preetiedul.wordpress.com/2011/06/09/google-chromebook/
https://preetiedul.wordpress.com/2011/06/09/google-chromebook/#commentsThu, 09 Jun 2011 20:44:48 +0000http://preetiedul.wordpress.com/?p=2544Continue reading →]]>I was reading this article today at the NY Times, which offered an amusing introduction to Google Chromebook – the new laptop by Google. The article itself and a lot of comments that followed didn’t seem too impressed. Maybe you like it, maybe you don’t, but you will definitely agree that it is different. How so?

1. It does not run Windows BUT is still targeted towards people who think Ubuntu is …ummm, what exactly is it again?

2. The only thing you can do with it is surf the web BUT it still costs as much as a fully functional laptop.

Sam Grobart ends his NY Times post with this cheeky little note, which might very well reflect your state of mind.

The Common Man : So I would want a Chromebook because …?

Sam Grobart : Good question.

Though the comment above was meant as sarcasm, I believe it is a good question. When I bought my first laptop, I wanted every possible port a device could offer. What if I wanted to connect it to [any magical peripheral device here] ? By the end of its life I had used two, the Ethernet port (for internet) and the USB port (for everything else). The same holds true for the SLR I purchased with great enthusiasm. On most occasions I used two buttons, one that turned the power on and the other that took the picture.

So if you believe Chromebook is useless because regular laptops can do everything it does and much more, think again. When Google first launched its search engine I am sure they looked stupid with one button and one text-box, but look where they are today. And though most people think they want more features, what they really want is more simplicity. Apple and Google are organizations that get this and it is reflected in their products beautifully. Microsoft unfortunately is not one of them and anyone who has worked with Visual Studio can vouch for that ;-)

I use the computer to do three things precisely – write code, blog and surf the web (mail, news, networking). Only the first one, writing code, is something I cannot do on the Chromebook and to be honest something I prefer not doing on my laptop either. The rest of my time I spend reading and writing on the web and I think Chromebook is suited perfectly for those tasks.

So although I am not going to throw away my desktop, I can surely see myself buying a Chromebook instead of a laptop the next time. Not having to learn another Control Panel layout1 and not having to view update messages from every software installed on my machine is reason enough !

1 – Why does Microsoft do that? Am I stupid or does Administrative Services like playing hide and seek?

]]>https://preetiedul.wordpress.com/2011/06/09/google-chromebook/feed/1540.714353 -74.00597340.714353-74.005973preetsyChromebook - disposing software installationsWhen ‘homemade’ no longer means ‘your’ homehttps://preetiedul.wordpress.com/2011/05/27/truly-homemade/
https://preetiedul.wordpress.com/2011/05/27/truly-homemade/#commentsFri, 27 May 2011 17:29:35 +0000http://preetiedul.wordpress.com/?p=2428Continue reading →]]>“He who depends on himself will attain the greatest happiness” reads a Chinese proverb. So it comes as no surprise that everything today is ‘Made in China’ ! Unfortunately, no one really loves mass produced factory-made goods and advertisers were the first to realize this. Advertisers are always the first to realize everything. Labels like ‘Homemade’, or ‘Hand Painted’ or even ‘It’s a family company’ allow products to move into a ‘premium’ category. But when was the last time your home, your hands or your family made something (other than money)?

The process of creating by and large is always more satisfying than that of consuming. It does not need to be valuable or even praise worthy. It can simply be mediocre. Vincent Van Gogh once wrote in a letter to his brother Theo;

“I do not at all despise mediocre in its simple sense. And one certainly does not rise above the mark by despising what is mediocre. In my opinion one must at least begin by having some respect for the mediocre, and know that it already means something, and is only reached with great difficulty.”

These are my attempts. First being the cardamom mava cakes, which I must admit were delicious. Here is the recipe. The perfect accompaniment to a mava cake is some tea and a book. I picked up “Marrying Anita: A Quest for Love in the New India”. Now this ones far from being a classic, very far indeed, but a chick lit once in a while never hurt a soul. I even wrote a little review for the book on amazon.

“This was a fun book, and I enjoyed reading it. However, you might be disappointed if you were hoping to find a deeper connection with the author and her life. I believe a lot of the negative reviews reflect that, since after a certain point it is difficult to relate to Anita’s experiences, especially the fact that her failed relationships seem to teach her nothing. Everyone has the right to act silly at any age, but one hopes the wiser ones realize their folly and correct themselves once the moment of insanity has passed. And one definitely hopes to be wise by thirty !

But I like her honestly and clarity and she is not afraid to say it like it is. She does have her preferences; she likes the poor boy from the village who works hard and becomes an artist, she does not like the poor boy from the village who works hard and becomes an IT engineer in New Jersey. But at no point is she pretentious which I find quite refreshing. She has preferences, we all do.

Surprisingly, Delhi seems to be light years ahead in terms of dating if compared to Mumbai. I can imagine smoking and drinking to your hearts content in Mumbai, every day, for FUN. But to do that when you’re here to find a husband? Hmm, never heard of that one! I have yet to meet an Indian woman who partied her way to marriage. What a boring world I live in!

So if you want to enjoy the book, don’t take everything it says too personally. It is about her, Anita, and not about the Indian woman you are, you love or hope to meet !”

And finally a painting. It’s a concept called paint by numbers, where the supplier will send you a canvas with a drawing sketched out. There are even little numbers indicating the colors one must use for each section. Takes you back to primary school doesn’t it? Good old days, where the only worry you had was sticking inside the boundaries. Who says painting has to be hard work?

Tetsuya Miyamoto, a very intelligent math teacher from Japan is the inventor of the logic puzzle KenKen1. Tetsuya believed in the art of teaching without teaching and learnt how not to scare his pupils away! KenKen which loosely means cleverness squared (ken X ken) is very much like Sudoku with the addition of simple mathematical rules.

I love KenKen and have been addicted to it for some time now. So early one morning I decided I’d write a computer program to solve it. At first I thought it was going to be a piece of cake. One day is all it would take. After all, how hard was it to find the list of numbers that multiply to twenty four? Turns out, it was; not hard but definitely tricky. Then again, which software project ever completed within estimates ;-)

I wrote the project in C# (ASP.NET) but I wonder if F# would have been a better choice given the mathematical nature of the problem. The lazy me, who didn’t want to learn another syntax sadly skipped this. Maybe I can write an F# program to solve Sudoku ?

My program is not exactly a computerized solution to KenKen. It moves one step at a time and mimics the way a human being (mostly me) would typically solve this puzzle. This also means that the success of this approach is limited by my ability to solve it. I personally have not been able to solve a 7 x 7 hard puzzle and hence, my program can’t solve it either (any help appreciated !). The solution also doesn’t use backtracking2 because although it is very easy for a computer, it is very hard for a human being after a certain level.

So, this is how the application looks. It has been deployed using AppHarbor3 and you can check it out over here (kenken.apphb.com).

Backtracking is a common technique in computer science used for finding solutions to certain problems. In simple words, you guess a solution and then move forward. If your guess was invalid you wont be able to solve the problem correctly and you will discard this solution. You then backtrack, and guess again, till finally your guess is accurate!

AppHarbor allows you to deploy your application on the web and was such a joy to use (appharbor.com)

]]>https://preetiedul.wordpress.com/2011/05/17/kenken/feed/1340.714353 -74.00597340.714353-74.005973preetsyKenKenkenkenhelpWhat’s on the menu? Strawberries and cream – 15¢ only !https://preetiedul.wordpress.com/2011/04/27/whats-on-the-menu-nypl/
https://preetiedul.wordpress.com/2011/04/27/whats-on-the-menu-nypl/#commentsWed, 27 Apr 2011 20:15:31 +0000http://preetiedul.wordpress.com/?p=2227Continue reading →]]>Mahabaleshwar and strawberries go hand in hand, mostly the hands of tourists flocking this town in the Western Ghats of Maharashtra. Few memories remain of my first visit to the plateau, which was more than a decade ago, but the one that does is of my father being rather gluttonous with the fresh strawberry cream servings! In all fairness, they were to die for. And so, when my husband and I planned a more recent visit to the town, the greedy berries and cream climbed to the top of my checklist.

“80 rupees” said the person at the counter. Did I look like a fool to him? I righteously stomped off to a stall a few blocks away. “80 rupees” came the echo. It is surprising how someone who looks so haggard and weak at one moment can appear so shrewd and businesslike the very next. I was almost certain he had a BMW hiding somewhere behind his 5 by 5 feet stall. “OK” I said at the cost of committing one of the seven deadly sins, gluttony via laute – which in Latin is the sin of eating too expensively! Now, had I been born at the end of the 19th century, I could have feasted on those delicious cream topped berries and gone straight to heaven both figuratively and literally, for in 1901, the A.M. Sweet & Son Restaurant in New York served them for only 15¢ ! And how do I know this? Well because it’s on the menu!

“What’s on the menu?”, a project by the New York Public Library is now converting its historical restaurant menu collection into a computer friendly format. They have about forty thousand of these historical menus – a data analyst’s dream, a data entry operators’s nightmare! But before you pity the later, you ought to know that that person is you! “What’s on the menu?” requires regular people like you and me to help transcribe these menus by typing in the dishes that appear on the picture of a menu card, one dish at a time. Though the task is a tad repetitive, it is definitely entertaining. When the project completes and with the magic of data mining there would be so many new things to learn about the way we ate. There are interesting things you notice even while examining a single menu, like “French Asparagus” was one of the few items that cost $1 when everything else was only around 25-50¢. Oh surely they couldn’t taste better than those strawberries!

It is interesting how the celebrations start out in the town square and slowly move onto the streets :)

“Let us all gather in the town square to celebrate peacefully.”

“Hmm, something doesn’t feel right. I wonder what?”

“I’ve got an idea – lets try moving on to the streets!”

“Hey, this is great ! Who knew blocking traffic was such fun!”

“Lets get this bugger ! Yippiee…..!”

]]>https://preetiedul.wordpress.com/2011/04/05/maintaining-tradition-blocking-streets/feed/740.714353 -74.00597340.714353-74.005973preetsynewport_towers_firstnewport_towers_secondnewport_towers_thirdnewport_towers_fourthnewport_towers_fifthCustomer Service and Vodafone – The sticky ‘ex’ storyhttps://preetiedul.wordpress.com/2011/03/28/customer-service-and-vodafone-the-sticky-ex-story/
https://preetiedul.wordpress.com/2011/03/28/customer-service-and-vodafone-the-sticky-ex-story/#commentsMon, 28 Mar 2011 17:02:24 +0000http://preetiedul.wordpress.com/?p=2147Continue reading →]]>For a country that swallowed customer service jobs across the globe, slapped multi storied towers on acres of land building call centers, and made people work through the night, you’d have thought they got one thing right – Customer Service!

“I will give you my personal number” said the lady at the Vodafone store on Mangaldas road, a quite lane in Koregaon Park. “I assure you, you will have no problems with the account again. Ever.” she continued. “Thank you” I said, “but I would like to close my account and terminate my number”. As she reluctantly filled the account closing form, I was happy knowing that I would never ever have to visit this store again or speak to another Vodafone customer care executive, whose only solution to my problems was – “Sorry madam, but you will have to visit the store personally”.

Have you ever been in a relationship where one person wants out and the other is willing to do everything to keep it going? Plead? Beg? And if you still magically got out, the begging turned to harassment and pestering? So much in love was Vodafone with me, that they just couldn’t accept that our relationship was over. Long after I had payed off the last bill and settled all dues they sent me another one! Yes, a bill for a period during which the number did not exist. I had left the relationship. Vodafone had not. They kept their end going, sending me bills and harassing my poor mom whose number I had provided as an ‘alternate’ (extremely bad decision).

I called the Vodafone customer care executive who told me “Sorry madam, but you will have to visit the store personally”. At least they were consistent.

I wrote to Vodafone customer care explaining my situation. They wrote back saying they tried calling me on this closed, non existent number but could not reach me. Poor things, in a corner of their heart they still believed that this number was alive.

One day, my dad received another pestering phone call from Vodafone. The person spoke with a voice of finality – “Are you going to pay the bill or not?’ My dad thought for a moment and decided he might as well give the 350 bucks and shut the matter. So, he told her he would do so, but she must give a clear statement saying that the matter was now closed. She thought for a while and then said: “Okay. Then will you pay 700?!”

We all know that the customer care around cellular services is a joke in India, but Vodafone seems to have taken this analogy quite literally!

Rudolf: Oh! I love investigating truth. I’d love helping you arrive at some great truth.

Prof Kohler: (Laughs sarcastically) And then we could write a paean!

Rudolf: Ah! A song of triumph! I’d quite fancy that!

Prof Kohler: It requires diligent work, my friend. One needs to work sincerely with care and effort.

Rudolf: Oh do give me a chance. I am rather fond of such things.

Prof Kohler: It’s not for a dilettante like you. Dabbling in a subject for pleasure. One needs to think… explain…

Rudolf: You sure need to do a lot of explaining!

Prof Kohler: It’s not easy separating the wheat from the chaff. Picking out gems from all the detritus, all the debris surrounding them. Get me that pen from the mantelpiece, will you?

Rudolf: (Looking around) The pen…

Prof Kohler: Shelf above the fireplace, man. One would have thought you knew that, at least.

Rudolf: (Getting the pen) As a matter of fact I was writing something I thought I’d show you?

Prof Kohler: (Raises an eyebrow) Writing a dialectic?!

Rudolf: I’ll sure be dead if I don’t write it before the first semester. It’s about the movement of particles.

Prof Kohler: (Picks up the paper and reads) The movement of – eh? – discreet particles? How can a particle be discreet?

Rudolf: Why not?

Prof Kohler: How can a particle be prudent – not giving away secrets?

Rudolf: I mean particles that are separate…

Prof Kohler: That’s discrete. Not joined, separate.

Rudolf: (Making light of it) Well then let’s say discrete particles are discreet!

Prof Kohler: (Grunts)

Rudolf: Come uncle you don’t have to be so pedantic. Strict observance of rules and details and all that.

Prof Kohler: (Getting irritated) Well, come to the point. What do you want?

Rudolf: Ah! There was quite a pageant I saw on the way here. Quite a procession – fancy dress and all.

Prof Kohler: Why didn’t you join in?

Rudolf: But there were some fancy cars too! I was thinking – my old man…

Mrs Kohler: (Entering the room) Hi Rudolf! Nice to see you so early! That was a nice pageant…

Rudolf: And some mighty fine cars. And my old man won’t shell out even a thousand for a second hand car.

Mrs Kohler: He is rather parsimonious. Remarkably stingy and positively mean for a man of his means.

Prof Kohler: And he lives in a warren!

Mrs Kohler: Oh, he doesn’t stay in a rabbit burrow!

Prof Kohler: Well those narrow interconnecting paths and buildings! Makes me giddy walking around those parts.

Rudolf: But you don’t have to go there, uncle! And I stay there! So how about a thousand quid to be returned next month?

Prof Kohler: Why would anyone give even one pound to a profligatewasteful person like you?

Mrs Kohler: That’s not a nice word Kohler! (Thinks) Perhaps you could call him prodigal!

Prof Kohler: Means the same thing!

Mrs Kohler: But sounds a lot kinder! (Turns to Rudolf) That Ford dealer won’t give you on instalments?

Rudolf: Oh, he is hopeless! Doesn’t know what he talks. Thinks I should get myself a tumbril. What’s a tumbril, aunt?

Mrs Kohler: A sort of open cart, I think.

Prof Kohler: The sort they used to carry condemned people to the guillotine.

Rudolf: (Laughs) The French wouldn’t like a touch of German blood to soil their guillotine, would they now?

Prof Kohler: The French Royalty had enough German blood singing through their veins! Any more and they would bechimeras!

Mrs Kohler: Chimeras! Can’t imagine Napoleon with the head of a lion, the body of a goat and a tail of the serpent!

Rudolf: (Perplexed) What are you talking about? We started with a thousand pounds…

Prof Kohler: You are rather pertinacious! Persistent and determined to get your hands on my money. But it’s no use. (Waves him away) Go now! My secretary isn’t coming and I have to do the typing myself. She is a little indisposed.

Rudolf: With a paper like this you could be his nemesis! Bring about Professor Kohler’s well-deserved downfall!

Prof Karl: Much to your chagrin, much to your disappointment and annoyance I must clarify that I’m not that naïve! Lacking experience and judgment to be taken in by a scallywag, mischievous person like you.

Rudolf: You make me giddy with your words! Oh well, I’m not infallible, incapable of making mistakes! Perhaps I miscalculated! Perhaps I meant a thousand pounds!

Prof Karl: I think you meant five hundred.

Rudolf: You really can read my unconscious mind! I think you are right!

Prof Karl: That’s more like it! (Hands Rudolf the money and takes the typescript)

Rudolf: Professor, who does the typing for you? No secretary! What a pity! (Picks up the manuscript from Karl’s table) ‘An
Analysis of Despair and Dejection’. No reason to be, sir! I could do this for you in ten minutes!

Professor Karl gives Rudolf the manuscript and goes in to make tea. Rudolf types furiously, making two copies and slips one into his pocket. He rushes through the tea and makes straight for Professor Kohler.

Rudolf: (Waving the typescript in front of the Professor’s nose) See what I got!

Prof Kohler: (Straining to see) What?

Rudolf: Revenge! Sweet revenge!

Mrs Kohler: What are you talking?

Rudolf: He is finished, annihilated! Destroyed completely!

Prof Kohler: Who?

Rudolf: Professor Karl!

Prof Kohler: (Taking the typescript and reading) Oh! Ah! Really!

Rudolf: Get it in the journal pronto, at once!

Mrs Kohler: It will no doubt vex him greatly.

Rudolf: Annoy and worry him no end!

Prof Kohler: (Mischievous glint in his eyes) Hmm…

Rudolf: You can eat your cake and have it too…for just…a thousand pounds!

Prof Kohler: (Putting the papers in his drawer) That’s more like it! (Hands him the money)

Rudolf: (Slipping the money into his waistcoat) Well uncle…as I always say – All’s well that ends well!

]]>https://preetiedul.wordpress.com/2011/02/13/improve-your-vocabulary-without-a-dictionary/feed/340.714353 -74.00597340.714353-74.005973preetsyDesire is the root of all (shock) happiness !https://preetiedul.wordpress.com/2010/10/07/desire-root-of-all-happiness/
https://preetiedul.wordpress.com/2010/10/07/desire-root-of-all-happiness/#commentsThu, 07 Oct 2010 05:43:29 +0000http://preetiedul.wordpress.com/?p=1955Continue reading →]]>When we read Buddha’s quote, “desire is the root of all suffering” we nod in agreement. It all comes back to us in a flash. Fancy college degrees, our first lost love, that perfect figure, the perfect salary *sigh*. All desires that surfaced, burned and eventually dwindled leaving us with a scar in our heart and a much deeper understanding of Buddha’s quote.

I do not disagree with Buddha. In fact I agree with him completely, except that he forgot to mention the other half !

Desire is the root of all happiness !

Can this be true ? Decide for yourself. Which of these scenarios make you sing a song and believe you are the happiest person alive?

Case [A] – You have been longing for something for months, even years and you finally get it.

Case [B] – You unexpectedly receive something pleasant*.

(*Note: Of course this pleasant item cannot be a desire because then it would simply be case [A] where you got what you wanted sooner rather than later. To put it explicitly, case [B] is when you get something which the world would consider desirable/nice/beautiful/expensive but its not something you personally crave for – it is a nice thing to have but you really would not be affected if you lived your life with or without it)

The difference in Case [A] and Case [B] is only “desire”, and if you too like me picked [A], then, “desire is the root of all happiness” in your life too :)