Jay McGavren's Journal

2007-06-01

LJXP test...

Originally published at nephariuz's blog. Please leave any comments there.

Test of WordPress crossposting…

Read more...
2007-06-01

Been mucking with the new Dreamhost account...

As those of you subscribed to this journal saw, I have cross-posting to LiveJournal from WordPress working. I’m tired of my blog sitting on a server I have no control over, especially when there’s no proper export feature, so I’m just going to skip right over Vox and go to WordPress. I can import all my LiveJournal posts thanks to ljArchive, I can finally post via e-mail, and everything will be copied back here for my LiveJournal friends as if nothing had happened.

They do Subversion hosting, too. All my repositories currently sit on a second hard drive within my PC (the condition of which you read about in an earlier post), and they’re all too big to burn to DVD. They’ve got family photos, code, and records, so I’m pretty nervous to have them all in one place. Hopefully a server in another city is far enough away.

Photo galleries and Rails are next on the “let’s see what we can do with it” list…

Read more...
2007-06-01

I need more practice with Ruby mixins, so I thought I’d do a quick port of my Java game/simulation. It looks like the result will be as little as one source file where there used to be dozens of files and folders, a fraction of the number of classes, and a fraction of the line count.

I haven’t gotten to mess with mixins much yet, though. What I am learning about is Procs, blocks of code that keep all their context (variables, methods, etc.)

In Java, I always had to call an action object with both the actor and the target, even if the action only cared about one of those two. Now, I just provide a block (I don’t even have to create an action object), and refer to the variables I need from the scope in which the block is declared. Magically, even though the block is called from a completely different context, it acts from the block “owner’s” perspective.

A code sample is in order…

Read more...
2007-06-01

The power button on my PC refused to work last night. Fiddling with the connections got it going, but then it turned off in mid-boot.

Finally got it running, but I shut it down for the day while I’m at work, lest it catch fire or something. Diana keeps telling me to quit messing with this home-built crap and get a Dell or some such. Maybe she’s right.

Read more...
2007-05-29

Finally made curry rice for Diana. She loved it, but man, I’d forgotten how much effort it was. Even with the (awesome) new knife set, cutting up the chicken and all those vegetables took nearly an hour.

I’m here at work chomping on (some of) the leftovers, though, and it’s still good. I have to remind myself that I wouldn’t have leftovers with fast food, and I’d still spend nearly as much time going and getting it.

Read more...