Use the PDF toolkit: sudo apt-get install pdftk To rotate page 1 by 90 degrees clockwise: pdftk in.pdf cat...

harvesthq.github.com

Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in...

When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...

The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...

Resque comes with its own dashboard (Resque server) that you can mount inside your Rails 3 application with #config/routes.rb:

When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...

When have you last used your caps lock key? On purpose? Right... In Gnome Make it an additional ESC key...

With gem dependency it is possible to check the dependencies for your gem before you install it.

You can say: $(element).is(':visible') and $(element).is(':hidden') jQuery considers an element to be visible if it...

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

makandra dev

If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...

When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0

For Email-Patterns see most recent E-Mail-Pattern. HOST = /\A[a-z0-9]+[a-z0-9\-\.]*[a-z0-9...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

ActiveRecord models know how to cast a given string to the type of a given attribute (or column).

At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...

makandra dev
github.com

The shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here...

Depending on where you live, different rules are used to determine the number of the week and a weekday. You...

When calling a Sass mixins, you usually don't need to quote arguments: +tint_article(#f21) However, when a CSS...

blogs.msdn.com

What are Google’s plans for turning WebM into a genuinely open standard, one that is based on consensus like...

From time to time we're convinced that an error must be very close to the network card, OS IP...

It's that simple to allow one of your Linux users to run a single command as UID 0:

This is for those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need...

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...