Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
We use RTeX for PDF exports. While converting LaTeX to PDF, RTeX opens a temporary file which has problematic permissions...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
In a great post about named routes in Rails, path vs. url, Viget Labs ponders which variant is best used...
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...
Expiration of Rails sessions By default Rails sessions expire when the user closes her browser window. To change this edit...
When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...
There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
Rails 3, 4, 5, 6 config/application.rb config/environment.rb before the initialize! call (we don't usually edit this file)
There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define
When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...
Use this if you want to show or hide part of a form if certain options are selected or boxes...
So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...
The following counts all the lines in all *.rb files in the app directory. Run several of these commands to...
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...
Compress and obfuscate Javascript code online completely free using this compressor.
Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...
To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...
sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...
Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]
Gem to provide nice looking urls ("/blog/the-greatest-bug-i-never-fixed"). If you don't need anything too special (like i18n for the urls...
JSViz makes it easy to create dynamic 2D views of information. Practical applications include network graphs, navigation, and other dynamic...
Web 2.0 sites have lots of tiny javascript/css files, which causes one extra round trip per file to the server...