Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. You Know What I Hate?

You Know What I Hate?

Scheduled Pinned Locked Moved The Lounge
csharpcomquestion
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GenJerDan
    wrote on last edited by
    #1

    I hate it when you copy some code from the web and, when you paste it, the quotation marks are wrong and you have to search and replace all the “ and ” with " and ". Yeah, not hard...but annoying. edit: The “ doesn't show up here as the incorrect opening quote. More weirdness.

    We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

    M M W J 4 Replies Last reply
    0
    • G GenJerDan

      I hate it when you copy some code from the web and, when you paste it, the quotation marks are wrong and you have to search and replace all the “ and ” with " and ". Yeah, not hard...but annoying. edit: The “ doesn't show up here as the incorrect opening quote. More weirdness.

      We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

      M Offline
      M Offline
      Munchies_Matt
      wrote on last edited by
      #2

      It is weird isnt it, it looks exactly the same, but wont compile. Only happened to me once, took minutes to work it out, a strange character set that looks like ascii but isnt. I guess it has some benefits, it makes the 'codes plz' brigade do some fucking work.

      1 Reply Last reply
      0
      • G GenJerDan

        I hate it when you copy some code from the web and, when you paste it, the quotation marks are wrong and you have to search and replace all the “ and ” with " and ". Yeah, not hard...but annoying. edit: The “ doesn't show up here as the incorrect opening quote. More weirdness.

        We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

        M Offline
        M Offline
        Matt L
        wrote on last edited by
        #3

        This used to happen at my old job with deploy instructions written in a Word document. Everything about the deploy was here and in order. Mainly to minimise the chances of any production down time, but it was also used to sync development machines after a major deploy (There was dozens of devs). Copy and pasting Web.Config entries from the word doc into a config file would cause frustration for everyone at least once. But Hey-ho, who really expects mickeysoft tech to play well with others, even family.

        1 Reply Last reply
        0
        • G GenJerDan

          I hate it when you copy some code from the web and, when you paste it, the quotation marks are wrong and you have to search and replace all the “ and ” with " and ". Yeah, not hard...but annoying. edit: The “ doesn't show up here as the incorrect opening quote. More weirdness.

          We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

          W Offline
          W Offline
          W Balboos GHB
          wrote on last edited by
          #4

          Rule One for copy/paste of code and stuff: First, paste into a featureless wort processor, like Notepad, to get rid of all the hidden features. You can make sure it only shows in your preferred font and crazy stuff is basically destroyed/replaced. I use this when I'm sent documents (like from M$Word), the content of which is supposed to be posted to a web page. Should go a long way in fixing your problems preemptively.

          Ravings en masse^

          "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

          "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

          G 1 Reply Last reply
          0
          • W W Balboos GHB

            Rule One for copy/paste of code and stuff: First, paste into a featureless wort processor, like Notepad, to get rid of all the hidden features. You can make sure it only shows in your preferred font and crazy stuff is basically destroyed/replaced. I use this when I'm sent documents (like from M$Word), the content of which is supposed to be posted to a web page. Should go a long way in fixing your problems preemptively.

            Ravings en masse^

            "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

            "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

            G Offline
            G Offline
            GenJerDan
            wrote on last edited by
            #5

            I did, actually. I think my Notepad is set to UNICODE, though, so it happily left the characters as-is. :p

            We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

            R 1 Reply Last reply
            0
            • G GenJerDan

              I did, actually. I think my Notepad is set to UNICODE, though, so it happily left the characters as-is. :p

              We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

              R Offline
              R Offline
              RJOberg
              wrote on last edited by
              #6

              GenJerDan wrote:

              think my Notepad is set to UNICODE

              So mine is set to ANSI, but it still doesn't fix the characters. Tried it with all four possible txt formats in Notepad. I used to paste stuff in Notepad to remove all the silly characters and then one day it stopped working as expected. Notepad++ also started behaving in the same fashion which leads me to believe it is something system level. Haven't been able to figure out what changed and I'm still dealing with it. Ended up writing a little JS applet which replaces and sanitizes whatever I paste into it. :mad:

              1 Reply Last reply
              0
              • G GenJerDan

                I hate it when you copy some code from the web and, when you paste it, the quotation marks are wrong and you have to search and replace all the “ and ” with " and ". Yeah, not hard...but annoying. edit: The “ doesn't show up here as the incorrect opening quote. More weirdness.

                We won't sit down. We won't shut up. We won't go quietly away. YouTube, VidMe and My Mu[sic], Films and Windows Programs, etc. and FB

                J Offline
                J Offline
                Jacquers
                wrote on last edited by
                #7

                Or when you copy and paste and it includes line numbers :doh:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups