clock - Dave's Blog

Search
My timeline on Mastodon

Tweet from David_Risney

2016 Jan 24, 3:13
Unicode includes 24 clock face code points, so obv here's my Unicode clock: http://david-risney.github.io/UnicodeClock/ 
PermalinkComments

Unicode Clock

2016 Jan 24, 2:00

I've made a Unicode Clock in JavaScript.

Unicode has code points for all 30 minute increments of clock faces. This is a simple project to display the one closest to the current time written in JavaScript.

Because the code points are all above 0xFFFF, I make use of some ES6 additions. I use the \u{XXXXXX} style escape sequence since the old style JavaScript escape sequence \uXXXX only supports code points up to 0xFFFF. I also use the method String.codePointAt rather than String.charCodeAt because the code points larger than 0xFFFF are represented in JavaScript strings using surrogate pairs and charCodeAt gives the surrogate value rather than codePointAt which gives the code point represented by the pair of surrogates.

"🕛".codePointAt(0)
128347
"🕛".charCodeAt(0)
55357

🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🕚🕛🕜🕝🕞🕟🕠🕡🕢🕣🕤🕥🕦🕧

The ordering of the code points does not make it simple to do this. I initially guessed the first code point in the range would be 12:00 followed by 12:30, 1:00 and so on. But actually 1:00 is first followed by all the on the hour times then all the half hour times.

PermalinkCommentsjavascript Unicode

Percent Clcok Windows Store App Development Notes

2013 Jul 11, 1:00

My third completed Windows Store app is Percent Clock which displays portions of a time span like the time of the day or time until your next birthday, as a percentage. This was a small project I had previously started as a webpage and converted and finished as an HTML JavaScript Windows Store app.

The only somewhat interesting aspect of this app is that its the first app for which I tried charging. I picked the minimum amount for price 1.49 USD as it is a simple app and unsurprisingly it has sold very poorly. I'm considering releasing new instances of the app for specific scenarios:

  • Death Clock: viewing your current age with respect to your life expectancy as a percentage.
  • New Year Countdown: percentage of the year until New Years.
PermalinkCommentsdevelopment javascript technical windows windows-store

laughingsquid: Back to the Future Time Circuit Replica I would...

2012 Jul 3, 2:38


laughingsquid:

Back to the Future Time Circuit Replica

I would love this as a clock.

PermalinkCommentsback-to-the-future bttf toy diy

Brutal Mario ROM Hack - Play This Thing!

2009 Oct 25, 5:50Every level has its own twist. In one, P switches stop time as in enemies freeze as well as the level clock, which starts at 60 seconds. The enemies are taken from previous Mario games, Donkey Kong Country, Chrono Trigger, and others. Entertaining!
PermalinkCommentsgame mario download hack rom emulate nes nintendo japanese

TrendsNow | World Time Clock

2009 Jul 27, 4:23"To find the local time in another time zone, simply roll the clock so the city representing that time zone is on top."
PermalinkCommentsclock time timezone

Where are you in the movie?

2009 May 5, 9:38"If we started a movie on the day you were born, and stretched it over your lifespan, this is where you'd be in that movie. So if you're a teenager, you might see Luke arguing with Uncle Owen, or Cameron making a phony phone call to Ed Rooney. If you're a retiree, you might see the Marshmallow Man, or Toto pulling away the curtain. And if you're in your mid-thirties, you might be relieved to know that Ferris is still eating lunch, and the Millenium Falcon hasn't left Tatooine."PermalinkCommentshumor clock calendar health movie

A Bulbdial Clock - Evil Mad Scientist Laboratories

2009 Apr 9, 8:56Someone implemented the Ironic Sans artificial sundial clock concept! "Last year David Friedman published on his blog Ironic Sans an interesting design concept for something that he called The Bulbdial Clock. That's like a sundial, but with better resolution-- not just an hour hand, but a minute and second hand as well, each given as a shadow from moving artificial light sources (bulbs). We've recently put together a working bulbdial clock, with an implementation somewhat different from that of the original concept."PermalinkCommentshowto diy clock led sundial via:swannman

The Old New Thing : Clap and the filter graph claps with you

2009 Apr 7, 12:45"First, you started up the application and picked a video clip. The video clip just sat there. As you started clapping, the video clip started playing. If you clapped at about 80 beats per minute, the video clip played at its normal speed. If you clapped faster, the video clip ran faster. If you clapped slower, the video clip ran slower. If you stopped clapping, the video clip stopped. It was freaky cool. Totally useless, but freaky cool."PermalinkCommentshumor clap video raymond-chen filter-graph reference-clock

Is there a Gadget API for the new home screen?

2008 Nov 15, 12:45Lame: "Question: Is it possible for us to write custom gadgets for the home screen like the clock or the Google search box? Is there a public API for this purpose? ... No, such an API does not exist and won't exist in 1.0."PermalinkCommentsdevelopment google android g1 howto

