When you need to check a value for presence, don't rely on JavaScript since it considers 0 or "0...

Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...

Getting rid of your old LibreOffice Remove your old LibreOffice: sudo apt-get remove libreoffice* You probably also want to...

makandra dev
github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

stackoverflow.com

If you want to move an element inside an array, neither JavaScript/ES6+ nor libraries like LoDash offet that natively.

When you have an Angular directive that transcludes content, you might want to do something in case there is no...

You know each_with_index from arrays: ['hello', 'universe'].each_with_index do |value, index| puts "#{index}: #{value}" end

Open a MySQL root shell and use this command: PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 3 DAY) + INTERVAL 0...

When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...

If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...

I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...

makandra dev
tldp.org

There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...

makandra dev

If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...

makandra dev

When you want the table headers to always stay around (e.g. because that table is huuuge), use the code below...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

stackoverflow.com

Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...

medium.com

When you, as a developer, look at the choices used to build a particular application, you’re blown away at...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

If your terminal has many tabs, you'll want to keep them organized. To change their title from the prompt...

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...

makandra dev
cronmaker.com

"CronMaker is a utility which helps you to build cron expressions." Check it out at http://www.cronmaker.com/.

Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...