We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

youtube.com

Interesting interview with DHH, where he talks about how they made the new Basecamp feel very fast without using a...

makandra dev
github.com

pjax loads HTML from your server into the current page without a full reload. It's ajax with real permalinks...

If you have an html_safe string, you won't be able to call gsub with a block and match...

If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...

makandra dev

This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...

There are many fun Unicode characters like ▲ or ☯. You might be tempted to use them for graphical elements in lieu...

This works in modern RSpecs (RSpec >= 2.x) and Cucumbers: rspec spec/models/node_spec.rb:294:322 cucumber features/nodes.feature:543:563:579

Every now and then, Java is subject to security issues where code can break out of Java's sandbox and...

So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...

jetbrains.com

You can quickly access views that belong to a controller by using the tiny "page with arrow" icon in the...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...

... you probably have a time zone issue. When you get Timecop.travel(Date.parse("2011-11-11 00:00") do Time.current # Thu...

Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...

makandra dev
build.phonegap.com

Write your app using HTML, CSS or JavaScript, upload it to the PhoneGap Build service and get back app-store...

When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...

For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists

heartbeat.skype.com

There was a bug in Skype that could cause messages to be sent to incorrect recipients (anyone, not only people...

When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...

makandra dev

You can specify the version of bundler to execute a command (most often you need an older version of bundler...

In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:

When you are scrolling up to investigate a test failure it is super annoying when the terminal scrolls back down...