Fun with dosas

I love dosas. Dosa is a south Indian dish. A better version of a crepe (shots fired) or a ridiculously thin pancake. Sempi (5yo) is also a huge fan. 

I'm making dosas for his breakfast and he requested that I make the dosas into shapes for him. He requested a police car. I was happy to oblige. 

Sempi: What is this?

Me: A police car. 

Sempi: It looks like a spaceship. Next time add some wheels to it.

Me: I'll see what I can do.


Language and Thought

I believe that the language you speak influences the way you think. I don't have any kind of proof other than some anecdotal evidence. 

Recently I started noticing this in the field of computer languages as well. I consider Python to be my dominant language. I have a coworker (let's call him Aaron, because that's his name) who likes to bait me by pointing out certain lack of features in Python and how Ruby gets it right. Most of the time I dismiss his complaints as invalid because I never have a use for those features in my day to day coding.

Then it dawned on me that I don't have a need for those features because I tend to think in Python. When I am presented with a problem I think of a solution that can be implemented in Python and my thought process naturally gravitates towards the features available in Python. 

What I learned from this realization is, if you learn many different languages you'll never be happy with any single language. You'll always yearn for that sweet feature that is missing in your current language. 

Let that be a lesson.

git open - A small git hack

You can add a git sub-command by defining a new alias in your ~/.gitconfig file as follows:

The git open defined in the ~/.gitconfig is mapped to a shell script called git-open.sh. 

This bash script does two things: 

1. It tries to detect if there are any files with uncommitted changes in the current repo and prints out the filenames.

2. If the repo doesn't have any uncommitted files, it'll print the filenames from the last commit.

The git open alias is mapped to open the output from this script using vim. 

Why is this useful?

I can pick up where I left off the previous day by simply typing `git open` inside the repo. This will open either all files with uncommitted changes or open the files from the last commit. There is a very good chance that my work for the day will continue on those files.

A small hack to make life a little bit easier.

Conversations with a 1 year old

Vian is picking up new words. His new addition is "Yeah". It is pronounced with an emphatic "EYAH!" (imagine a Karate yell).

I like asking him random questions that are at the edge of his understanding and watch him say "Yeah!".

But sometimes he uses his "Yeah!" with such precision it catches us off guard. Such as last night when we were getting him ready for bed.

Yoshi: Vian, would you like to hold a toy? You can pick either Pandie (stuffed panda) or the fire engine.

Vian: Yeah!


Words, Words, Words

Vian has been picking up a few words courtesy of Sempi. The words he has picked up so far are the ones that Sempi uses with forceful emotion. 

STOP:

Whenever Vian tries to take Sempi's toys, Sempi yells "STOOOOP" with conviction and distress. So that's the first word that Vian decided to pick up. Now he uses it with us generously. He can't quite pronounce the sound "ssss" so his STOP sounds like "TOP".

It's a catch all phrase for stopping anything that is unpleasant. So far he has used it to stop me from giving Yoshi hugs in front of him (jealousy). It is hilarious to watch him command his toys to "TOOPPP" when they keep sliding off of the couch or the table where he's playing.

NO:

This is the second word that he's picked up from Sempi. But the twist is, Vian says NO with a tinge of joy and pride. We've asked Sempi to ask Vian's permission before taking toys from Vian's hands. Sempi being the older, more responsible brother will ask politely "Vian can I please play with the toy you have in your hand?" and Vian responds "NO" with a smile and enthusiasm. It looks absolutely savage when witnessed in person.

READ:

This one, I'm very glad he's picked it up from Sempi. Sempi is a total book worm. He asks us to read a book as soon as he wakes up, while eating, while lounging, right before bedtime, even while driving (instead we listen to podcasts while driving). Now Vian has picked up on this and he demands that we read to him while he eats. He can't pronounce "R" or "D" so it sounds more like a "WEE", "WEE". He get so excited about this that he would keep asking us to read even while we're reading him a book.