<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Jason Morrison]]></title>
  <link href="http://jayunit.net/atom.xml" rel="self"/>
  <link href="http://jayunit.net/"/>
  <updated>2014-03-02T22:53:57-08:00</updated>
  <id>http://jayunit.net/</id>
  <author>
    <name><![CDATA[Jason Morrison]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Reading List: February 2014]]></title>
    <link href="http://jayunit.net/2014/03/02/reading-list-february-2014/"/>
    <updated>2014-03-02T22:07:00-08:00</updated>
    <id>http://jayunit.net/2014/03/02/reading-list-february-2014</id>
    <content type="html"><![CDATA[<p>I am maintaining a reading list:</p>

<p><a href="http://jayunit.net/reading-list">http://jayunit.net/reading-list</a></p>

<p>I&rsquo;m choosing a theme per month, with several works on the theme.
I&rsquo;ll try to collect notes at the end of each month about what I read and wrote,
what I thought, and how I might revisit that theme in the future.</p>

<p>Take &ldquo;reading&rdquo; loosely &ndash; presentations and podcasts definitely count.</p>

<h1>What did I complete in February?</h1>

<p>My high level goals for February were to:</p>

<ul>
<li>Read about <a href="https://www.meteor.com/">Meteor</a>,
<a href="http://www.haskell.org/haskellwiki/Functional_Reactive_Programming">FRP</a>,
and <a href="http://facebook.github.io/react/">React</a>.</li>
<li>Do some toy projects with these.</li>
<li>Skim a finance book.</li>
</ul>


<h2>Meteor</h2>

<h3>What did I read?</h3>

<ul>
<li>Read the <a href="http://book.discovermeteor.com">Discover Meteor</a> book.</li>
<li>Watched the <a href="http://2012.realtimeconf.com/video/matt-debergalis">RealtimeConf 2012 talk</a>.</li>
<li>Listened to the <a href="http://javascriptjabber.com/076-jsj-meteor-js-with-marcus-phillips-and-fred-zirdung/">JavascriptJabber podcast episode on Meteor</a>.</li>
<li>Understood more about Deps from the <a href="http://www.slideshare.net/fitc_slideshare/meteor-reactivestyle">Programming in the Reactive Style with Meteor JS slides</a>.</li>
<li>Went to a <a href="https://www.meteor.com/blog/2014/02/14/pete-hunt-talks-facebook-react">Meteor Devshop talk</a>
about <a href="http://facebook.github.io/react/">React</a> and <a href="https://github.com/benjamn/react-meteor">react-meteor</a>.</li>
<li>Built a <a href="https://github.com/jasonm/toy-meteor-chat">toy chat app in Meteor</a>.</li>
</ul>


<h3>Thoughts:</h3>

<p>Lots of interesting ideas, but I&rsquo;m not sure I&rsquo;ll use Meteor.  Maybe I&rsquo;ll use
parts (DDP).</p>

<ul>
<li>Isomorphic (same code for the client and server) is interesting.  I would have to
build a large app to see demonstrated advantages, but can imagine.</li>
<li>Seems to work best when all used together, but no reason you couldn&rsquo;t
extract e.g. DDP or Deps and use in an existing application.  (Right?)</li>
<li>There are three places to get packages &ndash;
<a href="http://docs.meteor.com/#usingpackages">core</a>,
<a href="https://atmosphere.meteor.com/">Atmosphere</a>, and,
<a href="http://meteorhacks.com/complete-npm-integration-for-meteor.html">as of June 2013, NPM</a>.
It&rsquo;s nice that they bless a small set of core packages as a stdlib of sorts,
although I don&rsquo;t understand the need for Atmosphere and NPM to be separate.</li>
<li><p>The <a href="http://docs.meteor.com/#deps">Deps</a> module, especially <code>Deps.autorun</code>,
is a particularly elegant approach to automatic dependency registration that
avoids the need for static analysis.  The clever part relies
JavaScript&rsquo;s single-threaded nature, and tracks the current computation
as <code>Deps.currentComputation</code>.</p>

<ul>
<li>At first I thought this could break down if you depend on a boolean
expression <code>a() &amp;&amp; b()</code>.  If <code>a()</code> returns <code>false</code>, the language
short-circuits evaluation so that <code>b()</code> is never invoked, so the
dependency is not registered.  However, once <code>a()</code> returns <code>true</code>, <code>b()</code>
will get run and the dependency is registered correctly.  There must
be some shortcomings?  External data is a clear example, but that is
covered by the more explicit <code>Deps.Dependency</code> facilities.</li>
</ul>
</li>
</ul>


<h3>Questions:</h3>

<ul>
<li>What effect does DDP and the use of a document storage model inform data
modeling?  How would you build a system like DDP atop a relational model?
One system I work on uses multiple steps of data mapping (SQL &ndash;> Python
objects &ndash;> JSON &ndash;> Backbone models and back).  This seems like unnecessary
layers of complexity, and replicating a datastore into the client, like
minimongo does, seems like a preferable situation in many cases.  How
might you introduce DDP to an existing rich-client application without
rewriting it in Meteor?</li>
<li>How do you build for reliability atop DDP and RPC?  (E.g. ensuring all
RPC endpoints are idempotent.)  How does DDP navigate timeout/retry/backoff?
See <a href="http://awwx.ws">Andrew Wilcox</a>&rsquo;s
<a href="https://github.com/awwx/meteor-offline-data">meteor-offline-data</a> work.</li>
<li><p>How does operational transform (OT) fit in?
Compare to the <a href="https://github.com/codeparty/derby">Derby</a> framework and
its <a href="https://github.com/codeparty/racer">Racer</a> library, which uses
<a href="http://sharejs.org/">ShareJS</a> for OT:</p>

<ul>
<li>OT is one approach to conflict resolution.  I assume there are many.  What
are the tradeoffs?</li>
<li><p>What other conflict resolution approaches exist?  Maybe some in
the <a href="http://thinkdistributed.io/blog/2013/08/28/causality.html">thinkdistributed.io Causality episode</a>.</p>

<blockquote><p>The correctness problems of OT led to introduction of transformationless post-OT schemes, such as WOOT, Logoot and Causal Trees (CT). &ldquo;Post-OT&rdquo; schemes decompose the document into atomic operations, but they workaround the need to transform operations by employing a combination of unique symbol identifiers, vector timestamps and/or tombstones.</p>

<p><a href="http://en.wikipedia.org/wiki/Operational_transformation">http://en.wikipedia.org/wiki/Operational_transformation</a></p></blockquote></li>
<li><p>If you use OT, can you use tree-structured data?
Is the scope of OT limited to a document?  Can you coordinate operations across
documents?</p></li>
</ul>
</li>
</ul>


<h3>What would I study about this next?</h3>

<ul>
<li>How does the very new (documented February 27)
<a href="https://github.com/meteor/meteor/wiki/Using-Blaze">Blaze rendering system</a>
compare to React?</li>
<li>How well does Meteor play with other libraries?  I recall seeing a
&ldquo;modularized&rdquo; version of Meteor where some parts were available a la carte.
What does it look like to involve something like Backbone for models?  React
for DOM computation?</li>
<li>What is the multi-server story (for performance and for availability)?  I
think that the <a href="https://www.meteor.com/blog/2014/02/24/meteor-071-oplog-support-for-complex-queries-meteor-developer-accounts">new oplog work</a>
is supposed to support this.</li>
<li><a href="https://trello.com/c/Gf6YxFp2/42-sql-support">SQL bindings</a></li>
</ul>


<h2>Functional Reactive Programming (FRP)</h2>

<h3>What did I read?</h3>

<ul>
<li>Read <a href="http://conal.net/fran/tutorial.htm">Composing Reactive Animations</a> as
an introduction to the concepts.</li>
<li>Read <a href="http://conal.net/papers/icfp97/icfp97.pdf">Functional Reactive Animation</a>

<ul>
<li>Read somewhat thoroughly.  General ideas of facts / behaviors over
implementation is nice.  I learned about the idea of using integration
to determine a value at a point in time rather than continual
time-chunked evaluation, refreshed some of my Haskell notation,
and thought about the general idea of declaring behaviors and letting
the implementation handle optimizations and discretization.</li>
</ul>
</li>
<li>Skimmed <a href="http://conal.net/papers/push-pull-frp/push-pull-frp.pdf">Push-Pull Functional Reactive Programming</a>

<ul>
<li>I started this, but got bogged down in notation and FP/Haskell concepts.  I
should revisit this after reviewing Monads/Monoids/Applicatives in
March, probably from learnyouahaskell.com.</li>
</ul>
</li>
<li>Listened to the <a href="http://javascriptjabber.com/061-jsj-functional-reactive-programming-with-juha-paananen-and-joe-fiorini/">JavascriptJabber podcast episode on Functional Reactive Programming</a></li>
</ul>


<p>There are a bunch more resources <a href="https://github.com/jasonm/reading-list/wiki/2014-February">in my 2014-February reading-list page</a>
that I collected but didn&rsquo;t get to.</p>

<h3>Thoughts:</h3>

<p>Seems like a solid theoretical underpinning for complex dataflow apps.</p>

<p>FRP concepts (behaviors) have similarities to promises &ndash; they represent an
abstraction of a value.  Promises represent a future value.  Behaviors
represent a value which may vary continuously over time, they are functions of
time.</p>

<p>From reading the papers, I also learned a more general concept &ndash; that of a
paper separately introducing formal semantics from a specific implementation.
I haven&rsquo;t read enough CS papers to know how typical this is.</p>

<p>That reminds me of a <a href="http://thinkdistributed.io">thinkdistributed.io</a>
podcast on Raft (a consensus algorithm) which was designed for
understandability, seemingly a novel goal in CS research.  The result is a
large number of (attempted) implementations, because the theory was so
approachable.  Does the Raft paper propose a formal semantics?  See in
May/June.</p>

<h3>Questions:</h3>

<p>I&rsquo;d like to try out <a href="https://github.com/baconjs/bacon.js">https://github.com/baconjs/bacon.js</a> and read about
underlying ideas.</p>

<h3>If I were to study further/return to this, what would I look at?</h3>

<p>I didn&rsquo;t get to read too much about FRP.  I would like to try some of
the JS implementations to build some small dataflow applications.
I&rsquo;d like to build some medium-sized React.js apps and compare that
experience to the FRP libraries.</p>

<h1>React.js</h1>

<h3>What did I read?</h3>

<p>First, I read about React from other people:</p>

<ul>
<li>Read many of <a href="http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs/">David Nolen&rsquo;s articles about Om and React</a> (seriously just go read David&rsquo;s entire blog, it&rsquo;s the inspiration for so much of my reading this year)</li>
<li>Grasped a key idea in React with <a href="http://www.lispcast.com/react-another-level-of-indirection">Eric Normand&rsquo;s &ldquo;React: Another Level of Indirection&rdquo;</a></li>
<li>Finally got the big picture from <a href="http://2013.jsconf.eu/speakers/pete-hunt-react-rethinking-best-practices.html">Pete Hunt&rsquo;s &ldquo;React: Rethinking Best Practices&rdquo;</a> talk</li>
<li>Read about React&rsquo;s <a href="http://calendar.perfplanet.com/2013/diff/">fast tree-diff algorithm</a> which underpins its virtual DOM implementation</li>
<li>Read a (biased? :) comparison by Pete Hunt of <a href="http://skulbuny.com/2013/10/31/react-vs-angular/">React vs Angular</a></li>
<li>Read about <a href="http://joelburget.com/backbone-to-react/">Khan Academy engineers&#8217; experience of adopting React</a></li>
<li>Listened to <a href="http://javascriptjabber.com/073-jsj-react-with-pete-hunt-and-jordan-walke/">the JavascriptJabber podcasts episode on React</a></li>
</ul>


<p>Then I react the docs themselves:</p>

<ul>
<li>Read the <a href="http://facebook.github.io/react/docs/tutorial.html">React tutorial</a></li>
<li>Read the <a href="http://facebook.github.io/react/docs/getting-started.html">React guides</a></li>
</ul>


<p>And aimed to get my hands dirty:</p>

<ul>
<li>Reviewed my friend <a href="http://brandontilley.com/2014/02/24/creating-chrome-extensions-with-react.html">Brandon Tilley&rsquo;s article on Creating Chrome Extensions with React</a></li>
<li>Went to a <a href="https://www.meteor.com/blog/2014/02/14/pete-hunt-talks-facebook-react">Meteor Devshop talk</a>
about <a href="http://facebook.github.io/react/">React</a> and <a href="https://github.com/benjamn/react-meteor">react-meteor</a>.</li>
<li>Wrote a <a href="https://github.com/jasonm/toy-viewport-splitter">negligible amount of code</a></li>
</ul>


<h3>Thoughts:</h3>

<p>Looks good, I want to do more with it.</p>

<p>The design of React is very appealing; using functional composition, cohering
templates with view logic, implementing synthetic DOM events atop delegation,
and providing an <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ff684178">immediate mode atop the DOM&rsquo;s retained mode</a>
Not sure on the JSX syntax, but I think I&rsquo;ll like it as soon as I install
<a href="https://github.com/mxw/vim-jsx">vim-jsx</a>.</p>

<h3>If I were to study further/return to this, what would I look at?</h3>

<ul>
<li>Build something more substantial with React</li>
<li><a href="https://github.com/swannodette/om">Om</a>, a CLJS wrapper atop React enjoying
advantages from immutable data structures and presumably other CLJS
fanciness</li>
<li>What does <a href="https://groups.google.com/forum/#!msg/clojure/XQ4wuUc0bCk/vpCxosZvbyMJ">this discussion</a> mean by &ldquo;UI as value&rdquo;?</li>
</ul>


<h3>People:</h3>

<p><a href="https://twitter.com/sgrove">https://twitter.com/sgrove</a>
<a href="https://twitter.com/floydophone">https://twitter.com/floydophone</a>
<a href="https://twitter.com/swannodette">https://twitter.com/swannodette</a></p>

<h2>Finance</h2>

<p>On my friend <a href="https://twitter.com/100ideas">Mac Cowell</a>&rsquo;s recommendation, I
skimmed some of <a href="http://www.amazon.com/Little-Still-Market-Books-Profits/dp/0470624159">The Little Blue Book That Still Beats the Market</a>.
I maintain a healthy level of skepticism, but underneath the &ldquo;wow it&rsquo;s pure
magic!&rdquo; skin appears to be a proxy for value investing that identifies
underpriced companies.  Time will tell if broad dissemination of this
valuation strategy will correct the underpricing, or if it holds.</p>

<p>I&rsquo;d like to, as an exercise, build a software implementation of this strategy
and backtest it.  I&rsquo;d also like to understand if there is affordable
historical market information that avoids
<a href="http://en.wikipedia.org/wiki/Survivorship_bias">survivorship bias</a>, and to understand what
other <a href="http://seekingalpha.com/article/363901-the-perils-of-backtesting-technical-strategies">backtesting blind spots</a>
I may have.</p>

<p>I&rsquo;ll follow this up (also on Mac&rsquo;s recommendation) with Graham and Zweig&rsquo;s
<a href="http://www.amazon.com/The-Intelligent-Investor-Definitive-Investing/dp/0060555661">The Intelligent Investor</a>,
maybe in March or April.</p>

<p>Links from an hour-ish of searching about building trading simulations:</p>

<ul>
<li>Data sources:

<ul>
<li><a href="http://stackoverflow.com/questions/5774218/algorithmic-trading-simulator-benchmark-data">StackOverflow: &ldquo;algorithmic trading simulator/benchmark data&rdquo;</a>

<ul>
<li><a href="https://market-archive.appspot.com/">Market Archive</a> &ndash; no idea of
trustworthiness</li>
<li><a href="http://quant.caltech.edu/historical-stock-data.html">Caltech Quantitative Finance Group</a></li>
</ul>
</li>
<li><a href="http://en.wikipedia.org/wiki/Survivorship_bias">Survivorship bias</a></li>
</ul>
</li>
<li>Tools:

<ul>
<li><a href="https://www.quantopian.com">Quantopian</a>

<ul>
<li><a href="https://www.quantopian.com/posts/using-the-fetcher-with-quandl">Can I use fundamental data in Quantopian?</a></li>
</ul>
</li>
<li><a href="http://gbeced.github.io/pyalgotrade/">PyAlgoTrade</a></li>
<li><a href="https://www.interactivebrokers.com/en/?f=tws&amp;p1=papertrader">Interactive Brokers&#8217; toolset</a> &ndash; Quantopian is privately testing IB API integration, so that&rsquo;s promising</li>
</ul>
</li>
</ul>


<h1>Retrospective</h1>

<p>The pace for this month was quite high, but I enjoyed keeping up with it.
I&rsquo;ve found it helpful to schedule reading nights on my calendar to try
and block some time off for paying attention.</p>

<p>I could not read some of the FRP papers for lack of understanding of
some foundational functional programming concepts (applicatives, monoids),
so I will read on those next month.</p>

<p>I wish I had done more hands-on programming with these new tools.</p>

<p>The part I have enjoyed the most is discussing these ideas with others.
I&rsquo;d like to try small reading groups or journal clubs around some of my
future readings.</p>

<p>Next, onto <a href="https://github.com/jasonm/reading-list/wiki/2014-March">March reading: including Clojure, FP concepts, and core.async</a>.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[RedStorm: Distributed Computation in Ruby]]></title>
    <link href="http://jayunit.net/2013/01/11/redstorm/"/>
    <updated>2013-01-11T17:43:00-08:00</updated>
    <id>http://jayunit.net/2013/01/11/redstorm</id>
    <content type="html"><![CDATA[<p>On December 11, 2012 I gave a talk at <a href="http://bostonrb.org">Boston.rb</a> about
writing distributed realtime computations in Ruby using
<a href="https://github.com/nathanmarz/storm">Storm</a> by Nathan Marz and
<a href="https://github.com/colinsurprenant/redstorm">RedStorm</a> by Colin Surprenant.</p>

<p>There is a <a href="http://bostonrb.org/presentations/redstorm-distributed-realtime-computation-in-ruby">video of the talk on the Boston.rb website</a>,
and <a href="http://jayunit.net/redstorm-talk">the slides are posted online</a>.</p>

<p>Basically, Storm provides a framework for building streaming/realtime
computations (like log analysis, for example) and distributed RPC for running
large adhoc computations on a cluster.  RedStorm is a JRuby-based adapter for
writing these computations and assembling them into topologies (workflows) in
Ruby.</p>

<p>Here are the recommended resources from my talk:</p>

<h2>Getting started</h2>

<ul>
<li><a href="http://storm-project.net/">storm</a> is the main project.</li>
<li><a href="https://github.com/colinsurprenant/redstorm">RedStorm</a> is the JRuby adapter for Storm.</li>
<li><a href="https://github.com/nathanmarz/storm-starter">storm-starter</a> is a collection of examples in Storm.</li>
<li><a href="https://github.com/colinsurprenant/redstorm/tree/master/examples">redstorm examples</a> is a similar collection in RedStorm.</li>
</ul>


<h2>Related software tools</h2>

<ul>
<li><a href="https://github.com/nathanmarz/storm-contrib">storm-contrib</a> provides integration with many third-party tools like communicating with queues, service buses, and databases.</li>
<li><a href="https://github.com/nathanmarz/storm-deploy">storm-deploy</a> &ldquo;makes it dead-simple to deploy Storm clusters on AWS.&rdquo;</li>
<li><a href="https://github.com/nathanmarz/storm-mesos">storm-mesos</a> provides integration with Apache Mesos for cluster resource management.</li>
</ul>


<h2>Documentation</h2>

<ul>
<li><a href="https://github.com/nathanmarz/storm/wiki">Storm wiki</a> has about 40,000 words of excellent documentation.</li>
<li>The <a href="https://groups.google.com/group/storm-user">storm-user Google group</a> will cover any questions that the docs don&rsquo;t.</li>
</ul>


<h2>Talks</h2>

<p>Two excellent talks by Storm author Nathan Marz:</p>

<ul>
<li><p>At the <a href="http://phillyemergingtech.com/2012">Philadelphia Emerging Technologies for the Enterprise</a>, <a href="http://vimeo.com/40972420">&ldquo;Storm: Distributed and fault-tolerant realtime computation&rdquo;</a> gives a more extended introduction to Storm.  April 2012.</p></li>
<li><p>At <a href="https://thestrangeloop.com/">Strange Loop</a>, <a href="http://www.infoq.com/presentations/Complexity-Big-Data">Runaway complexity in Big Data</a> discussed &ldquo;Common sources of complexity in data systems and a design for a fundamentally better data system&rdquo;.  October 2012.</p></li>
</ul>


<h2>Book</h2>

<ul>
<li><a href="http://manning.com/marz/">Big Data</a> is an early access book by Nathan Marz which covers &ldquo;Principles and best practices of scalable realtime data systems&rdquo;</li>
</ul>


<h2>Other ESP/CEP resources</h2>

<p>Storm lives in a space that&rsquo;s often referred to as ESP (&ldquo;Event Stream Processing&rdquo;) or CEP (&ldquo;Complex Event Processing&rdquo;):</p>

<ul>
<li><a href="http://en.wikipedia.org/wiki/Event_stream_processing">Wikipedia: Event Stream Processing</a></li>
<li><a href="http://blog.sematext.com/2011/09/26/event-stream-processor-matrix/">Event Stream Processor Matrix</a></li>
<li><a href="http://www.quora.com/Complex-Event-Processing-CEP/Are-there-any-open-source-CEP-tools">Quora: Are there any open-source CEP tools?</a></li>
<li><a href="http://www.igvita.com/2011/05/27/streamsql-event-processing-with-esper/">Ilya Grigorik&rsquo;s &ldquo;StreamSQL: Event Processing with Esper&rdquo;</a></li>
</ul>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[CLAHub: Easy Contributor Agreements on GitHub]]></title>
    <link href="http://jayunit.net/2013/01/09/clahub-easy-contributor-agreements-on-github/"/>
    <updated>2013-01-09T17:22:00-08:00</updated>
    <id>http://jayunit.net/2013/01/09/clahub-easy-contributor-agreements-on-github</id>
    <content type="html"><![CDATA[<p><img class="right" src="http://jayunit.net/assets/clahub/clipboard.png" width="150" height="150"></p>

<p><a href="http://clahub.herokuapp.com">CLAHub</a> is a small side project I cooked up a few
months ago, and just got around to open-sourcing.  The goal is to remove the
friction of <a href="http://en.wikipedia.org/wiki/Contributor_License_Agreement">Contributor License Agreements</a>
for contributors and maintainers alike.  It&rsquo;s not done yet, but I&rsquo;m curious to
hear what people think.</p>

<h2>What is it?</h2>

<p>The general idea with CLAs is this: contributors grant the maintainer a license
to distribute the their code, and state that they&rsquo;re legally able to do so.  A
fair number of projects have a CLA in place, including
<a href="http://jquery.github.com/cla.html">jQuery</a>,
<a href="http://nodejs.org/cla.html">Node.js</a>,
<a href="https://www.djangoproject.com/foundation/cla/">Django</a>, and
<a href="http://wiki.opscode.com/display/chef/How+to+Contribute">Chef</a>.  In the best
cases the CLA is signed via electronic signature, like
<a href="http://nodejs.org/cla.html">Node.js does with a Google Form</a>.  In the worst
cases you have to print, sign, and fax the agreement.  In all cases,
maintainers are responsible for cross-referencing contributions and signatures
to make sure all contributions have a corresponding signature.</p>

<p>With <a href="http://clahub.herokuapp.com">CLAHub</a> and an open source project on GitHub
you can:</p>

<ul>
<li>Sign in with GitHub and create a CLA for your project.</li>
<li>Ask contributors to sign in with GitHub to electronically sign the CLA.</li>
<li>See on each pull request whether the contributors have all signed your CLA.
This uses the handy <a href="https://github.com/blog/1227-commit-status-api">Commit Status API</a>,
similar to what CI tools do.</li>
</ul>


<p><a href="http://clahub.herokuapp.com/">Here&rsquo;s the app</a>.  There&rsquo;s a little slideshow on
the frontpage to see how it works.  And <a href="https://github.com/jasonm/clahub">here&rsquo;s the source on GitHub</a>.</p>

<h2>Learn more about CLAs</h2>

<p>Here&rsquo;s some more background on CLAs:</p>

<ul>
<li><a href="http://jacobian.org/writing/contributor-license-agreements/"><em>Contributor License Agreements</em></a> by Jacob Kaplan-Moss.</li>
<li><a href="http://www.groklaw.net/article.php?story=20110524120303815"><em>A CLA By Any Other Name</em></a> on Groklaw.</li>
</ul>


<p>Want to choose a CLA?  <a href="http://www.harmonyagreements.org/">Project Harmony</a> is a web tool that helps you quickly select a CLA.</p>

<h2>Feedback</h2>

<p>There&rsquo;s more that needs to be done, but the core of the app works.
The <a href="https://github.com/jasonm/clahub/issues">next steps are in GitHub issues</a>.</p>

<p>Do you use a CLA for your project(s)?  Would this encourage you to add a CLA if
you don&rsquo;t have one already?  (That&rsquo;s not really my goal &ndash; just to reduce
friction where CLAs are already valuable.)  If you have a CLA, would you use
something like this to reduce the barrier to entry and your overhead?  What
kinds of features would be useful?</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Papernaut: Exploring Online Discussion of Academic Papers]]></title>
    <link href="http://jayunit.net/2013/01/06/papernaut-exploring-online-discussion-of-academic-papers/"/>
    <updated>2013-01-06T09:00:00-08:00</updated>
    <id>http://jayunit.net/2013/01/06/papernaut-exploring-online-discussion-of-academic-papers</id>
    <content type="html"><![CDATA[<p><img class="right" src="http://jayunit.net/assets/papernaut/astronaut.png" width="150" height="150"></p>

<p>If you regularly read scholarly papers, you likely use a
<a href="http://en.wikipedia.org/wiki/Reference_management_software">reference manager</a> to
maintain your personal library.  <a href="http://www.papernautapp.com">Papernaut</a>
connects to your library to find online coverage and discussion of your papers
in blogs, forums, and mainstream media.  My hope is that these discussions can
provide broader perspective on research and, in some cases, be the spark that
starts a new collaboration.</p>

<p>Here&rsquo;s a very quick video demo. We start with a <a href="http://zotero.org">Zotero</a>
library that includes a paper from Science on the
<a href="http://www.sciencemag.org/content/336/6079/348.short">effect of pesticides on honey bees</a>.
We then connect to Papernaut, and find several discussions and articles,
including one in <a href="http://www.guardian.co.uk/science/grrlscientist/2012/may/08/1">The Guardian</a>:</p>

<iframe width="560" height="349" src="http://www.youtube.com/embed/ACw3iLLsSXw?rel=0" frameborder="0" allowfullscreen></iframe>


<p>I&rsquo;ve been working on Papernaut in my spare time for a few months, and I&rsquo;m happy
to say that it&rsquo;s now open source.  The project comes in two parts, and the
source is on GitHub:</p>

<ul>
<li><a href="https://github.com/jasonm/papernaut-frontend">Papernaut-frontend</a> is the web frontend.</li>
<li><a href="https://github.com/jasonm/papernaut-engine">Papernaut-engine</a> is the feed crawler and matching backend.</li>
</ul>


<p>If you are interested in how the application is put together, the rest of this
article is a technical overview of the moving parts and how they interact.</p>

<h2>Overview: A simple example</h2>

<p>Let&rsquo;s walk through a simplified example.  Say I have only one paper in my
reference manager &mdash; that paper from earlier, about the effect of pesticides on
honey bees:</p>

<p>Henry, M., Beguin, M., Requier, F., Rollin, O., Odoux, J., Aupinel, P., Aptel,
J., Tchamitchian, S., &amp; Decourtye, A. (2012).
<a href="http://www.sciencemag.org/content/336/6079/348.short">A Common Pesticide Decreases Foraging Success and Survival in Honey Bees.</a>
<em>Science</em>, 336 (6079), 348-350 DOI:<a href="http://dx.doi.org/10.1126/science.1215039">10.1126/science.1215039</a></p>

<p>Let&rsquo;s also say that the engine is crawling content from only one source feed,
<a href="http://researchblogging.org">ResearchBlogging.org</a>.
Among many other content items, that source feed contains a
<a href="https://researchblogging.org/post-search/list?advanced=true&amp;post_title=&amp;journal=&amp;blog_blogger_name=GrrlScientist&amp;tags=&amp;tag_id=&amp;search_text=&amp;from_date=05%2F08%2F2012&amp;to_date=05%2F08%2F2012&amp;send=Search">relevant entry</a>,
whose <a href="http://www.guardian.co.uk/science/grrlscientist/2012/may/08/1">content page is on The Guardian</a>.</p>

<p>We&rsquo;ll look at how the engine crawls and indexes this source feed.  Then,
we&rsquo;ll see how the frontend pulls the paper from my reference manager and
asks the engine for relevant discussions.</p>

<h2>Papernaut-engine: Loading content and identifying papers</h2>

<p>The goal of the engine is to produce a collection of <code>Discussion</code> records, each
of which links to several <code>Identifier</code> records, representing journal papers
that are referenced from the <code>Discussion</code>.  In our example, the <code>Discussion</code> is
the article in The Guardian, and the relevant <code>Identifier</code> is
<code>DOI:10.1126/science.1215039</code>.  There are also intermediate objects, <code>Page</code> and
<code>Link</code> which connect <code>Discussion</code>s to <code>Identifier</code>s.</p>

<p>The engine consists of two main parts: loaders (which are Ruby classes), and the
query API (a Rails app).  For loading, it also depends on an external running instance
of the <a href="https://github.com/zotero/translation-server">Zotero translation-server</a>.</p>

<p><img src="http://jayunit.net/assets/papernaut/diagram-engine.png" alt="" /></p>

<h3>Loading content by crawling feeds</h3>

<p>The loaders load discussion candidates from feeds and archives, extract
outbound links, and store these in the database.</p>

<p>In the first step, I invoke the <a href="researchblogging.org">ResearchBlogging.org</a>
loader to crawl and index the most recent 100 pages of their archives:</p>

<pre><code>[engine] rails runner "Loaders::ResearchbloggingWebLoader.new(100).load"
</code></pre>

<p>This will load a large number of <code>Discussion</code> entries into the database, with
zero or more <code>Page</code> entries for each <code>Discussion</code>, corresponding to outbound
links.</p>

<p>At this point, the engine database contains the <code>Discussion</code>:</p>

<pre><code>#&lt;Discussion id: 3424,
             url: "http://www.guardian.co.uk/science/grrlscientist/2012/may/08/1",
             title: " Bee deaths linked to common pesticides | video | G...", ...&gt;
</code></pre>

<p>and the linked <code>Page</code> entries:</p>

<pre><code>[#&lt;Page id: 7531, url: "http://dx.doi.org/10.1126/science.1215039", ... &gt;,
 #&lt;Page id: 7532, url: "http://pubget.com/doi/10.1126/science.1215039", ... &gt;,
 #&lt;Page id: 7533, url: "http://dx.doi.org/10.1126/science.1215025", ... &gt;,
 #&lt;Page id: 7534, url: "http://pubget.com/doi/10.1126/science.1215025", ... &gt;]
</code></pre>

<h3>Identifying papers via the Zotero translation-server</h3>

<p>The engine determines which outbound links (or <code>Page</code>s) are academic papers by
issuing calls to the
<a href="https://github.com/zotero/translation-server">Zotero translation-server</a> HTTP API.
The translation-server is a third-party project from open-source reference
manager <a href="http://www.zotero.org/">Zotero</a>. It examines a given URL and, if
that page contains an academic paper, it returns common publication identifiers such as
<a href="http://en.wikipedia.org/wiki/Digital_object_identifier">DOI</a> or
<a href="http://en.wikipedia.org/wiki/PubMed#PubMed_identifier">PMID</a>.</p>

<p>The translation-server wraps the
<a href="https://github.com/zotero/translators">Zotero translators</a>,
a set of JavaScript scripts that do the heavy lifting of parsing a webpage and
attempting to identify it as one or more academic publications.  These
translators are
<a href="https://github.com/zotero/translators/issues">maintained by the community</a>,
keeping them fairly up-to-date with publishers.  The translation-server uses
<a href="https://developer.mozilla.org/en-US/docs/XULRunner">XULRunner</a> to run these
scripts in a Gecko environment, and makes them available through a simple HTTP
API:</p>

<pre><code>[~] ~/dev/zotero/translation-server/build/run_translation-server.sh &amp;
    zotero(3)(+0000000): HTTP server listening on *:1969

[~] curl -d '{"url":"http://www.sciencemag.org/content/336/6079/348.short","sessionid":"abc123"}' \
     --header "Content-Type: application/json" \
     http://localhost:1969/web | jsonpp

    [
      {
        "itemType": "journalArticle",
        "creators": [
          { "firstName": "M.", "lastName": "Henry", "creatorType": "author" },
          { "firstName": "M.", "lastName": "Beguin", "creatorType": "author" },
          { "firstName": "F.", "lastName": "Requier", "creatorType": "author" },
          { "firstName": "O.", "lastName": "Rollin", "creatorType": "author" },
          { "firstName": "J.-F.", "lastName": "Odoux", "creatorType": "author" },
          { "firstName": "P.", "lastName": "Aupinel", "creatorType": "author" },
          { "firstName": "J.", "lastName": "Aptel", "creatorType": "author" },
          { "firstName": "S.", "lastName": "Tchamitchian", "creatorType": "author" },
          { "firstName": "A.", "lastName": "Decourtye", "creatorType": "author" }
        ],
        "notes": [],
        "tags": [],
        "publicationTitle": "Science",
        "volume": "336",
        "issue": "6079",
        "ISSN": "0036-8075, 1095-9203",
        "date": "2012-03-29",
        "pages": "348-350",
        "DOI": "10.1126/science.1215039",
        "url": "http://www.sciencemag.org/content/336/6079/348.short",
        "title": "A Common Pesticide Decreases Foraging Success and Survival in Honey Bees",
        "libraryCatalog": "CrossRef",
        "accessDate": "CURRENT_TIMESTAMP"
      }
    ]
</code></pre>

<p>There are several useful standardized identifiers here &ndash; DOI, URL, and ISSN.</p>

<p>So, continuing with our example from above, I&rsquo;ll next start the Zotero
translation server and identify the pages:</p>

<pre><code>[engine] ~/dev/zotero/translation-server/build/run_translation-server.sh &amp;
         zotero(3)(+0000000): HTTP server listening on *:1969

[engine] rails runner "ParallelIdentifier.new(Page.unidentified).run"
</code></pre>

<p>The engine issues calls to the translation-server and records new <code>Identifier</code>s.
Now, the <code>Page</code> entries we previously crawled:</p>

<pre><code>[#&lt;Page id: 7531, url: "http://dx.doi.org/10.1126/science.1215039", ... &gt;,
 #&lt;Page id: 7532, url: "http://pubget.com/doi/10.1126/science.1215039", ... &gt;,
 #&lt;Page id: 7533, url: "http://dx.doi.org/10.1126/science.1215025", ... &gt;,
 #&lt;Page id: 7534, url: "http://pubget.com/doi/10.1126/science.1215025", ... &gt;]
</code></pre>

<p>have corresponding <code>Identifier</code> records:</p>

<pre><code>[#&lt;Identifier id: 1819, page_id: 7531, body: "DOI:10.1126/science.1215039" ...&gt;,
 #&lt;Identifier id: 1820, page_id: 7531, body: "URL:http://www.sciencemag.org/content/336/6079/348" ...&gt;],
 #&lt;Identifier id: 1821, page_id: 7533, body: "DOI:10.1126/science.1215025" ...&gt;,
 #&lt;Identifier id: 1822, page_id: 7533, body: "URL:http://www.sciencemag.org/content/336/6079/351" ...&gt;,
</code></pre>

<p>Two of the four pages were identified (<code>7531</code> and <code>7533</code>), and both of those
pages received two identifiers apiece.  This means that the Guardian <code>Discussion</code>
actually referenced two different papers, not just the one we&rsquo;re interested in.</p>

<p>Now that there is a link between the paper in question and this discussion page,
we are ready to visit the frontend.</p>

<h2>Papernaut-frontend: importing libraries, finding discussions</h2>

<p>The frontend works in two distinct phases: first, it helps you import papers
from your reference manager.  Second, it shows you discussions for those papers.</p>

<p>You can import your papers via the
<a href="http://www.zotero.org/support/dev/server_api/read_api">Zotero API</a> or
<a href="http://dev.mendeley.com/">Mendeley API</a> by giving Papernaut access to your
libraries via OAuth.  This happens with
<a href="https://github.com/jasonm/omniauth-zotero"><code>omniauth-zotero</code></a> and
<a href="https://github.com/fractaloop/omniauth-mendeley"><code>omniauth-mendeley</code></a>
libraries, followed by the
<a href="https://github.com/jasonm/papernaut-frontend/blob/2013-01-06/lib/zotero_client.rb"><code>ZoteroClient</code></a> and
<a href="https://github.com/jasonm/papernaut-frontend/blob/2013-01-06/lib/mendeley_client.rb"><code>MendeleyClient</code></a>
classes.</p>

<p>Alternatively, you can import papers from most reference management software by
exporting and uploading a <a href="http://en.wikipedia.org/wiki/BibTeX"><code>.bibtex</code></a>
file.  Papers and their identifiers are then extracted with the
<a href="https://github.com/jasonm/papernaut-frontend/blob/2013-01-06/app/models/bibtex_import.rb"><code>BibtexImport</code></a>
class.</p>

<p>Many papers will have multiple identifiers, and the frontend attempts to clean and validate
your papers&#8217; identifiers as best it can in an attempt to find the best matches.</p>

<p>Once your papers are loaded into the frontend, it
<a href="https://github.com/jasonm/papernaut-frontend/blob/2013-01-06/lib/discussion.rb">issues requests to the <code>papernaut-engine</code> query API</a>
to find discussions that match papers in your library.</p>

<p><img src="http://jayunit.net/assets/papernaut/diagram-frontend.png" alt="" /></p>

<p>The interface between the frontend and the engine are <code>Identifier</code> strings,
which take a type/value form:</p>

<ul>
<li><code>DOI:10.1038/nphys2376</code></li>
<li><code>ISSN:1542-4065</code></li>
<li><code>PMID:10659856</code></li>
<li><code>URL:http://nar.oxfordjournals.org/content/40/D1/D742.full</code></li>
</ul>


<p>So, in our example video above, we authenticate via Zotero and authorize
Papernaut&rsquo;s API access via OAuth.  The frontend extracts our library of papers
from Zotero and stores their <code>Identifier</code>s locally.  It issues requests to the
engine&rsquo;s query API for matching discussions, and displays those to the end
user:</p>

<p><img src="http://jayunit.net/assets/papernaut/frontend-screenshot.png" alt="" /></p>

<h2>Deployment</h2>

<p>In production, the Papernaut engine and frontend are deployed to
<a href="https://heroku.com">Heroku</a>.  The translation-server is deployed to EC2.
I spin it up and run the loaders periodically, to reduce hosting overhead.</p>

<p>There is a <code>DEPLOY.md</code> file for both
<a href="https://github.com/jasonm/papernaut-frontend/blob/master/DEPLOY.md">the frontend</a>
and <a href="https://github.com/jasonm/papernaut-engine/blob/master/DEPLOY.md">the engine</a>
that goes into further detail.</p>

<h2>Next steps</h2>

<p>I&rsquo;m excited to see what kinds of results people get with Papernaut,
but it&rsquo;s still very early software.  I look forward to making a variety
of improvements.</p>

<p>I&rsquo;d really like to add a bulk request API endpoint to the engine, so that the
frontend can discover discussions in a single HTTP request, rather that one
request per paper. That&rsquo;s a big performance hit, and the user experience right
now for large libraries is that the frontend just hangs for a while.</p>

<p>On the engine side, I&rsquo;d like to do a better job of culling false positives in
the matching engine, and of contributing to Zotero&rsquo;s translators to improve the
match rate.  I think the primary issue there is that the translator-server
actually only runs a subset of all the Zotero translators, as some declare that
they only work inside a real browser context
(<a href="http://www.zotero.org/support/dev/translators">see &ldquo;browserSupport&rdquo;</a>).</p>

<p>I&rsquo;d like to get a larger sample set of BibTeX files to try, as there are
probably edge cases and assumptions in the importer waiting to be hit.</p>

<p>I&rsquo;d also like to background some of the tasks in the frontend&rsquo;s import process;
validating DOIs is a big one there.  Ideally, the whole library import would be
backgrounded, and the user interface would be notified when the import is
complete.</p>

<p>Currently, some matches are missed because the engine and frontend have
different identifiers for the same paper &ndash; say a DOI and a PMID.  I also have
an experimental branch that cross-references papers with the
<a href="http://help.crossref.org/#author_title_query">crossref.org API</a>,
which yields more complete information.  Ideally that would happen in the engine.
I&rsquo;ve also seen some library management and import tools that use Google Scholar
to improve matching and identification.</p>

<p>After that, I&rsquo;d like loaders to run semi-continuously instead of manually, and
to have more robust infrastructure around paper identification.</p>

<p>In the long term, it would be interesting to try and bring the discussion
matching experience directly into reference managers.  This is one reason why
I provide the engine query API separately from the frontend.</p>

<h2>Conclusion</h2>

<p>I&rsquo;m most interested in hearing feedback from people.  Is this useful to you?
If you use a reference manager,
<a href="http://www.papernautapp.com">give Papernaut a spin</a>
and <a href="mailto:jason.p.morrison@gmail.com">let me know</a> how it goes.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[A Year of Travel]]></title>
    <link href="http://jayunit.net/2012/12/31/a-year-of-travel/"/>
    <updated>2012-12-31T09:00:00-08:00</updated>
    <id>http://jayunit.net/2012/12/31/a-year-of-travel</id>
    <content type="html"><![CDATA[<p>On December 4, Lindsay and I returned to the US after a year of <a href="http://jayunit.net/2011/11/11/hitting-the-road/">traveling
abroad</a>.  Lindsay diligently blogged our
experiences and her photos at <a href="http://cadeparade.com">cadeparade.com</a>.</p>

<p>We have spent December visiting family and friends.  On December 31, we
fly to San Francisco to start the next chapter of our lives.</p>

<h2>It&rsquo;s adventure time all over again</h2>

<p>Time to sift through apartments and carefully consider our work, to reacquaint
ourselves with first world amenities and first world problems.  To reunite with
family and friends, to fondly shuffle through our notes and photos, and to
reflect on our travel experiences and put them into context.</p>

<p>Also, to eat fajitas and burritos en masse, because let me tell you: Mexican
and Tex-Mex food outside the Americas just is not the same.</p>

<h2>The first half in photos</h2>

<p><em>All photos are by <a href="http://cadeparade">Lindsay Cade</a>, and are from the first
half of the year.</em></p>

<p>During the first six months of December 2011 through May 2012, we traveled in
India, Thailand, Laos, Vietname, Cambodia, and Burma (Myanmar).</p>

<p>We traveled to places beautiful and remote:</p>

<p><img src="http://farm9.staticflickr.com/8453/7936991528_886ea7ae7c_b.jpg" alt="" />
<img src="http://farm9.staticflickr.com/8448/7936993184_be9e720c99_c.jpg" alt="" /></p>

<p>Ate incredible foods:</p>

<p><img src="http://farm8.staticflickr.com/7257/7768788654_e7b744e282_b.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7216/7215266698_43e7409e59_b.jpg" alt="" /></p>

<p>And some not-so-incredible ones:</p>

<p><img src="http://farm8.staticflickr.com/7199/6927499007_1732d60f76_b.jpg" alt="" /></p>

<p>We enjoyed amazing sunsets:</p>

<p><img src="http://farm8.staticflickr.com/7105/6981860512_18047acd9d_b.jpg" alt="" />
<img src="http://farm6.staticflickr.com/5032/7078843175_0eb29b087c_c.jpg" alt="" /></p>

<p>We ventured across deserts:</p>

<p><img src="http://farm8.staticflickr.com/7203/6891841828_dc95fc8352_c.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7254/7031251719_51598ea65d_c.jpg" alt="" /></p>

<p>into backwaters:</p>

<p><img src="http://farm8.staticflickr.com/7208/6847221555_1d21839826_b.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7077/7050364455_1d44c6d27b_b.jpg" alt="" /></p>

<p>through rivers and valleys:</p>

<p><img src="http://farm9.staticflickr.com/8421/7741985230_becb4193c3_b.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7022/6784074323_212570b388_b.jpg" alt="" /></p>

<p>We marvelled at constructions old and new:</p>

<p><img src="http://farm8.staticflickr.com/7142/6640567045_49dc8ddc58_b.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7032/6634037347_a7c9c91e4c_b.jpg" alt="" />
<img src="http://farm8.staticflickr.com/7071/7006734540_c688343639_b.jpg" alt="" /></p>

<p>During the second six months of June through November, we traveled in the Czech
Republic, Italy, Turkey, Germany, France, England, Thailand (again! we are
quite fond of it), South Korea, Malaysia, and Hong Kong.  We ended the trip
where we began, returning to India for a month.</p>

<p>I cannot recommend this experience highly enough.  My sense of perspective and
patience have been changed at a fundamental level.  At the same time, I&rsquo;m very
much ready for this return to the US, to be with friends and to focus on my
career, to do good in this world of which I&rsquo;ve now seen a tiny slice more.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Hitting the Road!]]></title>
    <link href="http://jayunit.net/2011/11/11/hitting-the-road/"/>
    <updated>2011-11-11T09:00:00-08:00</updated>
    <id>http://jayunit.net/2011/11/11/hitting-the-road</id>
    <content type="html"><![CDATA[<p>On November 28, my wife Lindsay and I are flying to India.  We have
no return tickets, and little plan.  I&rsquo;m leaving a <a href="http://thoughtbot.com">great job</a>;
&ldquo;professional ennui&rdquo; is the furthest thing from my motivations.  What&rsquo;s going on?!</p>

<p><img src="http://jayunit.net/images/uploads/adventure-time.png" alt="Adventure Time!" /></p>

<h2>It&rsquo;s adventure time!</h2>

<p>If there&rsquo;s one common lesson I could distill from my collegiate and
professional engagements, it would be the value of diverse experience, and the
difficulty of <em>planning</em> to build that experience.  Sometimes you just gotta
jump in learning&rsquo;s way.</p>

<p>We&rsquo;re young, not tied down, and have seen like 0.0001% of the world.  So,
earlier this year, after getting engaged, we decided: let&rsquo;s hit the road!  Our
plans are loose.  As of now, we:</p>

<ul>
<li>Have 1-way tickets to Delhi and 5-year visas to India.  Many countries in
Asia have VOA (visa on arrival) for US citizens.</li>
<li>Got our arms jabbed (immunizations).</li>
<li>Are brandishing a fat sack of doxy and a veritable menagerie of antibiotics.</li>
<li>Booked two days booked at a hotel to buffer our jetlag.</li>
<li>Asked a friend-of-a-friend to find a short-term lease in Delhi.</li>
<li>Are super frigging pumped.  I mean, come on!</li>
</ul>


<p>I&rsquo;ll miss the crap out of my friends here in the US.  We&rsquo;re flying around a bit
to visit folks before heading overseas &ndash; San Fran tomorrow through Wednesday,
then Buffalo, then Houston for Thanksgiving.</p>

<p>Then, on November 28, IAH-ORD-DEL.</p>

<h2>Closing thoughts</h2>

<blockquote><p>Journeys are the midwives of thought. Few places are more conducive to internal
conversations than a moving plane, ship or train. There is an almost quaint
correlation between what is in front of our eyes and the thoughts we are able
to have in our heads: large thoughts at times requiring large views, new
thoughts new places. Introspective reflections which are liable to stall are
helped along by the flow of the landscape. The mind may be reluctant to think
properly when thinking is all it is supposed to do.</p>

<p>If we find poetry in the service station and motel, if we are drawn to the
airport or train carriage, it is perhaps because, in spite of their
architectural compromises and discomforts, in spite of their garish colours and
harsh lighting, we implicitly feel that these isolated places offer us a
material setting for an alternative to the selfish ease, the habits and
confinement of the ordinary, rooted world.</p></blockquote>

<p>― Alain de Botton, The Art of Travel</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Backbone.js Video Q&amp;A]]></title>
    <link href="http://jayunit.net/2011/10/24/backbone-js-video-q-and-a/"/>
    <updated>2011-10-24T21:24:00-07:00</updated>
    <id>http://jayunit.net/2011/10/24/backbone-js-video-q-and-a</id>
    <content type="html"><![CDATA[<p>On Friday, October 14th, I hosted a two hour live Q&amp;A chat for purchasers of the thoughtbot <a href="http://workshops.thoughtbot.com/backbone-js-on-rails">Backbone.js on Rails eBook</a>, which I am co-authoring. We invited people who have purchased the book to submit questions ahead of time, and then join me in chat for a discussion.</p>

<p>I&rsquo;m pleased that we are offering the recording and notes as a free resources. You can <a href="http://workshops.thoughtbot.com/pages/backbone-js-on-rails-qa-live-chat-1">download the Backbone.js on Rails live Q&amp;A chat audio and notes</a> over on the thoughtbot Workshops site.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Backbone.js on Rails Talk]]></title>
    <link href="http://jayunit.net/2011/09/25/backbone-js-on-rails-talk/"/>
    <updated>2011-09-25T22:40:00-07:00</updated>
    <id>http://jayunit.net/2011/09/25/backbone-js-on-rails-talk</id>
    <content type="html"><![CDATA[<p>On Tuesday, September 20, I gave a talk at the
<a href="http://nhruby.org/">New Hampshire Ruby Users Group</a> on Backbone.js on Rails.
I&rsquo;ll be giving a very similar talk on Tuesday, October 11 at
<a href="http://bostonrb.org/presentations/backbonejs-and-rails">boston.rb</a> and a
version more targeted to front-end developers on Wednesday, October 26 at the
<a href="http://www.meetup.com/Boston-Frontend-Developers/">Boston Front End Developers meetup</a></p>

<p>I have posted the <a href="http://jayunit.net/backbone-js-on-rails-talk/">Backbone.js on Rails slides</a>
online, and the <a href="https://github.com/jasonm/backbone-js-on-rails-talk/tree/gh-pages">slide source is on my GitHub</a>.</p>

<p>As an aside, I&rsquo;m using <a href="https://github.com/adamzap/landslide">landslide</a> for the
slides &ndash; I love the resulting HTML and interface, though I&rsquo;ve heard great things
about <a href="http://imakewebthings.github.com/deck.js/">deck.js</a>.</p>

<p>People found the resources sections useful. Many of the links are buried in the
presenter notes, so I&rsquo;ll repeat them here.  There are plenty more online, and
I&rsquo;m sure I&rsquo;m missing some content.  Please link to any of your favorites in the
comments, and I&rsquo;ll add them.</p>

<h3>Testing</h3>

<ul>
<li>Isolation test with <a href="http://pivotal.github.com/jasmine/">Jasmine</a>:

<ul>
<li>Spy/stub/mock, even your HTTP, with <a href="http://sinonjs.org/">sinon.js</a></li>
<li>If you&rsquo;re looking for factory_girl.js, it&rsquo;s called <a href="https://github.com/bkeepers/rosie">Rosie</a></li>
<li><a href="https://github.com/netzpirat/guard-jasmine">guard-jasmine</a> autotest your Jasmine with headless webkit (<a href="http://www.phantomjs.org/">phantomjs</a>)</li>
<li>Write in CoffeeScript and use the 3.1 asset pipeline with <a href="https://github.com/bradphelan/jasminerice">jasminerice</a></li>
<li>Get started with James Newbery&rsquo;s excellent blog posts on <a href="http://tinnedfruit.com/2011/03/03/testing-backbone-apps-with-jasmine-sinon.html">testing Backbone with Jasmine</a></li>
<li>Check out his <a href="https://github.com/froots/backbone-jasmine-examples">examples on GitHub</a></li>
</ul>
</li>
<li>Integration test with:

<ul>
<li><a href="https://github.com/thoughtbot/capybara-webkit">capybara-webkit</a> for fast, headless, accurate WebKit testing</li>
<li>Selenium for other browsers, or if capybara-webkit has issues.</li>
</ul>
</li>
</ul>


<h3>Push synchronization</h3>

<ul>
<li>Rails <code>Model#save</code> cascades to clients: <a href="https://github.com/jasonm/backbone_sync-rails">backbone_sync-rails</a> over pubsub bus <a href="http://faye.jcoglan.com/">Faye</a></li>
<li>Work-in-progress <a href="http://en.wikipedia.org/wiki/Software_transactional_memory">Software transactional memory</a> sync: <a href="https://github.com/codeparty/racer">https://github.com/codeparty/racer</a>

<ul>
<li>Future plans: <a href="http://code.google.com/p/google-diff-match-patch/">diff-match-patch</a>, <a href="http://en.wikipedia.org/wiki/Operational_transformation">Operational transform</a></li>
</ul>
</li>
<li><a href="http://nowjs.org/">Now.js</a></li>
<li><a href="https://github.com/substack/dnode">Substack DNode</a></li>
<li><a href="http://substance.io/michael/data-js">Data.js</a>: Data Manipulation and Graph Persistence for Node.js and the Browser.  Can ride now.js transport.

<ul>
<li>substance.io, above, is written with Backbone.js, and is open source <a href="https://github.com/michael/substance">https://github.com/michael/substance</a></li>
</ul>
</li>
<li><a href="http://andyet.net/blog/2011/feb/15/re-using-backbonejs-models-on-the-server-with-node/">Backbone on the server with node.js</a>&hellip; with DNode or NowJS (?!)</li>
</ul>


<h3>Get started with Backbone</h3>

<ul>
<li><a href="http://documentcloud.github.com/backbone/#examples-todos">Todo App example</a></li>
<li><a href="https://github.com/froots/backbone-jasmine-examples/tree/master/public/javascripts">James Newbery&rsquo;s jasmine examples</a></li>
</ul>


<h3>Further reading: Books on JavaScript</h3>

<ul>
<li><a href="http://shop.oreilly.com/product/9780596517748.do">JavaScript: The Good Parts</a> by Douglas Crockford</li>
<li><a href="http://shop.oreilly.com/product/0636920018421.do">JavaScript Web Applications</a> by Alex MacCaw (Spine.js author)</li>
<li><a href="http://tddjs.com/">Test-Driven JavaScript Development</a> by Christian Johansen</li>
<li><a href="http://shop.oreilly.com/product/9780596806767.do">JavaScript Patterns</a> by Stoyan Stefanov</li>
<li><a href="http://shop.oreilly.com/product/9780596805531.do">JavaScript: The Definitive Guide</a> by David Flanagan</li>
</ul>


<h3>Further reading: Online resources</h3>

<ul>
<li><a href="http://documentcloud.github.com/backbone/">Official Backbone docs</a></li>
<li><a href="http://documentcloud.github.com/backbone/docs/backbone.html">Annotated source code</a></li>
<li><a href="http://documentcloud.github.com/underscore/">Underscore docs</a> and <a href="http://documentcloud.github.com/underscore/docs/underscore.html">source</a></li>
<li><a href="https://groups.google.com/group/backbonejs">Backbone Google Group</a></li>
<li><a href="http://workshops.thoughtbot.com/backbone-js-on-rails?utm_source=jm-talk">Backbone on Rails eBook</a></li>
<li><a href="http://peepcode.com/products/backbone-js">Peepcode episodes on Backbone</a></li>
</ul>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Notes From the MIT Startup Bootcamp 2011]]></title>
    <link href="http://jayunit.net/2011/09/25/notes-from-the-mit-startup-bootcamp-2011/"/>
    <updated>2011-09-25T11:42:00-07:00</updated>
    <id>http://jayunit.net/2011/09/25/notes-from-the-mit-startup-bootcamp-2011</id>
    <content type="html"><![CDATA[<p style="background-color: #ffa; padding: 1em; border: 1px solid #cc9;">If you&#8217;d like to talk with other people who
made it to this event, check out the
<a href="http://news.ycombinator.com/item?id=3036926">Hacker News discussion thread</a>.</p>


<p>Yesterday, September 24 2011, I had the pleasure of attending MIT&rsquo;s 2011
<a href="http://startupbootcamp.mit.edu/">Startup Bootcamp</a>. In its third year, Startup
Bootcamp brought an inspiring and thoughful collection of speakers who have had
a variety of startup successes.</p>

<p>The event hashtag <a href="http://twitter.com/#!/search/%23sb2011">#sb2011</a> is a stream
of reactions and pull-quotes from the event &ndash; mixed here and there with
excited anticipation for
<a href="http://twitter.com/SunburnFestival">a dance festival in Goa</a>.</p>

<p>Ten speakers presented a variety of viewpoints, insight, and food for thought.</p>

<p>It was a mixed bag &ndash; yes, there was unnecessary focus on
<a href="http://www.startuplessonslearned.com/2009/12/why-vanity-metrics-are-dangerous.html">vanity metrics</a>
and the rah-rah of
<a href="http://justinvincent.com/page/1392/entreporn-the-fallacy-that-wastes-your-life">startup theater</a>.
Breathless celebration of hockeysticking uniques and of flying around to court
VCs makes for good TechCrunch articles.  Like it or not, that&rsquo;s an inculcated
part of startup culture.</p>

<p>But if you get past the Hollywooding and the Silicon Valley adulation, there
were gems of solid advice, grounded in experience, on hiring (Paul English of
Kayak), data-driven product development (Naveen Selvadurai of foursquare),
optimizing your life for personal growth (Drew Houston of Dropbox), identifying
underlying social and technological shifts that enable new products (Charlie
Cheever of Quora, Patrick Collison of Stripe), negotiation (Alex Polvi of
Cloudkick), the importance of on-the-ground and unscalable product development
tactics early on (Nathan Blecharczyk of Airbnb), earning and answering to the
responsibility of finding your own way in the world (Anthony Volodkin of
Hype Machine) and how important it is to empower yourself in perhaps the largest
disruptive theme of our time by learning to code (Patrick Collison of Stripe).</p>

<h3><a href="http://paulenglish.com/">Paul English</a>, CTO and co-founder of <a href="http://www.kayak.com/team">Kayak</a>.</h3>

<blockquote><p>Recruit a diversity of success.</p></blockquote>

<p>Paul spoke on three kinds of recruiting: companies recruiting new hires,
companies recruiting investors, and job-seekers recruiting companies.</p>

<p>When you&rsquo;re recruiting, look for success, regardless of the kind.  In fact, look
for a diversity of success. Paul once hired an olympic rower, and a chess
grandmaster, and couldn&rsquo;t be happier with these decisions.  Find people who
operate at the top levels of excellence.</p>

<p>Some companies have a &ldquo;no assholes&rdquo; rule &ndash; at Kayak, they have a policy of &ldquo;no
neutrals&rdquo;.  Like Charlie Cheever, who later discussed the importance of hiring
people you have high-bandwidth communication with, Paul encouraged building a
team of people who are fully engaged: &ldquo;intense and in-your-face &ndash; in a good way.&rdquo;</p>

<h3><a href="http://blog.leahculver.com/about.html">Leah Culver</a>, CEO and co-founder of <a href="https://convore.com/">Convore</a></h3>

<blockquote><p>Show up, say yes.</p></blockquote>

<p>Leah told an lighthearted and likeable story of her journey from big state
school CS major to Silicon Valley startup founder.  Full of serendipity and
luck, she shared stories of driving a UHaul from her native Minnesota out to the
Bay Area (picked not primarily for its burgeoning tech scene, but for how much
better the weather is), getting started with Instructables, and bumping into
Pownce co-founders Kevin Rose and Daniel Burka at a party.</p>

<blockquote><p>Have a good story to tell the press &ndash; you don&rsquo;t have to tell people the ugly,
dirty truth.</p></blockquote>

<p>Another of Leah&rsquo;s pieces of advice was a common thread through the talks &ndash; that
of consistent applied effort.  &ldquo;Show up,&rdquo; she said &ndash; in places with a critical
mass of startup people, such as Silicon Valley &ndash; and &ldquo;say yes&rdquo; to opporunities
that come your way.</p>

<h3><a href="http://asuth.com">Andrew Sutherland</a>, founder of <a href="http://quizlet.com/">Quizlet</a></h3>

<blockquote><p>I didn&rsquo;t just rush it on my parents that I was leaving MIT. It took two whole weeks.</p></blockquote>

<p>Andrew shared his story of inspiration for an online learning tool.  When he
hacked together a prototype to help study for a French III class in high school
and subsequently aced the test, he knew he was onto something.</p>

<p>Andrew discouraged market research &ndash; &ldquo;If I had googled for online flash cards, I
would have found other sites, that were not as good, and I wouldn&rsquo;t have made
Quizlet.  Now, we&rsquo;re 10x the [volume] of our next competitor.&rdquo;</p>

<p>This phrasing
<a href="http://twitter.com/#!/BobbieC/status/117616203874316288">raised some contention</a>.
I would reframe his advice as: focus on your own products rather than on the
competition, and don&rsquo;t be discouraged by incumbent players; rather, recognize
them as a validation of the market space, and proceed to out-execute them.</p>

<h3><a href="http://naveenium.com/">Naveen Selvadurai</a> co-founder of <a href="http://foursquare.com">foursquare</a></h3>

<blockquote><p>At first, go with your hunch.  Later, with data.</p></blockquote>

<p>Naveen worked for Lucent and Sun in college.  This was important &ndash; it was
real-world learning.  Seeing engineering culture, doing code reviews, shipping
real products.  Sun had an open culture of learning where you can dive into
other products.  &ldquo;How&rsquo;d they build Solaris?  File systems?&rdquo;  Just sign up for
the mailing list.</p>

<p>Naveen shared seven pieces of distilled advice:</p>

<ol>
<li>Keep good company.</li>
<li>Make something that people want.</li>
<li>Build around an atomic action.</li>
<li>Seek mentors early.</li>
<li>At first, go with your hunch.  Later, with data.</li>
<li>Balance unknowns with knowns.</li>
<li>Always be recruiting.</li>
</ol>


<p>On the last point Naveen shared the four stages of foursquare&rsquo;s hiring strategy:</p>

<ol>
<li>Hire friends</li>
<li>Hire friends of friends</li>
<li>Use an external agency (but they didn&rsquo;t find this valuable)</li>
<li>Hire an internal fulltime recruiter.</li>
</ol>


<blockquote><p>It needs to be someone&rsquo;s job to think about recruiting, seven days a week.
Additionally, as a founder, you must always be recruiting.</p></blockquote>

<h3><a href="http://twitter.com/#!/ccheever">Charlie Cheever</a>, founder of <a href="http://www.quora.com/">Quora</a></h3>

<blockquote><p>Work with people you have really high-bandwidth communication with.
Understand how the other person is thinking.</p></blockquote>

<p>Charlie shared great advice on early-stage tactics.  Start with few users (Quora
started with fewer than fifty) and a low-cost MVP.  Foster the community by
hand, be high-touch and, if your business builds on user-generated content, be
prepared at the beginning to build a lot of it by yourself.  See how the
experiment goes, and then take the learning from that experience and apply it to
your MVP.</p>

<p>He shared the importance of collecting metrics early on. With Quora, they
actually stored the entire webpage for every visit for every customer, so that
they could go back later, having identified trends or formulated hypotheses, and
see the site as their users saw it.</p>

<p>They noticed a set of high-engagement users, looked at these users&#8217; expereinces,
and found that they had all used Facebook connect.  Running with this, the team
spent time focusing on improving their social experience.</p>

<p>Charlie also left the audience with good food for though:</p>

<blockquote><p>What wave enables your product?  Why is now the right time to build it?</p></blockquote>

<p>For foursquare, it was GPS-enabled mobile phones.  For Quora, it was that
&ldquo;normal&rdquo; people were comfortable sharing things online, and that the web was
turning into a mess; with Google turning up more content farm results, people
were moving onto safe harbors of organized information like IMDB and Wikipedia.
The timing was right.</p>

<h3><a href="http://twitter.com/#!/drewhouston">Drew Houston</a>, co-founder of <a href="http://dropbox.com">Dropbox</a></h3>

<blockquote><p>Get out of your comfort zone.  Learn a little about a lot.</p></blockquote>

<p>&ldquo;Everything big starts small&rdquo; &ndash; Drew&rsquo;s original perception of startups was that
of Tolkien&rsquo;s Mount Doom.  His original strategy to build a successful startup
was to be overwhelmingly prepared &ndash; nab an MIT CS degree, get a few years&#8217;
exerpience working for small companies and big companies alike, come back for a
PhD, maybe an MBA.</p>

<p>He then related a story from Dropbox&rsquo;s origins: Drew had just settled into his
seat on a Chinatown bus from Boston, in which he could usually get in several
hours of undisturbed work.  He popped open his laptop, and searched his pockets
for his ever-present USB thumb drive.  &ldquo;Shit.&rdquo;  Realization set in just as he
visualized, in his mind&rsquo;s eye, the thumb drive sitting on his desk at home.
&ldquo;Like any good engineer with a problem to solve, I opened my editor.&rdquo; Drew then
wrote the first lines of what would eventually become Dropbox.  Today, his
company has a multi-billion dollar valuation and &ldquo;stores more files than Twitter
stores tweets.&rdquo;</p>

<p>Drew exhorted the audience to learn about a broad variety of topics: sales,
marketing, finance, accounting, product design, psychology, influence,
negotiation, organizational design, management and leadership, business
strategy.  Buy books (&ldquo;today we have this amazing thing, Amazon&rdquo;), dip in, find
mentors, and surround yourself with smart people.</p>

<p>Wrapping up, Drew shared his advice for success:</p>

<ul>
<li>Take on more than you&rsquo;re &ldquo;ready for.&rdquo;</li>
<li>Maximize how much you learn per unit time.</li>
<li>Stack the odds in your favor. Surround yourself with great people; you are the
average of your five closest friends.</li>
<li>The fastest way to learn about startups is to join one.</li>
<li>Starting a company is one of the best ways for engingeers to change the world.</li>
</ul>


<h3><a href="http://alex.polvi.net/">Alex Polvi</a>, founder of <a href="https://www.cloudkick.com/">Cloudkick</a></h3>

<blockquote><p>No matter what number they offer, pause, count to 10 in your head, and then act as disappointed as possible.</p></blockquote>

<p>Alex spoke on negotiation, specifically about his experience of his company
Cloudkick being acquired by Rackspace.</p>

<ul>
<li>If a VP of Corp Dev says &ldquo;strategic&rdquo; to you, they are talking about
acquisition.</li>
<li>Acquisitions are a bit like romantic relationships: you often get the most
attention when you&rsquo;re looking for it the least.  Once you are involved with one
party, others can sense it. You somehow become more desirable.</li>
<li>Once you have a term sheet from one prospective buyer, you have great
leverage.  When others call you up, you can very quickly get to hard numbers.</li>
</ul>


<blockquote><p>The best negotiation position is one of truth.  Build something of value that
people want, and your position is irrefutable.</p></blockquote>

<p>Alex also discussed the importance of taking care of your team, and the people
around you.  Upon acquisition, he fully accelerated all employees&#8217; options &ndash;
whether they had been with Cloudkick for four years or four weeks, they were all
fully vested and could share in the company&rsquo;s success.  It was important that
the acquiring party, Rackspace was on board with this &ndash; and they were.
Rackspace wanted the new team members to stick around not because they were
waiting to vest, but because they wanted to be there.</p>

<h3><a href="http://fascinated.fm/">Anthony Volodkin</a>, founder of <a href="http://hypem.com">Hype Machine</a></h3>

<blockquote><p>Venture Capital?  You do not need anyone&rsquo;s permission to make stuff.</p></blockquote>

<p>Anthony shared the perspective that VC or angel investment can be very
important, but it&rsquo;s not for everyone.  &ldquo;I don&rsquo;t want to shut something off
because the math doesn&rsquo;t work.  For people to not remember it.  That would make
me sad.&rdquo;</p>

<p>Anthony&rsquo;s vision was a question: while people with cool friends can get
interesting music recommendations from that network, what about people without
cool friends?  He knew that there was great taste and insight being shared by
music bloggers online, and sought to aggregate and distill it.  &ldquo;I didn&rsquo;t want
to miss anything.&rdquo;</p>

<p>(If music startups are your thing, Anthony couldn&rsquo;t recommend highly enough
<a href="http://www.slideshare.net/daltoncaldwell/startupschool3">Dalton Caldwell&rsquo;s talk from Startup School 3 on music startups</a>.)</p>

<blockquote><p>Find your own way.</p></blockquote>

<p>He started Hype Machine from his dorm room.  He didn&rsquo;t take investor money.
This gave Anthony and his team the freedom to run the company as they pleased.</p>

<p>&ldquo;We wanted to travel,&rdquo; he said &ndash; so they packed their bags and hung out in
Berlin for a month.  It was cheaper than they would have thought, &ldquo;about six
thousand dollars,&rdquo; and incredibly fun.  But if they&rsquo;d had VC money?  &ldquo;No way,&rdquo;
Anthony imagined an advisor&rsquo;s response, &ldquo;we thought you were, you know, going to
be working sixteen hour days.  Now you want to go to Berlin and <em>maybe work</em>?&rdquo;</p>

<blockquote><p>YCombinator?  TechStars?  Just fucking make something.</p></blockquote>

<p>Anthony exhorted: it&rsquo;s okay to have a different process.  Don&rsquo;t discount
investment and the accompanying advisors, but don&rsquo;t go blindly down that most
celebrated path. With a different process, it&rsquo;s easier to stand out, to be
differentiated.  You can always get money if you are making something great.</p>

<h3><a href="https://twitter.com/#!/nathanblec">Nathan Blecharczyk</a> of <a href="http://airbnb.com">Airbnb</a></h3>

<blockquote><p>You have to have a vision, you have to be able to execute that vision.</p></blockquote>

<p>Nathan shared a 2008 pitch deck for Airbnb (then AirBed&amp;Breakfast) &ndash; the
first time this deck had ever seen the light of day.
Tiffany Kosolcharoen posted <a href="http://tiffanyk.com/post/10611384492/honored-nathanblec-shared-original-airbnb">photos of the slides on her blog</a>.</p>

<p>He highlighted its strengths &ndash; it had a problem statement, and had a bottom-up
business projection by analogy to CouchSurfing and Craigslist.  He was also
quick to point out its weaknesses &ndash; it involved hand-wavy notions of unlikely
major player partnerships, and touted top down projections (&ldquo;If we can capture
2% of the $1.9B travel booking market&hellip; imagine!&rdquo;) that are quick to raise
doubt from savvy adviors or investors.</p>

<p>The company was accepted into Y Combinator&rsquo;s Winter 2009 class.  YC companies
are supposed to be heads-down; but at Paul Graham&rsquo;s behest, the cofounders
zeroed in their market focus to just New York and hopped redeyes back and forth
every few weeks.  They met with their initial supply-side renteres in bars, and
chatted about how things were going.  As the team refined the product and
identified sticking points, they could be on the ground to help optimize
listings.  They&rsquo;d go with people into their homes and take high-quality photos.
They found that the initial asking rates were a little too high, so they asked
their listers (after a few drinks) to lower their prices.  Things clicked, and
soon they had handled $250,000 in bookings of which they collected 10%.</p>

<p>Fast-forward to the YC W09 Demo Day, and although at that point Airbnb has
already accepted Sequoia investment, they had prepared a Demo Day deck.  Gone
was the hand-wavy top-down projection and partnership hopefulness, replaced with
a quarter million dollars of demonstrable traction, a tight initial market
focus, and a tight, clear problem statement.</p>

<p>Like many of the speakers, Nathan stressed the importance of finding quality
mentors.</p>

<h3><a href="http://collison.ie/">Patrick Collison</a> co-founder of <a href="http://stripe.com">Stripe</a></h3>

<blockquote><p>It is impossible to motivate great people by something that is merely going to be profitable.</p></blockquote>

<p>Patrick&rsquo;s talk was an excellent finish to the day.  He delivered an essay full of engaging stories  &ndash; I sincerely hope it will be posted online in full.</p>

<p>Patrick&rsquo;s story was of his trip from hardcore Lisp academic to startup founder.  Along the way, he developed one of the first iPhone apps, an <a href="http://collison.ie/wikipedia-iphone/index-new">offline Wikipedia</a>, before the SDK and App Store, by debugging ARM assmebly. He shared the touching experience of getting emails form users whose lives he had changed; from bringing the world&rsquo;s knowledge to villages in rural Peru and Ghana to delivering the freedom to browse Wikipedia without overisght to people behind the Great Firewall of China.  At nineteen, he co-founded and sold an online action tool, and is currently working on a new payment startup, Stripe.</p>

<blockquote><p>The anthropological story of the last twenty years is that software is taking over the world. Even if you&rsquo;re a traveling violinist, you should learn how to program.  Do all you can to ensure code is not a foreign language.</p></blockquote>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Hello, Octopress. Hello, Blog.]]></title>
    <link href="http://jayunit.net/2011/09/05/hello-octopress-hello-blog/"/>
    <updated>2011-09-05T20:18:00-07:00</updated>
    <id>http://jayunit.net/2011/09/05/hello-octopress-hello-blog</id>
    <content type="html"><![CDATA[<h2>On writing</h2>

<p>I&rsquo;ve written sporadically here for several years about programming and language theory, synthetic biology, amateur biology, running user groups and barcamps, multitouch and immersive interactions.</p>

<p>I&rsquo;ve imported my old posts from WordPress into Octopress.  That was &mdash; oh wait, I was about to write about that experience before I even began.  I was going to say how buttercream-frosting-smooth it was, and that&rsquo;s probably because I have a lot of confidence in exactly that, mostly due to their <a href="http://octopress.org/">well-coiffed htmls</a>.  Update!  Turns out they&rsquo;re <a href="https://github.com/mojombo/jekyll/wiki/blog-migrations">Jekyll migrations</a> instead.  Still easy-peasy.</p>

<p>I&rsquo;ve <a href="http://www.google.com/search?q=site:robots.thoughtbot.com+jasonmorrisontb">written more frequently and recently over on the thoughtbot blog</a>, on development-related topics from from <a href="http://robots.thoughtbot.com/post/189637456/tiniest-of-tips">little tips</a> to <a href="http://robots.thoughtbot.com/post/2597579897/use-deadweight-and-your-integration-suite-to">medium-size tips</a> to <a href="http://robots.thoughtbot.com/post/486653439/hopping-in-the-cloud">architecture deep-dives</a>, from <a href="http://robots.thoughtbot.com/post/7766484768/backbone-js-on-rails-a-new-dynamic-ebook">product announcements</a> to <a href="http://robots.thoughtbot.com/post/159805334/make-your-test-suite-uncomfortably-fast">high-performance bears</a>.</p>

<p>I&rsquo;ll be traveling extensively over the next year, and will be writing about that, too.  But that&rsquo;s a different post.</p>

<h2>On tools</h2>

<p>I wrote most of my previous posts in Mephisto, which was kind of janky after a white, and then switched to WordPress, which is totally not Ruby, and more or less means I have to run a VPS and make sure I don&rsquo;t get <a href="http://www.ludicroussoftware.com/blog/2011/08/02/switching-to-octopress/">chainsawed by spammers</a>.   Also, I&rsquo;m interested in switching to a toolset more near and dear to my heart. <a href="http://octopress.org/">Octopress</a> fits the bill.</p>

<p>This also means I can write using vim and git, like a champ.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[SmartLab Shenanigans]]></title>
    <link href="http://jayunit.net/2009/09/29/smartlab-shenanigans/"/>
    <updated>2009-09-29T00:00:00-07:00</updated>
    <id>http://jayunit.net/2009/09/29/smartlab-shenanigans</id>
    <content type="html"><![CDATA[<p style="font-size: 19.5px; line-height: 28.5px;">Whither lurk multitouch, tactile computing, and lab instrument hacking?  I&#8217;ve started to work on the <a href="http://projectsmartlab.org/">SmartLab project</a> again.  You can see what I am up to on the <a title="SmartLab tumblr" href="http://smartlab.tumblr.com">SmartLab tumblr</a>.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[See You at RailsConf!]]></title>
    <link href="http://jayunit.net/2009/05/06/railsconf-2009/"/>
    <updated>2009-05-06T00:00:00-07:00</updated>
    <id>http://jayunit.net/2009/05/06/railsconf-2009</id>
    <content type="html"><![CDATA[If you&#8217;re going to RailsConf this week, let&#8217;s grab some drinks and catch up!

I&#8217;m looking forward to hanging out with <a href="http://thoughtbot.com">my awesome coworkers</a>, my Ruby friends from all around, and giving a lightning talk on <a href="http://bioweathermap.org">the BioWeatherMap Initiative</a> at the <a href="http://activeresearch.org">ActiveResearch</a> &#8220;Science on Rails&#8221; evening (<a href="http://en.oreilly.com/rails2009/public/schedule/detail/9023">Tuesday at 7:30pm</a>).

<strong>Update: </strong>I&#8217;ve uploaded my talk from ActiveResearch to SlideShare:  &#8221;<a href="http://www.slideshare.net/jmorrison/bioweathermap-at-active-research">BioWeatherMap at ActiveResearch</a>.&#8221;
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[DIYbio at CodeCon, BarCampBoston, Cambridge Science Festival, and Maker Revolution]]></title>
    <link href="http://jayunit.net/2009/04/24/diybio-at-codecon-barcampboston-cambridge-science-festival-and-maker-revolution/"/>
    <updated>2009-04-24T00:00:00-07:00</updated>
    <id>http://jayunit.net/2009/04/24/diybio-at-codecon-barcampboston-cambridge-science-festival-and-maker-revolution</id>
    <content type="html"><![CDATA[In a whirlwind two weekends, I&#8217;ve given a <a href="http://diybio.org">DIYbio</a> talk with Kay Aull and Mac Cowell at <a href="http://codecon.org">CodeCon 2009</a> and will be at the <a href="http://cambridgesciencefestival.org/">Cambridge Science Festival</a> (<a href="http://diybio.org/2009/04/21/diybio-boston-at-cambridge-science-festival-this-saturday/">details</a>), <a href="http://www.barcampboston.org">BarCamp Boston 4</a>, and <a href="http://www.themakerrevolution.com/">The Maker Revolution</a> (Sunday at 1:00pm).

CodeCon was a fantastic experience - San Francisco was enjoyable as always, and it was stimulating to be around so many incredibly bright folks.  Thanks again to Len, Bram, and all the organizers for putting it together and for hosting the BioHack! track.

I hope to record the talk material with Kay and Mac, titled &#8220;DIY Synthetic Biology: From Design to Construction with New Model Organisms,&#8221; so that it is available online in the near future.
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Kitmakers Class]]></title>
    <link href="http://jayunit.net/2009/01/08/kitmakers-class/"/>
    <updated>2009-01-08T00:00:00-08:00</updated>
    <id>http://jayunit.net/2009/01/08/kitmakers-class</id>
    <content type="html"><![CDATA[Monday, Jan 5 2009: Tonight is the first night of <a href="http://www.nublabs.org/">nublabs</a>&#8217; <a href="http://nublabs.com/mailman/listinfo/kitmakers_nublabs.com">Kitmakers course</a>.  I&#8217;m excited to see how it goes!

I&#8217;m primarily interested in building equipment for do-it-yourself biology, such as <a href="http://openwetware.org/wiki/DIYbio:Notebook/Open_Gel_Box_2.0">an inexpensive, high quality gel electrophoresis apparatus</a>.

&#8211; cut to Thursday, Jan 8 &#8211;

&#8230;and today was the second night.  There were notably fewer people tonight, but it rocked anyhow.  I learned how to use the Bridgeport mill to do basic manual milling and how to use the digital readout, turned some aluminum in a lathe, and watched an intro to MIG welding.

Then, with <a href="http://nublabs.org">Alex</a>&#8217;s help, I put together a variable DC power supply with a variac, bridge rectifier (three of them, actually - but only because we blew two), and a resistor+capacitor to smooth the resulting voltage.  Photos:

<div style="text-align: center;">
[caption id=&#8221;attachment_65&#8221; align=&#8221;aligncenter&#8221; width=&#8221;300&#8221; caption=&#8221;Gel box power supply, variable from ~0-200VDC.  Variac is on the left; AC voltmeter, bridge rectifier and RC mounted to the board on the right.&#8221;]<a href="http://jayunit.net/wp-content/uploads/2009/01/img_0079.jpg"><img class="size-medium wp-image-65" title="Gel box power supply, variable from ~0-200VDC.  Variac is on the left; AC voltmeter, bridge rectifier and RC mounted to the board on the right." src="http://jayunit.net/wp-content/uploads/2009/01/img_0079-300x225.jpg" alt="Gel box power supply, variable from ~0-200VDC.  Variac is on the left; AC voltmeter, bridge rectifier and RC mounted to the board on the right." width="300" height="225" /></a>[/caption]

[caption id=&#8221;attachment_64&#8221; align=&#8221;aligncenter&#8221; width=&#8221;225&#8221; caption=&#8221;Bridge rectifier plus RC with drain resistor for gel box power supply&#8221;]<a href="http://jayunit.net/wp-content/uploads/2009/01/img_0077.jpg"><img class="size-medium wp-image-64" title="Bridge rectifier plus RC with drain resistor for gel box power supply" src="http://jayunit.net/wp-content/uploads/2009/01/img_0077-225x300.jpg" alt="Bridge rectifier plus RC with drain resistor for gel box power supply" width="225" height="300" /></a>[/caption]

[caption id=&#8221;attachment_66&#8221; align=&#8221;aligncenter&#8221; width=&#8221;225&#8221; caption=&#8221;Variable DC power supply, all snug in a shelf.  Goodnight!&#8221;]<a href="http://jayunit.net/wp-content/uploads/2009/01/img_0080.jpg"><img class="size-medium wp-image-66" title="Variable DC power supply, all snug in a shelf.  Goodnight!" src="http://jayunit.net/wp-content/uploads/2009/01/img_0080-225x300.jpg" alt="Variable DC power supply, all snug in a shelf.  Goodnight!" width="225" height="300" /></a>[/caption]

</div>

Next week I&#8217;d like to test the power output on an oscilloscope, and start working on building a &#8220;draft&#8221; of an enclosure.
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[New Year Update]]></title>
    <link href="http://jayunit.net/2009/01/05/new-year-update/"/>
    <updated>2009-01-05T00:00:00-08:00</updated>
    <id>http://jayunit.net/2009/01/05/new-year-update</id>
    <content type="html"><![CDATA[Hey folks!  It&#8217;s been a while (whew&#8230; 6 months?) since my last update here.  Here are a few things I&#8217;ve been up to, and what my plans over the next few months are:
<ol>
	<li>Built and delivered <a href="http://thoughtbot.com">awesome web applications with thoughtbot</a>, and will help to roll out a <a href="http://thoughtbot.com/training">beginning Rails thoughtbot training course</a> later this January.</li>
	<li>Attended RailsConf, RubyConf, the Lone Star Ruby Conference, and spoke at Boston.rb on <a href="http://github.com/jasonm/talks/tree/master">Clearance, a small auth plugin for Ruby web apps</a>.</li>
	<li>Started learning more biology in earnest by taking a <a href="http://isites.harvard.edu/icb/icb.do?keyword=k38681">cell- and micro-bio course at Harvard Extension</a> and working with <a href="http://diybio.org/">DIYbio</a>.  While the lecture is a very good one, as lectures go, I preferred the lab to the lecture and, as such, intend to do more hands-on learning in 2009.  A few projects I would like to undertake include:
<ol>
	<li>Working through <a href="http://www.biotechinstitute.org/resources/shoestring_biotech.html">Shoestring Biotechnology: Budget-Oriented High Quality Biotechnology Laboratories for Two-Year College and High School</a>.</li>
	<li>Working on at least one piece of equipment with DIYbio folks, such as <a href="http://openwetware.org/wiki/DIYbio:Notebook/Open_Gel_Box_2.0">Open Gel Box 2.0</a>.</li>
	<li>Participating in a DIYbio iGEM team.</li>
</ol>
</li>
</ol>
If you are interested in keeping tabs on what I&#8217;m up to, I&#8217;d suggest either my <a href="http://twitter.com/jayunit">twitter feed</a> or the <a href="http://groups.google.com/group/diybio">DIYbio Google Group</a>, as these are my highest-touch interactions these days.
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[del.icio.us.tags]]></title>
    <link href="http://jayunit.net/2008/06/19/delicioustags/"/>
    <updated>2008-06-19T00:00:00-07:00</updated>
    <id>http://jayunit.net/2008/06/19/delicioustags</id>
    <content type="html"><![CDATA[Tags from <a href="http://del.icio.us/jasonpm">del.icio.us/jasonpm</a> via <a href="http://wordle.net">wordle.net</a>:

<a href="http://jayunit.net/wp-content/uploads/2008/06/delicioustags.png"><img class="alignnone size-full wp-image-51" title="delicioustags" src="http://jayunit.net/wp-content/uploads/2008/06/delicioustags.png" alt="" width="500" height="691" /></a>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Jason Joins Thoughtbot!]]></title>
    <link href="http://jayunit.net/2008/06/06/jason-joins-thoughtbot/"/>
    <updated>2008-06-06T00:00:00-07:00</updated>
    <id>http://jayunit.net/2008/06/06/jason-joins-thoughtbot</id>
    <content type="html"><![CDATA[<p style="text-align: left;">A little while back, I resigned from my position at <a href="http://www.vistaprint.com">VistaPrint</a> to take a great opportunity at <a href="http://thoughtbot.com">thoughtbot, inc</a> in downtown Boston.  I&#8217;ll be starting with them on Monday, June 9, and am super excited to join their small and dynamic team.  Initially, I&#8217;ll be working on <a href="http://www.thoughtbot.com/projects">tools for the Nature Publishing Group</a> like <a href="http://network.nature.com">Nature Network</a>.</p>
<p style="text-align: left;">I got to hang out with some of the team at <a href="http://www.railsconf.com">RailsConf</a>, see some top-secret <a href="http://teebot.thoughtbot.com/">Tee-Bot</a> designs, go on some exciting Portland excursions and adventures, and I might have even learned a little Ruby or Rails along the way.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[DIYbio Is Alive!]]></title>
    <link href="http://jayunit.net/2008/06/06/diybio-is-alive/"/>
    <updated>2008-06-06T00:00:00-07:00</updated>
    <id>http://jayunit.net/2008/06/06/diybio-is-alive</id>
    <content type="html"><![CDATA[<blockquote><a href="http://www.diybio.org/">DIYbio</a> is an organization for the ever expanding community of citizen scientists and DIY biological engineers that value openness &amp; responsibility.  <a href="http://www.diybio.org/">DIYbio</a> aims to be an &#8220;Institution for the Amateur&#8221; &#8211; an umbrella organization that provides some of the same resources afforded by more traditional institutions like academia and industry, such as access to a community of experts, to technical literature and other resources, to responsible oversight for health and safety, and an interface between the community and the public at large.</blockquote>
Check out <a href="http://www.diybio.org">diybio.org</a> and, if you&#8217;re in the Boston area, drop by our meetup next week!  Read <a href="http://blog.diybio.org/2008/05/dont-phage-me-bro.html">Jason Bobe&#8217;s summary of the first meeting at the DIYbio blog</a>, and keep an eye on the <a href="http://groups.google.com/group/diybio">DIYbio mailing list</a> for details.
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Mephisto to WordPress]]></title>
    <link href="http://jayunit.net/2008/04/16/mephisto-to-wordpress/"/>
    <updated>2008-04-16T00:00:00-07:00</updated>
    <id>http://jayunit.net/2008/04/16/mephisto-to-wordpress</id>
    <content type="html"><![CDATA[An easy way to import a Mephisto blog into WordPress is by using a <a href="http://schwuk.com/articles/2008/03/25/thy-will-be-done-m2wppy-is-released">Python script for extracting a WordPress-friendly WXR file from Mephisto</a> (which can be imported via the WordPress web admin interface), which eventually worked like a charm.  I had to modify it to use MySQL, and to look at a different date field for publication (my Mephisto install was returning Null in the field m2wp.py was looking at).
<ol>
	<li>Go grab <a href="http://schwuk.com/articles/2008/03/25/thy-will-be-done-m2wppy-is-released">m2wp.py</a>.</li>
	<li>Download <a href="http://wptest.jayunit.net/wp-content/uploads/2008/04/m2wp-mysql.diff">m2wp-mysql.diff</a>. (Update 6/6/08: fixed the missing trailing newline)</li>
	<li>Run <code>patch m2wp.py m2wp-mysql.py.diff -o m2wp-mysql.py</code>.</li>
	<li>Now you can run <code>python m2wp.py -h</code> and you&#8217;re off and running!</li>
</ol>
A less effective method is to transform Mephisto&#8217;s Atom feed into RSS, and import that into WordPress.  This is a pain, because the feed does not contain comments, but here is how I did it before I discovered <code>m2wp.py</code>:
<ol>
	<li>Get the <a href="http://sourceforge.net/projects/xmlstar/">XMLStarlet command line XML toolkit</a>.</li>
	<li><code>wget http://atom.geekhood.net/atom2rss.xsl</code></li>
	<li><code>wget http://mymephistoblog.com/feed/atom.xml</code></li>
	<li><code>xml tr atom2rss.xsl atom.xml &gt; rss.xml</code></li>
	<li>Go to <a href="http://mywordpressblog.com/wp-admin/admin.php?import=rss">http://mywordpressblog.com/wp-admin/admin.php?import=rss</a></li>
	<li>Import your rss.xml</li>
	<li>Pull comments over by hand.</li>
</ol>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Biological Simulation Languages]]></title>
    <link href="http://jayunit.net/2008/04/16/biological-simulation-languages/"/>
    <updated>2008-04-16T00:00:00-07:00</updated>
    <id>http://jayunit.net/2008/04/16/biological-simulation-languages</id>
    <content type="html"><![CDATA[<p>From the &ldquo;publishing old drafts for kicks&rdquo; department, some interesting notes on Biological Simulation Languages:</p>

<ul>
<li><a href="http://lambda-the-ultimate.org/node/2447"><em>SPim</em>: Efficient, Correct Simulation of Biological Processes in the Stochastic Pi-calculus</a></li>
<li><a href="http://lambda-the-ultimate.org/node/2671">The little b language: shared models built from reusable parts</a></li>
<li><a href="http://lucacardelli.name/BioComputing.htm">BioComputing resources from Luca Cardelli</a></li>
</ul>

]]></content>
  </entry>
  
</feed>
