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
  1. Home
  2. The Lounge
  3. There are some people who probably shouldn't be encouraged to code

There are some people who probably shouldn't be encouraged to code

Scheduled Pinned Locked Moved The Lounge
helpdatabasetutorialquestionannouncement
15 Posts 11 Posters 2 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.
  • OriginalGriffO OriginalGriff

    I'm trying to help someone, who has a problem with inserting image data into a database. So I point him at one of my tips, which explains what he is doing wrong, and how to fix it. One line of my code is:

    Image myImage = Image.FromFile(@"D:\Temp\MyPic.jpg");

    But this doesn't work in his code, because it complains that the file doesn't exist. It's taken us two hours since then to get to the point where he shows me his version:

    Image myImage = Image.FromFile(@"Browse_Image_Location");//there error comes

    :doh: Please, somebody, anybody: remind me why we don't have positive vetting before letting people near computers?

    This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

    M Offline
    M Offline
    Manfred Rudolf Bihy
    wrote on last edited by
    #4

    For sure it would have been to much to ask for, to leave the original path in and add an comment at the end of the line like "change this path to point to your file". It's easier to make fun of people I guess, because they don't understand that this was what you meant by this useless string "Browse_Image_Location". Yeah, that's really much better. In my opinion some people just shouldn't tutor others. ;P Cheers! :^)

    "I had the right to remain silent, but I didn't have the ability!"

    Ron White, Comedian

    OriginalGriffO S J 3 Replies Last reply
    0
    • M Manfred Rudolf Bihy

      For sure it would have been to much to ask for, to leave the original path in and add an comment at the end of the line like "change this path to point to your file". It's easier to make fun of people I guess, because they don't understand that this was what you meant by this useless string "Browse_Image_Location". Yeah, that's really much better. In my opinion some people just shouldn't tutor others. ;P Cheers! :^)

      "I had the right to remain silent, but I didn't have the ability!"

      Ron White, Comedian

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #5

      I figured that anyone bright enough to find this site could work out that they needed to replace the string @"D:\Temp\MyPic.jpg" with the path to their own file...maybe I should lower my expectations when writing tips in future... :laugh:

      This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      C M 2 Replies Last reply
      0
      • M Manfred Rudolf Bihy

        For sure it would have been to much to ask for, to leave the original path in and add an comment at the end of the line like "change this path to point to your file". It's easier to make fun of people I guess, because they don't understand that this was what you meant by this useless string "Browse_Image_Location". Yeah, that's really much better. In my opinion some people just shouldn't tutor others. ;P Cheers! :^)

        "I had the right to remain silent, but I didn't have the ability!"

        Ron White, Comedian

        S Offline
        S Offline
        S Houghtelin
        wrote on last edited by
        #6

        How do I change this pointy path thingie? Is this something I can find in the control panel? I couldn't find it on Google. ;P

        It was broke, so I fixed it.

        M 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I figured that anyone bright enough to find this site could work out that they needed to replace the string @"D:\Temp\MyPic.jpg" with the path to their own file...maybe I should lower my expectations when writing tips in future... :laugh:

          This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

          C Offline
          C Offline
          Corporal Agarn
          wrote on last edited by
          #7

          OriginalGriff wrote:

          anyone bright enough to find this site

          Remember the backroom? :)

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            I figured that anyone bright enough to find this site could work out that they needed to replace the string @"D:\Temp\MyPic.jpg" with the path to their own file...maybe I should lower my expectations when writing tips in future... :laugh:

            This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

            M Offline
            M Offline
            Manfred Rudolf Bihy
            wrote on last edited by
            #8

            I think I misread you there, I thought you had put that silly string into the code sample. In case it was OP's doing just ignore my irrelevant post. Cheers!

            "I had the right to remain silent, but I didn't have the ability!"

            Ron White, Comedian

            OriginalGriffO 1 Reply Last reply
            0
            • S S Houghtelin

              How do I change this pointy path thingie? Is this something I can find in the control panel? I couldn't find it on Google. ;P

              It was broke, so I fixed it.

              M Offline
              M Offline
              Manfred Rudolf Bihy
              wrote on last edited by
              #9

              What, where, errhhmmm why. Wait ... No, still don't understand! What's up? :confused:

              "I had the right to remain silent, but I didn't have the ability!"

              Ron White, Comedian

              1 Reply Last reply
              0
              • M Manfred Rudolf Bihy

                I think I misread you there, I thought you had put that silly string into the code sample. In case it was OP's doing just ignore my irrelevant post. Cheers!

                "I had the right to remain silent, but I didn't have the ability!"

                Ron White, Comedian

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #10

                No problem! :laugh:

                This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  I'm trying to help someone, who has a problem with inserting image data into a database. So I point him at one of my tips, which explains what he is doing wrong, and how to fix it. One line of my code is:

                  Image myImage = Image.FromFile(@"D:\Temp\MyPic.jpg");

                  But this doesn't work in his code, because it complains that the file doesn't exist. It's taken us two hours since then to get to the point where he shows me his version:

                  Image myImage = Image.FromFile(@"Browse_Image_Location");//there error comes

                  :doh: Please, somebody, anybody: remind me why we don't have positive vetting before letting people near computers?

                  This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                  A Offline
                  A Offline
                  Andy Bantly
                  wrote on last edited by
                  #11

                  Meh, leave them alone. You do realize you are promoting that boys club elitism crap that gets us all looking like douchbags because we think we are something more than someone else. Perhaps you can feel this feeling internally. At least you didn't verbally insult him. You might push the next Linus out of the race

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    I'm trying to help someone, who has a problem with inserting image data into a database. So I point him at one of my tips, which explains what he is doing wrong, and how to fix it. One line of my code is:

                    Image myImage = Image.FromFile(@"D:\Temp\MyPic.jpg");

                    But this doesn't work in his code, because it complains that the file doesn't exist. It's taken us two hours since then to get to the point where he shows me his version:

                    Image myImage = Image.FromFile(@"Browse_Image_Location");//there error comes

                    :doh: Please, somebody, anybody: remind me why we don't have positive vetting before letting people near computers?

                    This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                    M Offline
                    M Offline
                    Marc Clifton
                    wrote on last edited by
                    #12

                    I suggest you send him over to the people coding in VB. Marc

                    Unit Testing Succinctly

                    1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      I'm trying to help someone, who has a problem with inserting image data into a database. So I point him at one of my tips, which explains what he is doing wrong, and how to fix it. One line of my code is:

                      Image myImage = Image.FromFile(@"D:\Temp\MyPic.jpg");

                      But this doesn't work in his code, because it complains that the file doesn't exist. It's taken us two hours since then to get to the point where he shows me his version:

                      Image myImage = Image.FromFile(@"Browse_Image_Location");//there error comes

                      :doh: Please, somebody, anybody: remind me why we don't have positive vetting before letting people near computers?

                      This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #13

                      I tried the "Browse_Image_Location" version on my computer and it worked fine.

                      1 Reply Last reply
                      0
                      • M Manfred Rudolf Bihy

                        For sure it would have been to much to ask for, to leave the original path in and add an comment at the end of the line like "change this path to point to your file". It's easier to make fun of people I guess, because they don't understand that this was what you meant by this useless string "Browse_Image_Location". Yeah, that's really much better. In my opinion some people just shouldn't tutor others. ;P Cheers! :^)

                        "I had the right to remain silent, but I didn't have the ability!"

                        Ron White, Comedian

                        J Offline
                        J Offline
                        Jean A Brandelero
                        wrote on last edited by
                        #14

                        NĂ¡... I remember my university class... Man... Some people should stay away from computers.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          I'm trying to help someone, who has a problem with inserting image data into a database. So I point him at one of my tips, which explains what he is doing wrong, and how to fix it. One line of my code is:

                          Image myImage = Image.FromFile(@"D:\Temp\MyPic.jpg");

                          But this doesn't work in his code, because it complains that the file doesn't exist. It's taken us two hours since then to get to the point where he shows me his version:

                          Image myImage = Image.FromFile(@"Browse_Image_Location");//there error comes

                          :doh: Please, somebody, anybody: remind me why we don't have positive vetting before letting people near computers?

                          This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre. Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

                          J Offline
                          J Offline
                          jschell
                          wrote on last edited by
                          #15

                          OriginalGriff wrote:

                          It's taken us two hours since then

                          Just curious why it took two hours before you looked at the code.

                          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