You will find this useful when creating responsive designs that work well on small screens. The attached Javascript gives a...
Note: You might also want to check out BoxCryptor which does pretty much the same, and is supported across many...
MySQL version 5.1 comes with an alternative, faster InnoDB implementation (called "InnoDB Plugin"). Switching is easy: Stop your mysqld with...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Say you want to vertically align a div box inside a div container. This is how you do it:
Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...
Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...
i686 means 32-bit.
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...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
xterm by default uses black text on white background. To change that to something like "light gray on black", do...
This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...
You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...
Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
When you create a new branch and push it to origin, you won't be tracking it. This means a...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
When you are using NAT in your virtual machine (which you should), the host's IP address is: 10.0.2.2
After you configured your ODBC describe in Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7...