makandracards.com

So you're hunting down a regression (or just a bug) and want to use git bisect to find out...

Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...

smartinez87.github.io

The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...

...}. These options should be helpful...

To make this go away I had to wipe my RubyMine settings (~/.RubyMine) and configure everything again. Fun.

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

mock.isssues.com

Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return...

Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...

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

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)

Ruby 1.9 brings a shorter way to define lambdas using the -> operator: twice = -> (x) { 2 * x } twice.call(5) # => 10

The cookies object in your controllers and views is a ActionController::CookieJar and even though that class inherits from Hash...

tldp.org

$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922

I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

theprogrammingbutler.com

Similar to closing an opened browser window, spreewald now supports the I switch to the new browser tab step.

makandra Operations

Create a 1 GB file to swap to (we have sufficient space on / on this machine. Use a different partition...

stackoverflow.com

The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...

Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...

Set the hash to a dummy hash which doesn't hit any id at your page, for example: window.location.hash = "_";

You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml

blog.bigbinary.com

Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...

makandra dev
looah.com

A great and enjoyable introduction into the concept of the web and about what HTTP was designed for. The original...