RSSAmplifier

Blog

Haylin's blog

Haylin's writings, rambles, and sometimes tutorials

hayl.inRSS feed ↗11 posts

Latest posts

Custom AMQ Filter for Fast Substring Search

The Problem Recently, my friend Yui asked me to help find a way to search for all elements that included a given word on her site infinibrowser.wiki , which has ~10 million elements. As part of the problem this substring search needed to support all unicode characters we could throw at it, with there being projects to uncover a recipe for every unicode character in Infinicraft. Everything she…

CDMA

CDMA Interactive Demo Senders: 2 First the desired sender count must be chosen so that sender codes can be calculated. Walsh Table A Walsh matrix is used to generate orthogonal codes Per Sender Code Each sender's orthogonal is taken from the relevant row on the Walsh table Encoded Message Each sender can send one trit (-1, 0, 1) at a time. The first input corresponds to sender 0's data point, the…

nvim keybind for rendering markdown in glow

Some lua I wrote to let me render markdown in glow . It was my first time experimenting with hooking into the neovim APIs and I'm pretty happy with how it turned out. Hopefully it will be useful to someone else as guidance, though I'm sure there are better ways to do this. local function render_markdown_with_glow() local tempfile = vim.fn.tempname() .. ".md" vim.cmd("write! " .. tempfile)…

SysDB and gNMI

Exploring Sysdb with TerminAttr and REST API Enable TerminAttr : Begin by enabling the TerminAttr daemon on your device. This can be done with the following configuration commands: spine1#config spine1(config)#daemon TerminAttr spine1(config-daemon-TerminAttr)#exec /usr/bin/TerminAttr -grpcaddr 0.0.0.0:6042 spine1(config-daemon-TerminAttr)#no shutdown spine1(config-daemon-TerminAttr)#bash This…

Github Actions and Kubernetes

Recently, I migrated my site to being built and deployed using GitHub Actions, this approach is useful if you're experiencing slow docker cross-compilation speeds, like those on M1 Macs. Typically my local flow for building new images involves a Makefile that builds the Docker image, pushes it to a registry, and then issues the kubectl rollout restart deployment DEPLOYMENT_NAME command. There are…

PunyTLD

Invalid UTF8 characters as SSIDs

This is a continuation of my previous post Comparing how different devices display the SSID "á̶̛̛̓̿̈͐͆̐̇̒̑̈́͘͝aaa" . After posting it on HackerNews I got lots of feedback. The key one was something that I had sadly missed when I originally started this project. When the WiFi name of "á̶̛̛̓̿̈͐͆̐̇̒̑̈́͘͝aaa" got shortened down to a one byte before the second "a" due to the 32 byte/octet limit of…

The SSID "á̶̛̛̓̿̈͐͆̐̇̒̑̈́͘͝aaa"

After my recent post Setting the SSID of a Fios Home Router to an emoji I decided to set my WiFis SSID to "á̶̛̛̓̿̈͐͆̐̇̒̑̈́͘͝aaa". That name is 36 octets making it over the 32 octets maximum specified in the 2012 standard of 802.11 Section 6.3.11.2.2. My router just cut the name down to 32 octets though to stay compliant. I decided to see how this showed up on different devices and got some pretty…

FIOS Home Router Emoji

Setting the name/SSID of your WiFi to an emoji is fairly simple for the Fios Home Router. Simply log into the router, and go the page for setting the SSID. Once you are there open the developer console using Ctrl+Shift+I or by right clicking and clicking the option labeled along the lines of Inspect Element or Inspect . After this simply paste the following code into the console. validSSID =…

Shrinking this site's docker image

Recently, I moved my static Eleventy site over to a docker container. This was one of the first docker images I have made in a while so it started inefficient. FROM nginx:1.17.10-alpine RUN apk add --update nodejs npm RUN npm install -g @11ty/eleventy COPY . /app WORKDIR /app RUN npm install RUN eleventy . RUN rm -r /usr/share/nginx/html/ RUN cp /app/_site/ /usr/share/nginx/html/ -r EXPOSE 80 This…

AI Recolors New Mexico State Flag

I'm bad at design, but good at programming. Which means I am very good at design. If your first response to that was "That makes no sense, you just said you are bad" then you are kinda correct. I really liked the results of this, but that is likely due to my personal bias. Backstory I was looking at state flags one day and came to the realization that the New Mexico flag one of the only good…