myByways

the road less travelled

Hi! I’m , and welcome to my slice of the Internet!

This is primarily a record of things I’ve learnt, but maybe you’ll find something that interests you too.

Recent Posts

Fixing high-DPI (retina) screenshot metadata

10 May 2020macospng

On my MacBook Pro with retina display, when I take a screenshot, the image is saved with a DPI of 144. But, using ImageOptim to compress the image with Strip JPEG/PNG Metadata enabled will remove (or reset) the DPI setting to 72 DPI - resulting in a double sized image when displayed in Preview and Quick Look. Here is how I correct this.

Continue reading...

macOS zsh configuration

07 May 2020macoszsh

From macOS Catalina 10.5 onwards, zsh is the default shell, instead of bash. I have a lot to learn about this shell, and so far, this is how I configured zsh... There is an overload of snippets on-line, but I’ve not seen a post doing what I do, so hopefully this helps someone!

Continue reading...

CSS tips to avoid Javascript

Recently I’ve been building a few web sites without JavaScript where possible, relying instead on modern browser support for CSS.

Here are some things I’ve figured out, including toggling the NavBar burger dropdown, smooth scrolling, showing and hiding modal dialogs with transitions!

Continue reading...