- 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
It saddens me to realise that i'm never going to be such a good programmer as him..
Also second!
Admin
The only thing more evil than the macgyver code published here would be to distribute their bits on code sample sites (codeproject, stacktrace, etc)
Admin
Nice link you have there. Be a shame if something had happened to it.
For anyone who's wondering, the correct link is http://omg2.thedailywtf.com
Admin
As the one who made that edit, I swear to you- I copied and pasted straight out of the browser. I'm throwing Chrome under the bus for this one.
Admin
Apart from the other WTFs. What's wrong with writing all status info to STDERR? Every sensible command line tool should do that.
Admin
Exactly - that way you know what was happening when any actual error messages appear; they conveniently show up in the stream. No need to try to backtrack and match output from separate sources by timestamp.
Admin
Once Minecraft inevitably goes to the wayside, at least this app will be useful for killing off all the Java server processes on your computer.
Admin
Admin
Other than killing of all java process on your computer what is this code exactly doing?
Admin
Well, that's great timing. I was playing around with Minecraft server stuff yesterday on my MythTV box (I failed to get OS X 10.5 to do static port forwarding to it which would have been a full win, but instead of forwarding the SYN ACK it just sent a RST), so I am freshly familiar with the list of server commands. Yes, the weather and time commands are about all you can easily use for this. Possibly a few more if you're running mod packs.
Force-launching a Minecraft client just so that the server will properly participate in a Rube Goldberg chain? EPIC WIN.
TRWTF is that I was doing all that because I couldn't get into a friend's Minecraft server because his dyndns broke. I are sad kitty when that happen.
Admin
The screenshot they used was from my original submission. I submitted twice (per the instructions!).
Some people that reviewed my submission said my UI needed a facelift, so part of my update was to render the client in 3d. I've uploaded a screenshot to github here:
https://raw.github.com/jgordon615/McDecision/master/Screenshots/Screenshot.png
Enjoy :)
Editor: I knew something was off. We're using that screenshot now! Thanks!
Admin
Congrats Joey :)
Admin
Thanks for updating it.
Admin
Seriously, that's a legendary WTF?
Check your /etc/init.d folder and see how your local SA is starting and stopping tomcat.
If you're lucky, the shutdown portion is doing bin/shutdown.sh (which is for development!) but after 10 seconds, they're probably running kill -9
ps -eaf | grep java | grep -v ps
or something similarly asinine.Admin
Admin
No doxxing, please, Mr. H.
Admin
the link...sleep deprivation
Admin
The Real WTF is leaving a valid username / password to login to minecraft in the published code (at time of this comment, at least)...
Admin
At least, then, we have a WTF today.
Really, this is it for today? An entry for a contest trying to do things the silliest way? It doesn't involve any "WTF why would anybody even do this?". Consider me bored. And by the number of comments so far, I'd say most agree with me.
Can we please have mandatory fun day back, it beats this...
Admin
Reminds me of an experience I had with sshd once. I had installed a new version of openssh, I just needed to restart sshd, and I was doing that over an ssh connection.
I first typed "service sshd stop", which worked just fine. It stops the sshd process listening on port 22, but leaves active sessions running.
Next I typed "service sshd restart", which would have worked just fine, if sshd had been already running. In fact restart is equivalent to stop followed by start.
But running stop when no sshd is listening causes the script to realize it cannot stop the server the usual way, so it falls back to the alternative method of killing all processes named sshd.
At that point I found myself logged off the server. Also the start part of the script didn't get executed as the script received a singal when I got logged off the server.
That's when I had to find another way to login. Luckily for me, this was before rsh had been completely phased out. Unfortunately for me, the only hosts permitted by the firewall to rsh to this particular server were computing nodes on a network behind that server.
In the end I had to ssh to a different location which had a VPN connection to the network behind my server. From there I could ssh to a computing node behind the server and rsh into the server. Finally I could restart sshd.
These days I tend to configure a secondary sshd on another port and start it through xinetd. Even if all processes named sshd are killed xinetd stays alive and can start new sshd processes.
Admin
https://github.com/jgordon615/McDecision/commit/3e8fd2e9d52e349af554116b6e4826b20e002c2c
If that is what it looks like, then no further comment.
Admin
The password has already been changed.
Admin
Yes, but by who? And don't say, the logged in user, that's far to easy.
Admin
By me.
Admin
There no comment because the 349 other submitters havent win and they are all jealous!
And i am one of them! =)
Grats to jgordon615 by the way!
Admin
I enjoy redstone madness as much as the next guy, but this just seems kind of silly, and not a WTF. And STDIN/OUT/ERR is kind of a normal way for programs to interact, so not sure why that's so elaborated.
You guys are really going to drag this out all week, foregoing normal articles? Sigh.
Admin
Admin
Admin
It writes ALL output to STDERR (Except for startup information). This includes world-chat messages from players, etc. Not just status or error information. It all goes to STDERR.
Admin
Well, I knew my entry was going to be sub-par. I didn't think it'd be as sub-par as it obviously is.
Of course it took me all of 10 minutes to do it. It must be nice to have the time to do a proper WTF-worthy entry.
Admin
Admin
Thatsssss a nicccccce ssssserver you've got there...
[image]Admin
Meh, ignore them. Awesome job dude! I'm looking forward to setting this up on the server I host for some friends.
captcha: "persto" - a garlic infused sauce for cannibals?
Admin
Disappointing using plain redstone to make it happen.
A chook pen, water conveyor, hopper, chest, comparator and dispensor arrangement (with a redstone counter to determine the random output) would have been much more fun. Not to mention much more resource intensive on the server (especially if you had about 100 chooks in the cage).
Admin
Not sure if this is a positive or a negative under the circumstances, but chickens won't lay eggs until at least 5 minutes after spawn/world load (plus god-knows how long if the lag from hundreds of chickens slows down minecraft's internal clock), so you have a nice cushy startup time there before you can even use the thing.
Admin
Killing Java processes? Doesn't this sort of violate the "no malicious code" rule? Or does killing Java count as more of an antivirus effort?