jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...

Enumerable#count can do three things. With no argument provided, it returns the number of items. With an argument, it...

I got the following error after updating the selenium-webdriver gem: wrong number of arguments (0 for 1) (ArgumentError) /home/pointoo-dev/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.35.1/lib/selenium/webdriver/common/platform.rb...

tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage

JavaScript objects can have getter and setter functions that are called when a property is read from or written to...

jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...

developer.mozilla.org

You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...

This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|

If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...

It might happen that your Sidekiq queue gets stuck, hanging at 0% CPU load. When we inspected the process using...

askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

tutorialzine.com

A very clever hack to parse a structured URL object is to create a element and set its href to...

When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...

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