makandra dev
javascript.info

To move elements around we should be familiar with coordinates. Most JavaScript methods deal with one of two coordinate systems...

makandra dev

Just dumping this in case somebody might need it. When you need a CSS value (a padding, margin, height etc...

makandra dev

Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.

This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...

makandra dev
activestate.com

Looks like ActiveState is trying to market a new Ruby distribution for Enterprises: ActiveRuby Enterprise Edition is designed for businesses...

makandra dev
labs.detectify.com

The postMessage API is an alternative to JSONP, XHR with CORS headers and other methods enabling sending data between origins...

There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...

makandra dev
badssl.com

Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

manpages.ubuntu.com

run-one is a wrapper script that won't run the given command while another instance of it is running...

makandra dev

Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...

Using the dialog command you can launch ASCII-art dialogs from your shell scripts. Check out man dialog for a...

Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...

makandra dev
iamvdo.me

Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...

makandra dev

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

makandra dev

Sometimes your code has long lines: describe 'foo' do describe 'bar' do really_long_line_really_long_line_really_long...

medium.com

As web developers, we know how easy it is to end up with web page bloat. But loading a webpage...

stackoverflow.com

window.getSelection().toString(); Browser support: IE9+, Android 4.3+, Safari 5+

developer.mozilla.org

You can easily have a JavaScript hash/object that returns a default value for unset keys/properties -- as long as you need...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

To create a 10 GB file: fallocate -l 10G huge_file.dat

evilmartians.com

Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...

If the application under test makes sound, you probably want to disable this during integration testing. You can use the...

We generally use multiple application servers (at least two) and you have to search on all of them if you...