Earplug Alarm Clock

2008 Jul 9, 1:37

Dirt PileIn my previous home, just after I moved in, my neighbor which was the city of Redmond's various city government buildings, decided to build a parking structure. This was maybe 30 feet from my window, lasted for at least a year and would regularly wake me up at seven or eight in the morning. Determined to not be so punctual for work, I got earplugs which meant in addition to not hearing the construction outside, I couldn't hear my alarm. I had an idea for a combination ear plug, headphone, alarm clock that I never did anything with, except to write down the phrase "earplug / headphone / alarm clock" on a list that I just now found. In retrospect, I think this problem might be too specific to result in my earplug alarm clock selling well.

PermalinkCommentsidea earplug headphone alarm clock random nontechnical

AngelaBuilds - BuildStuff

2008 Mar 23, 3:39A cool clock that is essentially a robot operating an Etch-a-Sketch. Zang!PermalinkCommentsangela-yuan clock build diy art etch-a-sketch humor robot

Chumby will be cool, despite its name

2008 Feb 19, 1:51PermalinkCommentschumby review flash linux

Crossing Four Way Stops Fast and Searching Closed Caption MCE Videos: More Stolen Thoughts

2008 Jan 22, 9:56

More ideas stolen from me in the same vein as my stolen OpenID thoughts.

Fast Pedestrian Crossing on Four Way Stops. In college I didn't have a car and every weekend I had weekly poker with friends who lived nearby so I would end up waiting to cross from one corner of a traffic lit four way stop to the opposite corner. Waiting there in the cold gave me plenty of time to consider the fastest method of getting to the opposite corner of a four-way stop. My plan was to hit the pedestrian crossing button for both directions and travel on the first one available. This only seems like a bad choice if the pedestrian crossing signal travels clockwise or counter clockwise around the four way stop. In those two cases its better to take the later of the two pedestrian signal crossings, but I have yet to see those two patterns on a real life traffic stop. I decided recently to see if my plan was actually sound and looked up info on traffic signals. But the info didn't say much other than "its complicated" and "it depends" (I'm paraphrasing). Then I found some guy's analysis of this problem. So I'm done with this and I'll continue pressing both buttons and crossing on the first pedestrian signal. Incidentally on one such night when I was waiting to cross this intersection I heard a loud multi-click sound and realized that the woman in the SUV waiting to cross the intersection next to me had just locked her doors. I guess my thinking-about-crossing-the-street face is intimidating.

Windows Searching Windows Media Center Recorded TV's Closed Captions. An Ars-Technica article on a fancy DVR described one of the DVRs features: full text search over the subtitles of the recorded TV shows. I thought implementing this for Windows Media Center recorded TV shows and Windows Search would be an interesting project to learn about video files, and extending Windows Search. As it turns out though some guy, Stephen Toub implemented Windows Search over MCE closed captions already. Stephen Toub's article is very long and describes some other very interesting related projects including 'summarizing video files' which you may want to read.

PermalinkCommentsstolen-thoughts windows search mce windows traffic closed captions four-way-stop windows-media-center

ThinkGeek :: SnūzNLūz - Wifi Donation Alarm Clock

2008 Jan 14, 10:24Alarm clock that donates money to a charity you dislike when you hit the snooze button.PermalinkCommentsalarm clock humor geek gadget gift thinkgeek wifi wireless product alarm-clock

Amateur Time Hackers Play With Atomic Clocks at Home

2007 Dec 12, 9:21Article on amateur atomic clock enthusiastsPermalinkCommentsclock time wired geek technology science atomic-clock article via:boingboing

Undercover restorers fix Paris landmark's clock | Art, Architecture & Design | Guardian Unlimited Arts

2007 Nov 26, 12:32Guerrilla clockmakers fix famous Paris clock. Andrew says: "It seems a team of clockmakers broke into the Pantheon in Paris in September 2005 and spent a year fixing the historic and neglected clock, which had been abandoned by the authorities. They werePermalinkCommentsclock culture history humor paris france via:boingboing cultural-disobediance

chumby

2007 Oct 17, 10:49Chumby is a hackable little wifi computer. Its like an expensive alarm clock that also shows you stuff off the Internet. I kind of want one.PermalinkCommentspurchase shopping wifi wireless opensource flash design hardware chumby

ThinkGeek :: Clocky Robotic Alarm

2007 May 15, 11:19Video of clocky the robot alarm clock. When it alarms it runs and hides forcing you to get up and go after it.PermalinkCommentsalarm purchase shopping nerd robot video

nanda - robot alarmclock

2007 Apr 17, 11:03A robotic alarmclock that runs and hides if you don't get up in time.PermalinkCommentsdesign furniture robot toys time alarm clock shopping humor
Older Entries Creative Commons License Some rights reserved.