2009/01/30

Blue light kills MRSA 'superbugs' - The Register

Blue light kills MRSA 'superbugs' - The Register:

"American medi-boffins say they have developed a way to kill so-called 'superbugs' - deadly infections which can't be cured using antibiotics - by simply shining a certain wavelength of blue light on them. They believe the technique could be used safely on patients infected with MRSA [Methicillin-Resistant Staphylococcus aureus].
'It is inspiring that an inexpensive naturally visible wavelength of light can eradicate two common strains of MRSA. Developing strategies that are capable of destroying MRSA, using mechanisms that would not lead to further antibiotic resistance, is timely and important for us and our patients,' says Chukuka S Enwemeka PhD of the New York Institute of Technology."

2009/01/28

Cheap, super-efficient LED lights on the horizon - New Scientist

Cheap, super-efficient LED lights on the horizon - tech - 29 January 2009 - New Scientist:

"Humphreys reckons that the UK government encouraged consumers to drop tungsten bulbs too soon. 'We should have stayed with tungsten for another five years and then switched to LEDs,' he says."

I'm a sceptic now, says ex-NASA climate boss - The Register

I'm a sceptic now, says ex-NASA climate boss - The Register:

[Theon said] "My own belief concerning anthropogenic climate change is that the models do not realistically simulate the climate system because there are many very important sub-grid scale processes that the models either replicate poorly or completely omit. Furthermore, some scientists have manipulated the observed data [emphasis added, etc.] to justify their model results. In doing so, they neither explain what they have modified in the observations, nor explain how they did it.
"They have resisted making their work transparent so that it can be replicated independently by other scientists. This is clearly contrary to how science should be done."

So he's a skeptic about man-made global climate change. I wonder what he thinks about climate change trends in general. E.g. do the data indicate long-term warming, regardless of cause?

Aside: I quit reading treehugger.com a few years ago, after the reporter in one of their so-called "news" videos mocked a claim that some climate change was due to the sun. "That's right: the sun. [snort]" As if fluctuations in our largest energy source could not affect our climate...

More from The Register:
"Hansen has called for energy industry executives to be jailed for dissenting from the man-made warming hypothesis."

I didn't know that. The Guardian confirms it:
"James Hansen, one of the world's leading climate scientists, will today call for the chief executives of large fossil fuel companies to be put on trial for high crimes against humanity and nature, accusing them of actively spreading doubt about global warming in the same way that tobacco companies blurred the links between smoking and cancer."

2009/01/26

Obama's Order Is Likely to Tighten Auto Standards - NYTimes.com

Obama's Order Is Likely to Tighten Auto Standards - NYTimes.com:

"It would also pay for 3,000 miles of new or modernized transmission lines as part of a new national electric grid as well as 40 million 'smart meters,' which provide instant readouts of electricity uses, on American homes. The money would also help refurbish two million homes and 75 percent of federal building space to better guard against the weather"


Electricity consumption isn't my home's problem. My home's problem is natural gas consumption.

2009/01/21

Why Darwin was wrong about the tree of life - life - 21 January 2009 - New Scientist

Why Darwin was wrong about the tree of life - life - 21 January 2009 - New Scientist:

"Other cases of HGT in multicellular organisms are coming in thick and fast. HGT has been documented in insects, fish and plants, and a few years ago a piece of snake DNA was found in cows. The most likely agents of this genetic shuffling are viruses, which constantly cut and paste DNA from one genome into another, often across great taxonomic distances. "

2009/01/20

Django snippets: DebugFooter middleware with textmate links

Django snippets: DebugFooter middleware with textmate links:

"This version adds TextMate links : if you are working on your local machine and using TextMate you can click on the template paths and they will be opened in TextMate. This speeds up development time considerably!
also, this works with django 1.0"


Very useful.

ack -- better than grep, a power search tool for programmers

I've been using "Ack in Project" in TextMate for awhile. It works so well, I'd like to start using it from the command line.

Luckily it's easy. Paraphrasing from the author's website:

ack -- better than grep, a power search tool for programmers:

curl http://ack.googlecode.com/svn/tags/latest/ack-standalone > ~/bin/ack && chmod 0755 ~/bin/ack

BBC NEWS | Asia-Pacific | Fresh warning on China bird flu

BBC NEWS | Asia-Pacific | Fresh warning on China bird flu:

"Hong Kong's secretary for food and health, Dr York Chow, said this was a cause for concern.
'There are two main areas we are concerned about: one is that if there is no avian flu outbreak in poultry and yet there are human cases, does this mean the virus has changed?
'Secondly, we are worried about whether there are more so-called 'slightly infected' chickens that actually might be carrying the virus and transmitting the disease, and yet do not show any symptoms or die from those illnesses,' Dr Chow said."

2009/01/14

jQuery 1.3 Live Events

Release:jQuery 1.3 - jQuery JavaScript Library:

"Live Events

jQuery now supports 'live events' - events that can be bound to all current - and future - elements. Using event delegation, and a seamless jQuery-style API, the result is both easy to use and very fast."


If I read this correctly, now you can reload parts of your page and have any replaced controls wired up automatically. No more need for post-processing callbacks on $.load() or $.getJSON()?

Outstanding!

(And the description, "Live Events", is concise — much better than the term "path-based bindings" that I've been using.)

2009/01/11

Work on Stuff that Matters

Work on Stuff that Matters: First Principles - O'Reilly Radar:

"Our economy has many elements of a ponzi scheme. We borrow from other countries to finance our consumption, we borrow from our children by saddling them with debt and using up non-renewable resources."

2009/01/07

iWork '09: Numbers

Numbers '09 has some significant improvements.

  • It supports axis transformations — linear, log-scale (okay, that's probably not new).
  • It supports overlays, including a host of curve-fits, with annotations (formula, R-squared error, etc.)
  • Unlike its predecessor, Numbers '09 provides an AppleScript dictionary.


Impressive!

Picture 1.png

2009/01/05

VoodooPad Bookmarklets

VoodooPad bookmarklets make it easy to log search results.

I keep a worklog in VoodooPad. Notes for each day are stored in a page with a name of the form 'yyyy-mm-dd'.

When I'm searching for info on the web, I like to include relevant results in my worklog. I tend to record results in this format, to make it easier to find the results again in future:

http://url.of.interest/:
"""
Excerpt
"""


It's tedious to format these excerpts. At least two visits to the browser application are needed:
  1. Copy the URL
  2. Copy the text of interest


Luckily VoodooPad supports application-specific URLs, and you can create JavaScript bookmarklets to open such a URL, with the URL and any selected text for the page you're currently viewing.

Here's an almost human-readable example of a bookmarklet which adds an excerpt from the current web page, formatted as above, to the current worklog page in VoodooPad.

javascript:
var d = new Date();
var padded = function(v) {
var res = v.toString();
while (res.length < 2) {
res = '0' + res;
}
return res;
};
var page = [
String(d.getFullYear()),
padded(d.getMonth() + 1),
padded(d.getDate())
].join("-");
location.href = ('voodoopad:description=' +
encodeURIComponent(location.href + '\n"""\n' +
window.getSelection().toString() +
'\n"""\n') +
'&page=' + page);


Here's the same bookmarklet formatted for inclusion in your browser's menubar:
javascript:var%20d=new%20Date();var%20padded=function(v)%20{%20var%20res%20=%20v.toString();while%20(res.length%20<%202)%20{res%20=%20'0'%20+%20res;}%20return%20res;};var%20page%20=%20[String(d.getFullYear()),%20padded(d.getMonth()%20+%201),%20padded(d.getDate())].join('-');location.href='voodoopad:description='+encodeURIComponent(location.href+'\n"""\n'+window.getSelection().toString()+'\n"""\n')+'&page='+page;

2008/12/09

Unintended Consequences

Op-Ed Contributor - The Terrorists Want to Destroy Pakistan, Too - NYTimes.com:

"The world worked to exploit religion against the Soviet Union in Afghanistan by empowering the most fanatic extremists as an instrument of destruction of a superpower. The strategy worked, but its legacy was the creation of an extremist militia with its own dynamic."

2008/11/26

The government crash

Doc Searls:

The amazing thing about crashes is that you can see them coming...
Now we’re about to see the U.S. government crash, for the same reason.


The U.S. government is about to spend roughly 1/2 GDP to "fix" the economy.

It was a surprise this autumn to see foreign investors rushing to buy up more of our debt. Will we still look like a good bet after we've taken out a loan this big?

2008/11/20

Waxman topples Dingell for key panel chair - Yahoo! News

Waxman topples Dingell for key panel chair - Yahoo! News:

"Rep. Henry Waxman — a liberal ally of Speaker Nancy Pelosi — has wrested the chairmanship of the powerful House Energy and Commerce Committee from veteran Rep. John Dingell when the new Congress convenes in January."


I'm no fan of Waxman, but this could portend positive changes for the U.S. auto industry. Presuming, of course, that the best solution to our oil and carbon-emissions problems entails continued use of automobiles.

2008/11/18

LIFE photo archive hosted by Google | Photodoto

LIFE photo archive hosted by Google | Photodoto:

"LIFE has released over 10 million images on a new hosted image service from Google and in Google Image Search. They claim [...] that the collection contains ‘some of the most iconic images of the 20th century.’
LIFE is selling fine art prints (in partnership with Qoop it seems) of the collection and the photos are only available online as 1 megapixel scans."


Outstanding.




(I've seen a large print of this Margaret Bourke-White photo in a local gallery. A computer screen can't do it justice, not by a long shot.)

“New chapter” on climate change

From President-elect Obama promises “new chapter” on climate change | Change.gov:

The Global Climate Summit is a "2-day event arranged by California Governor Arnold Schwarzenegger to break gridlock on the issue ahead of next month's United Nations Climate Change Conference in Poznan, Poland."

President-elect Obama posted a short video expressing enthusiasm for the summit:

"...too often, Washington has failed to show the same kind of leadership. That will change when I take office."


Interesting times. It's easy to imagine this bit of cross-party consensus as the beginning of Friedman's e-tech economy.

Can't debug after updating to Flex Builder 3.0.2

I'm evaluating FlexBuilder 3, and have just installed the Flex Builder 3.0.2 update. All of a sudden I can't debug my AIR project.

The error dialog displays a lengthy message which ends with:

error while loading initial content


Thanks to Google and Adobe's public bug database, the fix is straightforward: edit the project's *-app.xml file and change the namespace (2nd line) to 1.5:


<application xmlns="http://ns.adobe.com/air/application/1.5">

2008/11/17

Prophesy of economic collapse 'coming true' - environment - 17 November 2008 - New Scientist

Prophesy of economic collapse 'coming true' - New Scientist:

Changes in industrial production, food production and pollution are all in line with [the predictions in "Limits to Growth"] of collapse in the 21st century, says Turner.
According to Herman Daly of the University of Maryland, Turner's results show that we 'must get off the growth path of business as usual, and move to a steady state economy,' stopping population growth, resource depletion, and pollution."

2008/11/14

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

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

"United Airlines will become the first US carrier to demonstrate how next-generation technologies could save more than two thousand gallons of fuel and cut up to 55,000 pounds of carbon emissions on a single, trans-Pacific flight."
Within minutes of landing, United will calculate and publish the actual savings realized on this flight.


As a recovering private pilot I find this fascinating...

A former colleague has been working on a related software project, using genetic algorithms and frequently updated weather data to help commercial flights decide how to alter their routes — diverting in all three dimensions as necessary &mdash to find the cheapest path between two points. I wonder if he's involved in any way in this test flight.