<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Some notes &amp; the odd picture, often of a cat or something.</description><title>larkery</title><generator>Tumblr (3.0; @larkery)</generator><link>http://blog.larkery.com/</link><item><title>Conjecture about K-complexity</title><description>&lt;p&gt;&lt;strong&gt;Conjecture&lt;/strong&gt;: for any finite set of bit strings &lt;em&gt;S&lt;/em&gt; and a chosen ordering of &lt;em&gt;S&lt;/em&gt;, it is possible to define (or there exists) a machine &lt;em&gt;M&lt;/em&gt; where sorting &lt;em&gt;S&lt;/em&gt; by the Kolmogorov complexity of its members with respect to &lt;em&gt;M&lt;/em&gt; constructs the chosen ordering.&lt;/p&gt;
&lt;p&gt;Answers on a postcard.&lt;/p&gt;</description><link>http://blog.larkery.com/post/16920027795</link><guid>http://blog.larkery.com/post/16920027795</guid><pubDate>Thu, 02 Feb 2012 14:31:00 +0000</pubDate><category>conjecture</category><category>kolmogorov</category><category>complexity</category></item><item><title>"He has an honorary position as official Shoutsperson of the University of York’s Douglas Adams..."</title><description>“He has an honorary position as official Shoutsperson of the University of York’s Douglas Adams Society,[14] and in 2011 the University’s student body voted to name a new study space as the ‘Brian Blessed Centre for Quiet Study’.[15]”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://en.wikipedia.org/wiki/Brian_Blessed"&gt;Brian Blessed - Wikipedia, the free encyclopedia&lt;/a&gt;&lt;/em&gt;</description><link>http://blog.larkery.com/post/14133264609</link><guid>http://blog.larkery.com/post/14133264609</guid><pubDate>Mon, 12 Dec 2011 22:10:07 +0000</pubDate></item><item><title>(Untitled)</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_lujhxgY2MD1qzkfyko1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;(Untitled)&lt;/b&gt;&lt;/p&gt;</description><link>http://blog.larkery.com/post/12681236798</link><guid>http://blog.larkery.com/post/12681236798</guid><pubDate>Sat, 12 Nov 2011 12:51:18 +0000</pubDate></item><item><title>The Social Graph is Neither</title><description>&lt;a href="http://blog.pinboard.in/2011/11/the_social_graph_is_neither/"&gt;The Social Graph is Neither&lt;/a&gt;: &lt;p&gt;Lazyweb writes the article that explains what I think yet again.&lt;/p&gt;</description><link>http://blog.larkery.com/post/12596481601</link><guid>http://blog.larkery.com/post/12596481601</guid><pubDate>Thu, 10 Nov 2011 12:14:21 +0000</pubDate></item><item><title>(Untitled)</title><description>&lt;img src="http://28.media.tumblr.com/tumblr_lu9k7tmyiQ1qzkfyko1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;(Untitled)&lt;/b&gt;&lt;/p&gt;</description><link>http://blog.larkery.com/post/12444282208</link><guid>http://blog.larkery.com/post/12444282208</guid><pubDate>Mon, 07 Nov 2011 04:04:44 +0000</pubDate></item><item><title>Monochrome cupboard cat</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_lu0rngVPzH1qzkfyko1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;b&gt;Monochrome cupboard cat&lt;/b&gt;&lt;/p&gt;</description><link>http://blog.larkery.com/post/12232478967</link><guid>http://blog.larkery.com/post/12232478967</guid><pubDate>Wed, 02 Nov 2011 10:06:53 +0000</pubDate></item><item><title>The Mensch Hypothesis</title><description>&lt;p&gt;You may have seen Louise Mensch being needled on HIGNFY recently; if you haven’t, &lt;a href="http://www.youtube.com/watch?v=3252FSW7OC4"&gt;take a look&lt;/a&gt;, it’s awful and funny at once.&lt;/p&gt;
&lt;p&gt;Mensch suggests that there’s something wrong about the Occupy LSX protestors drinking coffee from the nearby Starbucks, something which renders their position invalid. Merton &amp; Hislop both mock this view, and get some good laughs in the process; fair enough for a comedy show but this is the internet where such things are SRS BZNS.  Let’s look at what Mrs Mensch says a bit more closely, as it’s a common refrain - “look at those guardianistas, smashing their system on their iPhones”, hilarity and dismissal ensue.&lt;/p&gt;
&lt;p&gt;The argument here is one of hypocrisy, that lattes etc. are fruits of the economic system, and their consumption implies and depends upon supporting it. The protestors should be ignored because they are hypocrites (the cardinal modern sin), saying one thing and acting in contradiction. Let’s consider what is needed for this critique to hold up:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;The protestors believe they ought to be able to have a coffee&lt;/li&gt;
&lt;li&gt;The protestors take issue with the skewed wealth distribution and other current inequalities.&lt;/li&gt;
&lt;li&gt;(MH) Said wealth distribution is necessarily implied by the availability of a coffee. &lt;/li&gt;
&lt;li&gt;Thus, the protestors’ actions (1) contradict their complaints (2) - they are not walking the walk.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;From this we have the Mensch Hypothesis of capitalism: there can be no economy in which a coffee may be bought for a low price in which executive remuneration does not double every couple of years. No lattes may be had without the top 1% holding a radically disproportionate fraction of the wealth (and thus power). To shave even a single pound from the pension of Fred Goodwin or the salary of Bob Diamond would octuple the price of espresso, &lt;em&gt;in all possible worlds&lt;/em&gt;.&lt;/p&gt;</description><link>http://blog.larkery.com/post/12156236228</link><guid>http://blog.larkery.com/post/12156236228</guid><pubDate>Mon, 31 Oct 2011 10:17:00 +0000</pubDate><category>louise</category><category>mensch</category><category>occupy</category><category>lsx</category><category>hignfy</category></item><item><title>cat helping with work</title><description>&lt;span id="video_player_1647085519"&gt;[&lt;a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"&gt;Flash 10&lt;/a&gt; is required to watch video.]&lt;/span&gt;&lt;script type="text/javascript"&gt;renderVideo("video_player_1647085519",'http://blog.larkery.com/video_file/1647085519/tumblr_lca77ie0jd1qzkfyk',400,240,'poster=http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lca77ie0jd1qzkfyk_frame1.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lca77ie0jd1qzkfyk_frame2.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lca77ie0jd1qzkfyk_frame3.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lca77ie0jd1qzkfyk_frame4.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lca77ie0jd1qzkfyk_frame5.jpg')&lt;/script&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;cat helping with work&lt;/p&gt;</description><link>http://blog.larkery.com/post/1647085519</link><guid>http://blog.larkery.com/post/1647085519</guid><pubDate>Mon, 22 Nov 2010 10:17:00 +0000</pubDate><category>cat</category><category>helping</category></item><item><title>Time Tree: phylogenetic common-ancestor lookup</title><description>&lt;a href="http://www.timetree.org/"&gt;Time Tree: phylogenetic common-ancestor lookup&lt;/a&gt;</description><link>http://blog.larkery.com/post/1102141630</link><guid>http://blog.larkery.com/post/1102141630</guid><pubDate>Sat, 11 Sep 2010 11:52:49 +0100</pubDate><category>genetics</category><category>phylogenetic</category><category>tree</category><category>of</category><category>life</category><category>evolution</category></item><item><title>The Acceleration of Addictiveness</title><description>&lt;a href="http://paulgraham.com/addiction.html"&gt;The Acceleration of Addictiveness&lt;/a&gt;: &lt;p&gt;An interesting note by Paul Graham&lt;/p&gt;
&lt;p&gt;(via &lt;a href="http://whatilearnd.com/post/888890754/the-acceleration-of-addictiveness"&gt;dihard&lt;/a&gt;, via &lt;a href="http://blog.jakelodwick.com/post/867346921/the-acceleration-of-addictiveness"&gt;jakelodwick&lt;/a&gt; via &lt;a href="http://reblog.ronenv.com/post/865375131/the-acceleration-of-addictiveness"&gt;Ronen Reblogs&lt;/a&gt;)&lt;/p&gt;</description><link>http://blog.larkery.com/post/898386887</link><guid>http://blog.larkery.com/post/898386887</guid><pubDate>Tue, 03 Aug 2010 16:32:22 +0100</pubDate><category>internet</category><category>attention</category></item><item><title>Ergonomics</title><description>&lt;p&gt;Been typing a lot recently and I have just noticed something blindingly obvious: the num pad is on the wrong side of the keyboard for right handers. Either the mouse ends up off to the right, or your left arm has to be in the wrong place. Why is this considered a good idea?&lt;/p&gt;</description><link>http://blog.larkery.com/post/806641160</link><guid>http://blog.larkery.com/post/806641160</guid><pubDate>Tue, 13 Jul 2010 15:30:26 +0100</pubDate><category>ergonomic</category><category>keyboard</category><category>numpad</category></item><item><title>Conway's Free Will Theorem</title><description>&lt;a href="http://www.cs.auckland.ac.nz/~jas/one/freewill-theorem.html"&gt;Conway's Free Will Theorem&lt;/a&gt;</description><link>http://blog.larkery.com/post/618932082</link><guid>http://blog.larkery.com/post/618932082</guid><pubDate>Fri, 21 May 2010 12:12:00 +0100</pubDate><category>conway</category><category>free will</category><category>theorem</category></item><item><title>Electoral Reform</title><description>&lt;p&gt;We need to reform the electoral system in the UK; I know it’s a topic which sounds utterly dry and tedious, but the lack of fair representation is at the heart of many of the problems in our politics at the moment. If you are already convinced of the need for reform, please take a moment to sign &lt;a href="http://labs.38degrees.org.uk/wall/reform"&gt;this petition at 38degrees&lt;/a&gt;. If not, read on for an explanation of the faults in the system and possible solutions.&lt;!-- more --&gt;&lt;/p&gt;
&lt;h3&gt;What’s wrong with what we have?&lt;/h3&gt;
&lt;p&gt;Parliamentary elections in the UK are currently decided using First Past the Post (FPTP). In a FPTP election, some candidates stand in each constituency and are listed on each ballot paper. You, the voter, express your preference by making a mark next to a candidate. In each constituency, the winner is the candidate with the most marks, who then goes on to represent you and your fellow constituents in Parliament. A completed ballot paper looks something like this, with the vote marked by &lt;strong&gt;X&lt;/strong&gt; :&lt;/p&gt;
&lt;ul class="box"&gt;&lt;li&gt;Joe Bloggs (Lab)&lt;/li&gt;
&lt;li&gt;Jan Smith (Con)&lt;/li&gt;
&lt;li&gt;Phil Jones (Lib)&lt;/li&gt;
&lt;li&gt;Emma Thomas (Plaid) &lt;strong&gt;X&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Adolf Hitler (BNP)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Here I have voted for Emma Thomas, because of my strong Welsh Nationalism. Anyway, although this seems like a fair way of choosing a candidate, it is fraught with problems, in particular the need for &lt;strong&gt;tactical voting&lt;/strong&gt; and &lt;strong&gt;giving power&lt;/strong&gt; to the &lt;strong&gt;media&lt;/strong&gt; and &lt;strong&gt;selection committees&lt;/strong&gt;. It also fails to represent minority interests at a national scale. It does however provide the important benefit of the so-called &lt;em&gt;constituency link&lt;/em&gt;, as every voter has an MP who is supposed to represent their local interests in Parliament. Now let’s look at some of these problems in more detail.&lt;/p&gt;
&lt;h3&gt;Tactical Voting&lt;/h3&gt;
&lt;p&gt;Tactical voting is the practice of voting for a candidate other than the candidate you would ideally like to win; to see why this can be necessary, consider the example above. Say the hypothetical constituency described has a hard core of BNP voters, who make up 21% of the voting population, but has equally shared support for the other four candidates. If the 79% of non-BNP voters all feel that they would rather have &lt;em&gt;any other candidate&lt;/em&gt; than Adolf, but they all vote for their first choice, each non-BNP candidate will receive 19.75% of the vote, and Adolf will win with 21%. This is a bad outcome because what has happened is what the overwhelming majority of the voters &lt;em&gt;least wanted to happen&lt;/em&gt;. &lt;/p&gt;
&lt;p&gt;To achieve a desirable outcome, every non-BNP voter needs to somehow agree on which of the other 4 candidates they will select; consequently the correct vote for each individual depends on how they believe every other individual will vote (and vice-versa). This need to guess others’ votes is what causes the other negatives of FPTP. Firstly, it gives a lot of power to the media and opinion polls, because the media’s representation of how the popular vote will go affects everyone’s tactical voting choices. Secondly, FPTP gives power to the parties, as they can field unpopular candidates against even less popular opponents; every voter in a constituency can be faced with the dilemma of voting for a good representative from a party they dislike or for a non-local poor representative parachuted in by a party whose manifesto they prefer. Because fielding two candidates in the same constituency would split the vote, no party will ever offer voters that choice, and we are stuck with the lesser of two evils.&lt;/p&gt;
&lt;p&gt;Finally it’s worth noting that FPTP regularly elects candidates with minority support in their constituency, and that most people who go to the polls might just as well have stayed in bed! It is in this sense that most votes are wasted.&lt;/p&gt;
&lt;p&gt;All of these problems stem from the fact that FPTP doesn’t recognise that most voters have a &lt;em&gt;ranking&lt;/em&gt; of the candidates, from most favoured to least favoured, instead of just a single favourite. One way to accommodate voters’ true preference is &lt;em&gt;Preference Voting.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;Preference Voting&lt;/h4&gt;
&lt;ul class="box"&gt;&lt;li&gt;Joe Bloggs (Lab)&lt;/li&gt;
&lt;li&gt;Jan Smith (Con) &lt;strong&gt;2&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Phil Jones (Lib) &lt;strong&gt;3&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;Emma Thomas (Plaid) &lt;strong&gt;1&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Adolf Hitler (BNP)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Here I have placed Emma Thomas first, Jan Smith second and Phil Jones third in my ranking. To decide an election we count up everyone’s first choice vote (this part is just like an FPTP election). Now, if any candidate has sufficiently many votes (more than half, for example), they are the winner. If there is no clear winner, the candidate with the fewest votes is eliminated and their votes are re-allocated according to their supporters’ next choice; this process repeats until there is a clear winner.&lt;/p&gt;
&lt;p&gt;Preference voting ensures that any candidate selected is acceptable to a majority of the constituents, given their fellow constituents’ decisions, and takes power from the media and party selection committees by making voting intentions irrelevant (you no longer need to guess how your neighbours will vote to vote effectively; the process effectively tactically votes on your behalf) and allowing multiple candidates from &lt;em&gt;the same party&lt;/em&gt; to stand in one constituency without splitting that party’s vote.&lt;/p&gt;
&lt;p&gt;This superior voting scheme (variously called &lt;a href="http://en.wikipedia.org/wiki/Instant-runoff_voting"&gt;Instant Runoff Voting&lt;/a&gt;, the Alternative Vote and Preference Voting) can only serve to strengthen the constituency link and restore fairness to the system by ensuring that every MP has the broadest possible support of their constituents and making every vote count.&lt;/p&gt;
&lt;h3&gt;Non-Proportional Representation&lt;/h3&gt;
&lt;p&gt;A voting system is proportionally representative if the makeup of the Parliament accurately reflects the number of votes &lt;em&gt;across the country&lt;/em&gt;, so if a party receives 10% of the vote nationally they also have 10% of the seats in Parliament. FPTP is obviously not proportional, since if a party receives 51% of the vote in each constituency they have 100% of the seats nationally. In fact, under FPTP the party with the fewest votes overall can have the most seats, and the party with the most votes the fewest seats! Unfortunately truly proportional representation cannot be had without losing the constituency link, since you can’t have 5% of your local MP be from the Labour party and 10% from the Conservatives, and so on, and there is a real discussion to be had about whether we value localism above proportionality in our system. True proportionality also allows extreme fringe political groups into the Parliament, which some people believe is a bad thing.&lt;/p&gt;
&lt;h4&gt;Single Transferable Vote&lt;/h4&gt;
&lt;p&gt;The &lt;a href="http://en.wikipedia.org/wiki/Single_transferable_vote"&gt;single transferable vote&lt;/a&gt; is one approach which allows a variable trade-off between proportionality and localism, hopefully allowing for a middle ground which captures enough of both laudable features. Under STV each constituency has several MPs, say 2 or 3 (so to keep Parliament the same size some constituencies would need to be merged together), and Preference Voting is used to select them (Preference Voting can choose multiple candidates by reducing the winning post and allocating the second preferences from excess votes for a winning candidate; it’s more complicated but preserves all of the good features already mentioned). In this way the makeup of the parliament is roughly proportional, but each voter is still personally connected with the MPs they have elected. In fact, by changing the number of constituencies &amp; MPs, STV allows us to go from plain Alternative Vote with strong local representation to a fully proportional system where the entire country is a giant constituency and everyone ranks every candidate. Somewhere between these two is a fair, British compromise.&lt;/p&gt;
&lt;h3&gt;Common Canards About Electoral Reform&lt;/h3&gt;
&lt;h4&gt;It Would Break the Constituency Link&lt;/h4&gt;
&lt;p&gt;As we have seen, with STV the constituency link is preserved, and Preference Voting can only serve to strengthen it by ensuring representatives have popular support.&lt;/p&gt;
&lt;h4&gt;It Would Let the BNP Into Parliament&lt;/h4&gt;
&lt;p&gt;With a small number of seats for each constituency, STV allows some proportionality but with a bias away from really small parties. More significantly, I would argue that if a lot of people vote for the BNP they should have some representation, and if their arguments are so weak they should be allowed to fall on their own. Respect for the intelligence of other voters is a cornerstone of the universal franchise of democracy, and it is profoundly undemocratic to say that some people are so wrong their voices should never be heard. If extreme views do not wilt under the light of reason, all we can hope for in the long run is a benevolent dictatorship (perhaps a philosopher king).&lt;/p&gt;
&lt;h4&gt;It Would Lead to Coalition Governments&lt;/h4&gt;
&lt;p&gt;PR systems lead to coalition government if the population vote for coalition government; coalitions have run most European states successfully for the better part of a century, and if the alternative is minority rule we might as well abandon democracy. A coalition should simply ensure that any legislation passed is supported by representatives who between them carry the majority of the popular vote. In fact, I believe that a coalition model would improve the quality of our politics dramatically, by forcing politicians to focus on common ground instead of the childish and divisive demonising of the Other Team. The political discourse in America seems like the likely end-game for adversarial politics, and it is very ugly.&lt;/p&gt;
&lt;h4&gt;It Gives Parties Too Much Power, Through Party Lists&lt;/h4&gt;
&lt;p&gt;Under list-based PR, like Israel uses to elect the Knesset, this is true. Voters choose a party, rather than a candidate, and the party then allocates its seats to candidates as it sees fit. With STV, the power of parties to select candidates is further transferred to the voters, since voters can choose between multiple candidates of the same party. This also allows voters to better communicate their support to the parties; for example you may support Old Labour and dislike New Labour. Your vote can reflect this by ranking an Old Labour type candidate above a New Labour one.&lt;/p&gt;</description><link>http://blog.larkery.com/post/579163121</link><guid>http://blog.larkery.com/post/579163121</guid><pubDate>Fri, 07 May 2010 18:14:00 +0100</pubDate><category>electoral reform</category><category>uk</category><category>single transferable vote</category></item><item><title>Emacs &amp; Dictionary.app</title><description>&lt;p&gt;How to integrate Mac OS X’s Dictionary.app with Emacs&lt;!-- more --&gt;&lt;/p&gt;
&lt;p&gt;You will need: a function to send the word at point to the dictionary&lt;/p&gt;
&lt;pre&gt;(defun mac-open-dictionary (the-word)
    "Open Dictionary.app for the-word"
    (interactive "sDictionary Lookup: ")
    (shell-command (concat "open\"dict:///" (replace-regexp-in-string "\"" "\\\\\"" the-word) "\"")))
