<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>froztbyte.getBlog() &#187; pastebin</title>
	<atom:link href="http://blog.froztbyte.net/tag/pastebin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.froztbyte.net</link>
	<description>returns the contents of froztbyte.blog</description>
	<lastBuildDate>Fri, 03 Apr 2020 21:58:55 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>&#8220;Tip me that output quickly, would you?&#8221;</title>
		<link>http://blog.froztbyte.net/2012/11/tip-me-that-output-quickly-would-you/</link>
		<comments>http://blog.froztbyte.net/2012/11/tip-me-that-output-quickly-would-you/#comments</comments>
		<pubDate>Fri, 02 Nov 2012 11:43:32 +0000</pubDate>
		<dc:creator><![CDATA[froztbyte]]></dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[codetip]]></category>
		<category><![CDATA[hastebin]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[pastebin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[twisted]]></category>

		<guid isPermaLink="false">http://blog.froztbyte.net/?p=331</guid>
		<description><![CDATA[Jonathan recently wrote Codetip, a pastebin based on Twisted.Web with some neat client-side features and integrating server-side JS as well. There&#8217;s a demo one running at http://pb.vuze.la/ Short of the setup doc in the readme, there&#8217;s some further work you &#8230;<p class="read-more"><a href="http://blog.froztbyte.net/2012/11/tip-me-that-output-quickly-would-you/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://jonathan.jsphere.com/">Jonathan</a> recently wrote <a href="https://github.com/jonathanj/Codetip">Codetip</a>, a pastebin based on Twisted.Web with some neat client-side features and integrating server-side JS as well.</p>
<p>There&#8217;s a demo one running at <a href="http://pb.vuze.la/">http://pb.vuze.la/</a></p>
<p>Short of the setup doc in the readme, there&#8217;s some further work you get to do when installing this on something like Debian Squeeze. Here&#8217;s a quick rundown from my shell history:</p>
<pre> 1237  aptitude -t wheezy install python-pip
 1242  aptitude -t wheezy install virtualenvwrapper
 1252  aptitude -t wheezy install python-virtualenv
 1257  aptitude -t wheezy install python-sqlite python-pysqlite2</pre>
<p>All of those mostly because of versioning. Node.js was also installed previously (for Brewer.js), so npm was around as well, at the <em>sid</em> package version level.</p>
<p>It was set up in a separate user account, with a virtualenv to avoid crapping all over the system. For those who don&#8217;t know, a virtualenv is used to make a little jail for python things to get installed into. This way you can have a different local version of something to what&#8217;s installed globally (globally meaning system level). Turns out this makes life a bit more painful:</p>
<p>Drop this into .zshenv (or the appropriate equivalent for your shell):</p>
<pre># virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--system-site-packages'
export VIRTUALENVWRAPPER_LOG_DIR=$WORKON_HOME
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true</pre>
<p>And then run:</p>
<pre>git clone https://github.com/jonathanj/Codetip.git
mkvirtualenv Codetip
activate Codetip
pip install Twisted; pip install Epsilon; pip install Axiom; ln -s =nodejs $(VIRTUAL_ENV)/bin/node
npm install brewer
cd Codetip
./node_modules/brewer/bin/brake install
./node_modules/brewer/bin/brake all
twistd -no-web --notracebacks --class=Codetip.resource.RootResource</pre>
<p>The virtualenvwrapper package provides &#8216;mkvirtualenv&#8217; amongst other things, use `<em>source /etc/bash_completion.d/virtualenvwrapper` </em>to get the hooks. This shellscript also works in zsh.</p>
<p>And that&#8217;s it, a working Codetip instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.froztbyte.net/2012/11/tip-me-that-output-quickly-would-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
