2015/05/21

Simulators and Aviation Safety

Everything We Thought about Training Was Wrong | Flying Magazine:

"In addition to the benefits technology in the cockpit afford, there are two big trends affecting safety in a positive way. The first is the increased use of simulator technology in preparing students for flight and maintaining proficiency. "
Hanging Out With Someone Who Walked On The Moon | Hackaday:
"David [Scott, Apollo astronaut] told us that the simulations were remarkably accurate. His recollection was the only difference between the simulation and being on the moon was the fact that you were on the moon. Quite an endorsement of the Apollo simulators.
"David is a big fan of simulations. He told us that when traveling into space you want to simulate as much as possible while on the ground so that you get to know the systems and your fellow crew members. Apollo went so far as to simulate parts of the mission with the CM and LM inside of a huge vacuum chamber."


It probably doesn't need emphasis, but Dave Scott was talking about realistic simulations. Simulations need to be sufficiently realistic that, when training scenarios play out in real life, the pilot can recognize what's happening as something familiar.

Aside: I loved this bit from NOVA's "First Man on the Moon", around the 24:19 minute mark:
NARRATOR: Back in orbit, Armstrong kept his cool, figuring out his only remaining option: disengage all the maneuvering thrusters including the one that was stuck and use the re-entry thrusters to counteract the tumbling and regain control of the spacecraft.
SCOTT:
He had to reach up above his head and throw switches under this high-speed roll. That's amazing that he was able to do that and he knew exactly where the switches were, exactly which ones to throw.
SCOTT: I mean, the guy was brilliant.
He knew the system so well that he found the solution, he activated the solution under extreme circumstances, and I gotta say it was my lucky day to be flying with Mr.
Neil Armstrong.

2015/03/04

Pres. Obama: NSA security backdoors are a bad idea

The headline is misleading. He didn't really say that. At least, not on purpose. As far as I know.

From 2 March 2015:

Exclusive: Obama sharply criticizes China's plans for new technology rules | Reuters:

In an interview with Reuters, Obama said he was concerned about Beijing's plans for a far-reaching counterterrorism law that would require technology firms to hand over encryption keys, the passcodes that help protect data, and install security "backdoors" in their systems to give Chinese authorities surveillance access.

Obama said the rules could also backfire on China.

"Those kinds of restrictive practices I think would ironically hurt the Chinese economy over the long term because I don’t think there is any U.S. or European firm, any international firm, that could credibly get away with that wholesale turning over of data, personal data, over to a government," he said.


From 24 February 2015, an exchange between Yahoo's Chief Information Security Officer Alex Stamos and NSA Director Mike Rogers, in which Mr. Stamos challenges the NSA's plan to ban working crypto:

Yahoo's security boss faces down NSA director over crypto ban - Boing Boing:
AS: [...] So, if we’re going to build defects/backdoors or golden master keys for the US government, do you believe we should do so — we have about 1.3 billion users around the world — should we do for the Chinese government, the Russian government, the Saudi Arabian government, the Israeli government, the French government? Which of those countries should we give backdoors to?

[...]

MR: I think we can work our way through this.

AS: I’m sure the Chinese and Russians are going to have the same opinion.

MR: I said I think we can work through this.

AS: Okay, nice to meet you. Thanks.

2014/01/19

Squatting Owls Eavesdrop On Prairie Dogs | LiveScience

The part that caught my eye actually had little to do with the owls:

Squatting Owls Eavesdrop On Prairie Dogs

...prairie dogs have the most sophisticated language yet decoded among non-humans. Recent studies have shown that they have nouns, adjectives, verbs, and adverbs, which they can use to indicate the size, shape, color, and speed of an intruder. The social rodents even have different calls for a tall human in a blue shirt and a short human in a grey shirt.
“In the past, people shied away from the word language, because we didn’t have enough information. But it’s really clear now that’s what it is,” said Con Slobodchikoff, an animal behaviorist at Northern Arizona University in Flagstaff, who studies prairie dog calls.


Growing up, my parents frequently opined that animals of other species were as intelligent, if in sometimes specialized ways, as humans. I bet they'll be pleased by the final paragraph:

“We have for a long time underestimated the ability of animals. We thought they were running on programs of instinct, like little robots,” said Slobodchikoff. “But in reality, they’re far more advanced and far smarter than we give them credit for, and with that acknowledgement we need to give animals more respect than we have been."


As a first step maybe we could stop trying to exterminate prairie dogs...

2013/08/22

For Some Value of "Magic": Bradley Manning's Post-Sentencing Statement

For Some Value of "Magic": Bradley Manning's Post-Sentencing Statement:

"Our nation has had similar dark moments for the virtues of democracy—the Trail of Tears, the Dred Scott decision, McCarthyism, the Japanese-American internment camps—to name a few. I am confident that many of our actions since 9/11 will one day be viewed in a similar light. "


Thanks to Steve Holden for posting the statement. It's well worth reading in its entirety.

2013/08/19

Cameron Proves Greenwald Right

Cameron Proves Greenwald Right:

"Britain is now a police state when it comes to journalists, just like Russia is."


Well put.

I don't care what Edward Snowden's personal character may prove to be. He has done us a huge favor by bringing these issues to the fore. Now we need to pressure our elected representatives to actually do something about the destruction of our civil liberties.

2013/03/03

Prairie dogs in the NM news

[2013/03/03] Local news briefs - The Santa Fe New Mexican:

"CLOVIS - City commissioners have approved a plan to poison prairie dogs in a Clovis park.

The Portales News-Tribune reported that Clovis city commissioners on Friday approved an emergency budget transfer to purchase 250 containers of Rozol rodenticide to reduce the population of prairie dogs at Ned Houk Park.

The move came after several landowners near the park pressured commissioners about the burrowing rodents.

Resident Glenn Eagle said the prairie dogs have eaten his oat crop in the past, and he's worried they will eat the oats again this spring. He said the rodents are destroying the park by eating the grass and making erosion problems worse.

But Clovis resident Susan Hubby says she was concerned about the long-term effects of Rozol on the park's ecosystem."



I'm starting to collect snippets about prairie dogs. They're interesting creatures, and humans tend to regard them in one of two extreme ways: as dangerous pests to be eradicated, or as cute fur balls to be serenaded by Tibetan monks.

Interesting: Gunnison's prairie dogs, the kind we have here in Santa Fe, have 40 diploid chromosomes, whereas all other species have 50.

Also interesting: prairie dog species can vary quite a bit in appearance and vocalization. Compare this excellent, up-close view of some Denver-based black-tailed prairie dogs, by Yuta Murai, with these clips I took of a small Gunnison's colony here in Santa Fe.

Also interesting, and exemplary of extreme human attitudes toward prairie dogs, is the history of their association with bubonic plague. Some people think they "carry" plague and other deadly diseases such as hanta virus. In fact they suffer from plague, which can quickly wipe out almost 100% of a colony; but they don't carry it from place to place as rats do. And they don't carry hanta virus, or spread it in their droppings.

There's plenty more to write about human attitudes toward prairie dogs (and how we invent myths to justify those attitudes), about their "keystone species" status, etc.



Further Reading / Viewing:

  1. "City approves prairie dog poison", Portales News-Tribune, 1 March 2013
  2. "Tibetan Monks on U.S. Tour Take Moment to Bless Critters", Albuquerque Journal North, 10 August 2008.
  3. Animal Diversity Web
  4. "Prairie dogs", by Yuta Murai
  5. "Prairie Dogs", by yours truly
  6. "Man charged with shooting at prairie dogs", Santa Fe New Mexican, 13 August 2012
  7. "Gunnison's Prairie Dog", Endangered Species of the Mountain-Prairie Region: U.S. Fish and Wildlife Services
  8. "Interspecific Comparisons of Sylvatic Plague in Prairie Dogs", Journal of Mammalogy, Vol. 82, No. 4, November, 2001.
  9. "Recovery and Restoration of the Black-footed Ferret (Mustela nigripes)", American Society of Mammalogists
  10. "Resolution on the Decline of Prairie Dogs and the Grassland Ecosystem in North America", American Society of Mammalogists

2011/03/09

Squeeze play?

The Mac App Store (MAS) requires participating developers to pay Apple $99/year plus 30% of gross sales price; only apps which are approved by Apple may be sold via MAS.

Xcode4 was released today on MAS, for $4.99. It used to be included on the OS X distribution DVDs, as a no-extra-cost optional installation.

The beta distributions of OS X Lion is available only through the MAS. As far as I know it does not include Xcode.

Developers are not forced to sell their applications through the MAS. In fact, some types of software, those which require administrator privileges for installation, must be sold outside the MAS.

