Hide Firefox Toolbar and Tabs in Fullscreen

I use macOS spaces (virtual desktops) to arrange the various apps I frequently use. I have one space setup with two Firefox windows, in fullscreen Split View mode. But by default, Firefox windows are not really “full screen” for me, in that the tabs, toolbar and bookmarks bar will still be displayed. Here is my workaround to force the browser to full screen. ...

15 Oct 2020

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! ...

3 Apr 2020

PowerShell Pipeline to Rename Files

For me, Microsoft PowerShell is hard! I can’t wrap my mind around data pipelines (|). Instead, I keep reverting to if/then, loops and other traditional programming paradigms, similar to what I’d do in UNIX shell! ...

30 Dec 2019

Single Page Bulma template with Smooth Scroll and Scroll Spy JavaScript

I was building a single page website using Bulma, and I wanted to achieve effects similar to what I was familiar with using Bootstrap’s Creative one page theme. As you know, Bulma (mostly) does not provide any JavaScript code, so I had to code the Smooth Scrolling and Scroll Spy features I missed. I intentionally avoided jQuery! So I present my solution using plain-old JavaScript. ...

30 Oct 2019

Word Macro to paste MS Office Drawing / TIFF image as PNG

I really don’t know how to explain today’s post. In short: I want to copy drawings and images out of Microsoft Office in PNG format. On macOS, copy-and-paste seems to prefer the TIFF format, resulting in large Office files. I’d rather the images be converted to PNG, preserving transparency but providing high compression. However, this is more complicated than it seems, because of limitations in Office and PowerPoint in particular… ...

13 Oct 2019

Touch Bar Quick Action Scripts

Just sharing some Automator scripts I use for Touch Bar Quick Actions showcasing three different methods - using pre-defined Actions, using AppleScripts and using Shell scripts. ...

18 Sep 2019

Automatically setup a development stack with Appsody

In a previous series of posts, I described how I set up Node.js in a Docker container for development on my macBook. It’s quite a lot of steps! Well, there is a much simpler way - introducing Appsody. ...

5 Sep 2019

Forcing Dark Mode with prefs-color-scheme Media Query

A few posts ago, I described how to set Dark Mode with the prefs-color-scheme Media Query. The browser will detect the OS Dark Mode setting (set in the Windows Control Panel or macOS System Preferences) and use the appropriate CSS Media Query rule. But what if you want to programmatically set either Dark or Light mode irrespective of the OS setting? ...

11 Aug 2019

Building and packaging Wine 4.12.1 (32-bit and 64-bit) automatically

For a while now, I’ve been posting about compiling Wine on macOS, starting with Wine 1.9 in October 2016, then automating the compile for Wine 2.9 32-bit in May 2017. Now it’s July 2019, and this is probably my last post on the subject - a fully automated script to download and compile Wine 4.12.1 (released 7 July 2019) 32-bit and 64-bit on macOS. ...

31 Jul 2019

Dark Mode with prefers-color-sheme Media Query

Dark Mode is all the rage with desktop and mobile OS’es right now. Interestingly, modern browsers can detect the OS dark mode preference, and use a different set of CSS styles respectively for light or dark modes! Here’s how I updated My custom Grav theme. ...

3 Jul 2019