I’ve shot a few day-to-night timelapses recently and had an idea to automate process of combining those images into one that would display the day-to-night transition from left to right.
I’ve used groovy shell for scripting the thing out quickly, and here is the result: Continue reading
I have a launchd service that fetches me some data from a website and sends them to an email. It uses password from keychain to do so. A week ago that password has expired and I had to update it. Aaand…
I was using security find-generic-password/add-generic-password, I’ve added security to the list of apps that don’t require password entry, done all that. It was all working fine before, but not this time. I’ve tried everything and just couldn’t figure it out.
Here are some new day-to-night timelapses I’ve made with GPhoto2Server, TLDeflicker and TLDF TimeLapse DeFlicker.
I’ve just run into a weird problem where RabbitMQ server was running EXTREMELY slow on my laptop for no apparent reason.
After trying a bunch of things and googlig for a while I’ve found out that possible reason for that might be slow host resolution. But everything was running on a localhost!
I’ve checked my /etc/hosts and found out… Well, when I’ve upgraded my MacBook Pro laptop I’ve imported all stuff from previous one (using Apple’s migration assistant), but also did change the new laptop’s network name to avoid conflicts with the old laptop being on the same network. But I did not update /etc/hosts accordingly – it only had 127.0.0.1 associated with the old network name.
Apparently, this is a big deal for RabbitMQ. I’ve been running it like that for more than a month and had no issues with any software whatsoever so far – but RabbitMQ (or possibly the underlying Erlang VM) was doing some special name resolution using my computer network name apparently, and that just didn’t work. Causing it not to report any errors though, but just run EXTREMELY (I mean it!) slow.
In order to install some of the software into macOS one has to go to Security & Privacy section of macOS preferences and click “Allow” button to allow that software to run as an OS kernel extension (or something like that).
Problem is, sometimes clicking the “Allow” button simply does nothing. Nothing at all. And there is no error message to figure out what’s the problem and what is happening.
One thing to find out the root cause of the problem though is to open Console.app that comes with macOS (inside /Applications/Utilities by default) and look there for log messages produced when clicking that “Allow” button.
In my case, as it was the case for many others, the message was roughly this:
“Dropping mouse down event because sender’s PID () isn’t 0 or self ()”.
For those who remember and love the good old ZX Spectrum – here’s a retro-gaming lifehack to have some fun experience playing ZX Spectrum games using X-Box controller on a Mac.
Some ZX Spectrum games allow one do redefine keys in order to play them. Others support standard key mappings like QAOP+Space or QAOP+M, and some also support standard joystick configurations like Kempston joystick, which essentially uses number keys 12345 and 67890 for left/right/up/down/fire on 2 joysticks – very simple and effective scheme, that also seamlessly works with games that allow redefining keys but don’t have special joystick support.
In any of those cases X-Box 360 controller can be used on macOS – by using macOS port of Fuse ZX Spectrum emulator, that supports it out of the box. A macOS driver is also needed for X-Box controller to work with Mac, but such a thing is available too (also there is an older one from TattieBogle).
Today I had to build kube-state-metrics Kubernetes extra metrics exporter for Prometheus monitoring system. I wanted to build it for specific Linux (kernel) version (in my case it was Alpine Linux 3.4), and I also wanted to build a specific version of kube-state-metrics – latest stable, which is 1.3.1 currently.
I didn’t want to get latest version from master as I was not sure about it’s stability and I would have hard time re-creating the build since master would move on over time, so simply making “go get” wasn’t an option.
The process turned out to be a bit tricky – I wanted to use docker to have proper version of Go lang for Alpine Linux 3.4 while I’m on a macOS myself, but the makefile of kube-state-metrics also uses docker (for whatever silly reason that is), so I needed to build it using go build.
As it turned out, I had to do two things – install Go into Alpine 3.4 (which took some copypasting from https://github.com/docker-library/golang where they have Dockerfile for Alpine 3.7 – contents of which I used) and then get the paths right for GOPATH in order to build kube-state-metrics.
Here’s the resulting Dockerfile: Continue reading