Skip to main content

Protect yourself from malicious NPM packages with a system-wide dev container

· 11 min read
Alex
Web developer

Run a single Docker container that stays active, and drop into it whenever you need to work on a Node project. This "system-wide" container:

  • starts once and stays running: no startup time and less disk space, compared to regular per-project dev containers,
  • is used to work on multiple projects: attach as many VS Code windows as you want to it,
  • isolates NPM packages from your host system.

Indentation for accessibility

· 3 min read
Alex
Web developer

It's quite obvious, for consistently looking code, spaces are best.

However, does one also has consistency among the people they work with?

It might not be the case: some people might have impaired vision.

On an open source project, one might not even know how "consistent" are the people working with them.

Google Authenticator export format

· 3 min read
Alex
Web developer

If you use Google Authenticator and scan QR codes to create new Time-based One-Time Passwords, you might have noticed that their names are sometimes in the form Issuer (Account name). Google Authenticator allows to rename the Account name part, but not the Issuer.

The following explains how to rename the Issuer, or even get rid of it.

NFC on Android with React and TypeScript using Capacitor or Cordova

· 10 min read
Alex
Web developer
Warning: this article is old!

This article has been written in 2019. I stopped working with NFC on mobile a few years later.

React NFC

Ionic Capacitor and Apache Cordova are two common wrappers to create a hybrid mobile application from a web application. The main advantage over a native mobile app is the re-usability of the code — and the development languages being HTML, CSS, and JavaScript, if we like them.