When you run rake db:rollback and nothing happens, you are probably missing the latest migration file (or have not...

stackoverflow.com

...a quick fix, put the following code into your config/application.rb to restore the previous behavior and make the warning go away. Make sure to put it above all other config.i18n...

Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

makandra dev
phrogz.net

...The and tags both come with some non-default behavior that you know from other tags. Do not try to style html or body for positioning, width/heigth, or similar. Every...

solnic.eu

Yesterday I stumbled across a talk in which the guy mentioned module sub-classing. I was curious what you can...

I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...

github.com

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

makandra dev

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

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

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

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

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: