Text

I would say that with Arel, rails is on the right track to get rid of the SQL statements. But there is still some work which needs to be done. Stuff like Model.where(:name => ‘My stuff’) is already working really smoothly. What I would love to see is an easier access to Arel’s operators such as eq and not_eq. It would be great if the where method would accept a block which provides access to the arel table. where{|t| t[:name].not_equal(‘my stuff’)}.

I guess I will look into this soon. But right now I have to finish the rails3 upgrade first :(

Text

As I am upgrading one of our projects to rails3 right now, I had to deal with lots of obsolete and not longer working code. And I came across this little gem I picked up from Pratik Naik. It allows you to nest your layouts pretty easily. If you upgrade to rails3 you have to change the code to:

def parent_layout(layout)
  @_content_for[:layout] = self.output_buffer
  self.output_buffer = render(:file => "layouts/#{layout}")
end

RubyOnRails does no longer use multiple instance variables to store the contents, but a single hash. 

code · Video for Everybody!

"I should patent bad ideas so no-one can ever come up with one again."

20 Things I Learned About Browsers and the Web

Redcar

RSpec - Relish

Prüfziffern: Startseite von Prüfziffernberechnung in der Praxis

Text

For those who use iTunes 10 and like the new Ping feature/network as much as I do. Here you will find a few small commands for removing Ping from the general iTunes 10 interface. Launch Terminal.app and enter the following commands (confirm by hitting return)

# Remove the Ping dropdown in the list view
defaults write com.apple.iTunes hide-ping-dropdown 1

# Restore the iTunes store link arrows in the list view
defaults write com.apple.iTunes show-store-link-arrows 1

# Rewire the links from the store to your local library (RECOMMENDED)
defaults write com.apple.iTunes invertStoreLinks 1

# Remove the ping sidebar
defaults write com.apple.iTunes disablePingSidebar 1

I just stumbled upon this amazing video footage. And it reminds me that I have to visit the north of Europe. Some really good stuff to grab your partner and jump right onto the next airplane.