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. Hmm...

Hmm...

Scheduled Pinned Locked Moved The Lounge
htmldatabasequestion
25 Posts 13 Posters 3 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 Mark_Wallace

    It's Programmer Day[^] today. Developers and Software Engineers need not apply

    And who is the programmer the day's for, anyway?

    J Offline
    J Offline
    Johnny J
    wrote on last edited by
    #3

    Cool, but I don't get it... 11111111 bin = 255 dec. So why celebrate it on the 256th day of the year?

    D M T T 4 Replies Last reply
    0
    • J Johnny J

      Cool, but I don't get it... 11111111 bin = 255 dec. So why celebrate it on the 256th day of the year?

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #4

      Because there is no Day Zero.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

      G 1 Reply Last reply
      0
      • J Johnny J

        Cool, but I don't get it... 11111111 bin = 255 dec. So why celebrate it on the 256th day of the year?

        M Offline
        M Offline
        Mark_Wallace
        wrote on last edited by
        #5

        Johnny J. wrote:

        Cool, but I don't get it... 11111111 bin = 255 dec.

        It's worse than you think: there are only 31 days in Dec!

        I wanna be a eunuchs developer! Pass me a bread knife!

        J 1 Reply Last reply
        0
        • J Johnny J

          Cool, but I don't get it... 11111111 bin = 255 dec. So why celebrate it on the 256th day of the year?

          T Offline
          T Offline
          The Man from U N C L E
          wrote on last edited by
          #6

          Well, it is the 256th day as non-programers see it, but if we were to select that day from the zero indexed array of days, which we call year, it would of be referenced as this.Year[255] :)

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

          J F N 3 Replies Last reply
          0
          • T The Man from U N C L E

            Well, it is the 256th day as non-programers see it, but if we were to select that day from the zero indexed array of days, which we call year, it would of be referenced as this.Year[255] :)

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

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

            OK, that's true - didn't think of that... :) I'll buy that![^]

            1 Reply Last reply
            0
            • J Johnny J

              Cool, but I don't get it... 11111111 bin = 255 dec. So why celebrate it on the 256th day of the year?

              T Offline
              T Offline
              Tom Deketelaere
              wrote on last edited by
              #8

              http://www.programmerday.info/FAQ.html[^] Explained on the site itself :)

              J 1 Reply Last reply
              0
              • M Mark_Wallace

                Johnny J. wrote:

                Cool, but I don't get it... 11111111 bin = 255 dec.

                It's worse than you think: there are only 31 days in Dec!

                I wanna be a eunuchs developer! Pass me a bread knife!

                J Offline
                J Offline
                Johnny J
                wrote on last edited by
                #9

                Seems like the time to dust off This old joke[^] :)

                1 Reply Last reply
                0
                • T Tom Deketelaere

                  http://www.programmerday.info/FAQ.html[^] Explained on the site itself :)

                  J Offline
                  J Offline
                  Johnny J
                  wrote on last edited by
                  #10

                  Missed that. Thanks for enlightning me, Tom

                  1 Reply Last reply
                  0
                  • T The Man from U N C L E

                    Well, it is the 256th day as non-programers see it, but if we were to select that day from the zero indexed array of days, which we call year, it would of be referenced as this.Year[255] :)

                    If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                    F Offline
                    F Offline
                    ftw melvin
                    wrote on last edited by
                    #11

                    I think we are safe to abstract the implementation of 'this.year' because the value held at this.year[255] (zero based) remains the same as this.year[256] (one based) and the 256th row if we do a COBOL style start (on 1 Jan) and then a sequential read until 256 days have been read. The 256th day of the year will always be the same. Except on leap years.

                    "If you reward everyone, there will not be enough to go around, so you offer a reward to one in order to encourage everyone." Mei Yaochen in the 'Doing Battle' section of Sun Tzu's: Art of War. .

                    R 1 Reply Last reply
                    0
                    • M Mark_Wallace

                      It's Programmer Day[^] today. Developers and Software Engineers need not apply

                      And who is the programmer the day's for, anyway?

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

                      If people could sign it, previous year's 31 st Dec could be every year's Programmer's Day.

                      ...byte till it megahertz...

                      M 1 Reply Last reply
                      0
                      • F ftw melvin

                        I think we are safe to abstract the implementation of 'this.year' because the value held at this.year[255] (zero based) remains the same as this.year[256] (one based) and the 256th row if we do a COBOL style start (on 1 Jan) and then a sequential read until 256 days have been read. The 256th day of the year will always be the same. Except on leap years.

                        "If you reward everyone, there will not be enough to go around, so you offer a reward to one in order to encourage everyone." Mei Yaochen in the 'Doing Battle' section of Sun Tzu's: Art of War. .

                        R Offline
                        R Offline
                        Richard A Dalton
                        wrote on last edited by
                        #13

                        [ftw]melvin wrote:

                        I think we are safe to abstract the implementation of 'this.year' because the value held at this.year[255] (zero based) remains the same as this.year[256] (one based) and the 256th row if we do a COBOL style start (on 1 Jan) and then a sequential read until 256 days have been read. The 256th day of the year will always be the same. Except on leap years.

                        When I find myself reading and understanding something like that, I have to wonder how I ever managed to marry and reproduce. -Rd

                        D 1 Reply Last reply
                        0
                        • L Lost User

                          If people could sign it, previous year's 31 st Dec could be every year's Programmer's Day.

                          ...byte till it megahertz...

                          M Offline
                          M Offline
                          Mark_Wallace
                          wrote on last edited by
                          #14

                          bleedingfingers wrote:

                          If people could sign it, previous year's 31 st Dec could be every year's Programmer's Day.

                          I'd rather use unsigned integers, because that naturally excludes Java wallahs, without going through the stress of having to break it to them that they're not real programmers.

                          I wanna be a eunuchs developer! Pass me a bread knife!

                          L 1 Reply Last reply
                          0
                          • M Mark_Wallace

                            bleedingfingers wrote:

                            If people could sign it, previous year's 31 st Dec could be every year's Programmer's Day.

                            I'd rather use unsigned integers, because that naturally excludes Java wallahs, without going through the stress of having to break it to them that they're not real programmers.

                            I wanna be a eunuchs developer! Pass me a bread knife!

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

                            Even otherwise, isn't binary the basic number system for the computers? That would have to make it 1st or 2nd of Jan of every year. That would show a bit of real character.

                            ...byte till it megahertz...

                            1 Reply Last reply
                            0
                            • T The Man from U N C L E

                              Well, it is the 256th day as non-programers see it, but if we were to select that day from the zero indexed array of days, which we call year, it would of be referenced as this.Year[255] :)

                              If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

                              N Offline
                              N Offline
                              NormDroid
                              wrote on last edited by
                              #16

                              Hence VB users wont be celebrating it.

                              Two heads are better than one.

                              D 1 Reply Last reply
                              0
                              • N NormDroid

                                Hence VB users wont be celebrating it.

                                Two heads are better than one.

                                D Offline
                                D Offline
                                Dalek Dave
                                wrote on last edited by
                                #17

                                Harsh!

                                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                N 1 Reply Last reply
                                0
                                • D Dalek Dave

                                  Because there is no Day Zero.

                                  ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                  G Offline
                                  G Offline
                                  Gary Wheeler
                                  wrote on last edited by
                                  #18

                                  January 1st is day 00000000.

                                  Software Zen: delete this;

                                  D 1 Reply Last reply
                                  0
                                  • G Gary Wheeler

                                    January 1st is day 00000000.

                                    Software Zen: delete this;

                                    D Offline
                                    D Offline
                                    Dalek Dave
                                    wrote on last edited by
                                    #19

                                    Yes, I meant there was no day zero in history. So for Actual Dates rather than numbered by computer dates, day one is number 1. There was no Year Zero either, it ran from 1AD to 1AD. Don't forget that there are 13 months in a year and it is the year 2003. (If you live in Ethiopia).

                                    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                    D P 2 Replies Last reply
                                    0
                                    • D Dalek Dave

                                      Harsh!

                                      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                      N Offline
                                      N Offline
                                      NormDroid
                                      wrote on last edited by
                                      #20

                                      But true!

                                      Two heads are better than one.

                                      1 Reply Last reply
                                      0
                                      • D Dalek Dave

                                        Yes, I meant there was no day zero in history. So for Actual Dates rather than numbered by computer dates, day one is number 1. There was no Year Zero either, it ran from 1AD to 1AD. Don't forget that there are 13 months in a year and it is the year 2003. (If you live in Ethiopia).

                                        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                                        D Offline
                                        D Offline
                                        Dan Neely
                                        wrote on last edited by
                                        #21

                                        Dalek Dave wrote:

                                        There was no Year Zero either, it ran from 1AD to 1AD.

                                        :doh:

                                        3x12=36 2x12=24 1x12=12 0x12=18

                                        1 Reply Last reply
                                        0
                                        • R Richard A Dalton

                                          [ftw]melvin wrote:

                                          I think we are safe to abstract the implementation of 'this.year' because the value held at this.year[255] (zero based) remains the same as this.year[256] (one based) and the 256th row if we do a COBOL style start (on 1 Jan) and then a sequential read until 256 days have been read. The 256th day of the year will always be the same. Except on leap years.

                                          When I find myself reading and understanding something like that, I have to wonder how I ever managed to marry and reproduce. -Rd

                                          D Offline
                                          D Offline
                                          Dan Neely
                                          wrote on last edited by
                                          #22

                                          Richard A. Dalton wrote:

                                          When I find myself reading and understanding something like that, I have to wonder how I ever managed to marry and reproduce.

                                          Have you done paternity tests?

                                          3x12=36 2x12=24 1x12=12 0x12=18

                                          R 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