Lonely Lion

Entries from October 2006

Emacs D&D

October 25, 2006 · Leave a Comment

“Having GNU Emacs is like having a dragon’s cave of treasures.”

I love manuals that are unashamed to be nerdy as all get out. My transition to Emacs as my primary editor is humming along nicely. I’m still not as fast in Emac as I am in Vim, but I’m getting there. Dired and some liberal buffer usage is almost-as-good as the menu bar in TextMate. I played around with ECB for Emacs, but ended up ditching it for straight GNU. I veered slightly off the GNU path on my Mac, and installed Aquamacs. I had a hard time looking at the fonts on straight Emacs on my Mac. They made me cringe. Aquamacs is anti-aliased, which makes it prettier. I also found a rails-mode that gives you a bunch of snippets similar to TextMate.

I’m happy with the transition. I like the idea of using (pretty much) the same editor on my Mac, PC, and Linux box. It’s also nice to know that I can extend Emacs in interesting ways without having to learn Vim scripting. I like the idea of extending Emacs with Lisp. It kills two learning-birds with one nerd-stone. A nerd-stone of +2 attack! In short, “GNU Emacs is like having a dragon’s cave of treasures.”

Categories: Blog

TechCoffee Season 2 First Friday

October 20, 2006 · Leave a Comment

I just checked in my work from this morning’s TechCoffee. I created a very minimal set of migration scripts for Captains, Ships, Locations, and added a bit to the migration to build 10k locations in a 100 x 100 grid. I started to adapt the user management recipe from Rails Recipes for logins, and then ran out of time. All in all, a productive first TC.

I also came up with a cool idea for building maps in the game. It’s based on the simple ASCII maps from the game Austerlitz. Something like:


**............**
***.........***
**...........p**

Could be parsed up and converted to a series of locations where the asterix’s are land, the dots are sea and the p’s are ports. It might be an easy way to build fancy maps quickly. Something like .[50]. could be parsed as “50 sea locations”.

Categories: Blog · Maturin · Projects · Ruby · TechCoffee

Svengoolie on Talkin’ Funny

October 18, 2006 · Leave a Comment

Steve got Rich Koz, the WCIU actor behind Svengoolie, for Talkin’ Funny this week. I really like this guy, he’s a Chicago legend.

Categories: Blog

Why Perl 6 is better than Ruby

October 16, 2006 · Leave a Comment

pugs> "chris is cool".say
"chris is cool".say
chris is cool
Bool::True
pugs>


>> print "chris is cool"
chris is cool=> nil

Ruby says that “chris is cool” is ‘nil’. Perl 6 says “chris is cool” is ‘Bool::True’. Thanks Perl 6.

“Ruby is cool”=> nil

Categories: Blog

Pugs in your browser

October 16, 2006 · Leave a Comment

You can now try Perl 6 in your browser. Hot on the heels of the try ruby in your browser “movement”, Pugs is now browser worthy.

Categories: Blog · Perl6

TechCoffee Season 2 Announced

October 16, 2006 · Leave a Comment

http://techcoffee.infogami.com/Season_2

Switching from Monday’s to Friday’s, and bumping it up to 7am instead of 6am. Both are good things in my book. I’m looking forward to it. Go Tech Coffee!

Categories: Blog · TechCoffee

October ChiPy

October 13, 2006 · Leave a Comment

Last night’s meeting was pretty well attended. We had two speakers, David Beazley and Michael Tobis. David presented PLY, the Python Lex Yacc replacement. I was really looking forward to his presentation, and wasn’t dissapointed. David taught a compilers course at University of Chicago (not sure if he still does). He clearly knows how to present the material. Ever since I went to the Perl 6 track at YAPC, I’ve been interested in learning more about how programming languages are parsed and compiled. I’ve been having a hard time finding entry points. It’s a complicated topic with a steep learning curve. Although I’m not in any hurry, David’s PLY talk pulled a couple of ideas together for me. I’m interested in playing around with PLY, but also in exploring alternatives.

