Bad Image Finder Updated….

I’ve updated my earlier post about “How to find bad JPEG files in a directory – via Delphi (Source Code)“. It now includes a routine to do extra corruption checking if the image is a JPEG. The problem is that I don’t fully see/agree with the logic in this routine… but it seems to work better the person I wrote it for…. I just need some non-artificially corrupted JPEG files to test it on…

Anyway, see if you can make better sense of this…
[delphi]
while (Cardinal(pB) < pE) do begin if (pB^ < $E1) then begin Result := TRUE; Break; end else begin inc(pB); if (pB^ >= $E1)
then begin
inc(pB);
if (pB^ >= $E1)
then begin
Result := TRUE;
Break;
end;
dec(pB);
end;
dec(pB);
end;
inc(pB, 16);
end; [/delphi]

It goes backwards through the last line of the image and checks to see if the color (I believe) is less than the constant $E1. If it is, then result is changed from FALSE to TRUE and the routine exits with IsValidJPEG returning TRUE. Otherwise, if all the pixels in that line have a color greater than or equal too $E1 (labeled suspect blue),then the result remains FALSE and IsValidJPEG returns false…

So… basically it makes sure that there’s at least one valid colored pixel on the line and then it is assumed the jpeg is valid? That seems kindof sketchy to me… but if it works…

Any thoughts?

How to play MP3s on a Verizon LG vx8100

Verizon tries to force you to only play WMA files on your phone. But because they’ve left their security menu open, you can reenable mp3 files.

Here’s how:
1. First Press Menu
2. Look at the menu if you want, but we’re gonna a hidden option: 0
3. After you press 0, you get asked for the service code password. Enter 000000.

Your now in the “secret” service menu. Be careful – you CAN screw up your phone from this menu..
4. Scroll down to and select “11. Music Setting” Note that this is specific to the vx8100 service menu. On the vx5200, this is Battery test.
5. Then select mp3 enable,
6. Press OK and your phone will probably reset.

You can now play MP3 AND WMA music files…

My wife will be very happy when she sees I’ve “fixed” her phone…

Two Secret Verizon Phone Menus – LG VX5200, LG VX6000, LG VX7000, LG VX8100 etc phones

This one is pretty straight forward but is the key to doing a lot of stuff that Verizon has disabled by default for their phones…

1. First Press Menu
2. Look at the menu if you want, but we’re gonna chose an option that isn’t available there: 0
3. After you press 0, you get asked for the service code password. No problem, it is all zeros! Enter 0,0,0,0,0,0 for the service code.

Your now in the “secret” service menu. Be careful – you CAN screw up your phone from this menu..

And there is another secret menu from here!
4. Press #, another hidden option, and you will enter the TEST MODE menu and from there you can do all kinds of cool stuff!

Bad etiquette! What have I gotten myself into?

Well, I responded to a post on my wife’s blog http://www.knitchat.com, but it turns out that her post is what’s called a “meme” which means I MUST post my response on my blog and refer back to hers and include the original meme. So, I am doing so now.

BUT WAIT!!!! It turns out that this meme thing is REALLY interesting… I always thought these things were called “Me! Me!”s…

They’re not. According to the Wikipedia , it’s pronounced as Meem and it’s a term that refers to self propagating knowledge that is passed down from generation to generation. For instance, the tune “All around the mulberry bush”, a song about spinning yarn is a meme. How Continue reading Bad etiquette! What have I gotten myself into?

Maybe my readers can help me out…

I posted this over on the WP-Hackers list, but maybe I can get some help from my own readers… (Thanks btw It’s nice to see that, after only three short months, I already have a number of regular readers. I hope my posts have helped!)

I think you all would be the ones to answer this, even if I posted it there.
Besides, perhaps there is something /deep/ in the WP code that is
specifically blocking this action… Though I don’t see how it would even
get into WP’s realm of influence (this should be all Apache), /something/ is
happening. I’ve provided screen shots as proof of my statements.
Continue reading Maybe my readers can help me out…

Building a computer case front panel audio (FPA) connector

I recently upgraded my mother board to one that included a connector for Front Panel Audio.
Here’s what’s shown in the manual:

Which luckily matched up nicely with what I saw on the motherboard:

I’ve decided that these front panel audio connectors are fairly standard. AND I think my manual has the FPA jack a little mislabeled.

My old motherboard did not support this. And in my case (Ha!), the case didn’t either. Though the case had holes for a stereo jack, the circuitry was missing the appropriate jacks:

Continue reading Building a computer case front panel audio (FPA) connector

How to find bad JPEG files in a directory – via Delphi (Source Code)

UPDATE: Source, EXE and ZIP updated to include new corruption detected routine…

Let’s just dive right into this one…
Here is the exe:
http://www.TheCodeCave.com/downloads/delphi/BadImageFinder.exe

Here is the Zip of the exe, forms and source:
http://www.TheCodeCave.com/downloads/delphi/BadImageFinder.zip

Here’s an image:The main screen

Here is the source for the main BadImageFinder_Main.pas file… (Hope this helps!)
Continue reading How to find bad JPEG files in a directory – via Delphi (Source Code)