Skip to main content

Posts

Happy 2026

Recent posts

Blogger Template Error Message: "XML document structures must start and end within the same entity."

๐Ÿ“ข Error Message The error message on Blogger ( HTML editor) looks like this: ๐Ÿ˜ต‍๐Ÿ’ซ Why? Because I accidentally deleted the closing CDATA section in a script . It was supposed to be like so: <script> // <![CDATA[ /* JavaScript lines here */ // ]]> </script> And I — with my sleight of mouse-hand, selected one line too many — deleted the closing tag: <script> // <![CDATA[ /* JavaScript lines here */ </script> Then saved the template. ๐Ÿ˜‚ XML was like, (XML.) Oi! Aye? What? (XML.) Must start and end within the same entity! ๐Ÿ‘€ Which one? (XML.) Read. ๐Ÿง My script is fine, ya muppet! Save it. S. A. V. E. (XML.) Read. ๐Ÿคฆ‍♂️ I did! Why is your message vague? Are you a muppetlord ? (XML.) ๐Ÿคท R. E. A... Fine. ๐Ÿ’ก Solution I was baffled by that because my script had everything escaped, the forbidden entities. I bloody checked the JavaScript code and nothing was suspicious. And then....

JavaScript: Browser-based Audio Analysis Using AnalyserNode

Greetings. ๐ŸŽฉ I will demonstrate the implementation of AnalyserNode to reveal (compute) the peaks and such from an audio source. This will only output the numbers rather than an elaborate animation. In this, we can choose whether to use a sample audio (hosted on a cloud storage) or a local audio file. Highlights of the flow: // 1. Create audio element audioElement = document.createElement("audio") // Make sure we convert the source to a proper Blob first, // not URL/path string like https://www.host... or local E:\path\to\file\... // Details in the code below the demonstration. audioElement.src = [Blob] // Then append the audio element to DOM // *** // 2. Setup AnalyserNode (use global variables to keep these) // Create audio context audioContext = new AudioContext() // Define the default FFT size fftDefault = 2048 // Create analyser analyser = new AnalyserNode( audioContext, { fftSize: fftDefault } ) // Create source node from the "audioElement" ab...

The Tale of the Unnamed Peasant

๐Ÿ”‰ The audiobook is beneath the tale . Once upon a time, in a land that no one could quite place on a map, there lived a humble peasant. Not tall, not short. Not young, not old. Barely remembered by his own village, and certainly never known beyond the boundaries of the next field over. His name? Irrelevant. Who knows? He was a human, with hands calloused by toil and a face weathered by the wind. Maybe his full name was Bob Irrelevant. Mister Irrelevant, here's your... things. The village was small, and every day was the same. The sun rose, the plough was hitched to the horse, and the peasants worked until they could no longer feel their backs. There were no high quests — just the endless, repetitive task of surviving, and that was the way it had always been. One day, something ordinary happened. One peasant turned the soil, and for the ten thousand and fourth time, the earth was turned. But the peasant did not respond. Responding to what? It wasn'...

Chess: Vienna Game: Anderssen Defence (starts with a Headbutt)

Hi. ๐Ÿ‘‹ I played defence. This game consists of: Premature bishop sacrifice. Because defending with a proper bishop would be... defending. King wandering the savannah. Because it looked wonderful, that savannah. Wild flank pawn raid. Because why not? And final checkmate with a smug knight. Oh, that smug knight. 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. Bloke probably was like, I just downloaded the app. ๐Ÿ˜ถ Terribly sorry about that.

HTML: Marquee

Good afternoon. ๐Ÿ‘€ This element: <marquee> Hey, it's deprecated. More info on MDN about Marquee . Aw. Madam Marquee. Hey, when I think about it, every other time than the noon is after noon, afternoon. ๐Ÿค” ๐Ÿค” No, it isn't. The fellow who invented the words "night" and "before" should shriek in C#. I mean the note C#, not the programming language. void ShriekSonically() { for (int i = 0; i Let's pretend we didn't hear the shrieks. Afternoon, applied to every other time than the noon. Because it looped back, right? For example, morning. It's the post-noon of the previous day. Night, obviously after noon. ๐Ÿค” But there's no "Good noon." ๐Ÿค” Everybody seems to ignore 12:00:00 — Oi, you're a reference now. Since you're about 1 minute long, then we won't use you in a greeting. Like that boxing match between a kangaroo and a kazoo? The ring an...

JavaScript: Capture URL Pattern (Aserejรฉ Vibe)

Ello there. For instance, we have this text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tempus orci sed placerat faucibus. Vestibulum tempor sapien sit amet consequat ornare. Then https://brutus-eats-sausage.io. Morbi convallis nunc et lorem sodales posuere — bit of a pickle that, https://lorem-legion.gold?page=prophecy&id=42#scrolls. Ut ut nisl leo. Duis quis ipsum nisi, cheers to https://senator-toga.club?offer=grapes&discount=10#villa. Donec sit amet ipsum pulvinar orci maximus cursus eu a mauris. Vivamus erat turpis, https://centurion-tips.biz#gladius, gravida at metus non, rutrum dictum orci. Curabitur sit amet blandit erat, https://colosseum-snack.bar?item=olives&combo=wine#snackbox, vestibulum tempus purus. Aenean volutpat non elit a congue — sponsored by https://pompey-pies.shop?flavour=beef&size=xl#oven. And we want to capture all URL pattern from the text. URL = Uniform Resource Locator ( RFC 1738 , December 1994) URL is ...

Batding

Peace upon ye and all your kin. ☘️ I was thinking about dragon. Because there's dinosaur. ๐Ÿค” We will see how batding is born in this. It's the logically civilised version of dingbat. All of its meaning. The Word "Dinosaur" It was coined by, you bet that right, Sir Richard Owen — in 1842. He was a British biologist and comparative anatomist — not, for instance, a Gujarati pineapple dealer, as some may incorrectly assume for no reason whatsoever. It was during the "British Association for the Advancement of Science" venue — not the "Pineapple Futures Exchange Summit" in Surat. Indeed, it was not. The term was nicked from the Greek, obviously. ⬅️ The usage of "the Greek" there, as if some poor sod named Nikandros got robbed in an alleyway. Oi, gimme the scroll, mate. ๐Ÿ‘€ ฮฉ, ฮฟฯ…ฯฮฑฮฝฮญ! ฮ ฮฟฮนฮฟฯ‚ ฮตฮฏฯƒฮฑฮน; Pardon me. I say, good fellow — kindly hand over that scroll, would you? ๐ŸฅŠ๐Ÿ’ฅ ๐Ÿ˜ต๐Ÿ’ซ (Nikandros seeing stars, possibl...
Monkey Raptor uses biscuits. More info on Privacy Policy