commit 7f0bf04

chld  ·  2026-06-01 16:54:39 +0000 UTC
parent e2144a9
redesign
13 files changed,  +164, -127
A '
D srv.go
A '
+3, -0
1@@ -0,0 +1,3 @@
2+<center>
3+	<h1>CHLD</h1>
4+</center>
+0, -7
1@@ -1,7 +0,0 @@
2-# web
3-this is chlds website, which is yet to be hosted anywhere.   
4-its not much, most prominent thing in here is the diary   
5-## itself
6-web is served by its go backend: `srv.go`, 
7-and extra appended files live in `a/`   
8-enjoy   
+0, -0
+0, -22
 1@@ -1,22 +0,0 @@
 2-<h3>2026 17 apr</h3>
 3-i found Cxx really easy to get on board. zig really exposed me to the nature of classes, and C with its structs.   
 4-i think zig helped me understand Cxx the most? like in zig structs, users are able to define functions in classes   
 5-and they have <i>public</i> and <i>private</i> <sub>not explicit in zig</sub>, which relates to zig's <i>pub ...</i>
 6-<br>
 7-its also good that i can just paste C code into Cxx as-is. i can include <i><stdio.h>, int main(), printf(...) </i>- 
 8-hell, even pipe a C hello world into the Cxx compiler   
 9-and it still compiles. i might still think like a C programmer and not touch the abstractions
10-but hey, who knows?   
11-what we've learned is that Cxx is the Zig i needed, and its really fuckin cool   
12-the *'rive*'s ever-so irritating hivemind cant stop me. but, they probably dont give a shit about me anyway xD
13-<hr>
14-<h3>2026 23 apr</h3>
15-i just got the <a href=https://www.dell.com/support/manuals/en-us/latitude-11-3190-laptop/latitude_3190_owners_manual/technical-specifications?guid=guid-8be0e657-f5fa-4ebb-bf14-3ee91e1a5775&lang=en-us>dell latitude 3190</a> and i have a list of pros and cons.<br> 
16-here are its pros:<br>
17-its touchpad is really great.. at first, i thought it was a blank touchpad - but then i looked more into it. the line at the bottom of the tab seperates <b>m1</b> from <b>m3</b>. one can click on that line and also summon a <b>m2</b>! this is a upgrade from those bleak ugly blank touchpads with edge click for <b>m3</b>-<br> 
18-its bios is much more extensive and customizable compared to the hp bios with like 1 feature. in this dell bios i can turn off hardware devices - which serves as super useful! if i dont need the camera, i can just go to bios and disable it. the interface is also amazing.. wanna find a good operating system with that type of ui<br>   
19-its hardware support also rules! gemini lake, mostly supported by most operating systems. iwm 8265, supported by all but illumos because it sucks.
20-   
21-i think the only con is the emmc storage. 9front and netbsd didnt support it, sadly...
22-but, i think there is hope. in the awesome bios, there is a option to enable/disable some ssd storage, meaning i can add storage?
23-to be continued.
+0, -30
 1@@ -1,30 +0,0 @@
 2-so good
 3-its chld
 4-who you know and hate
 5-fuck, man
 6-cholodu
 7-codeberg
 8-sourcehut is ran by a pedo
 9-im unsure 
