Bad day all around

I went to a Beans and Brews in American Fork to get some work done. It was a total disaster:

  • I decided to try dirty Chai (Chai w/ espresso ) which tasted terrible.
  • I got no work done, thanks to the noisy coffee grinder and their horrible excuse for a music.
  • My netbook was having too many problems and I gave up trying to get any work done on it. Time to buy a decent laptop.

On my way back from this defeated attempt to work at a coffee shop, I was stopped by a cop for speeding.

  • I got my first speeding ticket in Utah County. 
  • I realized that I'm about as useful as a concrete parachute when I'm stopped by a police officer. I really need to work on my communication skills. 

Got back home and checked my email to find out, I've ruined my chances of going to an Aikido seminar. 

  • My less than tactful communication with my Aikido teacher barred both Yoshi and I from attending an Aikido Seminar in December.
  • I might have angered him and created more political discomfort.

I don't think I can salvage this day.

I'll just go back to my corner and produce some more code that the world doesn't need.

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.