When you work in the MySQL console and you want to see which database is used, type: SELECT database();

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

makandra dev
rubyforge.org

Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...

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

If (for some reason that you don't want to ask yourself) you need to know all classes that define...

If you want to update some records with boolean fields in a migration, always remember to set your values with...

In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...

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

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

makandra dev

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

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

When committing, you should always check the diff of your changes so you don't include any leftovers or irrelevant/bad...

Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...

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

github.com

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

makandra dev
twitter.github.com

Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons

So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...

blog.jetbrains.com

A number of issues concerning Sass/SCSS autocompletion and syntax highlighting were submitted as a feedback for RubyMine 4.5. Web development...

assignable_values now lets you define a secondary default that is only used if the primary default value is not...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

github.com

paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...

The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...

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

This will make MySQL log all received queries so you can see for yourself what happens on the database level...