developer.rackspace.com

Establishing a new SSH connection usually takes only a few seconds, but if you’re connecting to a server multiple...

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

The default configuration of Rails disables CSRF protection in tests. If you accidentally forget to send the CSRF token for...

I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

dusen 0.4.8 and edge_rider 0.2.3 no longer depend on Rails (they still depend on ActiveRecord). That means you can...

github.com

The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...

makandra dev

For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...

Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...

When you have files in your .gitignore they won't be considered for changes, but still you might want to...

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

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

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

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.

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

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

github.com

Backbone plugin to override getters and setters with logic.