&lt;/pre&gt;
&lt;p&gt;And to make it even better integrated, a binding to the normal dictionary keys (⌘-⌤-D) &lt;/p&gt;
&lt;pre&gt;(global-set-key [C-s-268632068] '(lambda () (interactive) (mac-open-dictionary (current-word))))
&lt;/pre&gt;</description><link>http://blog.larkery.com/post/465585528</link><guid>http://blog.larkery.com/post/465585528</guid><pubDate>Mon, 22 Mar 2010 13:04:00 +0000</pubDate><category>emacs</category><category>mac</category><category>dictionary</category></item><item><title>Odds Are, It's Wrong</title><description>&lt;a href="http://www.sciencenews.org/view/feature/id/57091/title/Odds_Are,_Its_Wrong"&gt;Odds Are, It's Wrong&lt;/a&gt;: &lt;p&gt;An interesting article from “Science News” about the pitfalls of ill-informed use of statistical techniques to decide on the significance of observed correlations. The subject is very complex and fraught with difficulties, and the reduction to Frequentists vs. Bayesians at the article’s end seems to misunderstand the issue in a way which is (ironically) similar to the misunderstandings of others highlighted earlier in the piece.&lt;/p&gt;</description><link>http://blog.larkery.com/post/458801398</link><guid>http://blog.larkery.com/post/458801398</guid><pubDate>Fri, 19 Mar 2010 13:24:07 +0000</pubDate><category>statistics</category><category>uncertainty</category><category>inference</category><category>bayesian</category><category>probability</category></item><item><title>Fixes to python.sty</title><description>&lt;p&gt;I use &lt;a href="http://www.imada.sdu.dk/~ehmsen/pythonlatex.php"&gt;python.sty&lt;/a&gt;, which provides a &lt;code&gt;python&lt;/code&gt; environment to TeX whose contents are evaluated when the TeX is compiled. For example the following:&lt;/p&gt;
&lt;pre&gt;\begin{python}
x = 'hello'
print r'\section{', x, '}'
\end{python}
&lt;/pre&gt;
&lt;p&gt;will effectively compile as &lt;code&gt;\section{hello}&lt;/code&gt; in your TeX. I’ve made a small patch to the file which makes the following changes&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Allows the % sign to be used within the python environment (this is just a &lt;code&gt;\catcode&lt;/code&gt; oversight in the original).&lt;/li&gt;
&lt;li&gt;Defines a &lt;code&gt;\setpythoninterpreter&lt;/code&gt; macro which lets you set your python interpreter; for example if you have a script which requires python 2.6 preface it with &lt;code&gt;\setpythoninterpreter{python2.6}&lt;/code&gt;. In fact, you could use this to set any executable on the path, so really watch out; a malicious document could have &lt;code&gt;\setpythoninterpreter{rm -rf /}&lt;/code&gt;!&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Perhaps ideally this should be refactored as &lt;code&gt;script.sty&lt;/code&gt; and provide a primitive like this:&lt;/p&gt;
&lt;pre&gt;\begin{script}[python2.6]
print r'Hello \LaTeX!'
\end{script}
&lt;/pre&gt;
&lt;p&gt;My TeX-fu doesn’t stretch to this, unfortunately. Anyway, the comment fix just requires the line&lt;/p&gt;
&lt;pre&gt;\begingroup \catcode`\^^M=12%&lt;/pre&gt;
&lt;p&gt;to become&lt;/p&gt;
&lt;pre&gt;\begingroup \catcode`\^^M=12 \catcode`\%=12 %&lt;/pre&gt;
&lt;p&gt;To get the second (dangerous) feature, add these two lines after the ProvidesPackage&lt;/p&gt;
&lt;pre&gt;\newcommand{\python@executable}{python}
\newcommand{\setpythoninterpreter}[1]{\renewcommand{\python@executable}{#1}}
&lt;/pre&gt;
&lt;p&gt;And then to change the line&lt;/p&gt;
&lt;pre&gt;\immediate\write18{cat \@pythoninclude\space\jobname.py | python &gt; \jobname.py.out 2&gt; \jobname.py.err}
&lt;/pre&gt;
&lt;p&gt;by replacing python with &lt;code&gt;\python@executable&lt;/code&gt;.&lt;/p&gt;</description><link>http://blog.larkery.com/post/436630525</link><guid>http://blog.larkery.com/post/436630525</guid><pubDate>Tue, 09 Mar 2010 10:41:00 +0000</pubDate><category>python</category><category>TeX</category><category>LaTeX</category><category>bug</category><category>fix</category></item><item><title>Check Out This Maths</title><description>&lt;a href="http://math.ucr.edu/home/baez/roots/"&gt;Check Out This Maths&lt;/a&gt;</description><link>http://blog.larkery.com/post/317918826</link><guid>http://blog.larkery.com/post/317918826</guid><pubDate>Tue, 05 Jan 2010 10:37:01 +0000</pubDate></item><item><title>Rainbow: 

Camera phone is a bit lame</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_kv2cbfLrLs1qzkfyko1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Rainbow:&lt;/b&gt; 

&lt;p&gt;Camera phone is a bit lame&lt;/p&gt;</description><link>http://blog.larkery.com/post/295258717</link><guid>http://blog.larkery.com/post/295258717</guid><pubDate>Tue, 22 Dec 2009 16:54:53 +0000</pubDate></item><item><title>This diagram is an explanatory image related to comments on Lots...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kuqrjc6aS01qzkfyko1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This diagram is an explanatory image related to comments on &lt;a href="http://www.gilestro.tk/2009/lots-of-smoke-hardly-any-gun-do-climatologists-falsify-data/"&gt;Lots of smoke, hardly any gun. Do climatologists falsify data?.&lt;/a&gt; It’s intended to correct a misunderstanding about gg’s analysis which many of the skeptical comments exhibit. gg shows a histogram of the changes in &lt;a href="http://en.wikipedia.org/wiki/Derivative"&gt;derivative&lt;/a&gt; in recorded temperature caused by calibration adjustments in some climate dataset.&lt;/p&gt;
&lt;p&gt;In the diagram each white diamond is a temperature reading, and each yellow diamond is an adjusted temperature reading. The blue line is the un-adjusted trend (no change), and the cyan line the adjusted trend (an increase). The misunderstanding I hope to help with is that gg is creating a histogram of value &lt;i&gt;adjustments&lt;/i&gt; rather than of &lt;i&gt;derivative&lt;/i&gt; adjustments. The red numbers are the adjustment values, and if they were being binned would create the flat histogram labelled &lt;b&gt;WRONG&lt;/b&gt;. The correct approach, which gg takes, is to find the difference in the derivative of each segment of the trend line caused by the adjustment to each of its ends. In the example, the gradient of each blue segment is 0, and of each cyan segment is +1; this gives us the green numbers and corresponding &lt;b&gt;RIGHT&lt;/b&gt; histogram wherein the bias is clearly illustrated.&lt;/p&gt;
&lt;p&gt;The key point which I haven’t shown here is that one cannot create an apparent warming trend without skewing the histogram of changes to the derivative rightward, but this should be apparent with a little consideration.&lt;/p&gt;</description><link>http://blog.larkery.com/post/285985250</link><guid>http://blog.larkery.com/post/285985250</guid><pubDate>Wed, 16 Dec 2009 10:52:00 +0000</pubDate><category>climate change</category></item><item><title>Virgin Media Break the Internet</title><description>&lt;p&gt;A new feature introduced by Virgin Media for their broadband connections is the “&lt;a href="http://www.virginmedia.com/myvirginmedia/advancederror/feedback.php"&gt;Advanced Network Error Search&lt;/a&gt;”. This responds to DNS queries for nonexistent domains with a false result which redirects the browser to a Virgin/Yahoo search page, instead of producing an &lt;a href="http://www.ietf.org/rfc/rfc1034.txt"&gt;RFC&lt;/a&gt;-compliant no-such-domain result.&lt;/p&gt;
&lt;p&gt;Although the intention here is to help the end user [1], the service is opt-out and will no doubt have some unintended consequences. An analogy can be made to giving way to bicycles which have no right of way (another activity which raises my ire). The smooth running of the roads depend on all road users having predictable behaviour which follows the rules. Being extra helpful in a way that is contrary to protocol typically backfires and reduces the overall quality of the service.&lt;/p&gt;
&lt;p&gt;Virgin should be good network users and &lt;i&gt;follow the protocol.&lt;/i&gt; If clients want friendly search they can implement it in their user-agent (c.f. Firefox’s awesomebar), without disregarding the rules and good manners which make the remarkable interoperability of the internet possible.&lt;/p&gt;
&lt;p&gt;[1] &lt;i&gt;And make Virgin Media bags of cash from advertising &lt;/i&gt;&lt;/p&gt;</description><link>http://blog.larkery.com/post/179700550</link><guid>http://blog.larkery.com/post/179700550</guid><pubDate>Fri, 04 Sep 2009 17:09:00 +0100</pubDate><category>virgin</category><category>media</category><category>break</category><category>the</category><category>internet</category><category>losers</category><category>dns</category></item></channel></rss>