Still, Apple seems to be edging down a path at the terminus of which developers must pay an annual fee to sell software for use on OS X, and must have that software approved by Apple before it can be offered for sale.

I sincerely hope this isn't what they have in mind.

Thank goodness for Linux.

2011/01/28

Fibers for fuel

And now for something completely incoherent: a ramble about pikas, horned lizards, ruminants, biofuels and genetic sequencing.

Pikas

I recently posted a video about pikas. Like their fellow lagomorphs, rabbits and hares, pikas can live on indigestible grasses thanks to the bacteria in their caecal pouches. A big part of their body mass is devoted to digestive systems, yet unlike ruminants lagomorphs can't pump their food backward and forward to take advantage of the work done by the gut bacteria. So they have to eat their food more than once.

Horned Lizards

Horned lizards also have proportionally large digestive systems, because they eat ants. And that need for a big digestive system is believed to be one reason horned lizard bodies are so spiky. As DigiMorph explains it:

"Ants are small and contain much indigestible chitin, so large numbers of them must be consumed. Hence an ant specialist must possess a large stomach for its body size to process a lot of material. [...] the stomach occupies a considerably larger fraction of the animal's overall body mass [...] than do stomachs of all other sympatric desert lizard species. Possession of such a large gut necessitates a tank-like body form, reducing speed and decreasing the horned lizard's ability to escape from predators by flight."


The full article is well worth reading. It has a lot more interesting info on horned lizards, including the fact that some of them give live birth. I have read elsewhere that the live-bearing species tend to live at higher altitudes, where it would be difficult to keep eggs sufficiently warm.


Ruminants

Ruminants such as cattle can live on grasses. Their food goes back and forward through several stomach chambers while bacteria break down plant fibers.


Biofuels


Cosmos Magazine reports on genetic sequencing of cow gut bacteria aimed at discovering how to break down cell fibers more efficiently. The techniques of the researchers were somewhat gruesome: they inserted nylon sacks of switchgrass through holes in cows' skin directly into their stomachs. The method was considered necessary because the bacteria of interest could not be cultured.

Once they had enough bacteria they removed the nylon sacks and analyzed the bacterial DNA, looking for genes whose products aid in the breakdown of cellulose.

"It is hoped that this research can speed up the process of breaking down switchgrass into sugars including glucose and xylose to be fermented into ethanol."


2010/12/08

Space Exploration Technologies Corporation - Press

Space Exploration Technologies Corporation - Press:

"This marks the first time a commercial company has successfully recovered a spacecraft reentering from low-Earth orbit. It is a feat performed by only six nations or government agencies: the United States, Russia, China, Japan, India, and the European Space Agency."


Congratulations to SpaceX.

2010/12/04

Just Warm Enough - Science News

Just Warm Enough - Science News:

"a massive fungal bloom swept the Earth about the time of the dinosaur extinction."
"...fungi plague plants, insects and other cold-blooded creatures far more often than they do mammals or birds. Putting two and two together, [Arturo Casadevall, a microbiologist at Albert Einstein College of Medicine in New York City ] formulated a theory that the warm body temperatures of mammals and birds might have protected them from fungal pathogens, while diseases caused by fungi might have been a factor keeping the reptiles from rising again."


This is interesting in light of ongoing fungal epidemics: chytrid, which is threatening amphibian populations worldwide; and white-nose syndrome, which is threatening bats in the U.S.

The article does raise questions, t.ex. why would amphibians have escaped this ancient fungal bloom along w. birds and mammals? (The article notes implicitly that body temperature isn't the only factor determining susceptibility to fungal infections.) Is there any causal connection between the fungal bloom and the final demise of the dinosaurs, of which many species were believed to be warm-blooded?

"A fungus called Geomyces destructans infects bats while they are hibernating — a time when body temperatures drop from 40˚ C to about 7˚. “They’re not warm-blooded when they get infected,” Blehert says."


Bizarrely, this could also explain what happens to my feet in the wintertime :)

2010/11/15

Heavenly Intrigue

Danish astronomer's remains exhumed in Prague - Yahoo! News:

"On Monday, an international team of scientists opened [Tyge Brahe's] tomb in the Church of Our Lady Before Tyn near Prague's Old Town Square..."
The book got poor reviews, but the whodunnit isn't done yet.

The 'Israelification' of airports: High security, little bother - thestar.com

The 'Israelification' of airports: High security, little bother - thestar.com:

"That's the process %u2014 six layers, four hard, two soft. The goal at Ben-Gurion is to move fliers from the parking lot to the airport lounge in a maximum of 25 minutes."


It took decades, but in the healthcare reform effort the U.S. finally took a look at what works and doesn't work in other countries.

When will we stop throwing away time, money and constitutional rights and start studying how other countries have addressed the transportation safety problem?

2010/10/28

Rock Recipes

Cooking

Sharp Stone Age spearheads were cooked then flaked - life - 28 October 2010 - New Scientist:
"If you want to make really sharp stone spearheads, do like Stone Age cave dwellers did and cook them first."

Overcooking

Bir Umm Fawakhir: Insights into Ancient Egyptian Mining:
"'The gold-bearing earth which is hardest they first burn with a hot fire, and when they have crumbled it...they continue the working of it by hand..."

Cooking with vinegar

Hannibal - Wikipedia, the free encyclopedia:
"By Livy's account the crossing was accomplished in the face of huge difficulties.[24] These Hannibal surmounted with ingenuity, such as when he used vinegar and fire to break through a rockfall."

2010/09/10

The line between book and Internet will disappear - O'Reilly Radar

The line between book and Internet will disappear - O'Reilly Radar:

"But everything exists within the EPUB spec already to make the next obvious -- but frightening -- step: let books live properly within the Internet, along with websites, databases, blogs, Twitter, map systems, and applications.
"There is little talk of this anywhere in the publishing industry that I know of, but the foundation is there for the move -- as it should be. And if you are looking at publishing with any kind of long-term business horizon, this is where you should be looking[...]
"I don't know what smart things people will start to do when books are truly of the Internet.
"But I do know that it will happen, and the 'Future of Publishing' has something to do with this. The current world of ebooks is just a transition to a digitally connected book publishing ecosystem that won't look anything like the book world we live in now."

2010/09/02

Can Nuclear Waste Spark an Energy Solution?

Can Nuclear Waste Spark an Energy Solution?:

"The idea is to reprocess that spent fuel to generate more power. Proponents say the know-how is available now to address the nuclear proliferation concerns that have bedeviled previous recycling plans. And they say the advanced reactors that would run on that recycled fuel would mark a new level of progress on safety."
'“It’s very clear when you get into details that [nuclear] is the best energy system, bar none,” said Tom Blees, president of the Science Council for Global Initiatives, a nonprofit focused on resources and climate, and author of Prescription for the Planet, a 2008 book advocating the technology. “We have to make a choice—provide abundant energy for the planet or be content with these resource wars we have all the time.”'
"The International Panel on Fissile Materials, a group of arms control and nonproliferation experts from 17 countries[...] noted that sodium leaks have sparked major fires in a similarly designed prototype reactor in Japan, as well as in several operating reactors in France. One of them, the Superphénix commercial-sized plutonium fueled reactor, was shut down in 1998 for political and technical reasons after experiencing high operating costs."


2010/08/30

DRM-Free eBook sellers

Cory Doctorow, via Boing Boing:

" Amazon, Barnes and Noble and Kobo were all happy to carry my books without DRM, and on terms that gave you the same rights you got when buying paper editions. Sony and Apple refused to carry my books without DRM -- even though my publisher and I both asked them to."


I wonder why Apple responded this way, given their stated position on DRM-free music. It would be interesting to know more about the negotiations.

2010/08/17

U.S. Is Bankrupt and We Don't Even Know It: Laurence Kotlikoff - Bloomberg

Via Doc Searls:

U.S. Is Bankrupt and We Don't Even Know It: Laurence Kotlikoff - Bloomberg:

"This is what happens when you run a massive Ponzi scheme for six decades straight, taking ever larger resources from the young and giving them to the old while promising the young their eventual turn at passing the generational buck."


I and my classmates have known this since high school in the early 1980's. But we haven't successfully done anything about it. I voted for Perot and contributed to the Concord Coalition for awhile; nothing more.

How do you visibly alter the momentum of a social system 3.0e8 times larger than yourself?

2010/08/13

iHelp for Autism - - News - San Francisco - SF Weekly

iHelp for Autism - - News - San Francisco - SF Weekly:

"After he began spending 30 minutes at a time on apps designed to teach spelling, counting, drawing, making puzzles, remembering pictures, and more, she sat down at her own computer."


