Posts
GVC Chromebox to Vanilla Chromebox
Oh, man. Recently got my hands on an old Asus CN65. Back in the olden days at Google we were always tinkering with these devices (and they were a breeze to support). Great "parent devices" as they are really hard to destroy (aka download dodgy shit and fill them with viruses).
This post is mostly for myself, as a reminder, for the next time I need to do this.
Seems like this Chromebox was actually a GVC unit. Google has this thing where devices auto-install the Google Meet app and autoload it at boot. Officially, it's called CfM (Chrome (or ChromeOS?) For Meet). It requires a separate licence in your Google Admin to get this to work.
Check websites with LanguageTool for typos
This is quick and dirty (and with the help of ChatGPT).
FlatTurtle has a new site, and there's been some fine-tuning here and there that led to a few typos creeping in. I wanted a quick tool to plug in a page, and that would highlight possible mistakes.
I've been a personal (paying) user of LanguageTool for a few years now (European, and less spammy and dodgy than Grammarly)
Script to display Mac battery information
You can see how this script makes that couple very happy.
Quick and dirty script that shows your Mac battery information (health, cycles, etc). If an Apple keyboard or mouse is connected, it'll also display the battery % of those.
# Battery information
battery() {
if !ioreg > /dev/null 2>&1; then
echo "ioreg not found. Exiting."
return 1
fi
_ioreg=`ioreg -l`
_profile=`system_profiler SPPowerDataType`
MOUSE=`echo $_ioreg -l | grep -A 10 "Mouse" | grep '"BatteryPercent" =' | sed 's/[^0-9]*//g'`
TRACKPAD=`echo $_ioreg -l | grep -A 10 "Track" | grep '"BatteryPercent" =' | sed 's/[^0-9]*//g'`
KEYBOARD=`echo $_ioreg -l | grep -A 10 "Keyboard" | grep '"BatteryPercent" =' | sed 's/[^0-9]*//g'`
CYCLE=`echo $_profile | grep "Cycle Count" | awk '{print $3}'`
if [ -n "$MOUSE" ]; then
echo "Mouse: "$MOUSE"%"
fi
if [ -n "$TRACKPAD" ]; then
echo "Trackpad: "$TRACKPAD"%"
fi
if [ -n "$KEYBOARD" ]; then
echo "Keyboard: "$KEYBOARD"%"
fi
if [ -n "$CYCLE" ] && [ "$CYCLE" -ne 0 ]; then
echo "Mac battery "`echo $_profile | grep "State of Charge" | awk '{print $5}'`"%"
echo "Charging: "`echo $_profile | grep "Charging" | head -n 1 | awk '{print $2}'`
echo "Cycles: "$CYCLE
echo "Condition: "`echo $_profile | grep "Condition" | awk '{print $2}'`
echo "Health: "`echo $_profile | grep "Maximum Capacity" | awk '{print $3}'`
fi
}
Outputs something similar to this (no mouse or keyboard connected):
Travel
The promise of travel has always been transformation: we go away and return changed, more broad-minded, more enlightened about the world. In ‘The Case Against Travel’ (non-paywalled archive view here) Agnes Callard argues that not only does travelling rarely change us, we’re the ones changing the places we visit:
“Touristic travel exists for the sake of change. But what, exactly, gets changed? Here is a telling observation from the concluding chapter of [Hosts and Guests, the classic academic volume on the anthropology of tourism]: ‘Tourists are less likely to borrow from their hosts than their hosts are from them, thus precipitating a chain of change in the host community.’ We go to experience a change, but end up inflicting change on others. ...
Animation vs Math
Via Kottke.