From 6011e27dbd3ef9a8377eb3f0dc51e94e1262fec6 Mon Sep 17 00:00:00 2001 From: osmarks Date: Sat, 26 Oct 2024 14:31:38 +0100 Subject: [PATCH] minor fixes and improve title casing --- assets/js/h4xx0r.js | 15 ++++++++++----- blog/memesae.md | 4 ++-- blog/ml-workstation.md | 4 ++-- blog/not-everyone-must-code.md | 4 ++-- blog/on-phones.md | 4 ++-- blog/problem-solving.md | 4 ++-- src/page.js | 7 ++++--- templates/layout.pug | 3 --- 8 files changed, 24 insertions(+), 21 deletions(-) diff --git a/assets/js/h4xx0r.js b/assets/js/h4xx0r.js index f154cb4..fedef1e 100644 --- a/assets/js/h4xx0r.js +++ b/assets/js/h4xx0r.js @@ -20,7 +20,7 @@ jargonWords = { "IPv4", "IPv6", "ARP", "DES", "IEEE", "NoSQL", "UTF-16", "ADSL", "ABI", "TX", "HEVC", "AVC", "AV1", "ASLR", "ECC", "HBA", "HAL", "SMT", "RPC", "JIT", "LCD", "LED", "MIME", "MIMO", "LZW", "LGA", "OFDM", "ORM", "PCRE", "POP3", "SMTP", "802.3", "PSU", "RGB", "VLIW", "VPS", "VPN", - "XMPP", "IRC", "GNSS", "HBM", "ROM", "RFC", "HPC", "DMA"], + "XMPP", "IRC", "GNSS", "HBM", "ROM", "RFC", "HPC", "DMA", "SDN"], adjectives: ["auxiliary", "primary", "back-end", "digital", "open-source", "virtual", "cross-platform", "redundant", "online", "haptic", "multi-byte", "Bluetooth", "wireless", "1080p", "neural", @@ -33,7 +33,8 @@ jargonWords = { "high-level", "low-level", "distributed", "accelerated", "base64", "purely functional", "serial", "parallel", "compute", "graphene", "recursive", "denormalized", "orbital", "networked", "autonomous", "applicative", "acausal", "hardened", "category-theoretic", - "ultrasonic", "high-level", "amortized", "tertiary", "256-bit" + "ultrasonic", "high-level", "amortized", "tertiary", "256-bit", "generative", "k8s", "core", + "central" ], nouns: ["driver", "protocol", "bandwidth", "panel", "microchip", "program", "port", "card", @@ -51,7 +52,8 @@ jargonWords = { "API", "bitrate", "acknowledgement", "layout", "satellite", "shell", "MAC", "PHY", "VLAN", "SoC", "assembler", "interrupt", "directory", "display", "functor", "bits", "logic", "sequence", "procedure", "subnet", "invariant", "monad", "endofunctor", "borrow checker", - "kernel", "memory", "bootloader", "bytestring", "buffer", "allocator"], + "kernel", "memory", "bootloader", "bytestring", "buffer", "allocator", "switch", + "router", "console", "microcontroller", "controller"], participles: ["backing up", "bypassing", "hacking", "overriding", "compressing", "copying", "navigating", "indexing", "connecting", "generating", "quantifying", "calculating", "synthesizing", @@ -64,7 +66,8 @@ jargonWords = { "underwriting", "accessing", "locating", "rotating", "invoking", "utilizing", "normalizing", "hijacking", "integrating", "type-checking", "uploading", "downloading", "allocating", "receiving", "decoding", "converting", "wiping", "erasing", "flashing", - "managing", "updating", "terminating", "detaching", "rewiring" + "managing", "updating", "terminating", "detaching", "rewiring", "hashing", "inserting", + "loading", "emulating", "simulating", "mapping", "enabling", "disabling" ]}; // Generates a random piece of jargon @@ -234,7 +237,9 @@ function GuiHacker(){ "Opening Wireshark.", "Breaking fifth wall....", "Flipping arrows and applying yoneda lemma", - "Rewriting in Rust" + "Rewriting in Rust", + "Entering Mainframe", + "Full Scan Required." ]; this.isProcessing = false; this.processTime = 0; diff --git a/blog/memesae.md b/blog/memesae.md index ff805d4..e036a19 100644 --- a/blog/memesae.md +++ b/blog/memesae.md @@ -1,5 +1,5 @@ --- -title: Sparse Autoencoders for Meme Retrieval +title: Sparse autoencoders for meme retrieval description: As ever, AI safety becomes AI capabilities. created: 06/10/2024 series: meme_search @@ -47,4 +47,4 @@ This is, at present, just a curiosity, but I expect it to be a valuable part of [^5]: [Scaling and evaluating sparse autoencoders](https://arxiv.org/abs/2406.04093), Gao et al. -[^6]: It would be cleaner to simply have more data, but that isn't practical right now. \ No newline at end of file +[^6]: It would be cleaner to simply have more data, but that isn't practical right now. diff --git a/blog/ml-workstation.md b/blog/ml-workstation.md index 2fa57b3..1dd49aa 100644 --- a/blog/ml-workstation.md +++ b/blog/ml-workstation.md @@ -1,5 +1,5 @@ --- -title: So You Want A Cheap ML Workstation +title: So you want a cheap ML workstation description: How to run local AI slightly more cheaply than with a prebuilt system. Somewhat opinionated. created: 25/02/2024 updated: 14/04/2024 @@ -149,4 +149,4 @@ They describe somewhat horrifying electrical engineering problems due to using s [^14]: You should be able to hold weights in FP16 and do the maths in FP32, giving you FP32 speeds instead of the horrible slowdown, though. -[^15]: Geohotz/Tinygrad now has a [patch](https://github.com/tinygrad/open-gpu-kernel-modules) to the open-source kernel module which makes it work, at least on 3090s and 4090s, by hacking it into using native PCIe capabilities which are retained. \ No newline at end of file +[^15]: Geohotz/Tinygrad now has a [patch](https://github.com/tinygrad/open-gpu-kernel-modules) to the open-source kernel module which makes it work, at least on 3090s and 4090s, by hacking it into using native PCIe capabilities which are retained. diff --git a/blog/not-everyone-must-code.md b/blog/not-everyone-must-code.md index 7678a9f..32f7cbb 100644 --- a/blog/not-everyone-must-code.md +++ b/blog/not-everyone-must-code.md @@ -1,5 +1,5 @@ --- -title: Not Everyone Must "Code" +title: Not everyone must "code" description: Why I think that government programs telling everyone to "code" are pointless. slug: nemc updated: 09/02/2020 @@ -35,4 +35,4 @@ Having shown someone this post, they've suggested to me that Scratch is more abo This does seem pretty sensible, actually. I can agree that it is probably useful for this, since most people will enjoy making visual things with direct feedback than writing a bunch of code to print "Hello, World!" or sort a list or something. Still, it definitely does have limits for this given that it's quite lacking in control flow capability and abstraction compared to regular programming languages. -Also, it's not really marketed this way, and thus probably not taught that way either. \ No newline at end of file +Also, it's not really marketed this way, and thus probably not taught that way either. diff --git a/blog/on-phones.md b/blog/on-phones.md index 31e6b3c..9086390 100644 --- a/blog/on-phones.md +++ b/blog/on-phones.md @@ -1,5 +1,5 @@ --- -title: On Phones +title: On phones description: My (probably unpopular in general but... actually likely fairly popular amongst this site's intended audience) opinions on smartphones today. slug: phones created: 01/06/2018 @@ -33,4 +33,4 @@ It's now the future (2023) and things have actually improved slightly in some wa [^3]: The most practical right now, inasmuch as BlackBerry/TCL haven't released anything relevant in years, is the [Unihertz Titan (Pocket)](https://www.unihertz.com/products/titan-pocket). It has some cool features aside from the keyboard, but it also has awful cameras, an undersized-by-my-current-standards battery, a bad LCD display, and a MediaTek SoC (according to legend, they're worse at GPL compliance so custom ROMs are lacking). -[^4]: Also, they don't fix the firmware, which probably has horrible security problems in it. \ No newline at end of file +[^4]: Also, they don't fix the firmware, which probably has horrible security problems in it. diff --git a/blog/problem-solving.md b/blog/problem-solving.md index c1a91c8..ac66ec9 100644 --- a/blog/problem-solving.md +++ b/blog/problem-solving.md @@ -1,5 +1,5 @@ --- -title: "'Problem Solving' Tasks and Computer Science" +title: "'Problem solving' tasks and computer science" description: Is solving Sudoku and similar puzzles by hand really useful in building computer science ability? We don't think so. slug: csproblem created: 20/05/2020 @@ -31,4 +31,4 @@ In other words, learning to do 'computational skills' problems does not help you Update (28/01/2023 CE): -It only took a year after this was written for [OpenAI Codex](https://openai.com/blog/openai-codex/) to become reasonably competent at programming. Oops. And I didn't actually think to update this until now, when I happened to be reviewing it. Regardless, I think the relevant argument still holds up, inasmuch as even today's language models still aren't that great at "thinky" programming tasks, and mostly serve to reveal how much stupid glue code we have to write. \ No newline at end of file +It only took a year after this was written for [OpenAI Codex](https://openai.com/blog/openai-codex/) to become reasonably competent at programming. Oops. And I didn't actually think to update this until now, when I happened to be reviewing it. Regardless, I think the relevant argument still holds up, inasmuch as even today's language models still aren't that great at "thinky" programming tasks, and mostly serve to reveal how much stupid glue code we have to write. diff --git a/src/page.js b/src/page.js index 8bd0181..18ed89d 100644 --- a/src/page.js +++ b/src/page.js @@ -483,7 +483,7 @@ if (sidenotes && footnotes) { // WANT: distbound_i >= placement_i - target_i AND distbound_i <= target_i - placement_i // distbound_i >= gapsum_i + heightsum_i - target_i - + // distbound_i_offset = distbound_i - gapsum_i // so distbound_i_offset >= heightsum_i - target_i // implies distbound_i - gapsum_i >= heightsum_i - target_i @@ -557,6 +557,7 @@ if (sidenotes && footnotes) { let previousHighlight const fixDetailsSummary = () => { + if (!window.location.hash.slice(1)) return const el = document.getElementById(window.location.hash.slice(1)) var parent = el if (!el) return @@ -643,7 +644,7 @@ loginButton.onclick = async ev => { if (result.description) { e("description", item, result.description) } - item.style.border = `hsl(${hues[result.sourceType]}deg, 100%, 70%) solid 4px` + item.style.border = `hsl(${hues[result.sourceType]}deg, 100%, 70%) solid 4px` item.style.background = `hsl(${hues[result.sourceType]}deg, 50%, 10%)` } overlay.appendChild(resultsEl) @@ -664,4 +665,4 @@ window.addEventListener("keydown", ev => { if (ev.key === "Escape") { closeOverlay() } -}) \ No newline at end of file +}) diff --git a/templates/layout.pug b/templates/layout.pug index 2574b77..134ce94 100644 --- a/templates/layout.pug +++ b/templates/layout.pug @@ -15,9 +15,6 @@ mixin image(src) doctype html html(lang="en") head - link(rel="preload", href="/assets/miracode.woff2", as="font", crossorigin="anonymous") - link(rel="preload", href="/assets/titillium-web-semibold.woff2", as="font", crossorigin="anonymous") - link(rel="preload", href="/assets/titillium-web.woff2", as="font", crossorigin="anonymous") title= `${title} @ ${name}` script(src="/assets/js/page.js", defer=true) meta(charset="UTF-8")