Maybe it is a magical device.

2010/07/20

Bai-Baikonur

Russia confirms shiny new cosmodrome - The Register:

"Putin stressed the non-military nature of the project, and indicated that Russia is keen to cut its reliance on Kazakhstan's Baikonur spaceport."

2010/07/16

Another Toss of the Shuttle

Life isn't so much a fabric as it is a fascinating, intricate tangle of seemingly unrelated things.

I've long been a fan of Richard Feynman's stories. In 1992 I read about his last adventure, a quest to visit Tannu Tuva: "Tuva or Bust." A central element of the story is Tuvan throat singing.

My grandfather had had a distinctive singing gimmick, one which had helped him establish his character of "Frog Millhouse" in old western movies. As I read the description of throat singing in "Tuva or Bust", I began to wonder whether Grandpa had in fact been a country and western throat singer.

Fast forward to 2005. I was living in Santa Fe, not far from the site of one of Dr. Feynman's early adventures. My friend Bobi, who had once worked at Los Alamos, was getting ready to adopt a baby from Kazakhstan. As we prepared for her trip we came across the story of Paul Pena, a blind R&B musician who among other things had written the Steve Miller Band hit, "Jet Airliner." Listening to a San Francisco radio station, Mr. Pena had heard some intriguing vocal music which turned out to be Tuvan throat singing. The music was being aired because a group of Tuvans was visiting the United States, in a cultural exchange visit which was a posthumous result of Dr. Feynman's efforts to visit Tuva.

Paul Pena taught himself to sing in the rumbling style of kargyraa, somehow became connected with the author of "Tuva or Bust", Ralph Leighton, and ended up traveling to central Asia, where he won a prize in a throat-singing competition.

Mr. Pena's adventure, and some of his life's trials, were captured in the bittersweet movie "Genghis Blues."

Almost a year after Mr. Pena died, Bobi departed to Kazakhstan. I went along, and we came together with one of the most wonderful people I've ever known. She's now Bobi's daughter, and my god-daughter.

We made a video of the trip. The obvious choice of background music for the air travel segments was Mr. Pena's "Jet Airliner."


With all of this as background, today I came across an NPR interview with Billy West, who provides much of the voice of Futurama:

On Popeye
I loved Jack Mercer, and I got him. I understood him. And what helped me understand that Popeye voice — it's a high voice and a low voice at the same time — cause when I was a kid, we all used to try to do that and we all stunk. It didn't sound right. So one day, I see this film — it was an independent film called Genghis Blues. And it was about [Paul Pena] ... And he was listening to a world-band radio one night, and he heard this strange noise. And it was a program about Tuvan singers. And Tuvans had a way of singing where they could do one and two voices. And I realized, 'Oh man, that's how this guy did it. Jack Mercer.' [He imitates both voices.] There'd be two voices, an octave apart. And he'd put them together."





2010/07/13

Smart grid emergent

Virtual power plants fill supply gaps in heat wave | Green Tech - CNET News:

"...automated efficiency technology, particularly dialing back electricity usage during peak times, is becoming one of the most effective smart-grid tools for maintaining the balance between electricity supply and demand."

2010/07/11

Scratch for your Phone

App Inventor for Android:

"To use App Inventor, you do not need to be a developer. App Inventor requires NO programming knowledge. This is because instead of writing code, you visually design the way the app looks and use blocks to specify the app's behavior."


PhysOrg.com: Sharp-eyed robins can see magnetic fields

Sharp-eyed robins can see magnetic fields:

"a new study shows that [birds'] internal compass also depends on the birds having clear vision in their right eyes.
Cryptochrome also affects the light sensitivity of retinal cells, which suggests it may also affect sensitivity to magnetic fields. In effect, the magnetic fields create light or dark shadings over what the bird usually sees, and the shadings change as the bird turns its head, giving it a visual compass from the patterns of shading."


Wow.

The urge to quote Shakespeare is almost irresistible.

Via Engadget

2010/07/03

Juxtaposition: American jobs

BusinessWeek posted this on 1 July:
Andy Grove: How America Can Create Jobs:

"A new industry needs an effective ecosystem in which technology knowhow accumulates, experience builds on experience, and close relationships develop between supplier and customer. The U.S. lost its lead in batteries 30 years ago when it stopped making consumer electronics devices... U.S. companies did not participate in the first phase and consequently were not in the running for all that followed. I doubt they will ever catch up...
These [Asian] countries seem to understand that job creation must be the No. 1 objective of state economic policy. The government plays a strategic role in setting the priorities and arraying the forces and organization necessary to achieve this goal..."


BBC News posted this today:
BBC News - US to provide nearly $2bn for two solar energy projects:
"Nearly $2bn... in loan guarantees will be given to two companies to kick-start the US solar energy industry, President Barack Obama has announced...
Abound Solar Manufacturing, will manufacture state-of-the-art thin film solar panels...
Plants will be built in Colorado and Indiana, creating 2,000 construction jobs and 1,500 permanent jobs, the Associated Press reports...
'We're going to to keep competing aggressively to make sure the jobs and industries of the future are taking root right here in America,' he said on Saturday."


Groves's article contains many thought-provoking assertions. Well worth reading.

GIS + global warming = k * Archaeology

CU Researcher Finds 10,000-Year-Old Hunting Weapon in Melting Ice Patch | News Center | University of Colorado at Boulder:

"Over the past decade, Lee has worked with other researchers to develop a geographic information system, or GIS, model to identify glaciers and ice fields in Alaska and elsewhere that are likely to hold artifacts. They pulled together biological and physical data to find ice fields that may have been used by prehistoric hunters to kill animals seeking refuge from heat and insect swarms in the summer months."
"Ninety-five percent of the archaeological record that we usually base our interpretations on is comprised of chip stone artifacts, ground stone artifacts, maybe old hearths, which is a fire pit, or rock rings that would have been used to stabilize a house," Lee said. "So we really have to base our understanding about ancient times on these inorganic materials. But ice patches are giving us this window into organic technology that we just don't get in other environments."


(Via Stone Pages Archaeo News)

2010/07/02

Using Dropbox to implement OS X / iOS app sync?

Hog Bay Software Blog:

"Then the Dropbox public API showed up. That changed everything again. I've never wanted to write and maintain my own simpletext.ws sync service, but there was no other choice. Now I can outsource all that work to Dropbox. But to do this I still need to rewrite my model layer to support Dropbox sync."

2010/06/25

CSS3 3D Transformations

Here's a nice, concise snippet to demonstrate CSS3 3D transformations, from Superted's Toy Story iAd Navigation post:


items[i].style.webkitTransform = matrix.rotate(newAngle, 0, 0).translate(0, 0, 380);


Want to create a "wheel" of images? Rotate each one by its position around the wheel, so it will face the center of the wheel. Then shove it back (along z) to the edge of the wheel.

2010/06/23

IE 9 + Canvas

From twitter:

jeresig IE 9 shipping with Canvas! http://j.mp/cTyuQg


Huzzah!

Hover on Multi-touch Devices

Technical Note TN2262: Preparing Your Web Content for iPad:

"For example, a mouse pointer can hover over a webpage element and trigger an event; a finger on a Multi-Touch screen cannot."


This is certainly true for multi-touch devices available now, but I wouldn't be surprised to see, someday, touch-sensitive devices which are also proximity-sensitive.

Update 2010/07/08: Others are thinking about implications of hover on multi-touch devices: http://trentwalton.com/2010/07/05/non-hover/ via http://news.ycombinator.com/item?id=1497108.

Update 2010/08/14: A recent Ars Technica article, exploring the similarities between the iPad and ST:TNG's PADD, contained a relevant snippet:
"Still, what new frontiers are out there for interacting with computing devices? Michael Okuda believes that removing the touch requirement will bring new advances in gesture-based control. "Once you don't have to physically touch the screen," he told Ars, "I think yet another window is going to open up.""

Stephen Wolfram on Alan Turing

Here's a part of the "suicide" story with which I was not familiar.

Wolfram|Alpha Blog : Happy Birthday, Alan Turing:

"When one first hears that Alan Turing died by eating an apple impregnated with cyanide one assumes it must have been intentional suicide. But when one later discovers that he was quite a tinkerer, had recently made cyanide for the purpose of electroplating spoons, kept chemicals alongside his food, and was rather a messy individual, the picture becomes a lot less clear."

2010/05/25

Growl - The iPad and immersive computing - O'Reilly Radar

This made me chuckle.

The iPad and immersive computing - O'Reilly Radar:

"I love how focused I am using an iPad, versus working on a laptop. New mail isn't constantly arriving; tweets aren't Growling into view; I don't even have an RSS reader installed."


