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. WTF! Chrome this time

WTF! Chrome this time

Scheduled Pinned Locked Moved The Lounge
csharpcomsysadminquestion
25 Posts 11 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.
  • M markkuk

    Chrome does the correct conversion between decimal and dotted-quad representations[^] of the IPv4 address, so where's the WTF? :confused:

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #11

    markkuk wrote:

    Chrome does the correct conversion between decimal and dotted-quad representations[^] of the IPv4 address, so where's the WTF? :confused:

    What I asked above, 7 minutes ago![^]

    Regards, Nish


    My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

    M 1 Reply Last reply
    0
    • N Nish Nishant

      There is nothing WTF about that. That's the DWORD representation of the IP address. Not a bug in Chrome. All decent web browsers and HTTP clients would know how to convert a DWORD address to an IP address form. Or did you mean your proxy behavior to be the WTF here?

      Regards, Nish


      My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #12

      Nishant Sivakumar wrote:

      There is nothing WTF about that. That's the DWORD representation of the IP address. Not a bug in Chrome. All decent web browsers and HTTP clients would know how to convert a DWORD address to an IP address form.

      Wow, first time I have ever heard or came across this. Why would you want such a feature though?

      IronScheme
      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

      N 1 Reply Last reply
      0
      • M markkuk

        Chrome does the correct conversion between decimal and dotted-quad representations[^] of the IPv4 address, so where's the WTF? :confused:

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #13

        markkuk wrote:

        so where's the WTF?

        No WTF then I guess, just blissful ignorance on my part ;P

        IronScheme
        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

        N 1 Reply Last reply
        0
        • L leppie

          Nishant Sivakumar wrote:

          There is nothing WTF about that. That's the DWORD representation of the IP address. Not a bug in Chrome. All decent web browsers and HTTP clients would know how to convert a DWORD address to an IP address form.

          Wow, first time I have ever heard or came across this. Why would you want such a feature though?

          IronScheme
          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #14

          leppie wrote:

          Wow, first time I have ever heard or came across this.
           
          Why would you want such a feature though?

          Well that was the original form of the number. The dotted form is for human convenience. So I guess from those old days browsers had code to do the conversion as required.

          Regards, Nish


          My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

          1 Reply Last reply
          0
          • L leppie

            markkuk wrote:

            so where's the WTF?

            No WTF then I guess, just blissful ignorance on my part ;P

            IronScheme
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #15

            leppie wrote:

            No WTF then I guess, just blissful ignorance on my part ;-P

            Yeah this didn't turn out to be of those awesome "leppie crashes visual studio" threads that casts you in ultimate glory! :)

            Regards, Nish


            My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

            L 1 Reply Last reply
            0
            • N Nish Nishant

              leppie wrote:

              No WTF then I guess, just blissful ignorance on my part ;-P

              Yeah this didn't turn out to be of those awesome "leppie crashes visual studio" threads that casts you in ultimate glory! :)

              Regards, Nish


              My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #16

              You win some, you lose some ;P

              IronScheme
              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

              1 Reply Last reply
              0
              • M markkuk

                Chrome does the correct conversion between decimal and dotted-quad representations[^] of the IPv4 address, so where's the WTF? :confused:

                P Offline
                P Offline
                peterchen
                wrote on last edited by
                #17

                WTFEBKAC

                FILETIME to time_t
                | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                1 Reply Last reply
                0
                • L leppie

                  OriginalGriff wrote:

                  I just tried pasting 805241 into my Chrome address bar - and it goes to a search for that number. Nothing mysterious there.

                  Try /805241/ . Does it on home PC too.

                  IronScheme
                  ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

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

                  Doesn't surprise me:

                  Decimal 805241
                  = Hex 0C4579
                  = Bytes 00 0C 45 79
                  = IP 0. 12.073.121

                  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

                    Doesn't surprise me:

                    Decimal 805241
                    = Hex 0C4579
                    = Bytes 00 0C 45 79
                    = IP 0. 12.073.121

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

                    R Offline
                    R Offline
                    RChin
                    wrote on last edited by
                    #19

                    how did think to...oh never mind.


                    I Dream of Absolute Zero

                    OriginalGriffO 1 Reply Last reply
                    0
                    • R RChin

                      how did think to...oh never mind.


                      I Dream of Absolute Zero

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

                      You mean you can't do decimal <=> hex conversion in your head? :omg:

                      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

                      S 1 Reply Last reply
                      0
                      • N Nish Nishant

                        markkuk wrote:

                        Chrome does the correct conversion between decimal and dotted-quad representations[^] of the IPv4 address, so where's the WTF? :confused:

                        What I asked above, 7 minutes ago![^]

                        Regards, Nish


                        My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

                        M Offline
                        M Offline
                        Marc A Brown
                        wrote on last edited by
                        #21

                        Wouldn't it have been easier just to type "Repost!"? :laugh:

                        N 1 Reply Last reply
                        0
                        • M Marc A Brown

                          Wouldn't it have been easier just to type "Repost!"? :laugh:

                          N Offline
                          N Offline
                          Nish Nishant
                          wrote on last edited by
                          #22

                          Marc A. Brown wrote:

                          Wouldn't it have been easier just to type "Repost!"? :laugh:

                          Programmers - doing simple things the hard way since 1965! :-D

                          Regards, Nish


                          My technology blog: voidnish.wordpress.com You've gotta read this : Using lambdas - C++ vs. C# vs. C++/CX vs. C++/CLI

                          1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            You mean you can't do decimal <=> hex conversion in your head? :omg:

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

                            S Offline
                            S Offline
                            Single Step Debugger
                            wrote on last edited by
                            #23

                            I can up to 255 with a lot of difficulties, I just picture in my head hex-dec matrix with the first row and the first column in the matrix taking all hex digits and the decimal numbers 0-15 inside. But as I said it takes me some time.

                            There is only one Vera Farmiga and Salma Hayek is her prophet! Advertise here – minimum three posts per day are guaranteed.

                            OriginalGriffO 1 Reply Last reply
                            0
                            • L leppie

                              TorstenH. wrote:

                              why are you then arguing about chrome?

                              Read again... Failing to understand it, notice the transformation when you copy a number and paste in chrome. The proxy is not even involved yet... Do you understand now, or do you need more layman language?

                              IronScheme
                              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                              T Offline
                              T Offline
                              TorstenH
                              wrote on last edited by
                              #24

                              great so far - and where is the chrome problem in this? You should be able to describe a problem. it's your job.

                              regards Torsten I never finish anyth...

                              1 Reply Last reply
                              0
                              • S Single Step Debugger

                                I can up to 255 with a lot of difficulties, I just picture in my head hex-dec matrix with the first row and the first column in the matrix taking all hex digits and the decimal numbers 0-15 inside. But as I said it takes me some time.

                                There is only one Vera Farmiga and Salma Hayek is her prophet! Advertise here – minimum three posts per day are guaranteed.

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

                                I have been using hex since my first computing job (a very long time ago) so it has just "stuck". Mind you, I used to add up my shopping basket in the queue in the days before barcodes, so there is probably something wrong with my brain anyway! In this case, 800000 in decimal is in the Cxxxx range in hex, and C is 12, so it kinda leapt out at me.

                                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

                                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