nature - Dave's Blog

Search
My timeline on Mastodon

Tweet from David_Risney

2016 Jan 7, 9:30
'Works "produced by nature, animals, or plants" cannot be granted copyright protection the US Copyright Office said' http://arstechnica.com/tech-policy/2016/01/judge-says-monkey-cannot-own-copyright-to-famous-selfies/ …
PermalinkComments

URI functions in Windows Store Applications

2013 Jul 25, 1:00PermalinkCommentsc# c++ javascript technical uri windows windows-runtime windows-store

Subtleties of postMessage

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:

  1. No origin postMessage in workers and MessagePorts: postMessage(messageData, ports)
  2. 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

PermalinkCommentsDOM html javascript postMessage technical web-worker worker

Stripe CTF - Level 7

2012 Sep 13, 5:00PermalinkCommentshash internet length-extension security sha1 stripe-ctf technical web

BBC News - Polar bears get the better of spy cameras

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.
PermalinkCommentsvideo science nature animals bbc humor

CMAP #9: Ebooks

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."PermalinkCommentscharles-stross cory-doctorow ebook drm amazon publishing kindle apple book

Two Gentlemen of Lebowski

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."PermalinkCommentshumor via:ethan_t_hein shakespeare the-big-lebowski play parody english

Metalink/HTTP: Mirrors and Checksums in HTTP Headers

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."PermalinkCommentshttp metalink url p2p http-header cache redirect reference technical

Conceptual Trends and Current Topics

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."
PermalinkCommentsphoto time nature biology age

Solar Wi-Fi Flowers Create Harmony Between Man, Nature And Machine - The Design blog

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.
PermalinkCommentswifi power prius solar advertising toyota

Renovated Church Home in Kyloe, Northumberland | SwipeLife

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."PermalinkCommentschurch church-home house home england for:hellosarah photo

What's New with the Glue Society - Hi-Fructose Magazine

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."PermalinkCommentsstreetart art prank culture nature photo sculpture ice-cream-truck via:boingboing

Signs of Fall Tree

2008 Oct 28, 9:01

sequelguy posted a photo:

Signs of Fall Tree

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.

PermalinkCommentsseattle tree nature gasworkspark sarahtookthisphoto

Big data: Welcome to the petacentre : Nature News

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."PermalinkCommentslhc history internet cory-doctorow nature physics network hardware library science cern internet-archive

What's expected of us : Article : Nature

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."PermalinkCommentsted-chiang scifi time time-travel fiction via:boingboing

Kew Tree Top Walkway by Marks Barfield Architects

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.PermalinkCommentsnature london design architecture tree

A Remarkable Photo From Tornado Country

2008 Jun 16, 3:57An awesome and frightening photo of a tornado.PermalinkCommentsphoto nature tornado weather news via:swannman

Desert Botanical Garden Entry

2008 Jun 1, 11:54

sequelguy posted a photo:

Desert Botanical Garden Entry

PermalinkCommentsarizona nature scottsdale desertbotanicalgarden

Sun Flower and Bee

2008 Jun 1, 11:53

sequelguy posted a photo:

Sun Flower and Bee

PermalinkCommentsarizona nature bee sunflower scottsdale desertbotanicalgarden

Desert Botanical Garden Bug

2008 Jun 1, 11:53

sequelguy posted a photo:

Desert Botanical Garden Bug

PermalinkCommentsarizona nature bug scottsdale desertbotanicalgarden
Older Entries Creative Commons License Some rights reserved.