When Growl first appeared I couldn't imagine why a sane Mac user would want it. How could you make fun of Windows and its incessant, work-stopping notification balloons, and want the same sort of behavior on your Mac? Better to see an alert when something goes wrong than to be interrupted by a balloon whenever something works as expected.

Of course, I long ago installed Growl on my desktop :)

It's not (necessarily) as intrusive as the old Windows notification balloons: you can control which apps generate Growl notifications. As with eye-grating page layouts in early desktop-publishing, or blinking text in early web pages, there's always the danger that you'll turn on all notifications because you can.

I do like the ease with which you can create custom Growl notifications for your own scripts/applications. T.ex. when I create a new timestamp in my VoodooPad worklog, Growl pops up a summary of times by task for the day. Were I not so lazy, I could ask it to notify me when long-running distributed compute jobs have finished; etc.

Anyway, it was funny to read the observations on O'Reilly Radar, written almost as though Growl were part of a standard OS X install.

2010/05/11

Sony's getting back in the game?

NEX-3 and NEX-5 coming in July, and an interchangeable lens camcorder in the fall (Sneak Peek: New Sony Camcorder in Development).

I'm not sure what the camcorder will offer over and above the NEX cameras, but to a person living in the bright environs of northern New Mexico that optional optical viewfinder on the digicams is really appealing. SDHC/SDXC memory card support and automatic HDR look nice, too.

2010/04/28

You have mail?

Recently, when opening new Terminal sessions in Mac OS X, I've started seeing a familiar old message before the first shell prompt.

Last login: Wed Apr 28 06:27:11 on ttys006
You have mail.
mymac:~ my_username$


I assumed some system utility had delivered a notification via /usr/bin/mail. What did the message say?
$ mail
mail: /var/mail/my_username: Is a directory


Indeed, /bin/ls showed an empty my_username directory in /var/mail.

Weird.

In any case I deleted /var/mail/my_username/, and the notifications no longer appear in new Terminal sessions.

2010/04/25

A life well lived

Tomi Pierce must have been an amazing person.

via Tim O'Reilly.

2010/04/06

Eric Margolis

Via Tim O'Reilly, a tribute to Mikhail Gorbachev.

Eric Margolis:

"Gorbachev did not plan to destroy the Soviet Union but to reform and revitalize it. But by refusing to hold it together by force, he brought about its doom.
Gorbachev did the world a huge favor."

2010/03/31

Chrome to Include Flash -- Engadget

Chrome brings Flash Player into the fold, trains it to kill iPads? -- Engadget

As of about a year ago I thought Google didn't really care for Flash. It had accessibility problems and was opaque to search engines.

Apparently Adobe have addressed these issues.

2010/02/22

Mercurial, Migration Assistant, and dotfiles

I recently upgraded my iMac. Migration Assistant moved all of my files to the new machine without issue -- or so it seemed.

I had created Mercurial repositories in a couple of virtualenv environments, to track changes locally.[1] I didn't notice that Mercurial had put each virtual environment's .Python file under revision control.

Shortly after completing the migration I made changes in one of these virtual environments. A quick 'hg status' before committing, and...


$ hg status
abort: data/.Python.i@13b27e856c38: no match found!


WTF?

After much investigation it appears that the following has happened.

  1. Mercurial represented the .Python link in its .hg/store/data directory as ._Python.i
    1. The leading underscore appears to be Mercurial's way of noting that the 'P' should be capitalized.

  2. I think Migration Assistant uses ditto to copy files.
    1. ditto saw the leading '._' and concluded this was an orphaned resource file.[2] So it didn't copy the file.

  3. Mercurial knew that it was supposed to have a .hg/store/data/._Python.i file; when it couldn't find it, it decided the repository was corrupted.



Luckily the problem cropped up before I traded in the old machine, so I was able to copy across the missing files manually.

In my experiments, the problem manifested only when the capitalized dotfile was a symbolic link, not when it was a regular data file.

Well... the above write-up contains several unproven assertions, e.g. about the conditions under which Mercurial will create a '._' filename. I'm not really sure whether this is a bug or merely a caveat regarding an obscure corner condition. For now, the easiest workaround is:

Don't Track virtualenv .Python Files With Mercurial.

[Update 2010/02/22: Someone has already filed this as a Mercurial bug.]



[1] (Mercurial makes a great filesystem "undo" facility, useful even for directory trees which you never intend to share with anyone else.)

