<?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>Random Notes</title>
	<atom:link href="http://kodanteckningar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kodanteckningar.wordpress.com</link>
	<description>Reminiscences of a code operator</description>
	<lastBuildDate>Wed, 12 Aug 2009 12:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kodanteckningar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Random Notes</title>
		<link>http://kodanteckningar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kodanteckningar.wordpress.com/osd.xml" title="Random Notes" />
	<atom:link rel='hub' href='http://kodanteckningar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>OpenOffice outline numbering</title>
		<link>http://kodanteckningar.wordpress.com/2009/08/12/open-office-outline-numbering/</link>
		<comments>http://kodanteckningar.wordpress.com/2009/08/12/open-office-outline-numbering/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 12:25:54 +0000</pubDate>
		<dc:creator>kodanteckningar</dc:creator>
				<category><![CDATA[OpenOffice]]></category>

		<guid isPermaLink="false">http://kodanteckningar.wordpress.com/?p=29</guid>
		<description><![CDATA[I&#8217;ve been writing a lot of documentation lately. Every time I wanted to add a table of contents I ran into the same issues and I forgot the procedures every time so this time I put it in print. You turn heading numbering on and off for each heading level in Tools/Outline Numbering. When I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=29&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been writing a lot of documentation lately. Every time I wanted to add a table of contents I ran into the same issues and I forgot the procedures every time so this time I put it in print.</p>
<p>You turn heading numbering on and off for each heading level in <em>Tools/Outline Numbering</em>.</p>
<p>When I inserted a new table of contents the heading numbers got connected with the heading text, i.e., 1Heading. To solve this you add a space in the <em>Separator/After</em> field in <em>Tools/Outline numbering</em> for the headings that are not being generated correctly in the table of contents.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kodanteckningar.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kodanteckningar.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kodanteckningar.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=29&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kodanteckningar.wordpress.com/2009/08/12/open-office-outline-numbering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0511a0c7822cf4f454e34c43bd9d3e32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kodanteckningar</media:title>
		</media:content>
	</item>
		<item>
		<title>Flush local DNS cache in Windows</title>
		<link>http://kodanteckningar.wordpress.com/2009/06/13/flush-dns-local-cache-in-windows/</link>
		<comments>http://kodanteckningar.wordpress.com/2009/06/13/flush-dns-local-cache-in-windows/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:21:20 +0000</pubDate>
		<dc:creator>kodanteckningar</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://kodanteckningar.wordpress.com/?p=25</guid>
		<description><![CDATA[Today I found something that will make my life a lot easier when working in Windows: C:\&#62; ipconfig /flushdns<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=25&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I found something that will make my life a lot easier when working in Windows:</p>
<pre>C:\&gt; ipconfig /flushdns</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kodanteckningar.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kodanteckningar.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kodanteckningar.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=25&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kodanteckningar.wordpress.com/2009/06/13/flush-dns-local-cache-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0511a0c7822cf4f454e34c43bd9d3e32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kodanteckningar</media:title>
		</media:content>
	</item>
		<item>
		<title>Screen orientation in Android</title>
		<link>http://kodanteckningar.wordpress.com/2009/06/09/getting-screen-orientation/</link>
		<comments>http://kodanteckningar.wordpress.com/2009/06/09/getting-screen-orientation/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 05:57:14 +0000</pubDate>
		<dc:creator>kodanteckningar</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://kodanteckningar.wordpress.com/?p=3</guid>
		<description><![CDATA[In my adventures in Android land I needed to display a different background image depending on the screen orientation. Google got me the following solution. In the activity where the background image is to be displayed I ended up doing the following. First, I created two different layouts called main_port.xml and main_land.xml with the definitions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=3&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my adventures in Android land I needed to display a different background image depending on the screen orientation. Google got me the following solution. In the activity where the background image is to be displayed I ended up doing the following. First, I created two different layouts called main_port.xml and main_land.xml with the definitions for the portrait and the landscape layouts. These files are placed in the <em>res/layout</em> folder. Next, I added a method:</p>
<pre>public void setOrientationView(int orientation) {
    if (orientation == Configuration.ORIENTATION_PORTRAIT) {
        setContenttView(R.layout.main_port);
    } else {
        setContentView(R.layout.main_land);
    }
}</pre>
<p>which is called from <strong>onCreate(Bundle)</strong> as:</p>
<pre>setOrientationView(getResources().getConfiguration().orientation);</pre>
<p>and from <strong>onConfigurationChanged(Configuration newConfig)</strong> as:</p>
<pre>setOrientationView(newConfig.orientation);</pre>
<p>In order for <strong>onConfigurationChanged(Configuration)</strong> to be called when sliding the screen open I had to add:</p>
<pre>android:configChanges="orientation|keyboardHidden"</pre>
<p>to the activity tag in <em>AndroidManifest.xml</em> which resulted in the following activity tag:</p>
<pre>&lt;activity android:name=".Main"
          android:label="@string/app_name"
          android:launchMode="singleInstance"
          android:configChanges="orientation|keyboardHidden"&gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN" /&gt;
        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
    &lt;/intent-filter&gt;
&lt;/activity&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kodanteckningar.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kodanteckningar.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kodanteckningar.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kodanteckningar.wordpress.com&amp;blog=6757632&amp;post=3&amp;subd=kodanteckningar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kodanteckningar.wordpress.com/2009/06/09/getting-screen-orientation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0511a0c7822cf4f454e34c43bd9d3e32?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kodanteckningar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
