Powershell Clickable Hyperlinks

Having found that the Windows Terminal has gained support for the ANSI Escape sequence documented in the Hyperlinks in Terminal Emulators GIST I wrote a nice and simple PowerShell function to output these hyperlinks without having to remember the escape sequences yourself. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 function Format-Hyperlink { param( [Parameter(ValueFromPipeline = $true, Position = 0)] [ValidateNotNullOrEmpty()] [Uri] $Uri, [Parameter(Mandatory=$false, Position = 1)] [string] $Label ) if (($PSVersionTable.

LINQ-style Field Selection

I’ve been toying with rewriting my Snapstats website to C# and .NET. The site tracks the public Snap Store to aggregate and make data about Snaps easily available. As part of the rewrite I need to move the GraphQL API service over to C#. I found that using GraphQL.NET I can easily produce the API, and query my data in response to incoming requests. One feature that is common in .

Getting started with Flutter on Ubuntu

Recently there was an announcement from Ubuntu that the desktop team are working on a replacement for the Ubiquity installer. The really interesting part of the post by Martin Wimpress, head of the Ubuntu Desktop team at Canonical, is that the new installer will be built using Flutter. Flutter is a cross-platform User Interface framework that can target Linux, macOS, Windows, Android, and iOS all from the same source code. I have been aware of Flutter for some time now but have been trepidatious in jumping in to sample the water, because I am completely unfamilier with the Dart programming language and was worried about making the time investment.

About CVE-2020-27348

Well this is a doozy. Made public a while back was a security vulnerability in many Snap Packages and the Snapcraft tool used to create them. Specifically, this is the vulnerability identified as CVE-2020-27348. It unfortunately affects many many snap packages… What is it? The issue at the heart of this vulnerability is the prolific way that we in the Snapcraft community are overriding the Dynamic Linker search path. The Dynamic Linker is the library that searches for and loads libraries into memory when an application needs them.

Lazy Loading images in WordPress

While WordPress Core is working towards their own Native Lazy Loading of images, I have been using something for a while already to do the job. I’m sure I found this from, or was inspired by, someone else’s code but I don’t recall where. If it is your code, please leave a comment so that I may correctly attribute it. Step one The first step is to hook into the wp_get_attachment_image_attributes filter to override the in-built src, srcset, and sizes attributes set by Core.

Fakecam Open Source Virtual Background

In a post by Benjamin Elder there is a really nice proof-of-concept app. This app is based on the Bodypix.js AI/ML library. Ben’s article about their Open Source Virtual Background explains the inner workings. Using Ben’s code, I created a Snap Package called Fakecam. I also include a nice User Interface, which allows easy configuration of the options. Performance issues Next, I convinced several members of the Ubuntu Podcast Telegram channel to give Fakecam a test run.