http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
- download the latest image
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
| #include "color.h" | |
| #include "utilities.h" | |
| #include <math.h> | |
| /* | |
| * Algorithm adapted from https://gist.github.com/hdznrrd/656996. Uses a little libmath. | |
| * */ | |
| void color_HSV2RGB(struct color_ColorHSV const *hsv, struct color_ColorRGB *rgb) { | |
| int i; |
| Taken from : https://www.smackfu.com/stuff/programming/shoutcast.html | |
| Webarchive: https://web.archive.org/web/20190521203350/https://www.smackfu.com/stuff/programming/shoutcast.html | |
| Shoutcast Metadata Protocol | |
| How To Parse Titles from MP3 Streams | |
| I wanted to add the ability to show titles from Shoutcast streams on the SliMP3, like Winamp does. The protocol isn't documented anywhere officially (of course). So I ended up cobbling together info from google caches, xmms source code, and mailing lists. Hopefully, this document will save others from the same fate. | |
| ## Step 0: Overview picture | |
| ----------------------------------------------------------------------- | |
| [ audio data ][metadata.length][metadata][ audio data ] |
Scenario: RocketLab are launching 30 small-sats into space in a few days. We know that one of them is going to be transmitting on the amateur radio bands, but we haven't been able to obtain a pre-launch TLE yet. We want to get setup to use strf to listen for beacon signals (see my guide here), but we need to know when to expect the satellites. We have some basic orbital information from a press release, so how can we use this to estimate a TLE for prediction purposes?
Note: I am approaching this from the point-of-view of someone who really don't know much about orbital mechanics. I'm relying heavily on the experience of others, and the content below is my attempt at documenting the process taken.
Thanks to Cees Bassa for the amazing software as always...
Do you want to create a calendar event so that you can display it on an iPhone's calendar app or in Google Calendar? This can be done by using iCalendar events RFC 5545 as part of the following workflow:
I wrote this down after I responded to a page today (a holiday) because it would've been a decent pairing opportunity for a couple of new people on my team. Second best is that people can read what I did afterwards and ask me any questions. And then I realized that there's nothing PagerDuty-specific or confidential in here, so I may as well share it wider. It's hardly an epic incident, but it's a good example of "doing the work", I think. I borrowed the "write down what you learned" approach from Julia "b0rk" Evans. It's a fantastic practice.
(Note for non-PD readers: We run Nomad where others might run Kubernetes.)
Here's the process I went through.
docker system prune -a -f didn't resolve itdocker system prune -a -f and it cleared up 0B| import zlib | |
| import io | |
| import sys | |
| PNG_MAGIC = b"\x89PNG\r\n\x1a\n" | |
| def parse_png_chunk(stream): | |
| size = int.from_bytes(stream.read(4), "big") | |
| ctype = stream.read(4) | |
| body = stream.read(size) |
| /* | |
| Live.js - One script closer to Designing in the Browser | |
| Written for Handcraft.com by Martin Kool (@mrtnkl). | |
| Updated by Ross Wintle (https://rw.omg.lol) to: | |
| - Use async/await | |
| - Use fetch instead of XMLHttpRequest | |
| - Be a JS class | |
| - Use a separate, project-global modified-time file to check for changes |