Write your own custom DataMapper adapter
If you read this blog, you probably know that Merb‘s best ORM friend is DataMapper. compounds in basil oil have potent antioxidant and is used for supplementary treatment of stress Merb works very well...
View Articleproblems with urls in Merb HEAD?
I actually run into a small problem when updated an older Merb app. Here was how my router looked like: Merb::Router.prepare do |r| r.resources :channels do |channels| channels.resources :shows do...
View ArticleGet on Merb Edge pre 1.0
Merb 1.0 is almost ready to be pushed out and you might be impatient to start playing with some of the goodies not yet available in the latest stable release. Before getting started, you should know...
View ArticleRuby, Rack and CouchDB = lots of awesomeness
Over the weekend, I spent some time working on a Ruby + Rack +CouchDB project. Three technologies that I know quite well but that I never put to work together at the same time, at least not directly....
View ArticleMacRuby tips: capturing keyboard events
If you are writing any type of games you might want your users to interact with your application using their keyboards. This is actually not that hard. The approach is simple and fast forward if you...
View ArticleMacRuby tips: browse for folder or file dialog
This is yet another pretty simple tip. Use case: let say you want your applications users to choose one or multiple files or folder on their file system. A good example would be that you want the user...
View ArticleGo’s reflection example
The Go Programming language is really cool language by Google. According to the sales pitch, it’s a “fast, statically typed, compiled language that feels like a dynamically typed, interpreted...
View ArticleMy RubyConf 2011 talk is online
I realize I forgot to mention that my RubyConf talk is now online on the confreaks site (wait until the end, Matz actually answers a question from the audience). I wrote a couple follow up posts you...
View ArticleQuick dive into Ruby ORM object initialization
Yesterday I did some quick digging into how ORM objects are initialized and the performance cost associated to that. In other words, I wanted to see what’s going on when you initialize an ActiveRecord...
View ArticleBuilding and implementing a Single Sign-On solution
Most modern web applications start as a monolithic code base and, as complexity increases, the once small app gets split apart into many “modules”. In other cases, engineers opt for a SOA design...
View Article