Navigation

    What the Daily WTF?

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    1. Home
    2. shenghi
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    shenghi

    @shenghi

    14
    Reputation
    6
    Posts
    48
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    shenghi Follow

    Best posts made by shenghi

    This user hasn't posted anything yet.

    Latest posts made by shenghi

    • RE: The only surprise is that nobody thought of this sooner

      Let me introduce: [link=http://www.youtube.com/watch?v=pOHDRC88jyk]Nobody[/link].

      posted in Side Bar WTF
      S
      shenghi
    • RE: I don't think that means what you think it means...

      @Ben L. said:

      @Shenghi said:
      Filed under: There is no such thing as pride

      Gay people and lions would like a word with you.

      While I have a chat with them, you might want to get your sarcasm detector looked at.

      posted in Side Bar WTF
      S
      shenghi
    • RE: I don't think that means what you think it means...

      @Monomelodies said:

      Additionally, this monstrosity is built on top of Wordpress. The site is not even a blog. Why do people insist on doing that? (Yes, I know the answer is "when the only tool you have is a hammer, every problem looks like a nail", but still... have they no professional pride???)


      No, they don't. That's the problem with our professionlife.

      posted in Side Bar WTF
      S
      shenghi
    • ---DROP

      I am working on part of an application that generates some SQL queries, saves them to a file and then allows the user to execute them. The queries are stored to file so that users can also execute the queries themselves should they need to. Burried inside the code that executes the queries I found this little gem:


      [code]
      string sql = File.ReadAllText(foo.FilePath);

      sql = sql.Replace("---DROP ", "DROP ");

      sql = sql.Replace("---drop ", "drop ");

      connection.ExecQueryBatch(sql);

      return true;

      [/code]

      posted in Side Bar WTF
      S
      shenghi