website-xp-phone 2.2.12 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +2 -2
- package/README.md +17 -3
- package/build/blogDirsPlugin.ts +100 -0
- package/build/env.ts +4 -1
- package/build/routeSkeletonsPlugin.ts +44 -2
- package/package.json +14 -10
- package/public/blog/archive/eighth-post-lost-in-the-sauce.json +36 -0
- package/public/blog/archive/noise/eleventh-post-discussion-java-gist.md +5 -0
- package/public/blog/archive/noise/fifteenth-post-very-rare-windows-funny.md +8 -0
- package/public/blog/archive/noise/fourth-post-meta-blog.md +3 -0
- package/public/blog/archive/noise/sixteenth-post-meta-fantasy-blog.md +4 -0
- package/public/blog/archive/noise/tenth-post-meta-funny-redacted-and-timetravelled.md +3 -0
- package/public/blog/archive/noise/twelfth-post-mixing-phase-technique-audio-music.md +48 -0
- package/public/blog/archive/noise/welcome-back-ramble-meta.md +6 -0
- package/public/blog/archive/noise/welcome-to-my-blog-meta-blog-welcome-to-my-website.md +7 -0
- package/public/blog/archive/seventh-post-lie-theory-na2000.json +22 -0
- package/public/blog/archive/sophus-lie.json +36 -0
- package/public/blog/hlwm_and_herbstutil.md +11 -0
- package/public/blog/random/hlwm.md +8 -0
- package/public/blog/writing/hot-action-under-a-cold-moon.json +9 -0
- package/public/checksums.txt +91 -66
- package/public/documents/drift-report.json +42 -28
- package/render.yaml +11 -1
- package/scripts/mutable-assets.mjs +13 -22
- package/scripts/refresh-content.mjs +53 -32
- package/scripts/refresh-soundcloud.mjs +221 -136
- package/scripts/write-dist-checksums.mjs +48 -4
- package/src/content/blog.json +16 -363
- package/src/content/blogDirs.ts +196 -0
- package/src/content/configs.json +1 -1
- package/src/content/contacts.json +2 -2
- package/src/content/includes/make-recipes.md +18 -0
- package/src/content/index.ts +156 -57
- package/src/content/music-ext.json +1 -1
- package/src/content/projects/doftiles.json +88 -4
- package/src/content/projects/herbctl.json +58 -0
- package/src/content/projects/herbstutil.json +50 -20
- package/src/content/projects/on-deploy.json +57 -0
- package/src/content/projects/polyframes.json +83 -0
- package/src/content/schema.ts +7 -4
- package/src/content/sections.json +11 -10
- package/src/content/soundcloud.json +95 -47
- package/src/lib/clippy.ts +29 -8
- package/src/lib/embeds.ts +43 -24
- package/src/lib/history.ts +152 -0
- package/src/lib/markdown.tsx +19 -22
- package/src/lib/rehypeYoutubeEmbed.ts +65 -0
- package/src/lib/sanitizeSchema.ts +32 -0
- package/src/lib/scrollTo.ts +45 -0
- package/src/lib/signals.tsx +271 -0
- package/src/main.tsx +20 -4
- package/src/pages/BlogDirPage.tsx +36 -0
- package/src/pages/BlogPostPage.tsx +76 -3
- package/src/pages/ProjectPage.tsx +9 -3
- package/src/pages/WowPage.tsx +8 -3
- package/src/pages/index.ts +2 -0
- package/src/shell/App.tsx +14 -8
- package/src/shell/Clippy.tsx +13 -3
- package/src/shell/MenuBar.tsx +7 -4
- package/src/shell/resolveRoute.ts +41 -2
- package/src/shell/routerSignals.ts +34 -0
- package/src/styles/extras.css +27 -0
- package/src/styles/layout.css +2 -2
- package/src/styles/menu.css +1 -1
- package/src/styles/window.css +19 -9
- package/src/themes/pageSlide/index.ts +120 -42
- package/src/themes/pageSlide/pageSlide.css +20 -9
- package/src/virtual.d.ts +14 -0
- package/src/window/MaximizedWindow.tsx +97 -64
- package/src/window/OkButton.tsx +42 -25
- package/src/window/PageWindows.tsx +7 -0
- package/src/window/TitleBar.tsx +3 -1
- package/src/window/Window.tsx +132 -87
- package/src/window/closeSounds.ts +27 -0
- package/src/window/model.ts +11 -0
- package/src/window/state.tsx +290 -50
- package/src/window/themes.ts +23 -2
- package/test/content.test.js +15 -10
- package/test/deploy-pipeline.test.js +73 -0
- package/test/embeds.test.js +89 -0
- package/test/markdown-tables.test.js +96 -0
- package/test/mutable-assets.test.js +16 -4
- package/test/route-skeletons.test.js +38 -0
- package/test/soundcloud-refresh.test.js +68 -0
- package/test/youtubeEmbed.test.js +157 -0
- package/tsconfig.node.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +7 -1
- package/.opencode/cache/index.akinevz.html +0 -54
- package/public/blog/4th.md +0 -28
- package/public/blog/wsl.1.md +0 -40
- package/src/window/hidden.ts +0 -22
- /package/public/blog/{ → archive/noise/}/321/200/321/203/320/275/320/270/321/201/321/207-/320/263/320/273/320/276/321/201/321/201/320/260/321/200/320/270/320/271.md" +0 -0
- /package/src/content/{characters.json → includes/characters.json} +0 -0
package/.github/workflows/ci.yml
CHANGED
package/README.md
CHANGED
|
@@ -57,10 +57,24 @@ npm run build
|
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
`npm run build:local` runs the full pre-push pipeline locally — the same
|
|
60
|
-
checks CI ("Website CI") runs on main: lockfile STABLE, the
|
|
61
|
-
(
|
|
60
|
+
checks CI ("Website CI") runs on main: lockfile STABLE, the gated build
|
|
61
|
+
(vite build + checksums + drift report), and the drift-policy gate, plus
|
|
62
62
|
lint/tests/audit. `npm run check:ci` runs just the CI-equivalent subset
|
|
63
|
-
(lockfile + build + drift policy) without the content refresh.
|
|
63
|
+
(lockfile + gated build + drift policy) without the content refresh.
|
|
64
|
+
|
|
65
|
+
`npm run build` is the deploy build (Render): vite build only — no
|
|
66
|
+
checksums pass, no content regeneration — so host rebuilds stay cheap.
|
|
67
|
+
`npm run build:gated` is `build` plus the checksums/drift-report pass and
|
|
68
|
+
is what CI and `build:local` run. The drift-policy gate
|
|
69
|
+
(`npm run verify:policy`) is a pure static check of the committed drift
|
|
70
|
+
report, so the Render deploy runs it before installing anything and
|
|
71
|
+
fails fast when the uploaded build doesn't pass.
|
|
72
|
+
|
|
73
|
+
Content snapshots that mirror live services (`src/content/soundcloud.json`)
|
|
74
|
+
are regenerated only by `npm run refresh:soundcloud`, which runs inside
|
|
75
|
+
`build:local` — never by `npm run build`. Deploy-side builds (Render)
|
|
76
|
+
ship the committed snapshot and manifest exactly as `build:local`
|
|
77
|
+
produced them.
|
|
64
78
|
|
|
65
79
|
Run linting:
|
|
66
80
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import type { Plugin } from "vite";
|
|
4
|
+
import { PUBLIC } from "./env.ts";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The blog directory listing, read straight from the filesystem.
|
|
8
|
+
*
|
|
9
|
+
* Serves the virtual module `virtual:blog-dirs`: public/blog/ and every
|
|
10
|
+
* SUBdirectory below it, with the files and child directories each
|
|
11
|
+
* holds, as the app's blog directory system consumes it
|
|
12
|
+
* (src/content/blogDirs.ts). There is NO snapshot file to author, commit
|
|
13
|
+
* or refresh — the walk runs when the module is first loaded (dev server
|
|
14
|
+
* start, production build) and the dev watcher recomputes it whenever
|
|
15
|
+
* public/blog/ changes, so the served listing is always exactly the
|
|
16
|
+
* filesystem. The blog ROOT's entry powers post-address resolution
|
|
17
|
+
* (/blog/<file>), but the root itself never lists (the curated blog.json
|
|
18
|
+
* page lives there). Dotfiles are skipped.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export type BlogDirEntry = {
|
|
22
|
+
path: string;
|
|
23
|
+
files: string[];
|
|
24
|
+
/** Child directories, as their served paths (e.g. /blog/archive/tech). */
|
|
25
|
+
dirs: string[];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const BLOG_ROOT = path.join(PUBLIC, "blog");
|
|
29
|
+
|
|
30
|
+
/** Walks public/blog/ into [{ path, files, dirs }] — depth-first, names
|
|
31
|
+
* sorted case-insensitively for a stable module identity. Exported pure
|
|
32
|
+
* so tests can assert the shape without touching fs. */
|
|
33
|
+
export function listBlogDirs(
|
|
34
|
+
dir: string = BLOG_ROOT,
|
|
35
|
+
rel = "",
|
|
36
|
+
): BlogDirEntry[] {
|
|
37
|
+
let entries: fs.Dirent[];
|
|
38
|
+
try {
|
|
39
|
+
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
40
|
+
} catch {
|
|
41
|
+
// No public/blog at all: no directories list.
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
const files: string[] = [];
|
|
45
|
+
const childDirs: string[] = [];
|
|
46
|
+
const subdirs: BlogDirEntry[] = [];
|
|
47
|
+
for (const entry of entries) {
|
|
48
|
+
if (entry.name.startsWith(".")) continue;
|
|
49
|
+
if (entry.isDirectory()) {
|
|
50
|
+
childDirs.push(`/blog${rel}/${entry.name}`);
|
|
51
|
+
subdirs.push(
|
|
52
|
+
...listBlogDirs(path.join(dir, entry.name), `${rel}/${entry.name}`),
|
|
53
|
+
);
|
|
54
|
+
} else {
|
|
55
|
+
files.push(entry.name);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const mine: BlogDirEntry[] = [
|
|
59
|
+
{
|
|
60
|
+
path: `/blog${rel}`,
|
|
61
|
+
files: files.sort((a, b) =>
|
|
62
|
+
a.toLowerCase().localeCompare(b.toLowerCase()),
|
|
63
|
+
),
|
|
64
|
+
dirs: childDirs.sort((a, b) =>
|
|
65
|
+
a.toLowerCase().localeCompare(b.toLowerCase()),
|
|
66
|
+
),
|
|
67
|
+
},
|
|
68
|
+
...subdirs,
|
|
69
|
+
];
|
|
70
|
+
return mine;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function blogDirsPlugin(): Plugin {
|
|
74
|
+
const moduleFor = () =>
|
|
75
|
+
`export default ${JSON.stringify({ directories: listBlogDirs() })};`;
|
|
76
|
+
return {
|
|
77
|
+
name: "blog-dirs-virtual",
|
|
78
|
+
resolveId(id) {
|
|
79
|
+
if (id === "virtual:blog-dirs") return "\0virtual:blog-dirs";
|
|
80
|
+
return null;
|
|
81
|
+
},
|
|
82
|
+
load(id) {
|
|
83
|
+
if (id === "\0virtual:blog-dirs") return moduleFor();
|
|
84
|
+
return null;
|
|
85
|
+
},
|
|
86
|
+
configureServer(server) {
|
|
87
|
+
// Recompute and reload when the blog tree changes: new files list
|
|
88
|
+
// themselves, removed ones vanish, no manual refresh step.
|
|
89
|
+
server.watcher.add(BLOG_ROOT);
|
|
90
|
+
const changed = (file: string) => {
|
|
91
|
+
if (!file.startsWith(BLOG_ROOT)) return;
|
|
92
|
+
const mod = server.moduleGraph.getModuleById("\0virtual:blog-dirs");
|
|
93
|
+
if (mod) server.moduleGraph.invalidateModule(mod);
|
|
94
|
+
server.ws.send({ type: "full-reload" });
|
|
95
|
+
};
|
|
96
|
+
for (const event of ["add", "unlink", "addDir", "unlinkDir"] as const)
|
|
97
|
+
server.watcher.on(event, changed);
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
}
|
package/build/env.ts
CHANGED
|
@@ -15,5 +15,8 @@ export const SECURITY_HEADERS = {
|
|
|
15
15
|
"X-Content-Type-Options": "nosniff",
|
|
16
16
|
"X-Frame-Options": "SAMEORIGIN",
|
|
17
17
|
"Content-Security-Policy": "frame-ancestors 'self'",
|
|
18
|
-
|
|
18
|
+
// not "no-referrer": YouTube embeds fail with Error 153 when the player
|
|
19
|
+
// cannot see the embedding origin (cross-origin requests only get the
|
|
20
|
+
// origin under this policy, so it stays privacy-friendly).
|
|
21
|
+
"Referrer-Policy": "strict-origin-when-cross-origin",
|
|
19
22
|
};
|
|
@@ -3,13 +3,43 @@ import path from "node:path";
|
|
|
3
3
|
import type { Plugin } from "vite";
|
|
4
4
|
import { DIST, PUBLIC } from "./env.ts";
|
|
5
5
|
import { withRouteMeta } from "./meta.ts";
|
|
6
|
-
import { loadRoutes, normalizeRoute } from "./routes.ts";
|
|
6
|
+
import { loadRoutes, normalizeRoute, type RouteConfig } from "./routes.ts";
|
|
7
7
|
import { generateSitemap } from "./sitemap.ts";
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* dist-relative paths the skeleton generator emits for the given routes:
|
|
11
|
+
* one index.html per route, a `<slug>.html` sibling for static hosts
|
|
12
|
+
* (unless a hand-written `public/<slug>.html` wins over it), plus the
|
|
13
|
+
* root index.html and sitemap.xml.
|
|
14
|
+
*
|
|
15
|
+
* Exported pure so tests can assert the generated set without touching fs.
|
|
16
|
+
*/
|
|
17
|
+
export function generatedPathsForRoutes(
|
|
18
|
+
routes: RouteConfig[],
|
|
19
|
+
publicSiblingExists: (slug: string) => boolean,
|
|
20
|
+
): string[] {
|
|
21
|
+
const generated = new Set<string>(["index.html", "sitemap.xml"]);
|
|
22
|
+
for (const route of routes) {
|
|
23
|
+
const normalized = normalizeRoute(route.path);
|
|
24
|
+
if (normalized === "/") continue; // root index.html, already included
|
|
25
|
+
const slug = normalized.slice(1);
|
|
26
|
+
generated.add(`${slug}/index.html`);
|
|
27
|
+
if (!publicSiblingExists(slug)) {
|
|
28
|
+
generated.add(`${slug}.html`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return [...generated].sort();
|
|
32
|
+
}
|
|
33
|
+
|
|
9
34
|
/**
|
|
10
35
|
* After the bundle is written, emit one index.html per route (with that
|
|
11
36
|
* route's title/description meta), a `<slug>.html` sibling for static hosts,
|
|
12
37
|
* and sitemap.xml. The SPA still hydrates from the same bundle.
|
|
38
|
+
*
|
|
39
|
+
* The emitted `dist/.generated.json` lists every generated path so the
|
|
40
|
+
* checksums drift gate (write-dist-checksums.mjs) can auto-mark
|
|
41
|
+
* webapp-generated artifacts as mutable instead of hand-maintaining page
|
|
42
|
+
* entries: any new route or project page is mutable automatically.
|
|
13
43
|
*/
|
|
14
44
|
export function routeSkeletonsPlugin(): Plugin {
|
|
15
45
|
return {
|
|
@@ -21,6 +51,8 @@ export function routeSkeletonsPlugin(): Plugin {
|
|
|
21
51
|
|
|
22
52
|
const indexHtml = fs.readFileSync(indexPath, "utf-8");
|
|
23
53
|
const routes = loadRoutes();
|
|
54
|
+
const publicSiblingExists = (slug: string) =>
|
|
55
|
+
fs.existsSync(path.join(PUBLIC, `${slug}.html`));
|
|
24
56
|
|
|
25
57
|
for (const route of routes) {
|
|
26
58
|
const normalized = normalizeRoute(route.path);
|
|
@@ -36,7 +68,7 @@ export function routeSkeletonsPlugin(): Plugin {
|
|
|
36
68
|
fs.writeFileSync(path.join(DIST, slug, "index.html"), html, "utf-8");
|
|
37
69
|
|
|
38
70
|
// a hand-written public/<slug>.html wins over the generated sibling
|
|
39
|
-
if (!
|
|
71
|
+
if (!publicSiblingExists(slug)) {
|
|
40
72
|
fs.writeFileSync(path.join(DIST, `${slug}.html`), html, "utf-8");
|
|
41
73
|
}
|
|
42
74
|
}
|
|
@@ -46,6 +78,16 @@ export function routeSkeletonsPlugin(): Plugin {
|
|
|
46
78
|
generateSitemap(routes),
|
|
47
79
|
"utf-8",
|
|
48
80
|
);
|
|
81
|
+
|
|
82
|
+
fs.writeFileSync(
|
|
83
|
+
path.join(DIST, ".generated.json"),
|
|
84
|
+
`${JSON.stringify(
|
|
85
|
+
{ generated: generatedPathsForRoutes(routes, publicSiblingExists) },
|
|
86
|
+
null,
|
|
87
|
+
2,
|
|
88
|
+
)}\n`,
|
|
89
|
+
"utf-8",
|
|
90
|
+
);
|
|
49
91
|
},
|
|
50
92
|
};
|
|
51
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "website-xp-phone",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"license": "GPL v2",
|
|
5
5
|
"author": "Kirill <kine> Nevzorov <akinevz@outlook.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"dev": "vite",
|
|
15
15
|
"refresh:content": "node ./scripts/refresh-content.mjs",
|
|
16
|
+
"refresh:soundcloud": "node ./scripts/refresh-soundcloud.mjs",
|
|
16
17
|
"render": "echo 'https://render.com/'",
|
|
17
|
-
"build": "vite build && npm run
|
|
18
|
-
"build:
|
|
18
|
+
"build": "vite build && npm run render",
|
|
19
|
+
"build:gated": "npm run build && npm run checksums",
|
|
20
|
+
"build:local": "npm run refresh:content && npm run refresh:soundcloud && npm run check:all && npm run build:gated && npm run verify:policy && npm run dev",
|
|
19
21
|
"build:ready": "git add -A && npm run push",
|
|
20
22
|
"push": "git push origin main",
|
|
21
23
|
"preview": "vite preview --host 127.0.0.1 --port 8086",
|
|
@@ -27,15 +29,14 @@
|
|
|
27
29
|
"check:security": "npm run lint && npm run test",
|
|
28
30
|
"check:all": "npm run check:security && npm run check:audit",
|
|
29
31
|
"check:lockfile": "git diff --exit-code package-lock.json",
|
|
30
|
-
"check:ci": "npm run check:lockfile && npm run build && npm run verify:policy",
|
|
32
|
+
"check:ci": "npm run check:lockfile && npm run build:gated && npm run verify:policy",
|
|
31
33
|
"checksums": "node ./scripts/write-dist-checksums.mjs",
|
|
32
34
|
"verify:policy": "node ./scripts/verify-policy.mjs",
|
|
33
|
-
"postinstall": "node ./scripts/ensure-xpcss.mjs"
|
|
35
|
+
"postinstall": "node ./scripts/ensure-xpcss.mjs",
|
|
36
|
+
"open": "npm run build:local"
|
|
34
37
|
},
|
|
35
38
|
"dependencies": {
|
|
36
|
-
"eslint-plugin-react-refresh": "^0.5.7",
|
|
37
39
|
"lightdni-jssas-toggle": "1.1.1",
|
|
38
|
-
"postcss": "^8.5.24",
|
|
39
40
|
"react": "^19.2.8",
|
|
40
41
|
"react-dom": "^19.3.1",
|
|
41
42
|
"react-markdown": "^10.1.0",
|
|
@@ -43,8 +44,11 @@
|
|
|
43
44
|
"react-toastify": "^11.1.0",
|
|
44
45
|
"rehype-raw": "^7.0.0",
|
|
45
46
|
"rehype-sanitize": "^6.0.0",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
47
|
+
"remark-breaks": "^4.0.0",
|
|
48
|
+
"remark-gfm": "^4.0.1",
|
|
49
|
+
"typescript-eslint": "^8.72.0",
|
|
50
|
+
"unist-util-visit": "^5.1.0",
|
|
51
|
+
"vite": "^8.3.5"
|
|
48
52
|
},
|
|
49
53
|
"overrides": {
|
|
50
54
|
"lodash": "^4.17.21",
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
"@types/react": "^19.2.18",
|
|
57
61
|
"@types/react-dom": "^19.3.0",
|
|
58
62
|
"@vitejs/plugin-react": "^6.1.2",
|
|
59
|
-
"pagerts": "^2.0.
|
|
63
|
+
"pagerts": "^2.0.5",
|
|
60
64
|
"prettier": "^3.9.10",
|
|
61
65
|
"zod": "^4.6.7"
|
|
62
66
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading": "eighth post (#lost in the sauce!)",
|
|
3
|
+
"content": [
|
|
4
|
+
"# Two computers and a cable: running coding LLMs off the cloud",
|
|
5
|
+
"hi all, today i will reveal to you the details of my home ai laboratory development setup composed of two gaming computers stacked one on top of another, with ethernet, stupid amount of intel x64 cores, and many other twists. i've been working on building this stack a really long time now, and its starting to approach completion - so I thought it was time to share!",
|
|
6
|
+
"## Why bother",
|
|
7
|
+
"cloud coding assistants are pay per use. you get your monthly allowance, but what if you burn through it mid-project, and then its either wait or pay scalper fees. a local model doesn't meter anything. except your wall. it runs on hardware you manage manually, it won't randomly vanish one day, and on my own network no data ever leaves the house.",
|
|
8
|
+
"i warn you that its much slower and dumber than models they offer on the internet :) yet the process of setting up this configuration, as well as being able to access it completely on demand completely outweighs any negatives",
|
|
9
|
+
"## The layout",
|
|
10
|
+
"```",
|
|
11
|
+
"┌──────────────────────────────┐",
|
|
12
|
+
"│ MINIFRIDGE (dev) │",
|
|
13
|
+
"│ RX 6800 16GB · 64GB RAM │",
|
|
14
|
+
"│ VS Code + Copilot (BYOK) │",
|
|
15
|
+
"└──────────────┬───────────────┘",
|
|
16
|
+
" │ direct Ethernet",
|
|
17
|
+
" │ 10.77.77.0/24",
|
|
18
|
+
"┌──────────────┴───────────────┐",
|
|
19
|
+
"│ WS-RARETOWER (inference) │",
|
|
20
|
+
"│ 24GB GPU · i7-11700K │",
|
|
21
|
+
"│ Ollama - GLM-4.7-Flash │",
|
|
22
|
+
"└──────────────────────────────┘",
|
|
23
|
+
"```",
|
|
24
|
+
"**WS-RARETOWER** is the inference box. it holds the model in video memory and answers requests. the only number that matters here is 24GB of VRAM - that decides which models fit and which ones don't. everything else in the machine can be assumed to be completely undefined.",
|
|
25
|
+
"here be dragons - always account for minimum functional specification.",
|
|
26
|
+
"**MINIFRIDGE** is where i actually sit and work. editor, containers, projects, almost entirely through VS Code. included GPU which optionally hosts a smaller fallback model, avoids hot-swapping models on the main box in the middle of a task.",
|
|
27
|
+
"they are networked through an ethernet switch. any capacity should be fine (they trade HTTP traffic)",
|
|
28
|
+
"## The software",
|
|
29
|
+
"**Ollama** (free) runs the model. you install it, you pull a model, and it exposes a completely static HTTP api.",
|
|
30
|
+
"**GLM-4.7-Flash** is a model I've been testing - 31 billion parameters, open weights, about 3 billion fire per token.",
|
|
31
|
+
"the trick to getting a model to fit on a consumer card and still feel responsive is finding the right size.",
|
|
32
|
+
"**VS Code + GitHub Copilot** on the dev machine act as mainframe: pointed at the ollama endpoint through the bring-your-own-key option they serve: chat, agent mode, inline ghost-text completions.",
|
|
33
|
+
"",
|
|
34
|
+
"> more to follow!"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# eleventh post (#discussion, #java, #gist)
|
|
2
|
+
quick discussion piece: a Java gist that sketches the BLEH/BLE media container format
|
|
3
|
+
features: inlaid 2-bit metadata, rolling XOR sidecar validation, CRC checks, and simple mux/demux helpers.
|
|
4
|
+
read the full code and notes below:
|
|
5
|
+
- [bleh format](https://gist.github.com/akinevz2/a653215c98f846fa52a7f7f13a489f32)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# fourth post (#meta, #blog)
|
|
2
|
+
i've finally cleaned up my [devcontainer](https://github.com/akinevz2/development) and [github](https://github.com/akinevz2)!
|
|
3
|
+
expect following posts to be a lot more structured. i will make an archive section on this page, and expect the posts to be in reverse chronological order soon
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# twelfth post (#mixing, #phase, #technique, #audio, #music)
|
|
2
|
+
i found a mixing technique by accident and now i can't stop using it
|
|
3
|
+
* i usually build my final mixes from 3 "core" channels
|
|
4
|
+
* 1 is not enough
|
|
5
|
+
> one gets fully inverted
|
|
6
|
+
> one gets max-stereo-widened
|
|
7
|
+
> one gets narrowed
|
|
8
|
+
* sometimes the narrowed one is also inverted
|
|
9
|
+
* i never really planned that
|
|
10
|
+
* it just felt correct
|
|
11
|
+
* i clone that narrowed-inverted one again
|
|
12
|
+
* run it through a limiter
|
|
13
|
+
* feed it back in
|
|
14
|
+
* odd number of total inversions, always
|
|
15
|
+
> 3 minimum, sometimes 5
|
|
16
|
+
* even number ruins it
|
|
17
|
+
* this clone-feed is what causes the phase-artifact-cancellation
|
|
18
|
+
* not the widening
|
|
19
|
+
* i was wrong about that part for a while
|
|
20
|
+
|
|
21
|
+
* the weird part: it only fully reveals itself at the very end of a track
|
|
22
|
+
* my fades are never uniform
|
|
23
|
+
> one channel has tape-grain decay
|
|
24
|
+
> one has a slope to zero
|
|
25
|
+
> one just stops dead after the reverb tail
|
|
26
|
+
* while the track is at full volume, the cancellation holds
|
|
27
|
+
* everything sums clean
|
|
28
|
+
* once the three channels start fading at different rates, the limiter on the cloned channel can't keep up
|
|
29
|
+
* its release-time stops matching the actual decay-curve
|
|
30
|
+
* so the cancellation breaks
|
|
31
|
+
> just slightly
|
|
32
|
+
> just at the edges of the stereo field
|
|
33
|
+
* what's left over sounds like a alias
|
|
34
|
+
> a little ghost-image of the track, right as it dies out
|
|
35
|
+
> i didn't design this on purpose
|
|
36
|
+
> i reverse-engineered it after noticing it on my last upload
|
|
37
|
+
> now that i understand it, i think i can tune it
|
|
38
|
+
> push the alias earlier or later in the fade
|
|
39
|
+
> make it louder or more narrow
|
|
40
|
+
> just by adjusting the limiter's release-time against my fade-curves
|
|
41
|
+
* a sort-of fade-localized-deliberate-aliasing-tool, i guess
|
|
42
|
+
* **if you want to try this**: 3 channels, odd inversions:
|
|
43
|
+
> clone+limit the narrowed one
|
|
44
|
+
> feed it back into the sum
|
|
45
|
+
> give your channels mismatched fade shapes
|
|
46
|
+
> listen to what survives at the very end
|
|
47
|
+
|
|
48
|
+
> co-written with style-transfer by Claude Sonnet 4.6
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# welcome back! (#ramble, #meta)
|
|
2
|
+
I've decided that I am going to be ranking posts on my blog randomly
|
|
3
|
+
and by randomly I mean, somewhat obscurely and privately. Posts that
|
|
4
|
+
score highly on the interesting-recent scale that I will devise later
|
|
5
|
+
will appear closer to the top of the page.
|
|
6
|
+
a special 'archive' section will progressively consume every stale post i don't like
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# welcome to my blog! (#meta, #blog, welcome to my website!)
|
|
2
|
+
i wish i had any way to collect feedback on this website
|
|
3
|
+
i really enjoy clicking the buttons that i put in these pages
|
|
4
|
+
we have a new page added to the menu bar, check out [music](/music)
|
|
5
|
+
also, here's [pagerts](https://www.npmjs.com/package/pagerts)
|
|
6
|
+
oh also, yes, I know the resume is currently down
|
|
7
|
+
its because i've been targetted offline
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading": "seventh post (#Lie Theory - NA2000)",
|
|
3
|
+
"content": [
|
|
4
|
+
{
|
|
5
|
+
"heading": "Related papers from the same Cambridge NA group circa 1999–2000 that came up:",
|
|
6
|
+
"link": "/blog/references/NA2000_03.pdf"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"embed": "/blog/7.md",
|
|
10
|
+
"heading": "повествование - a story"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"style": "NA.2000.03.pdf",
|
|
14
|
+
"content": "Iserles, A., Munthe-Kaas, H.Z., Nørsett, S.P., and Zanna, A.: 'Lie-group methods', DAMTP Technical Report NA2000/03, University of Cambridge, 2000. Published in Acta Numerica, Vol. 9, pp. 215–365, Cambridge University Press."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"style": "Iserles, A. — dossier",
|
|
18
|
+
"heading": "Arieh Iserles (b. 2 September 1947). Emeritus Professor in Numerical Analysis of Differential Equations, DAMTP, University of Cambridge. Studied at Hebrew University of Jerusalem and Ben-Gurion University of the Negev; PhD on numerical methods for stiff ODEs. Joined Cambridge 1978 as Junior Research Fellow, King's College; University Lecturer 1987–95; Reader 1995–99; Professor 1999–present.",
|
|
19
|
+
"content": "Primary architect of geometric/Lie-group integration methods at Cambridge. Managing editor of Acta Numerica (the journal in which NA2000/03 was formally published). Chair of the Society for Foundations of Computational Mathematics 1997–2000, i.e. the exact period of this preprint. Engaged directly with the Russian mathematical community — gave a talk at JINR Dubna (1999) on Lie groups and computation of invariants, published in Self-Similar Systems. Awards: Onsager Medal (Norwegian Univ. of Science and Technology, 1999), David Crighton Medal (IMA/LMS, 2012), SIAM Prize for Distinguished Service (2014). The Russian translation of NA2000/03 circulating as a local file in the early 2000s is consistent with his active outreach to the Soviet/Russian mathematical tradition during this period."
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading": "Lie Symmetries and the Heat-Mass Transport Homeomorphism",
|
|
3
|
+
"content": [
|
|
4
|
+
"Bridging Lie theory with statistical mechanics and thermodynamics allows us to model continuous symmetries in advanced transport phenomena.",
|
|
5
|
+
"This post breaks down the theoretical framework connecting topological homeomorphisms, particle kinetics, and geometric conservation laws.",
|
|
6
|
+
{
|
|
7
|
+
"heading": "1. Lie Groups and Continuous Symmetries",
|
|
8
|
+
"content": [
|
|
9
|
+
"Lie theory fundamentally explores continuous symmetries within physical systems.",
|
|
10
|
+
"In fluid dynamics and thermodynamics, researchers utilize **Lie point symmetries** to simplify systems of partial differential equations (PDEs).",
|
|
11
|
+
"If a particle or fluid medium treats heat distribution (thermal diffusion) and mass distribution (molecular diffusion) identically under a geometric transformation, a Lie group can map the solution of the heat equation directly onto the mass equation."
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"heading": "2. The Heat-Mass Transport Homeomorphism",
|
|
16
|
+
"content": [
|
|
17
|
+
"In classical transport phenomena, heat and mass transfer are governed by strikingly parallel mathematical laws:",
|
|
18
|
+
"* **Fourier's Law** for heat: `J_q = -k ∇T`",
|
|
19
|
+
"* **Fick's Law** for mass: `J_m = -D ∇c`",
|
|
20
|
+
"When a strict topological homeomorphism exists between them, the underlying state space allows you to deform the temperature field continuously into the concentration field without tearing or breaking the mathematical structure.",
|
|
21
|
+
"This is highly relevant in **coupled heat and mass transfer** (such as the Soret and Dufour effects), where temperature gradients drive mass flux, and concentration gradients simultaneously drive heat flux."
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"heading": "3. Connecting Back to Kinetic Energy",
|
|
26
|
+
"content": [
|
|
27
|
+
"Framing this through Lie theory anchors the system to fundamental geometric conservation laws.",
|
|
28
|
+
"According to **Noether's Theorem**, every differentiable symmetry of a physical system corresponds to a strict conservation law:",
|
|
29
|
+
"* **Time translation symmetry** yields the conservation of energy (which microscopic kinetic theory maps directly to temperature).",
|
|
30
|
+
"* **Spatial translation symmetry** yields the conservation of momentum (mass in motion).",
|
|
31
|
+
"Reconstructing the kinetic energy formula `1/2 m v²` through these principles highlights the symmetric foundation of how mass and velocity translate into thermal energy."
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"> akinevz & an AI Assistant"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# herbstutil and the rabbit hole
|
|
2
|
+
|
|
3
|
+
so it appears I am writing an entire operating system now.
|
|
4
|
+
|
|
5
|
+
what began as a humble spider-handed configuration file for herbstluftwm
|
|
6
|
+
has recently began acquiring system-level compiled binaries in the form
|
|
7
|
+
of `bun`/`bunli` subprojects, theme files, build scripts, deploy targets...
|
|
8
|
+
|
|
9
|
+
keep an eye out on [herbstutil](https://github.com/akinevz2/herbstutil)
|
|
10
|
+
and [polyframes](https://github.com/akinevz2/polyframes) as they grow
|
|
11
|
+
into my current operating system and fully integrated IDE.
|