New Scientist: Vaccine zaps allergy in record time

Vaccine zaps allergy in record time - health - 04 February 2007 - New Scientist

I've often wondered why an effective treatment for an allergy is to expose the sufferer to more of the allergen. According to the article (emph. added):

Existing vaccines for allergies involve three to five years of regular injections with increasing amounts of allergen... All the while the immune response slowly changes from a predominance of T-helper 2 (TH2) cells, immune cells responsible for triggering allergic reactions, to T-helper 1 (TH1) cells, which stimulate the production of protective antibodies.

So the trick is to make sure the vaccine contains only a small dose of the allergen -- so as not to kill the subject? And yet, as the article says,

Because nothing is directing allergens to the right place in immune cells, it takes a lot of allergen to generate a response.

The new vaccine is structured to deliver the allergens/antigens to the right places.

"[Components in the new vaccine] lower the dose needed to induce a T-cell response by a factor of about 100," says Reto Crameri of SAIF, lead author of the study.

What made the 1918 flu contagious?

Pandemic flu may be only two mutations away - health - 01 February 2007 - New Scientist Space

What a virus needs to spread, the CDC team concluded, is an ability to bind 2,6 sugars, whether or not it needs this to replicate... One clue, they speculate, is that ferrets with non-contagious viruses... do not sneeze. Contagious ferrets do.

“The cells with 2,3-sialic acid receptors have been associated with the bronchial mucins,” Tumpey told New Scientist. This viscous secretion might inhibit these viruses, and prevent the irritation that causes sneezing, which “may contribute to the spread of influenza, at least in ferrets”.

...the CDC results suggest finding out what mutations make H5N1 bind to 2,6-sialic, as those could make it contagious.

Multi-touch

One of the most interesting traits of the upcoming Apple phone is its multi-touch user interface. I'd never heard of multi-touch until about a year ago, when Jeff Han's NYU website made the blog rounds.

This evening I finally tripped across the first public demonstration of NYU's multi-touch interface, from last February's TED conference. It's a fascinating presentation, especially when Mr. Han begins musing on data visualization applications. (And it's pretty cool when the audience "gets" it.) He makes it easy to imagine new ways of interacting with molecular depictions and n-space grid projections.

The NYU website carries a new teaser:

Yes, we saw the keynote too! We have some very, very exciting updates coming soon- stay tuned!

Fun times.

Copying Syntax-Highlighted Text from TextMate

TextMate has great syntax highlighting skills. Sometimes I'd like to copy code snippets from TextMate to VoodooPad, and I'd like to bring along the text highlighting. A simple copy-and-paste from the TextMate edit window doesn't do the job -- after all, it's a text editor.

Fortunately it is possible to copy with syntax highlighting. The procedure is pretty simple, if a bit obscure.


  1. Select the text of interest in TextMate.
  2. Select Bundles->Experimental->View Document as HTML
  3. A new "View Document as HTML" window should appear.
  4. Select the text in the window and copy it to the clipboard (Command-C).
  5. Switch to Voodoopad and paste (Command-V).

What About MarsEdit?


With a little more work you can paste syntax-highlighted snippets into MarsEdit.

Start out as above. Once the "View Document as HTML" window appears, select View->View Source. Another new window should appear which contains raw HTML.

Select it all (Command-A), copy it (Command-C), switch to your MarsEdit window and paste (Command-V). But first you'll need to re-work the content a bit, since it includes a <style> section which applies to your entire post.

Be sure to collapse the entire style section onto a single line, lest Blogger should insert a bunch of <br/> tags.


Here's an existence proof:



def geoMean(x, y):
"""Get the geometric mean of x and y."""
return math.sqrt(abs(x * y))



Changing Mac OS X File Icons

I thought that, if you wanted to set the icon for a non-application file in OS X, you had to go through a convoluted process that involved copying the icon from another document. But it turns out you can just compose your icon with your favorite graphics tools, then copy and paste it into place.

For example, I wanted to change the icon on a QuickTime movie file. Here's what I had to do:


  1. Draw the icon graphics in OmniGraffle.

  2. Select the icon graphics.

  3. Edit->Copy (Command-C).

  4. Switch to the Finder.

  5. Select the QuickTime movie file.

  6. File->Get Info (Command-I).

  7. Select the document icon in the top left of the info window.


  8. Paste in the new imagery (Command-V).



Sweet!

Firefox 2.0 and display:inline-block

If you want to use <span> markup to define CSS-styled buttons with background gradients, and if you want to control the heights of those buttons, and if you are using Firefox 2.0, you have to jump through some non-standard hoops.

Firefox 2.0 doesn't support display:inline-block. If you have the Web Developer extension installed, it will report "Error in parsing value for property 'display'. Declaration dropped." And instead of getting a button with the right height for your background image, you'll get something silly looking, like this:

