<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>James Scott-Brown</title>
 <link href="http://jamesscottbrown.com/atom.xml" rel="self"/>
 <link href="http://jamesscottbrown.com/"/>
 <updated>2021-11-14T16:59:57+00:00</updated>
 <id>http://jamesscottbrown.com/</id>
 <author>
   <name>James Scott-Brown</name>
 </author>

 
 <entry>
   <title>Why Python</title>
   <link href="http://jamesscottbrown.com/2015/03/23/why-python.html"/>
   <updated>2015-03-23T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2015/03/23/why-python</id>
   <content type="html">&lt;h2 id=&quot;why-python&quot;&gt;Why Python&lt;/h2&gt;

&lt;p&gt;Python has recently become my default language for new projects. There are several reasons to use python.&lt;/p&gt;

&lt;p&gt;Because it is very readable, and &lt;a href=&quot;http://norvig.com/python-lisp.html&quot;&gt;“can be seen as either a practical (better libraries) version of Scheme, or as a cleaned-up (no $@&amp;amp;% characters) version of Perl” (Norvig)&lt;/a&gt;. Treating incorrect indentation as a syntax error is very helpful when working with people who would otherwise indent code at random.&lt;/p&gt;

&lt;p&gt;Because it is good at a wide range of tasks, it is causing the &lt;a href=&quot;http://www.talyarkoni.org/blog/2013/11/18/the-homogenization-of-scientific-computing-or-why-python-is-steadily-eating-other-languages-lunch/&quot;&gt;“The homogenization of scientific computing . . . steadily eating other languages’ lunch”&lt;/a&gt;, and is &lt;a href=&quot;http://openwetware.org/index.php?title=Julius_B._Lucks/Projects/Python_All_A_Scientist_Needs&amp;amp;oldid=187310&quot;&gt;“all a scientist needs”&lt;/a&gt;. In contrast, MATLAB feels extremely powerful within one domain (essentially anything involving a matrix), but extremely clunky outside it (particularly anything involving a string).&lt;/p&gt;

&lt;p&gt;Because &lt;a href=&quot;http://ipython.org/notebook.html&quot;&gt;IPython notebooks&lt;/a&gt; are awesome for rapid prototyping, as well as &lt;a href=&quot;https://github.com/ipython/ipython/wiki/A-gallery-of-interesting-IPython-Notebooks&quot;&gt;communicating with others&lt;/a&gt;. But, if you’d prefer a GUI that looks a bit more like MATLAB, there’s also &lt;a href=&quot;https://code.google.com/p/spyderlib/&quot;&gt;spyder&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Because there are many other reasons to &lt;a href=&quot;http://lorenabarba.com/blog/why-i-push-for-python/&quot;&gt;“push for Python”&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Bookmarklet for Oxford Off-Campus Journal Access</title>
   <link href="http://jamesscottbrown.com/2015/03/23/Oxford-Off-Campus-Journal-Bookmarklet.html"/>
   <updated>2015-03-23T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2015/03/23/Oxford-Off-Campus-Journal-Bookmarklet</id>
   <content type="html">&lt;h2 id=&quot;bookmarklet-for-oxford-off-campus-journal-access&quot;&gt;Bookmarklet for Oxford Off-Campus Journal Access&lt;/h2&gt;

&lt;p&gt;I often want to read academic papers that are behind paywalls on my laptop when it is not connected to an internal university network.&lt;/p&gt;

&lt;p&gt;Whilst I could use the university VPN, I may not want to route all of my network traffic through it - I just want a proxy for a single URL.&lt;/p&gt;

&lt;p&gt;When I was at Cambridge they advertised a &lt;a href=&quot;http://www.lib.cam.ac.uk/elibrary/library-toolbox/campus-access-bookmarklet&quot;&gt;useful bookmarklet&lt;/a&gt; for Off-Campus Journal Access - you could add it to your bookmarks menu, then:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;“When on a journal page that should provide full text access under a Cambridge subscription, click on the ‘Reload URL for off campus access’ text in your browsers’ bookmark bar to reload the page via our proxy server. You may be prompted to login with a Raven username and password.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I tried to find an equivalent bookmarklet for Oxford, but couldn’t, so resorted to modifying the Cambridge one. I present it here to help anyone else Googling for it.&lt;/p&gt;

