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. Why Microsoft, and I, suck today. Mostly Microsoft though.

Why Microsoft, and I, suck today. Mostly Microsoft though.

Scheduled Pinned Locked Moved The Lounge
csharpwpfhelpdatabasewinforms
22 Posts 12 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.
  • H Henry Minute

    I needed a database with images for testing something I am working on. Aha! I thought, Good old Northwind has images in the Employees table, I'll use that. Could I get the images to display? Could I *!%^! Two days ago I started a simple 1 Form WPF test App. I have just finished it. Two pigging days! Just because Microsoft, for reasons best known to themselves, tacked 78 bytes of garbage on the front of those images and have never (so far as I know) corrected the error, if it was an error, or corrected the data if that's where the problem lies. Two whole days (well on and off, anyway) of writing and re-writing ValueConverters which would probably have worked in their first incarnation. Two days of trying different binding schemes. Two days I will never get back!:mad: *!%^ you Microsoft, you suck Donkey-Balls. Oh, and why do I suck? Well in August 2005 I encountered this same problem in a WinForms thing I was working on. Silly me, only six years ago and I'd forgotten. I must be going senile. Gibber, gibber........................... ;P :laugh:

    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

    R Offline
    R Offline
    Roger Wright
    wrote on last edited by
    #11

    It's not too late, Henry. I've heard that, if you nightly consume orally the gonads of seven hundred light-colored moths, you can avert the memory loss associated with aging. Please, I beg you, lest we be deprived of the benefit of your ancient wisdom, buy a bug zapper and a good fork, or even chopsticks if that is your preference, and get to chowing down on mothy goodness. I have a lady friend who owns a Belgian Husky which eats a ton of moths every night when the bug zapper is on, and she's the smartest dog I've ever known. You can't go wrong with empirical evidence like this, and the CodeProject community can't afford to lose your wisdom.

    Will Rogers never met me.

    H 1 Reply Last reply
    0
    • H Henry Minute

      OriginalGriff wrote:

      It's a good thing you didn't post this in Q&A - you would have been told to Google[^]

      Which is one of the reasons I didn't ask. I hadn't yet exhausted my options. I actually found the solution by searching but it would have taken me ages to search about Northwind since I perceived the problem to be elsewhere. I actually found it when one of my attempts at a ValueConverter threw an error. Searching on the error message threw up the 78 byte thing in a response about two thirds of the way through a fairly long thread from the third page of hits. A sort of "You're not using the Northwind images are you? here's a link to help if you are." throw away comment.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

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

      It's a bugger when that happens - you get so focussed on one idea that you don't think to take a step back and look at the problem from the outside. Sometimes, I wish I still smoked, to give me just such a step away from the code face. Not enough to actually take it up again, though...

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "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

      B 1 Reply Last reply
      0
      • R Roger Wright

        It's not too late, Henry. I've heard that, if you nightly consume orally the gonads of seven hundred light-colored moths, you can avert the memory loss associated with aging. Please, I beg you, lest we be deprived of the benefit of your ancient wisdom, buy a bug zapper and a good fork, or even chopsticks if that is your preference, and get to chowing down on mothy goodness. I have a lady friend who owns a Belgian Husky which eats a ton of moths every night when the bug zapper is on, and she's the smartest dog I've ever known. You can't go wrong with empirical evidence like this, and the CodeProject community can't afford to lose your wisdom.

        Will Rogers never met me.

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #13

        Roger Wright wrote:

        I have a lady friend who owns a Belgian Husky

        I wasn't aware that Luc had a sore throat. I hope he feels better soon.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

        G 1 Reply Last reply
        0
        • L Luc Pattyn

          You've spent two days on page 3? :omg:

          Luc Pattyn [My Articles] Nil Volentibus Arduum

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #14

          Well, she was a big girl!

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            It's a bugger when that happens - you get so focussed on one idea that you don't think to take a step back and look at the problem from the outside. Sometimes, I wish I still smoked, to give me just such a step away from the code face. Not enough to actually take it up again, though...

            Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #15

            Wander down to the water cooler/coffee machine and get yourself a drink, and wander around with that for five minutes to think. You can take 'smoking breaks' without a cancer stick.

            OriginalGriffO 1 Reply Last reply
            0
            • B BobJanova

              Wander down to the water cooler/coffee machine and get yourself a drink, and wander around with that for five minutes to think. You can take 'smoking breaks' without a cancer stick.

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

              I know what you mean - and it doesn't affect me, since I work from home anyway - but wandering around with a drink in your hand is not seen as "useful work" in most companies, while giving yourself cancer is. Strange, but true.

              Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

              "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

              R 1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                I know what you mean - and it doesn't affect me, since I work from home anyway - but wandering around with a drink in your hand is not seen as "useful work" in most companies, while giving yourself cancer is. Strange, but true.

                Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #17

                I've not found that - most employers will be quite considerate. Especially if you mention you're giving up smoking. Of course, you could always say: "So I'm allowed a break to smoke but not for water/other reasons. Can I have that in writing?". I suspect they'll see the light very quickly, for legal reasons.

                1 Reply Last reply
                0
                • A AspDotNetDev

                  Henry Minute wrote:

                  Microsoft, for reasons best known to themselves, tacked 78 bytes of garbage on the front of those images

                  Sure that's not something like a bitmap header?

                  Somebody in an online forum wrote:

                  INTJs never really joke. They make a point. The joke is just a gift wrapper.

                  H Offline
                  H Offline
                  Henry Minute
                  wrote on last edited by
                  #18

                  I am aware of bitmap headers of various descriptions and am pretty sure that this GARBAGE is not a bitmap header (or at least not one that I have seen before). Just for you I have gone to the trouble and expense of taking time out of my busy schedule :zzz: and writing and including in my application a Hexdumper as well as the image display.

                  0010 - FF FF FF FF 42 69 74 6D - 61 70 20 49 6D 61 67 65 ÿÿÿÿBitmap Image
                  0020 - 00 50 61 69 6E 74 2E 50 - 69 63 74 75 72 65 00 01 .Paint.Picture..
                  0030 - 05 00 00 02 00 00 00 07 - 00 00 00 50 42 72 75 73 ...........PBrus
                  0040 - 68 00 00 00 00 00 00 00 - 00 00 20 54 00 00 42 4D h......... T

                  This is followed by the standard "BM" header.

                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                  A 1 Reply Last reply
                  0
                  • H Henry Minute

                    Roger Wright wrote:

                    I have a lady friend who owns a Belgian Husky

                    I wasn't aware that Luc had a sore throat. I hope he feels better soon.

                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                    G Offline
                    G Offline
                    ghle
                    wrote on last edited by
                    #19

                    Now THAT made me laugh! :beer:

                    Gary

                    1 Reply Last reply
                    0
                    • H Henry Minute

                      I am aware of bitmap headers of various descriptions and am pretty sure that this GARBAGE is not a bitmap header (or at least not one that I have seen before). Just for you I have gone to the trouble and expense of taking time out of my busy schedule :zzz: and writing and including in my application a Hexdumper as well as the image display.

                      0010 - FF FF FF FF 42 69 74 6D - 61 70 20 49 6D 61 67 65 ÿÿÿÿBitmap Image
                      0020 - 00 50 61 69 6E 74 2E 50 - 69 63 74 75 72 65 00 01 .Paint.Picture..
                      0030 - 05 00 00 02 00 00 00 07 - 00 00 00 50 42 72 75 73 ...........PBrus
                      0040 - 68 00 00 00 00 00 00 00 - 00 00 20 54 00 00 42 4D h......... T

                      This is followed by the standard "BM" header.

                      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                      A Offline
                      A Offline
                      AspDotNetDev
                      wrote on last edited by
                      #20

                      Seems you are right, though it's not exactly garbage. Seems the image has been OLE wrapped (Object Linking and Embedding).

                      Somebody in an online forum wrote:

                      INTJs never really joke. They make a point. The joke is just a gift wrapper.

                      H 1 Reply Last reply
                      0
                      • H Henry Minute

                        Ah yes but I wasn't stuck. I was still taking forward steps. I still had ideas I hadn't tried. If I hadn't solved it I would have asked. Probably not in QA though. I perceived the problem to be WPFish so I probably would have asked in the WPF forum which could have turned out to be another boo-boo. :laugh:

                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                        K Offline
                        K Offline
                        KP Lee
                        wrote on last edited by
                        #21

                        Congratulations on being self-reliant. You dinosaur you! (I'm a fossel too.) PS I know I'm killing English, just too lazy to look it up.

                        1 Reply Last reply
                        0
                        • A AspDotNetDev

                          Seems you are right, though it's not exactly garbage. Seems the image has been OLE wrapped (Object Linking and Embedding).

                          Somebody in an online forum wrote:

                          INTJs never really joke. They make a point. The joke is just a gift wrapper.

                          H Offline
                          H Offline
                          Henry Minute
                          wrote on last edited by
                          #22

                          If I don't want it, it's garbage! :-D Didn't think of OLE. Good shot sir!

                          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                          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