(I know, the colors look silly too. But that's not important right now.)

Yahoo! search turned up some background information, and a workaround for those who want to make links (<a href="...">) look like buttons:

NCZOnline - Pain with inline-block

Basically, you need to do this in your CSS:

.BtnClass {
  display: inline-block;       /* Firefox 2.0 ignores this */
  display: -moz-inline-stack;  /* Firefox picks this up */
}

The comments say that this bug has been logged in Bugzilla, and there's hope it will be fixed in Firefox 3.0.

Works for me with Firefox 2.0 and Safari 2.0.4, both on Mac OS X 10.4.8. Almost:

I'd like the span's text to be centered vertically on a background image.

Here's the cleanest solution so far. Suppose the background image is 24 pixels high and the font size is 14 pixels. Then, doing the vertical centering manually, the y offset is (24 - 14)/2 = 5px. So pad the top of the span by 5 pixels, and set its height to the total height minus the padding.

.BtnClass {
...
    background-image: url(some_image.png); /* 24 pixels high */
    font-size: 14px;
    height: 19px;
    padding-top: 5px;
}

In other words, add vertical padding to push the text down from the top of the span, then subtract that padding from the overall span height; apparently the final height of the span is height + padding-top + padding-bottom.

This works reasonably well for both Firefox and Safari.

Fevers Help the Immune System

(Pardon the "duh" headline.)

Helpful fevers come in from the cold - health - 05 November 2006 - New Scientist

I found this article interesting mainly because I like to let my fevers run -- "bake out the infection". Works for me, but then I've never had a really high, convulsion-inducing fever.

Anyway, interesting tidbits from the article:

It has been found that fevers help the body’s immune system identify an infection and raise an army of white blood cells (lymphocytes) against it. ...[Researchers] artificially created a fever-like state in a group of mice... This had the effect of doubling the number of lymphocytes visiting lymph nodes... Lymphocytes arriving at the nodes are screened for "killer efficiency" using fragments of potentially infectious material. Lymphocytes that respond to the fragments are found, are then selectively multiplied, and then swarm into the bloodstream to seek out and destroy the invader.

Apparently the extra heat of a fever activates high endothelial venule cells ("gatekeeper" cells, as the article calls them) in lymph nodes. They produce extra surface proteins that capture passing lymphocytes and draw them into the lymph nodes.

Evans says that although it fell out of fashion with the development of modern medicine, the idea of treating disease with heat has a long history: "Hippocrates used to heat patients with cancer," she says. And a century ago the physician William Coley discovered a cocktail of bacteria, dubbed "Coley's toxins", which appeared to combat cancer by producing a fever.

Why quarantine is preferred?

New strain of H5N1 bird flu emerges in China


...those vaccine-induced antibodies do not recognise the Fujian virus, although they do attack the virus strains that Fujian has now replaced.
This means the Fujian strain has a selective advantage in vaccinated birds. "This novel variant may have become dominant because it was not as easily affected as other strains by the current avian vaccine," says Guan. That may also be why H5N1 infection in Chinese poultry has surged, rather than decreased, despite increased poultry vaccination.

Worryingly, the antibodies being used to develop human vaccines for H5N1 ... do not recognise the Fujian strain. This means the current experimental pandemic vaccine would not work against any pandemic virus that emerged equipped with Fujian surface proteins.


In the face of mutating pathogens it's easy to see why monitoring and quarantine are favored weapons against epidemics.

Firefox Vs. Acrobat

Firefox Vs. Acrobat - macosx.com

I just switched to Firefox 2.0 as my default browser under Mac OS X. When a friend emailed a link to a PDF document, I clicked it as usual.

Out of the box Firefox, unlike Safari, cannot view PDFs inline. That's okay, I really just want it to open it in Preview.

Alas, that's not an option. Firefox gives me the choice of saving to disk or of opening with Adobe Acrobat.

Gah.

I searched through the files in my Firefox profile directory. There were no direct references to Acrobat.

According to macosx.com the fault lies outside of Firefox. The thread suggests using Finder Info to make Preview.app the default viewer for all PDF documents. The suggestion did not work for one of the thread participants, and it doesn't work for me, either. Preview.app is already set as my default for all PDF documents.

A find|grep through ~/Library/Preferences turned up one promising hit:
./com.apple.internetconfig.plist

Unfortunately that's a binary property list file and even property list editor can't display its content in a human-intelligible way.

Solution

I closed Firefox, moved ~/Library/Preferences/com.apple.internetconfig.plist out of the way, and followed my friend's link again. This time Firefox let me choose between saving to disk and opening with Preview.app.

Interestingly, Firefox did not create a new copy of the plist file for me.

Better Solution

A less radical solution also works: when Firefox asks how you want to handle the PDF, tell it to save to disk. Also select the checkbox labeled "Do this automatically for files of this type from now on."



After downloading, open Firefox Preferences, switch to the Content pane, and click the "Manage..." button at bottom right.



The list should now contain an entry for PDF. Select it, edit, and change to open with a different application than the default.