[2] OS X still supports something ike resource forks. In tarballs and other non-OS Extended filesystems, resource forks are represented as dot-files with a leading underscore. (See Norman Walsh's blog for more info.) For example, the resource fork for a file named 'foo.txt' might be '._foo.txt'.

2010/02/11

Who will buy the lottery tickets?

EOF - The Google Exposure | Linux Journal:

" The 2008 study found half of all clicks come from lower-income young adults."

2010/01/24

U.S. enables Chinese hacking of Google - CNN.com

U.S. enables Chinese hacking of Google - CNN.com:

"In the aftermath of Google's announcement, some members of Congress are reviving a bill banning U.S. tech companies from working with governments that digitally spy on their citizens. Presumably, those legislators don't understand that their own government is on the list."


From llimllib on Twitter via brettsky.

2009/11/12

TextMate, Emacs and META indent-region

[cross-posted from the Desert Moon blog.]

I haven't used GNU Emacs very much since switching to TextMate in 2005. One Emacs feature which I really miss in TextMate is indent-region. It lets you take an entire region of code, whatever its language, whatever its mix of tabs and spaces and indentation widths, and re-format it using your preferred indentation style.

But wait! Emacs has a batch mode, and you can drive it from TextMate. Many thanks to Gragusa's Things for showing the way.

The post on Gragusa's Things is specific to R code, but I'm more interested in re-formatting C and C++ code. Here's my first cut at a general TextMate Bundle to re-format code regardless of the source language:

#!/usr/local/bin/python2.6
"""
Use Emacs to re-indent regions of the current buffer.
Inspired by
http://gragusa.wordpress.com/2007/11/11/textmate-emacs-like-indentation-for-r-files/
"""
import tempfile
import os
import sys
import subprocess

# Use the same filename extension so Emacs will know which
# mode to use.
ext = os.path.splitext(os.environ["TM_FILEPATH"])[-1]
outf = tempfile.NamedTemporaryFile(suffix=ext, delete=False)
pathname = outf.name

outf.write(os.environ["TM_SELECTED_TEXT"])
outf.close()

args = [
"emacs", "-batch", pathname,
# Assume no emacs-startup.el
"--eval", "(setq indent-tabs-mode nil)",
"--eval", '(c-set-style "java")',
"--eval", "(setq c-basic-offset 4)",
"--eval", "(indent-region (point-min) (point-max) nil)",
"-f", "save-buffer"]
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
if p.returncode:
print(err)

inf = open(pathname, "r")
sys.stdout.write(inf.read())
inf.close()

os.remove(pathname)


NB:
  1. Due to the use of the delete=False keyword argument to tempfile.NamedTemporaryFile, this command bundle requires Python 2.6+.
  2. TextMate on OS X 10.5 won't, by default, have /usr/local/bin in its path; hence the pathetic shebang.


Anyway, install this as a new TextMate command bundle, assign a Key Equivalent such as ⌘-Shift-R, and enjoy.

2009/11/03

Creating an 'hg ignore' extension

[cross-posted from the Desert Moon blog.]

I often wish Mercurial had an 'hg ignore' command similar to 'bzr ignore'. Turns out it's pretty easy to add one:


#!/usr/bin/env python
"""Ignore pathnames and patterns"""

import os

def ignore(ui, repo, *pathnames):
"""Ignore the given pathnames and patterns."""
outf = open(os.path.join(repo.root, ".hgignore"), "a")
for p in pathnames:
outf.write(p + "\n")
outf.close()
return

cmdtable = {
'ignore': (ignore, [], "hg ignore pathname [pathname]"),
}


To use this, save it to a file such as ${HOME}/platform/independent/lib/hg/ignore.py. Then add the extension to your ${HOME}/.hgrc:
[extensions]
~/platform/independent/lib/hg/ignore.py

2009/09/24

Running TileCache within a Django Application

Punchline

Here is how to serve TileCache tile images from within a Django application.


from TileCache.Service import Service

_service = Service(...)

def get_tile(request):
global _service

format, image = _service.dispatchRequest(
request.GET, request.path, request.method,
request.get_host())
result = HttpResponse(str(image), mimetype=format)
return result


Scenario

You're building a low-traffic Django-based GIS application, and you need to serve your own map layers. You're using TileCache to improve your application's performance. But installation and configuration are hassles.

  • All of your servers must run with the right user and group IDs, so the Django app can expire the tile cache when necessary.
  • Your Django app needs to understand the structure of the tile cache, so it can remove the correct tile images when the underlying data changes.
  • Etc.

standalone_tilecache.png


This would all be much easier if you could serve TileCache requests from within your Django application. They're both Python-based; why not?

django_plus_tilecache.png


The TileCache code base includes sample code that shows how to run TileCache as a CGI or a FastCGI service. I couldn't find any sample code for running TileCache within a Django application, but it was easy to convert the cgiHandler code for use with Django's HttpRequest objects.

Installation Prerequisites

In order for TileCache to generate its own tiles, instead of delegating to a separate mapserver instance, you must already have compiled and installed mapserver's Python mapscript bindings. For instructions on compiling the bindings see the mapscript/python/README file in the mapserver source distribution.

Configuring TileCache


import os
thisdir = os.path.abspath(os.path.dirname(__file__))
def relpath(p):
return os.path.abspath(os.path.join(thisdir, p))

from TileCache.Service import Service
import TileCache.Layers.MapServer as MS

# Create the service 'singleton'.
_mapfile = relpath("../mapserv/data/mapfile.map")

_service = Service(
_cache, # See "Cache Invalidation", below
{
"basic": MS.MapServer(
"basic", _mapfile, layers="basic", debug=False),
}
)


Handling Tile Requests

This is the sweet part. It's derived from the cgiHandler() example in the TileCache source code, but Django's HttpRequest class makes the implementation very simple:


def get_tile(request):
global _service

format, image = _service.dispatchRequest(
request.GET, request.path, request.method,
request.get_host())
result = HttpResponse(str(image), mimetype=format)
return result


What About Feature Info Requests?

I don't know much about the required web API of a WMS server, but it appears as if the same URL must serve both tiles and feature info requests; the type of request is determined by the Request querystring parameter.

Django's dispatch system is based on URL pathnames; I'm not aware of any way to dispatch based on query string parameters. So you'll need to either configure your web server (e.g. Apache) to rewrite WMS requests to distinct URLs provided by your Django app, or you'll need to do some dispatch within your Django app.

Suppose you opt for the latter. Then your urls.py might look something like this:

...
url(r'^wms/$', 'world.views.wms', name='wms'),
...

and in world/views.py you might have this:

def wms(request):
if request.GET.get("request") == "GetFeatureInfo":
return get_feature_info(request)
return get_tile(request)

Cache Invalidation

For my web app, several of the tile layers are derived from a Django model which is updated via the admin interface. Whenever the model changes, the tile cache for the corresponding layer(s) needs to be invalidated, so the images can be regenerated.

The TileCache Cache interface doesn't provide for invalidation. Since I'm using a filesystem-based cache, I subclassed TileCache.Caches.Disk to create a Disk cache which does support invalidation.

import shutil
from TileCache.Caches.Disk import Disk

class InvalidatingDisk(Disk):
"""A Disk cache which can invalidate its contents,
layer by layer."""
def invalidate(self, layerName=None):
if self.basedir:
pathname = self.basedir
if layerName is not None:
pathname = os.path.join(self.basedir,
layerName)
shutil.rmtree(pathname, ignore_errors=True)

2009/09/22

Introducing Google Chrome Frame

Introducing Google Chrome Frame:

"With Google Chrome Frame, developers can now take advantage of the latest open web technologies, even in Internet Explorer. From a faster Javascript engine, to support for current web technologies like HTML5's offline capabilities and <canvas>, to modern CSS/Layout handling, Google Chrome Frame enables these features within IE with no additional coding or testing for different browser versions.
To start using Google Chrome Frame, all developers need to do is to add a single tag:


<meta equiv="X-UA-Compatible" content="chrome=1">
"


I guess that's good news. Makes you wonder why the target audience wouldn't just install Google Chrome. But I suppose this lets people continue to use IE while using modern web facilites on sites which require them.

2009/09/14

TR: China Wind Energy Potential, HVDC

(Just taking notes, trying to understand what HVDC is, what it has to do with variable power sources such as wind, and why it makes buried transmission lines convenient.)

Technology Review: China's Potent Wind Potential:

"The major grid upgrades already under way in China are making extensive use of continental-scale high-voltage direct-current (HVDC) lines, which remain the stuff of supergrid blueprints in Europe and the United States. 'They are leading the world in implementing long-distance transmission schemes,' says Bjarne Andersen, director of U.K.-based consultancy Andersen Power Electronic Solutions and an expert in the ultra-efficient HVDC technology."


Technology Review: Europe Backs Supergrids:
"This summer [2008], for example, a negotiator appointed by the EC convinced France to accept a new transmission connection with Spain, breaking a 15-year impasse over expanding power exchanges between the countries. Use of high-voltage DC (HVDC) technology will enable planners to bury the new line and thereby overcome local opposition to conventional overhead AC transmission lines."


Wikipedia explains how HVDC can have low power losses:
"Power in a circuit is proportional to the current, but the power lost as heat in the wires is proportional to the square of the current. However, power is also proportional to voltage, so for a given power level, higher voltage can be traded off for lower current. Thus, the higher the voltage, the lower the power loss."
"The advantage of HVDC is the ability to transmit large amounts of power over long distances with lower capital costs and with lower losses than AC."


Lots of interesting stuff in the Wikipedia article. This excerpt seems to explain the connection between HVDC and variable power sources:
"Because HVDC allows power transmission between unsynchronised AC distribution systems, it can help increase system stability, by preventing cascading failures from propagating from one part of a wider power transmission grid to another. Changes in load that would cause portions of an AC network to become unsynchronized and separate would not similarly affect a DC link, and the power flow through the DC link would tend to stabilize the AC network. The magnitude and direction of power flow through a DC link can be directly commanded, and changed as needed to support the AC networks at either end of the DC link. This has caused many power system operators to contemplate wider use of HVDC technology for its stability benefits alone."


2009/08/17

ActionScript: TileList, deleting, scrolling backwards

I have a Flex app which shows users a TiledList of chemical structure depictions. Since it can be a large list, it's lazy-loaded from the server as the user scrolls through the list.

Users can delete items from the list, with undo. In order to do this with reasonable performance, once the app has received confirmation from the server that an item has been deleted, it clears out the single deleted item from its local lazy-list.

To undo the deletion locally, the Flex app fills the correct lazy-list entry with an ItemPendingError; that error gets thrown as soon as the TileList tries to retrieve the item.

All of this works okay when the row containing the undeleted item is already visible. On the other hand, if the user has scrolled away from the row where the undeleted item will reappear, then when (s)he scrolls back the TileList simply empties out that item and all of the successive items in the row. Ugly!

ugly_repaint.png


Workaround

When the item is undeleted, immediately try to retrieve it via getItemAt(itemIndex). Catch the resulting ItemPendingError and register an ItemResponder. When the ItemResponder's result or fault method is called, tell the TileList to invalidateList(). If the undeleted item actually contains a value, the TileList will repaint correctly -- no more unsightly gaps.


import mx.collections.errors.ItemPendingError;
import mx.collections.ItemResponder;
[...]
try {
structures.getItemAt(offset);
} catch (e:ItemPendingError) {
e.addResponder(
new ItemResponder(
function(result:Object, token:Object = null):void {
tilelist.invalidateList();
},
function(error:Object, token:Object = null):void {
tilelist.invalidateList();
}));
}

2009/08/10

I like Mike -- General Michael Collins, That Is

This year's John Glenn Lecture Series featured Sen. Glenn, Chris Kraft and the three Apollo 11 astronauts. Michael Collins was as smart, funny and humble as in "When We Left Earth." His talk starts roughly 55 minutes in.

Apologizing for the lecture-unfriendly layout of the IMAX theater, which he helped approve:

"I'm down here in the bottom of a black hole about to be sucked in by gravity..."


After putting up this picture, which he took as the LEM began its descent to the lunar surface:
michael_collins_background_img.png
"I like that photo, it's my favorite one. You see in the little thing there are 3 billion people, and then in the big thing there are two people..."


About the glistening blue earth in the background:
"Serene it is not. Fragile it is. The world population when we flew to the moon was 3 billion people. Today it's over six and headed for eight, so the experts say. In my view this growth is not wise, healthy or sustainable[...]
"Our economic models are all predicated on growth. They require it. Grow or die, or maybe both: the dead zone created by the runoff from the Mississippi into the Gulf of Mexico is now larger than the State of New Jersey, and still growing...
"We need a new economic paradigm that somehow can produce prosperity without this kind of growth."



The video: http://www.youtube.com/watch?v=w9fCPhspOCQ

2009/07/22

Sen. Lamar Alexander on Nuclear Energy

On July 13th Sen. Lamar Alexander held a press conference to propose a low-cost, clean energy plan centered on nuclear energy. I still haven't digested the whole proposal, but it's an interesting read.

C-SPAN has video. Senator Alexander's website has the proposal in PDF format.

One bullet item from the press conference really resonated:

"We want an America in which we are not creating “energy sprawl” by occupying vast tracts of farmlands, deserts, and mountaintops with energy installations that ruin scenic landscapes. The Great American Outdoors is a revered part of the American character. We have spent a century preserving it. We do not want to destroy the environment in the name of saving the environment."


Amen to that! "Energy installations" can be beautiful...

Navajo Power Plant Lake Powell

But I'd hate to see the Taos valley scarred over with wind turbines.

Anyway, just now the most cost effective way to address the electricity needs of the U.S. seems to be to reduce demand, by improving energy efficiency. Going forward, since our population is projected to grow by 44% by 2050, we'll probably still need to increase electricity production.

If we're willing to change U.S. policy on re-processing spent nuclear fuel, Sen. Alexander's proposal could work. France provides an existence proof.



Life Shore Gits Tedious

I was hoping to find numbers on total electricity consumption by country, to compare France's production capacity to our own projected needs. Instead I found this Wikipedia entry, which describes the currently-decreasing per capita electricity consumption of the U.S.; notes that the U.S. still consumes considerably more electricity per capita than countries such as Germany; discusses various ways of measuring national energy efficiency (e.g. energy intensity); describes the relationship between population growth and electricity consumption; and so forth.

Why does the reading list never get shorter? :)

