linuxsa.org.au

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

The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...

ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...

Coffeescript allows you to create classes whose methods are automatically bound to the correct this. You can do this by...

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

makandra dev
rakeroutes.com

Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...

Do it like this: attribute :active, Virtus::Attribute::Boolean Long story In Virtus you define attribute with their type...

The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...

Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...

robotlibrarian.billdueber.com

As Bill Dueber has on his blog, you can call rvm in the shebang to select a Ruby version like...

Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad...

Capybara drivers will usually delete all cookies after each scenario. If you need to lose cookie data in the middle...

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.

In order to clone a git repository including all branches and tags you need to use two parameters when cloning...

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

Sometimes you need a piece of code to do something different for specs than for features. If you don't...

Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...

When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...

This post claims they do.

makandra dev

git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author

railway.at

Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...

Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...

Getting a regular expression from a string in JavaScript is quite simple: new RegExp('Hello Universe'); # => /Hello Universe/