| Home | Blog | About | FUN | Modern |

AI summary (Loaded)

This page contains the blog of an individual with a unique writing style and humor. The blog features posts on various topics, including technology, personal opinions, and pop culture. One post discusses removing CSS from the website, while another responds to a video about piracy and normalcy. The tone is casual and conversational, with a touch of sarcasm and profanity.

Blog

Welcome to my blog, best described as "A random 15-year-old's firehose of unfiltered thoughts, tech wizardry, and the occasional ecchi anime review", dubbed by most as simply CHAOS. (Now with comments, click on the title of a post).

A brand sep Warning: This contains trace amounts of spaghetti code A brand sep

New domain

As a random almost spur of the moment thing I have bought the url tgua.dev; Due to this purchase the subsequent move to the url is now active, all funcitons and hostings that used to be on tgu.pages.dev are beign transitioned to the new url, the old url will remain active, however it is recommended to start using the new url as the orl one may be fazed out in some point in the future.

Date of writing: 2025-05-16

A brand sep

Blog system update

As a great programmer, I totally wasn't manually including my HTML blog posts in the main blog.php file and moving odl posts to oldblog manually... Well at least not anymore, with this latest update all blog posts are stored in /blog.json and parsed to show the newest 3 here, all posts on /archive. and display a specific post by its ID with /cite?id={id}. Not much else to say here...

Date of writing: 2025-05-16

A brand sep

Chaos at the Zoo - a badly written story

While I usually don’t post this kind of thing to my blog, this story I wrote for ELA is hilarious!

Chaos at the zoo, by Joshua Thayer
One day my friend and I went to the zoo. When we got there the parking lot was full of escaped lemurs with black cloaks fighting escaped chimpanzees with magical fire that shoots out of their tails. The lemurs were making advances towards the chimpanzees while we stared in shock--Then immediately turned around, put the pedal to the metal, and got the heck out of there. By the time we got back to my house, men in black suits, white shirts, and black ties were waiting outside. We got out of the car and walked over “May I ask why you’re here?” I ask, still half shocked from the zoo… incident, the agent mutters something under his breath like “Where is my Neuralyzer?”. He rummaged through his pockets for a moment before pulling out a strange looking device, he held it up then told us to look into it , the device flashed brightly then… Wait, we’re late! We need to get to the zoo!

Did you get the MIB reference?

Date of writing: 2025-05-15

A brand sep

Special edition post

There was a downtime window from approximately 21:50 EST to 22:15 EST 2025-5-14 as my website transitioned to use a git build system with Gitlab and GitKraken. Sorry for any inconvenience caused by this switchover, however this change will allow for much easier and quicker updates on my end.

Date of writing: 2025-05-14

A brand sep

sw.js

Today we're going to show you how to create a function full-site cache with a service worker(sw.js(The sw.js for this blog)); To accomplish this we’ll use a template I have created an show you how to set it up for your website, to show this I will be creating an implementation for tomxcd’s website, his website uses PHP and runs nginx/1.22.1. His website doesn’t have many pages yet, so this should be a relatively simple setup if we follow my template.
While you should overlook the entire code of everything you put on your website–and that stays true for this, the main part you need to worry about is:

 const cacheName = 'my-page-cache-v001';//remember to increase every time you change a page
const staticAssets = [
'/',
'/url1',
'url2',
'url3'
];

First of all, as the comment says, every time you make changes to your website(Or more specifically any cached page) you need to increment the page cache version at the top.
Secondly the array directly below is what you need to change to configure the template to fit your website; In this example the root url and 3 example urls are included, to begin to figure out what pages you want to cache. In this case with derg.rest there is the following urls:
https://derg.rest/index.php or just root which is already included https://derg.rest/archive.php https://derg.rest/coming_soon.php
See? not many Urls, with that number of urls we can easily just change the config section of the service worker to:
 const cacheName = 'my-page-cache-v001';//remember to increase every time you change a page
const staticAssets = [
'/',
'/index.php',
'/archive.php',
'/coming_soon.php'
];
See? Easy, now just save that customized service worker file as sw.js in your website's home directory, and include the following code on your website:
And voila! Cached website!

Date of writing: 2025-05-14

A brand sep
««« First « Previous |Next » Last »»»