2009/07/21

Unresponsive console.app on OS X 10.5

Recently, when I opened console.app and tried to view either Console Messages or All Messages, cpu usage spiked and console.app became unresponsive. Activity Monitor showed aslmanager using up all of the cpu.

The following discussion thread helped solve the problem. The final required step seems to have been to remove the entire /private/var/log/asl/ directory before restarting syslogd.

Apple - Support - Discussions - ASLMANAGER hogging CPU, resisting fix? ...

Update: It looks like aslmanager first appeared in OS X 10.5.6. It also looks like the asl facility is Apple's replacement for syslogd, created to make it easier to quickly search system logs. From the asl(3) man page: "This API permits clients to create queries and search the message data store for matching messages."

2009/07/18

I really like New Mexico...

... but every once in awhile I wish I was back in Dayton.

Apollo astronauts relive experiences at ceremony

2009/07/15

Bravo Bill Gates

In the same vein as yesterday's half-baked post, Bill Gates has helped make freely viewable (if not downloadable) a lecture series by Richard Feynman.

From CNET:

"Gates first saw the series of lectures 20 years ago on vacation and dreamed of being able to make them broadly available. [...] Tapping his colleagues in Redmond to create interactive software to accompany the videos, Gates is making the collection available free from the Microsoft Research Web site."


The name of the site?
Project Tuva. Nice touch.


The site doesn't seem to load in Safari 4 w. Silverlight 2, but Firefox 3.5 / Mac works fine.

2009/07/14

Lots of offsite backups

[behold, another half-baked post]

The Register says that NASA will on Thursday release 'greatly improved' footage from the Apollo 11 landing. They speculate that this footage is derived from original tapes of the landing, which in 2006 NASA admitted having lost.

I hope NASA makes the new video freely available for download. If they do, they'll get thousands (millions?) of offsite backups for free, hosted by history buffs around the world. And they won't need to worry so much about losing the originals again.

The Library of Congress has already done something similar with the nation's library, e.g. by posting images to Flickr.

Granted, backups are useless if you can't restore them. It should be easy to put out a call for well-known documents such as the lunar landing videos. But LoC has all kinds of documents ranging from famous to obscure, and retrieving them by broadcasting a call to volunteers would be dicey at best.

So it's interesting to see that LoC is launching a pilot program "to test the use of cloud technologies to enable perpetual access to digital content."

2009/07/02

Canada and Japan blocking climate-change deal, Sir David King warns - Times Online

Canada and Japan blocking climate-change deal, Sir David King warns - Times Online:

"Governments previously were able to hide behind the US's intransigence on climate change, he said, but the pro-climate policies being launched by the Obama administration means this is no longer possible. 'The time has come for people to reveal their cards,' he told delegates."


via @TomRaferty by way of @timoreilly.

2009/06/21

The Benefits of a Classical Education

Tim O'Reilly has posted yet another article full of thought-provoking nuggets, in which he answers interview questions for a special report:

The Benefits of a Classical Education

The article muses on ways in which capitalism can be altruistic rather than greedy; bumps up my respect for West Virginia's Robert Byrd, whom I often see as a detriment to Congress; and includes incisive quotes from Alexander the Great and Mark Twain ("While history doesn't repeat itself, it does rhyme"). All this in response to the first interview question.

A Supreme Leader Loses His Aura - NYTimes.com

If only because of the Times's reputation in recent years, I have to wonder how much of this report is real. Still, a compelling read.

Op-Ed Columnist - A Supreme Leader Loses His Aura as Iranians Flock to the Streets - NYTimes.com

@terrycojones has posted a link to the Wikipedia article on Iran's 1953 coup. Among other things I hadn't known that British Petroleum had its origins in the Anglo-Persian Oil Company. http://bit.ly/11q8Oq

2009/06/19

Opponents blast Northwest Quadrant housing project

Santa Fe's northwest quadrant housing project has all of the smells of the malling of Beavercreek, Ohio. City staff will just keep asking for approval until they get the answer they want.

Opponents blast Northwest Quadrant housing project:

"Other residents questioned [...] a plan to pump sewage uphill and other facets.
The housing project on city-owned land would be concentrated on about 122 acres of the 540-acre Northwest Quadrant. The proposal calls for construction of more than 750 housing units, including single-family homes and multi-family complexes that would rise up to three stories tall [emph. added] as well as up to 110,000 [square] feet of mixed-use development that could include commercial uses. "


<Incoherent Pre-coffee Ramblings>

Up to three stories tall... on top of a ridge line. There goes the neighborhood.

Would there be no value in turning this land into public space?

When I first moved to Santa Fe ten years ago, I could walk to the top of the ridge above my apartment and take in a view that encompassed Los Alamos, the Sangre de Cristos, and the Sandias more than fifty miles to the south. The view is still available, and it's on land which city staff wants to bury under multi-story housing.

These days I live "in the hole" of Casa Solana, just to the south of the proposed development. The targeted land is still the best place, for miles around, to watch the fog of a morning storm turn into ragged, fast-moving tufts of cloud.

Of course, when I first moved here the open area was also filled with old mattresses, broken beer bottles and old engine blocks. Human nature is everywhere the same.

Perhaps awesome views are of value mainly to those who have lived too long amid urban sprawl. Even city planners, who must know that scenery is one of the reasons people visit northern New Mexico, believe they will gain more from taxes on developed land than from natural beauty.

"You can't eat scenery." — Victor, "Local Hero"

</Incoherent Pre-coffee Ramblings>

2009/06/16

Palm's Big Opportunity


Via Macintouch:

"An iPhone app developer's world is lonely...
Three parties are involved: the developers (us), Apple, and the customers. For the most part, Apple stands between us and our customers[...] we can't issue refunds, we can only issue a few promo copies, we can't collect upgrade revenue, we can't respond to App Store reviews, we can't provide installation support, and we can't release updates to address customers' issues in a reasonable amount of time. We can't even tell them when the next update will be available, because we honestly don't know. [...] Our customers, like us, are mostly in the dark with this process, and we can't do much to help them.
For the most part, it's just us and Apple in the room.

And Apple's a brick wall.
"


In large part, Palm has based webOS on open standards. The Palm pre user experience is reported to be very good. Sprint (tethering) and AT&T (rug-yanking over data plans) both stink.

So will Palm be able to draw developers, and customers, to its platform by running a less authoritarian app store than Apple's? Will it even try to do so? Here's hoping...

2009/06/12

We are too many

Sciam examines relationships between environmental degradation and population. Still haven't digested it all. This looks like the punchline:

Population and Sustainability: Can We Avoid Limiting the Number of People?: Scientific American:

"...the evidence suggests that what women want—and have always wanted—is not so much to have more children as to have more for a smaller number of children they can reliably raise to healthy adulthood. Women left to their own devices, contraceptive or otherwise, would collectively ‘control’ population while acting on their own intentions."

2009/05/29

The TSA - back in bounds?

