One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...

For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...

github.com

Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.

docs.angularjs.org

In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...

makandra dev
feedjira.com

Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...

docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

When you do something like this in your code: def var_value @var ||= some_expensive_calculation end

If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

makandra dev
github.com

Extends the Chrome WebInspector so you can debug AngularJS applications and hunt down performance issues. It's really, really good...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...

For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...

Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...

Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...

Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...

stackoverflow.com

When you use ab to do some performance benchmarking, you might run into output like this: Complete requests: 200

ariejan.net

Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...

igvita.com

About Chrome's network stack and optimizations to load web pages faster.

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...