Browsers support different types of redirects. Be very careful with these status codes: 301 Moved Permanently 308 Permanent Redirect

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

gist.github.com

Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...

makandra dev

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.

makandra dev

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

blog.jetbrains.com

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

github.com

Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...

makandra dev

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

makandra dev

Below is a list of some VIM settings I find useful. You can add them to your .vimrc. source $VIMRUNTIME/mswin.vim...

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

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

Ruby's regular expressions can be represented differently. When serializing them, you probably want to use inspect instead of to...