Didn't intend to do this, but spent the majority of yesterday doing little tweaks to SoCoder.
-=-=-
Bloomin' Unicode.
The way I used to handle Unicode in the older pre-"2017 rewrite" of SoCder is subtly different to how I handled Unicode in the post-"2017 rewrite" of SoCoder, and it causes a few instances of those annoying "Quotes become scrambled code" events that I really hate.
.. Yesterday, I finally fixed that! I think.
8 years a bug!!
I can't spot any more instances of them happening. Let me know if you do.
I've also copied that tweak over here, too, though I don't think there's too many instances of that happening.. .. *shrugs*
YouTube
Next, a user requested I fix the YouTube code to fit mobile screens better. I thought it over, and .. asked ChatGPT, at which point it told me there's now an Aspect Ratio parameter in CSS, which is fantastic, because that's exactly what my YouTube BBCode needed to fit perfectly.
Sorted!!
Thanks, CoPilot!
Top tips for using CoPilot.
- Ask it SPECIFICALLY for what you want.
- Ask it to keep it short and simple
- Read through the reply, and double check everything, because it lies, and it isn't very security-minded, either.
DELETE
Lastly, another user asked if there's any way to block the deleting of a post is someone else has replied to that post.
Essentially, when idiotic whining babies leave the forum and throw their toys out of the pram by deleting all their posts (this happens far too often on forums), you end up with obscure threads that don't quite make sense any more.
But, blocking people from deleting things is tricky.
People like to take ownership of their posts, and being able to delete their content is "their right" and "free speech" and all the other ranty things that these types of people will claim they should be able to do.
... And I'm not going to argue with that. It is good to be able to delete things.
So, as a middle ground, the server now says "This used to be a post by -Username Here- but the content has been deleted."
That'll do, right?!!
Maybe...
.. Hmmm..
A.I. Corner
Lyrics : By me
Sound Imported : Mainoo Airpahd
Say it out loud! I created this in KORG Gadget the day I got My New iPad, last year, but never finished it off, or did anything with it.
[verse]
A little bit of tweaking to the Bee Bee Code.
And a tweaking to the way it handles YouTube.
I expanded on the way it scales the video display,
So it fits it better onto your screen. (yeah, yeah, yeah)
[chorus]
Whoop, the YouTube. (Tube)
Yeah, the Scaling. (Scale)
Keep the Aspect. (Keep)
The C.S.S. was handy for a change.
(Good grief, it actually worked!!)
[verse]
Now the unicode. Oh no, not the unicode.
An apostrophe became a great catastrophe.
Leaving scrambled bits of text in places,
where they all should be. (yeah, yeah, yeah)
[chorus]
Whoop, the Unicode. (code)
Yeah, the chaos. (Chaos)
Keep the Ascii. (Keep)
I'll change it all onto plain text.
(Good grief, it actually worked!!)
[bridge]
There's lots of tweaking to be done,
Like displaying where a person has deleted posts.
I'm not a hundred percent sure that it'll be good,
But I guess that we are going to find out. (yeah, yeah, yeah, yeah, yeah!)
[chorus]
Whoop, Deletion. (Chaos)
Yeah, Erasure. (Chaos)
Lose the data. (Lose)
Maybe it's not that great.
(I wish that people wouldn't do that.)
[outro]
Whoop, the YouTube. (Tube)
Yeah, the Scaling. (Scale)
Keep the Aspect. (Keep)
The C.S.S. was handy for a change.
(Good grief, it actually worked!!)
[The kitchen is a chaotic mess of flour, sausage grease, and tangled spaghetti.]
Dave: (Beaming) Right then, Brian! Batch three is looking promising. A little *too* much tomato, perhaps? But the sausage distribution is excellent!
Brian: (Nodding enthusiastically) I think we need more parsley. And maybe some glitter? Just a *touch* of sparkle to elevate the experience.
Dave: (Considering) Glitter? I don't think we need glitter, here, Brian.
[Greenie enters the kitchen, cautiously surveying the scene.]
Green: What... what is this? It smells vaguely of desperation and overcooked pasta.
Dave: (Gesturing proudly) This, Greenie, is the future! Spaghetti and Sausage ScrunchCakes! A culinary masterpiece!
Green: (Staring at the three batches) Youโre you're putting spaghetti and sausages *into* a cake?
Brian: Better than that, Mister Green. We've concocted a way to turn the spaghetti into a hard shell, around the sausage.
Green: (Taking a step back) I thought you were just experimenting with flavours. This is an abomination.
Dave: Nonsense! Itโs innovation! And look, we've even got little ramekins full of bolognaise dip!
[Dave dips a Crunchy ScrunchCake into the dip, and hands it to Greenie]
Green: [analysing the chaos] It looks stringy. But it feels solid.
Brian: The trick is to bake it at a higher temperature than the regular cakes, that way it gets a crusty crunchy texture.
Dave: (Rubbing his hands together) Come on then, guinea pig. Give it a try.
Green: (Eyes widening) Absolutely not! I have standards, Dave. And they do *not* include consuming spaghetti-sausage cake.
Brian: (Disappointed) Aw, but it would be a valuable data point!
Dave: Come on, Greenie. Just one bite? [dramatically] For science?
Green: (Shaking his head firmly) No. Absolutely not. Iโm going to go check on the shop. And maybe invest in a hazmat suit.
[End Credits Roll]
Views 19, Upvotes 0
Daily Blog
,
Socoder
New games every week!
Places
Archives
Site credits : Site built from the ground up, in php, using Programmer's Notepad 2, and a very bored Jayenkai.
(c) Jayenkai 2023 and onwards, RSS feed
6
Blog - ๐๐ฅ- 21 - More SoCoder Tweaks - AGameAWeek