|
For part of my UTF-8 decoder I use a sparse array, but of course I'm using C# so I can catch Index Exceptions.
I guess I now have to add more characters to it though.
|
|
|
|
|
Fleeced toboggan catches air. (8)
|
|
|
|
|
Fleeced
toboggan S LED
catches (around)
air WIND
SWINDLED
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It's a good job you're not busy today, otherwise that might have taken you more than two minutes to solve.
|
|
|
|
|
Shouldn't you be busy writing code to strip metadata from JPG files with mogrify[^]?
Correct answer, you are up tomorrow!
|
|
|
|
|
Nope, I keep the originals in a image folder, but add a small thumbnail to the DB - they then get lazy loaded into the application when it starts up, but the originals are necessary sometimes. Just not often.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Well,
There is a Microsoft API to do MIME sniffing. It should have a 100% success rate on RIFF/WAV headers. It originated from the now dead Internet Explorer. It's exported from Urlmon.dll
FindMimeFromData function[^]
The pwzUrl parameter can be file://path/to/your/image.jpg
Your RIFF should be detected as audio/wav and JPEG files will be image/jpeg
FMFD_ENABLEMIMESNIFFING flag has to be enabled to have it read the binary file headers. Otherwise it will do 'dumb MIME sniffing' which simply looks at the file extension.
|
|
|
|
|
@Randor
Where's the CCC?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
@petepjksolutionscom
You're probably right.
I've been up for 6 hours, and I'm having a busy day ... plus my email still isn't working after 4 days and the hosting service has only just replied to my ticket ... with a useless automated reply ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I've had similar with webhosting.uk.com they blocked my ip address because of a failed login by herself
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Time for an Oi Randor !!!
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Just woke up, give me a minute. Ned Covfefe
|
|
|
|
|
Just noticed I somehow got linked to a spammer in one of the wordle threads. I'm famous !!!
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Already reported to the hamsters.
Bugs and Suggestions[^]
(The bug that is; not you. You naughty spammer, you!)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You are late to the party - we knew that for years
“Real stupidity beats artificial intelligence every time.”
― Terry Pratchett, Hogfather
|
|
|
|
|
I’d prefer to be a troll - bit more class 😁
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Buy (or build) a bridge for you...
“Real stupidity beats artificial intelligence every time.”
― Terry Pratchett, Hogfather
|
|
|
|
|
I noticed the (incorrect) link to you when the spammer's message was removed, and I wondered how you are going to react. You did not disappoint me!
Get me coffee and no one gets hurt!
|
|
|
|
|
I've spent an hour this morning on an odd bug report - full data wasn't being entered to the DB, and the log just showed an "out of memory" exception.
Turns out the problem was that some goon was storing RIFF data in a JPG file extension ... Windows works it out fine, Paint doesn't mind it, but PaintShop Pro just says "no" - and GDI+ throws an unhelpful memory exception which my app logs and decides it can't do anything useful with.
To make it even more fun, this is done in a background worker thread so the UI isn't interrupted by thumbnail generation, and though it's technically part of the presentation layer it's not really a good place to be trying to communicate directly to the user ...
And this is a ten year old app, and a brand new "problem" that I should handle rather better than I do currently. Which is effectively "ignore it" and hope I sort it all out from the logs later ...
So ... what do I do about it? Fix it properly, which is going to involve some major changes to large chunks of software to get error reporting up to the right layer; bodge round it to get some reporting that at least the DB doesn't get some-but-not-all data added; or ignore it because it's not really my fault and I can blame some unknown idiot?
I'd love to go with the last one, but ... if it happened this time, it'll happen again ...
Sod it. I hate this ...
Mind you, I just thought of another option: hunt down the moron who thought "RIFF and JPG are the same thing really" and exterminate him with extreme prejudice. Tempting, tempting ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: this is a ten year old app
Left it to mature a bit then
“Real stupidity beats artificial intelligence every time.”
― Terry Pratchett, Hogfather
|
|
|
|
|
It's matured quite well: only up to V2.35, last change in 2020, and 90% of the changes over the years have been updates rather than bug fixes.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Is this a system you support or a personal one ?
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Both: but I don't think I can charge anyone for my time on this. And a "proper fix" is going to involve significant UI changes which always raise user hackles ... there is nowhere I can report problems like this in the current UI layout, damnit. Should have thought of that way back when.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Tell them that the software is "out of support".
If Microsoft can retire Windows editions after 10 years, why can't you retire your program?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
In your thumbnail generation process, can you not verify it and if not a valid JPG, return a thumbnail image with text that says "invalid image file" or "don't be such a plonker" or some such? If the thumbnail process is storing the image somewhere prior to dumping to the database, just copy a similar "invalid" image ins place. That way nothing gets screwed up in the database, the user gets notified, and all the changed code is in the right place - image processing.
|
|
|
|