<?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>JosteinB</title>
	<atom:link href="http://josteinb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://josteinb.com</link>
	<description>The blog with the awesome slogan</description>
	<lastBuildDate>Sun, 17 Jul 2011 18:09:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>npCalc for Android open-sourced</title>
		<link>http://josteinb.com/2011/01/npcalc-for-android-open-sourced/</link>
		<comments>http://josteinb.com/2011/01/npcalc-for-android-open-sourced/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 11:56:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Google Code]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[npCalc]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=161</guid>
		<description><![CDATA[The &#8220;Battle Calculator&#8221; is now GPL, and hosted at Google Code. The app is fairly simple and might be a decent starting point for other apps, or as a tutorial for new developers. If you want to contribute to the npCalc project with either code or graphics, contact me. Related posts:npCalc for Android


Related posts:<ol><li><a href='http://josteinb.com/2010/09/npcalc-for-android/' rel='bookmark' title='npCalc for Android'>npCalc for Android</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Battle Calculator&#8221; is now GPL, and hosted at <a title="npCalc for Android at Google Code" href="http://code.google.com/p/npcalc-for-android/" target="_self">Google Code</a>.</p>
<p>The app is fairly simple and might be a decent starting point for other apps, or as a tutorial for new developers.</p>
<p>If you want to contribute to the npCalc project with either code or graphics, contact me.</p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2010/09/npcalc-for-android/' rel='bookmark' title='npCalc for Android'>npCalc for Android</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2011/01/npcalc-for-android-open-sourced/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>npCalc for Android</title>
		<link>http://josteinb.com/2010/09/npcalc-for-android/</link>
		<comments>http://josteinb.com/2010/09/npcalc-for-android/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 12:23:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[battle calculator]]></category>
		<category><![CDATA[Neptunes pride]]></category>
		<category><![CDATA[npCalc]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=148</guid>
		<description><![CDATA[npCalc, the &#8220;battle calculator&#8221; for Neptune&#8217;s Pride has now been implemented as an Android app and published on the market. It features all the functionality the web-based npCalc offers, is free, and contains no ads. You can install it directly with Barcode Scanner here; Through AppBrain here: http://www.appbrain.com/app/com.josteinb.npcalc Or by searching for npCalc in the [...]


Related posts:<ol><li><a href='http://josteinb.com/2011/01/npcalc-for-android-open-sourced/' rel='bookmark' title='npCalc for Android open-sourced'>npCalc for Android open-sourced</a></li>
<li><a href='http://josteinb.com/2009/08/ungdomskulen-at-hulen/' rel='bookmark' title='Ungdomskulen at Hulen'>Ungdomskulen at Hulen</a></li>
<li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator v0.3'>Neptune&#8217;s Pride Battle Calculator v0.3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a title="npCalc" href="http://josteinb.com/npCalc" target="_self">npCalc</a>, the &#8220;battle calculator&#8221; for <a title="Neptune's Pride" href="http://np.ironhelmet.com" target="_self">Neptune&#8217;s Pride</a> has now been implemented as an Android app and published on the market.</p>
<p>It features all the functionality the web-based npCalc offers, is free, and contains no ads.</p>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 202px"><a href="http://josteinb.com/wp-content/uploads/2010/09/npcalc_screenshot1.png"><img class="size-full wp-image-149 " title="npcalc_screenshot1" src="http://josteinb.com/wp-content/uploads/2010/09/npcalc_screenshot1.png" alt="npCalc screenshot, single battle" width="192" height="288" /></a><p class="wp-caption-text">npCalc single battle example</p></div>
<div id="attachment_150" class="wp-caption aligncenter" style="width: 202px"><a href="http://josteinb.com/wp-content/uploads/2010/09/npcalc_screenshot2.png"><img class="size-full wp-image-150 " title="npcalc_screenshot2" src="http://josteinb.com/wp-content/uploads/2010/09/npcalc_screenshot2.png" alt="npCalc screenshot, battle results" width="192" height="288" /></a><p class="wp-caption-text">npCalc battle results</p></div>
<p>You can install it directly with Barcode Scanner here;</p>
<p><a href="http://josteinb.com/wp-content/uploads/2010/09/qrcode_npcalc.png"><img class="alignnone size-full wp-image-151" title="qrcode_npcalc" src="http://josteinb.com/wp-content/uploads/2010/09/qrcode_npcalc.png" alt="qrCode for npCalc" width="126" height="126" /></a></p>
<p>Through AppBrain here: <a href="http://www.appbrain.com/app/com.josteinb.npcalc">http://www.appbrain.com/app/com.josteinb.npcalc</a></p>
<p>Or by searching for npCalc in the Android Market on your phone.</p>
<p>As always, feedback is much appreciated</p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2011/01/npcalc-for-android-open-sourced/' rel='bookmark' title='npCalc for Android open-sourced'>npCalc for Android open-sourced</a></li>
<li><a href='http://josteinb.com/2009/08/ungdomskulen-at-hulen/' rel='bookmark' title='Ungdomskulen at Hulen'>Ungdomskulen at Hulen</a></li>
<li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator v0.3'>Neptune&#8217;s Pride Battle Calculator v0.3</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2010/09/npcalc-for-android/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Neptune&#8217;s Pride Battle Calculator v0.3</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/</link>
		<comments>http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 17:09:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[battle calculator]]></category>
		<category><![CDATA[Neptunes pride]]></category>
		<category><![CDATA[npCalc]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=137</guid>
		<description><![CDATA[I&#8217;ve upgraded the calculator a little, tinkered a bit with the design with a new header and some minor tweaks for better appearance, and managed to get the javascript to run in IE as well, thanks to a little help from saiboten. What went wrong was as simple as using type=&#8221;text/javascript&#8221; for javascripts in stead [...]


Related posts:<ol><li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator'>Neptune&#8217;s Pride Battle Calculator</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded the calculator a little, tinkered a bit with the design with a new header and some minor tweaks for better appearance, and managed to get the javascript to run in IE as well, thanks to a little help from <a title="saiboten" href="http://saiboten.com/blog" target="_self">saiboten</a>.</p>
<p>What went wrong was as simple as using type=&#8221;text/javascript&#8221; for javascripts in stead of type=&#8221;application/javascript&#8221;. gah.</p>
<p>As allways, feedback is appreciated!</p>
<p>the new version is located <a title="npCalc v0.3" href="http://josteinb.com/npCalc" target="_self">here</a>.</p>
<p>The old versions can still be found here if anything stops working for you:</p>
<p><a title="npCalc v0.1" href="http://josteinb.com/npCalc/v01" target="_self">version 0.1</a></p>
<p><a title="npCalc v0.2" href="http://josteinb.com/npCalc/v02" target="_self">version 0.2</a></p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator'>Neptune&#8217;s Pride Battle Calculator</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Neptune&#8217;s Pride Battle Calculator</title>
		<link>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/</link>
		<comments>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 14:18:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[battle calculator]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Neptunes pride]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=129</guid>
		<description><![CDATA[I got introduced to Neptune&#8217;s Pride a little while ago by a friend&#8230; It is a simple 4X game, with small games for 8 players in each in the free ones. The game uses some simple math to calculate the outcome of battles, and since I am lazy I got tired of doing that math [...]


Related posts:<ol><li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator v0.3'>Neptune&#8217;s Pride Battle Calculator v0.3</a></li>
<li><a href='http://josteinb.com/2010/09/npcalc-for-android/' rel='bookmark' title='npCalc for Android'>npCalc for Android</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I got introduced to <a href="http://np.ironhelmet.com" target="_blank">Neptune&#8217;s Pride</a> a little while ago by a friend&#8230; It is a simple 4X game, with small games for 8 players in each in the free ones.</p>
<p>The game uses some simple math to calculate the outcome of battles, and since I am lazy I got tired of doing that math and started working on a battle calculator.</p>
<p>This is my first attempt on php, and it is a work in progress&#8230; so feedback is appreciated.</p>
<p>Try it out here: <a title="Neptunes Pride Battle Calculator" href="http://josteinb.com/npCalc" target="_self">Neptune&#8217;s Pride Battle Calculator</a></p>
<p>UPDATE:</p>
<p>I have ditched php, and gone for javascript in v0.2 of the calculator&#8230; Now the workflow is more streamlined since you don&#8217;t have to go between different pages to get to results.  Seems to be some css-problems though. And javascript issues with IE. Working on it.</p>
<p>&#8230;And apparently IE doesn&#8217;t care about height / min-height unless you add an !important to it.</p>
<p>the old version can still be found <a title="np battle calculator v0.1" href="http://josteinb.com/npCalc/v01" target="_blank">here</a></p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2010/03/neptunes-pride-battle-calculator-v0-3/' rel='bookmark' title='Neptune&#8217;s Pride Battle Calculator v0.3'>Neptune&#8217;s Pride Battle Calculator v0.3</a></li>
<li><a href='http://josteinb.com/2010/09/npcalc-for-android/' rel='bookmark' title='npCalc for Android'>npCalc for Android</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2010/03/neptunes-pride-battle-calculator/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Safari 4 Top Sites messes with your Google Analytics</title>
		<link>http://josteinb.com/2010/02/safari-4-top-sites-messes-with-your-google-analytics/</link>
		<comments>http://josteinb.com/2010/02/safari-4-top-sites-messes-with-your-google-analytics/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 18:04:22 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Safari 4]]></category>
		<category><![CDATA[Top Sites]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=124</guid>
		<description><![CDATA[I noticed some strange results in my google analytics account recently, getting a very high bounce rate from visits, and since this is a very small blog about very geeky stuff, a fairly high increase in traffic. After some tweaking around in analytics it turned out that most of the new bouncing traffic came from [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I noticed some strange results in my google analytics account recently, getting a very high bounce rate from visits, and since this is a very small blog about very geeky stuff, a fairly high increase in traffic.</p>
<p>After some tweaking around in analytics it turned out that most of the new bouncing traffic came from Safari, from a machine with the same screen resolution as mine, from my city, my broad band provider and so on.</p>
<p>It turns out that this is because my blog had appeared on Safaris &#8220;Top Sites&#8221;, a grid of often visited web pages on the welcome screen of Safari. And every time you open safari, it contacts the webpage for an updated snapshot of the page.  This is recorded by analytics and regarded as a bounce visit, decreasing your average time on site and increasing your bounce rate.</p>
<p>So far, it doesn&#8217;t seem like there is any other solution to this except removing the site from &#8220;Top Sites&#8221;, until Google or Apple figure something out.  This of course does not solve the, for me not yet existing, problem of bogus traffic from other Safari users.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2010/02/safari-4-top-sites-messes-with-your-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making international characters searchable in LaTeX documents</title>
		<link>http://josteinb.com/2010/01/making-international-characters-searchable-in-latex-documents/</link>
		<comments>http://josteinb.com/2010/01/making-international-characters-searchable-in-latex-documents/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 12:01:58 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[font encoding]]></category>
		<category><![CDATA[international characters]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=119</guid>
		<description><![CDATA[By default LaTeX generates some international characters in a weird way when building a PDF and so on. For example, the norwegian Å will be represented as ˚A, and thus making any word containing the letter impossible to find when searching for it. This can be solved by using the package fontenc, with the parameter T1 [...]


Related posts:<ol><li><a href='http://josteinb.com/2009/12/citing-displaying-source-code-in-latex/' rel='bookmark' title='Citing / displaying source code in LaTeX'>Citing / displaying source code in LaTeX</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default LaTeX generates some international characters in a weird way when building a PDF and so on. For example, the norwegian Å will be represented as ˚A, and thus making any word containing the letter impossible to find when searching for it. This can be solved by using the package fontenc, with the parameter T1 like this:</p>
<p>\usepackage[T1]{fontenc}</p>
<p>Now everything (at least for norwegian documents) should be working as expected.</p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2009/12/citing-displaying-source-code-in-latex/' rel='bookmark' title='Citing / displaying source code in LaTeX'>Citing / displaying source code in LaTeX</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2010/01/making-international-characters-searchable-in-latex-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Too Geeky&#8230;.</title>
		<link>http://josteinb.com/2009/12/too-geeky/</link>
		<comments>http://josteinb.com/2009/12/too-geeky/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 16:27:16 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[soap]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=114</guid>
		<description><![CDATA[Found on a bathroom door at &#8220;Høyteknologisenteret i Bergen&#8221;&#8230; word on the street has it Saiboten may in fact be geeky enough to have accomplished this feat No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Found on a bathroom door at &#8220;Høyteknologisenteret i Bergen&#8221;&#8230;</p>
<p><img class="alignnone size-medium wp-image-115" title="doer_soap" src="http://josteinb.com/wp-content/uploads/2009/12/doer_soap-500x375.jpg" alt="doer_soap" width="500" height="375" /></p>
<p><img class="alignnone size-medium wp-image-116" title="post_it_soap" src="http://josteinb.com/wp-content/uploads/2009/12/post_it_soap-500x375.jpg" alt="post_it_soap" width="500" height="375" /></p>
<p>word on the street has it <a title="saiboten" href="http://saiboten.com">Saiboten</a> may in fact be geeky enough to have accomplished this feat</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2009/12/too-geeky/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful BASH-command: !!</title>
		<link>http://josteinb.com/2009/12/useful-bash-command/</link>
		<comments>http://josteinb.com/2009/12/useful-bash-command/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:26:28 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=112</guid>
		<description><![CDATA[When ever you use the terminal in Linux or OS X, and forget to add sudo in front of a command that needs the privileges, you can simply type sudo !! to run the same command with sudo. awesome. &#8220;!!&#8221; Will repeat the last issued command, and can probably be used for other useful things, [...]


Related posts:<ol><li><a href='http://josteinb.com/2009/10/spoofing-your-mac-address-in-snow-leopard/' rel='bookmark' title='Spoofing your MAC-address in Snow Leopard'>Spoofing your MAC-address in Snow Leopard</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When ever you use the terminal in Linux or OS X, and forget to add sudo in front of a command that needs the privileges, you can simply type sudo !! to run the same command with sudo. awesome. &#8220;!!&#8221; Will repeat the last issued command, and can probably be used for other useful things, too.</p>
<p>Thanks, Peder 2.</p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2009/10/spoofing-your-mac-address-in-snow-leopard/' rel='bookmark' title='Spoofing your MAC-address in Snow Leopard'>Spoofing your MAC-address in Snow Leopard</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2009/12/useful-bash-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Citing / displaying source code in LaTeX</title>
		<link>http://josteinb.com/2009/12/citing-displaying-source-code-in-latex/</link>
		<comments>http://josteinb.com/2009/12/citing-displaying-source-code-in-latex/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 12:24:58 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[listing]]></category>
		<category><![CDATA[lstlisting]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=96</guid>
		<description><![CDATA[I am writing my master thesis using LaTeX, a typesetting system most commonly used for scientific documents.  Since my thesis is in computer science, I have the need to display a fair amount of code.  After searching around the net and with some trial and error, I have come up with some settings that does [...]


Related posts:<ol><li><a href='http://josteinb.com/2010/01/making-international-characters-searchable-in-latex-documents/' rel='bookmark' title='Making international characters searchable in LaTeX documents'>Making international characters searchable in LaTeX documents</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am writing my master thesis using <a title="latex project" href="http://www.latex-project.org/" target="_self">LaTeX</a>, a typesetting system most commonly used for scientific documents.  Since my thesis is in computer science, I have the need to display a fair amount of code.  After searching around the net and with some trial and error, I have come up with some settings that does this in a nice way.</p>
<p>It is based on the listings package, we define a lstset that handles the code.  This in combination with a nice caption makes for a nice presentation of source code.</p>
<p>Here is the final result:</p>
<div id="attachment_97" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-97 " title="latex_screenshot" src="http://josteinb.com/wp-content/uploads/2009/12/latex_screenshot1.png" alt="LaTeX Source Code Screenshot" width="450" height="169" /><p class="wp-caption-text">LaTeX Source Code Screenshot</p></div>
<p>&#8220;Read more&#8221; for the rest of the article</p>
<p><span id="more-96"></span></p>
<p>The packages needed are:</p>
<ul>
<li>\usepackage{listings}</li>
<li>\usepackage{cite}</li>
<li>\usepackage{caption}</li>
<li>\usepackage{upquote}</li>
<li>\usepackage{xcolor}</li>
<li>\usepackage{xcolor}</li>
</ul>
<p>We now define the caption as:</p>
<p>\DeclareCaptionFont{white}{\color{white}}<br />
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}<br />
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}</p>
<p>This makes a gray box for the caption, with white text.</p>
<p>Now define the lstset with the following:</p>
<p>\lstset{<br />
language=Java,<br />
keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1},<br />
identifierstyle=\ttfamily,<br />
commentstyle=\color[rgb]{0.133,0.545,0.133},<br />
stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941},<br />
showstringspaces=false,<br />
basicstyle=\small,<br />
numberstyle=\footnotesize,<br />
numbers=left,<br />
stepnumber=1,<br />
numbersep=10pt,<br />
tabsize=2,<br />
breaklines=true,<br />
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},<br />
breakatwhitespace=false,<br />
aboveskip={1.5\baselineskip},<br />
columns=fixed,<br />
upquote=true,<br />
extendedchars=true,<br />
frame=bottomline,<br />
inputencoding=utf8<br />
}</p>
<p>The language must obviously be changed to the language  you are using, to provide the correct syntax coloring.</p>
<p>the numbers parameter chooses whether to show line numbers or not, the prebreak parameter adds an arrow to indicate that the line is broken.  The upquote parameter ensures that no fancu &#8220;&#8216;s are used, so that you can copy the code and still be able to run it.  The other parameters should be self-explanatory, and can be modified as you see fit.</p>
<p>To use this in your document, you can insert code directly with:</p>
<p>\begin{lstlisting}[label=some-samplecode, caption=Example for code straight from the .tex file]</p>
<p>&lt;insert code here&gt;</p>
<p>\end{lstlisting}</p>
<p>or you can insert code from an external file using:</p>
<p>\lstinputlisting[label=samplecode,caption=Example for code from a file]{sourceCode/K53.java}</p>
<p>all of these can now be referenced from other places in the document with the \ref{labelname} command, and will show up in your overview of listings.</p>


<p>Related posts:<ol><li><a href='http://josteinb.com/2010/01/making-international-characters-searchable-in-latex-documents/' rel='bookmark' title='Making international characters searchable in LaTeX documents'>Making international characters searchable in LaTeX documents</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2009/12/citing-displaying-source-code-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hiding the Tab-bar in Thunderbird 3</title>
		<link>http://josteinb.com/2009/12/hiding-the-tab-bar-in-thunderbird-3/</link>
		<comments>http://josteinb.com/2009/12/hiding-the-tab-bar-in-thunderbird-3/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 11:52:40 +0000</pubDate>
		<dc:creator>Jostein</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://josteinb.com/?p=94</guid>
		<description><![CDATA[In the new Thunderbird 3, Mozilla included tabbed browsing.  Since you usually don&#8217;t have tabs open all the time, it would be nice to be able to hide the tab-bar when no tabs are open.  There is a hidden option to accomplish this.  Thanks to Truben for pointing this out! Read his article at http://truben.no/journal/auto-hide-tab-bar-in-mozilla-thunderbird-3/ [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>In the new Thunderbird 3, Mozilla included tabbed browsing.  Since you usually don&#8217;t have tabs open all the time, it would be nice to be able to hide the tab-bar when no tabs are open.  There is a hidden option to accomplish this.  Thanks to <a title="truben" href="http://truben.no/journal" target="_self">Truben</a> for pointing this out!</p>
<p>Read his article at <a href="http://truben.no/journal/auto-hide-tab-bar-in-mozilla-thunderbird-3/" target="_self">http://truben.no/journal/auto-hide-tab-bar-in-mozilla-thunderbird-3/ </a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://josteinb.com/2009/12/hiding-the-tab-bar-in-thunderbird-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

