Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...
In the ruby shell (IRB) and rails console the return value of the previous command is saved in _ (underscore). This...
I often see the use of || to set a default value for a variable that might be nil, null or...
Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...
I needed to make sure that an element is visible and not overshadowed by an element that has a higher...
Typhoeus has a different way of representing array params in a get request than RestClient. Typhoeus: http://example.com/?foo[0]=1&foo[1]=2&foo[2]=3
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...
RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...
ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
This card is just about creating simple PostgreSQL dumps. This is no instruction for a backup strategy nor a guide...
Hint This applies only to distributions based on Debian. Requirement You need to setup the PostgreSQL Apt Repository first.
on the bash (issued as postgres user) Start/Stop/Restart PostgreSQL pg_ctl -D $configdir start|stop|restart Start/Stop/Restart the corresponding PostgreSQL...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
Using the dialog command you can launch ASCII-art dialogs from your shell scripts. Check out man dialog for a...
Below is a list of some VIM settings I find useful. You can add them to your .vimrc. source $VIMRUNTIME/mswin.vim...
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...
Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...