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...
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...
Saying git diff only shows unstaged changes relative to the index (or HEAD if the index is empty, alternatively any...
This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...
When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...
Basically, you now need to know if your project uses a "real" time zone or :local, and if config.active_record.time_zone...
The tagged_with scope comes with many awesome options to modify your search: User.tagged_with("awesome", "cool") # Users that are...
This might seem obvious, but I'm rejecting stories because of this on a regular basis. Whenever a list (e.g...
The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...
For performance improvements (and to remove the need for eager loading), the ActsAsTaggableOn gem supports caching your tag lists directly...
How to ignore new files Globally Add the path(s) to your file(s) which you would like to ignore...
When you have objects in your database that hold latitude and longitude and you want to find others that are...
Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...
Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...
Given the problem you have a new column postion and that column should be updated for all existing rows with...
When adding a new field to your model's database table, don't set any defaults in the database.