<?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>Khanun Fodder</title>
	<atom:link href="http://www.torgersens.net/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.torgersens.net/wordpress</link>
	<description>Tips and tricks for IT pros and not so pros....</description>
	<lastBuildDate>Thu, 13 May 2010 11:44:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Absolute vs relative paths</title>
		<link>http://www.torgersens.net/wordpress/?p=134</link>
		<comments>http://www.torgersens.net/wordpress/?p=134#comments</comments>
		<pubDate>Thu, 13 May 2010 11:34:55 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=134</guid>
		<description><![CDATA[In your web programming you can either use relative or absolute paths to, say, pictures and other items you want to make accessible to the public. Relative path: The root of your path is assumed to be / regardless of location. An address will look like: /images/mypic.jpg. Easy to maintain and code is trans-web portable. [...]]]></description>
			<content:encoded><![CDATA[<p>In your web programming you can either use relative or absolute paths to, say, pictures and other items you want to make accessible to the public.</p>
<p><strong>Relative path:</strong> The root of your path is assumed to be <code>/</code> regardless of location. An address will look like: <code>/images/mypic.jpg</code>. Easy to maintain and code is trans-web portable. You can also address items relative to your current subdirectory. If, for instance, your <code>index.html</code> resides in the <code>/example/</code> directory, you can address the <code>/images/</code> folder like this: <code>../images/mypic.jpg</code></p>
<p><strong>Absolute path:</strong> The root of your pat is your (or any other, for that matter) domain that then contain the file structure. This means that you prefix every (relative) address with your domain name. An address will look like: <code>http://www.mydomain.com/images/mypic.jpg</code></p>
<p>Personally, I try avoiding at least the extreme version of relative addressing in my private webs, as they may turn up confusing or even non-functional. I therefore take the extra time to make sure all of my paths are fully absolute. Boring to enter, but 100% foolproof. Foolproof works well for me. Very well, in fact&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=134</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the logo image in MediaWiki</title>
		<link>http://www.torgersens.net/wordpress/?p=132</link>
		<comments>http://www.torgersens.net/wordpress/?p=132#comments</comments>
		<pubDate>Thu, 13 May 2010 11:19:21 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=132</guid>
		<description><![CDATA[The MediaWiki is the wiki flavour used by THE wiki of them all: Wikipedia. It is not all that difficult to set up, but it is not equally easy to configure. The procedure for changing the upper left hand corner logo image turned out to deviate from descriptions and not behave completely by the book [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="MediaWiki home page" href="http://www.mediawiki.org/" target="_blank">MediaWiki</a> is the wiki flavour used by <strong>THE</strong> wiki of them all: <a title="Wikipedia" href="http://wikipedia.org/" target="_blank">Wikipedia</a>. It is not all that difficult to set up, but it is not equally easy to configure. The procedure for changing the upper left hand corner logo image turned out to deviate from descriptions and not behave completely by the book (as in the manual).</p>
<p>First of all, create an image that is 135 by 135 pixels. I used PNG, but both GIF and JPG should do. Put this image in a suitable place on the wiki. The relative paths <code>/</code>, <code>/images/</code> and <code>/skins/common/images/</code> are suggested places, so I put mine in <code>/images</code>. See <a title="Relative vs absolute links" href="http://www.torgersens.net/wordpress/?p=132" target="_blank">this link</a> for a discussion on relative vs permanent links.</p>
<p>Now, locate (still relative) <code>/LocalSettings.php</code> and open it in your favourite editor. Do a sweep for $wgLogo just to be certain it does not exist.  When satisfied, add it near the end somewhere where it seems more or less logical to put it. I made a new comment line (starts with the hash, <code>#</code>) below <code>$wgDiff3</code> and below the comment added the proper <code>$wgLogo</code> line.</p>
<p>First, I tried as suggested to enter the relative path to my PNG, but that only made a white, empty space appear. I moved the file around and did not at all getting the results expected. I then rechecked the official MediaWiki manual and discovered that paths can be both relative and absolute. I then entered the absolute path to the image, saved, refreshed the page in the browser &#8211; and there it was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=132</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Luxand Blink!</title>
		<link>http://www.torgersens.net/wordpress/?p=126</link>
		<comments>http://www.torgersens.net/wordpress/?p=126#comments</comments>
		<pubDate>Tue, 11 May 2010 14:21:58 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=126</guid>
		<description><![CDATA[Just in case you wonder if there is a way to log in without typing your password. Yes &#8211; there is. Either you buy a Lenovo with fingerprint scanner (that does not work very well from what I have heard) &#8211; or you can finally use that webcam you bought for something useful: Install Luxand [...]]]></description>
			<content:encoded><![CDATA[<p>Just in case you wonder if there is a way to log in without typing your password. Yes &#8211; there is. Either you buy a Lenovo with fingerprint scanner (that does not work very well from what I have heard) &#8211; or you can finally use that webcam you bought for something useful: Install Luxand Blink! and log in using your face.</p>
<p>Here is the link: <a title="http://www.luxand.com/blink/" href="http://www.luxand.com/blink/" target="_blank">http://www.luxand.com/blink/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=126</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synergy/Synergy+</title>
		<link>http://www.torgersens.net/wordpress/?p=116</link>
		<comments>http://www.torgersens.net/wordpress/?p=116#comments</comments>
		<pubDate>Tue, 20 Apr 2010 12:25:13 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=116</guid>
		<description><![CDATA[Synergy (the original) and Synergy+ (the error-correcting fork) is in essential the same application, so in the below Synergy and Synergy+ mostly refers to the same product. If in doubt, assume I am talking about Synergy+. The Synergy application is an ingenious piece of work that make it easy to swap between different computers, as [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Synergy" href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a> (the original) and <a title="Synergy+" href="http://code.google.com/p/synergy-plus/" target="_blank">Synergy+</a> (the error-correcting fork) is in essential the same application, so in the below Synergy and Synergy+ mostly refers to the same product. If in doubt, assume I am talking about Synergy+.</p>
<p>The Synergy application is an ingenious piece of work that make it easy to swap between different computers, as long as the involved PCs have their own monitor. From one keyboard and one mouse you can control an entire range of PCs &#8211; spanning operating systems and networks. There are packages available for Linux, (BSD), Mac OS-X and Windows.</p>
<p>When setting up for the first time, dedicate one PC to be the &#8220;server&#8221; and install the rest as &#8220;clients&#8221;. The &#8220;server&#8221; is typically the one PC with mouse and keyboard connected. On this PC you must describe your environment, either by hand-editing your synergy.sgc or by (on Windows and some flavours of Linux) using a graphical tool. Note that you must configure both the way in and the way out of a computer. If you have computers A, B and C and they are ordered in that order on your desk, you must both say that A is left of B and B is right of A for the mouse to return to your original screen.</p>
<p>As the configuration language is in a well-thought-through structure, you can among other things decide if screensavers should be turned on simultaneously on all computers or not. You can also map keys if needed.</p>
<p>For a syntax highlighter for the Notepad++ highlighter, go <a title="Notepad++ highlight file" href="http://www.torgersens.net/wordpress/?p=120" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notepad++ syntax highlighter for Synergy .sgc files</title>
		<link>http://www.torgersens.net/wordpress/?p=120</link>
		<comments>http://www.torgersens.net/wordpress/?p=120#comments</comments>
		<pubDate>Tue, 20 Apr 2010 12:22:56 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=120</guid>
		<description><![CDATA[Click link to access file userDefineLang.xml]]></description>
			<content:encoded><![CDATA[<p>Click link to access file</p>
<blockquote><p><code><a title="userDefineLang.xml" href="http://www.torgersens.net/pub_files/userDefineLang.xml" target="_blank">userDefineLang.xml</a></code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=120</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Right-click in Excel fails</title>
		<link>http://www.torgersens.net/wordpress/?p=114</link>
		<comments>http://www.torgersens.net/wordpress/?p=114#comments</comments>
		<pubDate>Fri, 16 Apr 2010 10:24:54 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[MS Office]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=114</guid>
		<description><![CDATA[I got the following problem handed over to me today: &#8220;When right-clicking the sheet itself to do operations on a cell, Excel suddenly fails to show the menu.&#8221; Some desperate minutes later (about 40 of them) I found at least a workaround: Close Excel if it is running. Delete the following key in the registry: [...]]]></description>
			<content:encoded><![CDATA[<p>I got the following problem handed over to me today: &#8220;When right-clicking the sheet itself to do operations on a cell, Excel suddenly fails to show the menu.&#8221; Some desperate minutes later (about 40 of them) I found at least a workaround:</p>
<p>Close Excel if it is running. Delete the following key in the registry:</p>
<blockquote><p><code>HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options</code></p></blockquote>
<p>Reopen Excel and test if it works now. The <code>Options</code> folder recreates itself with a minimum set of contents, and Excel seems to be working well after this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=114</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum (or any other web dependent console app)</title>
		<link>http://www.torgersens.net/wordpress/?p=109</link>
		<comments>http://www.torgersens.net/wordpress/?p=109#comments</comments>
		<pubDate>Tue, 23 Mar 2010 11:54:30 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=109</guid>
		<description><![CDATA[If you have to update your Linux and you are behind a proxy, you can do the following: export yourproxyserver:port from your command line. After you have issued that command, you are free to use yum (or whatever web command you need) as usual. For a more permanent solution, put this in /etc/profile.d and every [...]]]></description>
			<content:encoded><![CDATA[<p>If you have to update your Linux and you are behind a proxy, you can do the following:</p>
<blockquote><p><code>export yourproxyserver:port</code></p></blockquote>
<p>from your command line. After you have issued that command, you are free to use <code>yum</code> (or whatever web command you need) as usual.</p>
<p>For a more permanent solution, put this in /etc/profile.d and every user on your system can benefit from it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=109</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Earth &#8211; My places</title>
		<link>http://www.torgersens.net/wordpress/?p=107</link>
		<comments>http://www.torgersens.net/wordpress/?p=107#comments</comments>
		<pubDate>Sun, 28 Feb 2010 12:02:40 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=107</guid>
		<description><![CDATA[I&#8217;ve got this idea that I should set up backups of everything on my computers. Everything worth saving, that is. So, next on my mental list was My places in Google Earth. But where the heck are the files for this feature?? Here they are: WinXP:   C:\Documents and Settings\&#60;User&#62;\Application Data\Google\GoogleEarth\myplaces.kml VISTA:   C:\Users\&#60;User&#62;\AppData\Roaming\Google\GoogleEarth\myplaces.kml Win7:     C:\users\&#60;User&#62;\appData\LocalLow\Google\GoogleEarth\myplaces.kml [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got this idea that I should set up backups of everything on my computers. Everything worth saving, that is. So, next on my mental list was <code>My places</code> in <code>Google Earth</code>. But where the heck are the files for this feature?? Here they are:</p>
<ul>
<li>WinXP:   <code>C:\Documents and Settings\<em>&lt;User&gt;</em>\Application  Data\Google\GoogleEarth\myplaces.kml</code></li>
<li>VISTA:   <code>C:\Users\</code><code><em>&lt;User&gt;</em></code><code>\AppData\Roaming\Google\GoogleEarth\myplaces.kml</code></li>
<li>Win7:     <code>C:\users\</code><code><em>&lt;User&gt;</em></code><code>\appData\LocalLow\Google\GoogleEarth\myplaces.kml</code></li>
</ul>
<div>Happy backup&#8217;ing!</div>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=107</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrink a log &#8211; or: How to force an MSSQL log file to shrink when you tell it to</title>
		<link>http://www.torgersens.net/wordpress/?p=102</link>
		<comments>http://www.torgersens.net/wordpress/?p=102#comments</comments>
		<pubDate>Sun, 31 Jan 2010 13:33:24 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[MS SQL Server]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=102</guid>
		<description><![CDATA[If you cannot get that d@mn log file to shrink, here&#8217;s a neat trick I learned from Christian Arheim: Make a backup of the files. MS Backup will do if you do not have anything else or if you are in a hurry. Open MS SQL Enterprise Manager Open the tree on the left hand [...]]]></description>
			<content:encoded><![CDATA[<p>If you cannot get that d@mn log file to shrink, here&#8217;s a neat trick I learned from <a title="Christian Arheim" href="http://www.arheim.no/wordpress/" target="_blank">Christian Arheim</a>:</p>
<ol>
<li>Make a backup of the files. MS Backup will do if you do not have anything else or if you are in a hurry.</li>
<li>Open <code>MS SQL Enterprise Manager</code></li>
<li>Open the tree on the left hand side to reveal the database owning the offending log file</li>
<li>Right-click it and select <code>Properties</code></li>
<li>In the left-hand-side of the window appearing, select <code>Options</code></li>
<li>To the right, locate <code>Recovery model</code> and select <code>Simple</code> (and &#8211; <strong>important</strong> &#8211; make a note of what it was)</li>
<li>Select <code>OK</code></li>
<li>Right-click the database again and this time select <code>Tasks</code> &#8211; <code>Shrink</code> &#8211; <code>Files</code></li>
<li>In the window appearing select <code>File type</code> to be <code>Log</code> and select <code>OK</code></li>
<li>After shinking finishes, you must now reset the recovery model. Do this:</li>
<li>Right-click database and select <code>Properties</code></li>
<li>In the left-hand-side of the window appearing, select <code>Options</code></li>
<li>To the right, locate <code>Recovery model</code> and select what noted it to be in #5 above. You forgot to write it down? You <strong>FAIL!</strong></li>
<li>Select <code>OK</code></li>
</ol>
<p>The log should now be down to an absolute minimum for this database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=102</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Done</title>
		<link>http://www.torgersens.net/wordpress/?p=99</link>
		<comments>http://www.torgersens.net/wordpress/?p=99#comments</comments>
		<pubDate>Fri, 01 Jan 2010 16:04:10 +0000</pubDate>
		<dc:creator>Knut Torgersen</dc:creator>
				<category><![CDATA[MOTD]]></category>

		<guid isPermaLink="false">http://www.torgersens.net/wordpress/?p=99</guid>
		<description><![CDATA[My ISP finished migrating me only a few minutes after 2200 30 December. But due to the &#8220;speed of the Internet&#8221; all DNS records involved did not update until only a few hours ago. And of course, I&#8217;m one of the last to get access to my own site. I got a new user registration [...]]]></description>
			<content:encoded><![CDATA[<p>My ISP finished migrating me only a few minutes after 2200 30 December. But due to the &#8220;speed of the Internet&#8221; all DNS records involved did not update until only a few hours ago. And of course, I&#8217;m one of the last to get access to my own site. I got a new user registration while I had no way of accessing my own site&#8230;.! Nice.</p>
<p>But &#8211; everything works just fine, I did not have to change anything &#8211; and thank you to <a href="http://www.mywebhost.no/">MyWebhost </a>for their perfect migration. They have affordable plans and an excellent customer service!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torgersens.net/wordpress/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
