I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...
JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };
When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...
This is for you when you want to mount a dmcrypt encrypted partition manually, e.g. from a live CD.
...it is only one poorly named thing in your application) What would be a better solution? Abstract from the systems you use. For example: video_type_chooser. Abstracting from system...
...prepare_environment(&block) Bundler.with_clean_env do # Spring leads to all kinds of unexpected behavior in tests. ENV['DISABLE_SPRING'] = '1' block.call end
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
If you are exchanging files with a client via Dropbox you do not need to access the Web page every...
CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...
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...
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...
When text renders differently in Firefox and Chrome, it may be caused by a font alias that both browsers handle...
You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...
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:
I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...
...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...
...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...
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...