Skip to main content

Posts

Showing posts from October, 2025

JavaScript: The replaceChildren()

Good day. 🎩 In JavaScript, when we want to empty or replace the content of a container element, we usually do this: // 1. Empty the container. container.innerHTML = ""; // 2. Replace the content. container.innerHTML = "the replacement"; Now, we have replaceChildren() — documentation on MDN . It was added mid-2020, part of the DOM Living Standard, first implemented in browsers between mid and late 2020 (around the ECMAScript 2020 timeframe, though technically not an ES feature). ES = ECMAScript, not Espagnol. Usage // 1. Empty the container. container.replaceChildren(); // 2. Replace with a single node. container.replaceChildren(newNode); // 3. Replace with multiple nodes. container.replaceChildren(newNode, otherNewNode); // 4. You can even pass strings — they'll be converted to text nodes. container.replaceChildren("Humphry Davy approves this example!"); newNode and otherNewNode are variables. For instance: const newNode = docum...

Orcs

This specimen ⬇️ ⬆️ That orc. Please Enable JavaScript. The modern concept of the orc in entertainment originates largely from J.R.R. Tolkien , who popularised them in The Lord of the Rings as brutish, corrupted creatures bred for war by dark powers. Though inspired by earlier mythological beings such as goblins, ogres, and various demonic entities from European folklore, Tolkien gave orcs a distinct identity — organised, militaristic, and inherently malicious. His influence shaped fantasy literature, tabletop games like Dungeons & Dragons , and video games, where orcs are now a staple enemy race, often portrayed with green skin, muscular builds, and a tribal warrior culture. Over time, variations have emerged, but most still trace back to Tolkien's original wartime allegory. Brutish. 🤔 If they were British, composed creatures bred by tea and honour, I postulate they would go like: Biscuits? What a splendid day, this is. And they don...

Chess: Englund Gambit: Hartlaub-Charlick Line

In this 3 minutes blitz game, I played as the defence side. This isn't a high Elo game, obviously. 1600–1700ish max, but in sheer entertainment? 3000+ 🤣 We have inaccuracies, mistakes, and blunders crayon-coloured all over the board. You can use your left and right arrows on your keyboard or use the mouse scroll to see the moves back and forth on the chessboard. But first, click the board. Proper Street Hawk Chess. Englund Gambit The motto is What if I give you free material from the very beginning? Englund is taken from Fritz Carl Anton Englund (1871–1933), a Swedish chess player and writer. Do you know "Dancing Queen" by ABBA? Indeed. He wasn't a world champion, but more of an enthusiast with a love for offbeat openings and aggressive lines. "Dancing Queen" is a song, not a male. But I'm amused by my own typing. Imagine if it were taken from "England". Well, it would be like someone took London System an...

YouTube Is Back

Did you realise YouTube was... having issues? They perhaps then: git revert redesign-nightmare You see, James the QA was off jiving to Alizée's songs. Lead : JAMES! Did you test the new layout across all CDN clusters!? James: : (Taking off headphones.) Huh? What layout? Wait… we're deploying today? Blimey… C'est pas ma faute… Lead : You... 🤦 Fine... Revert back, lads! YouTube is back. Though the matter is resolved, it has been resolved, and thus we resolve that it is resolved. ⬅️ That is called a formal shrug, Shakespearean-level dithering. We do...

Microsoft Clipchamp: The Incredible Shrinking App

This is hilarious. I'm on Windows 11, I use Microsoft Clipchamp often to edit videos. There's this quirk since last week or so. This is how big the application upon starting a new session: It gets smaller each time. 🤣 It's fine, since the maximise button can still be clicked until it can't. 😂 This is utterly comical. Somewhere in the development room: Bob : Done, mate. All unit tests passed. Merged to staging. Gary: : (Sipping coconut tree.) Well? Ship it, then. Bob : Where's James? Don't we need his QA brilliance? Gary: : (Sipping coconut...

Shaolin vs. Ninja

I was on YouTube. This film was featured on my homepage. The title caught me off guard. The Transposition First of all, it's: Shaolin vs Ninja But then... On Startpage... Oi, let's swap things around, nobody would notice. Propaply because no proper "American Shaolin", only "American Ninja" — thus the reflex-swap. 🤷‍♂️ American Shaolin. 🤔 It sounds like "Zen with shotguns" or "igloo skyscraper". Or perhaps IMDb did: arrayOfWordsInTitle.sort() You see, "N" is before "S" in alphabet . Let's try that: title = "Shaolin vs. Ninja"; title.split(" ").sort().join(" "); // Ninja Shaolin vs. // ⬆️ See? Almost. The machine hath spoken. 👑 The Title Right. Let's continue. The title is bloody abstract. Shaolin? Which part? The entire institution? The whole temple complex? Every monk ...
Monkey Raptor uses cookies or biscuits 🍪 for analytics, functionality, and advertisements. More info in Privacy Policy