Jay McGavren's Journal

2009-01-18

The Merb workout begins...

picture-10.png

At this point I’m raising my eyebrows far less often than I did with Rails. It’s just easier to grok.

Read more...
2009-01-15

Yay for plug-n-play Honda parts!

0109091607.jpg0115091802.jpg

Not happy with the $100 price tag, but it arrived in the mail and I just popped it in. Not bad.

Read more...
2009-01-12

XScreensaver OS X...

The OS X port of XScreensaver is simple, stable, and unobtrusive as far as I can tell. Unfortunately you can’t (easily) pipe program output into Phosphor and other textual screen savers, but other than that they’re spectacular.

I did toss out some of the less impressive ones, though. Here’s what I kept installed:

Read more...
2009-01-11

Extlib for everyday use...

Looks like a couple of my core enhancements may be reinventing the Extlib wheel, so…

irb(main):002:0> "foo\nbar".compress_lines
NoMethodError: compress_lines not defined
  from /Users/jay/ruby/lib/utility/enhancements.rb:12:in `method_missing'
  from (irb):2
irb(main):003:0> exit

FAIL. A tweak to DeferredActiveSupport (now DeferredExtensions)…

-module DeferredActiveSupport
+module DeferredExtensions
   def method_missing(method, *arguments, &block)
     require 'activesupport'
+    require 'extlib'

 class String

-   include DeferredActiveSupport
+   include DeferredExtensions

#And other classes...

And retry:

jay@dandelion:~
$ /Users/jay/Shortcuts/ruby\ shell
irb(main):001:0> "foo\nbar".compress_lines
=> "foo bar"

Yay! I don’t even know everything I’ve gained yet. Time to play around a bit.

Read more...
2009-01-10

Fun QuickSilver stuff...

Set your Search Mode to “Snap to Best”. That’ll make sure your last selected action jumps to the top for a given subject.

Typing “.” (period) gets you free text entry as the subject. Pretty handy in conjunction with “Run Command in a Shell”.

Read more...