Lite XL text editor on MacOS
I recently tried Lite XL v2.1.0, a forked and updated version of the original rxi/lite
, “A lightweight text editor written in Lua”, on MacOS ARM. Here are some findings.
learnings
I recently tried Lite XL v2.1.0, a forked and updated version of the original rxi/lite
, “A lightweight text editor written in Lua”, on MacOS ARM. Here are some findings.
Recently (around 14 December 2022), Apple’s Machine Learning Research team published “Stable Diffusion with Core ML on Apple Silicon” with Python and Swift source code optimized for Apple Silicon (M1/M2) on Github apple/ml-stable-diffusion. Here I’m trying it out on a MacBook (though the code also works on iPhones and iPads)...
Did you know the macOS Printer service (Common UNIX Printing System, or CUPS) keeps a copy of every single print job ever? Here’s how to change this default behaviour.
I refactored my previous Stable Diffusion code, to clean up, OO it a little, and add new features like tiling, upscaling, PNG metadata. As I mentioned before, I don’t understand AI/ML... but I do understand programming! So here is my new, more elegant Simple-SD v1.0 Python script.
I have more ideas for Stable Diffusion. My nights and weekends are consumed! This time: For inpainting, why create a mask image manually, when A.I. can automatically build a mask from a text prompt? Someone much smarter has already published a paper (arXiv:2112.10003 [cs.CV]), with source code, to do just this!
More Stable Diffusion! This time attempting to add inpainting / masking based on my previous code, to merge both txt2img.py
and img2img.py
capabilities, disregarding the out-of-box inpainting.py
code, which does not have parameters for positive or negative prompts. Keyword being attempting...
I’ve been playing around with the Stable Diffusion scripts a little (to be exact, Ben Firshman’s version). To help me understand the script, I decided to re-write it the way I prefer to use it... either breaking or optimizing it in the process :P
Following from my previous post, AI-generated images with Stable Diffusion on an M1 mac: This time, using the image-to-image script, which takes an input “seed” image, in addition to the text prompt as inputs. In this case the model will use the shapes and colors in the input image as a base for the output AI-generated image.
There has been a lot of buzz about Stable Diffusion for text-to-image synthesis, which saw its Public Release around 22 Aug 22. You can read more on the Stability.AI blog and try it at Hugging Face. What’s groundbreaking is is that is open source, with a pre-trained downloadable model and modest system requirements, so anyone can try it on their own computer... anyone... like me!
Here is a macOS Automator script to watermark a PDF, and also set metadata like author and title. Followed by a more advanced script to do all that an also set an owner password and access permissions... auto-magically.
I’m never quite satisfied with the various methods of creating keyboard shortcuts (hotkeys) on macOS... Here I go again, this time using a small open source utility called skhd - a simple hotkey daemon for macOS.
It’s been over a year (or two) since three major browsers enabled HTTP/3 using the QUIC protocol over UDP. Chrome and Edge enabled HTTP/3 by default in April 2020 and Firefox followed “shortly after” in April 2021. I am not sure - does Safari in macOS Monterey 12.5, released July 2022, enable HTTP/3 by default?
In my last post, “Re-mapping physical function keys on MacBook Pros” I used the hidutil
tool to re-map the function keys on a Mac without a touchbar. I’ve since created a script to more easily apply changes.
One common ask from M1 (Apple Silicon / ARM) MacBook Pro users is to be able to re-define what the top row of physical function keys do, for example, to change the Dictation (F5) key to decrease the keyboard backlight brightness and DND (F6) to increase it, similar to other Macs. Here’s how to do that... and more!
I’ve not posted anything in a long time, so I thought I’d dig up something from a long time ago. Once boring day, many moons ago, I stumbled upon a simple console-based Solitaire game, tty-solitaire by Murilo Pereira.
Ever wonder how to create a custom theme for both fonts and colours (a.k.a. designs) in PowerPoint on macOS? In PowerPoint for Windows, is a GUI to do this, but this is lacking in the macOS version. However, it is still possible via custom XML configuration files.
I previously setup Lima as a replacement for Docker Desktop on macOS. A while ago I tried Multipass by Canonical, which makes it really easy to spin up a Ubuntu VM (using Hyperkit) without all the setup and installation typically required with Virtual Box or QEMU.
I accidentally added an incorrectly spelt word to the macOS spelling dictionary via an Add to Dictionary menu item. Surprisingly, there was no inverse “remove from dictionary” option to undo this! Additionally, I realized there is no System Preferences page to to edit the custom dictionary. There are two ways to fix this with macOS (but none for iOS).
I was not satisfied with my last macOS Shortcut to convert image format and paste. The simple version forced me to choose between PNG and JPEG, and the complex version was too slow - specifically, the Find All Windows action. So here we go again...
I recently wanted to convert an Windows Enhanced Metafile (EMF) to SVG. I used an open source conversion library called libemf2svg by Carpentier Pierre-Francois (Kakwa).