solnic.eu

Removing duplication from the code is a seemingly easy task. In many cases it is pretty straight-forward – you look...

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...

bbs.archlinux.org

xterm by default uses black text on white background. To change that to something like "light gray on black", do...

stackoverflow.com

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...

weblog.jamisbuck.org

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...

teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

stackoverflow.com

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...

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.

icelab.com.au

We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...

github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline

github.com

When trying to install the gherkin gem, you might encounter an error with the following lines: ERROR: Error installing gherkin...