Today I learned...

| RSS | Contact |

... that before removing a "useless" <div> I should check if there is an event delegation set on it in a script somewhere.

... that I have to tell the canvas that I want to use an alpha value: const ctx = canvas.getContext('2d', {alpha: true});, otherwise the color will turn black if the value is below 10.

... a new word: "plenteous".

... that in Chrome with opened Developer Tools a long press on the reload button will open a menu to empty the cache and reload the page.

... about the HTML input types "url", "email"and "color". (Open Relay Blog).

... that Express.js uses the index.html file if present, no matter what your routes for "/" are set to.

... about the Quick Search command in Visual Studio Code.

... that all Pro features of GitKraken and GitLens are also available for fre on public Github repos.

... that I can use SonarCloud on public Github repositories for free.

... that the keypress event is deprecated and I have to use keyup or keydown event.

... that most problems with the Parcel bundler can be solved by deleting the .parcel-cache directory.

... that I can disable all caching in WordPress by setting define('WP_DEVELOPMENT_MODE', true); in wp-config.php.

... that you can't use "login" as the $handle in "wp_enqueue_style()". #WordPress

... that the parent directory of Apache's "DocumentRoot" has to be readable to Apache, too.

... that chrome.runtime.getURL only works with absolute paths.

... that I can add a catch/finally block to an await statement.

await(<Promise>)
    .catch({})
    .finally({});

... that the easiest way to find the intersection of two arrays in ES6 is to use

function intersect(a, b) {
  return a.filter(Set.prototype.has, new Set(b));
}

... that I have to use "box-sizing: content-box;" to create text inputs and select boxes that have the same width. #CSS (stackoverflow)

... that I can stop all running Docker containers by using "docker stop $(docker ps -a -q)".

... that changing the user-agent to "googlebot" will bypass many paywalls.

... that "schmutz" and "spritz" are proper (American) English words.

... about a new UI design trend: Claymorphism.

... that Perl 6 was renamed to Raku in October 2019.

... that there's an old way and a new way to add Metaboxes to a #WordPress admin page. (I haven't tried the new way yet.)

... that the first hypertext project was called Xanadu. It was created in the 1960s.

... that in a Github repository you can press the '.' key on your keyboard and inside the browser VSCode with the current repo files opens up. Cool!

... that the new Javascript function at() (Logrocket, MDN) simplifies accessing elements of an array.

... that I can replace return new Promise((resolve) => resolve(true))); with return Promise.resolve(true);. #javascript

... about "MindsDB", a Machine Learning / Artificial Intelligence enhanced database.

... about ProtonVPN, a free (as in Free Beer) VPN service.

... that after a 4 year hiatus phrack has risen again.

... about mcfly, a neural network enhanced replacement for the Linux history command.

... about the CSS-property "accent-color", here and here.

... about the <kbd> tag in HTML.

... that importing an ECMAScript module dynamically is asynchronous. No wonder that it didn't worked for me in the past.

... about the ECMAScript Intl-API for internationalisation.

... that in VSCode I can collapse all functions at once using "Ctrl-K Ctrl-0".

... about the "Balance Out" command in Visual Studio Code.

... that "ersatz" (replacement) is a word in the English language.

... about Dropbox Paper, a collaborative notebook.

... about CloudBeaver, a web server that provides a database manager.

... that if you already created a Firefox add-on coding a Thunderbird add-on is a piece of cake.

... that Glasmorphism is the next hot thing in web design.

... that JavaScript is only in 7th place in the TIOBE index.

... that I can easily add Dark Mode to a web page by adding "@media (prefers-color-scheme: dark) {}" to the stylesheet file.

... about the Haxe 4 programming language.

... about the HERN stack.

... how to pass messages between browser popup windows using javascript.

... that Neumorphism is still a thing.