I’ve spent quite a bit of time trying to understand how transactions affect accounts. One should remember that the effects of Debit (dr) & Credit (cr) depend on the type of account you are dealing with. For example, receiving money into a bank account, i.e. debiting it, will increase its balance. Whereas, sale of goods, or crediting the sales account, increases its balance. Hope this illustration helps!
All posts by Prasad
Jargon: Disruptive Innovation
Disruptive innovation describe innovations that tend to get competitors jump out of their seats. This is something – highly desirable – that the market has never seen before. Wikipedia gives the example of lowering price, but undercutting is a relatively common phenomenon. However, ‘designing for a different set of consumers’ is quite apt.
It is every product manager’s dream to conceptualize a product, or at least a feature that does creates such a wave in the market! And if you ever happen to be at the receiving end of a product demo – like the one that I usually deliver – this is the best compliment you would give. Cheers!
Converting CSV/Excel data to Doctrine YAML fixtures
I had done some research on this topic and found that some script was available in Python. With no knowledge of Python execution, I sought help from stackoverflow & got the answer there pointed to the same Python script 🙁 I decided I had to do something on my own! Ensuring the right no of spaces in the YAML could be a real pain – I haven’t found the error messages to be very friendly.
My challenge was to be able to generate a YAML for a table/schema using the nested-set behaviour in Doctrine. Instead of losing my mind on devising a human-readable format, I reverse engineered. I checked the resulting schema in the database and used that as the base for my CSV. Following this I wrote a simple macro that will output in the required format. This has evolved over a week or so, and has been thoroughly tested. I am sharing this file with 2 examples: one for the JobeetJob schema & other from the Hierarchical Data page on Doctrine.
Let me know if this helps! Vote for the answer on StackOverflow.
To start using:
- Download the ZIP file CSV/Excel to YAML Generator v2 & unzip it.
- Change the model name Continue reading Converting CSV/Excel data to Doctrine YAML fixtures
And the busy man has found time for his lost love
Apologies! I know that I have been away for quite some time now – but there are reasons! Work being the major sucker 🙂 followed by personal interests. Moreover, my boss paid a visit 😀 I tried hard to spare time, then reversed some – but nothing worked! Anyway, the good news is that I’m back.
I did miss writing all this time & kept noting them as they happened. To begin with, I hope you are aware about Census 2011. Most state & central government employees have to compulsorily participate in this, over & above their routine responsibilities (pl note 0+1=1). The lady who was doing it in our area was an innovator! Instead of visiting each house & collecting data, she took an iterative, outsourcing model. She took the lift to the first floor, and walked down distributing a form in Marathi to each house. She very calmly told people that the form was very simple (I don’t know of a single govt form that is simple) & that one didn’t need to know Marathi to fill it (I don’t know how Bengalis & Malayalis bought this idea?) Suddenly people realized the importance of Maharashtrian neighbours, and fortunately each floor had one. After putting people to the job, she again took the elevator up to start collecting filled forms. I’m sure with this trick she managed to get home in time for lunch, which otherwise she would’ve had to couple with dinner. Just to note, that innovation is not necessarily rocket science.
Two notable things happened in the near past, both of which have affected our lives in one way or the other. The first thing: revised auto-fares. As Shubhojit said, this is one thing that makes you feel real poor. What I used to spend both way is what the 3-Tyre boogie now takes away one way. All thanks to the revision graced by skilled instrumentation engineers at garages.
The other thing – the symbol that our national currency got – actually makes me feel very proud. It is the symbol of globalization, equality & finally a distinguishing factor from other currencies with the same name. Some websites, like Burrp, picked up the symbol in no time. I’m just waiting for it to show up on currency.
After news about the symbol hit the stands, people questioned the kind of money that must have gone into its making. But I say, what’s wrong? If someone can spend tons of money raising statues in a city where people don’t have enough, Continue reading And the busy man has found time for his lost love
Bhutan Diaries – Day 5: The Tiger’s Nest
Day 05:
As instructed by Kinley, we were ready to leave the hotel for Taktsang – The Tiger’s Nest – by 8am. Breakfast again was typical; only bread, butter, jam, omlette, porridge for Indians. From the point we began trekking, we could see the Tiger’s nest right in front. But to get up there, we had to take a long & winding road up the mountains. You can rent a horse for Rs.500 for a return trip, and also buy a stick for support. At some points the path really gets narrow and with the horse’s tendency to walk at the edges, you’d be convinced to not take a horse ride. We were instructed to move towards the inner-side as soon as we saw a horse.No one is allowed to a take a ride on the way down; the horses come down empty, charging like bulls – almost without any control.
At half-way, there is a government built cafeteria that offers a clean view of the monastery. You will be served tea/coffee with amazing cream-cracker-like biscuits, and on the way back can also choose to have lunch here (not recommended for Indians). The journey from this point gets a little difficult: first you have to walk up a steep path, then walk down 500 steps and finally climb another 200 to get to the temple. With some motivation from Chibu & Kinley, I agreed to go. Some of the photos taken on the way are perhaps the best ones from the trek. Most of the steps have no railings, so you really need to be careful. Before you descend the 500 steps, you are at a point that is right opposite the monastery; they could have a bridge. In fact, several people have suggested, volunteered and even contributed to building a rope-way to get up there. But the Bhutanese love Bollywood, and totally believe in ‘kuch pane ke liye kuch khona padta hai’. They believe that nothing comes easy, and that the pleasure of visiting such a holy & refreshing place and getting close to God, should only come after some effort. Continue reading Bhutan Diaries – Day 5: The Tiger’s Nest
Bhutan Diaries – Day 4: Heading for Paro
Day 04:
We started our day with a brief trek to the temple of the divine mad man. The one thing you will see everywhere close to the temple is phalluses drawn on walls. The ‘divine madman’ was believed to have a huge phallus and made love to the most beautiful girl in every village he went. He’s called mad because he had sex with his own mother, but only to purify her – and divine for his wisdom. He is known to scare-off daemonesses with his phallus. That is the reason we saw wooden phalluses at the handicrafts museum in Thimpu. Besides paintings, tiny wooden replicas are hand-crafted and worn in the necks of new-born children. Stories like these come from the near past in Bhutan – the 16th century – the same time Shivaji maharaj was building a navy to ward-off the English.
At the temple, Kinley picked a name for his new born daughter by pulling a string-tied page from a book of names; all names come either with Kinley (name of temple) or Chimi (meaning no-dog based on a mythical story). Ma prepared herself for tomorrow’s trek to the Tiger’s nest by grabbing a wooden stick from one of the trees. The struggle for chicken continued even at an Indian restaurant called Chula whose menu featured a dozen chicken preparations common to a Bombay restaurant. We had no option but to head to Hotel Pedling for our protein dose. In the mean while, Continue reading Bhutan Diaries – Day 4: Heading for Paro
Bhutan Diaries – Day 3: Punakha
Day 03 15:00, Punakha:
We had mentioned to our guide Kinley, that although we weren’t atheists, we were fonder of nature than monasteries. I’ve seen quite a few in the North East, and my parents even more in Sikkim & Northern Kashmir. With this in mind, he drove us out of Thimpu along a road following the river where at one point, me & Chibu even got into the river climbing over some huge stones. To my misfortune, I slipped over a wet stone and the next minute, I was drenched in water close to ice-point right up to my knees. I was lucky to not get hurt or carried away by the river.
We also learnt some Dzongkha on our way; e.g. Phab means pig, chhee means dogs, tta means horse, etc. Surprisingly, the Bhutanese script has no way of joining letters, which results in extremely verbose spellings (not sure if that makes sense). So tta (horse) is spelled as ra-ta-ta-ta: and Prasad as p:-a:-r:-a:-saad-a-saad. Here’s some audio. I wouldn’t be able to spell my own name till 5th standard. The education system of Bhutan is similar to India: after several levels of school, students head to junior college Continue reading Bhutan Diaries – Day 3: Punakha
Bhutan Diaries – Day 2: Around Thimpu
Day 2 18:30, Thimpu
After breakfast, we checked out the Centenary Farmer’s market in Thimpu that sells cereals, vegetables, meat & fresh farm items on Sundays. BAFRA, or Bhutan Agriculture & Food Regulatory Authority ensures hygiene in the market; I remember seeing their agents vigilant at the airport for any unwanted living plant/animal brought into Bhutan. We also checked out the black-market on the other side of the river which sells antiques – few of them sealed which can be officially carried out of the country.
On our way to Thimpu-top, the 4th king’s modest motorcade passed by; our car waited for him to pass. Bhutan has had democratic monarchy backed by a constitution since 1907; the 1st king was the son of an eastern king who emerged strong & defeated the other two in the south & centre. The Royal family owns several businesses & the king is salaried; most luxury hotels, spas, trading businesses Continue reading Bhutan Diaries – Day 2: Around Thimpu
Bhutan Diaries – Day 1: Thimpu
15:30hrs, Thimpu
Night stay at Kolkata was decent; we ordered chicken noodles in the middle of the night. The city is still as unclean as it was 10 years back, accompanied by very high entropy. The airport is medieval (note: aviation history starts much after Christ) & even Emirates does not get an aero-bridge. Took an early morning Druk Air flight to Paro; the airline operates a fleet of 2 A319s. I was sitting next to Pema Tshering, a unique scholar who teaches History to MA students & Geography to BA students. He was kind enough to offer me his window seat & introduce me to the Himalayas. The approach to Paro requires a 90 degree turn between the Paro valley to show way to a really small runway; surprisingly there are no taxiways either.
At the airport, everyone from ground-staff to policemen were wearing something very close to knee-length bathing robes; little later we realized this was Gho, the national dress. My parents were telling us the story of a man before them who was about to be sent back for some reason. I think, unless you’re travelling on business, you can’t enter Bhutan without a package tour. Out of immigration & customs, we were welcomed by our tour guide Kinley Tensin (right! Same as the mineral water brand Continue reading Bhutan Diaries – Day 1: Thimpu
Bhutan Diaries- Day 0: Kolkata
Day 0 21:45 ,Jharkhand air-space
Just finished watching ‘Wake Up Sid’. Aru was right, maybe I should dedicate time for movies in order to better understand them and feel the kick. I’m in a window seat & I can see nothing but the bright fool moon & some dew on the wings. Some aunties (pun intended) served great food on the ‘new Air India’, however, a minified (got this word jQuery) version of the airline’s glorious past. There was no welcome drink, toffee or even cotton wool.
Take-off was delayed by almost an hour and half & we waited the first 45 minutes without any intimation; the next 45 minutes we were locked up in the aircraft. Unlike my horrible SpiceJet experience recently, the cabin was oxygenated. OR guys have a lot to do in aviation –at least operations in India are far from efficient.
Some excited 1st-timers bring to my notice that ambient outside is -49c; that was constantly being updated on the head-rest mounted LCDs of the A319. All that’s left for today is to get into a ambassador cab, drive to the hotel & hopefully pay by the meter. Kolkata here I come…
PS: Offline mode in the E71 really helps.
Our Bhutan trip from Kolkata & back was (well-)managed by Mystic Bliss Tours & Travel