Utah Python Users Group - 11/11/10

I’ve been messing around with Python for the past 6 months and I’m loving it. Today I went to my second UtahPython users group meeting and had a lot of fun and learned a ton of stuff. Chronological order of things I learned: Supy bot - an IRC bot written in Python. supybot-doxygen - A plugin for supy bot that can provide api documentation for any software that uses doxygen....

November 11, 2010 · 2 min

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....

November 6, 2010 · 1 min

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 

November 6, 2010 · 1 min