Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...
As your Rails project grows, you will accumulate a number of small patches. These will usually fix a bug in...
Automatically convert bitmap images like JPEGs, GIFs and PNGs to the crisp, clean, scalable vector art of EPS, SVG, and...
to create a Gallery that has a name and has_many :images, which in turn have a...
In production, you (or your ops team) should configure a maximum number of bytes that Redis can use to store...
Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...
Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...
Cucumber's docstrings let you add long strings to a step like this: # foo.feature Given this text: """ First line
This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
When full text search is overkill and like queries do not deliver this might be an approach you could try...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
If you are on a Linux shell and want to open a file with whatever default application is configured for...
Let's say you want to find the element with the text hello in the following DOM tree: hello
The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...
There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
Wondering which processes are placed in your swap you can use this bash oneliner: for file in /proc/*/status ; do...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...
E-mails are usually encoded using Quoted Printable. Here is how to decode or encode such strings. You probably know...
I recommend to go straight to 2.1.5+ without intermediate steps. Otherwhise you burden yourself with unnecessary work of encoding problems...