When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...

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

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

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

stackoverflow.com

Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }

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

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

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

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

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); }

By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...

An association defined with has_many :through will return the same record multiple times if multiple join models for the...

stackoverflow.com

This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...

Make sure you call the methods in the following order and not vice versa: has_attached_file :image validates_attachment...

You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...