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

I highly recommend that you make use of RubyMine's feature to pin tabs. When you pin all "important" files...

makandracards.com

I ported the initializer to Rails 3.

ActiveSupport >= 3 has Date.parse('2011-02-10').beginning_of_quarter #=> 2011-01-01 Date.parse('2011-02-10').end_of_quarter...

If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...

derwiki.tumblr.com

Some advice for bulk loading many records into InnoDB and finishing before the sun burns out. Use with care.

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

MySQL version 5.1 comes with an alternative, faster InnoDB implementation (called "InnoDB Plugin"). Switching is easy: Stop your mysqld with...

When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

An association defined with has_many :through will return the same record multiple times if multiple join models for the...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

makandra dev

When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...

Bundler 1.1 has been released. With this version you no longer need to wait for this: Fetching source index…

TeamViewer 6 and lower had an issue where they would see a multi-monitor Linux setup as a single wall...

In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

makandra dev
stackoverflow.com

If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...

makandra dev

Saying git diff only shows unstaged changes relative to the index (or HEAD if the index is empty, alternatively any...

makandra dev

This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...