Jay McGavren's Journal

How a Head First author spends his days off

View on GitHub
2008-02-27

coerce()

Wow.

Normally, Vector expects its pitch to be a floating point number, or some kind of number. Well, how powerful would it be if I could say this:

object.vector.pitch = RandomValue.new(360)

…and have RandomValue present itself as a different random number each time it’s accessed?

Turns out I can:

Read more...
2008-02-27

Wow. Git on Windows is janky and scary right now.

Wired had that article eons ago with a fictitious letter from Linus Torvalds to Bill Gates, hashing out some issues arising from a version of Windows that ran on top of Linux. I would really, really like to see that come true.

Read more...
2008-02-27

...2008, Zyps Contributors.

Zyps has a (hopefully) regular contributor! He just submitted an ExplodeAction with unit tests. (I didn’t even have to ask for ‘em.) And the Environment#<< method he came up with is so convenient (it takes any argument, then calls the appropriate accessor) that I could slap my forehead for not having thought of it myself.

Next he's gonna tackle either a new generic View, or a domain-specific language for Environment setup, wherever his interest takes him. This guy knows what he's doing, so I'll just let him at it.

Edit: Ergh, but he uses double-space characters instead of tabs for indentation. I take all that praise back. :)

Read more...
2008-02-25

rSpec cheat sheet...

Here’s a cheat sheet on rSpec with almost completely raw formatting… I’ll HTMLify it if anyone’s interested.

Read more...
2008-02-25

I'm probably not the first to make this joke, but...

i has can cheeseburger.

Read more...
2008-02-22

Someone was doing a demo at the Ruby users’ group on their MacBook, and a transparent notification popped up that their Website was inaccessible. I didn’t know what app was responsible until just now:

Growl (software) - Wikipedia, the free encyclopedia “Growl is a global notifications system for the Mac OS X operating system. Applications can use Growl to display small notifications about events which the user deems important, in a consistent manner.” Growl (software) - Wikipedia, the free encyclopedia

I’m watching Jeffrey Grosenbach’s screencast on rSpec, and he’s got Autotest (which watches a directory for file changes and automatically runs the appropriate tests) hooked into Growl. He writes a test, saves it, and boom - a frowny-face immediately appears at the bottom of the screen with the failing test. No further effort required. He updates the source code, saves it, boom - smiley face showing the test now passes. No further effort required.

Ruby in general keeps the feedback loop very tight like this (I’m thinking here of Rails’ ability to modify an app while it’s running). Ultimately this is going to produce better coders, faster.

Hmmm, now I’m imagining a Zyps setup that kills the old interpreter and runs a new one every time you save an environment setup…

Read more...
2008-02-19

Hrmmm…

Wrote a script to scrape and tally the number of added/changed lines per day from the Zyps repository…

Read more...
2008-02-19

I think I’m gonna go cold turkey on coffee. It may help keep me awake, but drinking 3 cups a day probably isn’t doing much for my productivity (anymore), and certainly isn’t good for my stomach lining.

We’ll see how much I regret that decision later. Even now I can hear the coffee maker here at work, and am having to resist the urge to grab my mug and head over there.

Read more...
2008-02-17

Zyps screencast...

I don’t see any way I can convert this to Quicktime MOV for Chris Matthieu’s Rubyology podcast without Quicktime Pro, so I guess I can make my screencast for Zyps public…

Zyps Screencast

Once the new Dell laptop comes in (the Acer’s taking a crap), I’m gonna buy QT Pro and try to convert it. (My desktop is running Win2K right now, which Apple no longer supports.)

Read more...
2008-02-13

Yay! Dreamhost just added PHPbb 3.0 to their 1-click installs page! (Yes, I could probably do an install myself, but I have better things to do with my time.) Just waiting for the notification to come through from the “installer robot”.

This should take care of my spammer problems. Zyps can have a forum now!

Read more...
Copyright © Jay McGavren.