AOPA Online: TSA lessens security restrictions on transient pilots:

"According to the new directive, transient pilots who fly into commercial-service airports no longer need to get an airport badge or background check. However, they must remain close to their aircraft, leaving it only to walk to and from the fixed-base operator, service provider, or airport exit. The TSA also has said that it will make provisions for self-fueling operations and grant allowances for emergency situations."


Score one for AOPA.

2009/05/22

...Mentally awake...

Brain Power - At Card Table, Clues to a Lucid Old Age - Series - NYTimes.com:

"Interacting with people regularly, even strangers, uses easily as much brain power as doing puzzles, and it wouldn't surprise me if this is what it's all about."


Heck, I have a hard time just remembering names during introductions...

2009/05/21

H1N1 Death totals

The CSV data from the rhizalabs site does seem to show more than 150 deaths worldwide from H1N1. I'm not sure why the number is higher than the totals quoted elsewhere, but the CSV data does point to an excellent source of summary data: the Mexican government's Health - Mexico website. (I'm not sure about the proper site name. The URL is http://portal.salud.gob.mx/.)

In my previous post I wondered about the distribution of ages in fatal cases. The PDF reports from the Mexican health site present exactly that information (albeit for Mexico only), very clearly. See for example page 4 of http://portal.salud.gob.mx/descargas/pdf/influenza/situacion_actual_epidemia_190509.pdf

U.S. Says Older People Appear Safer From New Flu Strain - NYTimes.com

U.S. Says Older People Appear Safer From New Flu Strain - NYTimes.com:

"...federal health officials said on Wednesday that people born before 1957 appear to have some immunity to the swine flu virus now circulating.
Tests on blood serum from older people showed that they had antibodies that attacked the new virus, Dr. Daniel Jernigan, chief flu epidemiologist at the Centers for Disease Control and Prevention, said in a telephone news conference."


It would be interesting to see the distribution of ages in all confirmed incidents. Who aggregates that data?


Self-Serving Status Update

I've continued working on the Mesa H1N1 interactive timeline site. It now includes a graph of cumulative incidents (confirmed, suspected, fatal) over time. The number of new incidents worldwide has grown enough that I'm going to need to refactor the code, to better limit (through aggregation) the number of incident markers which must be placed on the map.

I'm still having trouble with a discrepancy in the time-series graph. The development server yields 86 deaths worldwide as of 20 May 2009, whereas the production server shows 154 deaths. Both are supposed to be using the same code, and the same database. I'm reloading the production database now.

It appears that http://flutracker.rhizalabs.com is still the best source of incident data, although there are a few discrepancies in its records. If anyone knows of an authoritative source of detailed incident data, please let me know via the comments.

2009/05/04

More about masks and flu transmission

I really need to learn to read...

How can masks be effective in preventing spread of viral infections, when viral particles are so small and when experiments with guinea pigs show that coughing and sneezing aren't required for transmission?

From the PNAS journal article:

"Our results indicate that droplet transmission of influenza virus occurs between guinea pigs..."


Granted, I haven't dug into the article for information on the droplets' sizes, but this suggests all kinds of variables to examine: mask porosity, how vapor/droplets condense onto masks, etc.

More anecdotal evidence on the effectiveness of masks in preventing secondary pneumonia, at least, comes from "The Great Influenza". From page 211:
"Capps did write the JAMA article. He reported finding the masks [used by patients with respiratory disease at Camp Grant near Rockford, IL] so successful that after less than three weeks of experimenting he had abandoned testing and simply started using them 'as a routine measure'."


They didn't always work. Page 215, describing the September 1918 wave of infection:
"Despite all precautions, despite wearing surgical masks and gowns... 43 percent of the staff... required hospitalization. Ten nurses at this single hospital died."

2009/04/30

“It's Good Weather for a Race”

Couldn't help thinking of Dian Chapman when I read this:

“It's Good Weather for a Race”:

"because when it comes to their service and sacrifice, warm words and gestures are more than warranted, but they're not nearly enough."

Technology Review: Swine Flu Genome Hints at Milder Virus

People exposed to the 1957 flu pandemic may have some immunity to the current H1N1.

Technology Review: Blogs: TR Editors' blog: Swine Flu Genome Hints at Milder Virus:

"Ralph Tripp, an influenza expert at the University of Georgia, said that his early analysis of the virus' protein-making instructions suggested that people exposed to the 1957 flu pandemic--which killed up to 2 million people worldwide--may have some immunity to the new strain. That could explain why older people have been spared in Mexico, where the swine flu has been most deadly."


Secrets of the Dead: Killer Flu suggested that the distribution of deaths by age in the 1918 pandemic hinted at a prior outbreak, about fifty years earlier.

2009/04/28

Swine Flu Genes From Pigs Only, Not Humans or Birds | Wired Science

Swine Flu Genes From Pigs Only, Not Humans or Birds | Wired Science:

"‘The new neuraminidase gene that came in from Eurasian swine is one we’ve never before seen circulating in humans,’ said Rambaut. ‘That’s one of the reasons it’s spreading rapidly. Very few people will have any immunity to this particular combination, which is what gives the concern that this will be a pandemic rather than just a normal seasonal flu outbreak. It remains to be seen how much and to what extent there is existing immunity.’"


Update 2009/04/30: The following article is more recent than the one above, but is it based on the "earlier reports" mentioned in the Wired article?

Technology Review: Hunting for Clues in the Swine Flu Genetic Code:
"The new swine flu virus appears to have done more swapping than usual, with genetic segments from four different sources: North American swine influenza viruses, North American avian influenza viruses, one gene segment from a human influenza virus, and two gene segments that are normally found in swine influenza viruses in Asia and in Europe.
"Parts of it are from the original 1918 virus, parts are similar to the current circulating H1N1 strain from seasonal flu," says Sasisekharan..."

Ford Fusion hybrid hypermiles, goes 1,445 miles on a single tank

Ford finally beat my 1990 Honda CRX :)

Ford Fusion hybrid hypermiles, goes 1,445 miles on a single tank:

" On the 1,445.7-mile trip, the Ford Fusion hybrid was pushed to an average of 81.5 mpg."


For the record, the CRX routinely topped 50 mpg on the interstates around Dayton. Descending out of the San Juans it could top 60 mpg. Two seats. No air conditioning.

So masks *do* work...

An earlier post expressed skepticism about how effectively masks prevent transmission of flu. Now a clinical trial has shown they can prevent transmission of disease from others to the wearer:

Worried about the flu? Get a mask: Scientific American Blog:

"All of the participants were initially healthy but at risk for catching viruses from their children, who had documented cases of respiratory illness. The researchers found that, after a week, the non-mask wearers were four times more likely to catch a variety of viruses, including the common cold and flu, than those who wore them properly (meaning they strapped them on whenever they happened to be in the same room as their sick children). The masks appeared to be equally effective."


If I'm reading correctly, plain old surgical masks were just as effective at preventing transmission as the more expensive P2 masks, which are "specially designed to filter out water droplets containing viruses".

2009/04/25

A few comments on pandemic influenza - fluidinfo

A few comments on pandemic influenza:

"The acting-director of the CDC has already said: "There are things that we see that suggest that containment is not very likely." That is a remarkably candid statement. I think it's very clear that the cat is out of the bag."


via Tim O'Reilly

Influenza Recap

Fear, anger and fatalism over swine flu in Mexico:

"But it may be too late to contain the outbreak, given how widespread the known cases are. If the confirmed deaths are the first signs of a pandemic, then cases are probably incubating around the world by now, said Dr. Michael Osterholm, a pandemic flu expert at the University of Minnesota.
No vaccine specifically protects against swine flu, and it is unclear how much protection current human flu vaccines might offer.

In Mexico City's Zona Rosa neighborhood, teenagers with spiky hair and tight jeans laughed at the danger.
'People are giving too much importance to something that isn't that big of a deal,' said Oscar Zarate, 19, shouting over the loud music and the jostling crowd outside a packed night club."


It will be interesting to see how this develops.

About a year and a half ago I was involved in developing a web application for visualizing results of pandemic simulations. It was intended as a disaster-preparedness application for governments and large (esp. multinational) corporations. The effects of all of the mitigations discussed in the article -- travel restriction, vaccinations, antiviral therapies, etc. -- could be compared in the web app.

Mitigation

I'm a little skeptical of the effectiveness of surgical masks, which seem to be a big feature of the initial response. Are masks really effective at keeping small viruses out of suspension in the atmosphere? The CDC says only that:
"Very little is known about the benefits of wearing facemasks and respirators to help control the spread of pandemic flu."


