Archive for June, 2008

Wednesday, June 25th, 2008

I see Turkey is playing Germany today (Wednesday 2008.6.25) at 11:30am.  Therefore, I’ll be “working” from Cafe Presse.

Come hang out.  But be aware that if you’re wearing a German jersey, we might not be able
to sit together.

Serialized Attributes and Dirty Flags

Tuesday, June 17th, 2008

Well we seem to have upgraded to Rails 2.1, or at least the new ActiveRecord which runs with 2.1, and this new version is most uncooperative when it comes to saving records after modifying a serialized field. I have been told (by the notorious KenValet) that the dirty flag is not being set on modify but will be set on assignment, so calling ’save’ doesn’t actually save since as far as MySQL is concerned nothing has been modified. It’s not the sort of thing one expects, and a strange thing to put in an upgrade.

Lazyweb: a Mac Service

Tuesday, June 10th, 2008

Today I found a Word Count service (for the Mac Services menu).  It’s 8 lines of AppleScript, plus something called ThisService which makes services a lot easier to write. Independently, I have on my desktop an AppleScript called “Move Windows To Main Display.scpt” (sorry, don’t remember where it came from) that moves all my windows back onto the (visible) screen — very useful when I unplug my external display, because Mac OS 10 is no longer smart enough to keep all my windows visible.  Could somebody make a Service “Move This App’s Windows Back Onto This Screen”?  That would be awesome.