<?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>Ole Bakstad&#039;s blog &#187; Python</title>
	<atom:link href="http://dibon.net/wordpress/category/programming/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://dibon.net/wordpress</link>
	<description>About stuff that happens, when it happens, if it happens.</description>
	<lastBuildDate>Mon, 15 Jun 2009 20:08:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use twitter from the terminal!</title>
		<link>http://dibon.net/wordpress/use-twitter-from-terminal/</link>
		<comments>http://dibon.net/wordpress/use-twitter-from-terminal/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 22:43:12 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=77</guid>
		<description><![CDATA[Today I decided that I&#8217;m going to give twitter another try, but the first thing that struck me was how cumbersome it was to actually post a tweet.
The way I did it:

Open your favourite browser
Go to twitter.com
Log in
Write a tweet

I&#8217;m a Linux user and I love the terminal. Wouldn&#8217;t it be better to write tweets [...]]]></description>
			<content:encoded><![CDATA[<p>Today I decided that I&#8217;m going to give <a href="http://twitter.com">twitter</a> another try, but the first thing that struck me was how cumbersome it was to actually post a tweet.</p>
<p>The way I did it:</p>
<ol>
<li>Open your favourite browser</li>
<li>Go to twitter.com</li>
<li>Log in</li>
<li>Write a tweet</li>
</ol>
<p>I&#8217;m a Linux user and I love the terminal. Wouldn&#8217;t it be better to write tweets from the terminal? &#8211; Yes it would!</p>
<p>I have written a quick and dirty python script that enables you to write tweets from the terminal.</p>
<p>You can download the script <a href="http://dibon.net/tweet" target="_blank">here</a>.</p>
<h5>Install guide for Debian:</h5>
<p><strong>Step 1: Download<br />
</strong></p>
<p><code>$ wget http://dibon.net/tweet<br />
$ chmod +x tweet<br />
$ sudo mv tweet /usr/bin/</code></p>
<p><strong>Step 2: Install curl</strong></p>
<p>The script uses curl to send data to twitter, if you don&#8217;t have curl installed you have to install it:</p>
<p><code>$ sudo aptitude install curl</code></p>
<p><strong>Step 3: Make the config</strong></p>
<p>Make a file called &#8220;.tweet&#8221; in your home directory:</p>
<p><code>$ vim .tweet</code></p>
<p>And insert the following:</p>
<p><code>[login]<br />
username = YOURUSERNAME<br />
password = YOURPASSWORD</code></p>
<p>You may want to edit the permissions for the file</p>
<p><code>$ chmod 0700 .tweet</code></p>
<p>That&#8217;s about it. You may have you reopen your terminal window before you can use the tweet command.</p>
<p><strong>Usage:</strong></p>
<p><code>$ tweet "I'm writing a tweet in terminal!"</code></p>
<p>Unfortunately it is necessary to use single or double quotes before and after the message.</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/use-twitter-from-terminal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Learn Python in 10 minutes</title>
		<link>http://dibon.net/wordpress/learn-python-in-10-minutes/</link>
		<comments>http://dibon.net/wordpress/learn-python-in-10-minutes/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 21:25:11 +0000</pubDate>
		<dc:creator>Ole Bakstad</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[10]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[minutes]]></category>

		<guid isPermaLink="false">http://dibon.net/wordpress/?p=31</guid>
		<description><![CDATA[My friend He Yu provided me with a link where you can learn Python in 10 minutes. A nice introduction to Python assuming that you know general programming.
I&#8217;m looking into Python for two reasons. One; I want to expand my knowledge of programming languages. Two; Next term I&#8217;m taking the course Introduction to Algorithms where [...]]]></description>
			<content:encoded><![CDATA[<p>My friend He Yu provided me with a link where you can <a href="http://www.poromenos.org/tutorials/python" target="_blank">learn Python in 10 minutes</a>. A nice introduction to Python assuming that you know general programming.</p>
<p>I&#8217;m looking into Python for two reasons. One; I want to expand my knowledge of programming languages. Two; Next term I&#8217;m taking the course Introduction to Algorithms where Python is the language we will be using. It&#8217;s always nice to have a head start.</p>
<p><strong>Update</strong>:</p>
<p>It turns out that the professor teaching the course has written <a href="http://hetland.org/writing/">books</a> about Python and also written a short tutorial. <a href="http://hetland.org/writing/instant-python.html">Click here for tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dibon.net/wordpress/learn-python-in-10-minutes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
