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...
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...
An = is represented by =3D in the log file. I got confused by the leading 3D which is not part...
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...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
TL;DR {} binds stronger than do … end (as always in Ruby, special characters bind stronger than words) Demo
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
This is one possibility to do this. There are other and maybe even better ways to do this.
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...