commit 6e2e1c6

chld  ·  2026-04-24 23:49:01 +0000 UTC
parent 1e8c5dc
a, transition diary to html
5 files changed,  +16, -40
M srv.go
R chld.png => a/chld.png
+0, -0
R diary.html => a/diary.html
+11, -34
 1@@ -1,47 +1,24 @@
 2-<script type="module" src="https://cdn.skypack.dev/@vanillawc/wc-markdown"></script>
 3-<wc-markdown>
 4-
 5-### 2026 17 apr
 6+<h3>2026 17 apr</h3>
 7 i found Cxx really easy to get on board. zig really exposed me to the nature of classes, and C with its structs.   
 8 i think zig helped me understand Cxx the most? like in zig structs, users are able to define functions in classes   
 9-and they have `public:` and `private` *<- not explicit in zig*, which relates to zig's `pub ...`   
10-its also good that i can just paste C code into Cxx as-is. i can include `<stdio.h>`, `int main()`, `printf(...)` - 
11+and they have <i>public</i> and <i>private</i> <sub>not explicit in zig</sub>, which relates to zig's <i>pub ...</i>
12+<br>
13+its also good that i can just paste C code into Cxx as-is. i can include <i><stdio.h>, int main(), printf(...) </i>- 
14 hell, even pipe a C hello world into the Cxx compiler   
15 and it still compiles. i might still think like a C programmer and not touch the abstractions
16 but hey, who knows?   
17 what we've learned is that Cxx is the Zig i needed, and its really fuckin cool   
18 the *'rive*'s ever-so irritating hivemind cant stop me. but, they probably dont give a shit about me anyway xD
19-
20-```cxx
21-#include<stdio.h>
22-
23-class Math{
24-    public:
25-    int Add(int a, int b){return a+b;}
26-    int Mul(int a, int b){return a*b;}
27-    int Sub(int a, int b){return a-b;}
28-    float Div(int a, int b){return a/b;}
29-};
30-
31-int main()
32-{
33-    Math hi;
34-    printf("%d %d", hi.Add(1, 3), hi.Mul(2, 3));
35-}
36-
37-```
38-
39----
40-### 2026 23 apr
41-i just got the [dell latitude 3190](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) and i have a list of pros and cons.   
42-here are its pros:   
43-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 _m1_ from _m3_. one can click on that line and also summon a _m2_! this is a upgrade from those bleak ugly blank touchpads with edge click for _m3_-    
44-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   
45+<hr>
46+<h3>2026 23 apr</h3>
47+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> 
48+here are its pros:<br>
49+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 _m1_ from _m3_. one can click on that line and also summon a _m2_! this is a upgrade from those bleak ugly blank touchpads with edge click for _m3_-<br> 
50+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>   
51 its hardware support also rules! gemini lake, mostly supported by most operating systems. iwm 8265, supported by all but illumos because it sucks.
52    
53-![bios](https://i.dell.com/sites/csimages/App-Merchandizing_esupport_flatcontent_Images/all/bios-system-information-optiplex-7050.png)
54+<img src=https://i.dell.com/sites/csimages/App-Merchandizing_esupport_flatcontent_Images/all/bios-system-information-optiplex-7050.png alt='dell bios'>
55 
56 i think the only con is the emmc storage. 9front and netbsd didnt support it, sadly...
57 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?
58 to be continued.
59-</wc-markdown>
R index.html => a/index.html
+0, -0
R style.css => a/style.css
+0, -0
M srv.go
+5, -6
 1@@ -12,24 +12,23 @@ func handler(w http.ResponseWriter, r *http.Request) {
 2 	var fortune = [...]string{"so good", "its chld", "who you know and hate", "fuck", "cholodu", "codeberg.org"}
 3 	rand.Seed(time.Now().UnixNano())
 4 
 5-	f, _ := os.ReadFile("./style.css")
 6+	f, _ := os.ReadFile("./a/style.css")
 7 	fmt.Fprintf(w, "<style>\n"+string(f)+"</style>\n")
 8 
 9 	fmt.Fprintf(w, "<html><body><center>\n")
10 	fmt.Fprintf(w, "<p>%s</p>\n", fortune[rand.Intn(len(fortune))])
11-	fmt.Fprintf(w, "<img src=chld.png alt=chld><br><br>\n")
12+	fmt.Fprintf(w, "<img src='/a/chld.png' alt='chld'><br><br>\n")
13 	fmt.Fprintf(w, "<a href=https://codeberg.org>berg</a> | <a href=https://sr.ht/~chld/>srht</a>")
14 
15-	c, _ := os.ReadFile("./index.html"); fmt.Fprintf(w, "\n\n<br>\n%s", c)
16-	d, _ := os.ReadFile("./diary.html"); fmt.Fprintf(w, "\n\n<br><p markdown=span>\n%s</p>\n", d)
17+	c, _ := os.ReadFile("./a/index.html"); fmt.Fprintf(w, "\n\n<br>\n%s", c)
18+	d, _ := os.ReadFile("./a/diary.html"); fmt.Fprintf(w, "\n\n<br><p markdown=span>\n%s</p>\n", d)
19 	fmt.Fprintf(w, "</html></body></center>")
20 }
21 
22 func main() {
23 	port:="8080"
24  
25-
26-	http.Handle("./", http.StripPrefix("./", http.FileServer(http.Dir("."))))
27+	http.Handle("/a/", http.StripPrefix("/a/", http.FileServer(http.Dir("./a"))))
28 	http.HandleFunc("/", handler)
29 
30 	fmt.Println("srv started at localhost:"+port)