If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
To reset the position of split dividers, drag all the dividers out of the screen. Then turn off splitting and...
You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.
In order to clone a git repository including all branches and tags you need to use two parameters when cloning...
Sometimes you need a piece of code to do something different for specs than for features. If you don't...
Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...
When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...
This post claims they do.
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...
Issue this command: sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='APP_NAME';" && killall Dock This tells sqlite3 to...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
In the following example the method update_offices_people_count won't be called when office_id changes, because it...
When you want to do a git diff but do not care about the full diff and just want to...
You can detect city and country from an IP address by using the GeoLite database. This is a flat file...
You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...
We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...
Awesome battle report from Pinterest trying to scale their setup using different approaches. When you push something to the limit...
tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...
jQuery plugin to fire events when user's cursor aims at particular dropdown menu items. For making responsive mega dropdowns...
This only works when you actually have a session ID (not the case for Rails' CookieStore, for example): request.session_options...
All Rubyists should be familiar with the common definitions for include and extend. You include a module to add instance...