On a related note, not too long ago on a developer's mailing list for a large open-source project that I read, the following C fragment was called "quite elegant"
D
dicey
@dicey
0
Reputation
4
Posts
32
Profile views
0
Followers
0
Following
Best posts made by dicey
This user hasn't posted anything yet.
Latest posts made by dicey
-
RE: So you wanna make a laser go faster?val -= (val>>31)|1;Wouldn't you agree? (it replaced the following code if you haven't figured it out by now (and who couldn't tell that the two are equivalent at a glance?))if (val > 0)val--;elseval++;
-
RE: Proofreading...what's that?
[quote user="mhughes"]I would take a red magic marker and correct it, just like a teacher would correct homework, and then send that back signed.
[/quote]Haha, I actually did that for some of the stuff my English teacher passed out back in high school. He didn't find it too amusing. -
RE: Online Advert WTF
Heh, it detects that I'm on a Mac and using Safari fine... though it says "Safari 4" when I'm using the latest, version 2.0.3... The slow meter is obviously there to sell you stuff to speed up your computer, though.
-
RE: The Video from HELL
[quote user="Mikademus"]
The real WTF was that you tried to put a h.264 video stream in a AVI container. It is not recommended. Only use fully MPEG-4 compliant containers, like MP4 or MKV for h/x264 encoded data, it will save you a boatload of trouble.
[/quote]Not really; no layperson just dabbling with video encoding is going to know that. Also, this did not occur; the AVI he used to get the FCP project rendered was uncompressed initially (then minimally compressed when that failed) and the final H.264 is stated to be in MP4.My own favorite WTF from the entire digital video field is how a resolution of 640x360 is not considered true 16:9. Read http://lipas.uwasa.fi/~f76998/video/conversion/ if you want your brain to hurt.