Remapping Keychron K15 (QMK) media keys to control Sonos

  • Post author:
  • Post category:MacOS

Disclaimer: despite what people seem to assume when you buy a mechanical keyboard, I am not a keyboard fetishist. I’ve been using Microsoft Sculpts for over a decade because of historical repetition injury issues, and with Microsoft discontinuing the Sculpt and the new manufacturer taking their time taking over, all I want is a keyboard which is like a Sculpt, except where I haven’t worn out the space bar. I will then go back to thinking approximately never about keyboards.

So, the keyboard I could find which was closest to the Sculpt after a lot of Googling was a Keychron K15 Max, which is a QMK keyboard. For those which don’t know, which included me until yesterday, QMK is the open source firmware that many of these mechanical keyboards run and yes you really can customize the firmware on your keyboard now. The K15 is a 75% “Alice” layout, which means split with no numpad. It does have media, function, and macro keys which is nice. I’ve never had a keyboard with macro keys before. It also has low profile switches, which is nice because the Sculpt basically has laptop style switches, and I chose the Gateron Brown low profile switches because I didn’t think I wanted the tactile “clicky” thing. Then again, I have now tried exactly one mechanical keyboard, so its entirely possible the K15 isn’t “perfect” for me — its simply good enough to make me stop thinking about such things.

(more…)

Continue ReadingRemapping Keychron K15 (QMK) media keys to control Sonos

Prometheus 2.12, query logging, and startup failures on macos

  • Post author:
  • Post category:Prometheus

Prometheus v2.12 added active query logging. The basic idea is that there is a mmaped JSON file that contains all of the queries currently running. If prometheus was to crash, that file would therefore be a list of the queries running at the time of the crash. Overall, not a bad idea. Some friends had recently added prometheus to their development environments. This is wired up to grafana dashboards for their microservices, and prometheus is configured to store 14 days worth of time series data via a persistent volume from the developer desktops. We did this because it is valuable for the developers to be able to see the history of metrics before and after their changes. Now we have a developer using macos as their primary development platform, and since prometheus 2.12 it hasn't worked. Specifically this developer is using parallels to provide the docker virtual machine on his mac. You can summarise the startup for prometheus in the dev environment like this: $ docker run ...stuff... ...snip... level=error ts=2019-09-15T02:20:23.520Z caller=query_logger.go:94 component=activeQueryTracker msg="Failed to mmap" file=/prometheus-data/data/queries.active Attemptedsize=20001 err="invalid argument" panic: Unable to create mmap-ed active query log goroutine 1 [running]: github.com/prometheus/prometheus/promql.NewActiveQueryTracker(0x7fff9917af38, 0x15, 0x14, 0x2a6b7c0, 0xc00003c7e0, 0x2a6b7c0) /app/promql/query_logger.go:112 +0x4d2 main.main()…

Continue ReadingPrometheus 2.12, query logging, and startup failures on macos

End of content

No more pages to load