Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

web.archive.org

Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...

makandra dev

cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...

Date::Performance is a gem that replaces various method in Ruby's Date class with fast C implementations. Unfortunately it...

Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...

VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:

makandra dev

Every time you open a directory containing images, Windows creates those pesky Thumbs.db files for a minor speed-up and...

makandra dev
mysqltuner.pl

This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.

When your cucumber features grow massively over time, the test execution can take a lot of time.

You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...

bonsaiden.github.com

JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives...

When you need to insert many records into the same table, performance may become an issue. What you can do...

web.archive.org

The speed searching for makandra notes in Firefox can be improved by following these steps: Download the Firefox-Add-on...

When working with large Sass files you will notice that the first request after a change to a Sass file...

So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...

When you use the send_file method to send a local file to the browser, you can save resources on...

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...

makandra dev

Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11

youtube.com

power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...

You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you...

yehudakatz.com

This post explains, in some detail, how we will implement a nice performance boost for Rails developers. Understanding the details...

makandra dev

sudo apt-get install i8kutils Reboot You can now run the i8k tools such as i8kmon Setting the fan speed...

When you need to add a event listener to hundreds of elements, this might slow down the browser. An alternative...