10-imo 
11-im green
12-how do you know my ip
13-im not european, stop saying so
14-neuswc
15-<a href=wayland.fyi>wayland</a>
16-<a href=9larp.net>is down</a>
17-nusrat is unwise
18-is this fortune even random
19-you know i can just embed anything here, my go server is insecure like that
20-30 sloc go backend?
21-shoot me, <a href=shrub.industries>shrub</a>
22-<script>alert("caught you using javascript")</script>
23-runs in dillo? i think
24-css
25-fuck, woman
26-9front is cool
27-i have emmc storage
28-is this not running off of localhost
29-pita, are you hosting this?
30-join #derive on <a href=ergo.chat>irc</a>
31-exploit my website then
+0, -6
1@@ -1,6 +0,0 @@
2-<h1>intelligently stupid</h1><sub>i hate you</sub>
3-<p>this is chlds website<br>
4-proudly served by some busted <a href=https://codeberg.org/chld/web>go backend</a><br>
5-im some guy who likes to program, draw and write</p>
6-
7-
+0, -22
 1@@ -1,22 +0,0 @@
 2-body {
 3-    background-color: #000000;
 4-    color: #aaaaaa;          
 5-    font-family: monospace; 
 6-}
 7-
 8-a {
 9-    color: #ffffff;      
10-    text-decoration: none; 
11-}
12-
13-a:hover {
14-    color: #00ffff; 
15-}
16-
17-a:visited {
18-    color: #666666;
19-}
20-
21-a:active {
22-    color: #ffffff;
23-}
+18, -0
 1@@ -0,0 +1,18 @@
 2+#!/bin/sh -eu
 3+
 4+m=index.html
 5+
 6+echo > $m # restart
 7+
 8+printf "<style>\n" >> $m
 9+cat style.css >> $m
