Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 23

Thread: Binary clock

  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Binary clock

    Duno if this will be "useful" and of benefit to others, but here: http://users.pandora.be/fourtyseven/clock2.htm

    (view source for code)

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's wicked .. if you don't mind I might make a "tiny subliminal" version of that - something that takes up maybe 50px by 50px with no labels - just dots that pulse and it does people's head in trying to work what it is ....

    Nicely done
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thats really cool and creative poring.
    does this sig match?

  • #4
    New Coder
    Join Date
    Jul 2003
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    One of the best eye candy yet. Great work!

  • #5
    Senior Coder
    Join Date
    Mar 2003
    Location
    OHIO
    Posts
    1,438
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    That's wicked .. if you don't mind I might make a "tiny subliminal" version of that - something that takes up maybe 50px by 50px with no labels - just dots that pulse and it does people's head in trying to work what it is ....

    Nicely done
    It looks cool but how does one actually tell time with it? LOL I need some instructions.

    MNS
    [size=1]"If you want to be "in the biz" you are going to have to roll with the changes or get out, basically."

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by MotherNatrsSon
    It looks cool but how does one actually tell time with it? LOL I need some instructions.

    MNS
    You mean you don't think in binary like the rest of us?

    Right now it reads 17:27

    Each square from left to right computes to be:

    Hours: 16-8-4-2-1
    Minutes: 32-16-8-4-2-1
    Seconds: 32-16-8-4-2-1
    Tenth of Seconds 8-4-2-1

    Adding up each black dot for a single row gives you the number of time units for that row.
    Last edited by Spookster; 08-19-2003 at 10:40 PM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    Senior Coder
    Join Date
    Mar 2003
    Location
    OHIO
    Posts
    1,438
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    You mean you don't think in binary like the rest of us?

    Right now it reads 15:27

    Each square from left to right computes to be:

    Hours: 16-8-4-2-1
    Minutes: 32-16-8-4-2-1
    Seconds: 32-16-8-4-2-1
    Tenth of Seconds 8-4-2-1

    Adding up each black dot for a single row gives you the number of time units for that row.
    Not yet. LOL I am still a "newbie"... I guess it is the military time that really threw me off. I wonder how many people other than coders can actually read it without the instructions?

    MNS
    [size=1]"If you want to be "in the biz" you are going to have to roll with the changes or get out, basically."

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    So basically the black dots are equivalent to 1's and the white dots are equivalent to 0's.

    So for example the number 51 in binary would be:

    Code:
    2^5 2^4 2^3 2^2 2^1 2^0  ---> 2's raised to a power
    
    32  16   8   4   2   1
    -----------------------
     1   1   0   0   1   1
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    Senior Coder
    Join Date
    Mar 2003
    Location
    OHIO
    Posts
    1,438
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Have to add a <tr> and some <td>'s on the top of the table with the values for each column and change the background color a little.

    Now it makes sense.
    Thanks!

    MNS
    [size=1]"If you want to be "in the biz" you are going to have to roll with the changes or get out, basically."

  • #10
    New to the CF scene
    Join Date
    Aug 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Very neat. Excellent job.

  • #11
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HAHAHAHAHAHAHAHAHA!!!!

    This is one of the coolest things I've ever seen! Haha! I think I'm gonna show it to some of my friends so that I can get that "What the hell is wrong with you" look...

  • #12
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    That's pretty great
    I like it

    Although I couldn't find a reason to have it on a website.
    What made you think of doing this?
    Shawn

  • #13
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice work. Very creative.

    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #14
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Instead of a clock that gets its time from the computer or server I would like it to get the EXACT time from the Atomic Clock, where ever that may be located.

    Does anyone know if this is possible.

    Leonard Whistler
    www.stubby.ca

  • #15
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    You could probably have the server pull the time from an Atomic clock, tapping into a Atomic Clock driven time server. Don't make it pull the time too often, however (update the server clock once an hour or so, and base the time from the server clock), and make sure you correct for the timezone of the user (we're in a global world, you know).
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •