Skip to content

Instantly share code, notes, and snippets.

@kotarou3
kotarou3 / colourspace_differences.py
Created September 25, 2024 21:06
Quantify colour differences when converting between RGB and YCbCR, as well as SDR and HDR
#!/usr/bin/env python3
# Script output:
#
# ΔE (CAM16-UCS) [50, 95, 99, 99.9] percentiles
#
# sRGB (8-bit full) → sRGB (8-bit full)
# (For reference only)
# Quantisation error: [ 0.11 0.23 0.32 0.44]
# ±1 1ch corruption: [ 0.16 0.43 0.53 0.7 ]
@kotarou3
kotarou3 / pelican-cases.csv
Created March 29, 2024 21:28
Internal dimensions of Pelican cases in a convenient table and diagram
Model L (mm) W (mm) H (mm)
1010 111 73 43
1015 131 67 35
1020 135 90 43
1050 160 93 70
1030 162 67 52
1040 165 98 44
1120 185 121 85
1060 210 108 57
1150 211 147 95
@kotarou3
kotarou3 / README.md
Last active March 24, 2024 12:50
Multi-extruder FDM 3D printer comparison

Multi-extruder FDM 3D printer comparison

Includes:

  • Non-IDEX, IDEX (independent extruders), and toolchanger printers
  • Some single extruder printers for reference
  • Prices generally under US$10k (though some more expensive ones are included for "fun")

Notes:

  • Values taken from marketing material - no guarantees if they actually reach

Mount Rokkon: How to not get hit by wind sprites

YouTube link: https://www.youtube.com/watch?v=3HItOmXk0AA

The rest of this document is simply a note to myself on how I made the video

Analysis and image generation

analysis.nb is a Mathematica notebook for analysing the wind sprite patterns and exporting SVGs of them (stills-*.svg for the slideshow images, frames/%04d.svg for the timeline animation)

# Scores Mudfish "advanced mode" nodes since the built-in tool isn't very useful.
# Run with: scrapy runspider mudfish.py
import json
import re
import scrapy
srcIp = "110.175.213.58"
destIp = "124.150.157.158"
srcCountry = "AU"
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
#,Item,Theme[0],Theme[1],,Material[0],Amount[0],Material[1],Amount[1],Material[2],Amount[2],Material[3],Amount[3],LevelReq,CraftingTime,Value
0,"","","",0,"Island Palm Leaf",0,"Island Palm Leaf",0,"Island Palm Leaf",0,"Island Palm Leaf",0,0,0,0
1,"Isleworks Potion","Concoctions","",0,"Island Palm Leaf",2,"Islewort",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
2,"Isleworks Firesand","Concoctions","Unburied Treasures",0,"Island Sand",2,"Island Limestone",1,"Islewort",1,"Island Palm Leaf",0,1,4,28
3,"Isleworks Wooden Chair","Furnishings","Woodworks",0,"Island Log",4,"Island Vine",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,6,42
4,"Isleworks Grilled Clam","Foodstuffs","Marine Merchandise",0,"Island Clam",2,"Island Laver",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
5,"Isleworks Necklace","Accessories","Woodworks",0,"Island Branch",3,"Island Vine",1,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
6,"Isleworks Coral Ring","Accessories","Marine Merchandise",0,"Island Coral",3,"Island Vine",3,"I

RTMP to Discord stream (GoLive) conversion

Overview

This guide sets up nginx to convert a RTMP stream to HLS, which then can be opened in browsers. Discord can then take advantage of Chromium's tab sharing feature to stream the HLS stream. Only a few seconds of latency are added, which is acceptable for most applications.

Note: If your goal is to just get audio streaming working on Linux, this guide might be helpful (It results in lower FPS for me, however):

Liquid Cooling Quick-Disconnect Comparison

The accompanying CSV compares various liquid cooling quick-disconnect couplers that satisfy the following criteria:

  • No-spill (<100µL loss on disconnect)
  • Hand mate (requires releasing an interlock to disconnect)
  • Material compatible with a copper loop (e.g., brass, plastic, stainless steel)
  • 0~60°C operating temperature
  • Nominal inner diametre of 6~10mm

Stream audio from Windows to Linux

Tested on Ubuntu 16.04 and Windows 10 Redstone 1

Both boxes need to be on the same network (such that multicast packets can be passed between them)

Installing

Linux

  1. Setup JACK (easy to do with Cadence)

Windows

剕 [あしきり] /(n) (arch) (See 五刑) cutting off the leg at the knee (form of punishment in ancient China)/EntL2542150/
劓 [はなきり] /(n) (arch) (See 五刑) cutting off the nose (form of punishment in ancient China)/EntL2542140/
匜;半挿 [はそう;はぞう] /(n) (1) (esp. ) wide-mouthed ceramic vessel having a small hole in its spherical base (into which bamboo was probably inserted to pour liquids)/(2) (See 半挿・はんぞう・1) teapot-like object made typically of lacquerware and used to pour hot and cold liquids/EntL2791750/
噯;噯気;噫気;噯木(iK) [おくび(噯,噯気);あいき(噯気,噫気,噯木)] /(n) (uk) belch/eructation/burp/EntL2007450X/
垜;安土;堋 [あずち] /(n) mound on which targets are placed (in archery)/firing mound/EntL2542010/
杮;木屑;柿(iK) [こけら] /(n) (1) chopped wood/wood chips/(2) (abbr) (See こけら板) thin shingles/EntL2097450/
棈;阿部槙(ateji) [あべまき;アベマキ] /(n) (uk) Chinese cork oak (Quercus variabilis)/EntL2827052/
楣;目草 [まぐさ] /(n) (uk) {archit} (See 蹴放し) lintel (lacking the grooves needed for a sliding door)/EntL2056390X/
氐 [てい] /(n) (1) Di (ancient Chinese ethnic group)/(2) {as