<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>a tumblelog to supplement my real blog

Things too long to tweet and too unimportant to blog go here.</description><title>csbio (biocs tumbled)</title><generator>Tumblr (3.0; @biocs)</generator><link>http://biocs.tumblr.com/</link><item><title>"So often people are working hard at the wrong thing. Working on the right thing is probably more..."</title><description>“So often people are working hard at the wrong thing. Working on the right thing is probably more important than working hard.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://www.caterina.net/archive/001196.html"&gt;Caterina Fake&lt;/a&gt;, also pointing to Watson &amp; Crick who discovered the structure of the DNA not working 24/7.&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/200902859</link><guid>http://biocs.tumblr.com/post/200902859</guid><pubDate>Wed, 30 Sep 2009 15:08:00 +0200</pubDate></item><item><title>Handle non-UTF8 character in Perl</title><description>&lt;p&gt;&lt;pre&gt;use Encode;
decode("utf8", $line, Encode::FB_HTMLCREF); &lt;/pre&gt;&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/157185557</link><guid>http://biocs.tumblr.com/post/157185557</guid><pubDate>Thu, 06 Aug 2009 16:34:52 +0200</pubDate></item><item><title>"Genes do not respect disciplinary boundaries."</title><description>“Genes do not respect disciplinary boundaries.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Lawrence Hunter in his talk at &lt;a href="http://friendfeed.com/ismbeccb2009/3786275a/hl29-lawrence-hunter-biomedical-discovery"&gt;ISMB/ECCB 2009&lt;/a&gt;. Some genes that have been studied in certain clinical areas might be relevant in other areas as well, e.g. relaxin I.&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/132956091</link><guid>http://biocs.tumblr.com/post/132956091</guid><pubDate>Tue, 30 Jun 2009 17:14:50 +0200</pubDate></item><item><title>"You can predict the neural activity in your brain when you think about a word based on how that word..."</title><description>“You can predict the neural activity in your brain when you think about a word based on how that word is used on the web.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Tom M. Mitchell in a most excellent Google Tech Talk: &lt;a href="http://www.youtube.com/watch?v=QbTf2nE3Lbw"&gt;Brains, Meaning and Corpus Statistics&lt;/a&gt;.&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/96214239</link><guid>http://biocs.tumblr.com/post/96214239</guid><pubDate>Tue, 14 Apr 2009 22:58:00 +0200</pubDate></item><item><title>migrate to Django 1.0 with sed</title><description>&lt;p&gt;Doesn’t cover everything, but works for me:
&lt;pre&gt;find -name '*py' | xargs sed -i -e 's/maxlength/max_length/' -e 's/FloatField/DecimalField/'&lt;br/&gt;&lt;/pre&gt;&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/83771793</link><guid>http://biocs.tumblr.com/post/83771793</guid><pubDate>Thu, 05 Mar 2009 14:37:21 +0100</pubDate></item><item><title>Date regex for grep</title><description>&lt;pre&gt;(January|February|March|April|May|June|July|August|September|October|November|December) *([1-9]|[1-3][0-9]), *[12][0-9][0-9][0-9]|([1-9]|[1-3][0-9]) *(January|February|March|April|May|June|July|August|September|October|November|December) *[12][0-9][0-9][0-9]&lt;/pre&gt;
&lt;p&gt;This matches dates like:&lt;/p&gt;
&lt;p&gt;12 October 1993&lt;br/&gt;29 June 1982&lt;br/&gt;31 March 2008&lt;br/&gt;4 July 1980&lt;br/&gt;April 21, 2008&lt;br/&gt;February 12, 2007&lt;br/&gt;March 31, 2008&lt;br/&gt;May 27, 2002&lt;br/&gt;November 16, 2006&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/73770624</link><guid>http://biocs.tumblr.com/post/73770624</guid><pubDate>Wed, 28 Jan 2009 16:02:13 +0100</pubDate></item><item><title>If you drive too fast (and go over a hill)…</title><description>&lt;img src="http://6.media.tumblr.com/n3R5vyQJpj6pd1srtvTZd3Lzo1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;If you drive too fast (and go over a hill)…&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/73219130</link><guid>http://biocs.tumblr.com/post/73219130</guid><pubDate>Mon, 26 Jan 2009 14:10:59 +0100</pubDate></item><item><title>…you’ll end up in the roof of a church
[context]</title><description>&lt;img src="http://22.media.tumblr.com/n3R5vyQJpj6pc1e4AuELo8Yco1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;…you’ll end up in the roof of a church&lt;/p&gt;
&lt;p&gt;[&lt;a href="http://news.google.com/news/url?sa=t&amp;ct=us/0-0&amp;fp=497d1eb0070dbe74&amp;ei=gLd9Sea0EoiuwAHI7rC2Cw&amp;url=http%3A//news.bbc.co.uk/1/hi/world/europe/7851012.stm&amp;cid=1297235047&amp;usg=AFQjCNFhYEI_PgB14WnVumRlUL2wVVnqHw"&gt;context&lt;/a&gt;]&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/73218958</link><guid>http://biocs.tumblr.com/post/73218958</guid><pubDate>Mon, 26 Jan 2009 14:10:00 +0100</pubDate></item><item><title>Test if file exists and is not empty (for Makefile)</title><description>&lt;p&gt;In case some of your scripts in a Makefile silently fail (e.g. because they’re running on a cluster):&lt;/p&gt;
&lt;pre&gt;test -s file&lt;/pre&gt;
&lt;p&gt;(file exists, not empty)&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/73218420</link><guid>http://biocs.tumblr.com/post/73218420</guid><pubDate>Mon, 26 Jan 2009 14:07:41 +0100</pubDate></item><item><title>stripping HTML tags in Python</title><description>&lt;p&gt;&lt;pre&gt;from BeautifulSoup import BeautifulSoup
''.join(BeautifulSoup(page).findAll(text=True))&lt;/pre&gt;
source: &lt;a href="http://www.ghastlyfop.com/blog/2008/12/strip-html-tags-from-string-python.html"&gt;Euan&lt;/a&gt;&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/63926122</link><guid>http://biocs.tumblr.com/post/63926122</guid><pubDate>Tue, 09 Dec 2008 18:31:47 +0100</pubDate></item><item><title>"Let’s put someone else’s money where your mouth it."</title><description>“Let’s put someone else’s money where your mouth it.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://www.ted.com/index.php/talks/luca_turin_on_the_science_of_scent.html"&gt;ibid.&lt;/a&gt;&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/62035167</link><guid>http://biocs.tumblr.com/post/62035167</guid><pubDate>Fri, 28 Nov 2008 23:23:34 +0100</pubDate></item><item><title>"Physicists are really clever, unlike biologist."</title><description>“Physicists are really clever, unlike biologist.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Luca Turin (tongue in cheek) in an &lt;a href="http://www.ted.com/index.php/talks/luca_turin_on_the_science_of_scent.html"&gt;entertaining talk about the molecular mechanisms of the sense of smell&lt;/a&gt;. (Though I’d still call BS on his theory.)&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/62034857</link><guid>http://biocs.tumblr.com/post/62034857</guid><pubDate>Fri, 28 Nov 2008 23:19:00 +0100</pubDate></item><item><title>Clean up whitespace in LaTeX</title><description>&lt;p&gt;Correct whitespace around abbreviations and references (on a Mac). Don’t hyphenate “p-value(s)”.
&lt;pre&gt;sed -inplace -E -e 's/ \\(ref|cite)/~\\\1/g' -e 's/(e\.g\.|cf\.|et al\.|i\.e\.) /\1\\ /g' -e 's/([^{])(p-values?)([^}])/\1\\mbox{\2}\3/g' *.tex&lt;/pre&gt;&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/61662366</link><guid>http://biocs.tumblr.com/post/61662366</guid><pubDate>Wed, 26 Nov 2008 14:37:00 +0100</pubDate></item><item><title>"You can only do two things a day, one before lunch and one after."</title><description>“You can only do two things a day, one before lunch and one after.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://friendfeed.com/e/af1e893e-b1d0-4c03-a063-4cbccd6f8813/Do-you-keep-track-of-how-much-time-you-spend-on/"&gt;Roland Krause&lt;/a&gt;, attributed to a German scientist.&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/61657323</link><guid>http://biocs.tumblr.com/post/61657323</guid><pubDate>Wed, 26 Nov 2008 13:48:43 +0100</pubDate></item><item><title>Use Mac OS X 10.5 screen sharing for any VNC</title><description>&lt;p&gt;Finder, Go: Connect to server&lt;/p&gt;
&lt;pre&gt;vnc://server:590x&lt;/pre&gt;
&lt;p&gt;where x is the display port&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/61491487</link><guid>http://biocs.tumblr.com/post/61491487</guid><pubDate>Tue, 25 Nov 2008 15:14:51 +0100</pubDate></item><item><title>Ignore tweets from Friendfeed in Twitterific</title><description>&lt;p&gt;&lt;pre&gt;defaults write com.iconfactory.Twitterrific \&lt;br/&gt;    tweetTextFilter -string 'ff\.im'&lt;/pre&gt;&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/61324570</link><guid>http://biocs.tumblr.com/post/61324570</guid><pubDate>Mon, 24 Nov 2008 16:30:00 +0100</pubDate></item><item><title>Ugly hack to fold path names into file names</title><description>I want to go from 

