- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I only encounter and fix 3 of these daily.
Admin
Nothing personal.
Admin
WTF?
Admin
this:
Admin
Admin
The biggest WTF for me in this was why NOCs decide that only after staring at the same error message for 12 hours can they decide to escalate the issue at 3am with a wake up call.
I can't count the number of times I groggily was looking through change logs, error logs and random bits of code at 3am, wondering if it was worth it to go 'all in' and have a cup of coffee. Then, the rage I'd feel, knowing the NOC knew of the issue while I (or even better the engineer peacefully sleeping) was at the fricken office or even as I was walking out and saw them in passing.
"Good night Eric, you're working the night shift now?"
"Night John, yup, <mumble>I'll talk to you LATER</mumble> <Cackle>"
Admin
Obvious troll is obvious. Sarcasm, embellishment and allusion have their place, but they need to be done well. That you are unable to tell the difference between good writing and excuses demonstrates that your opinion is of no value in this conversation.
FOAD. HAND.
Admin
The "dream" aside, this is exactly what a lot of people face in the middle of the night -- a push to prod on the weekend; crappy code that was added without any business reason for being there.
The hardest thing I find is to block junior programmers from adding things that are "shiny" when they serve no business need; and could introduce either slowness or bugs.
As senior people, we need to push back on things that should not be in the product; and teach the younger people how to recognize that which is business-enhancing and what is just "something cool".
And please, let's push Monday morning, not Friday evening.
Admin
TRWTF is Kaley Cuoco.
Mayim Bialik would have made a much better dream choice. Also to everyone commenting on its WAV not WAVE who cares? When you refer to a wav file you pronounce it wave. Everyone knows what you mean in the context if you spell wave instead of wav, and if you have to nitpick over that why the hell are you even commenting? Get over yourselfs.
Popular motivational poster: Ride the waves. Dont Make them!
Admin
"Eric altered the progress bar procedure to use the number of chunks in the text file rather than the combined size of the audio chunks as it's metric."
"it's metric" - so you're saying the progress bar is measured in centimeters, instead of inches?
Admin
Admin
Admin
I think the biggest WTF is that opening the files and reading/parsing the WAV header (which is commonly 44 bytes in size, though it can technically be more) for 35 files (assuming the mentioned upper bound of 700MB at 20MB files) would take twice as long as actually handling the files even at 200-byte blocks.
What is that code doing? Printing out the waveforms, taking a picture of the printout on a wooden tabletop, pasting that in Word, doing image analysis on it and then running an FFT just to determine that yes, it's audio?
Admin
wav files can use gsm compression. Not every wav is PCM (although it is by far the most common)
Admin
Does Scotty ask Kirk why they need more power when the engine is already running at 110%? No. He goes in the engine room and DELIVERS MORE POWER. That's what real engineers do.
Admin
Yes, a real engineer does what the captain needs done. Eric is clearly not a real engineer. Neither is the editor.
Admin
Wow, I've seen some pretty bad writing on this site, but this is the first article that's actually made me ask WTF? about the article itself rather than the ridiculous scenario being described. Please do us all a favour and give up on writing.
Admin
I'd like to hear more about Kaley Cuoco and the chunky progress bar. Such stories would be great opportunity to add multi-media features to the site.
Admin
No, real engineers explain to the captain why what he is asking is impossible. I rather believe you may be mistaken in believing that Star Trek is real life. It's not. It's fiction. That means it doesn't happen. It's made up. It has no relation to reality. It's a lie. It's false. It's verisimilitude is misleading. Its only purpose is to entertain the mentally substandard.
Admin
Dude... Bruce... slow down with your typing there.
Admin
It used to be funny, but the latest season was a bit lame, particularly the unfunny and tedious episode about Professor Proton. I blame that particular episode on the lack of Amy, who is one of the most successfully funny comic characters in TV at the moment.
Admin
You get what you deserve for working for some ultra-conservative women-hating prudes.
Admin
Every time you use a multiline-braceless-for god kills a kitten
Admin
I think that any sane god would be more concerned about the missing closing parenthesis after the postfix-increment operator on the outer for statement.
Oh, and the use of postfix-increment rather than prefix-increment, when you have no requirement to retain the prior variables value... gods probably hate that.
Admin
TRWTF is zipping up the WAV(E) files. They don't actually get any smaller when you try that.
Admin
True we could be facing a universe wide compile time error if that is put into production. Not even a wise and kind try-catch block could save us from damnation
Admin
OK, so 700MB of PCM WAV files suitable for telephony use is about 2 months' worth of audio.
I know companies like their IVR menus nowadays, but isn't that a bit overkill?
Or, were they uploading them as 16 bit 44kHz stereo signals, because EVERYONE has stereo, CD quality telephones nowadays don't they... (Even so, that'd be just over an hour of IVR menus!)
Admin
Admin
Stupid grammar nazis -- TRWTF.
"Went" is NOT passive. Please be correct when correcting others. Passive verbs act on the subject of the sentence. An example sentence containing a passive verb is, "The user, Wishing Editors Edited, was banned from ever posting anywhere on the Interblag ever again due to his condescending attitude combined with his massive stupidity. Focus on the "was banned" part of that. "Went" can't be passive -- "he was wented?" You were wented.
The fix? Don't be stupid, or, at least, don't incorrectly correct people.
Admin
Admin
It appears that he already had.
Admin
Oh wow, this reminds me of something I should have submitted to TDWTF but never did.
Way back when ripping DVDs was still something only computer savvy people did (and did by hand with a complicated toolchain), I had a bunch of movie audio tracks I'd extracted and stored as WAV files. Something I always did before encoding them as MP3 and muxing them into an AVI was normalize the volume with a simple peak normalization.
At home I'd usually do this using the "Normalize" function of my ancient copy of Sound Forge. However I had just gotten a fancy new computer at work (student IT job at school), and I wanted to see how much quicker it could encode the movies.
Sadly I'd forgotten to bring Sound Forge. No problem, I figured. I'll just download Audacity; it should have a normalize function. And it did...
From running the process at home, I knew that Sound Forge usually took about 8-10 seconds to normalize a ~120 minute WAV. I figured Audacity would be about the same (or even faster on the new system) -- peak normalization is a pretty simple operation. What I didn't expect was over a minute per file.
I was dumbfounded how such a simple operation could take so long. Being the inquisitive CS major that I was, I downloaded the source for that version of Audacity and found the normalization function. What it did, in a nutshell was:
Yes, it updated the GUI progress bar after looking at every sample in the audio track.
A 120 minute WAV file sampled at 44,100 Hz has 317,520,000 samples. And that's how many times the progress bar was updated to normalize one file.
I commented out the TrackProgress line, compiled Audacity (which was fun in itself) and ran my normalization again. It took about 8 seconds.
...
The best part is that as I write this I went and grabbed the latest Audacity's source. Normalize.cpp has more than doubled in size since the early 2000's... but GUI progress updates still work the exact same way.
But hey, computers and GPUs are faster now. Keep calm and progress on!
Admin
So... the "emergency" in Europe that warranted a night time call to a developer, worth risking a weekend patch on production code was the progress bar being slow to start?
So the true WTF is giving home phone numbers to their office in Europe?
Admin
It's Comic-Con for San Diego Comic Con for New York Comicon for Seattle or Kansas City
There are lots of comic conventions in the world, you know.
Admin
No, I quite distinctly remember being able to attain significant compression ratios on PCM encoded WAV files. Perhaps you are thinking of attempting to ZIP MP3 files, or some other kind of compressed media type.
Admin
the one here in SD is the only one that matters
Admin
Sorry, took me some time. The "right" (or a "more right") solution would be to look at the data properly. Treat the data fragmentation as a kind of zipper. Each fragment should contain enough metadata in its header. Chunk number, chunk size. This way there will be no need to recalculate the size. Total size, together with some other meta, can be kept in a separate header file.
That's how people do it.
Probably in this case it is not that important... but this is the principal solution to the problem.
Admin
;wave files
Admin
Good story, awesomely told - good work.
Admin
Admin
I still remember when TDWTF was good. ... This article has made me remove TDWTF from my news reader. But it was the trigger, not the cause. To everyone here complaining about the writing I'll just say that there is no point, it won't get better, so why not just go somewhere else? Bye, I had a blast. (If you discount the recent fall in quality.)
Admin
Perhaps I erred. However, I am not employed as an editor, and the sentence structure still sucks. As many have pointed out, the editor failed. I, at least, attempted to provide useful feedback, if sarcastic. You... are not.
Admin
Your reading comprehension skills are TRWTF. It's not checking how many segments, it's checking how large those segments are. Say it's got two segments, one that's one minute long, one that's thirty seconds long. The original code would process the first segment, move the progress bar to 66%, then process the second and be done. The new code will process the first segment, move the progress bar to 50%, then process the second and be done.
Admin
Depends on if split is being used as a verb or adjective. As a verb, the sentence is perfectly correct and would NOT be correct in the present tense -- the splitting of the script was done in the past, and after that splitting it is currently designed such that the first step is to load the data. Wouldn't make much sense to say that the file is currently being split, would it? How could they be running code that is not yet completed?
But yes, if split was intended as an adjective then it should certainly be in the present tense.
You think the average TDWTF reader doesn't understand the difference between the number of bytes in a file and the number of seconds of audio those bytes actually encode? This isn't the New York Times; they're not writing for the "Average American" or for high school kids or something. If you don't understand this concept you have no business being in any kind of programming or sysadmin role, which is this site's target audience.
Please repair your sarcasm detector; it seems to have malfunctioned. "Why would accuracy be critical" is exactly the point. Also, it's already extremely inaccurate since it ignores 2/3 of the process. And who in the real world would even notice if a progress bar that pops up for one or two seconds is a bit inaccurate?
What? The problem was that the process was taking 1200% as long as it should have, which presumably resulted in a large backlog of files to be processed. Seemed clear enough to me...
Admin
Since file reads are usually already buffered at 4096 bytes, this change would really do absolutely nothing.
Admin
I thought that the dream build up was very well written, Bruce. But now it's been done! You will need new tricks! >:(
Admin
How telling is it that this side story was much better and more fulfilling than the original article?
Admin
That was creepy and weird.