Warning: call_user_func() [function.call-user-func]: First argument is expected to be a valid callback in /home/robzbd/sites/blog.ubrio.us/wp-content/plugins/akismet/widget.php on line 126
Blog.ubrious

Blogubrious Retiring — Moving to Proccli

I’m migrating all new blog entries to a new name/site: Proccli: Code Sprouts. I’ll try to keep on top of comments and such coming in here, but it will eventually start to decay (hopefully gracefully). -Rob

More



Ruby DSL for Apple Remotes

I was curious about RubyCocoa and decided to play around a bit. I came across this article on rubycocoa.com about the apple remote and ruby. I got it working and boredom took over… so I decided to wrap it with a simple DSL. It seems pretty pointless, although switching OSX spaces with it was fun… [...]

More



GitHub theme for SyntaxHighlighter WordPress plugin

I did a very stupid thing. I automatically updated my syntaxhighlighter plugin (which is excellent by the way) through the wordpress admin panel. I also forgot that I had made a custom theme and added a few more matchers to the ruby brush, which were subsequently overwritten in the update. Bummer. So. Here is the [...]

More



Rails theme support with Metal

Metal is neat. Themes are neat. Together they are nifty. So, in the spirit of the upcoming St. Patrick’s day holiday I decided to play around with metal to add theme support to my rails app. I like how WordPress supported themes by having meta data tucked into the stylesheet itself, and I also like [...]

More



Rails Metal and ActiveRecord Sessions

I was playing around in Rails 2.3 and wanted to mess with Metal for a very simple API. The release notes say that it supports sessions — and that may be true for memcache and cookie stores, but I couldn’t get it working with ActiveRecord. I sniffed around and noticed that abstract stores aren’t getting [...]

More



Simple rails time based fragment caching with file store

I spent a little while this morning looking around for a rails fragment caching solution which used a file store and had simple expirations built in. No luck. I could just use a memory based cache store, but for this particular problem it was too much overhead to setup and manage. The features are: You [...]

More



Rails 2.2 Custom Error Pages With Exception Loggable

Well, with the release of Rails 2.2 and the ability to create custom error pages I figured I’d revisit my 404/500 pages and try to do it the new way. Setting up the rescue_from methods were simple enough, but I noticed that when I was capturing my error 500s it wasn’t logging the exception. Here [...]

More



OSX, RubyGems and cross-thread violations in rb_gc

I recently decided to migrate away from OSX’s default ruby install yesterday and noticed a few quirky hangups. Firstly, for some reason, and I’m not sure if it is just me or not, OSX’s default $PATH variable is putting /usr/local/bin AFTER /bin making your local installs not enabled by default. (Editing the /etc/paths didn’t do [...]

More



Rails: Mocking YAML arrays as ActiveRecord objects

I’ve been finding myself using YAML a lot for silly enums — maybe because I’m lazy, but mostly because there is no need to manage them via a database table. Here is just a simple example — I need to associate a region and division to a client. These will not change much and are [...]

More



Ruby on Rails Helpful Helpers: Content Tags

Another common thing I like to do is use a helper method to handle tricky tag-soupish markup. A client may have 1 URL, in which case I would like to simply display it, but if they have multiple URLs I’d like to put it in a list format. The only problem with using the content_tag [...]

More



 Page 1 of 7  1  2  3  4  5 » ...  Last »