Michael presented a general talk on “Performance Python” along with an interesting video from NASA. I admit to not following his presentation as well as I should have. The PLY talk preceding it was an hour and a half, and required a lot of concentration. Michael’s talk was equally technical. At 8:30 at night, I was having a hard time pulling together the resources to really pay attention. Michael is a really interesting guy, and has a lot to say about Python in a scientific resource intensive setting. He’s working on projects that will have a real impact on our environment. It had to do with Fortran. I’m pretty sure.

Categories: Blog · Python

TechCoffee Soon

October 11, 2006 · Leave a Comment

The wheels are churning on the next round of TechCoffee. I’m not sure when, or where, but I have decided on a project to work on. Actually, sort of projects.

I set both of them up via Google Code. The first is a straight-up clone of Tradewars 2021 from the old BBS days, set in O’Brien’s world of fighting ships. I’m not sure I’ve said this before, but I love those O’Brien books. A ton. I’m on book 18, only three more to read. Kind of sad. Regardless, I used to love Tradewars, got briefly into Blacknova Traders (a PHP clone of the Tradewars game) and decided it would be a fun diversion for a bit.

The second project is writing an RSVP system / user group management “thingee” for ChiPy. We use a wiki currently, which is a great way to decentralize things, which I’m all for. For RSVP stuff, it would be nice to have a management interface. I put out a request on the ChiPy list to see if other folks would be interested. As I was writing this, a response came in to my request. I totally forgot there was an earlier effort along these lines. We’ll probably just finish that one up.

Anyway, I have some stuff to work on for TechCoffee that should be fun.

Categories: Blog · Maturin · Projects · TechCoffee

Really Weird Ruby Bug?

October 6, 2006 · 1 Comment

Not sure if this is a bug or not, I can’t find an existing bug report. I have no idea why this would be this way.

This script:
print "hello"
sleep 5
exit true

run with sudo, breaks. The sleep call never happens.

This script:
print "hello"
sleep 5
Kernel.exit(true)

run with sudo, works like a champ.

Weird, no?

Categories: Ruby

Pitching Yourself

October 5, 2006 · Leave a Comment

I don’t talk about work on this blog, just because. However, I wanted to throw a little word-to-the-wise to readers that might be considering a life as a start up. I saw a preview of a startup at Railsconf here in Chicago. It was a neat concept. Recently, at work-work, I was asked to chime in on the company that I had seen. It had nothing to do with me seeing them at Railsconf, it had everything to do with my role at work-work, which is hard to explain.

The task got put on the pile of similar recommendations I have to make. I didn’t recognize the name immediately, although it sounded familiar. My backlog of recommendations is a few days long. While the company name worked its way up my to-do list, the guys at the company apparently got impatient and did an end-run, contacting some folks directly.

This freaked the living shit out of them. They contacted work-work in a hurry, saying “these guys are sounding really crazy, can you please get us that recommendation now?” So, it got bumped up the to-do list, and I realized these guys presented at Railsconf, so I signed off on them. Here’s the kicker -> I, Chris McAvoy, am the exception to the following rule, “little start ups that do end runs around processes typically get the shaft.” If I hadn’t recognized the name from Railsconf, that sort of end run behavior would have set off a ton of red flags for me, and I would have said “these guys are bad news, don’t work with them.”

Startups: especially you Web 2.0 types: I know you want to “get real”, so here’s some “get real” advice, if you want old school companies to invest in you, avoid doing end runs and cold calling people direct. These companies will shut you out like crazy. I’m a thirty year old fuddy duddy, so feel free to dismiss this advice out of hand, or, be a wee bit mature about it and realize that patience is a virtue. Having to wait three days for a response from a gigantic company that can make or break your whole gig isn’t worth freaking them out with a cold call. There’s a time and place for all rule breaking. I’m looking at you and rolling my eyes really hard now. For fuck’s sake, chill out a little bit.

As my mother, a military genius, is famous for saying, “pick your battles.”

Categories: Blog