Recent experiments with guinea pigs showed that coughing and sneezing were not necessary for transmission of flu virus. Instead, atmospheric temperature and humidity determined how well the virus could be suspended in air, which is where it ended up as a result of normal exhalations by the test animals.

Those experiments, incidentally, were inspired by a report of events in southwestern New Mexico:
In an article published in 1919 that details the progression of the 1918 influenza epidemic at Camp Cody, New Mexico, the authors describe a parallel outbreak of pneumonial disease among their laboratory guinea pigs.


"The Great Influenza" gave a good account of the mitigations attempted in 1918 -- including use of surgical masks -- and of their effectiveness. The only thing which really worked then was quarantine. For example, Gunnison County Colorado escaped the 1918 flu with only two deaths, thanks to its stringent quarantine efforts. Silverton lost 10% of its population.


Early Detection

One question which our web application failed to answer was: how do you know when an outbreak is underway, i.e. how do you know when to start mitigation?

It's interesting that Google Flu Trends seems not to have picked up on this outbreak. Granted GFT monitors trends in the United States alone; but the CDC is already aware of cases in California and Texas.

Further Reading -- er, Viewing

PBS has produced some good documentaries on the 1918 flu.

"American Experience: Influenza 1918" (website) focuses on what it was like to live through the pandemic.

Although it's somewhat dated (IIRC it precedes successful recreation of the 1918 virus), "Secrets of the Dead: Killer Flu" (website) is a fascinating detective story about efforts to find the origins, and the keys to the effectiveness, of the 1918 flu.

2009/04/24

A Little Air Pollution Boosts Vegetation’s Carbon Uptake / Science News

A Little Air Pollution Boosts Vegetation’s Carbon Uptake / Science News:

"‘Surprisingly, the effects of atmospheric pollution seem to have enhanced global plant productivity by as much as 25 percent from 1960 to 1999,’ Mercado notes."


(See also the Nova episode on global dimming.)

This begs a rank-amateur question: are plants with needle-shaped leaves adapted for clear atmospheric conditions?

Developing Django apps with zc.buildout

Found this excellent introduction via Looking for quotes about Buildout.

Developing Django apps with zc.buildout:

"...

Finally, Buildout generated a bin/python interpreter."


So buildout makes it easy to create isolated Python environments, just like virtualenv, but perhaps with a different goal: isolated development environments vs. isolated deployment environments? Not sure; gotta read more...

2009/04/21

An Introduction to W3C Widgets

An Introduction to W3C Widgets:

"The king of browser compatibility tables, ppk, recently posted an introduction to W3C Widgets:

"


A new web standard to cover Konfabulator, Dashboard et al?

2009/04/17

Lang.NET 2009 at Ted Leung on the Air

Gratis ago ad Ted Leung for posting his summary of Lang.NET 2009. It seems like every time I see one of his summaries, my reading and projects lists grow.

Newspeak and Hopscotch
More reading here. Ted also links indirectly to the video of Gilad Bracha's talk.

Powershell

[Jeffrey Snover] seemed to think that UNIX shells could gain a fair amount of PowerShell’s capabilities by recognizing that pipes ship bytestreams, adopting a data format (like JSON or XML) for those byte streams, and proceeding from there. That might be true technically, but that would be a huge cultural change for that community.

Hm... imagine a /usr/bin_json/ sitting alongside /usr/bin. The first prototypes of the utilities therein could be based on David Beazley's tutorial "A Curious Course on Coroutines and Concurrency". (Start at slide 34 of the presentation slides.)

Monads
[Erik Meijer] then used mindless symbol pushing to demonstrate that [IEnumerable and IObservable] were duals of each other, and that they obeyed the rules for monads.

I'm so far behind on terminology... what the heck is a monad? Google suggests it's what Pythonistas would call a list comprehension or a generator expression.

Favorite Quote
I suspect that this is the only conference I will go to all year where Macs are the minority.

2009/04/10

Update: The TSA oversteps its bounds. Again.

(My earlier note is here.)

.:: Aero-News Network: The Aviation and Aerospace World's Daily/Real-Time News and Information Service ::.:

"Rex Tippetts of Grand Junction's Walker Field (GJT) estimates he'll need 2,000 additional security checks and badges. 'It's out of control. We have a large maintenance operation here with 400 people. We have a large interagency fire-fighting operation here, with maintenance facilities.'
To defray costs of the programs, pilots needing access to the ramp at Grand Junction will be charged $130 each for badges... which will not be honored at any other airport."


AOPA Online: Pilots unhappy with TSA security directive:
"Under the current version of the directive, pilots based [emph. added] at air carrier airports are required to undergo a security threat assessment and receive a security badge in order to continue to have unescorted access to their airports."


AOPA seems to be less concerned than Aero-News Network about Security Directive 8F. AOPA indicates that the directive requires security badges for GA pilots, but only at their home airports. ANN seems to interpret the directive to mean that pilots will need badges for all subject commercial airports which they visit. Or else, on arrival at such an airport, to remain in their cockpits until a badged escort arrives.

Either way, it's a PITA. One might think TSA was trying to destroy general aviation.

2009/04/09

Ford plans to increase efficiency by dramatically reducing weight

Ford plans to increase efficiency by dramatically reducing weight:

"Ford plans to cut 500 to 750 pounds of flab from each automobile that it redesigns. A reduction of weight on this magnitude should allow Ford to reduce the size of the engine powering the vehicle, further increasing fuel efficiency. "


Has Amory Lovins (or perhaps Bright Automotive) been consulting with Ford?

2009/04/02

Seagate, new Mac Mini, Firewire vs. USB

I recently bought a new Mac Mini, and wanted to connect my ~ 2 year-old Seagate 500GB drive[1] to it. I'd hooked up a couple of other drives via USB without incident. But the Seagate started giving me headaches right away.

Folders on the Seagate kept disappearing. When I'd try to disconnect the drive to cycle power on it, the Finder would report that it was still in use. If I went ahead and cycled power, I'd get a nasty warning dialog, but the drive would come back undamaged.

The system logs showed that the kernel started getting read errors on the drive just before each disappearing act.

Sometimes the problems would start almost as soon as the drive was recognized by the system. Sometimes they'd appear more than eight hours after the drive came online.

I've used this Seagate for a couple of years with no problems, on an iMac, via Firewire 400. I tried connecting it to the iMac again, this time via USB. No disappearing folders. Hmm.

I've read reports of Mac and Windows users having issues with Seagate drives whose firmware settings cause them to spin down after a few minutes of inactivity; they never spin back up. That doesn't seem to be the cause of this intermittent problem, but I can't rule it out.

In any case, a few days ago I ordered a Firewire 800-400 cable from Amazon, and used it to connect the Seagate to the Mac Mini's FW 800 port. So far — fingers crossed — all is well!



[1] It's an ST3500641CBRK.

2009/03/29

Perception is Truth

It's time to green this old (White) House - again:

"During George W. Bush's two terms, workers installed three solar systems, including a thermal setup on the pool cabana that heats water for the pool and showers, and photovoltaic panels atop a maintenance shed that supplement the mansion's electrical supply. "

2009/03/18

FactCheck.org: Education Spin

FactCheck.org: Education Spin:

  • The high school dropout rate hasn't 'tripled in the past 30 years,' as Obama claimed. According to the Department of Education, it has actually declined by a third[...]
  • Obama also set a goal 'of having the highest proportion of college graduates in the world' by 2020. But in terms of bachelor's degrees, we're nearly there. The U.S. is already second only to Norway in the percentage of adults age 25 to 64 with a four-year degree, and trails by just 1 percentage point.


Nobody listens to the real climate change experts - Telegraph

Nobody listens to the real climate change experts - Telegraph:

"Far from rising with CO2, as the models are programmed to predict they should, the satellite-measured temperature curve has flattened out and then dropped. If the present trend were to continue, the world in 2100 would not in fact be hotter but 1.1C cooler than the 1979-1998 average."
"The best correlation for temperature fluctuations is not CO2 but the magnetic activity of the sun. (For an admirable summary of proceedings by the Australian paleoclimatologist Professor Bob Carter, Google "Heartland" and "Quadrant")."


Here's an example:
"Dr Soon also described the empirical test as to whether extra carbon dioxide will produce extra warming that is conducted in Salt Lake City, and other similar cities, every winter. There, a winter CO2 dome attains CO2 levels up to 500 ppm, as compared to the present background atmospheric level of 380 ppm. Yet no discernible enhanced warming is present in the measured temperature curve for Salt Lake City. It follows that the worldwide rush to inhibit CO2, at huge cost, will have no effect on future climate whatsoever. “The role of CO2 in the climate system is just miniscule”, Dr Soon said."