- 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
FRIST(Y)For some reason this field must not be empty(Y)posted=yes
Admin
split("(.Y.)" "frist?")
Admin
"Do you like our new website? Please respond with either yes (Y) or no (N)."
Why is this not working???
Admin
The real WFT good decision boss? Now that's a frist.
Admin
And they implemented WordPress and immediately got hacked.
Admin
Obviously, Chad was more of a leg man.
Admin
Being a registered user is sad because I don't get any funny captchas on which to comment.
Admin
(Y) giggity
Admin
If this had somekind of proper layout, I would not think it would be THAT horrible of a solution to use text files instead of a database. The upside is obviously that you are not likely to get SQL injections, and if advanced querying, performance and safety isn't needed this might be OK.
Yet I cannot seem to wonder that a harder solution was chosen over an easier solution, where you just make a connection and start querying. Having to parse the files manually seems more like feature creep than anything else.
CAPTCHA comment: praesent, like a present but with an a
Admin
He should have split on the RS character. That is what it there for. Text files are perfectly sensible for when this whole database, internet fad goes away.
Admin
Admin
Admin
So Kyle sat there like a dummy, not thinking to suggest a new system himself, until his boss pulled him up for being incompetent?
Admin
Maybe he figured the boss was like most clueless IT bosses and held on to that old saw "if it's not broke don't fix it" and that he would have been reprimanded/fired for "wasting time" coming up with a new solution instead of getting his work done?
We don't know how long he was in the position. Maybe he was the "new guy" and didn't want to stir the pot.
Admin
The real WTF is that we really get a sad ending, because most WTFs are sad endings and we didn't get one, even though upon seeing something like 'phptxtdb', we were all expecting it.
Admin
No wonder it took so long... base64 encoding images by hand is a real pain!
Admin
isn't it a bit unfair to pick on chard when this is clearly an Amateur project? I though this site only highlighted WFT's from professionals.
Admin
The "string split" solution is not actually such a bad method. Sure, you're gonna get a lot of collisions with "(Y)", but how likely do you think that is if you use "(i|=J7}Y&.`Gb)" ?
Admin
I did something like this once for a university club, but only because they didn't let us have database access of any kind. Except my solution simply wrote blog entries straight to an RSS file and then read that back to display them. And my solution had an editor page so you never needed to manually enter into the text file. And my solution was (obviously) XML instead of '(Y)' delimited. And I used an existing PHP library to read back the RSS file.
OK, so I did something not very similar to this once.
Admin
College radio stations tend to be fairly professional organizations. It's not like it's some club that people do on the side- it's a job which people get paid for.
Admin
I've done one of those. It started out being database backed, having made the foolish assumption that I might be able to use a database on a server that clearly already had one installed.
I'm pretty sure the story isn't about mine, though, since it appears to still be running. The last time I had anything to do with it was writing a brief description and apology for the next guy to pick it up. Unless the happy ending was part of the anonymization, of course.
Admin
Surely you mean "perfectly cromulent."
Admin
Being done for a business organization (the college radio), it wasn't an amateur project, but a professional one. This is true even if I'd rather cut my tongue instead of calling that guy a "professional"
Admin
"College radio stations are small, but highly technical organizations. "
You smoke what? Seriously, who believes that!??
Admin
Admin
I request the radio station to play some Grimbitch, please...
Admin
How does one even 'overflow the buffer' in PHP? Or is it supposed to mean exhausting the memory?
EDIT: Actually, that might be fgets... But that one he could've fixed by simply removing the second parameter.
Admin
This is all perfectly sensible in a BI enviro.....
.... oh never mind.
Admin
Admin
So please pick one at random and make your funny comment. But be sure it's the same funny comment made dozens of times before, otherwise some of us might never recover from the shock of the unexpected.
CAPTCHA: wisi - I wisi had a funny remark on that. LOL! ROFL! How funny!
Admin
(Y)God(Y)
Admin
Admin
Seriously, random strings (long enough) are fine (see MIME boundaries), unless you need to document them and put the documentation in the "database" itself. Then you have the same escaping problem, whatever you use.
Admin
Yes (Y) professionals like Paula Bean.
Admin
Admin
A very clever program would allow a pre-recorded program other than the request slot whereby it can "dynamically" insert based on what the public has requested.
Of course you would use some kind of online request list.
However to make it more interesting you can't just play the popular songs or the producer's own choices. The purpose of a request section should be to get some less-usual music played on the show.
Admin
I wept. Klye, enjoy the programmer's paradise... for all of us!
Admin
Admin
Admin
I think there are a great number of people who have never looked at an ASCII table, so it doesn't occur to them that there are characters outside the range of ones you normally see.
Of the ones who do realize this I suspect there is an even smaller proportion who know what the likes of FS, GS, RS, and US are for.
The last thing I worked with that actually used them was ISO/IEC 8211.
Admin
Yeah, still in college. By the time Kyle learns how the real world TM operates, he would have said something along the line: "yes, it's possible, you just need to allocate the resources for this".
I love enterprise environments.
Oh, and Chad maybe read somewhere that ORM's were evil and some how thought that DB's were evil too... for some reason.
Finally, TRWTF is using a RDBMS for a CMS.
Admin
It's also the path that eventually leads you to believe your hammer is golden.
Admin
I've done something similar a long time ago. I was about 14 or 16 back then. Since it was a javascript "app", all the data was initially stored in one big, ugly JS file, like
stuff[0]["name"] = "foobar"; stuff[0]["type"] = "something"; stuff[0]["price"] = "235";
stuff[1]["name"] = "moo"; stuff[1]["type"] = "something else"; stuff[1]["price"] = "42";
so yes, instead of putting it all in a database, or at least in a JSON or XML file, I made the PHP code explode each line at = first, and then at ][ and ], I think. I had no idea about regex either. Also, the JS file was required to have special comments to mark the area to parse.
Admin
Hey I'd much rather have PHPTXTDB than PHPBINDB because decoding undocumented arbitrarily-formatted binary data structures is even worse! Yes, I'm looking at you, almost-every-proprietary-software-vendor-out-there.
Admin
(i|=J7}Y&.`Gb) is my name you insensitive clod.
Admin
Admin
Chad simply was ahead of his time. Today we call this NoSQL.
Admin
Oh silly me. I thought the request segment was there to let the callers randomize the daily play list, instead of the machine. Expecting people to call in songs that aren't in the top 25 would be madness. After all, people these days think entertainment is supposed to be fed directly to your brain without that harassing superstitious "free will".
CAPTCHA: ideo - what happens when an idea fades because the thinker can't hold onto original thought for more than a split second.
Admin
“I would be happy to. I’ll make the time.” Is absolutely the right answer
Admin
It was funny to read when it came out. It's even funny when clicking on the Random button on the site and seeing it. It's NOT funny when someone links to it from a one-sentence post and thinks they're so fucking clever to have discovered xkcd.
You probably still use lmgtfy and think you're so damn clever.
It means in real life, you're an unoriginal hipster doofus.
Got anything to do with sanitizing inputs to a SQL database, etc.? Link to Bobby Tables. Got a nerd-project slow-ass turing machine? Like a minecraft logic circuit from redstone? Link to the one where it's some guy alone in the world making a computer out of rocks. Got a story about password security or encryption? Link to the one where they beat the password out of the guy with a wrench.
Fuck off. You're not clever.