Cows and Bulls Game

A typical Saturday evening conversation between me and my inner voice. 

Setting: Salt Lake Roasting Co., after an intense Aikido training. 

Me: I'm bored. 
Inner Voice: Go take a nap.
Me: Meh! I think I'm gonna do some Python coding. 
Inner Voice: What are you going to code? 
Me: Remember the Cows and Bulls word game that I used to play when I was little.
Inner Voice: What? That sounds kinda lame. Work on something productive.
Me: Screw you, Inner Voice!!
Inner Voice: I don't like you very much. 
Me: Oh yeah, well the feeling is mutual. 

So I fired up Vim and coded up the Cows and Bulls game :)

It is text-based right now and still in its primitive stage. I'll probably add more features when I get into a fight with my Inner Voice again. 

Extracting 4 letter words from a wordlist

All I wanted was to extract only the 4 letters words from /usr/share/dict/words. It tooks me a full 10-minutes to figure out the regex for it to work with egrep.

$ egrep '^[A-Za-z]{4}$' /usr/share/dict/words

 Note to self: Must practice regex syntax more often. 

Update (a slightly cleaner way, from @gabegundy):

$ egrep '^[a-Z]{4}$' /usr/share/dict/word 

Happy for a friend

My buddy just told me that his wife is 11 weeks pregnant.

An exchange we had over the phone: 

Anand: If we have a boy, we'll start receiving applications from potential brides. Would you guys be interested in pre-applying? 
Me: Well if we have a girl, I'm sure she can kidnap your boy without any trouble, saving us the trouble of application fees. 

I'm freakin' excited for Anand and Abirami.