I intended to get some SoCoder work done yesterday. I've already missed this week's SoCoder Tuesday, not that that was a thing, but it flew right past without me even noticing.
... Something to do with Beta versions, I reckon.
So, yesterday, I opted to try and fit it in. Kuron complained that .avif images were unsupported by the BBCode, so that seemed like an ideal tweak to do.
First off, though, Me and Mum headed to the local Tesco to buy a few bits and pieces, and .. I'm not 100% sure why, but it completely drained me of energy.
Absolutely shattered when we got home, so I went for a short lie down, and woke up about 4 hours later.
Ooops!!
2,500 steps really shouldn't have done that to me. I've easily coped with longer walks, but..
I dunno, I guess I must've needed the sleep?
Maybe it's all the running around the world of Mario Kart that's tiring me out!?
Anyway, I added the .avif extension to the allowed set of image formats. It wasn't quick..
It was about 30 or so references to the same set of image formats, for the img tag, for the thumb tag, for the img_left and img_right tags, and so on and so forth.
In the end, I opted to make a global "AllowTheseImages" variable, and then went through replaces the search+replace command with references to the variable.
Kinda messy, but it now much easier to maintain, once more image formats start cropping up.
Honestly, that should've been a five minute job!
Though, with the tweak that I've made, next time it will be just a five minute job...
[verse]
A quick little job. Something tiny to do.
It's only four little characters to add to a script.
But when I started to work on the thing I should add,
Then it spiraled into lots of things I had to do to it.
[chorus]
And then I went around, and around, searching all over the script.
Tweaking words and placing symbols were I needed to add to it.
I went around, and around, with my fingers on the copy and paste,
Adding four little characters, around, and all over the place.
[break]
[verse]
The job was quite hard. There was so much to do.
I only meant to make a little tweak inside the file
But in the end, I went around, and added more and more,
Until I finally decided on a better way to try.
[chorus]
And then I went around, and around, searching all over the script.
Tweaking words and placing symbols were I needed to add to it.
I went around, and around, with my fingers on the copy and paste,
Adding four little characters, around, and all over the place.
[break]
[bridge]
Back in the days, when I started to code all this script,
It seemed easy, but in all of the time,
there are so many formats, they seem to expand.
Now I have to take care of this crazy demand.
Hundreds of formats, that I must contend with.
From jay-peg to gif and then web-p and a-viff
I'm not sure quite why people seem to need more.
There was plenty of choice in the days long before.
[chorus]
And then I went around, and around, searching all over the script.
Tweaking words and placing symbols were I needed to add to it.
I went around, and around, with my fingers on the copy and paste,
Adding four little characters, around, and all over the place.
Int. Dave's Games and ScrunchCakes - Friday Morning
[Dave is setting up for the day, humming cheerfully, cleaning up cornflakes that have been scattered throughout the room]
Green: [entering] Cornflakes?
Dave: It's Friday the 13th!
Green: Ah, I see. What happened?
Dave: Well, Mrs Thompson
Mrs Thompson: [walking in from the back room with a large broom] Don't blame me for this.
Green: Why are..
Dave: I was bringing in some supplies for the Corn Flake ScrunchCakes when all of a sudden.
Mrs Thompson: Please don't remind me.
Dave: Anyway, one thing lead to another, and now I've got special Friday 13th ScrunchyCakes planned.
Green: Of course you do.
Dave: With black sausages!
Green: Black... sausages?
Mrs Thompson: He means Black Pudding sausages. But he'd better hurry around to the butchers if he wants some.
Dave: And the till's already playing up.
Mrs Thompson: I've got this, Dave. You go get the Black Pudding sausages. .. Just be careful when you're bringing them through.
Dave: Will do!
[Dave leaves]
Green: So, how did they..?
Mrs Thompson: The ScrunchCake Sentinel thought the rooster on the Corn Flake box was an alien invader.
Green: Aaah, that makes sense.
Mrs Thompson: It really doesn't. That thing's a deathtrap.
Green: Maybe we could sabotage it, and blame it on Friday the 13th?
[A ScrunchCake flies past]
Mrs Thompson: Don't upset the sentinel.
[End credits roll]
Views 16, Upvotes 0
Daily Blog
,
Socoder
Places
Archives
Site credits : This was all done by Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed
6