makandra dev
forums.mysql.com

Do you wonder which databases are actually taking up how much space but only have one huge ibdata1 in your...

Vim allows recording a batch of commands as a macro. This is handy if you need to do the same...

When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...

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...

We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

When you do a bitwise copy using the dd tool you will not see any output until it completes or...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

makandra dev
mysqltuner.pl

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

I pushed a new version of the Cucumber Factory gem. This new release lets you refer to a previously created...

(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...

makandra dev

If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...

Put the attached file into config/initializers/ to be able to say created_within on any ActiveRecord or its scope chain...

When you do a git add . and have deleted files, git won’t stage them to be commited (as deleted...

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

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

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...

agileweboperations.com

User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...

The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...