../www.fda.gov/medwatch/SAFETY/2003/03AUG_PI/Advair Diskus_PI.pdf

to

2003_-_03AUG_PI_-_Advair Diskus_PI.pdf

&lt;p&gt;I came up with this hack:

&lt;/p&gt;
&lt;pre&gt;find ../www.fda.gov/ -name '*_PI*pdf' &gt; names_a 

find ../www.fda.gov/ -name '*_PI*pdf' | \
sed -e 's/.*safety\/\(.*\)/\1/gi' -e 's/\//_-_/g'&gt; names_b

paste names_a names_b | ~/src/misc/to_tsv.py -0 \' | \
xargs -l1 ln&lt;/pre&gt;

(The to_tsv.py script is used to wrap the filenames in quotes.) I guess a quick Python script would have been better…</description><link>http://biocs.tumblr.com/post/61323599</link><guid>http://biocs.tumblr.com/post/61323599</guid><pubDate>Mon, 24 Nov 2008 16:23:00 +0100</pubDate></item><item><title>This is so funny, but… in German dialect. In (almost) my...</title><description>&lt;img src="http://18.media.tumblr.com/n3R5vyQJpgfa2f7apNTzozSro1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This is so funny, but… in German dialect. In (almost) &lt;b&gt;my&lt;/b&gt; dialect.&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/60188786</link><guid>http://biocs.tumblr.com/post/60188786</guid><pubDate>Tue, 18 Nov 2008 00:13:37 +0100</pubDate></item><item><title>prototype-based classification</title><description>&lt;p&gt;(or: prototype-based active classification by &lt;a href="http://www.inf.uni-konstanz.de/bioml/index.html"&gt;Uni Konstanz&lt;/a&gt;)&lt;/p&gt;</description><link>http://biocs.tumblr.com/post/60187848</link><guid>http://biocs.tumblr.com/post/60187848</guid><pubDate>Tue, 18 Nov 2008 00:08:12 +0100</pubDate></item><item><title>"Take large unbiased data to find new components of well-studied pathways"</title><description>“Take large unbiased data to find new components of well-studied pathways”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Nevan Krogan, &lt;a href="http://www-db.embl.de/jss/EmblGroupsOrg/conf_82"&gt;4th EMBO Conference: From Functional Genomics to Systems Biology&lt;/a&gt;, referring to &lt;a href="http://www.sciencemag.org/cgi/content/full/322/5900/405"&gt;Roguev et al. (Science, 2008)&lt;/a&gt;&lt;/em&gt;</description><link>http://biocs.tumblr.com/post/60178924</link><guid>http://biocs.tumblr.com/post/60178924</guid><pubDate>Mon, 17 Nov 2008 22:51:00 +0100</pubDate></item></channel></rss>
