Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...

makandra dev

If you are exchanging files with a client via Dropbox you do not need to access the Web page every...

makandra dev
getmdl.io

CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...

makandra dev

Just dumping this in case somebody might need it. When you need a CSS value (a padding, margin, height etc...

My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...

This is one possibility to do this. There are other and maybe even better ways to do this. Generate a key for your encrypted harddisk: dd if=/dev/random of=/home/bob/keyfile_sdb1...

support.google.com

The old Chrome downloads bar had several advantages over the new subtle downloads dropdown: see all (many, at least) downloads...

Create a branch: svn copy https://dev.makandra.de/svn/filepanic/trunk https://dev.makandra.de/svn/filepanic/branches/$ticketnumber_shortdesc Don't just copy the folder into your working...

We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

When using the screen tool you may be unable to start a screen session but instead encounter an error:

json is part of the standard library of Ruby and deals with JSON, obviously. As you know, JSON is the...

stackoverflow.com

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

makandra dev
tldp.org

...is functional as of Bash 4. This seems to result in a slightly differing behaviour when redirecting output in Ruby scripts. Instead of cmd &> file, prefer cmd > file...

If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...

web.archive.org

...step above is that the console output of Cucumber will always be one step behind the Selenium window. This is because the sleep is blocking the completion of the step...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

.desktop files define launchers for applications installed on your machine. They specify the command that will be executed when launched...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium 0.2.2. It may not recognize a select field if the...

...value. If you don't have the possibility to upgrade these Gems, probably the best way to go is to distinguish the current Capybara driver: Then /^"([^"]*)" should be selected for...

makandra dev

This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...

smartinez87.github.io

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

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

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...

We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...

Note: This applies specifically to MySQL. In PostgreSQL for example, this is not an issue. If you care about performance...