<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Aslak Johansen and Jan Chu @ DIKU</title>
	<atom:link href="http://janslak.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://janslak.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 22 May 2011 15:36:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='janslak.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Aslak Johansen and Jan Chu @ DIKU</title>
		<link>http://janslak.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://janslak.wordpress.com/osd.xml" title="Aslak Johansen and Jan Chu @ DIKU" />
	<atom:link rel='hub' href='http://janslak.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The TTY demystified</title>
		<link>http://janslak.wordpress.com/2009/04/22/the-tty-demystified/</link>
		<comments>http://janslak.wordpress.com/2009/04/22/the-tty-demystified/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:54:59 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[signals]]></category>
		<category><![CDATA[TTY]]></category>
		<category><![CDATA[UART]]></category>
		<category><![CDATA[VT-100]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=32</guid>
		<description><![CDATA[I came across this link.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=32&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came across this <a href="http://www.linusakesson.net/programming/tty/index.php">link</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=32&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2009/04/22/the-tty-demystified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Daemonizing a process</title>
		<link>http://janslak.wordpress.com/2009/04/07/daemonizing-a-process/</link>
		<comments>http://janslak.wordpress.com/2009/04/07/daemonizing-a-process/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 09:24:21 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[daemonize]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=28</guid>
		<description><![CDATA[This link explains how to create a daemon process in C within a unix environment.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=28&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://www.enderunix.org/documents/eng/daemon.php">link</a> explains how to create a daemon process in C within a unix environment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=28&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2009/04/07/daemonizing-a-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with remote GIT branches</title>
		<link>http://janslak.wordpress.com/2009/03/28/working-with-remote-git-branches/</link>
		<comments>http://janslak.wordpress.com/2009/03/28/working-with-remote-git-branches/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 02:27:40 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[remote branch]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=19</guid>
		<description><![CDATA[This page describes how to use remote branches in git, when setup in a manner similar to subversion. Creating a branch First we create an ordinary branch, called experimental-branch: git branch experimental-branch Then we push it to the server: git push origin experimental-branch Listing branches List all branches: git branch -a The one with the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=19&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This page describes how to use remote branches in <a href="http://git-scm.com">git</a>, when setup in a manner similar to <a href="http://subversion.tigris.org">subversion</a>.</p>
<p><strong>Creating a branch</strong></p>
<p>First we create an ordinary branch, called <em>experimental-branch</em>:<br />
<tt><br />
git branch experimental-branch<br />
</tt><br />
Then we push it to the server:<br />
<tt><br />
git push origin experimental-branch<br />
</tt></p>
<p><strong>Listing branches</strong></p>
<p>List all branches:<br />
<tt><br />
git branch -a<br />
</tt><br />
The one with the asterisk is the current branch.</p>
<p><strong>Create a local branch to track a remote one</strong></p>
<p>I don&#8217;t remember what the <tt>-b</tt> is for:<br />
<tt><br />
git checkout --track -b experimental-branch origin/experimental-branch<br />
</tt><br />
That is two dashes before <tt>track</tt> instead of a long one. WordPress don&#8217;t seem to handle this very well &#8230;</p>
<p><u>Note:</u> If you get errors along the line of<br />
<tt><br />
fatal: git checkout: updating paths is incompatible with switching branches/forcing<br />
Did you intend to checkout 'origin/experimental-branch' which can not be resolved as commit?<br />
</tt><br />
, then you might want to run:<br />
<tt><br />
git fetch<br />
</tt></p>
<p><strong>Switching to a branch</strong></p>
<p>Simply check it out:<br />
<tt><br />
git checkout experimental-branch<br />
</tt></p>
<p><strong>Comitting within a branch</strong></p>
<p>You are always in some branch. It does not matter if it is named <em>master</em> or something else.</p>
<p><strong>Pushing to a remote branch from a tracking branch</strong></p>
<p>If the current branch is tracking some remote branch, it is as simple as:<br />
<tt><br />
git push<br />
</tt></p>
<p><strong>Merging back a branch</strong></p>
<p>Merging from some branch is done by:<br />
<tt><br />
git merge experimental-branch<br />
</tt></p>
<p><strong>Other sources</strong></p>
<ul>
<li><a href="http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/">http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/</a></li>
<li><a href="http://blogs.gnome.org/shaunm/2007/09/17/git-for-gnome/">http://blogs.gnome.org/shaunm/2007/09/17/git-for-gnome/</a></li>
<li><a href="http://book.git-scm.com/3_basic_branching_and_merging.html">Git Book &#8211; Basic Branching and Merging</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=19&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2009/03/28/working-with-remote-git-branches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>GitCasts</title>
		<link>http://janslak.wordpress.com/2008/06/01/gitcasts/</link>
		<comments>http://janslak.wordpress.com/2008/06/01/gitcasts/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 12:34:08 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=18</guid>
		<description><![CDATA[Someone has put up a site providing video demonstrations of various uses of GIT. Looking at the dates it becomes clear that, at least at the moment, a lot of material is being produced. I will definitely look into this one.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=18&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Someone has put up a <a href="http://www.gitcasts.com">site</a> providing video demonstrations of various uses of GIT. Looking at the dates it becomes clear that, at least at the moment, a lot of material is being produced. I will definitely look into this one.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=18&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2008/06/01/gitcasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>GIT repository hosting</title>
		<link>http://janslak.wordpress.com/2008/06/01/git-repository-hosting/</link>
		<comments>http://janslak.wordpress.com/2008/06/01/git-repository-hosting/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 12:26:34 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=17</guid>
		<description><![CDATA[These people are providing commercial GIT repository hosting (with a limited free option). Among the features is a web-based interface. It does seem a little feature-ridden, but might be worth a try &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=17&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com">These</a> people are providing commercial GIT repository hosting (with a limited free option). Among the features is a web-based interface. It does seem a little feature-ridden, but might be worth a try &#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=17&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2008/06/01/git-repository-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming and large integers</title>
		<link>http://janslak.wordpress.com/2008/03/02/programming-and-large-integers/</link>
		<comments>http://janslak.wordpress.com/2008/03/02/programming-and-large-integers/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 18:56:44 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[cryptography]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/?p=16</guid>
		<description><![CDATA[We are following DIKU&#8216;s course on Cryptography. In exercises we need to deal with large integers (&#62; 264). Since 264 = 18446744073709551616, I decided to implement some calculations on some larger value (i = 10000000000000000000001): subtraction, division, modulo. Below are implementations in a few languages. Each implementation lists instructions for compiling and running. Java using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=16&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We are following <a href="http://www.diku.dk">DIKU</a>&#8216;s course on <a href="http://diku.dk/undervisning/2007-2008/2007-2008_b3_krypt/">Cryptography</a>.  In exercises we need to deal with large integers (&gt; 2<sup>64</sup>).</p>
<p>Since 2<sup>64</sup> = 18446744073709551616, I decided to implement some calculations on some larger value (i = 10000000000000000000001): subtraction, division,  modulo. Below are implementations in a few languages. Each implementation lists instructions for compiling and running.</p>
<ul>
<li><b>Java</b> using the <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html">BigInteger</a> class [<a href="http://www.asjo.dk/wastebook/diku/crypto/biginttest.java">code</a>]</li>
<li><b>C</b> using the <a href="http://gmplib.org">GMP</a> library [<a href="http://www.asjo.dk/wastebook/diku/crypto/biginttest.c">code</a>]</li>
<li><b>Python</b> using buildin <a href="http://docs.python.org/lib/typesnumeric.html">long</a> type [<a href="http://www.asjo.dk/wastebook/diku/crypto/biginttest.py">code</a>]</li>
<li><b>C#</b> No support in standard .NET namespace. Both <a href="http://www.mono-project.com">Mono</a> and <a href="http://msdn2.microsoft.com/en-us/vjsharp/">J#</a> are supposed to provide suitable classes.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=16&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2008/03/02/programming-and-large-integers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with remote branches</title>
		<link>http://janslak.wordpress.com/2007/12/08/working-with-remote-branches/</link>
		<comments>http://janslak.wordpress.com/2007/12/08/working-with-remote-branches/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 00:05:42 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[DB benchmark framework]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/2007/12/08/working-with-remote-branches/</guid>
		<description><![CDATA[Note: Better description here. Our current project is held in a git repository. It is set up for anonymous (cvs/subversion style) push/pull operation using an ssh keypair so that we don&#8217;t need to enter password. Recently we have been experimenting with branches. Two main branches exists: origin (which represent the serverside copy) and master (which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=15&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Note:</strong> Better description <a href="http://janslak.wordpress.com/2009/03/28/working-with-remote-git-branches/">here</a>.</p>
<p>Our current project is held in a <a href="http://git.or.cz">git</a> repository. It is set up for anonymous (<a href="http://www.nongnu.org/cvs/">cvs</a>/<a href="http://subversion.tigris.org">subversion</a> style) push/pull operation using an ssh keypair so that we don&#8217;t need to enter password.</p>
<p>Recently we have been experimenting with branches. Two main branches exists: <strong>origin</strong> (which represent the serverside copy) and <strong>master</strong> (which represents the clientside copy). In git, ordinary branches exists only on the clientside and are <span style="text-decoration:underline;">not</span> transferred when pushing. The solution is to use <em>remote branches</em>. A few commands for listing available branches:</p>
<p><tt>(A) git branch</tt><br />
<tt>(B) git branch -r</tt><br />
<tt>(C) git branch -a</tt></p>
<p>They list local branches <tt>(A)</tt>, remote branches <tt>(B)</tt> and <em>both</em> local and remote branches <tt>(C)</tt>. An asterisk is used to mark the current branch.</p>
<p>One does not work directly on a remote branch. Instead you create a corresponing local branch which <em>tracks</em> the remote branch. The syntax is</p>
<p><tt>git checkout --track -b <strong>LOCAL_BRANCH_NAME</strong> origin/<strong>REMOTE_BRANCH_NAME</strong></tt></p>
<p>where <tt><strong>LOCAL_BRANCH_NAME</strong></tt> is the name of the local tracking branch and <tt><strong>REMOTE_BRANCH_NAME</strong></tt> is the name of the the remote branch.</p>
<p>Pulling works as expected, but pushing to a remote branch is a bit more complicated than one might expect. The syntax is</p>
<p><tt>git push origin <strong>LOCAL_BRANCH_NAME</strong>:<strong>REMOTE_BRANCH_NAME</strong></tt></p>
<p>I&#8217;m sure there exists some fancy way to store this information so that a &#8216;<tt>git push</tt>&#8216; would do as expected, but at the moment we will cope.</p>
<p>Full description at <a href="http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/">this page</a>.</p>
<p>Man pages of interest:<br />
<tt><a href="http://www.kernel.org/pub/software/scm/git/docs/git-branch.html">git branch</a></tt><br />
<tt><a href="http://www.kernel.org/pub/software/scm/git/docs/git-push.html">git push</a></tt><br />
<tt><a href="http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html">git checkout</a></tt></p>
<p>References:<br />
<a href="http://git.or.cz/course/svn.html">Checking out a remote branch</a><br />
<a href="http://www.kernel.org/pub/software/scm/git/docs/git-push.html">Pushing to a remote branch (see examples)</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=15&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2007/12/08/working-with-remote-branches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Some java versions causing strange errors</title>
		<link>http://janslak.wordpress.com/2007/12/03/some-java-versions-causing-strange-errors/</link>
		<comments>http://janslak.wordpress.com/2007/12/03/some-java-versions-causing-strange-errors/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 20:42:12 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/2007/12/03/some-java-versions-causing-strange-errors/</guid>
		<description><![CDATA[We recently came across the following error message resulting from an ant-call: /home/user/dabf/test/tuning/Indexes/Scan.xml:23: java.sql.SQLException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null Here, Scan.xml is the ant-file, which contains no java code at all. The line number gives no indication of the nature of the problem. After googling for a while we found this. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=14&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We recently came across the following error message resulting from an <a href="http://ant.apache.org">ant</a>-call:</p>
<p><tt>/home/user/dabf/test/tuning/Indexes/Scan.xml:23: java.sql.SQLException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null</tt></p>
<p>Here, <tt>Scan.xml</tt> is the ant-file, which contains no java code at all. The line number gives no indication of the nature of the problem. After googling for a while we found <a href="http://forums.mysql.com/read.php?39,142452,142452#msg-142452">this</a>. The behaviour is being called <em>very indeterministic</em> and is caused by certain versions of java. We installed Sun Java 6 and everything worked out just fine. So much for portable code &#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=14&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2007/12/03/some-java-versions-causing-strange-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
		<item>
		<title>Accessing Absalon with Epiphany</title>
		<link>http://janslak.wordpress.com/2007/11/20/accessing-absalon-with-epiphany/</link>
		<comments>http://janslak.wordpress.com/2007/11/20/accessing-absalon-with-epiphany/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 18:04:58 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/2007/11/20/accessing-absalon-with-epiphany/</guid>
		<description><![CDATA[For some obscure reason the university of copenhagen is trying to push Absalon as their &#8216;Virtual Learning Environment&#8217; under the slogan &#8216;it&#8217;s learning 3.1&#8242;. The portal is available here. The site makes use of off-site cookies and will not log you in unless you accept them. Guides for various browsers are available, but Epiphany was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=11&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some obscure reason the <a href="http://www.ku.dk">university of copenhagen</a> is trying to push Absalon as their <em>&#8216;Virtual Learning Environment&#8217;</em> under the slogan <em>&#8216;it&#8217;s learning 3.1&#8242;</em>. The portal is available <a href="https://absalon.ku.dk/">here</a>.</p>
<p>The site makes use of off-site cookies and will not log you in unless you accept them. Guides for various browsers are available, but <a href="http://www.gnome.org/projects/epiphany/">Epiphany</a> was left out. In order to setup this browser to accept the cookies offered by Absalon, open the preferences dialog (Edit -&gt; Preferences), go to the &#8216;Privacy&#8217; tab and set &#8216;Cookies&#8217; to &#8216;Always accept&#8217;. Be aware that this is generally considered a bad idea.</p>
<p><a href="http://janslak.files.wordpress.com/2007/11/preferences.png" title="Preferences dialog for Epiphany browser. Correct cookie setting for Absalon displayed"><img src="http://janslak.files.wordpress.com/2007/11/preferences.png?w=450" alt="Preferences dialog for Epiphany browser. Correct cookie setting for Absalon displayed" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=11&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2007/11/20/accessing-absalon-with-epiphany/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>

		<media:content url="http://janslak.files.wordpress.com/2007/11/preferences.png" medium="image">
			<media:title type="html">Preferences dialog for Epiphany browser. Correct cookie setting for Absalon displayed</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress and source code inclusion</title>
		<link>http://janslak.wordpress.com/2007/11/07/wordpress-and-source-code-inclusion/</link>
		<comments>http://janslak.wordpress.com/2007/11/07/wordpress-and-source-code-inclusion/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 22:56:52 +0000</pubDate>
		<dc:creator>aslakjohansen</dc:creator>
				<category><![CDATA[DB benchmark framework]]></category>

		<guid isPermaLink="false">http://janslak.wordpress.com/2007/11/07/wordpress-and-source-code-inclusion/</guid>
		<description><![CDATA[Unless you know how to bend this trick, wordpress will do a very decent job at messing up everything resembling source code. This is especially true if the language you are using depends heavely on indentation. Python springs to mind. The trick is &#8211; in the &#8216;Visual&#8217; editing mode &#8211; to encapsulate the code in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=10&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Unless you know how to bend <a href="http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/">this</a> trick, wordpress will do a very decent job at messing up everything resembling source code. This is especially true if the language you are using depends heavely on indentation. <a href="http://www.python.org">Python</a> springs to mind.</p>
<p>The trick is &#8211; in the &#8216;Visual&#8217; editing mode &#8211; to encapsulate the code in these tags<br />
<tt><br />
…<br />
</tt></p>
<p>While entering these tags, the visual editor should report &#8216;<em>Path: p</em>&#8216;. The value of the language attribute should &#8211; of course &#8211; be chosen to match the style of the code being included. The first link on this page lists the supported languages.</p>
<p>Leading spaces seems to be removed in the visual editor, but not in the code editor. So one has to do some flip-flopping &#8230; be carefull though, the interface is very eager to forget about these spaces.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/janslak.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/janslak.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janslak.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janslak.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janslak.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=janslak.wordpress.com&amp;blog=1711457&amp;post=10&amp;subd=janslak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://janslak.wordpress.com/2007/11/07/wordpress-and-source-code-inclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8dd839b898ec405feef64bc439ecbce4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aslakjohansen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