10+printf "</style>\n" >> $m
11+
12+printf "<body>\n<center>\n" >> $m
13+
14+cat main.html >> $m
15+
16+printf "<script>\n" >> $m
17+cat fortune.js >> $m
18+printf "</script>\n" >> $m
19+printf "</center>\n</body>\n" >> $m
+36, -0
 1@@ -0,0 +1,36 @@
 2+        const fortunes = [
 3+            "so good",
 4+            "its chld",
 5+            "who you know and hate",
 6+            "fuck, man",
 7+            "cholodu",
 8+            "codeberg",
 9+            "sourcehut is ran by a pedo",
10+            "im unsure ",
11+            "imo ",
12+            "im green",
13+            "how do you know my ip",
14+            "im not european, stop saying so",
15+            "neuswc",
16+            "<a href=wayland.fyi>wayland</a>",
17+            "<a href=9larp.net>is down</a>",
18+            "nusrat is unwise",
19+            "is this fortune even random",
20+            "you know i can just embed anything here, my static site is insecure like that",
21+            "30 sloc go backend? completely static now.",
22+            "shoot me, <a href=shrub.industries>shrub</a>",
23+            "<script>alert(\"caught you using javascript\")<\/script>",
24+            "runs in dillo? i think",
25+            "css",
26+            "fuck, woman",
27+            "9front is cool",
28+            "i may have emmc storage",
29+	    "thank you <a href=https://4plt.ch>for hosting this!</a>",
30+            "is this not running off of localhost",
31+            "pita, are you hosting this?",
32+            "join #derive on <a href=ergo.chat>irc</a>",
33+            "exploit my website then"
34+        ];
35+
36+        const randomIndex = Math.floor(Math.random() * fortunes.length);
37+        document.getElementById("fortune").innerHTML = fortunes[randomIndex];
+76, -0
 1@@ -0,0 +1,76 @@
 2+
 3+<style>
 4+body {
 5+    background-color: #f0ffae;
 6+    color: 	      #0f0f0f;          
 7+
 8+    padding-top:      80px;
 9+    padding-bottom:   80px;
10+    padding-left:     80px;
11+    padding-right:    80px;
12+}
13+
14+a {
15+    color:           #005500;      
16+    text-decoration: none; 
17+}
18+
19+a:hover {
20+    color: #00ffff; 
21+}
22+
23+a:visited {
24+    color: #666666;
25+}
26+
27+a:active {
28+    color: #ffffff;
29+}
30+</style>
31+<body>
32+<center>
33+<p id="fortune"></p>
34+<br>
35+<h1>CHLD</h1>
36+<p>[ <a href=https://codeberg.org/chld/web>src</a> | <a href=https://4plt.ch>ROOT</a> ]</p>
37+/* <a href=>me</a> | <a href=>webring</a> | <a href=>blog</a> */
38+<script>
39+        const fortunes = [
40+            "so good",
41+            "its chld",
42+            "who you know and hate",
43+            "fuck, man",
44+            "cholodu",
45+            "codeberg",
46+            "sourcehut is ran by a pedo",
47+            "im unsure ",
48+            "imo ",
49+            "im green",
50+            "how do you know my ip",
51+            "im not european, stop saying so",
52+            "neuswc",
53+            "<a href=wayland.fyi>wayland</a>",
54+            "<a href=9larp.net>is down</a>",
55+            "nusrat is unwise",
56+            "is this fortune even random",
57+            "you know i can just embed anything here, my static site is insecure like that",
58+            "30 sloc go backend? completely static now.",
59+            "shoot me, <a href=shrub.industries>shrub</a>",
60+            "<script>alert(\"caught you using javascript\")<\/script>",
61+            "runs in dillo? i think",
62+            "css",
63+            "fuck, woman",
64+            "9front is cool",
65+            "i may have emmc storage",
66+	    "thank you <a href=https://4plt.ch>for hosting this!</a>",
67+            "is this not running off of localhost",
68+            "pita, are you hosting this?",
69+            "join #derive on <a href=ergo.chat>irc</a>",
70+            "exploit my website then"
71+        ];
72+
73+        const randomIndex = Math.floor(Math.random() * fortunes.length);
74+        document.getElementById("fortune").innerHTML = fortunes[randomIndex];
75+</script>
76+</center>
77+</body>
+5, -0
1@@ -0,0 +1,5 @@
2+<p id="fortune"></p>
3+<br>
4+<h1>CHLD</h1>
5+<p>[ <a href=https://codeberg.org/chld/web>src</a> | <a href=https://4plt.ch>ROOT</a> ]</p>
6+/* <a href=>me</a> | <a href=>webring</a> | <a href=>blog</a> */
D srv.go
+0, -40
 1@@ -1,40 +0,0 @@
 2-package main
 3-
 4-import (
 5-	"fmt"
 6-	"net/http"
 7-	"math/rand"
 8-	"time"
 9-	"os"
10-	"strings"
11-)
12-
13-func handler(w http.ResponseWriter, r *http.Request) {
14-	fr, _ := os.ReadFile("./a/fortune")
15-	fortune := strings.Split(string(fr), "\n")
16-	rand.Seed(time.Now().UnixNano())
17-
18-	f, _ := os.ReadFile("./a/style.css")
19-	fmt.Fprintf(w, "<style>\n"+string(f)+"</style>\n")
20-
21-	fmt.Fprintf(w, "<html><body><center>\n")
22-	fmt.Fprintf(w, "<p>%s</p>\n", fortune[rand.Intn(len(fortune))])
23-	fmt.Fprintf(w, "<img src='/a/chld.png' alt='chld'><br><br>\n")
24-	fmt.Fprintf(w, "<a href=https://codeberg.org/chld>berg</a> | <a href=https://sr.ht/~chld/>srht</a> | <a href=https://codeberg.org/chld/web>site src</a>")
25-
26-	c, _ := os.ReadFile("./a/index.html"); fmt.Fprintf(w, "\n\n<br>\n%s", c)
27-	d, _ := os.ReadFile("./a/diary.html"); fmt.Fprintf(w, "\n\n<br><p markdown=span>\n%s</p>\n", d)
28-	fmt.Fprintf(w, "</html></body></center>")
29-}
30-
31-func main() {
32-	port:="8080"
33- 
34-	http.Handle("/a/", http.StripPrefix("/a/", http.FileServer(http.Dir("./a"))))
35-	http.HandleFunc("/", handler)
36-
37-	fmt.Println("srv started at localhost:"+port)
38-	if err := http.ListenAndServe(":"+port, nil); err != nil {
39-		fmt.Println("error with srv:", err)
40-	}
41-}
+26, -0
 1@@ -0,0 +1,26 @@
 2+body {
 3+    background-color: #f0ffae;
 4+    color: 	      #0f0f0f;          
 5+
 6+    padding-top:      80px;
 7+    padding-bottom:   80px;
 8+    padding-left:     80px;
 9+    padding-right:    80px;
10+}
11+
12+a {
13+    color:           #005500;      
14+    text-decoration: none; 
15+}
16+
17+a:hover {
18+    color: #00ffff; 
19+}
20+
21+a:visited {
22+    color: #666666;
23+}
24+
25+a:active {
26+    color: #ffffff;
27+}