stackoverflow.com

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

A short browsing revealed that this may be a current firefox issue Current workaround: use another browser

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

Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

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

github.com

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

web.archive.org

Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...

Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...

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

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

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

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

stackoverflow.com

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

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

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

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

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

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...

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