&lt;p&gt;The URL to bookmark is:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;javascript:void(location.href=%22http://ezproxy.ouls.ox.ac.uk:2048/login?url=%22+location.href)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or you can simply drag this link to your bookmarks bar: &lt;a href=&quot;javascript:void(location.href=%22http://ezproxy.ouls.ox.ac.uk:2048/login?url=%22+location.href)&quot;&gt;Oxford Off-Campus Access&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Short links - 2015-03-1</title>
   <link href="http://jamesscottbrown.com/2015/03/01/quick-links.html"/>
   <updated>2015-03-01T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2015/03/01/quick-links</id>
   <content type="html">&lt;h2 id=&quot;short-links---2015-03-1&quot;&gt;Short links - 2015-03-1&lt;/h2&gt;

&lt;p&gt;Following the example of &lt;a href=&quot;http://glinden.blogspot.co.uk/&quot;&gt;Geeking with Greg&lt;/a&gt; and the &lt;a href=&quot;http://radar.oreilly.com/&quot;&gt;O’Reilly Radar&lt;/a&gt;, I thought I would start periodically posting a round-up of links to things I found interesting.&lt;/p&gt;

&lt;h1 id=&quot;science&quot;&gt;Science&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Nature has a &lt;a href=&quot;http://www.nature.com/nrmicro/posters/crispr/posters.pdf&quot;&gt;poster on CRISPR-Cas&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The University of California has announced a new journal &lt;a href=&quot;http://collabraoa.org/index&quot;&gt;Collabraoa&lt;/a&gt;, which will have several nice features: open access, optional Open Peer Review, payments for reviewers and editors.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Video of session from SB6 on &lt;a href=&quot;http://sb6.biobricks.org/session/day-2/assessing-risk-managing-biocontainment/&quot;&gt;Assessing Risk and Managing Biocontainment&lt;/a&gt;
At 1.13 “Hi, I’m with the FBI and I guess I would be the higher authority”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;tech&quot;&gt;Tech:&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;A good example of building a better interface around publicly released data - the &lt;a href=&quot;http://www.handsomeatlas.com/&quot;&gt;Handsome Atlas&lt;/a&gt; (via &lt;a href=&quot;http://www.drbunsen.org/oddments.txt/&quot;&gt;Dr. Bunsen&lt;/a&gt;)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Similarly, online tools provide a better interface for working out how to use Unix tools: &lt;a href=&quot;http://bashrcgenerator.com/&quot;&gt;.bashrc calculator&lt;/a&gt;, &lt;a href=&quot;http://permissions-calculator.org/&quot;&gt;file permissions calculator&lt;/a&gt;, &lt;a href=&quot;http://regexr.com/&quot;&gt;regex builder and tester&lt;/a&gt;, &lt;a href=&quot;http://www.csgnetwork.com/crongen.html&quot;&gt;crontab calculator&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Devising efficient representations for things makes them easier to remember - &lt;a href=&quot;http://blog.zephod.com/post/14167418899/hacking-scrabble-part-1&quot;&gt;Hacking Scrabble&lt;/a&gt; (Related - the &lt;a href=&quot;http://web.archive.org/web/20091003023606/http://tothink.com/mnemonic&quot;&gt;Mnemonic Encoder&lt;/a&gt;)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The &lt;a href=&quot;http://bengrosser.com/projects/facebook-demetricator/&quot;&gt;Facebook Demetricator&lt;/a&gt; is “a web browser extension that hides all the metrics on Facebook”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;To fulfil it’s aim of &lt;a href=&quot;http://www.joelonsoftware.com/articles/Wrong.html&quot;&gt;Making Wrong Code Look Wrong&lt;/a&gt; Hungarian notation needs to indicate the &lt;em&gt;kind&lt;/em&gt; of value a variable stores, not its type&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Distributed chat is possible using an RC airplane to &lt;a href=&quot;http://www.skjegstad.com/blog/2011/12/02/experimenting-with-distributed-chat/&quot;&gt;relay messages between two computers that it can’t simultaneously see&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Forecast.io &lt;a href=&quot;http://blog.forecast.io/cleaning-radar-images-using-neural-nets-computer-vision/&quot;&gt;cleans up weather radar&lt;/a&gt; by segmenting images, then classifying each blob as either signal or noise with a 25-neuron neural network.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;http://cirqoid.com/&quot;&gt;Cirqoid&lt;/a&gt; described itself as ‘your PCB lab on your desk’ - “Cirqoid can do insulation milling of your PCB (aka mechanical etching), drill holes, dispense solder paste and even populate the board with SMD components. That’s right - complete production cycle of a printed circuit board”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;social&quot;&gt;Social&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://medium.com/@hansdezwart/ai-weiwei-is-living-in-our-future-474e5dd15e4f&quot;&gt;Ai Weiwei is Living in Our Future&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://medium.com/sample-collection/i-will-not-post-this-575405404fca&quot;&gt;I will not post this&lt;/a&gt; (Related - &lt;a href=&quot;http://www.theguardian.com/technology/2015/feb/21/internet-shaming-lindsey-stone-jon-ronson&quot;&gt;The internet shaming of Lindsey Stone&lt;/a&gt;, &lt;a href=&quot;http://www.nytimes.com/2015/02/15/magazine/how-one-stupid-tweet-ruined-justine-saccos-life.html&quot;&gt;How one stupid tweet ruined Justine Sacco’s life&lt;/a&gt;, &lt;a href=&quot;http://www.scottaaronson.com/blog/?p=2221&quot;&gt;How can we fight online shaming campagins&lt;/a&gt;)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;2015 &lt;a href=&quot;http://reports.weforum.org/global-risks-2015/&quot;&gt;Global Risks Report&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</content>
 </entry>
 
 <entry>
   <title>My Setup</title>
   <link href="http://jamesscottbrown.com/2015/03/01/the-setup.html"/>
   <updated>2015-03-01T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2015/03/01/the-setup</id>
   <content type="html">&lt;h2 id=&quot;my-setup&quot;&gt;My Setup&lt;/h2&gt;

&lt;p&gt;I use three computers - an iMac, a MacBook pro, and a &lt;a href=&quot;http://digitalocean.com/&quot;&gt;DigitalOcean&lt;/a&gt; VPS. The iMac is connected to an external monitor in portrait orientation (as is the MacBook, when on my desk at work) - the marketing term for monitors that can switch between portrait and landscape is &lt;em&gt;pivot&lt;/em&gt;, not &lt;em&gt;rotate&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Folders that I use frequently are kept in sync between the iMac and MacBook using &lt;a href=&quot;http://www.cis.upenn.edu/~bcpierce/unison/&quot;&gt;unison&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Papers are stored in &lt;a href=&quot;https://i-librarian.net/&quot;&gt;I, Librarian&lt;/a&gt;. This is installed on both my MacBook and VPS, but papers are only ever imported into the installation on the VPS: if I can’t access this, it’s because I don’t have an Internet connection, so can’t download any new papers anyway. The library subfolder on the VPS is frequently backed up to my MacBook using &lt;a href=&quot;https://rsync.samba.org/&quot;&gt;rsync&lt;/a&gt;, so I can still read papers  and annotations when offline.&lt;/p&gt;

&lt;p&gt;I use &lt;a href=&quot;https://www.fastmail.com/&quot;&gt;FastMail&lt;/a&gt; for email (and contacts, and calendars), and back this up locally with &lt;a href=&quot;http://offlineimap.org/&quot;&gt;OfflineIMAP&lt;/a&gt;. Given &lt;a href=&quot;https://duckduckgo.com/&quot;&gt;DuckDuckGo&lt;/a&gt; and &lt;a href=&quot;http://openstreetmap.org/&quot;&gt;OpenStreetMap&lt;/a&gt;, I am largely independent of Google’s services: some reasons why this is a Good Thing are given by &lt;a href=&quot;http://blog.scottlowe.org/2013/12/04/divorcing-google/&quot;&gt;Scott Lowe&lt;/a&gt; and &lt;a href=&quot;http://www.marco.org/2011/04/05/let-us-pay-for-this-service-so-it-wont-go-down&quot;&gt;Marco Arment&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;RSS feeds are read using &lt;a href=&quot;http://miniflux.net/&quot;&gt;Miniflux&lt;/a&gt; on the VPS. Miniflux is Good Enough: it can import OPML, doesn’t need MySQL/postgres (it uses SQLite), has a reasonable interface that works on mobile devices as well as desktops, and can send links to pinboard or instapaper but has no social media integration. There seem to be a lot of feed readers available, and so there may well be an alternative that is ‘better’, but looking for the optimum rather than just satisfying seemed like a waste of time.&lt;/p&gt;

&lt;p&gt;I keep notes in &lt;a href=&quot;http://brettterpstra.com/projects/nvalt/&quot;&gt;NValt&lt;/a&gt;. A script commits changes to a .git repository, which are then pushed to a remote on the VPS. This gives version control over my notes, as well as sync (which is done over SSH, whereas simplenote sync is done in plain text). A &lt;a href=&quot;https://github.com/jamesscottbrown/NVhelper&quot;&gt;second script&lt;/a&gt; extracts structrued information, and constructs HTML tables indexing the recipes, books, and talks I’ve made notes on.&lt;/p&gt;

&lt;p&gt;I use &lt;a href=&quot;http://brew.sh/&quot;&gt;homebrew&lt;/a&gt; and &lt;a href=&quot;http://caskroom.io/&quot;&gt;homebrew cask&lt;/a&gt; as package managers: they’ve been used to install several of the programs I’ve mentioned, as well as several useful unix &lt;a href=&quot;http://www.ffmpeg.org/&quot;&gt;ffmpeg&lt;/a&gt;, &lt;a href=&quot;http://imagemagick.org/&quot;&gt;imagemagick&lt;/a&gt;, &lt;a href=&quot;http://graphviz.org/&quot;&gt;graphviz&lt;/a&gt;, &lt;a href=&quot;https://github.com/ggreer/the_silver_searcher&quot;&gt;the_silver_searcher&lt;/a&gt;, and &lt;a href=&quot;https://rg3.github.io/youtube-dl/&quot;&gt;youtube-dl&lt;/a&gt; (particularly useful in letting me download long videos so I can play them back at 1.5-2x speed in VLC). I also use several Mac-specific utilities: &lt;a href=&quot;http://qsapp.com/&quot;&gt;QuickSilver&lt;/a&gt;, &lt;a href=&quot;https://justgetflux.com/&quot;&gt;flux&lt;/a&gt;, &lt;a href=&quot;http://lightheadsw.com/caffeine/&quot;&gt;caffeine&lt;/a&gt;, &lt;a href=&quot;http://5amcode.com/&quot;&gt;DoublePane&lt;/a&gt;, &lt;a href=&quot;http://iterm2.com/&quot;&gt;iTerm2&lt;/a&gt;, and &lt;a href=&quot;http://www.jitouch.com/&quot;&gt;jitouch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Many of my documents are written as markdown, then converted to PDF via LaTeX using &lt;a href=&quot;http://pandoc.org/&quot;&gt;pandoc&lt;/a&gt;. This has all the advantages of LaTeX, whilst having source files that are clearer to read and faster to type. If I want to do something like include a listing of source code from another file, I use &lt;a href=&quot;https://github.com/jreese/markdown-pp&quot;&gt;MarkdownPP&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My blog is also written in markdown, using the static site generator with &lt;a href=&quot;http://jekyllrb.com/&quot;&gt;Jekyll&lt;/a&gt;. The resulting HTML is then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;scp&lt;/code&gt;‘d to the VPS.&lt;/p&gt;

&lt;p&gt;Most things are thus stored on more than one of my three machines, giving some redundancy against failure or loss of any one of them.  Assuming it has jsut been synced, the contents of my MacBook are a strict subset of the contents of my iMac. My iMac is backed up to an external HDD (using Time Machine), which is stored off-site.&lt;/p&gt;

&lt;h1 id=&quot;papers&quot;&gt;Papers&lt;/h1&gt;

&lt;p&gt;I have been a user of Mekentosj’s &lt;a href=&quot;http://www.papersapp.com/&quot;&gt;Papers&lt;/a&gt; since the initial Public Preview in 2007. However, reviews on blogs suggested &lt;a href=&quot;http://lucbeaulieu.com/2013/11/12/what-is-going-on-at-mekentosj-with-papers-3/&quot;&gt;some&lt;/a&gt; &lt;a href=&quot;https://academicgtd.wordpress.com/2013/10/18/papers-3-a-step-in-the-wrong-direction/&quot;&gt;problems&lt;/a&gt; with Papers 3. Most annoyingly, syncing between two computers (eg. desktop and laptop) could only be done though Dropbox - and my papers library was larger than the 2GB limit of Dropbox’s &lt;a href=&quot;https://www.dropbox.com/plans&quot;&gt;free plan&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Things may have improved since, but this was enough for me to look for alternative options rather than upgrading. By now, several of the most popular programs are owned by huge publishing conglomerates:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Papers (Springer)&lt;/li&gt;
  &lt;li&gt;Mendeley (Elsevier)&lt;/li&gt;
  &lt;li&gt;ReadCube (Macmillan &lt;sup id=&quot;fnref:1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In addition to this, there’s EndNote (non-free, clunky), Zotero (a browser extension, then converted into a Standalone application using XULRunner), and &lt;a href=&quot;https://en.wikipedia.org/wiki/Comparison_of_reference_management_software&quot;&gt;various competitors&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In the end I opted for &lt;a href=&quot;http://i-librarian.net/&quot;&gt;I, Librarian&lt;/a&gt;, which runs in the browser. It is available as a hosted service, or can be hosted yourself (PHP, backed by a sqlite database, so no need to install MySQL or Postgres).&lt;/p&gt;

&lt;p&gt;Because it runs in the browser, if I am reading/annotating several PDFs at once, I can organize them into &lt;em&gt;multiple windows&lt;/em&gt;, not just tabs.&lt;/p&gt;

&lt;p&gt;It’s open-source and, importantly, implemented in a language (PHP) with which I am familiar. In principle, this means it should continue being useful to me even if it were abandoned by its developer; in practice it’s allowed me to make a &lt;a href=&quot;https://github.com/jamesscottbrown/i-librarian&quot;&gt;few small tweaks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I was able to write a python script to export my library from Papers to i-Librarian (both store libraries as directories of PDFs, with metadata stored in SQLite). This is rather rough, but can share it if it would be useful to others.&lt;/p&gt;

&lt;hr /&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Macmillan have invested in Labtiva via &lt;a href=&quot;http://www.digital-science.com/products&quot;&gt;DigitalScience&lt;/a&gt;, but I don’t know the extent of this investment. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Recording PDFs read in Skim</title>
   <link href="http://jamesscottbrown.com/2013/05/09/recording-pdfs-read.html"/>
   <updated>2013-05-09T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2013/05/09/recording-pdfs-read</id>
   <content type="html">&lt;h2 id=&quot;recording-pdfs-read-in-skim&quot;&gt;Recording PDFs read in Skim&lt;/h2&gt;

&lt;p&gt;I have a large number of reference PDFs, only some of which I have actually referred to.&lt;/p&gt;

&lt;p&gt;I wanted a quick way to record which I had referred to, when, and why, in a single text file that I could easily review or grep through.&lt;/p&gt;

&lt;p&gt;My solution was the following Applescript, which I associated with a keyboard shortcut using &lt;a href=&quot;http://qsapp.com/&quot;&gt;Quicksilver’s&lt;/a&gt; Triggers feature.&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;tell application &quot;Skim&quot;
	set page_no to current page of document 1
end tell
display dialog &quot;Description&quot; default answer &quot;p.&quot; &amp;amp; (index of page_no)
set the str_descr to the text returned of the result

tell (current date) to get (it's year as integer) &amp;amp; &quot;-&quot; &amp;amp; (it's month as integer) &amp;amp; &quot;-&quot; &amp;amp; day
set str_date to the result as text

tell application &quot;Skim&quot;
	set str_pdf to name of document 1
end tell

set str_details to (str_date) &amp;amp; &quot;	&quot; &amp;amp; str_pdf &amp;amp; &quot;	&quot; &amp;amp; str_descr &amp;amp; return
set file_name to (((path to home folder) as string) &amp;amp; &quot;PDFs Read&quot;)

set the file_name to the file_name as string
set the open_target_file to open for access file file_name with write permission
write str_details to the open_target_file starting at eof
close access the open_target_file
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When run, this identifies the file in the &lt;a href=&quot;http://skim-app.sourceforge.net/&quot;&gt;Skim&lt;/a&gt; window that currently has focus, brings up a dialog prompting for a comment (pre-filled with the page number), then appends a line formatted as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;date&amp;gt;\t&amp;lt;filename&amp;gt;\t&amp;lt;comment&amp;gt;&lt;/code&gt; to a text file named “PDFs Read” in your home directory.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Good Lecture Notes</title>
   <link href="http://jamesscottbrown.com/2013/05/09/good-lecture-notes.html"/>
   <updated>2013-05-09T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2013/05/09/good-lecture-notes</id>
   <content type="html">&lt;h2 id=&quot;good-lecture-notes&quot;&gt;Good Lecture Notes&lt;/h2&gt;

&lt;p&gt;Over the past three years, I’ve attended a lot of lectures, given by a large number of lecturers from several departments.&lt;/p&gt;

&lt;p&gt;Generally, these have been courses for scientists and engineers, with fairly complete handouts.&lt;/p&gt;

&lt;p&gt;However, there are certain desiderata that are not always met, and so are worth listing explicitly. Ideally, all hand-outs should:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Include your email address, so that you can be sent corrections or suggestions.&lt;/li&gt;
  &lt;li&gt;Include suggestions of appropriate readings on the cover-page.&lt;/li&gt;
  &lt;li&gt;Include page numbers on every page.&lt;/li&gt;
  &lt;li&gt;State the source of all figures (if these mostly come from one source, include a comment like ‘Figures are from Molecular Biology of the Cell/Introduction to Neural Science/etc. unless otherwise noted’)&lt;/li&gt;
  &lt;li&gt;Not include every intermediate state of a powerpoint transition unless this is necessary for clarification, or to provide space for annotations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If possible, handouts should be hole-punched, so they can be immediately filed after the lecture, rather than being carried loose.&lt;/p&gt;

&lt;p&gt;Lecture notes should be given out &lt;em&gt;at the start&lt;/em&gt; of a lecture. Lecture notes help the audience to think about what is being said, by removing the need to frantically transcribe everything; this is not possible if they are withheld until after the lecture.&lt;/p&gt;

&lt;p&gt;Some lecture notes include gaps to be filled in during lectures. This strategy might help to discouraging students from skipping lectures, or falling asleep during them. On the other hand, such students might just copy from their friends’ notes later. When it comes to revision it is certainly reassuring to have a set of notes which are known to be complete, legible, and free from transcription errors.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Compiling a comprehensive biomedical/chemical spell-check dictionary</title>
   <link href="http://jamesscottbrown.com/2013/01/10/biomedical-spellcheck-dictionary.html"/>
   <updated>2013-01-10T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2013/01/10/biomedical-spellcheck-dictionary</id>
   <content type="html">&lt;h2 id=&quot;compiling-a-comprehensive-biomedicalchemical-spell-check-dictionary&quot;&gt;Compiling a comprehensive biomedical/chemical spell-check dictionary&lt;/h2&gt;

&lt;p&gt;I often type biomedical or chemical terms which are not recognised by default spell-checkers.&lt;/p&gt;

&lt;p&gt;When all technical terms are highlighted as being misspelt, it is much harder to spot where you have actually made typos.&lt;/p&gt;

&lt;p&gt;A while ago, I therefore programmatically created a large word-list of technical terms. This was derived from a number of sources:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The NCBI &lt;a href=&quot;http://www.ncbi.nlm.nih.gov/books/NBK9680/&quot;&gt;SPECIALIST Lexicon&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.e-medtools.com/openmedspel.html&quot;&gt;OpenMedSpel&lt;/a&gt; - 48,729 entries&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.chemistry-blog.com/2008/12/17/chemistry-dictionary-for-word-processors-version-20/&quot;&gt;ChemiDic&lt;/a&gt; - 166,611 entries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The NCBI lexicon contains lexical details of words (part of speech, etc.), so I extracted only the words with a regex. I then concatenated the files, sorted them with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sort&lt;/code&gt;, and remove duplicates with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uniq&lt;/code&gt;. A little additional processing was also performed.&lt;/p&gt;

&lt;p&gt;The result is a single &lt;a href=&quot;https://gist.github.com/4506705&quot;&gt;file&lt;/a&gt; with 371,261 entries. This includes almost all the terms that I am likely to use, plus many that I am not. There are some gene names that possibly shouldn’t be there (whsc1l2p), but I’ve resisted the urge to manually delete entries.&lt;/p&gt;

&lt;p&gt;The file is long enough that, after concatenating it to the end of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/Library/Spelling/LocalDictionary&lt;/code&gt; on my mac, and logging-out and -in again, almost all of the spurious squiggly lines disappear. Even more useful, I now get suggestions for how to spell obscure words like woytkowskii or wiedemann-rautenstrauch.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Single day Hall Menu for Trinity today</title>
   <link href="http://jamesscottbrown.com/2012/12/20/Splitting-hall-menus.html"/>
   <updated>2012-12-20T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2012/12/20/Splitting-hall-menus</id>
   <content type="html">&lt;h2 id=&quot;single-day-hall-menu-for-trinity-today&quot;&gt;Single day Hall Menu for Trinity today&lt;/h2&gt;

&lt;p&gt;Trinity College provides copies of its Hall menus &lt;a href=&quot;http://www.trin.cam.ac.uk/index.php?pageid=52&quot;&gt;online&lt;/a&gt;. These are in the form of PDF files, each representing the menu for one week as a table with one column per day.&lt;/p&gt;

&lt;p&gt;It would be more convenient to be able to see just the menu choices for the current day, so I created &lt;a href=&quot;http://www.srcf.ucam.org/~js904/menus&quot;&gt;a page to do this&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My first thoughts were that I could write a script to download the menu for the coming week, and then use &lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;ImageMagick&lt;/a&gt; to extract rectangular regions corresponding to each day. However, the width and height of columns in the table changes, so it is necessary to find the positions of the line in the table separately for each PDF. This task is greatly simplified by the fact that the lines are horizontal or vertical, and their length is a large proportion of the height/width of the image. This suggests that they can be found by looking for rows and columns in the image containing a large number of black pixels.&lt;/p&gt;

&lt;p&gt;To test if this idea was feasible, I downloaded a menu, and converted it to a png with ImageMagick (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;convert -density 600x600 menu.pdf menu.png&lt;/code&gt;), then did some investigating with Matlab:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;I = imread('menu.png');  % Load the image
imggrey = I(:,:,1);      % Extract only the blue channel (the menu is B&amp;amp;W, so each pixel has equal values of R/G/B) 
plot(sum(imggrey,1));    % Plot the sum of the values in imggrey down each column 
plot(sum(imggrey,2));    % Plot the sum of the values in imggrey across each row
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Repeating this for a few menus and looking at the resulting plots confirm that the lines can be easily located by summing the intensities all pixels in each row and column, then identifying the sums that are below a threshold.&lt;/p&gt;

&lt;p&gt;To actually do the processing, I wrote a small program in C++, using the &lt;a href=&quot;http://cimg.sourceforge.net/&quot;&gt;CImg library&lt;/a&gt;, a “small, open source, C++ toolkit for image processing”. I chose this library because it is lightweight and portable: there is a single header file to include in my program, with no dependencies or library installation problems to contend with.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>How I keep notes</title>
   <link href="http://jamesscottbrown.com/2012/12/11/How-I-keep-notes.html"/>
   <updated>2012-12-11T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2012/12/11/How-I-keep-notes</id>
   <content type="html">&lt;h2 id=&quot;how-i-keep-notes&quot;&gt;How I keep notes&lt;/h2&gt;

&lt;p&gt;I keep a large number of notes in &lt;a href=&quot;http://notational.net/&quot;&gt;Notational Velocity&lt;/a&gt;, which has two key advantages: entering and subsequently retrieving notes is very fast, and notes can be stored as individual text files in a directory.&lt;/p&gt;

&lt;h3 id=&quot;speed&quot;&gt;Speed&lt;/h3&gt;
&lt;p&gt;Creating a new note requires no mouse-clicks, and only a few key-presses: &lt;em&gt;Cmd-space&lt;/em&gt; to open &lt;a href=&quot;http://qsapp.com/&quot;&gt;Quicksilver&lt;/a&gt;, &lt;em&gt;“no”&lt;/em&gt; to select notational velocity, and &lt;em&gt;enter&lt;/em&gt; to launch it. Then &lt;em&gt;Cmd-L&lt;/em&gt; moves the cursor to the title area, and I can type the title for the new note. Hitting &lt;em&gt;enter&lt;/em&gt; moves to the body of the note, so I can type the note itself, then hit &lt;em&gt;Cmd-Q&lt;/em&gt; to close the application and go back to whatever I was doing.&lt;/p&gt;

&lt;p&gt;This is &lt;em&gt;incredibly fast&lt;/em&gt;, and makes note-taking minimally disruptive to other tasks.&lt;/p&gt;

&lt;p&gt;Searching notes is similarly fast: typing anything in the title area displays a filtered list of notes. You can click on the desired note directly, or move through the list with &lt;em&gt;Cmd-J&lt;/em&gt;/&lt;em&gt;Cmd-K&lt;/em&gt;.&lt;/p&gt;

&lt;h3 id=&quot;syncing&quot;&gt;Syncing&lt;/h3&gt;
&lt;p&gt;Notational Velocity can sync its notes with &lt;a href=&quot;http://simplenoteapp.com/&quot;&gt;simplenote&lt;/a&gt;, so that they can be accessed and edited in a web browser or the iPhone/iPad app. This allows me to taking notes with the simplenote app on my iPad during a talk, and have them be searchable in Notational Velocity as soon as I get back to my room. It also means that I have all of my notes with me wherever I am (which would not be true if I had separate paper notebooks).&lt;/p&gt;

&lt;h3 id=&quot;directory-of-text-files&quot;&gt;Directory of text files&lt;/h3&gt;
&lt;p&gt;By default, Notational Velocity saves notes in a single file, but it also offers the option of saving one plain-text file per note (&lt;em&gt;Notational Velocity -&amp;gt; Preferences -&amp;gt; Notes -&amp;gt; Storage&lt;/em&gt;). By default, these are saved in &lt;em&gt;~/Library/Application Support/Notational Data/&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I have a cron script on my computer that commits this directory into a Git repository every 15 minutes. Not only does this give me some protection against accidentally deleting or overwriting part of a note, but it also allows me to go back and check exactly when I edited each note and how they changed over time.&lt;/p&gt;

&lt;p&gt;At the top of some notes, I also attach metadata. This is ignored by Notational Velocity and Simplenote, but is very useful to me. For example, a recipe may begin:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Title: Herman the Friendship Cake
Type: Baking
Tried: Rachel made it; it was good
#recipe
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For several common types of notes (recipes, talks etc.) I have snippets set up in &lt;a href=&quot;http://smilesoftware.com/TextExpander/index.html&quot;&gt;TextExpander&lt;/a&gt;. This means that I can just type “;recipe” and have an appropriate template appear, ready to be filled in.&lt;/p&gt;

&lt;p&gt;I wrote a &lt;a href=&quot;https://github.com/jamesscottbrown/NVhelper&quot;&gt;series of ruby scripts&lt;/a&gt; that goes through each file, and does useful things with the metadata that I’ve added. For example, I can view a random recipe (note containing “#recipe”) with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;./NVrandom.rb recipe&lt;/code&gt;. Alternatively, I can produce a tab-separated values file containing one row per recipe, and one column per key (eg. title, type, tried): &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;./NVtabulate.rb recipe &amp;gt; recipes.tsv&lt;/code&gt;. Then I can open this file in Excel: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;open -a &quot;Microsoft Excel&quot; recipes.tsv&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Note that the metadata system is very flexible: the keys do not have to be predefined. If I wanted to add a new key to one recipe to mark it as vegetarian, I can just type “Vegetarian: yes” at the top of the note, then rerun &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;./NVtabulate.rb&lt;/code&gt;. A column will appear labelled ‘Vegetarian’, even though it is empty for all but one note.&lt;/p&gt;

&lt;p&gt;Notational Velocity allows you to add links from one note to another (with the same &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[[target]]&lt;/code&gt; syntax as Wikipedia/MediaWiki). I have another script that lets me see the network of links by outputting a .dot file that can be opened by GraphViz.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>What we don't know</title>
   <link href="http://jamesscottbrown.com/2012/12/10/What-we-dont-know.html"/>
   <updated>2012-12-10T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2012/12/10/What-we-dont-know</id>
   <content type="html">&lt;h2 id=&quot;what-we-dont-know&quot;&gt;What we don’t know&lt;/h2&gt;
&lt;p&gt;Last year, whilst going through lecture notes for the &lt;a href=&quot;http://www.cam.ac.uk/about/natscitripos/ps/p1b/bmb.html&quot;&gt;BMB&lt;/a&gt; and &lt;a href=&quot;http://www.cam.ac.uk/about/natscitripos/ps/p1b/celldevb.html&quot;&gt;CDB&lt;/a&gt; courses at Cambridge, I decided to collate the comments about things that were not known.&lt;/p&gt;

&lt;p&gt;The result is this list of some of the things we don’t know about biochemisty/molecular biology/cell biology.&lt;/p&gt;

&lt;p&gt;Each bullet point is a direct quotation from lecture notes; comments in square brackets were added by me as explanation.&lt;/p&gt;

&lt;h3 id=&quot;things-unknown&quot;&gt;Things ‘Unknown’:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Analysis of Arabidopsis genome sequence identified 450 genes for PPR proteins – all predicted to be targeted to chloroplasts or mitochondria. Roles of most &lt;strong&gt;unknown&lt;/strong&gt;, but some shown to be important for splicing, translation, and editing of chloroplast transcripts.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;b559 is cytochrome of &lt;strong&gt;unknown&lt;/strong&gt; function.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;However, cloning of the receptor revealed a thrombin-cleavage site close to the N terminus, and functional studies showed that thrombin clipped off a short peptide (whose function is &lt;strong&gt;unknown&lt;/strong&gt;), revealing a new N-terminus with the sequence Ser-Phe-Leu-Leu-Arg—-. This peptide binds to the receptor, activating it conventionally.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The location of the secretion “signal” in the structurally-diverse proteins targeted through the Type II pathway
is &lt;strong&gt;unknown&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The default state for var genes is to be silenced; this property is conferred by telomeric location and by an &lt;strong&gt;unknown&lt;/strong&gt; mechanism involving sequences in the intron and exon 2 and probably involves chromatin remodelling during replication&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;A common way of making E. coli competent is to treat them with CaCl2, which works by an &lt;strong&gt;unknown&lt;/strong&gt; mechanism to permit them to take up DNA when they are subjected to a heat shock.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The detailed mechanism of plasmid partition is &lt;strong&gt;unknown&lt;/strong&gt; but some years ago a plausible scenario was described in the pre-pairing model (Fig. 12) which proposes that a monomeric protein binds to a centromere-like site on individual plasmids.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In any case, selective retrograde transport by COPI vesicles must play an import role for intra-Golgi sorting; the necessary sorting signals however are still largely &lt;strong&gt;unknown&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Later in development, the GLP-l protein is involved a second time in signalling that is required for anterior pharynx formation. GLP-l acts as the receptor on the ABa derived cells for the &lt;strong&gt;unknown&lt;/strong&gt; ligand from the MS cell.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Live cell imaging shows that this secretion is mediated by tubular carriers, which are “pulled” out of the TGN by molecular motors. Surprisingly, these carriers have not been characterised in detail, and it is still &lt;strong&gt;not known&lt;/strong&gt; what protein coat (if any) they require.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The basis for the different affinities [of Erd2 for its cargo] in the ER and ERGIC is &lt;strong&gt;not known&lt;/strong&gt;; it seems plausible that differences in pH and ionic environment could be accountable.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Cloning strategies have allowed a large number of novel receptors to be identified as orphans, i.e. their ligand is &lt;strong&gt;not known&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The role of SRC in the normal cell cycle is &lt;strong&gt;not known&lt;/strong&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The active component of the germ plasm is &lt;strong&gt;not known&lt;/strong&gt;, but it is interesting that the
germ plasm contains the homologues of some genes that are expressed in the pole plasm of Drosophila&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Use of a dominant-negative receptor shows that activin-like signalling is required for normal mesoderm formation, but it is &lt;strong&gt;not known&lt;/strong&gt; which of the above factors is most important in this process.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;What is the molecular nature of the trigger that initiates the activation of Cdk1. The precise nature of the trigger is &lt;strong&gt;not known&lt;/strong&gt; but it is believed it is centred on the spindle pole
body/centrosome.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;things-unclear&quot;&gt;Things ‘Unclear’:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Other types of activation domain have more recently been discovered (“glutamine-rich”; “proline-rich); significance &lt;strong&gt;unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Whether both branches [of PS1]  are active is &lt;strong&gt;unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Kinetochore MTs shorten by the net loss of tubulin from their kinetochore ends. Yet,
how MT depolymerization at the kinetochore drives chromosome movement (without MTs letting go of the kinetochores!) remains &lt;strong&gt;unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Inactivation of AS160 in response to insulin signalling results in increased Rab GTP loading and thus allows translocation to the plasma membrane. However the exact mechanism remains &lt;strong&gt;unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The actual composition of the pore is controversial and still &lt;strong&gt;unclear&lt;/strong&gt;, but a key component is probably the adenine nucleotide translocator, which forms a pore when high levels of calcium bind to the matrix side of the translocator.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Very recent genomic research provides accumulating evidence for many more narrowly defined origins and initiation zones, many of which are located in the vicinity of active gene promoters. However, the genetic and epigenetic factors that determine an active origin, or that determine its activation timing are still &lt;strong&gt;unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Brefeldin is a very useful drug for disrupting Golgi apparatus integrity, even though it is &lt;strong&gt;not clear&lt;/strong&gt; what physiological significance the Golgi-derived tubules have.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Not clear&lt;/strong&gt; whether it [Z DNA] exists in vivo&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In solution, DNA is usually B-form and this is the major form in the cell. Dehydration (in fibres, many crystals) produces A-form; &lt;strong&gt;not clear&lt;/strong&gt; whether any significant stretches of A-DNA exist in vivo (although RNA-DNA hybrids are A-form).&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In summary, in eukaryotes supercoiling could be generated locally by transcription. &lt;strong&gt;Not clear&lt;/strong&gt; that there is a role for it in driving transcription, e.g. by promoter unwinding.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The H+/2e- stoichiometry of complex I is 4, but the mechanism of proton coupling is &lt;strong&gt;not clear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;However the causes and mechanistic basis of type 2 diabetes are &lt;strong&gt;not clear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Curiously, the active sites [in TIM barrel proteins] are found at the C-­‐termini of the β-­‐strands and N-­‐termini of the helices; it is &lt;strong&gt;not clear&lt;/strong&gt; that this can always be explained in terms of helix dipoles or divergent evolution.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Several receptor specific kinases are known, but it is &lt;strong&gt;not clear&lt;/strong&gt; whether all 7TM receptors are susceptible to their action.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;things-not-understood&quot;&gt;Things ‘Not Understood’:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Sorting into regulated secretory vesicles is &lt;strong&gt;not understood&lt;/strong&gt; in detail. It is likely to involve kin recognition, as well as retrograde sorting of unwanted proteins from budded immature secretory vesicles.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Di-acidic sequence motifs (DXD, DXE, EXE) in the cytoplasmic domains of integral membrane proteins are known to mediate incorporation into COPII vesicles; they are recognised by the Sec23/Sec24 dimer. Generally, however, the sorting signals necessary for ER exit are &lt;strong&gt;not well understood&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;uncertainty-that-remains&quot;&gt;Uncertainty that ‘Remains’:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;It has also been proposed that RI- and RII-containing isoforms of PKA may be regulated by different ligands in the same cell type, implying that these may be expressed in different compartments within the cell. The basis for this &lt;strong&gt;remains to be established&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The relationship between IP4 and Ca2+ entry &lt;strong&gt;remains contentious after many years&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;PI-3 K can also phosphorylate PI and PIP at the 3 position, generating novel isoforms of PIP and PIP2. Whether these lipids serve a signalling function &lt;strong&gt;remains to be seen&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The regulation of cPLA2 &lt;strong&gt;remains unclear&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;It is interesting that carbon monoxide (CO) appears to couple to GC in the same way. (This might be anticipated, given the known binding of CO to haem in haemoglobin.) Any physiological significance of the action of CO &lt;strong&gt;remains to be established&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Whether the fly centromere is a good model for other eukaryotic centromeres &lt;strong&gt;remains to be seen&lt;/strong&gt;.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</content>
 </entry>
 
 <entry>
   <title>A complete index for XKCD</title>
   <link href="http://jamesscottbrown.com/2010/09/11/XKCD-index.html"/>
   <updated>2010-09-11T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2010/09/11/XKCD-index</id>
   <content type="html">&lt;h2 id=&quot;a-complete-index-for-xkcd&quot;&gt;A complete index for XKCD&lt;/h2&gt;
&lt;p&gt;When searching for a particular image that had appeared in &lt;a href=&quot;http://xkcd.com/&quot;&gt;XKCD&lt;/a&gt; to show a friend, I wondered if there was an index of all the XKCD comics, and all their associated meta-data (Title, URL, Image URL for hot-linking, Description, and the hover-text). There wasn’t. So I created one.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;View it as a tab-separated file as a &lt;del&gt;&lt;a href=&quot;http://gist.github.com/575389&quot;&gt;github Gist&lt;/a&gt;&lt;/del&gt;, or a &lt;a href=&quot;https://spreadsheets.google.com/ccc?key=0AiI6da2uEZYOdGkyeHNVaHNZTGg5dXhGZ2RDdTVBb2c&amp;amp;hl=en&quot;&gt;Google Spreadsheet&lt;/a&gt;.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;&lt;del&gt;&lt;strong&gt;Update&lt;/strong&gt;: the google spreadsheet is automatically updated by a perl script using &lt;a href=&quot;http://search.cpan.org/~danjou/Net-Google-Spreadsheets-0.1501/lib/Net/Google/Spreadsheets.pm&quot;&gt;Net::Google::Spreadsheets&lt;/a&gt;, which is called by cron. My script originally parsed HTML pages, until I realised that XKCD has a &lt;a href=&quot;https://xkcd.com/json.html&quot;&gt;JSON&lt;/a&gt; interface.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 2 (2015-03-24)&lt;/strong&gt;: This has been replaced by a &lt;a href=&quot;http://blog.jamesscottbrown.com/xkcd/&quot;&gt;a simple table&lt;/a&gt;&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Drugs and History</title>
   <link href="http://jamesscottbrown.com/2009/09/16/drugs-and-history.html"/>
   <updated>2009-09-16T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/09/16/drugs-and-history</id>
   <content type="html">&lt;h2 id=&quot;drugs-and-history&quot;&gt;Drugs and History&lt;/h2&gt;

&lt;p&gt;The following is a transcript of a short talk which I recently gave.&lt;/p&gt;

&lt;p&gt;Last term, I was reminded of a quote by Les Iversen: ‘‘It was amazing to find out how much they influenced our lives in the 20th Century’’&lt;sup id=&quot;fnref:fnref1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;He was talking about the amphetamines, but he could have been referring to any of many different drugs just as truthfully. Today, I’d like to describe how a few have influenced the modern world. The importance of medicines to maintaining health and extending life is obvious, so I won’t discuss it further. Instead, I’ll talk about more subtle effects.&lt;/p&gt;

&lt;p&gt;This &lt;a href=&quot;http://www.pdb.org/pdb/images/2bg9_asr_r_500.jpg&quot;&gt;image&lt;/a&gt; shows a protein. Specifically, it’s the Nicotinic Acetycholine receptor. There are actually two slightly different forms of this protein: one found in muscle cells, the other in nerve cells.&lt;/p&gt;

&lt;p&gt;Consequently, nictotine will bind to the receptors in the brain, but not in the muscles. If it bound to both, it would have the same effect as venom in the fangs of a cobra, or curare on the tip of an arrow - it would kill you, very quickly. But it doesn’t, and so smokers live long enough to get addicted&lt;sup id=&quot;fnref:fnref2&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref2&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;. This turns out to be extremely important, not only because it has caused countless millions of excess deaths, but also because it has enabled those who produce tobacco to make billions.&lt;/p&gt;

&lt;p&gt;Those who profited included settlers in the Colony of Virginia. Despite what some people may tell you, the first permanent settlers in America were not puritans seeking religious freedom in Massachusetts, but pragmatists wanting to make a quick buck in Virginia.&lt;/p&gt;

&lt;p&gt;First, they tried mining, but that wasn’t profitable. Then they tried growing silk; but that wasn’t profitable either. Finally John Rolfe, the husband of Pocahontas, grew tobacco, and the economic security of Virginia was established.&lt;/p&gt;

&lt;p&gt;Interestingly, some realised the dangers of tobacco at the time: King James wrote a pamphlet calling it a ‘noxious weed’ that was ‘hateful to the Nose, harmful to the brain, dangerous to the Lungs’&lt;sup id=&quot;fnref:fnref3&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref3&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;. These comments were remarkably prescient, coming 350 years before the British Doctors Study was to provide conclusive evidence of a link between smoking and diseases such as lung cancer and heart attack.&lt;/p&gt;

&lt;p&gt;As well as establishing a foothold for British colonies in America, Virginia was important to the American war of independence. It was in Virginia, at Yorktown, that the british general Cornwallis surrendered, ending the conflict on land. And during the war, Virignia’s Governor was Thomas Jefferson, the principal author of the Declaration of independence.&lt;/p&gt;

&lt;p&gt;And now, back to amphetamine. It’s been used by a lot of writers, including Jack Kerouac (whilst writing On The Road) and Philip K. Dick&lt;sup id=&quot;fnref:fnref4&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref4&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;p&gt;Mathematicians, too: Paul Erdos&lt;sup id=&quot;fnref:fnref5&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref5&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;, one of the most prolific mathematicians of the twentieth century, used to take it. Had he not, a lot of people would probably have rather higher Erdos Numbers.&lt;/p&gt;

&lt;p&gt;Much has been written about amphetamine use by soldiers, especially special forces, both in non-fictional accounts in the medical literature, and in novels, such as Cruel Sea. But it’s also been used by politicians. Most notably, Prime minister Eden started taking it after a botched operation on his intestine. It is believed to have altered his personality, making him more paranoid, and ultimately contributing to his decision to become involved in the Tripartite Aggression&lt;sup id=&quot;fnref:fnref6&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref6&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;. The idea was that control of the Suez canal could be wrested from the Egyptian government if the Israelis invaded the Sinai, and then British and French troops entered as ‘peace-keepers’. This was an absurd idea, and, predictably, failed, after both the US and UN refused to support it.&lt;/p&gt;

&lt;p&gt;The black discolouration of &lt;a href=&quot;http://www.fungi4schools.org/Reprints/Photoset01/Claviceps_purpurea_Ergot_01.jpg&quot;&gt;this rye&lt;/a&gt; is due to a fungus called Claviceps purpurea; or, more commonly, ergot.&lt;/p&gt;

&lt;p&gt;During the middle ages, there were periodic epidemics of St. Anthony’s fire, a gangrenous disease caused by eating the fungus. In it’s more acute form, ergot poisoning has symptoms including seizures, vomiting, and hallucinations. Most hallucinogens have been used for ritual purposes, and ergot is probably no exception. Several bodies recovered from peat bogs - most notably Graubelle Man and Tollund Man, which were found in Denmark - seem to have been force fed ergot before their death.&lt;/p&gt;

&lt;p&gt;Some historians have suggested that the girls whose allegations of witchcraft led to the Salem Witch Trials were suffering from the effects of ergotism&lt;sup id=&quot;fnref:fnref7&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref7&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;. However, this idea is controversial, and others claim that if it were true, there would be records of the girls vomiting, and others in the village would have also shown symptoms&lt;sup id=&quot;fnref:fnref8&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref8&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;p&gt;Several centuries later, a swiss chemist produced a number of drug candidates from ergot. He decided to repeat the synthesis of one, ingested some, and had one of the most interesting bicycle rides home in history. The chemist’s name was Albert Hoffmann; the drug’s, LSD. Very soon, a lot of people were very interested in using LSD, including psychiatrists trying to improve the effectiveness of psychoanalysis and treatment for alcohol addiction, hippies wanting to ‘‘turn on, tune in, drop out’’ - and the CIA.&lt;/p&gt;

&lt;p&gt;The CIA were very interested in using LSD to make uncooperative captives talk, and to modify the behaviour of foreign leaders. Its MK-ULTRA project included the administration of LSD to a variety of subjects, many without their knowledge or consent. At least two of them - Harold Blauer and Frank Olson - died as a result.&lt;/p&gt;

&lt;p&gt;Such experimentation was in violation of the Nurenberg Code, which had been established after the trials of German doctors who’d conducted medical experiments on prisoners during the second World War. The US government had sentenced those doctors to death, and yet - just a few decades later -its own employees were conducting similar experiments. And, after 9-11, the CIA began to use interrogation techniques such as water-boarding, which it had considered a war-crime, when it had been conducted against, rather than by, US citizens.&lt;/p&gt;

&lt;p&gt;Similar duplicity occurs not only in international relations, and the operating procedures of intelligence agents, but also in the enforcement of drugs policy. In January, for example, the government upgraded cannabis from a Class C to a Class B drug, against the advice of the Home Office Advisory Council on the Misuse of Drugs[^fnref9]. At the same time, it does nothing to increase the price of alcohol, despite the advice of experts that this would be the most effective way to reduce alcohol related deaths.&lt;/p&gt;

&lt;p&gt;The CIA mis-stepped because it fixated on fantasy applications for LSD, ignoring the ethical implications of its experiments. Gordon Brown mis-stepped because he chose policies based on their appeal to voters, rather than their effect on public health. If there is a moral to this assembly, it is that little things can have big effects, and we should not lose sight of what is truly important when confronted with decisions. But you knew that already. Thank-you for listening.&lt;/p&gt;

&lt;p&gt;T[^fnref9]: his advice was expressed in a report entitled &lt;em&gt;Cannabis: Classification and Public Health&lt;/em&gt;. The Chairman’s covering letter noted that ‘You will note that, after a most careful scrutiny of the totality of the available evidence, the majority of the Council’s members consider, based on its harmfulness to individuals and society, that cannabis should remain a Class C substance.’&lt;/p&gt;
&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:fnref1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Personal correspondence, 5 Jun 2007 &lt;a href=&quot;#fnref:fnref1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref2&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Xiu et al. Nicotine binding to brain receptors requires a strong cation-pi interaction. &lt;em&gt;Nature&lt;/em&gt; (2009) vol. 458 (26 March 2009) pp. 534-537 &lt;a href=&quot;#fnref:fnref2&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref3&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;&lt;em&gt;A Counterblaste to Tobacco&lt;/em&gt;, King James I, 1603 &lt;a href=&quot;#fnref:fnref3&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref4&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Williams. The true story of Philip K Dick. &lt;em&gt;Rolling Stone&lt;/em&gt; (1975) (November 6) pp. 44-48, 50, 88, 91, 93-4 &lt;a href=&quot;#fnref:fnref4&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref5&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Hoffman. The Man Who Loves Only Numbers. &lt;em&gt;The Atlantic Monthly&lt;/em&gt; (1987) (November 1987) pp. 60-74 &lt;a href=&quot;#fnref:fnref5&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref6&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Leslie Iversen &lt;em&gt;Speed, Ecstasy, Ritalin: The Science of Amphetamines&lt;/em&gt;, Oxford University Press &lt;a href=&quot;#fnref:fnref6&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref7&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Caporael. Ergotism: The Satan Loosed in Salem?. &lt;em&gt;Science&lt;/em&gt; (1976) vol. 192 (4234) pp. 21-26 &lt;a href=&quot;#fnref:fnref7&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref8&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Spanos and Gottlieb. Ergotism and the Salem village Witch Trials. &lt;em&gt;Science&lt;/em&gt; (1976) vol. 194 (4272) pp. 1390-94 &lt;a href=&quot;#fnref:fnref8&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Kite Diagrams</title>
   <link href="http://jamesscottbrown.com/2009/09/05/kite-diagrams.html"/>
   <updated>2009-09-05T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/09/05/kite-diagrams</id>
   <content type="html">&lt;h2 id=&quot;kite-diagrams&quot;&gt;Kite Diagrams&lt;/h2&gt;

&lt;p&gt;In ecology, measurements of abundance made along a transect are often represented on kite diagrams. Essentially, these are line graphs, in which each line is translated vertically so that it does not overlap the others, and reflected in its x-axis. The space between the reflections is then shaded.&lt;/p&gt;

&lt;p&gt;Unfortunately, these are awkward to draw by hand. They are frequently plotted on graph paper in its landscape orientation, requiring that several sheets be stuck together in order to represent the full set of measurements. This is messy, and results in a low information density. Consequently, it is desirable to produce kite diagrams with a computer, rather than ruler and pen. Some suitable software exists, but mostly as plugins for Excel (&lt;a href=&quot;http://www.usablesoftwarecompany.com/easy_stats.htm&quot;&gt;EasyStats&lt;/a&gt;, &lt;a href=&quot;http://www.heckgrammar.kirklees.sch.uk/index.php?p=10310&quot;&gt;Merlin&lt;/a&gt;), a proprietary software package with a &lt;a href=&quot;http://portal.acm.org/citation.cfm?id=635312&quot;&gt;long history&lt;/a&gt; of &lt;a href=&quot;http://www.joelonsoftware.com/items/2007/09/26b.html&quot;&gt; computational errors&lt;/a&gt; and &lt;a href=&quot;http://www.cs.uiowa.edu/~jcryer/JSMTalk2001.pdf&quot;&gt;inadequacies&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I therefore wrote my own program to draw kite diagrams. It accepts the name of a CSV file as its only argument. The first line of this file is a header specifying the labels to print at each tick on the x-axis. Subsequent lines consist of a species name, then list of measurements. Output is written to a file as postscript.&lt;/p&gt;

&lt;p&gt;Example input file:&lt;/p&gt;

&lt;p&gt;`
0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80
Sea pink, 0,0,0,0,3,0,0,6,6,3,0,0,8,22,0,0,0
Sea lavendar,0,0,0,0,0,0,0,4,0,0,30,0,16,16,17,0,0
Saltmarsh grass,0,0,0,0,0,15,0,0,0,0,50,100,49,50,83,100,0
Glasswort,10,0,35,5,0,40,8,4,0,0,20,0,11,1,0,0,0
Sea plantain,0,0,0,0,0,0,0,0,38,0,0,0,0,0,0,0,0
Sea Purslane,0,1,4,77,0,27,52,0,0,0,0,0,12,11,0,0,0
Sea rush,0,0,0,0,0,18,38,34,6,0,0,0,0,0,0,0,0
Sea couch,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,0
Cord Grass,22,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0
`&lt;/p&gt;

&lt;p&gt;Becomes:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.jamesscottbrown.com/img/kite.jpg&quot; alt=&quot;Example Kite Diagram&quot; /&gt;&lt;/p&gt;

&lt;p&gt;(&lt;a href=&quot;http://blog.jamesscottbrown.com/img/kite.pdf&quot;&gt;PDF&lt;/a&gt; available.)&lt;/p&gt;

&lt;p&gt;The perl script can be downloaded &lt;a href=&quot;http://www.jamesscottbrown.com/misc/kitediagram.txt&quot;&gt;here&lt;/a&gt;. After downloading, change the extension from .txt to .pl .&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Using perl to find words in the periodic table</title>
   <link href="http://jamesscottbrown.com/2009/08/30/making-words-with-perl-and-the-periodic-table.html"/>
   <updated>2009-08-30T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/08/30/making-words-with-perl-and-the-periodic-table</id>
   <content type="html">&lt;h2 id=&quot;using-perl-to-find-words-in-the-periodic-table&quot;&gt;Using perl to find words in the periodic table&lt;/h2&gt;

&lt;p&gt;I’ve just come back from a ‘Lower Sixth Chemistry Olympiad Event’ that the RSC hosted at St. Catherine’s College, Cambridge. Over dinner on the first night, one of the organisers asked us for the longest word we could write using just the symbols of the elements. After a few people suggested a few, fairly short, words, I said that the only sensible way to solve the problem was with a perl script. But &lt;a href=&quot;http://gedanken451.wordpress.com/&quot;&gt;Bryant Tan&lt;/a&gt; proved me wrong with a C++ program. After I provided a dictionary file (2of12.txt from &lt;a href=&quot;http://sourceforge.net/projects/wordlist/files/&quot;&gt;12dicts&lt;/a&gt;) and list of elemental symbols, we concluded that the longest were probably &lt;strong&gt;OVE&lt;/strong&gt;r&lt;strong&gt;SUPE&lt;/strong&gt;r&lt;strong&gt;ST&lt;/strong&gt;i&lt;strong&gt;T&lt;/strong&gt;i&lt;strong&gt;OUS&lt;/strong&gt;&lt;strong&gt;N&lt;/strong&gt;e&lt;strong&gt;SS&lt;/strong&gt; (at 21 letters) and &lt;strong&gt;CONSUBST&lt;/strong&gt;a&lt;strong&gt;NT&lt;/strong&gt;i&lt;strong&gt;A&lt;/strong&gt;t&lt;strong&gt;ION&lt;/strong&gt; (at 17).&lt;/p&gt;

&lt;p&gt;On the second day, Bryant commented that it was surprising that the word ‘chemistry’, nine letters long, contained no repeated letters. By writing a perl script, I found one such word 14 letters long (&lt;strong&gt;ambidextrously&lt;/strong&gt;).&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Arrows</title>
   <link href="http://jamesscottbrown.com/2009/08/20/arrows.html"/>
   <updated>2009-08-20T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/08/20/arrows</id>
   <content type="html">&lt;h2 id=&quot;arrows&quot;&gt;Arrows&lt;/h2&gt;

&lt;p&gt;Arrows have been used to communicate an enormous variety of different concepts. They can represent almost any relation between two objects (or sets of objects). For clarity, when different relations must be shown in close proximity to one another, they are depicted by visually distinct arrows; over time many specific styles of arrow have acquired particular meanings.&lt;/p&gt;

&lt;p&gt;These meanings are often idiomatic to a particular field: the curly arrows that indicate electron movement, or the double arrows showing that a reaction stops at equilibrium rather than going to completion, are not used outside of chemistry. The US military uses a large set of arrows (at least 30) to depict specific troop movements and attacks in their &lt;a href=&quot;http://www.globalsecurity.org/military/library/policy/army/fm/101-5-1/f545-acb.htm&quot;&gt;tactical mission graphics&lt;/a&gt;. Chemists use fewer: I have tabulated some of the most commonly used below.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.jamesscottbrown.com/img/chemistryArrows.jpg&quot; alt=&quot;Some of the arrows used in chemistry&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Some arrows have very different meanings in different contexts: in mathematics, the double arrow represents logical implication (‘if X is true, then Y must be true too’); in chemistry, it is the retrosynthetic arrow, (‘X can be produced from Y’).&lt;/p&gt;

&lt;p&gt;A few arrows do not represent relationships, but things themselves. For example, an arrow may represent a vector (such as a force or velocity) in a diagram.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Recipeconverter</title>
   <link href="http://jamesscottbrown.com/2009/08/06/recipe-converter.html"/>
   <updated>2009-08-06T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/08/06/recipe-converter</id>
   <content type="html">&lt;h2 id=&quot;recipeconverter&quot;&gt;Recipeconverter&lt;/h2&gt;

&lt;p&gt;I’ve written a utility to convert lightly formatted text files (like &lt;a href=&quot;http://www.jamesscottbrown.com/recipeconverter/chocolatecake.txt&quot;&gt;this&lt;/a&gt;) into a LaTeX snippet coding for a pretty graphical layout: &lt;a href=&quot;http://www.jamesscottbrown.com/recipeconverter/chocolatecake.png &quot;&gt;&lt;img alt=&quot;Pretty format for a chocolate cake recipe, produced by recipeconverter and LaTeX&quot; src=&quot;http://www.jamesscottbrown.com/recipeconverter/chocolatecake.png&quot; title=&quot;Pretty format for a chocolate cake recipe, produced by recipeconverter and LaTeX&quot; width=&quot;348&quot; height=&quot;93&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code is in a, &lt;a href=&quot;https://github.com/jamesscottbrown/Recipeconverter&quot;&gt;GitHub repository&lt;/a&gt;.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Has man lost the battle against infectious disease?</title>
   <link href="http://jamesscottbrown.com/2009/08/03/has-man-lost-the-battle-against-disease.html"/>
   <updated>2009-08-03T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/08/03/has-man-lost-the-battle-against-disease</id>
   <content type="html">&lt;h2 id=&quot;has-man-lost-the-battle-against-infectious-disease&quot;&gt;Has man lost the battle against infectious disease?&lt;/h2&gt;

&lt;p&gt;It is often said that humans are losing the battle against disease. I disagree. Our opportunities are ongoing, progress continues, and we are winning the battle. The efforts of human to control infection have a long history, though in the past they were often ineffective. Early efforts control the plague failed, because they were based on the flawed belief that it was caused by a ‘bad air’ or miasma, rather than recognising that it was caused by an infectious agent transmitted by fleas carried by rats. However, after the acceptance of the germ-theory of disease, many effective interventions were developed. Lister’s use of carbonic acid to reduce infections during surgery set a precedent for the sterilization of surgical theatres and instruments, which has undoubtably saved countless lives.&lt;/p&gt;

&lt;p&gt;There are many cases in which epidemics have been ended by careful interventions, such as cleaning water in areas where water-bourne infections are occurring (however, the popular belief that John Snow ended London’s 1854 cholera epidemic by disabling the Broad street pump is false; the epidemic was already drawing to a close). Other infections have been only partially controlled: no ‘treatment’ has been developed for HIV/AIDS, but Anti-Retroviral Therapy can extend life (and reduce infectiousness), Post-Exposure Prophylaxis can help prevent those exposed to HIV by needle-stick injuries from developing the disease, and the latex condom provides an effective barrier to its transmission via sexual intercourse.&lt;/p&gt;

&lt;p&gt;More remarkably, some diseases (most notably smallpox) have been completely eradicated due to vaccination programs. Unfortunately, such programs are not universally successful: efforts to produce a effacious vaccine against HIV/AIDs have thus far failed; efforts to eradicate polio have stalled, and whilst it has been removed from most countries, there are still a few in which it remains stubbornly endemic. Public concern about vaccine safety hinder such programs—these concerns often lack a solid evidential basis, and occur not only in Africa, but also in the UK, as illustrated by the media hype surrounding Andrew Wakefield’s suggestion that the MMR vaccine could cause autism.&lt;/p&gt;

&lt;p&gt;Alexander Fleming’s discovery of penicillin’s antibiotic effect (and the subsequent work of Florey and Chain) led to the first effective chemotherapeutic treatment for those suffering from bacterial disease. The class of antibiotics that includes penicillin (the beta-lactams) now has dozens of members, and many other classes have been developed. Unfortunately, the over-use of antibiotics imposed a selection pressure that led to the development of resistance in many organisms. There are many mechanisms by which resistance may occur, including production of enzymes that metabolize the antibiotic (such as beta-lactamases, which break open the beta-lactam ring), and pumps that remove them from bacterial cells. This is particularly concerning given the facility with which bacteria can exchange genetic material. At present, the most prevalent diseases caused by drug-resistant pathogens are multi-drug-resistant tuberculosis and Methicillin Resistance Stapylococcus Aureas (MRSA). A study, published last year in the journal Science, found that many common soil bacteria were able not only to survive at high concentrations of antibiotics, but also to use them as a nutrient-source&lt;sup id=&quot;fnref:fnref1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. As many of these bacteria are similar to pathogens, this is highly concerning. Nonetheless, there has been progress: it has been shown that using two beta-lactams in combination can be effective in killing drug-resistant-TB&lt;sup id=&quot;fnref:fnref2&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref2&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;: one of the beta-lactams is broken down very slowly, and effectively acts as a beta-lactamase inhibitor. Conveniently, both drugs are already in use, avoiding both regulatory hurdles in the licensing process, and difficulties in synthesis scale-up.&lt;/p&gt;

&lt;p&gt;As antibiotic resistance has increased, development of new antibiotic classes has slowed. This is due partly to the fact that low-hanging fruit has been exhausted, and there are few easy targets remaining for new drugs to hit. There are also economic reasons: only a single course of antibiotics is prescribed at a time, but whilst a patient is put on some other types of drug (eg. statins) they will likely continue taking it for the rest of their lives. For these two reasons, antibiotic development is expensive, and does not result in high revenues. Nonetheless, there has been some progress: two new drugs with the potential for use as anti-tuberculosis agents have been recently described in the literature: one, a imidazole, acts by causing the formation of NO. This occurs only in infected cells, avoiding damage to healthy host cells, as it is dependent on an enzyme produced by the TB pathogen&lt;sup id=&quot;fnref:fnref3&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref3&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;However, there is increasing awareness that drugs need not actually kill pathogens in order to cure a patient: rather, it may be sufficient to the expression of virulence factors. A recent paper in Science described a drug that prevented cholera bacteria from producing cholera toxin, and thus also from causing symptoms. At the same time, pilus formation was impaired, hindering entrance to cells of the intestinal epithelium. As the bacterium is not being killed by the drug, there is likely to be a weaker pressure driving selection for resistance. Similar approaches may be found to be useful against other pathogens&lt;sup id=&quot;fnref:fnref4&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref4&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;In future, administering antibodies may have a greater role in treating infection. The approach was pioneered by Pasteur, who used transplants of blood form a succession of animals (including a rabbit and a horse) to treat a boy who had been infected with rabies by a dog-bite. As it is harder to demonstrate the indistinguishability of two complex proteins than it would be for a conventional small-molecule medicine, there is a higher regulatory barrier to the production of ‘generic’ biologics. The manufacturer of a biologic therapeutic agent may thus enjoy a monopoly maintained not only by intellectual property law, but also regulatory &amp;amp; safety law, making the development of biologics commercially appealing . Antibodies are used to treat some diseases (the most widely known is probably Hercepetin, which is used in some cases of breast cancer). In the last few months, researchers have been able to produce a modified version of Herceptin with affinity for a second antigen: this is the first example of antibodies with high affinities for two different biomolecules&lt;sup id=&quot;fnref:fnref5&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref5&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;. A team at Scripps research institute have produced an antibody that binds to the ‘tail’ of one of influenza’s surface proteins (hemagglutinin), a region which mutates more slowly that the ‘head’&lt;sup id=&quot;fnref:fnref6&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref6&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;. This targeting of a more stable epitope could allow the development of ‘flu vaccines that do not have to be re-formulated every-year as the result of epitope mutation/serotypic-shift. It could also, perhaps, allow the stockpiling of antibodies that could be administered directly to infected persons.&lt;/p&gt;

&lt;p&gt;Surprisingly, gene therapy may be useful in treating not only genetic, but also infectious, diseases. The entry of HIV into white-blood cells is facilitated by a protein (CCR5) on its surface. A mutation (Delta-32) in this protein prevents HIV form binding to it, hindering infection. It was found that after a bone marrow transplant from a donor with the mutation, the recipient was able to come off anti-retrovirals, and has not since suffered viral rebound (the case was reported in the New England Journal of Medicine&lt;sup id=&quot;fnref:fnref7&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref7&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;. This is a promising result, but bone-marrow transplant procedures have an high morbidity and mortality. It would thus be desirable to bring about the change in blood-cell phenotype by gene therapy instead.&lt;/p&gt;

&lt;p&gt;In conclusion, drug resistance is an increasing problem, and some vaccination programs have stalled (polio), whilst others have failed to get off the ground (HIV). However, there are now cures for many disease that were previously incurable, and new developments continue to be made. Many of these provide entire new paradigms for treatment, such as gene therapy (for HIV), carefully designed antibodies (for ‘flu), cleverer combination therapies (for TB), and inhibition of virulence factor formation (for cholera). Clearly, the battle is not lost—it still continues.&lt;/p&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:fnref1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Dantas et al. Bacteria subsisting on antibiotics. &lt;em&gt;Science&lt;/em&gt; (2008) vol. 320 (5872) pp. 100-3 &lt;a href=&quot;http://dx.doi.org/10.1126/science.1155157&quot;&gt;doi:10.1126/science.1155157&lt;/a&gt; &lt;a href=&quot;#fnref:fnref1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref2&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Hugonnet et al. Meropenem-Clavulanate Is Effective Against Extensively Drug-Resistant Mycobacterium tuberculosis. &lt;em&gt;Science&lt;/em&gt; (2009) vol. 323 (5918) pp. 1215 &lt;a href=&quot;http://dx.doi.org/10.1126/science.1167498&quot;&gt;doi:10.1126/science.1167498&lt;/a&gt; &lt;a href=&quot;#fnref:fnref2&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref3&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Singh et al. PA-824 Kills Nonreplicating Mycobacterium tuberculosis by Intracellular NO Release. &lt;em&gt;Science&lt;/em&gt; (2008) vol. 322 (5906) pp. 1392. &lt;a href=&quot;http://dx.doi.org/10.1126/science.1164571&quot;&gt;doi:10.1126/science.1164571&lt;/a&gt; &lt;a href=&quot;#fnref:fnref3&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref4&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Hung et al. Small-Molecule Inhibitor of Vibrio cholerae Virulence and Intestinal Colonization. &lt;em&gt;Science&lt;/em&gt; (2005) vol. 310 (5748) pp. 670 &lt;a href=&quot;http://dx.doi.org/10.1126/science.1116739&quot;&gt;10.1126/science.1116739&lt;/a&gt; &lt;a href=&quot;#fnref:fnref4&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref5&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Bostrom et al. Variants of the Antibody Herceptin That Interact with HER2 and VEGF at the Antigen Binding Site. &lt;em&gt;Science&lt;/em&gt; (2009) vol. 323 (5921) pp. 1610 &lt;a href=&quot;http://dx.doi.org/10.1126/science.1165480&quot;&gt;doi:10.1126/science.1165480&lt;/a&gt; &lt;a href=&quot;#fnref:fnref5&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref6&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Ekiert et al. Antibody Recognition of a Highly Conserved Influenza Virus Epitope. &lt;em&gt;Science&lt;/em&gt; (2009) vol. 324 (5924) pp. 246 &lt;a href=&quot;http://dx.doi.org/10.1126/science.1171491&quot;&gt;doi:10.1126/science.1171491&lt;/a&gt; &lt;a href=&quot;#fnref:fnref6&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref7&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Hutter et al. Long-Term Control of HIV by CCR5 Delta32/Delta32 Stem-Cell Transplantation. &lt;em&gt;The New England Journal of Medicine&lt;/em&gt; (2009) vol. 360 (7) pp. 692 &lt;a href=&quot;http://dx.doi.org/10.1056/NEJMoa0802905&quot;&gt;doi:10.1056/NEJMoa0802905&lt;/a&gt; &lt;a href=&quot;#fnref:fnref7&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Aspirin</title>
   <link href="http://jamesscottbrown.com/2009/07/31/aspirin.html"/>
   <updated>2009-07-31T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/07/31/aspirin</id>
   <content type="html">&lt;h2 id=&quot;aspirin&quot;&gt;Aspirin&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.jamesscottbrown.com/img/Aspirin.png&quot; alt=&quot;Timeline of Aspirin's Development&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The medicinal use of willow bark is mentioned in Egyptian papyri, as well as the works of Hippocrates, Galen and Pliny the Elder. It was then largely ignored by western medicine, before being ‘rediscovered’ in 1736 by Reverend Stone, who sent the Royal Society a paper that described using it to treat ague (a fever). The active ingredient in willow bark was shown to be salicin in the 19th century. Rafaele Pina was able to convert this into a second compound, salicyclic acid. Unfortunately, salicyclic acid irritated the stomach, a problem solved by acetylation: the resulting &lt;em&gt;acetyl&lt;/em&gt;salicyclic acid is today more commonly known as aspirin. Aspects of the history of this drug are outlined in the graphic above.&lt;/p&gt;

&lt;p&gt;In 1971, John Robert Vane discovered the mechanism by which aspirin acts. Eleven years later, he, along with Sune Bergstrom and Bengt Samuelsson, was rewarded with the &lt;a href=&quot;http://nobelprize.org/nobel_prizes/medicine/laureates/1982/press.html&quot;&gt;1982 Nobel Prize for Physiology and Medicine&lt;/a&gt;. Aspirin reduces the rate at which prostaglandins (lipids that are involved in inflammation) are produced from arachidonic acid. It does this by permanently inactivating cyclooxygenase enzymes, by acetylating one of their serine residues (an -OH group is converted to  -O(COCH3) )&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Capsaicin</title>
   <link href="http://jamesscottbrown.com/2009/07/30/capsaicin.html"/>
   <updated>2009-07-30T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/07/30/capsaicin</id>
   <content type="html">&lt;h2 id=&quot;capsaicin&quot;&gt;Capsaicin&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;http://blog.jamesscottbrown.com/img/Scoville.png&quot; alt=&quot;Capsainoids and the Scoville Scale&quot; width=&quot;600 px&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Capsaicin, and other closely related compounds&lt;/strong&gt; (the capsainoids) are responsible for the heat of chillis. For some time, scientists have thought that Chillis produce capsacin in order to protect themselves from fungal infection. This hypothesis seems quite reasonable: after all, capsaicin has no obvious function in the plant, and so may have evolved to have an effect on other organisms, perhaps to protect the chillis from being eaten. Furthermore, Chillis are dependent on many animals to disperse their seeds, and any defense that developed against vertebrates would be likely to interfere with this, having a detrimental effect on the plant. In contrast, no microorganisms feeding on the chillis benefit them.&lt;/p&gt;

&lt;p&gt;But the strongest evidence for this idea was presented in a paper in the Aug 19 2008 issue of Science &lt;sup id=&quot;fnref:fnref1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. The authors showed that fungal infections are indeed a major cause of damage to chillis, and that there is a correlation between number of insect bites in a particular fruit and the severity of subsequent fungal infections. The effect of additional insect bites is less significicant for peppers producing more capsaicin, which also contain less fungus, suggesting that capsaicin has a protective effect. To show that it was indeed capsaicin that was responsible for this difference, the scientists then grew fungus in two media, differing only in amount of capsaicin and dihydrocapsaicin - these compounds reduced fungal growth by 33%. Finally, they compared chillis growing across an area of 1,600 square kilometers in Bolivia. The scientists expected that in areas where chillis have more insect bites, they are exposed to the fungus more frequently, and will therefore be more likely to produce capsicin to protect themselves. And that is exactly what fieldwork found.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not all chilis are equally hot&lt;/strong&gt;, and their heat is compared with the Scoville Scale, developed by Wilbur Scoville. Each chilli pepper, or chilli sauce, can be given a score according to the number of times it must be diluted with water before its heat is no longer felt by a panel of taste-testers. The problem with this method is that it is time consuming, and the testers must be representative to the population. Some have tried to use more objective techniques from analytical chemistry, but initially had little success. High Performance Liquid Chromatography was tried, but its use was limited by its high cost. Last year, Richard Compton and his colleagues at Oxford University announced&lt;sup id=&quot;fnref:fnref2&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref2&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt; that they had developed a technique for the voltammetric measurement of capsaicin concentration. In short, they placed electrodes into the sample, and measured how the current flowing between them varied as they changed the voltage across them. By repeating this several times, they could assign a Scoville score to the sample. This method is potentially much cheaper and more widely usable than existing methods.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The reason why&lt;/strong&gt; capsaicin tastes hot is that it binds to a receptor called &lt;em&gt;TRPV1&lt;/em&gt; on specific nerve cells. This permits the entry of sodium or calcium ions into the cell, resulting in the transmission of an electrical signal to the brain. The opening of this recptor could have another application: the targeted entry of anesthetics. The local anesthetics currently used by dentists target all nerve cells in the mouth, not just the pain-causing nociceptors. Consequently, they make the mouth feel numb, and speech slurred, for hours after the operation. A study&lt;sup id=&quot;fnref:fnref3&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref3&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;3&lt;/a&gt;&lt;/sup&gt; conducted on rats by scientists in Massachusetts found that when an anaesthetic called QX-314 was applied after capsaicin, it would enter nociceptors through the TRPV1 channel, reducing pain, but have no effect on other nerve cells. Capsaicin has also be used alone as a local anaesthtic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some have suggested&lt;/strong&gt; that people initially began eating chillis as medication, because of their anti-fungal properties. And as the paper by Compton observes they have “antioxidant power, in addition to anti-tumoral, anti-mutagenic, antibacterial and anticarcinogenic properties. . . protective effects against cholesterol and obesity”. Despite their usefulness in healing, they are also used to harm: many of the less-than-lethal pepper sprays used to disperse crowds or disable attackers contain capsainoids as their active ingredients.&lt;/p&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:fnref1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Tewksbury et al. Evolutionary ecology of pungency in wild chilies. &lt;em&gt;Proceedings of the National Academy of Sciences of the United States of America&lt;/em&gt; (2008) vol. 105 (33) pp. 11808-11 &lt;a href=&quot;dx.doi.org/10.1073/pnas.0802691105&quot;&gt;doi:10.1073/pnas.0802691105&lt;/a&gt; &lt;a href=&quot;#fnref:fnref1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref2&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Kachoosangi et al. Carbon nanotube-based electrochemical sensors for quantifying the ‘heat’ of chilli peppers: the adsorptive stripping voltammetric determination of capsaicin. &lt;em&gt;Analyst&lt;/em&gt; (2008) pp. 15 &lt;a href=&quot;dx.doi.org/10.1039/b803588a&quot;&gt;doi:10.1039/b803588a&lt;/a&gt; &lt;a href=&quot;#fnref:fnref2&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref3&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Binshtok et al. Inhibition of nociceptors by TRPV1-mediated entry of impermeant sodium channel blockers. &lt;em&gt;Nature&lt;/em&gt; (2007) &lt;a href=&quot;dx.doi.org/10.1038/nature06191&quot;&gt;doi:10.1038/nature06191&lt;/a&gt; &lt;a class=&quot;footnoteBackLink&quot; title=&quot;Jump back to footnote 3&quot; href=&quot;#fnref3&quot;&gt;↩&lt;/a&gt; &lt;a href=&quot;#fnref:fnref3&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>Antibiotics - their history and future</title>
   <link href="http://jamesscottbrown.com/2009/03/23/antibiotics-their-history-and-future.html"/>
   <updated>2009-03-23T00:00:00+00:00</updated>
   <id>http://jamesscottbrown.com/2009/03/23/antibiotics-their-history-and-future</id>
   <content type="html">&lt;h2 id=&quot;antibiotics---their-history-and-future&quot;&gt;Antibiotics - their history and future&lt;/h2&gt;

&lt;p&gt;These are a few notes written to accompany a talk I recently gave.&lt;/p&gt;

&lt;h3 id=&quot;the-history-of-antibiotics&quot;&gt;The history of antibiotics&lt;/h3&gt;
&lt;p&gt;Inorganic arsenic arsenic compounds have probably been used since prehistory: coloured arsenic oxides may have been used in cosmetics, leading to the serendipitous discovery of their ability to treat skin complaints. Atoxy was so named because it was about many times (perhaps as much as 40 times) less toxic than inorganic arsenic compounds. Initially, its structure was misassigned as a anilide, rather than as an amino arsenic acid, an error rectified by Ehrlich (or his collaborator Bertheim). The first structure proposed for Salversan was also in error: more recent evidence suggests that it does not contain a double As=As bond, and is instead a mixture of a trimer and pentamer.&lt;/p&gt;

&lt;p&gt;A 2005 article in &lt;em&gt;chemotherapy&lt;/em&gt; provides a good 9-page introduction to the history of Salvarsan &lt;sup id=&quot;fnref:fnref1&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref1&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;h3 id=&quot;biological-role-of-antibiotics&quot;&gt;Biological role of antibiotics&lt;/h3&gt;
&lt;p&gt;Given that man uses some natural antibiotics to treat disease by killing bacteria, it is tempting to fall into a &lt;em&gt;post-hoc ergo propter hoc&lt;/em&gt; fallacy, and conclude that this must be the reason why they are produced by microorganisms. But the doses at which many of these compounds have an antibiotic effect is far higher than the concentrations at which they are secreted, and it now appears that many fulfill other roles, such as signaling/quorum-sensing/bio-film formation&lt;sup id=&quot;fnref:fnref2&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref2&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;h3 id=&quot;antibiotic-resistance&quot;&gt;Antibiotic resistance&lt;/h3&gt;
&lt;p&gt;Antibiotic resistant bacteria are now a major problem: the most notable diseases that it causes are Methicillin-Resistant &lt;em&gt;Staphylococcus aureus&lt;/em&gt; (MRSA), &lt;em&gt;Clostridium difficile&lt;/em&gt;, and multi-drug resistant Tuberculosis (TB).&lt;/p&gt;

&lt;p&gt;It can arise via a variety of mechanisms including enzymatic degradation of antibiotics, efflux mechanisms that remove antibiotics from the cell, decreased cell wall/membrane permeability to antibiotics, and changes to the target of the antibiotic.
A 2008 paper in &lt;em&gt;Science&lt;/em&gt; found numerous strains of soil bacteria that were not only resistant to many antibiotics, but were able to subsist on them as their sole carbon source. Worryingly, many of these bacteria are closely related to human pathogens&lt;sup id=&quot;fnref:fnref3&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref3&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;h3 id=&quot;anti-virulence-therapies&quot;&gt;Anti-virulence therapies&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Nature Reviews Microbiology&lt;/em&gt; published a good review of the potential for treatments that make bacteria less virulent without killing them (antivirulence therapies) in 2008&lt;sup id=&quot;fnref:fnref4&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref4&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;.
Virstatin’s effects on production of Cholora Toxin by &lt;em&gt;Vibrio Cholerae&lt;/em&gt; were first reported in 2005&lt;sup id=&quot;fnref:fnref5&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref5&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;. It was identified by genetically modifying the O395 strain of &lt;em&gt;Vibrio Cholerae&lt;/em&gt; so that the tetracycline resistance gene &lt;em&gt;tetA&lt;/em&gt; was places under the same promotor (&lt;em&gt;ctx&lt;/em&gt;) as the Cholera Toxin. Thus, whenever cholera toxin was being produced, so was the tetracycline resistance protein. So the bacteria were ordinarily resistant to the antibiotic tetracycline, but if a drug stopped the production of the Cholera Toxin, it would make the bacterium susceptible to the antibiotic. The scientists screened 50,000 compounds by adding them to  bacteria along with tetracycline: if the bacteria died, they concluded that the compound might prevent toxin production. Further experiments confirmed that Virstatin did indeed inhibit toxin production without killing the bacteria, and was an effective treatment for cholera in mice. Subsequent work by the same investigators suggests that it may act by preventing dimerization of the transcriptional activator ToxT&lt;sup id=&quot;fnref:fnref6&quot; role=&quot;doc-noteref&quot;&gt;&lt;a href=&quot;#fn:fnref6&quot; class=&quot;footnote&quot; rel=&quot;footnote&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;

&lt;h3 id=&quot;phage-therapy&quot;&gt;Phage Therapy&lt;/h3&gt;
&lt;p&gt;In the former USSR (especially Georgia), bacteriophages—viruses that infect and kill bacteria—are an established treatment for bacterial infections. However, they have both practical and regulatory problems that limit there use in the rest of the world: they act with extreme specificity, requiring the stockpiling of large numbers of different strains, and the careful determination of which bacteria are responsible for an infection; and they are biologic agents (which are harder to characterize than small-molecules), and undergo unpredictable changes due to mutation. Some also have short half-lives in the body, though this can be improved by serial selection&lt;/p&gt;

&lt;div class=&quot;footnotes&quot; role=&quot;doc-endnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:fnref1&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Riethmiller. From Atoxyl to Salvarsan: searching for the magic bullet &lt;em&gt;Chemotherapy&lt;/em&gt; (2005) vol. 51 (5) pp. 234-42. doi:&lt;a href=&quot;http://dx.doi.org/10.1159/000087453&quot;&gt;10.1159/000087453&lt;/a&gt; &lt;a href=&quot;#fnref:fnref1&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref2&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Mlot. Antibiotics in Nature: Beyond Biological Warfare. &lt;em&gt;Science&lt;/em&gt; (2009) vol. 324 (5935) pp. 1637 doi:&lt;a href=&quot;http://dx.doi.org/10.1126/science.324_1637&quot;&gt;10.1126/science.324_1637&lt;/a&gt; &lt;a href=&quot;#fnref:fnref2&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref3&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Dantas et al. Bacteria subsisting on antibiotics. &lt;em&gt;Science&lt;/em&gt; (2008) vol. 320 (5872) pp. 100-3 doi:&lt;a href=&quot;http://dx.doi.org/10.1126/science.1155157&quot;&gt;10.1126/science.1155157&lt;/a&gt; &lt;a href=&quot;#fnref:fnref3&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref4&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Cegelski et al. The biology and future prospects of antivirulence therapies. &lt;em&gt;Nature reviews Microbiology&lt;/em&gt; (2008) vol. 6 (1) pp. 17 doi:&lt;a href=&quot;http://dx.doi.org/10.1038/nrmicro1818&quot;&gt;10.1038/nrmicro1818&lt;/a&gt; (There is an open-access manuscript of this paper available at &lt;a href=&quot;http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2211378&quot;&gt;&lt;/a&gt;http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2211378/&amp;lt;/a&amp;gt;) &lt;a href=&quot;#fnref:fnref4&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref5&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Hung et al. Small-Molecule Inhibitor of Vibrio cholerae Virulence and Intestinal Colonization. &lt;em&gt;Science&lt;/em&gt; (2005) vol. 310 (5748) pp. 670 doi:&lt;a href=&quot;http://dx.doi.org/10.1126/science.1116739&quot;&gt;10.1126/science.1116739&lt;/a&gt; &lt;a href=&quot;#fnref:fnref5&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:fnref6&quot; role=&quot;doc-endnote&quot;&gt;
      &lt;p&gt;Shakhnovich et al. Virstatin inhibits dimerization of the transcriptional activator ToxT. &lt;em&gt;Proceedings of the National Academy of Sciences of the United States of America&lt;/em&gt; (2007) vol. 104 (7) pp. 2372-7 doi:&lt;a href=&quot;http://dx.doi.org/10.1073/pnas.0611643104&quot;&gt;10.1073/pnas.0611643104 &lt;/a&gt; &lt;a href=&quot;#fnref:fnref6&quot; class=&quot;reversefootnote&quot; role=&quot;doc-backlink&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
 </entry>
 
 
</feed>