2016 Jan 7, 9:30
2013 Jul 15, 1:00
In IE10 and other new browsers one may create MessageChannel objects that have two MessagePorts each connected (w3c spec calls it entangled) to one another such that postMessage on one port
results in the message event firing on the other. You can pass an array of ports as the last parameter to postMessage and they show up in the ports property of the message event arg.
Origin
The postMessage here is like the worker postMessage and unlike the window and iframe postMessage in that it applies no origin checking:
- No origin postMessage in workers and MessagePorts: postMessage(messageData, ports)
- Origin postMessage in windows and iframes: postMessage(messageData, targetOrigin, ports)
Unfortunately the origin isn't an optional parameter at the end to make the two postMessages have the same signature.
On the event handler side, the event arg always has an origin property. But in the no origin case it is always the empty string.
Source
There is also a source property on the message event arg which if set is an object that has a postMessage property allowing you to post back to your caller. It is set for the origin case,
however, in the no origin case this property is null. This is somewhat reasonable because in the case of MessagePort and Workers there are only two endpoints so you always know the source of a
message implicitly. Unlike the origin case in which any iframe or window can be calling postMessage on any other iframe or window and the caller is unknown. So not unreasonable but it would be
nice if the source property was always set for consistency.
MessageChannel start
When a MessageChannel is created it has two MessagePorts, but until those ports are started they will queue up any messages they receive. Once started they will dispatch all queued messages.
Ports don't have to be started to send messages.
A port may be started in two ways, either by explicitly calling the start method on the port, or by setting the onmessage callback property on the port. However, adding an event listener via
addEventListener("message", does not start the port. It works this way in IE and Chrome and the spec states this as well.
The justification is that since you can have only one callback via onmessage that once set you must implicitly be ready to receive messages and its fine to start the port. As opposed to the
addEventListener in which case the user agent cannot start implicitly because it doesn't know how many event listeners will be added. I found Hixie stating this justification in geoloc meeting notes.
Links
W3C Spec
Opera introduction
DOM html javascript postMessage technical web-worker worker 2011 Mar 10, 6:14Polar bears destroy hiddern cameras (filming them for Science!) It is a well known fact that polar bears are very protective of their rights to privacy.

video science nature animals bbc humor 2010 May 10, 8:43Charles Stross on the intersection of ebooks and the publishing industry. Includes the answer to the misinformed question "why are you charging so much for access to the file your authors emailed
you?" Also includes this quote on Cory Doctorow "... Cory is a Special Snowflake with EFF superpowers and New York Times Bestseller mojo which make him immune to the normal laws of man and nature."
charles-stross cory-doctorow ebook drm amazon publishing kindle apple book 2010 Jan 8, 1:53Two Gentlemen of Lebowski, by Adam Bertocci: "Thou err’st; no man calls me Lebowski. Yet thou art man; neither spirit damned nor wandering shadow, thou art solid flesh, man of woman born. Hear
rightly, man!—for thou hast got the wrong man. I am the Knave, man; Knave in nature as in name."
humor via:ethan_t_hein shakespeare the-big-lebowski play parody english 2009 Nov 24, 5:51"Metalink/HTTP describes multiple download locations (mirrors), Peer-to-Peer, checksums, digital signatures, and other information using existing standards for HTTP headers. Clients can transparently
use this information to make file transfers more robust and reliable."
http metalink url p2p http-header cache redirect reference technical 2009 Oct 15, 6:33"Besides the canonical Bristlecone Pine, there are many other organism on earth that will outlive you. Photographer Rachel Sussman has been traveling around the world to find and photograph
them."

photo time nature biology age 2009 Jul 23, 10:32Toyota's 3rd gen Prius ad. campaign features giant solar powered flowers that seat ten, provide free wi-fi and power, and will be placed outdoors in major cities across the US.

wifi power prius solar advertising toyota 2009 Jun 24, 1:41"A nondescript exterior and a yard dominated by headstones give no indication of the residential nature of this historic church in Kyloe, Northumberland. A couple decided to purchase and readapt the
structure, investing nearly three times the purchase price into renovations over the course of several years."
church church-home house home england for:hellosarah photo 2008 Nov 21, 3:52I like the melted ice cream truck. "Our Australian friends 'The Glue Society', a group of artists, designers and projecteers, have created these amazing series of sculptures and films where they've
created chair rainbows on the frozen tundra, a curb-side wrap party, gratuitous nudie pictures for airplanes passing by, a house of crates, and a blow-up doll's vacation paradise."
streetart art prank culture nature photo sculpture ice-cream-truck via:boingboing 2008 Oct 28, 9:01
sequelguy posted a photo:
Immediately after Sarah took this photo, a truck pulled into the empty parking spot and the driver jumped out to apologize for messing up the photo. The driver was a zombie.
seattle tree nature gasworkspark sarahtookthisphoto 2008 Sep 9, 8:29Article on the data centers that backup the Internet Archive and handle CERN's LHC's data. "CERN embodies borderlessness. The Swiss-French border is a drainage ditch running to one side of the
cafeteria; it was shifted a few metres to allow that excellent establishment to trade the finicky French health codes for the more laissez-fair Swiss jurisdiction. And in the data sphere it is
utterly global."
lhc history internet cory-doctorow nature physics network hardware library science cern internet-archive 2008 Aug 14, 4:29Scifi short story, "What's expected of us", by Ted Chiang. Younger cousin of 'The Riddle of the Universe and Its Solution'. FTA: "Civilization now depends on self-deception."
ted-chiang scifi time time-travel fiction via:boingboing 2008 Jun 19, 4:07"An elevated walkway through the trees by Marks Barfield Architects has opened at Kew Gardens in London." Brings up memories of so many intricate treehouse drawings as a child.
nature london design architecture tree 2008 Jun 16, 3:57An awesome and frightening photo of a tornado.
photo nature tornado weather news via:swannman