• Wow... just wow.. (unregistered)

    It saddens me to realise that i'm never going to be such a good programmer as him..

    Also second!

  • JimmyCrackedCorn (unregistered)

    The only thing more evil than the macgyver code published here would be to distribute their bits on code sample sites (codeproject, stacktrace, etc)

  • (cs)

    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

  • (cs) in reply to pjt33

    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.

  • Balr0g (unregistered)

    Apart from the other WTFs. What's wrong with writing all status info to STDERR? Every sensible command line tool should do that.

  • Black Bart (unregistered) in reply to Balr0g
    Balr0g:
    Apart from the other WTFs. What's wrong with writing all status info to STDERR? Every sensible command line tool should do that.

    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.

  • (cs)

    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.

  • anonymous (unregistered) in reply to pjt33
    pjt33:
    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

    That is a URL. This is a link: http://omg2.thedailywtf.com Unrelated text so that Akismet doesn't think this comment is spam

  • (cs)

    Other than killing of all java process on your computer what is this code exactly doing?

  • ¯\(°_o)/¯ I DUNNO LOL (unregistered)

    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.

  • (cs)

    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!

  • Jeff (unregistered)

    Congrats Joey :)

  • (cs) in reply to RaspenJho
    Editor: I knew something was off. We're using that screenshot now! Thanks!

    Thanks for updating it.

  • Meep (unregistered)

    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.

  • (cs) in reply to anonymous
    anonymous:
    pjt33:
    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

    That is a URL. This is a link: http://omg2.thedailywtf.com Unrelated text so that Akismet doesn't think this comment is spam
    Yes, I forgot that this comment field doesn't automatically link URLs and I couldn't be bothered to fight Akismet.

  • Randolpho (unregistered) in reply to Jeff

    No doxxing, please, Mr. H.

  • ForFoxSake (unregistered)

    the link...sleep deprivation

  • William (unregistered)

    The Real WTF is leaving a valid username / password to login to minecraft in the published code (at time of this comment, at least)...

  • (cs) in reply to William
    William:
    The Real WTF is leaving a valid username / password to login to minecraft in the published code (at time of this comment, at least)...

    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...

  • Kasper (unregistered) in reply to Meep

    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.

  • SRC (unregistered)

    https://github.com/jgordon615/McDecision/commit/3e8fd2e9d52e349af554116b6e4826b20e002c2c

    If that is what it looks like, then no further comment.

  • (cs) in reply to SRC

    The password has already been changed.

  • (cs) in reply to RaspenJho
    RaspenJho:
    The password has already been changed.

    Yes, but by who? And don't say, the logged in user, that's far to easy.

  • (cs) in reply to KattMan

    By me.

  • (cs) in reply to Evo
    Evo:
    William:
    The Real WTF is leaving a valid username / password to login to minecraft in the published code (at time of this comment, at least)...

    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...

    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!

  • Anonypony (unregistered)

    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.

  • F***-it Fred (unregistered) in reply to Evo
    Evo:
    Can we please have mandatory fun day back, it beats this...
    But then they'd have to still write some content instead of getting their users to write it for them... I'm sorry, instead of crowdsourcing the article.
  • Thuktun (unregistered) in reply to Balr0g
    Balr0g:
    Apart from the other WTFs. What's wrong with writing all status info to STDERR? Every sensible command line tool should do that.
    If we're talking about a server process, as long as STDERR is redirected to a log file.
  • (cs) in reply to Balr0g
    Balr0g:
    Apart from the other WTFs. What's wrong with writing all status info to STDERR? Every sensible command line tool should do that.

    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.

  • MG (unregistered)

    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.

  • Norman Diamond (unregistered) in reply to anonymous
    anonymous:
    pjt33:
    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

    That is a URL. This is a link: http://omg2.thedailywtf.com Unrelated text so that Akismet doesn't think this comment is spam
    If you want Akismet to accept your comment, your post should link to a site selling stolen credit cards instead of TDWTF. TTRWTF.

  • (cs)

    Thatsssss a nicccccce ssssserver you've got there...

    [image]
  • Joe (unregistered) in reply to MG

    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?

  • (cs)

    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).

  • (cs) in reply to tin
    tin:
    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).

    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.

  • (cs)

    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?

Leave a comment on “OMGWTF2: The MacGyver Award”

Log In or post as a guest

Replying to comment #415956:

« Return to Article