Postgres database on a separate drive

In psql:

CREATE TABLESPACE mytablespace LOCATION '/Volumes/MyVolume/postgres';
CREATE DATABASE mydatabase TABLESPACE mytablespace;

Kudos to GregHNZ for posting this on StackOverflow.

Continue reading
Posted in How to’s | Tagged , | 2 Comments

Think twice before you buy WD_BLACK D50 Game Dock for your Mac

If you’re considering getting a Thunderbolt 3 dock called WD_BLACK D50 Game Dock (e.g. # WDBA3U0000NBK-EESN) to use with a Mac, think twice.

Continue reading
Posted in Journal | Tagged | 2 Comments

Django + Vue CLI + Webpack demo

How to wire up a Vue CLI app and Webpack to Django templates with routing, hot reload, code-splitting and without any extra plugins (a minimal demo + explanation).

Posted in How to’s | Tagged , , | Leave a comment

Proxmox: QEMU Guest Agent is not running — qmp command ‘guest-ping’ failed

Hey fellow Internet dweller, are you worried about the following message appearing during backup of a suspended virtual machine in Proxmox?

...
INFO: suspend vm
INFO: creating archive '...'
Qemu Guest Agent is not running - VM ### qmp command 'guest-ping' failed - got timeout
...
Continue reading
Posted in Solutions | Tagged , | 3 Comments

Use macOS native color picker in VS Code (like “Insert Color” in TextMate)

A tiny extension for Visual Studio Code, written by me (GitHub).

Posted in Releases | Tagged | Leave a comment

VS Code: bind one key to multiple commands without an extension

People wanting to assign multiple commands to a single keybinding in VS Code typically use an extension, such as multi-command or macros. However, there is another, lesser known method to achieve this using built-in functionality of VS Code — user level tasks.

Continue reading
Posted in How to’s | Tagged | 6 Comments

Apple Pro Display XDR: presets not showing up after firmware update

Problem: Apple Pro Display XDR not showing its built-in presets in System Preferences > Displays and clicking “Customize…” brings up an empty window.

Continue reading
Posted in Solutions | Tagged , | Leave a comment

Datadog: nginx access.log / error.log permission denied

Problem:

... | CORE | WARN | (pkg/logs/input/file/scanner.go:211 in startNewTailer) | open /var/log/nginx/access.log: permission denied
... | CORE | WARN | (pkg/logs/input/file/scanner.go:211 in startNewTailer) | open /var/log/nginx/error.log: permission denied
Continue reading
Posted in How to’s | Tagged , | Leave a comment

Datadog: “could not retrieve nginx version info”

Apparently Datadog fails to retrieve nginx version information when server_tokens directive in nginx configuration is set to off.

Continue reading
Posted in How to’s | Tagged , | Leave a comment

Refresh web-browser without leaving VS Code

I’ve created an extension for VS Code which lets you refresh your web-browser (Safari or Chrome) by pressing Cmd-R without leaving VS Code. Meet Refresh Browser (GitHub).

Posted in Releases | Tagged | Leave a comment