June 17, 2023June 17, 2023Energy Monitoring, Internet Of Things Grafana Multi-Tenant Teams, Folders, Organisations … and Provisioning. What’s up with that? I use Grafana to display data about IoT devices (PhiSaver). It’s all […]
June 17, 2023June 17, 2023Computing, Programming Django Object-level Permissions with DRF and Rules Finding a simple way to limit API users’ permissions to certain objects. We want an API via Django, so we use DRF. […]
June 10, 2023June 10, 2023Energy Monitoring, Internet Of Things Complex Electricity Metering How to get meaningful energy efficiency results when there is a spaghetti of boards Look at that mess! We focus on the […]
April 5, 2023April 5, 2023Programming VSCode Python Setup++ This is based on this great boilerplate for setting up Python. I’ve adapted for my use: Environment Use direnv and you’ll get […]
February 22, 2023February 22, 2023Programming Winforms Databinding… not confusing at all So you wanna use WinForms (e.g. natively or in a Word Add-In) in C# / VB? Great, there’s good support for databinding […]
February 15, 2023February 15, 2023Computing, Programming Signing Windows Apps Background: I’ve created some windows apps (winforms with .Net 4 and a WinWord x64 Add-In). These are packaged up into .msi installers […]
March 13, 2022March 13, 2022H33 House, Internet Of Things, Sustainable Buildings Smart House: Why? How? I want some simple functions for the H33 house: Energy monitoring: easy with Phisaver at the switchboard House off: turn off all […]
January 22, 2022March 10, 2023Computing, Programming Django Development and Staging I have two boxes: dev and production. I need a very simple method for working on the dev machine and then pushing […]
January 19, 2022January 25, 2022Computing, Internet Of Things, Programming Postgres Tricks Log-the-frick-in sudo -u postgres psql dbname # typical root user psql -h localhost -U user -W dbname # default host is unix-domain […]
January 19, 2022June 26, 2024Computing, Programming Why the hell can’t I login to PostgreSQL? Some possible reasons and solutions Wrong host Use the “-h” flag: psql -h localhost -U phisaver –password Wrong syntax Use -U and […]