makandra dev

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

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

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

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

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

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

ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...

When HTTP clients make an request they can define which response formats they can process. They do it by adding...

Rails has generic error messages you can define in your locale .yml files. You may override those application-wide error...

nt.ntnu.no

yaml4r is a juxtaposition of yaml documents and their Ruby couterpart. Thus, it does a great job as YAML-doc...

When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...

makandra dev

Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

makandra dev
github.com

Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...

w3.org

You probably know that you can use CSS selectors to match against elements and their attributes, such as:

Microsoft provides virtual machines for different Internet Explorer versions. The images are available for various virtualization solutions, including VirtualBox...

github.com

Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...

durdn.com

This article contains: Making ‘git diff’ wrap long lines Set a global proxy Clone only a specific branch

When your file manager sorts file case-sensitively after a distribution upgrade, you probably need to reconfigure your locale settings...

Setup the mirror by following the steps described here. If you want to enable OS upgrades using do-release-upgrade...

If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...

When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...

funtoo.org

Keychain helps you to manage ssh and GPG keys in a convenient and secure manner. It acts as a frontend...