Say you want to vertically align a div box inside a div container. This is how you do it:

stackoverflow.com

Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...

Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...

solnic.eu

Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...

objectmentor.com

Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?

If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...

makandra dev
ocra.rubyforge.org

OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running...

Every time I started RubyMine, it opened the main window on the left monitor -- when moving it to the center...

When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...

Sometimes you need a special version of chrome because it has some features you need for testing, like in this...

You can set the resolution and user agent used in selenium tests with chrome with the method described in this...

makandra dev
blueimp.github.com

File upload with nice UI, progress bar and preview, allowing multiple files and supports drag & drop. Its default is built...

It's not logical, so don't be too hard on yourself. You need to give it a height and...

When you want to test how an web-application reacts in a specific resolution, you can set up a specific...

If you get this: p_elSource.attachEvent is not a function ... you need to disable Firebug or switch to another browser.

makandra dev

The closest is probably Nimbus Sans L, which is released under the GPL, AFPL, LPPL licenses. However, I couldn't...

Note that you are not allowed to embed any font in a website. You need to check the license first...

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:

demosthenes.info

The result is a .ico file with multiple versions of your logo at different resolutions. Now, depending on the context...

This is for you when you want to mount a dmcrypt encrypted partition manually, e.g. from a live CD.

To force a check on your next reboot (here for your root partition), simply: touch /forcefsck To manually do this...

makandra dev
developer.mozilla.org

Basic box shadow support is available in all browsers today, but you need to check to which extend they are...

I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }