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;