coding.smashingmagazine.com

Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print

browserhacks.com

The linked site lists a wealth of CSS hacks that let you apply styles to just that one browser. You...

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

Do not pass times to date attributes. Always convert times to dates when your application uses time zones. Background

ariejan.net

Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...

robots.thoughtbot.com

Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".

Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...

jeff.dallien.net

When you use heredoc, string interpolation is enabled by default: x = "Universe" <<-MESSAGE Hello #{x} MESSAGE # => "Hello Universe"

makandra dev

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

web.archive.org

TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...

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

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...

makandra dev
thestartuptoolkit.com

Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.

calc() lets you mix CSS units. Ever wanted to give an element "the container's width minus 20px on each...

tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...

JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.

Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...

So you want to know if you are on natty, precise, quantal, or something else? Check /etc/lsb-release. $ cat /etc/lsb-release

makandra dev

You might get the following error: Unable to initialize. Make sure the daemon is running. Error: Process /usr/lib/sflphone/sflphoned exited with...

webmonkey.com

Mozilla has announced that, starting with Firefox 22, the popular open source web browser will begin blocking third-party cookies...

In Ruby 1.9, instance_eval calls the block the with receiver as the first argument: In Ruby 1.8, receiver.instance_eval...

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...