<?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>EdwardH &#187; Software</title>
	<atom:link href="http://edwardh.se/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwardh.se</link>
	<description>Reviews and such</description>
	<lastBuildDate>Wed, 08 Sep 2010 19:27:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Things to install</title>
		<link>http://edwardh.se/2010/08/19/things-to-install/</link>
		<comments>http://edwardh.se/2010/08/19/things-to-install/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 22:20:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=270</guid>
		<description><![CDATA[Here is a list of things to do when installing a new system: Windows VLC Firefox + Adblock + Flashblock Flash Disable Flash updates OpenOffice Set default save formats for OO Linux Adblock + Flashblock Linux server aptitude install mc libapache2-mod-evasive WordPress Setup the following: Y-m-d H:i Permalinks with date and name Install the following: [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of things to do when installing a new system:</p>
<h2>Windows</h2>
<ul>
<li>VLC</li>
<li>Firefox + Adblock + Flashblock</li>
<li>Flash</li>
<li>Disable Flash updates</li>
<li>OpenOffice</li>
<li>Set default save formats for OO</li>
</ul>
<h2>Linux</h2>
<ul>
<li>Adblock + Flashblock</li>
</ul>
<h2>Linux server</h2>
<p>aptitude install mc libapache2-mod-evasive</p>
<h2>WordPress</h2>
<p>Setup the following:</p>
<ul>
<li>Y-m-d</li>
<li>H:i</li>
<li>Permalinks with date and name</li>
</ul>
<p>Install the following:</p>
<ul>
<li>Category Posts Widget</li>
<li>TinyMCE Advanced</li>
<li>NoSpamNX</li>
<li>ThreeWP Upcoming Posts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/08/19/things-to-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing calendars in Ical</title>
		<link>http://edwardh.se/2010/06/16/sharing-calendars-in-ical/</link>
		<comments>http://edwardh.se/2010/06/16/sharing-calendars-in-ical/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 22:31:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[ics]]></category>
		<category><![CDATA[sunbird]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=218</guid>
		<description><![CDATA[Apple&#8217;s Ical cannot read and write from the same online calendar. This is a workaround, assuming that there is only one person who updates the calendar. The problem Ical cannot both subscribe to a calendar and publish to the same calendar using Webdav. The idea Publish the local version of the calendar. Requirements The calendar [...]]]></description>
			<content:encoded><![CDATA[<p>Apple&#8217;s Ical cannot read and write from the same online calendar. This is a workaround, assuming that there is only one person who updates the calendar.</p>
<p><span id="more-218"></span></p>
<h2>The problem</h2>
<p>Ical cannot both subscribe to a calendar and publish to the same calendar using Webdav.</p>
<h2>The idea</h2>
<p>Publish the local version of the calendar.</p>
<h2>Requirements</h2>
<ul>
<li>The calendar has only one author</li>
<li>You should know your way around the terminal</li>
<li>The calendar file(s) are in <em>~/Library/Calendars</em>.</li>
</ul>
<h2>The solution</h2>
<p>This is what I did, and I don&#8217;t know shit about OSX (yeah, the thing where they take other people&#8217;s work and slap their logo on it and then don&#8217;t give back).</p>
<ol>
<li>Fetch a copy of the calendar from the net. This will create a whole bunch of .ics files. Why Apple doesn&#8217;t have one big file for the calendar events I don&#8217;t know.</li>
<li>Create a new local calendar</li>
<li>Close Ical</li>
<li>Copy the <em>Events</em> directory from the copy to the new local calendar</li>
<li>Delete the <em>Calendar Cache</em> file. I think it was called something like that. It&#8217;s in the <em>Calendars</em> directory, at any rate. This will force Ical to reload all the calendars.</li>
<li>Start Ical</li>
<li>Publish the newly-created local calendar to the Webdav address</li>
</ol>
<p>Now, when the author creates a new event both the author and the people subscribing to the online copy of the calendar will see the changes.</p>
<p>The other solution is to use the <a href="http://www.mozilla.org/projects/calendar/sunbird/">free and open calendar program Mozilla Sunbird</a>, but it&#8217;s not as shiny as Ical so Mac people won&#8217;t like it.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/06/16/sharing-calendars-in-ical/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CorsixTH and Theme Hospital</title>
		<link>http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/</link>
		<comments>http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 23:37:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gpl]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=94</guid>
		<description><![CDATA[For those of you who have heard of Theme Hospital, there is an open-source clone called CorsixTH. This tutorial is about how to download and install the second playable beta of CorsixTH. Requirements These instructions are for Windows &#8211; Linux folk usually help themselves and Mac folk don&#8217;t know how to play games. CorsixTH uses [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who have heard of <a href="http://en.wikipedia.org/wiki/Theme_Hospital">Theme Hospital</a>, there is an open-source clone called <a href="http://code.google.com/p/corsix-th/">CorsixTH</a>. This tutorial is about how to download and install the <a href="http://code.google.com/p/corsix-th/downloads/list">second playable beta of CorsixTH</a>.<span id="more-94"></span></p>
<h2>Requirements</h2>
<ol>
<li>These instructions are for <strong>Windows</strong> &#8211; Linux folk usually help themselves and Mac folk don&#8217;t know how to play games.</li>
<li>CorsixTH uses the <strong>data files</strong> from the original Theme Hospital game. Where you find a copy of the original game is beyond the scope of this tutorial. Ask around.</li>
<li>The data files need to be <strong>unpacked</strong> or <strong>mounted</strong>. In this tutorial we have installed Virtual CloneCD and mounted the downloaded image.</li>
<li>You&#8217;ll need to download the <a href="http://code.google.com/p/corsix-th/downloads/list">second  playable beta of Corsix TH</a>.</li>
</ol>
<h2>Installing Theme Hospital</h2>
<p>You&#8217;ve either unpacked the files somewhere or <a title="A tutorial for installing Virtual CloneDrive" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/">mounted the ISO using a DVD emulator (such as Virtual CloneCD)</a>. Either way is fine, as long as you can get to the game files.</p>
<p>We&#8217;re not going to install Theme Hospital, we&#8217;re just going to <strong>copy</strong> its files.</p>
<div id="attachment_143" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-143" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-01/"><img class="size-full wp-image-143" title="th-01" src="http://edwardh.se/wp-content/uploads/2010/03/th-01.png" alt="" width="550" height="352" /></a><p class="wp-caption-text">Your Theme Hospital image should be mounted.</p></div>
<div id="attachment_144" class="wp-caption aligncenter" style="width: 384px"><a rel="attachment wp-att-144" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-02/"><img class="size-full wp-image-144" title="th-02" src="http://edwardh.se/wp-content/uploads/2010/03/th-02.png" alt="" width="374" height="298" /></a><p class="wp-caption-text">Right click on the virtual drive and choose open.</p></div>
<div id="attachment_177" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-177" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-03-2/"><img class="size-full wp-image-177" title="th-03" src="http://edwardh.se/wp-content/uploads/2010/03/th-031.png" alt="" width="550" height="425" /></a><p class="wp-caption-text">You should now see all the files from the game.</p></div>
<div id="attachment_146" class="wp-caption aligncenter" style="width: 262px"><a rel="attachment wp-att-146" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-04/"><img class="size-full wp-image-146" title="th-04" src="http://edwardh.se/wp-content/uploads/2010/03/th-04.png" alt="" width="252" height="327" /></a><p class="wp-caption-text">Right click on the HOSP directory and choose copy.</p></div>
<p>The rest of the files are not necessary. Only the HOSP directory contains the data files for the actual game.</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-147" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-05/"><img class="size-full wp-image-147" title="th-05" src="http://edwardh.se/wp-content/uploads/2010/03/th-05.png" alt="" width="550" height="337" /></a><p class="wp-caption-text">Right click in some other folder and choose paste.</p></div>
<p>It doesn&#8217;t matter where you paste them as long as you know in which directory you put the files. Choosing <em>My Documents</em> is easy because the directory is shown (see screenshot lower down).</p>
<div id="attachment_148" class="wp-caption aligncenter" style="width: 391px"><a rel="attachment wp-att-148" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-07/"><img class="size-full wp-image-148" title="th-07" src="http://edwardh.se/wp-content/uploads/2010/03/th-07.png" alt="" width="381" height="161" /></a><p class="wp-caption-text">The files are being copied...</p></div>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 559px"><a rel="attachment wp-att-149" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-08/"><img class="size-full wp-image-149" title="th-08" src="http://edwardh.se/wp-content/uploads/2010/03/th-08.png" alt="" width="549" height="173" /></a><p class="wp-caption-text">Copying done! Go into the folder with a double-click.</p></div>
<div id="attachment_150" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-150" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/th-09/"><img class="size-full wp-image-150" title="th-09" src="http://edwardh.se/wp-content/uploads/2010/03/th-09.png" alt="" width="550" height="413" /></a><p class="wp-caption-text">Remeber where the files are!</p></div>
<p>That path, encircled, is what you&#8217;ll be needing later when you install CorsixTH.</p>
<h2>Installing CorsixTH</h2>
<p>Go to the <a href="http://code.google.com/p/corsix-th/downloads/list">download page of CorsixTH</a>.</p>
<div id="attachment_155" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-155" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c01/"><img class="size-full wp-image-155" title="c01" src="http://edwardh.se/wp-content/uploads/2010/03/c01.png" alt="" width="550" height="333" /></a><p class="wp-caption-text">Select the installer.</p></div>
<div id="attachment_156" class="wp-caption aligncenter" style="width: 413px"><a rel="attachment wp-att-156" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c02/"><img class="size-full wp-image-156" title="c02" src="http://edwardh.se/wp-content/uploads/2010/03/c02.png" alt="" width="403" height="169" /></a><p class="wp-caption-text">Save the file somewhere.</p></div>
<div id="attachment_157" class="wp-caption aligncenter" style="width: 211px"><a rel="attachment wp-att-157" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c03/"><img class="size-full wp-image-157" title="c03" src="http://edwardh.se/wp-content/uploads/2010/03/c03.png" alt="" width="201" height="59" /></a><p class="wp-caption-text">When the download is complete, run the file.</p></div>
<div id="attachment_158" class="wp-caption aligncenter" style="width: 414px"><a rel="attachment wp-att-158" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c04/"><img class="size-full wp-image-158" title="c04" src="http://edwardh.se/wp-content/uploads/2010/03/c04.png" alt="" width="404" height="302" /></a><p class="wp-caption-text">Yes, Windows. Run the installer.</p></div>
<div id="attachment_159" class="wp-caption aligncenter" style="width: 304px"><a rel="attachment wp-att-159" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c05/"><img class="size-full wp-image-159" title="c05" src="http://edwardh.se/wp-content/uploads/2010/03/c05.png" alt="" width="294" height="153" /></a><p class="wp-caption-text">English will do fine.</p></div>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-160" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c06/"><img class="size-full wp-image-160" title="c06" src="http://edwardh.se/wp-content/uploads/2010/03/c06.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">Next.</p></div>
<div id="attachment_161" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-161" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c07/"><img class="size-full wp-image-161" title="c07" src="http://edwardh.se/wp-content/uploads/2010/03/c07.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">That&#39;s interesting. Next.</p></div>
<div id="attachment_162" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-162" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c08/"><img class="size-full wp-image-162" title="c08" src="http://edwardh.se/wp-content/uploads/2010/03/c08.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">Where to install Corsix TH. The default is fine.</p></div>
<div id="attachment_163" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-163" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c09/"><img class="size-full wp-image-163" title="c09" src="http://edwardh.se/wp-content/uploads/2010/03/c09.png" alt="" width="550" height="228" /></a><p class="wp-caption-text">Remember where you copied Theme Hospital to? Copy that address.</p></div>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-164" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c10/"><img class="size-full wp-image-164" title="c10" src="http://edwardh.se/wp-content/uploads/2010/03/c10.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">Paste the Theme Hospital address / path here. The path should end with HOSP.</p></div>
<div id="attachment_165" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-165" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c11/"><img class="size-full wp-image-165" title="c11" src="http://edwardh.se/wp-content/uploads/2010/03/c11.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">Next.</p></div>
<div id="attachment_166" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-166" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c12/"><img class="size-full wp-image-166" title="c12" src="http://edwardh.se/wp-content/uploads/2010/03/c12.png" alt="" width="503" height="386" /></a><p class="wp-caption-text">Yay! Finished!</p></div>
<p>You have now installed CorsixTH and pointed it to the place where you  have your original Theme Hospital data files.</p>
<h2>Running CorsixTH</h2>
<div id="attachment_167" class="wp-caption aligncenter" style="width: 562px"><a rel="attachment wp-att-167" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c13/"><img class="size-full wp-image-167" title="c13" src="http://edwardh.se/wp-content/uploads/2010/03/c13.png" alt="" width="552" height="594" /></a><p class="wp-caption-text">Corsix TH can be found in the start menu.</p></div>
<p>If it works correctly you&#8217;ll see the screen below:</p>
<div id="attachment_168" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-168" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c14/"><img class="size-full wp-image-168" title="c14" src="http://edwardh.se/wp-content/uploads/2010/03/c14.png" alt="" width="550" height="412" /></a><p class="wp-caption-text">The Corsix TH opening menu.</p></div>
<h2>CorsixTH encountered an error during startup &#8211; consult the log window for details.</h2>
<div id="attachment_169" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-169" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c15/"><img class="size-full wp-image-169" title="c15" src="http://edwardh.se/wp-content/uploads/2010/03/c15.png" alt="" width="550" height="281" /></a><p class="wp-caption-text">Error message telling you that the Theme Hospital data files could not be found.</p></div>
<p>If you see this message it&#8217;s probably because the address to the data  files is not correct.</p>
<p>Go to where you installed CorsixTH. The default is <em>C:\Program Files\CorsixTH</em>.</p>
<div id="attachment_170" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-170" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c16/"><img class="size-full wp-image-170" title="c16" src="http://edwardh.se/wp-content/uploads/2010/03/c16.png" alt="" width="550" height="391" /></a><p class="wp-caption-text">In the Corsix TH program files directory, there is a config.txt.</p></div>
<p>Double-click the <em>config.txt</em> file to open it with notepad.</p>
<div id="attachment_171" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-171" href="http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/c17/"><img class="size-full wp-image-171" title="c17" src="http://edwardh.se/wp-content/uploads/2010/03/c17.png" alt="" width="550" height="361" /></a><p class="wp-caption-text">Make sure the theme_hospital_install setting is correct.</p></div>
<p>When you type in the correct address for the files, make sure you include the double square brackets.</p>
<p>theme_hospital_install = [[C:\Documents and Settings\user\My Documents\HOSP]]</p>
<p>If that still doesn&#8217;t work, join us on <a href="http://code.google.com/p/corsix-th/wiki/IRC">the #corsix-th IRC channel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/03/26/installing-corsixth-and-theme-hospital/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Virtual CloneDrive</title>
		<link>http://edwardh.se/2010/03/26/installing-virtual-clonedrive/</link>
		<comments>http://edwardh.se/2010/03/26/installing-virtual-clonedrive/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 22:46:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[daemon tools]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=122</guid>
		<description><![CDATA[Virtual CloneDrive is a DVD-drive emulator and a free alternative to Daemon Tools (that now has free spyware included). This tutorial shows how to download, install and use CloneDrive. Downloading Virtual CloneDrive The program can be downloaded from SlySoft&#8217;s site. Installing Virtual CloneDrive Using Virtual CloneDrive CD/DVD images usually have the extension .iso. Others are [...]]]></description>
			<content:encoded><![CDATA[<p>Virtual CloneDrive is a DVD-drive emulator and a free alternative to Daemon Tools (that now has free spyware included). This tutorial shows how to download, install and use CloneDrive.<span id="more-122"></span></p>
<h2>Downloading Virtual CloneDrive</h2>
<p>The program can be <a href="http://www.slysoft.com/en/download.html">downloaded from SlySoft&#8217;s site</a>.</p>
<div id="attachment_123" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-123" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-01/"><img class="size-full wp-image-123" title="vcd-01" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-01.png" alt="" width="550" height="397" /></a><p class="wp-caption-text">Click the download link</p></div>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 414px"><a rel="attachment wp-att-126" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-04/"><img class="size-full wp-image-126" title="vcd-04" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-04.png" alt="" width="404" height="302" /></a><p class="wp-caption-text">Yes, Windows, run the installer.</p></div>
<p style="text-align: center;">
<div id="attachment_124" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-124" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-02/"><img class="size-full wp-image-124" title="vcd-02" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-02.png" alt="" width="550" height="422" /></a><p class="wp-caption-text">Click on Virtual CloneDrive. Save it somewhere.</p></div>
<h2>Installing Virtual CloneDrive</h2>
<div id="attachment_125" class="wp-caption aligncenter" style="width: 238px"><a rel="attachment wp-att-125" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-03/"><img class="size-full wp-image-125" title="vcd-03" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-03.png" alt="" width="228" height="66" /></a><p class="wp-caption-text">When the download completes, run the file.</p></div>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 414px"><a rel="attachment wp-att-126" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-04/"><img class="size-full wp-image-126" title="vcd-04" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-04.png" alt="" width="404" height="302" /></a><p class="wp-caption-text">Yes, Windows, run the installer.</p></div>
<div id="attachment_127" class="wp-caption aligncenter" style="width: 435px"><a rel="attachment wp-att-127" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-05/"><img class="size-full wp-image-127" title="vcd-05" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-05.png" alt="" width="425" height="287" /></a><p class="wp-caption-text">You agree.</p></div>
<div id="attachment_128" class="wp-caption aligncenter" style="width: 436px"><a rel="attachment wp-att-128" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-06/"><img class="size-full wp-image-128" title="vcd-06" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-06.png" alt="" width="426" height="288" /></a><p class="wp-caption-text">We don&#39;t need a desktop icon. Next.</p></div>
<div id="attachment_129" class="wp-caption aligncenter" style="width: 436px"><a rel="attachment wp-att-129" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-07/"><img class="size-full wp-image-129" title="vcd-07" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-07.png" alt="" width="426" height="288" /></a><p class="wp-caption-text">That directory is fine. Next.</p></div>
<div id="attachment_130" class="wp-caption aligncenter" style="width: 436px"><a rel="attachment wp-att-130" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-08/"><img class="size-full wp-image-130" title="vcd-08" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-08.png" alt="" width="426" height="308" /></a><p class="wp-caption-text">Windows warns us that the programmer hasn&#39;t paid Microsoft thousands of dollars to avoid this nag window. Continue anyway.</p></div>
<div id="attachment_131" class="wp-caption aligncenter" style="width: 436px"><a rel="attachment wp-att-131" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-09/"><img class="size-full wp-image-131" title="vcd-09" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-09.png" alt="" width="426" height="288" /></a><p class="wp-caption-text">Installation complete.</p></div>
<h2>Using Virtual CloneDrive</h2>
<div id="attachment_132" class="wp-caption aligncenter" style="width: 228px"><a rel="attachment wp-att-132" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-11/"><img class="size-full wp-image-132" title="vcd-11" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-11.png" alt="" width="218" height="103" /></a><p class="wp-caption-text">There is now a CD/DVD icon in the systray. Right click and you can choose a DVD image to mount.</p></div>
<p>CD/DVD images usually have the extension <em>.iso</em>. Others are <em>.img</em> and <em>.bin</em>.</p>
<p>Right click on the CD icon, chose the drive and then <strong>mount</strong>. A file chooser should appear.</p>
<div id="attachment_133" class="wp-caption aligncenter" style="width: 573px"><a rel="attachment wp-att-133" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-12/"><img class="size-full wp-image-133" title="vcd-12" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-12.png" alt="" width="563" height="412" /></a><p class="wp-caption-text">For this example I&#39;ve chosen an image from Theme Hospital.</p></div>
<div id="attachment_134" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-134" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-13/"><img class="size-full wp-image-134" title="vcd-13" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-13.png" alt="" width="550" height="413" /></a><p class="wp-caption-text">The game&#39;s autostart image pops up automatically! Just like a real DVD drive.</p></div>
<p>If you open <em>My Computer</em> you&#8217;ll see the Theme Hospital CD in the &#8220;drive&#8221;.</p>
<div id="attachment_135" class="wp-caption aligncenter" style="width: 392px"><a rel="attachment wp-att-135" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-14/"><img class="size-full wp-image-135" title="vcd-14" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-14.png" alt="" width="382" height="267" /></a><p class="wp-caption-text">It&#39;s a virtual CD/DVD reader.</p></div>
<div id="attachment_136" class="wp-caption aligncenter" style="width: 412px"><a rel="attachment wp-att-136" href="http://edwardh.se/2010/03/26/installing-virtual-clonedrive/vcd-15/"><img class="size-full wp-image-136" title="vcd-15" src="http://edwardh.se/wp-content/uploads/2010/03/vcd-15.png" alt="" width="402" height="488" /></a><p class="wp-caption-text">All the files are browsable just like a real CD.</p></div>
<p>This concludes the tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/03/26/installing-virtual-clonedrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PeaZip</title>
		<link>http://edwardh.se/2010/03/26/installing-peazip/</link>
		<comments>http://edwardh.se/2010/03/26/installing-peazip/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 21:49:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gpl]]></category>
		<category><![CDATA[peazip]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=97</guid>
		<description><![CDATA[PeaZip is a free and open archiving program (like WinRar and WinZip). This tutorial shows how to download and install PeaZip. PeaZip is my archiver of choice because it&#8217;s free, open, cross-platform and handles lots of different archive formats. Download PeaZip You can delete the shortcut if you want. Now you at least know what [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://peazip.sourceforge.net/">PeaZip is a free and open archiving program</a> (like WinRar and WinZip). This tutorial shows how to download and install PeaZip.<span id="more-97"></span></p>
<p>PeaZip is my archiver of choice because it&#8217;s free, open, cross-platform and handles lots of different archive formats.</p>
<h2>Download PeaZip</h2>
<div id="attachment_102" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-102" href="http://edwardh.se/2010/03/26/installing-peazip/pz-01/"><img class="size-full wp-image-102" title="pz-01" src="http://edwardh.se/wp-content/uploads/2010/03/pz-01.png" alt="" width="550" height="340" /></a><p class="wp-caption-text">Choose the installer for any Windows</p></div>
<div id="attachment_108" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-108" href="http://edwardh.se/2010/03/26/installing-peazip/pz-07/"><img class="size-full wp-image-108" title="pz-07" src="http://edwardh.se/wp-content/uploads/2010/03/pz-07.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Yes, yes, yes...</p></div>
<p style="text-align: center;">
<div id="attachment_103" class="wp-caption aligncenter" style="width: 413px"><a rel="attachment wp-att-103" href="http://edwardh.se/2010/03/26/installing-peazip/pz-02/"><img class="size-full wp-image-103" title="pz-02" src="http://edwardh.se/wp-content/uploads/2010/03/pz-02.png" alt="" width="403" height="169" /></a><p class="wp-caption-text">Save the file somewhere.</p></div>
<div id="attachment_104" class="wp-caption aligncenter" style="width: 560px"><a rel="attachment wp-att-104" href="http://edwardh.se/2010/03/26/installing-peazip/pz-03/"><img class="size-full wp-image-104" title="pz-03" src="http://edwardh.se/wp-content/uploads/2010/03/pz-03.png" alt="" width="550" height="133" /></a><p class="wp-caption-text">When the download is complete, run the installer.</p></div>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 414px"><a rel="attachment wp-att-105" href="http://edwardh.se/2010/03/26/installing-peazip/pz-04/"><img class="size-full wp-image-105" title="pz-04" src="http://edwardh.se/wp-content/uploads/2010/03/pz-04.png" alt="" width="404" height="302" /></a><p class="wp-caption-text">Yes, Windows, we&#39;re sure we want to run the file we just clicked on.</p></div>
<div id="attachment_106" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-106" href="http://edwardh.se/2010/03/26/installing-peazip/pz-05/"><img class="size-full wp-image-106" title="pz-05" src="http://edwardh.se/wp-content/uploads/2010/03/pz-05.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Next.</p></div>
<div id="attachment_107" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-107" href="http://edwardh.se/2010/03/26/installing-peazip/pz-06/"><img class="size-full wp-image-107" title="pz-06" src="http://edwardh.se/wp-content/uploads/2010/03/pz-06.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Next.</p></div>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-109" href="http://edwardh.se/2010/03/26/installing-peazip/pz-08/"><img class="size-full wp-image-109" title="pz-08" src="http://edwardh.se/wp-content/uploads/2010/03/pz-08.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Standard settings are fine.</p></div>
<div id="attachment_110" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-110" href="http://edwardh.se/2010/03/26/installing-peazip/pz-09/"><img class="size-full wp-image-110" title="pz-09" src="http://edwardh.se/wp-content/uploads/2010/03/pz-09.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Next.</p></div>
<div id="attachment_111" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-111" href="http://edwardh.se/2010/03/26/installing-peazip/pz-10/"><img class="size-full wp-image-111" title="pz-10" src="http://edwardh.se/wp-content/uploads/2010/03/pz-10.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Just install already.</p></div>
<div id="attachment_112" class="wp-caption aligncenter" style="width: 513px"><a rel="attachment wp-att-112" href="http://edwardh.se/2010/03/26/installing-peazip/pz-11/"><img class="size-full wp-image-112" title="pz-11" src="http://edwardh.se/wp-content/uploads/2010/03/pz-11.png" alt="" width="503" height="385" /></a><p class="wp-caption-text">Finally. We&#39;re finished.</p></div>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 88px"><a rel="attachment wp-att-113" href="http://edwardh.se/2010/03/26/installing-peazip/pz-12/"><img class="size-full wp-image-113" title="pz-12" src="http://edwardh.se/wp-content/uploads/2010/03/pz-12.png" alt="" width="78" height="472" /></a><p class="wp-caption-text">There is now a PeaZip shortcut on the desktop.</p></div>
<p style="text-align: center;">You can delete the shortcut if you want. Now you at least know what the icon looks like.</p>
<p style="text-align: center;">
<div id="attachment_114" class="wp-caption aligncenter" style="width: 222px"><a rel="attachment wp-att-114" href="http://edwardh.se/2010/03/26/installing-peazip/pz-13/"><img class="size-full wp-image-114" title="pz-13" src="http://edwardh.se/wp-content/uploads/2010/03/pz-13.png" alt="" width="212" height="302" /></a><p class="wp-caption-text">Right click on a compressed file shows the extract menu.</p></div>
<p style="text-align: center;">My favorite command for compressed files is <em>Extract here (in new folder)</em>.</p>
<div id="attachment_101" class="wp-caption aligncenter" style="width: 268px"><a rel="attachment wp-att-101" href="http://edwardh.se/2010/03/26/installing-peazip/pz-14/"><img class="size-full wp-image-101" title="pz-14" src="http://edwardh.se/wp-content/uploads/2010/03/pz-14.png" alt="" width="258" height="318" /></a><p class="wp-caption-text">Right clicking on a folder or file shows the add to archive menu.</p></div>
<p>It is beyond the scope of this tutorial to show how files are added to archives. A normal user&#8217;s most common use of archiving programs is actually unarchiving things&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/03/26/installing-peazip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Pulseaudio</title>
		<link>http://edwardh.se/2010/03/10/disable-pulseaudio/</link>
		<comments>http://edwardh.se/2010/03/10/disable-pulseaudio/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:12:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=91</guid>
		<description><![CDATA[If you hate that worthless, piece-of-shit &#8220;sound server&#8221; they call Pulseaudio and want to prevent it from taking over your whole computer, try this script I found somewhere. #!/bin/bash touch ~/.pulse-a11y-nostart echo autospawn = no&#124;tee -a ~/.pulse/client.conf killall pulseaudio Reboot. Then remove all the PulseShit packages. Sweet Jesus in Heaven, what were the Ubuntu people [...]]]></description>
			<content:encoded><![CDATA[<p>If you hate that worthless, piece-of-shit &#8220;sound server&#8221; they call Pulseaudio and want to prevent it from taking over your whole computer, try this script I found somewhere.</p>
<p><code>#!/bin/bash<br />
touch ~/.pulse-a11y-nostart<br />
echo autospawn = no|tee -a ~/.pulse/client.conf<br />
killall pulseaudio</code></p>
<p>Reboot.</p>
<p>Then remove all the PulseShit packages. Sweet Jesus in Heaven, what were the Ubuntu people thinking when they made Pulseaudio the standard? How much were their kickbacks?</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/03/10/disable-pulseaudio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress upgrading / installation problems</title>
		<link>http://edwardh.se/2010/02/12/wordpress-upgrading-installation-problems/</link>
		<comments>http://edwardh.se/2010/02/12/wordpress-upgrading-installation-problems/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 01:18:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=78</guid>
		<description><![CDATA[Unable to install new or upgrade themes and plugins? Even though your permissions are ok? It's a problem that's got to do with (1) your web host and their incorrectly configured servers and (2) Wordpress not being flexible enough to work around those bad server configs. Here's a patch that can help.]]></description>
			<content:encoded><![CDATA[<p>Sometimes, on some web hosts, after manually installing WordPress you can&#8217;t install new plugins, upgrade the ones you have installed or install new themes. Instead of installing the new plugin it will ask you for your FTP settings.</p>
<p>Searching for help will only give you a bunch of links that tell you to check your permissions but if your <em>/wp-content</em> already has 777 then why is it still broken?<span id="more-78"></span></p>
<h2>getmyuid() has been disabled for security reasons</h2>
<p>The answer is, most probably, the above heading as an invisible error. Your webhost has a misconfigured server or something &#8211; I&#8217;m not quite sure <strong>why</strong> this happens, the thing is it does.</p>
<p>This function, getmyuid(), prevents PHP and therefore WordPress from finding out which user ID is running WordPress. So WordPress assumes direct file system access is broken and therefore goes to FTP mode. Which is irritating.</p>
<p>I&#8217;ve <a href="http://core.trac.wordpress.org/ticket/12201">sent in a workaround getmyuid() patch</a> to the WordPress guys. We&#8217;ll see if they want to include it anytime.</p>
<h2>Download the patch here</h2>
<p>The file in question is <em>/wp-admin/includes</em>. Help yourselves to the patch or the complete file. My WordPress version is 2.9.1.</p>
<p><a href="http://edwardh.se/wp-content/uploads/2010/02/file.php_.diff_.zip">file.php.diff.zip</a></p>
<p><a href="http://edwardh.se/wp-content/uploads/2010/02/file.php_.zip">file.php.zip</a></p>
<h2>Anything else I should know?</h2>
<p>Just make sure you completely reset the ownership of all your <em>wp-admin</em> files before patching. Just in case that helps (although I&#8217;m sure you&#8217;ve probably tried everything before finding this page).</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/02/12/wordpress-upgrading-installation-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling jQuery UI Selectmenu</title>
		<link>http://edwardh.se/2010/02/09/controlling-jquery-ui-selectmenu/</link>
		<comments>http://edwardh.se/2010/02/09/controlling-jquery-ui-selectmenu/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 01:30:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jqueryui]]></category>
		<category><![CDATA[selectmenu]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=70</guid>
		<description><![CDATA[I&#8217;m just started using selectmenu and wanted to share how to control it. It&#8217;s not completely obvious to inexperienced jquery UI folks like myself&#8230; Specifying a trigger function First, we create the selectmenu UI widget from an existing &#60;select&#62; control, with the id=&#8221;selectmenu&#8221;. $("#selectmenu").selectmenu({ &#160;&#160;change: selectmenuChange }); And selectmenuChange&#8230; function selectmenuChange(event, value) { &#160;&#160;switch(value.value) &#160;&#160;{ [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just started using <a href="http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/">selectmenu</a> and wanted to share how to control it. It&#8217;s not completely obvious to inexperienced jquery UI folks like myself&#8230;</p>
<h2>Specifying a trigger function</h2>
<p>First, we create the selectmenu UI widget from an existing &lt;select&gt; control, with the id=&#8221;selectmenu&#8221;.</p>
<p><code>$("#selectmenu").selectmenu({<br />
&nbsp;&nbsp;change: selectmenuChange<br />
});</code></p>
<p>And selectmenuChange&#8230;<br />
<code>function selectmenuChange(event, value)<br />
{<br />
&nbsp;&nbsp;switch(value.value)<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;case 0:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert('Hello!');<br />
&nbsp;&nbsp;&nbsp;&nbsp;break;<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;$("#selectmenu").selectmenu("value", "ignore");	// Put it back on the first option.<br />
}</code></p>
<p>The last line should give you a clue as to what comes next.</p>
<p>Controlling the selectmenu after creation</p>
<p><code>$("#selectmenu").selectmenu("value", "ignore");	// Put it back on the  first option.<br />
$("#selectmenu").selectmenu("open"); // Open the selectmenu<br />
$("#selectmenu").selectmenu("focus");	// Give it focus</code></p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/02/09/controlling-jquery-ui-selectmenu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpAutoIndex</title>
		<link>http://edwardh.se/2010/02/06/phpautoindex/</link>
		<comments>http://edwardh.se/2010/02/06/phpautoindex/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 23:47:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=51</guid>
		<description><![CDATA[phpAutoIndex is a PHP5-script that was written to quickly and easily share files and texts amongst friends. It is similar to Apache&#8217;s autoindex module in that it lists the files of a directory, but it also allows user to upload files and texts. Features There is a basic amount of security involved, restricting access to [...]]]></description>
			<content:encoded><![CDATA[<p>phpAutoIndex is a PHP5-script that was written to quickly and easily  share files and texts amongst friends. It is similar to Apache&#8217;s  autoindex module in that it lists the files of a directory, but it also  allows user to upload files and texts.<span id="more-51"></span></p>
<h2>Features</h2>
<ul>
<li>There is a basic amount of <strong>security</strong> involved,  restricting access to the shared directory. The files shared should be  considered soon-to-be trash, just to be on the safe side.</li>
<li>The <strong>theme</strong> is completely configurable.</li>
<li><strong>Uploaded</strong> files can be treated as normal files, or  automatically <strong>unzipped</strong> depending on the theme.</li>
</ul>
<h2>Screenshots</h2>
<p><a href="../wp-content/uploads/2010/02/phpautoindex-screenshot-normal.jpg"><img title="phpautoindex-screenshot-normal" src="../wp-content/uploads/2010/02/phpautoindex-screenshot-normal.jpg" alt="" width="500" height="335" /></a><br />
Above is how Apache normally autoindexes directories&#8230;</p>
<p>&#8230; and this is what the  default theme looks like for phpAutoindex. A selected file and the top  of the upload &amp; quickpaste forms are visible.</p>
<p><a href="http://edwardh.se/wp-content/uploads/2010/02/phpautoindex-screenshot.jpg"><img class="alignnone size-full wp-image-54" title="phpautoindex-screenshot" src="http://edwardh.se/wp-content/uploads/2010/02/phpautoindex-screenshot.jpg" alt="" width="600" height="373" /></a></p>
<h2>Requirements</h2>
<ul>
<li>PHP5</li>
</ul>
<h2>Download</h2>
<p><a href="http://edwardh.se/wp-content/uploads/2010/02/phpAutoIndex-1.0.zip">phpAutoIndex-1.0.zip</a></p>
<table border="0">
<caption>Changelog</caption>
<thead>
<tr>
<td>Date</td>
<td>Version</td>
<td>Changes</td>
</tr>
</thead>
<tbody>
<tr>
<td>2009-05-04</td>
<td>1.0</td>
<td>First version</td>
</tr>
</tbody>
</table>
<h2>Installation</h2>
<ul>
<li>Unzip to a directory in your htdocs.</li>
<li>Have a quick look at the <strong>index.php</strong> file.</li>
</ul>
<h2>License</h2>
<p>phpAutoIndex is GPLv3.</p>
<h2>Contact</h2>
<p>If something doesn&#8217;t work or you need help, try <a href="mailto:edward@edwardh.se">emailing me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/02/06/phpautoindex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switchscreen</title>
		<link>http://edwardh.se/2010/02/06/switchscreen/</link>
		<comments>http://edwardh.se/2010/02/06/switchscreen/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 23:43:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://edwardh.se/?p=45</guid>
		<description><![CDATA[Switchscreen is a utility to switch monitors. As of v0.1.1 it doesn&#8217;t really work properly because of my sloppy window focus setting, but I&#8217;ve added some modifications I found in another modified version. Now you can switch between several monitors and yet keep the mouse and keyboard focus working. Background Most window managers don&#8217;t have [...]]]></description>
			<content:encoded><![CDATA[<p>Switchscreen is a   utility to switch monitors. As of v0.1.1 it doesn&#8217;t really work   properly because of my sloppy window focus setting, but I&#8217;ve added some   modifications I found in another   modified version. Now you can switch between several monitors and   yet keep the mouse and keyboard focus working.<span id="more-45"></span></p>
<h2>Background</h2>
<p>Most window managers don&#8217;t have proper multihead window handling.  WindowMaker does, with a hotkey and everything, but it&#8217;s from fucking  2005. When I actually switched to Linux in ~2003 WindowMaker was still  modern&#8230;</p>
<p>I&#8217;ve recently switched to XFCE and since it doesn&#8217;t care about  multihead setups (I have three monitors) I&#8217;ve had to come up with a  solution.</p>
<h2>The switchscreen utility</h2>
<p><a href="http://users.tkk.fi/spniskan/switchscreen/">Switchscreen is a  utility to switch monitors</a>. As of v0.1.1 it doesn&#8217;t really work  properly because of my sloppy window focus setting, but I&#8217;ve added some  modifications I found in <a href="http://unlogical.net/files/scripts/switchscreen-0.4.tar.gz">another  modified version</a>. Now you can switch between several monitors and  yet keep the mouse and keyboard focus working.</p>
<h2>My modified version of switchscreen</h2>
<p><a href="http://edwardh.se/wp-content/uploads/2010/02/switchscreen-0.1.2.tar.gz">Download switchscreen-0.1.2.tar</a></p>
<p>Basically, I&#8217;ve added some options in the <strong>toggleScreen.sh</strong> script and a utility called <strong>fakemousemove</strong>.</p>
<h3>toggleScreen.sh</h3>
<pre>#!/bin/bash

# Start of user settings.
# -----------------------

HIDECURSOR=1	# 1 to hide it. See below.

# Where to move the cursors for the displays that you're not using.
# Move the cursor wherever you want.
# Values are 0-based, therefore the maximum values are max-1.
# For example, the first one is for a 30" monitor that can do 2560x1600, then the max becomes 2560-1,1600-1
hideCursor=("2559,1599" "1919,1199" "1279,1023")

# In order for XFCE (among others) to properly grab focus using sloppy mouse focus, the mouse has to be "moved".
# The following two lines set the mouse to x0, y0 - which is where I have my panel.
# Then the mouse is then moved back to where it was: the window itself. Xfce sees this "movement" and the window is raised and what not.
SLOPPY_FOCUS_X=0	# Set to -1 for no sloppy focus fixing.
SLOPPY_FOCUS_Y=0

# Where did you put switchscreen &amp; co?
DIRECTORY=/home/edward/scripts/switchscreen		### CHANGEME!!! ###

# End of user settings.
# ---------------------

STOREFILE=${DIRECTORY}/.toogleScreen
CMD_SWITCHSCREEN=${DIRECTORY}/switchscreen
CMD_FAKEMOUSEMOVE=${DIRECTORY}/fakemousemove

CURRENT="`$CMD_SWITCHSCREEN -P`"
CURSCR=`echo "$CURRENT" | gawk '{ print $2 }'`
CURPOS=`echo "$CURRENT" | gawk '{ print $4 }'`

echo $CURPOS &gt; $STOREFILE.$CURSCR

# Calculate new monitor.

## CHANGEME!!! ##

# If you have two monitors, remove the '2' part (monitorCount+1).
# If you want some fancy schmany 0 -&gt; 2 -&gt; 1, instead of 0 -&gt; 1 -&gt; 2, change this.
case "$CURSCR" in
'0')
    NEWSCR=1
;;
'1')
    NEWSCR=2
;;
'2')
    NEWSCR=0
;;
esac

NEWPOS="`cat $STOREFILE.$NEWSCR 2&gt;/dev/null`"
if [ "$NEWPOS" ]; then
    POSOPT="-c $NEWPOS"
else
    POSOPT=""
fi

if [ "$HIDECURSOR" = "1" ]; then
    $CMD_SWITCHSCREEN -c ${hideCursor[$CURSCR]}		# Hide the cursor for this screen
fi

$CMD_SWITCHSCREEN -q $POSOPT $NEWSCR			# Go to the new screen.

if [ "$SLOPPY_FOCUS_X" != "-1" ]; then
    $CMD_FAKEMOUSEMOVE -c $SLOPPY_FOCUS_X,$SLOPPY_FOCUS_Y $NEWSCR	# First, move the mouse to where the panel is (ie: out of the window).
    $CMD_FAKEMOUSEMOVE $POSOPT $NEWSCR					# And now move it back in. Sloppy focus will now have focused on the window again.
fi
</pre>
<h3>Skip unimportant screens</h3>
<p>Personally, I&#8217;ve modified the case to simplify irc:ing. Screen 0 is  my main monitor, screen 1 is a misc monitor and screen 2 is  irc/centerim. Since I don&#8217;t want to have to page past screen 1 when I  want to quickly reply to something on IRC the script now checks when I  last switched monitors.</p>
<p>If I switched a while ago (more than 1 second) then I&#8217;m probably just  going to reply to something.</p>
<p>If I switched recently then I actually want to go to screen 1.</p>
<pre>'0')
    LASTSTORE=$STOREFILE.2
    TIME_LAST=`date -r $LASTSTORE +%s`
    let TIME_SINCE_LAST=`date +%s`-$TIME_LAST

    if [ "$TIME_SINCE_LAST" -gt "1" ]; then
	NEWSCR=2
    else
	NEWSCR=1
    fi
;;</pre>
<h2>How to use it</h2>
<ol>
<li>Unzip</li>
<li>Look in <strong>toggleScreen.sh</strong> and look for the text  &#8220;CHANGEME&#8221; (there are at least two). You might want to change the  hideCursor() array.</li>
<li>Make a keyboard shortcut in XFCE to the script. I&#8217;ve used <strong>ctrl-tab</strong>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://edwardh.se/2010/02/06/switchscreen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
