aug page 3 - Dave's Blog

Search
My timeline on Mastodon

laughingsquid: hi-Call, A Bluetooth Handset Glove

2012 Sep 26, 6:24


laughingsquid:

hi-Call, A Bluetooth Handset Glove

PermalinkCommentshumor phone cell-phone blue-tooth video

laughingsquid: The Curious Government of the City of London...

2012 Sep 21, 6:10


laughingsquid:

The Curious Government of the City of London (not to be confused with London)

PermalinkCommentslondon politics history video humor

laughingsquid: Photos: MakerBot Retail Store in Manhattan

2012 Sep 20, 2:14


laughingsquid:

Photos: MakerBot Retail Store in Manhattan

PermalinkComments3d-printer maker-bot retail

laughingsquid: Amp Tee, A Geeky T-Shirt Bringing Together Music...

2012 Sep 18, 2:37


laughingsquid:

Amp Tee, A Geeky T-Shirt Bringing Together Music And HTML Code

PermalinkCommentshumor html ampersand amp shirt t-shirt

laughingsquid: Goldfish Phone Booth Aquariums Installed in...

2012 Sep 14, 4:27


laughingsquid:

Goldfish Phone Booth Aquariums Installed in Japan by ‘Goldfish Club’

PermalinkCommentshumor fish gold-fish japan phone-booth

(via HTTPSTER T-Shirt) Maybe for Eric?

2012 Aug 8, 3:14


(via HTTPSTER T-Shirt)

Maybe for Eric?

PermalinkCommentshumor tshirt shirt gift http technical

Nanex ~ 03-Aug-2012 ~ The Knightmare Explained

2012 Aug 6, 4:29

We believe Knight accidentally released the test software they used to verify that their market making software functioned properly, into NYSE’s live system.

I get chills breaking the build at work.  I can’t imagine how much worse it would feel to deploy your test suite and destroy the company you work for.

PermalinkCommentsmoney stock knight software trading technical

laughingsquid: Nope. Nik Tesla.

2012 Jul 16, 7:38


laughingsquid:

Nope. Nik Tesla.

PermalinkCommentshumor science history meme

laughingsquid: The Universe Gets Its Own Twitter Account &...

2012 Jul 14, 3:47


laughingsquid:

The Universe Gets Its Own Twitter Account & Humorously Responds When Mentioned

PermalinkCommentshumor twitter

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

(via Parody Tech Startup Explainer Video for Vooza)

2012 Jun 7, 3:04


(via Parody Tech Startup Explainer Video for Vooza)

PermalinkCommentshumor startup buzzword vooza video web

laughingsquid: Pirate Bay Gift Cards

2012 Jun 4, 12:50


laughingsquid:

Pirate Bay Gift Cards

PermalinkCommentshumor pirate-bay music pirate gift-certificate

(via An Embroidered George McFly: I’m Your Density by Sabrina...

2012 Apr 20, 9:39


(via An Embroidered George McFly: I’m Your Density by Sabrina Parolin)

PermalinkCommentshumor bttf george-mcfly

Domino’s Pizza Safe Sound - Menselijk motorgeluid voor...

2012 Apr 18, 5:00


Domino’s Pizza Safe Sound - Menselijk motorgeluid voor elektrische scooter (by DominosPizzaNL)

Can’t stop laughing.  Someone better get a promotion.

PermalinkCommentsvideo humor ad pizza electric-car

wilwheaton: laughterkey: You guys, the cast of every single...

2012 Mar 28, 11:23


wilwheaton:

laughterkey:

You guys, the cast of every single iteration of Star Trek is the best cast ever.

Trufax. 

I still can’t believe that this is a real thing that happened.

PermalinkCommentshumor star-trek tv wil-wheaton simon-pegg twitter

(via Tron-Style Light Dance Performance by Wrecking Crew...

2012 Mar 15, 5:21


(via Tron-Style Light Dance Performance by Wrecking Crew Orchestra)

PermalinkCommentstron dance video music dubstep

(via Invisible Mercedes)

2012 Mar 5, 3:25


(via Invisible Mercedes)

PermalinkCommentscar invisibility video ad

(via Alcoholic Monkeys Stealing Cocktails from Caribbean...

2012 Feb 24, 5:26


(via Alcoholic Monkeys Stealing Cocktails from Caribbean Beach-Goers)

PermalinkCommentsvideo monkey

Web Worker Initialization Race

2012 Feb 24, 1:44

Elaborating on a previous brief post on the topic of Web Worker initialization race conditions, there's two important points to avoid a race condition when setting up a Worker:

  1. The parent starts the communication posting to the worker.
  2. The worker sets up its message handler in its first synchronous block of execution.

For example the following has no race becaues the spec guarentees that messages posted to a worker during its first synchronous block of execution will be queued and handled after that block. So the worker gets a chance to setup its onmessage handler. No race:

'parent.js':
var worker = new Worker();
worker.postMessage("initialize");

'worker.js':
onmessage = function(e) {
// ...
}

The following has a race because there's no guarentee that the parent's onmessage handler is setup before the worker executes postMessage. Race (violates 1):

'parent.js':
var worker = new Worker();
worker.onmessage = function(e) {
// ...
};

'worker.js':
postMessage("initialize");

The following has a race because the worker has no onmessage handler set in its first synchronous execution block and so the parent's postMessage may be sent before the worker sets its onmessage handler. Race (violates 2):

'parent.js':
var worker = new Worker();
worker.postMessage("initialize");

'worker.js':
setTimeout(
function() {
onmessage = function(e) {
// ...
}
},
0);
PermalinkCommentstechnical programming worker web-worker html script

(via The Future by The Limousines)

2012 Feb 13, 8:16


(via The Future by The Limousines)

PermalinkCommentsbttf the-limousines music music-video video
Older EntriesNewer Entries Creative Commons License Some rights reserved.