Be careful with the Active Record where method. When you accidentally pass an empty array to the where method using...

This only works when you actually have a session ID (not the case for Rails' CookieStore, for example): request.session_options...

stackoverflow.com

Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...

Since there are more and more touch-capable devices out there, as a web-developer it becomes more and more...

Consider this class: class Foo private def test puts "Hello" end end While you can say create a block to...

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

mysqlperformanceblog.com

When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's...

Mobile browser's ignore the autoplay attribute on and elements. Stupid reasons include saving mobile bandwidth on behalf of the...

makandra dev

Do this before you install the gem: sudo apt-get install libffi-dev

When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them...

Mark window as "demands attention" Install wmctrl through your package manager, i.e. sudo apt-get install wmctrl Download the attached...

tympanus.net

A jQuery audio player plugin that is responsive and touch-friendly. The UI is css-only, no images used.

Sometimes you want to see what data you get through a TCP or UDP connection. For example, you want to...

When you are trying to install/update VirtualBox Guest Additions on your guest machine but the setup is for a different/older...

Global keyboard shortcuts can be configured in two separate panels in the Xfce Settings manager: Shortcuts related to managing windows...

If you can now longer hear or record sounds after upgrading Ubuntu, you probably need to re-tell Ubuntu which...

If you don't want to mess around with arcane incantations inside xorg.conf, you can use the graphical arandr tool...

Go to Settings Manager / Keyboard / Application Shortcuts Add a shortcut for the Print key that calls xfce4-screenshooter -f

Unlike in Gnome, there is no graphical tool to set a mouse cursor in Xfce. Run this on a terminal...

Since I use this a lot in my daily work and there were no scripts working properly for me, I...

In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...

makandra dev
github.com

Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...