Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...
This is a bug in Timecop 0.3.4 or lower. You should upgrade to 0.3.5.
Calling Time#utc, Time#gmt or Time#localtime will not create a converted copy. Instead these methods modify the receiving...
Note that converting from RGB to CMYK will usually degrade your colors because no exact mapping is possible. Anyway, this...
Use the PDF toolkit: sudo apt-get install pdftk To rotate page 1 by 90 degrees clockwise: pdftk in.pdf cat...
Linux provides a fix number of filesystem watches. If you have some greedy daemon (like dropbox) running, chances are it...
After updating Rubygems you see a wall of deprecation warnings like this: NOTE: Gem::SourceIndex#add_spec is deprecated, use...
Retaliation is a Jenkins CI build monitor that automatically coordinates a foam missile counter-attack against the developer who breaks...
Note that if you plan to downgrade Firefox because your Selenium tests broke after a Firefox upgrade, there is a...
Note that if you plan to freeze your Firefox versions because your Selenium tests break whenever Firefox updates, there is...
Sometimes the Rails helper #distance_of_time_in_words is using too much magic. When you need a time difference...
Pdfposter is a Python script that allows to convert large PDFs into a PDF with multiple pages that can be...
When browsing a repository, pressing "t" allows you to quickly search for file names. Very awesome! Go here to try...
I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks
Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...
When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...
Do you wonder which databases are actually taking up how much space but only have one huge ibdata1 in your...
Grep prints one line per match. To return the number if matches, use the -c switch: grep -c "something" filename...
If you want to use the (badly implemented!) solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port...
This article from the FreeBSD Handbook suggests that editing /etc/rc.conf enables DHCP. Unfortunately, some times this seems not sufficient.
Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...
We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...
If you use Amazon AWS cloud services you definitively want to utilize software raid for IO intensive stuff such as...
Solarized is a sixteen color palette (eight monotones, eight accent colors) designed for use with terminal and gui applications. It...