Let's say you want to merge the properties of two JavaScript objects: let a = { foo: 1, bar: 2 }
PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...
Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...
Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...
You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...
To test that an object was constructed by a given constructor function, use jasmine.any(Klass): describe('plus()', function() { it ('returns...
Browsers come with a set of built-in elements like or . When we need a new component not covered by...
A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...
This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...
jQuery is still a useful and pragmatic library, but chances are increasingly that you’re not dependent on using it...
Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...
There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...