<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Lars Werner</title>
	
	<link>http://lars.werner.no</link>
	<description>Projects, articles and personal homepage</description>
	<lastBuildDate>Sun, 29 Jan 2012 21:03:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/LarsWerner" /><feedburner:info uri="larswerner" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Windows 2008 Hyper-V server uptime and ESXi 4.x</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/5XRQzi_traU/</link>
		<comments>http://lars.werner.no/?p=813#comments</comments>
		<pubDate>Tue, 20 Dec 2011 10:20:25 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=813</guid>
		<description><![CDATA[<p>At the beginning of the year I installed a Windows 2008 server running Hyper-V and 5-8 VMs for internal use @ home. This was inital an test to go from ESX 3.x so I converted the vmdk- to vhd-files and booted them up. All of them worked with minor tweaks and have been stable since.</p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=813">Windows 2008 Hyper-V server uptime and ESXi 4.x</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/wEyrdw2QKm54IOeuI1tTh5VZaaA/0/da"><img src="http://feedads.g.doubleclick.net/~a/wEyrdw2QKm54IOeuI1tTh5VZaaA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wEyrdw2QKm54IOeuI1tTh5VZaaA/1/da"><img src="http://feedads.g.doubleclick.net/~a/wEyrdw2QKm54IOeuI1tTh5VZaaA/1/di" border="0" ismap="true"></img></a></p><p>At the beginning of the year I installed a Windows 2008 server running Hyper-V and 5-8 VMs for internal use @ home.<br />
This was inital an test to go from ESX 3.x so I converted the vmdk- to vhd-files and booted them up.<br />
All of them worked with minor tweaks and have been stable since.</p>
<p>Check out the uptime<br />
<div id="attachment_814" class="wp-caption alignnone" style="width: 676px"><img src="http://lars.werner.no/wp-content/uploads/2011/12/ServerUptime.png" alt="" title="Windows 2008 Hyper-V Uptime stats" width="666" height="522" class="size-full wp-image-814" /><p class="wp-caption-text">See the System Boot Time for last boot date</p></div></p>
<p>At post-date the server have been up for 246 days (8 months, 2 days).<br />
Windows is stable and can handle the virtualization as well as Vmware <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My developer VM TBone has been running almost equal amount of time<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/12/Server-Hyper-Vs.png" alt="" title="Windows 2008 Server Hyper-V VMs" width="825" height="555" class="alignnone size-full wp-image-815" /></p>
<p>I&#8217;m now in the process of implementing ESXi 4.x to my alternative server.<br />
Microsoft do not support Linux very well, so my ESXi shall handle Linux from now on <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Wish me luck!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/5XRQzi_traU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=813</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=813</feedburner:origLink></item>
		<item>
		<title>Spotiamp v0.9 released</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/MYJ1_P3joas/</link>
		<comments>http://lars.werner.no/?p=793#comments</comments>
		<pubDate>Tue, 25 Oct 2011 20:29:20 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=793</guid>
		<description><![CDATA[<p>This is a small update for Spotiamp, that ensure unicode support. <p class="wp-caption-text">New colors, just for fun </p></p> <p>Bugupdate: * UNICODE support handling of Artist and title in commercials * Tracks without Artist or Title can be added as commercials * Converts commercials.ini from ANSI to UNICODE silently</p> <p>New features: * Better adsupport handling (after <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=793">Spotiamp v0.9 released</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/_CjnjuxhNC_MVDaA0kGXXq_xFkI/0/da"><img src="http://feedads.g.doubleclick.net/~a/_CjnjuxhNC_MVDaA0kGXXq_xFkI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_CjnjuxhNC_MVDaA0kGXXq_xFkI/1/da"><img src="http://feedads.g.doubleclick.net/~a/_CjnjuxhNC_MVDaA0kGXXq_xFkI/1/di" border="0" ismap="true"></img></a></p><p>This is a small update for Spotiamp, that ensure unicode support.<br />
<div id="attachment_798" class="wp-caption alignnone" style="width: 549px"><img src="http://lars.werner.no/wp-content/uploads/2011/10/SpotiampV09.png" alt="" title="Spotiamp v0.9" width="539" height="309" class="size-full wp-image-798" /><p class="wp-caption-text">New colors, just for fun <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></div></p>
<p>Bugupdate:<br />
* UNICODE support handling of Artist and title in commercials<br />
* Tracks without Artist or Title can be added as commercials<br />
* Converts commercials.ini from ANSI to UNICODE silently</p>
<p>New features:<br />
* Better adsupport handling (after 15 secs the interface are displayed again)</p>
<p>Please download <a href="http://lars.werner.no/?page_id=183" title="Spotiamp Downloadpage">here</a>, note that the Visual Studio 2010 Redistributable Package (x86) is required.</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/MYJ1_P3joas" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=793</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=793</feedburner:origLink></item>
		<item>
		<title>RAM slots on Asus X93SV / K93SV 18,4″ “portable” laptop</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/2pqeK6cj6qk/</link>
		<comments>http://lars.werner.no/?p=782#comments</comments>
		<pubDate>Fri, 21 Oct 2011 06:27:35 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=782</guid>
		<description><![CDATA[<p>I have just bought the Asus X93SV 18,4&#8243; laptop (specs are equal to K93SV) and I wanted to add more ram.</p> <p>When opening the bottom lid I got a surprise; there are only 2 slots and their were filled already with 2x4GB. I start googl&#8217;in and didn&#8217;t find the information as easy as I wanted.</p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=782">RAM slots on Asus X93SV / K93SV 18,4&#8243; &#8220;portable&#8221; laptop</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/9ole7hV6APgxO21hpmnASHxdj68/0/da"><img src="http://feedads.g.doubleclick.net/~a/9ole7hV6APgxO21hpmnASHxdj68/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9ole7hV6APgxO21hpmnASHxdj68/1/da"><img src="http://feedads.g.doubleclick.net/~a/9ole7hV6APgxO21hpmnASHxdj68/1/di" border="0" ismap="true"></img></a></p><p>I have just bought the <a href="http://www.asus.com/Notebooks/Versatile_Performance/K93SV/">Asus X93SV 18,4&#8243; laptop</a> (specs are equal to K93SV) and I wanted to add more ram.</p>
<p>When opening the bottom lid I got a surprise; there are only 2 slots and their were filled already with 2x4GB.<br />
I start googl&#8217;in and didn&#8217;t find the information as easy as I wanted.</p>
<p>Sharing is caring you know, so here is a tip:<br />
<b><font size=4 color=green>Below the keyboard is two free slots!</font></b></p>
<p>You have to dismount the keyboard by following the guide on this picture:<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/10/K93SV-Keyboard-1.jpg" alt="" title="X93SV / K93SV Keyboard dismount for RAM slots" width="1008" height="683" class="alignnone size-full wp-image-783" /><br />
<font size=1>(<a href="http://forum.notebookreview.com/asus/607379-asus-k93sv-request-disassembly-guide.html">Source</a> of picture)</font></p>
<p>Make sure that you unscrew the correct screws, there is a small &#8220;K&#8221; mark in the plastic for them.<br />
You only need to unscrew 2 of them, the third is used to push the keyboard up.<br />
On mine there is a blank metallic screw near the 3,5&#8243; drive and black above the RAM.</p>
<p>Note:<br />
When keyboard is loose, handle with care!<br />
There is a small ribbon-cable that you don&#8217;t need to unplug just to install the RAM.<br />
Just flip the keyboard, install and snap the keyboard back in it place.</p>
<p>Suggestion:<br />
Change the 2,5&#8243; drive with a SSD to experience great speed and less noise, you&#8217;ll never regret that!</p>
<p><span id="more-782"></span><br />
<br/></p>
<p><font color=red>Warranty note:</font></p>
<blockquote><p>
Thank you for contacting ASUS Customer Service.<br />
My name is Daniel and it&#8217;s my pleasure to help you with your problem.</p>
<p>Please be kindly informed that the two other slots are underneath the motherboard and are not accessible except if you want to void the warranty.</p>
<p>We hope we have been of assistance.
</p></blockquote>
<p>As a comment to the support; no you haven&#8217;t been giving me any assitance!<br />
ASUS advertise with 4 RAM slots, but you have to void the warranty to actual get it installed.<br />
Studid and probably illegal marketing of features a normal user cannot reach, be warned!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/2pqeK6cj6qk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=782</wfw:commentRss>
		<slash:comments>34</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=782</feedburner:origLink></item>
		<item>
		<title>Get XBMC tear free on Ubuntu 11.04 (Natty) / 11.10 (Oneiric)</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/seXGkp4-AWE/</link>
		<comments>http://lars.werner.no/?p=771#comments</comments>
		<pubDate>Fri, 14 Oct 2011 13:19:26 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=771</guid>
		<description><![CDATA[<p>If you aren&#8217;t familiar with XBMC, please check out my earlier guides.</p> <p>My hardware is: Asrock ION330 (works great for 720p and 1080p)</p> <p>I have been running XBMC on 8.10 (Intreprid) for quite a while and now I have updated to 11.04 (Natty). Everything works fine, but HEY!, tearing on SD / HD material, argh!!!</p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=771">Get XBMC tear free on Ubuntu 11.04 (Natty) / 11.10 (Oneiric)</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Fj01VHHqik5gFffY0wmX9CMTdBY/0/da"><img src="http://feedads.g.doubleclick.net/~a/Fj01VHHqik5gFffY0wmX9CMTdBY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Fj01VHHqik5gFffY0wmX9CMTdBY/1/da"><img src="http://feedads.g.doubleclick.net/~a/Fj01VHHqik5gFffY0wmX9CMTdBY/1/di" border="0" ismap="true"></img></a></p><p>If you aren&#8217;t familiar with XBMC, please check out my earlier <a href="http://lars.werner.no/?p=175" title="XBMC on ION the way it should work" target="_blank">guides</a>.</p>
<p>My hardware is: <a href="http://www.asrock.com/nettop/overview.us.asp?Model=ION%20330" title="ION330" target="_blank">Asrock ION330</a> (works great for 720p and 1080p)</p>
<p>I have been running XBMC on 8.10 (Intreprid) for quite a while and now I have updated to 11.04 (Natty).<br />
<i>Everything works fine, but HEY!, tearing on SD / HD material, argh!!!</i></p>
<p><strong>Step 1. Getting rid of Unity</strong><br />
Guess I&#8217;m getting old, but I don&#8217;t like to &#8220;search&#8221; or pin my stuff to a bar + many people reported that Unity is a tear problem.<br />
First go to the system settings:<br />
<div id="attachment_772" class="wp-caption alignnone" style="width: 650px"><a href="http://lars.werner.no/wp-content/uploads/2011/10/1.-Systemsettings.png"><img src="http://lars.werner.no/wp-content/uploads/2011/10/1.-Systemsettings-1024x775.png" alt="" title="Systemsettings in ubuntu" width="640" height="484" class="size-large wp-image-772" /></a><p class="wp-caption-text">Goto the systemsettings in ubuntu</p></div></p>
<p>Second to the login screen:<br />
<div id="attachment_774" class="wp-caption alignnone" style="width: 650px"><a href="http://lars.werner.no/wp-content/uploads/2011/10/2.-Loginscreen.png"><img src="http://lars.werner.no/wp-content/uploads/2011/10/2.-Loginscreen-1024x774.png" alt="" title="Change the default session" width="640" height="483" class="size-large wp-image-774" /></a><p class="wp-caption-text">Start the Login Screen function and change the session variable to &quot;Ubuntu Classi&quot;</p></div></p>
<p>With these changes you are rid of Unity and back to the god&#8217;ol Ubuntu.<br />
Tip: You can also make your user automatic login on the Login Screen, check it out while you&#8217;re there.<br />
<font size=1>(Pictures are snagged from <a href="http://scottlinux.com/2011/03/05/ubuntu-11-04-change-from-unity-to-classic-gnome/" target="_blank">here</a>, thanks mate&#8230;)</font></p>
<p><strong>Step 2. Changing the xorg.conf</strong><br />
I tried several tips on how to get the tearing off.<br />
I didn&#8217;t know that the Composite was manadatory to disable on my ION box, but it is&#8230;</p>
<p>To add this open a terminal then write</p>
<blockquote><p>
sudo nano /etc/X11/xorg.conf
</p></blockquote>
<p>Goto the bottom and add the text below.</p>
<blockquote><p>
Section &#8220;Extensions&#8221;<br />
    Option         &#8220;Composite&#8221; &#8220;Disable&#8221;<br />
EndSection
</p></blockquote>
<p>Tip:<br />
While you are in the xorg.conf, why not add all the entries suggested by the XBMC wiki:</p>
<p>http://wiki.xbmc.org/index.php?title=HOW-TO:Install_Ubuntu_and_XBMC_on_Asus_EeeBox_PC_EB1501#Generate_an_xorg.conf_file</p>
<p>Tip 2: Alternative to write the xorg.conf yourself;</p>
<blockquote><p>
sudo nvidia-xconfig -no-composite
</p></blockquote>
<p>Now reboot and get your tearfree VDPAU ION computer to work as expected! <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p></br><br />
</br><br />
<i>Compiz and others, check this out:</i><br />
If you are running Compiz or maybe have a ATI card (or something) please check out <a href="http://ubuntuforums.org/showthread.php?t=1683875&#038;page=1" target="_blank">this post</a></p>
<p></br><br />
</br><br />
Not for the faint heart <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I use the unstable NVIDIA drivers, if you experience any trouble you should try them.<br />
Use <a href="http://askubuntu.com/questions/4983/what-are-ppas-and-how-do-i-use-them/40351#40351" target="_blank">this guide</a> to add a new entry to the repositary, then include this PPA: ppa:ubuntu-x-swat/x-updates<br />
(Get more updates <a href="http://www.ubuntuupdates.org/ppas/27" target="_blank">here</a> and <a href="https://launchpad.net/%7Eubuntu-x-swat/+archive/x-updates" target="_blank">here</a>)</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/seXGkp4-AWE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=771</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=771</feedburner:origLink></item>
		<item>
		<title>Get access to Pandora, Hulu and Netflix through portable software!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/90NdTGfSr8Q/</link>
		<comments>http://lars.werner.no/?p=740#comments</comments>
		<pubDate>Fri, 19 Aug 2011 16:54:51 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=740</guid>
		<description><![CDATA[<p>When you live in Norway you are looking over the pond and say; Internet is better in America.</p> <p>They have services like Hulu.com, Pandora.com and Netflix.com that we don&#8217;t.</p> <p>Now how do you get in contact on these services without installing any TAPI devices on a computer? (like eg hotspotshield.com or Hamachi does)</p> <p>The answer: <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=740">Get access to Pandora, Hulu and Netflix through portable software!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/pvUyF7bhUSXqUyeQkCeTHJKnY3g/0/da"><img src="http://feedads.g.doubleclick.net/~a/pvUyF7bhUSXqUyeQkCeTHJKnY3g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pvUyF7bhUSXqUyeQkCeTHJKnY3g/1/da"><img src="http://feedads.g.doubleclick.net/~a/pvUyF7bhUSXqUyeQkCeTHJKnY3g/1/di" border="0" ismap="true"></img></a></p><p>When you live in Norway you are looking over the pond and say; Internet is better in America.</p>
<p>They have services like <a href="http://www.hulu.com" title="Hulu" target="_blank">Hulu.com</a>, <a href="http://www.pandora.com" target="_blank">Pandora.com</a> and <a href="http://www.netflix.com" target="_blank">Netflix.com</a> that we don&#8217;t.</p>
<p>Now how do you get in contact on these services without installing any TAPI devices on a computer? (like eg hotspotshield.com or Hamachi does)</p>
<p><strong>The answer: </strong><a href="http://ultrasurf.us/" title="UltraSurf" target="_blank">UltraSurf.com</a></p>
<p>For a visual guide on how it works check out this video:<br />
<iframe width="420" height="345" src="http://www.youtube.com/embed/D6B-OkCGr9s" frameborder="0" allowfullscreen></iframe></p>
<p>I had successfully connected to all services and love that Pandora is back on my pc! <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/90NdTGfSr8Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=740</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=740</feedburner:origLink></item>
		<item>
		<title>Acrobat MDI – ish v0.7.1.8 released!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/_B1Ctnh0CAk/</link>
		<comments>http://lars.werner.no/?p=708#comments</comments>
		<pubDate>Sat, 13 Aug 2011 22:11:29 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Acrobat MDI]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=708</guid>
		<description><![CDATA[<p>What is this? Acrobat MDI-ish is a wrapper application that take all of your Acrobat Reader/Write windows and present them into a single window. Take back the control over your taskbar again!</p> <p>New features * Tab-browser feature (all windows are forced maximized) * Autostart with Windows (not when portable) * Installer * Some bugfixes with <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=708">Acrobat MDI – ish v0.7.1.8 released!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/blyytSDZEB4yvx8ywb6ltRbSdkQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/blyytSDZEB4yvx8ywb6ltRbSdkQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/blyytSDZEB4yvx8ywb6ltRbSdkQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/blyytSDZEB4yvx8ywb6ltRbSdkQ/1/di" border="0" ismap="true"></img></a></p><p><strong>What is this?</strong><br />
Acrobat MDI-ish is a wrapper application that take all of your Acrobat Reader/Write windows and present them into a single window.<br />
Take back the control over your taskbar again!</p>
<p><strong>New features</strong><br />
* Tab-browser feature (all windows are forced maximized)<br />
* Autostart with Windows (not when portable)<br />
* Installer<br />
* Some bugfixes with systray and hide windows</p>
<p><strong>Download</strong><br />
Please download the updated version of Acrobat MDI-ish from <a href="http://lars.werner.no/?page_id=595">this page</a></p>
<p><strong>Earlier included features</strong><br />
* Gets the MDI feature back to your Acrobat!<br />
* Multimonitor support with MDI!<br />
* Systray control<br />
* Multiple looks on the frame; Windows 2000/XP, Office 2003 / 2007</p>
<p><strong>Screenshot of new installer and gui</strong><br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/AcrobatMDIIshInstaller.png" alt="" title="AcrobatMDIIshInstaller" width="503" height="386" class="alignnone size-full wp-image-720" /><br />
<img src="http://lars.werner.no/wp-content/uploads/2011/06/MainWindow.png" alt="" title="Acrobat MDI-ish main window" width="626" height="673" /></p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/_B1Ctnh0CAk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=708</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=708</feedburner:origLink></item>
		<item>
		<title>Hide, minimize or maximize your CFrameWndEx based window at start (MFC 10.0 tip)</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/DXFyybcmOko/</link>
		<comments>http://lars.werner.no/?p=724#comments</comments>
		<pubDate>Sat, 13 Aug 2011 21:27:14 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[MFC]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=724</guid>
		<description><![CDATA[<p>After changing to Visual Studio 2010 many of my old ways of doing things didn&#8217;t work well anymore.</p> <p>Recently I had a &#8220;SDI&#8221; (not really SDI since it doesn&#8217;t use the Doc/View way) that needed to be minimized @ startup. My good old way used the ActivateFrame(int nCmdShow) and setting to SW_HIDE / SW_MINIMIZE / <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=724">Hide, minimize or maximize your CFrameWndEx based window at start (MFC 10.0 tip)</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/WqM_8_kulx2KsSkvQlEx9dGT6sU/0/da"><img src="http://feedads.g.doubleclick.net/~a/WqM_8_kulx2KsSkvQlEx9dGT6sU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/WqM_8_kulx2KsSkvQlEx9dGT6sU/1/da"><img src="http://feedads.g.doubleclick.net/~a/WqM_8_kulx2KsSkvQlEx9dGT6sU/1/di" border="0" ismap="true"></img></a></p><p>After changing to Visual Studio 2010 many of my old ways of doing things didn&#8217;t work well anymore.</p>
<p>Recently I had a &#8220;SDI&#8221; (not really SDI since it doesn&#8217;t use the Doc/View way) that needed to be minimized @ startup.<br />
My good old way used the ActivateFrame(int nCmdShow) and setting to SW_HIDE / SW_MINIMIZE / SW_MAXIMIZE didn&#8217;t work at all.<br />
<font size=1>(The &#8220;SDI&#8221; uses the new visual styles, so I guess we don&#8217;t have full control over the ShowWindow() being called)</font></p>
<p>First in your <strong>MainFrm.h</strong> file, add this:<br />
<code><br />
class CMainFrame : public CFrameWndEx<br />
{<br />
//(...)<br />
public:<br />
BOOL bIsHidden;<br />
//(...)<br />
};<br />
</code></p>
<p>Then in the <strong>MainFrm.cpp</strong><br />
<code><br />
// CMainFrame construction/destruction<br />
CMainFrame::CMainFrame()<br />
{<br />
	// TODO: add member initialization code here<br />
	bIsHidden = TRUE;<br />
}</p>
<p>//This is where you block the window for showing<br />
void CMainFrame::OnWindowPosChanging(WINDOWPOS* lpwndpos)<br />
{<br />
	CFrameWndEx::OnWindowPosChanging(lpwndpos);</p>
<p>	//When hidden we remove all the showwindow parameters (giving you the power back)<br />
	if(bIsHidden)<br />
		lpwndpos->flags &#038;= ~SWP_SHOWWINDOW ;<br />
}<br />
</code></p>
<p>Finally in your CWinAppEx derivated class<br />
<code><br />
BOOL CAcrobatMDIishApp::InitInstance()<br />
{<br />
//(...)<br />
	pFrame->LoadFrame(IDR_MAINFRAME,<br />
		WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,<br />
		NULL);</p>
<p>	// The one and only window has been initialized, minimize it (or maximize it).<br />
  	pFrame->ShowWindow(SW_MINIMIZE); //Comment these two out to keep the windows hidden (like a hide to systray function for instance)<br />
  	pFrame->UpdateWindow();<br />
}<br />
</code></p>
<p>It is a simple way to control the visibilty of &#8220;SDI&#8221;/&#8221;MDI&#8221; application based on the CFrameWndEx and CWinAppEx classes.</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/DXFyybcmOko" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=724</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=724</feedburner:origLink></item>
		<item>
		<title>Adito guide: Get RDP everywhere with Adito!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/UQzqrAJtP8E/</link>
		<comments>http://lars.werner.no/?p=640#comments</comments>
		<pubDate>Wed, 10 Aug 2011 19:17:32 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Adito (OpenVPN ALS)]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[adito]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[rdp]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=640</guid>
		<description><![CDATA[<p></p> <p>Adito is based on Java and basicly the Adito-client works &#8220;everywhere&#8221;. This can be very handy when you are on a internet-cafe or just borrowing a computer.</p> <p>This guide will show you step by step on how to setup Remote Desktop (RDP) to your Adito server.</p> <p>If you are not familiar with RDP, it <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=640">Adito guide: Get RDP everywhere with Adito!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7Rz8Z5HFDTFrN6CSX3thQqI8HJ8/0/da"><img src="http://feedads.g.doubleclick.net/~a/7Rz8Z5HFDTFrN6CSX3thQqI8HJ8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7Rz8Z5HFDTFrN6CSX3thQqI8HJ8/1/da"><img src="http://feedads.g.doubleclick.net/~a/7Rz8Z5HFDTFrN6CSX3thQqI8HJ8/1/di" border="0" ismap="true"></img></a></p><p><img src="http://lars.werner.no/wp-content/uploads/2011/08/AditoHeaderExplaination-1024x617.png" alt="" title="AditoHeaderExplaination" width="640" height="385" class="alignnone size-large wp-image-658" /></p>
<p>Adito is based on Java and basicly the Adito-client works &#8220;everywhere&#8221;.<br />
This can be very handy when you are on a internet-cafe or just borrowing a computer.</p>
<p><em><font size=5>This guide will show you step by step on how to setup Remote Desktop (RDP) to your Adito server.</font></em></p>
<p>If you are not familiar with RDP, it can be simply explained; it shows your desktop, wherever you are on the internet.</p>
<p>Before you can begin, please read this guide on how to enable RDP for <a href="http://www.howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/">Windows 7</a>/<a href="http://www.online-tech-tips.com/windows-xp/how-to-setup-remote-desktop-on-windows-xp/">XP</a>.<br />
<font size=1>Adito have also VNC support (and others), so both Linux and Mac can use the same guide, only by using VNC application instead.</font></p>
<p><span id="more-640"></span></p>
<p><strong>Step 1 &#8211; Install Adito as server</strong><br />
Please see this <a href="http://lars.werner.no/?page_id=162">install guide</a> using the windows installer<br />
If you prefer the SVN version, please <a href="http://lars.werner.no/?page_id=515">download it from here</a></p>
<p>Please note that you have to port forward 443 (or any other port you selected) to this computer on your router, so the rest of the world can see your Adito server.<br />
Find your router <a href="http://portforward.com/">here</a> if you don&#8217;t know how&#8230;<br />
Use a dns-service like <a href="http://no-ip.com">no-ip.com</a> to give your Adito server a remember-able-name <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Step 2 &#8211; Installing RDP extension</strong><br />
The Adito client can publish software to download and execute.<br />
Typical portable software is prefered, since clients does not always have registry write access.</p>
<p>First, <a href="http://lars.werner.no/adito-application-advancednativerdpwin32.zip">download the RDP extension</a>. It uses the RDPsso.exe command from Microsoft and is based on the old less secure RDP.<br />
But you are connecting through a SSL encrypted tunnel, so it is considered &#8220;safe&#8221;. </p>
<p>If you are not in managementconsole press the changebutton now<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/ManagementConsole.png" alt="" title="ManagementConsole" width="229" height="108" class="alignnone size-full wp-image-653" /></p>
<p>Press &#8220;Extensions&#8221; in the &#8220;Configuration&#8221; tab<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Extension-Manager.png" alt="" title="Extension Manager" width="186" height="155" class="alignnone size-full wp-image-649" /></p>
<p>Then press the &#8220;Upload Extension&#8221;.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/UploadExtension.png" alt="" title="UploadExtension" width="195" height="126" class="alignnone size-full wp-image-648" /></p>
<p>Press the Browse-button and select the adito-application-advancednativerdpwin32.zip file, press &#8220;Upload&#8221;<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/UploadExtensionFileDialog.png" alt="" title="UploadExtensionFileDialog" width="474" height="115" class="alignnone size-full wp-image-651" /></p>
<p>You should now have the Microsoft RDP client installed<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Microsoft-RDP-Client.png" alt="" title="Microsoft RDP Client" width="259" height="363" class="alignnone size-full wp-image-655" />
</p>
<p><strong>Step 3 &#8211; Create an Application</strong><br />
Select &#8220;Application&#8221; under the Tunnels tab<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Applications.png" alt="" title="Applications" width="149" height="100" class="alignnone size-full wp-image-663" /></p>
<p>Press the &#8220;Create Application shortcut&#8221;<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/CreateApplication.png" alt="" title="CreateApplication" width="224" height="177" class="alignnone size-full wp-image-664" /></p>
<p>Call it &#8220;Adito server&#8221; and add a short description<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Application-info.png" alt="" title="Application info" width="715" height="452" class="alignnone size-full wp-image-666" /></p>
<p>Press next and select the RDP application.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/RDP-client-selected.png" alt="" title="RDP client selected" width="724" height="460" class="alignnone size-full wp-image-667" /></p>
<p>Press next and enter 127.0.0.1 as host, change other options if you like.<br />
Default RDP port is 3389 and is usally left alone<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Application-options1.png" alt="" title="Application options" width="717" height="452" class="alignnone size-full wp-image-670" /><br />
<font size=1>(Note: You aren&#8217;t restricted to local-ips or -hosts here, you can also use internet hosts. Some people use the Adito server as the only entrypoint on their firewall)</font></p>
<p>Press next and publish it to Everyone group.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Application-access-restrictions.png" alt="" title="Application access restrictions" width="721" height="457" class="alignnone size-full wp-image-671" /></p>
<p>Press next and look over the summary, then press Finish.</p>
<p><img src="http://lars.werner.no/wp-content/uploads/2011/08/Application-finished.png" alt="" title="Application finished" width="717" height="455" class="alignnone size-full wp-image-672" /></p>
<p>You have now published an app called &#8220;Adito server&#8221; to the group &#8220;Everyone&#8221;.<br />
That means that every user that you have, will gain access to this app.<br />
You can create as many applications as you need, just repeat the wizard <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Step 4 &#8211; Testing the RDP</strong><br />
Connect to your Adito server and run the client.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/StartAditoClient.png" alt="" title="StartAditoClient" width="282" height="188" class="alignnone size-full wp-image-676" /><br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Adito-client-running.png" alt="" title="Adito client running" width="400" height="142" class="alignnone size-full wp-image-680" /></p>
<p>Rightclick on the icon in systray and select &#8220;Adito server&#8221;.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Adito-client-running-the-application.png" alt="" title="Adito client running the application" width="219" height="119" class="alignnone size-full wp-image-677" /></p>
<p>The client will now open a temporary port, download the RDP application and connect.<br />
<img src="http://lars.werner.no/wp-content/uploads/2011/08/Adito-application-random-client-port.png" alt="" title="Adito application random client port" width="337" height="92" class="alignnone size-full wp-image-681" /></p>
<p>If all succeded you&#8217;ll be presented with a login screen.</p>
<p><img src="http://lars.werner.no/wp-content/uploads/2011/08/RDP-Login-screen.png" alt="" title="RDP Login screen" width="703" height="490" class="alignnone size-full wp-image-682" /></p>
<p>Next time you&#8217;re at an Internet-cafe or the library, try running the client. It will probably work <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><font size=3><strong>Tip:</strong> If you don&#8217;t have access to the Agent systray-icon;<br />
Just run applications through Resource -> Applications by pressing the application you want</font></p>
<p><strong>Errorhandling checklist</strong><br />
1. Check that you enabled RDP?<br />
2. Check that the Windows firewall doesn&#8217;t block port 3389<br />
3. Can others in the same network connect to RDP on the server, without using Adito? (local to local)<br />
4. When using Windows Vista/7 you might have decrease the encryption to let old clients connect (* as described in the guide above)<br />
5. Some corporative firewalls block self-signed HTTPS-certificates. If you can&#8217;t get through to your Adito loginscreen and get an error regarding certificate; buy a cheap cert from <a href="http://www.namecheap.com/ssl-certificates/comodo/positivessl-certificate.aspx">namecheap.com</a><br />
More info regarding, please read the comments in the Installer page!</p>
<p><strong>Hack tip</strong><br />
An extension in Adito is basicly just a zip-file with a xml-config and the application.<br />
If you want to create your own, just download extensions from <a href="http://adito.werner.no/appstore/">adito.werner.no</a> and check out the config.</p>
<p>I have made the Firefox portable for instance available for users.<br />
That way you can use your favorite browser without installing it (not published cause of huge download-size and special configs)</p>
<p>Remember that the app needs to be registry <em>independent</em>, since not all clients have reg-write access.</p>
<p><strong>Simple extension</strong><br />
This sample is from the <a href="http://adito.werner.no/appstore/WinUtil/1.0.0/WinUtil.zip">WinUtil</a></p>
<p><code><br />
&lt;bundle version=&#34;1.0.0&#34; name=&#34;WinUtil&#34; id=&#34;WinUtil&#34; license=&#34;Freeware&#34; type=&#34;executable&#34; requiredHostVersion=&#34;0.9.0&#34; order=&#34;99999&#34;&gt;</p>
<p>	&lt;description&gt;<br />
		Gives you the three HAT buttons on top of the screen.<br />
		These buttons will hide, set always on top and make windows transparent.<br />
		A pleasure adding this to the SSL-explorer list <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
	&lt;/description&gt;</p>
<p> &lt;extension type=&#34;executable&#34; name=&#34;Windows Util&#34; extension=&#34;WinUtil&#34;&gt;<br />
	&lt;description&gt;<br />
		Gives you the three HAT buttons on top of the screen.<br />
		These buttons will hide, set always on top and make windows transparent.<br />
		A pleasure adding this to the SSL-explorer list <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
	&lt;/description&gt;</p>
<p>	&lt;files&gt;<br />
		&lt;file&gt;WinUtil.exe&lt;/file&gt;<br />
		&lt;file&gt;WinUtil.cfg&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/A-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/A-UP.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/H-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/H-UP.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/T-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows Standard/T-UP.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/A-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/A-UP.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/H-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/H-UP.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/T-DOWN.bmp&lt;/file&gt;<br />
		&lt;file&gt;gfx/Windows XP/T-UP.bmp&lt;/file&gt;<br />
	&lt;/files&gt;</p>
<p>	&lt;executable program=&#34;${client:installDir}/WinUtil.exe&#34;&gt;<br />
	&lt;/executable&gt;</p>
<p> &lt;/extension&gt;<br />
&lt;/bundle&gt;<br />
</code></p>
<p>All I needed todo was to create a filelist included and what todo when the program was downloaded.<br />
There are several options on how to create extensions, please read the <a href="http://sourceforge.net/apps/trac/openvpn-als/wiki/application_extension_xml">wiki</a> for more options and functions!
</p>
<p></p>
<p><em>If you create portable packages, please let me know and I&#8217;ll host them @ adito.werner.no after testing it</em></p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/UQzqrAJtP8E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=640</wfw:commentRss>
		<slash:comments>17</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=640</feedburner:origLink></item>
		<item>
		<title>Load a HBITMAP into SFML sf::Image container</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/LGX2vkJeZi0/</link>
		<comments>http://lars.werner.no/?p=633#comments</comments>
		<pubDate>Wed, 06 Jul 2011 22:01:59 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SFML]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=633</guid>
		<description><![CDATA[<p>I have been working on a SFML project for quite some time. This project are hookup up with existing Win32 coded stuff, so I had to handle HBITMAP.</p> <p>After hours of searching and trial&#038;error, I got this solution. The LoadFromMemory-part didn&#8217;t work so well, so I decided to get pixels. It works for me, but <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=633">Load a HBITMAP into SFML sf::Image container</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/k7ReWvKiMQnwt5x6ST7Krl_qjjk/0/da"><img src="http://feedads.g.doubleclick.net/~a/k7ReWvKiMQnwt5x6ST7Krl_qjjk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/k7ReWvKiMQnwt5x6ST7Krl_qjjk/1/da"><img src="http://feedads.g.doubleclick.net/~a/k7ReWvKiMQnwt5x6ST7Krl_qjjk/1/di" border="0" ismap="true"></img></a></p><p>I have been working on a <a href="http://www.sfml-dev.org/">SFML</a> project for quite some time.<br />
This project are hookup up with existing Win32 coded stuff, so I had to handle HBITMAP.</p>
<p>After hours of searching and trial&#038;error, I got this solution.<br />
The LoadFromMemory-part didn&#8217;t work so well, so I decided to get pixels.<br />
It works for me, but should have more checks, use at own risk.</p>
<p><code lang="cpp"><br />
//////////////////////////////////////////////////////////////////////////<br />
// Function created by: Lars Werner - http://lars.werner.no<br />
//////////////////////////////////////////////////////////////////////////<br />
// Inputs:	[in] HBITMAP hBitmap = A HBITMAP handle<br />
//			[out] sf::Image *pPicture = A image in SFML as pointer<br />
//<br />
//////////////////////////////////////////////////////////////////////////<br />
// Return:	True if loaded, False if not!<br />
//			The pPicture is the variable set and to be used further on<br />
//////////////////////////////////////////////////////////////////////////<br />
// Version: 1.0 = Inital Release<br />
//////////////////////////////////////////////////////////////////////////<br />
bool SFMLLoadHBitmapAsImage(HBITMAP hBitmap, sf::Image *pPicture)<br />
{<br />
	//Create a DC to get hBitmap information<br />
	HDC hDC = GetDC( ::GetDesktopWindow() );</p>
<p>	//Create BITMAPINFO variable, set size<br />
	BITMAPINFO MyBMInfo = {0};<br />
	MyBMInfo.bmiHeader.biSize = sizeof( MyBMInfo.bmiHeader );</p>
<p>	//Get the BITMAPINFO structure from the bitmap<br />
	if( 0 == GetDIBits(hDC, hBitmap, 0, 0, NULL, &#038;MyBMInfo, DIB_RGB_COLORS))<br />
	{<br />
		// error handling<br />
		return false;<br />
	}</p>
<p>	//Create the bitmap pixel array each element is [b,g,r]<br />
	BYTE* lpPixels = new BYTE[MyBMInfo.bmiHeader.biSizeImage];</p>
<p>	//Setting up the structure of the buffer to be received<br />
 	MyBMInfo.bmiHeader.biCompression = BI_RGB;  // No-compression</p>
<p>	//Now get the actual data from the picture<br />
	if (0 == GetDIBits(hDC, hBitmap, 0, MyBMInfo.bmiHeader.biHeight, (LPVOID)lpPixels, &#038;MyBMInfo, DIB_RGB_COLORS))<br />
	{<br />
		// error handling<br />
		return false;<br />
	}</p>
<p>	//Now create an array of SFML pixels we want to fill<br />
	sf::Uint8 *lpPixelWithAlpha = new sf::Uint8[ MyBMInfo.bmiHeader.biSizeImage + (MyBMInfo.bmiHeader.biSizeImage/3)/3 ]; //Add room for alpha</p>
<p>	//Loop through each pixel, with steps of four RGBA!<br />
	for(int x=0;x<MyBMInfo.bmiHeader.biSizeImage;x+=4)<br />
	{<br />
		lpPixelWithAlpha[x] = lpPixels[x+2];	//lpPixels = r<br />
		lpPixelWithAlpha[x+1] = lpPixels[x+1];	//lpPixels = g<br />
		lpPixelWithAlpha[x+2] = lpPixels[x];	//lpPixels = b<br />
		lpPixelWithAlpha[x+3] = 255;			//Nada alpha (just to adjust if you like)<br />
	}</p>
<p>	//Remove old DIBsection<br />
	delete[] lpPixels;</p>
<p>	//Load picture, now with correct pixels and alpha channel<br />
	if( false == pPicture->LoadFromPixels(MyBMInfo.bmiHeader.biWidth, MyBMInfo.bmiHeader.biHeight, lpPixelWithAlpha))<br />
	{<br />
		// error handling<br />
		return false;<br />
	}</p>
<p>	//Remove the pixels with alphachannel<br />
	delete[] lpPixelWithAlpha;</p>
<p>	//Release the DC<br />
	ReleaseDC(::GetDesktopWindow(), hDC);</p>
<p>	//Notify ok!<br />
	return true;<br />
}</p>
<p>//Create a container for the picture<br />
sf::Image m_mypicture;</p>
<p>//Get a HBITMAP (see function from before)<br />
HBITMAP hBitmap = ScreenShot( http://lars.werner.no/?p=627 <--- function and parameters here );</p>
<p>//Run the function<br />
if( false == SFMLLoadHBitmapAsImage(hBitmap, &#038;my_picture) )<br />
{<br />
// error handling<br />
}</p>
<p>//Load your image into the sprite<br />
sf::Sprite m_mysprite.SetImage(m_mypicture);</p>
<p>//The DIB section begins with the last pixels at the beginning.<br />
//Since SFML have flip-functions I didn't care to fix it <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
m_mysprite.FlipY(true);<br />
</code></p>
<p>Any comments, errors or bad design, please let me know in the comment section!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/LGX2vkJeZi0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=633</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=633</feedburner:origLink></item>
		<item>
		<title>Take a screenshot of any given HWND!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/hT1dLv0bea8/</link>
		<comments>http://lars.werner.no/?p=627#comments</comments>
		<pubDate>Wed, 06 Jul 2011 21:16:57 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=627</guid>
		<description><![CDATA[<p>Currently I&#8217;m working on a project that uses screenshots, and I just wanted to share this snippet.</p> <p>////////////////////////////////////////////////////////////////////////// // Function created by: Lars Werner - http://lars.werner.no ////////////////////////////////////////////////////////////////////////// // Inputs: HWND hParent = the window we want to get DC from, eg // ::GetDesktopWindow(); // int x = x-position of the screen // int y = <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=627">Take a screenshot of any given HWND!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/2lK-UFq-qI1K6AgS5LubhJWAcwc/0/da"><img src="http://feedads.g.doubleclick.net/~a/2lK-UFq-qI1K6AgS5LubhJWAcwc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2lK-UFq-qI1K6AgS5LubhJWAcwc/1/da"><img src="http://feedads.g.doubleclick.net/~a/2lK-UFq-qI1K6AgS5LubhJWAcwc/1/di" border="0" ismap="true"></img></a></p><p>Currently I&#8217;m working on a project that uses screenshots, and I just wanted to share this snippet.</p>
<p><code lang="cpp">//////////////////////////////////////////////////////////////////////////<br />
// Function created by: Lars Werner - http://lars.werner.no<br />
//////////////////////////////////////////////////////////////////////////<br />
// Inputs:	HWND hParent = the window we want to get DC from, eg<br />
//			               ::GetDesktopWindow();<br />
//			int x = x-position of the screen<br />
//			int y = y-position of the screen<br />
//			int nWidth = Width of the screenshot<br />
//			int nHeight = Height of the screenshot<br />
//<br />
//////////////////////////////////////////////////////////////////////////<br />
// Return:	HBITMAP = Handle isn't deleted in function, please use<br />
//			          DeleteObject() when finished with object!<br />
//////////////////////////////////////////////////////////////////////////<br />
// Version: 1.0 = Inital Release<br />
//////////////////////////////////////////////////////////////////////////<br />
HBITMAP ScreenShot(HWND hParent, int x, int y, int nWidth, int nHeight)<br />
{<br />
	//Get a DC from the parent window<br />
	HDC hDC = GetDC(hParent);</p>
<p>	//Create a memory DC to store the picture to<br />
	HDC hMemDC = CreateCompatibleDC(hDC);</p>
<p>	//Create the actual picture<br />
	HBITMAP hBackground = CreateCompatibleBitmap(hDC, nWidth, nHeight );</p>
<p>	//Select the object and store what we got back<br />
	HBITMAP hOld = (HBITMAP)SelectObject(hMemDC, hBackground);</p>
<p>	//Now do the actually painting into the MemDC (result will be in the selected object)<br />
	//Note: We ask to return on 0,0,Width,Height and take a blit from x,y<br />
	BitBlt(hMemDC, 0, 0, nWidth, nHeight, hDC, x, y, SRCCOPY);</p>
<p>	//Restore the old bitmap (if any)<br />
	SelectObject(hMemDC, hOld);</p>
<p>	//Release the DCs we created<br />
	ReleaseDC(hParent, hMemDC);<br />
	ReleaseDC(hParent, hDC);</p>
<p>	//Return the picture (not a clean method, but you get the drill)<br />
	return hBackground;<br />
}</code></p>
<p>Any comments, error or bad design, please let me know in the comments!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/hT1dLv0bea8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=627</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=627</feedburner:origLink></item>
		<item>
		<title>Acrobat MDI – ish v0.5.0.1 released!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/_kix3R5b-iQ/</link>
		<comments>http://lars.werner.no/?p=618#comments</comments>
		<pubDate>Sun, 12 Jun 2011 22:02:42 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Acrobat MDI]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=618</guid>
		<description><![CDATA[<p>What is this? Acrobat MDIish is a wrapper that snatch all of you Acrobat windows and present them into a single window. A quick and dirty way to get MDI support back! </p> <p>Download Please download Acrobat MDI-ish from this page</p> <p>Screenshot </p> <p>Features * Gets the MDI feature back to your Acrobat! * Multimonitor <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=618">Acrobat MDI &#8211; ish v0.5.0.1 released!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/L81pdrEz2hu6-1nGA_gUghZwol4/0/da"><img src="http://feedads.g.doubleclick.net/~a/L81pdrEz2hu6-1nGA_gUghZwol4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/L81pdrEz2hu6-1nGA_gUghZwol4/1/da"><img src="http://feedads.g.doubleclick.net/~a/L81pdrEz2hu6-1nGA_gUghZwol4/1/di" border="0" ismap="true"></img></a></p><p><b>What is this?</b><br />
Acrobat MDIish is a wrapper that snatch all of you Acrobat windows and present them into a single window.<br />
A quick and dirty way to get MDI support back! <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><b>Download</b><br />
Please download Acrobat MDI-ish from <a href="http://lars.werner.no/?page_id=595">this page</a></p>
<p><b>Screenshot</b><br />
<img src="http://lars.werner.no/wp-content/uploads/2011/06/MainWindow.png" alt="" title="Acrobat MDI-ish main window" width="626" height="673" class="alignnone size-full wp-image-599" /></p>
<p><b>Features</b><br />
* Gets the MDI feature back to your Acrobat!<br />
* Multimonitor support with MDI!<br />
* Systray control so you can easily show/hide windows<br />
* Multiple looks on the frame; Windows 2000/XP, Office 2003 / 2007</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/_kix3R5b-iQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=618</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=618</feedburner:origLink></item>
		<item>
		<title>Follow lars.werner.no on Facebook!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/XOjySDFCawc/</link>
		<comments>http://lars.werner.no/?p=590#comments</comments>
		<pubDate>Sat, 11 Jun 2011 14:32:42 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=590</guid>
		<description><![CDATA[<p>Hi all!</p> <p>So many users are on Facebook these days and I haven&#8217;t really been a fan. But I have to move with the masses and the site is now ready for Facebook!</p> <p>If you want to follow the site, press the like button below </p> <p>Why do so? * Every post published on site <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=590">Follow lars.werner.no on Facebook!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/OZf2O5vtqr5KMrmLFAiELOK9O40/0/da"><img src="http://feedads.g.doubleclick.net/~a/OZf2O5vtqr5KMrmLFAiELOK9O40/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OZf2O5vtqr5KMrmLFAiELOK9O40/1/da"><img src="http://feedads.g.doubleclick.net/~a/OZf2O5vtqr5KMrmLFAiELOK9O40/1/di" border="0" ismap="true"></img></a></p><p>Hi all!</p>
<p>So many users are on Facebook these days and I haven&#8217;t really been a fan. But I have to move with the masses and the site is now ready for Facebook!</p>
<p>If you want to follow the site, press the like button below<br />
<iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FLars-Werner-Projects-articles-and-personal-homepage%2F217054918314560&amp;width=600&amp;colorscheme=light&amp;show_faces=false&amp;border_color=%23ccc&amp;stream=true&amp;header=true&amp;height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:600px; height:250px;" allowTransparency="true"></iframe></p>
<p><strong>Why do so?</strong><br />
* Every post published on site will be available<br />
* Stuff that aren&#8217;t visible in front (like page updates).<br />
* Quick way to get in contact with the developer<br />
* Tag the wall with tips and hacks, if you got one!</p>
<p>See you there <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/XOjySDFCawc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=590</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=590</feedburner:origLink></item>
		<item>
		<title>Silentlaunch updated to v2!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/bJ5yl1C4X2k/</link>
		<comments>http://lars.werner.no/?p=586#comments</comments>
		<pubDate>Sat, 11 Jun 2011 08:14:48 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=586</guid>
		<description><![CDATA[<p>The Silentlaunch has been updated to v2, please download it here</p> <p>New features: * Enviroment variables, like %systemroot%, %programfiles% * Configfile is based on %homedrive% and not hardcoded to C:\ * Recompiled using Visual Studio 2010, c++, win32. Source code available!</p> <p>SilentLaunch could be used to replace a shell and usally a HTPC box with <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=586">Silentlaunch updated to v2!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7jHyJ9HpHhKC_H3ghxr8EgFGxrs/0/da"><img src="http://feedads.g.doubleclick.net/~a/7jHyJ9HpHhKC_H3ghxr8EgFGxrs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7jHyJ9HpHhKC_H3ghxr8EgFGxrs/1/da"><img src="http://feedads.g.doubleclick.net/~a/7jHyJ9HpHhKC_H3ghxr8EgFGxrs/1/di" border="0" ismap="true"></img></a></p><p>The Silentlaunch has been updated to v2, please download it <a href="http://lars.werner.no/?p=117">here</a></p>
<p>New features:<br />
* Enviroment variables, like %systemroot%, %programfiles%<br />
* Configfile is based on %homedrive% and not hardcoded to C:\<br />
* Recompiled using Visual Studio 2010, c++, win32. Source code available!</p>
<p>SilentLaunch could be used to replace a shell and usally a HTPC box with XBMC, Boxee or similar can take advantage of this!</p>
<p>If you need help setting it up, just post a comment! </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/bJ5yl1C4X2k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=586</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=586</feedburner:origLink></item>
		<item>
		<title>Adito (OpenVPN ALS) v0.9.1 SVN R706 Windows installer released</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/_b_FsRDoIyk/</link>
		<comments>http://lars.werner.no/?p=565#comments</comments>
		<pubDate>Fri, 29 Apr 2011 21:25:18 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Adito (OpenVPN ALS)]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[adito]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=565</guid>
		<description><![CDATA[<p>Earlier I asked people to use my NSIS script to make a SVN-release of Adito 0.9.1 Nobody responded on that, but now I have made it myself </p> <p>The latest SVN revision is 706 and has been so for the laste months.</p> <p>Please take a look on the Installer &#8211; SVN page for more info <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=565">Adito (OpenVPN ALS) v0.9.1 SVN R706 Windows installer released</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7CV7XQBypfxMtwAPzQwaj2wux8E/0/da"><img src="http://feedads.g.doubleclick.net/~a/7CV7XQBypfxMtwAPzQwaj2wux8E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7CV7XQBypfxMtwAPzQwaj2wux8E/1/da"><img src="http://feedads.g.doubleclick.net/~a/7CV7XQBypfxMtwAPzQwaj2wux8E/1/di" border="0" ismap="true"></img></a></p><p>Earlier I asked people to use my NSIS script to make a SVN-release of Adito 0.9.1<br />
Nobody responded on that, but now I have made it myself <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The latest SVN revision is 706 and has been so for the laste months.</p>
<p>Please take a look on the <a href="http://lars.werner.no/?page_id=515">Installer &#8211; SVN</a> page for more info<br />
PS, for those who hate the x1000 bug&#8230;. It is now fixed <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/_b_FsRDoIyk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=565</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=565</feedburner:origLink></item>
		<item>
		<title>Need of a jobrotation calendar?</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/SMsqegZ80RU/</link>
		<comments>http://lars.werner.no/?p=202#comments</comments>
		<pubDate>Tue, 26 Oct 2010 21:01:20 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[offshore]]></category>
		<category><![CDATA[onshore]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[schedule]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=202</guid>
		<description><![CDATA[<p class="wp-caption-text">Work rotation calendar</p> <p>If you ever need a simple calendar to show your work rotation, please visit http://kalender.werner.no/rotasjon.asp</p> <p>Many people I know work two weeks on, two weeks off; this calendar is a quick way display such a rotation. You can send people links, here is my rotation and they know if you&#8217;re on <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=202">Need of a jobrotation calendar?</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/qSFEu1JhyrcyCUilQEnm4KoFwco/0/da"><img src="http://feedads.g.doubleclick.net/~a/qSFEu1JhyrcyCUilQEnm4KoFwco/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qSFEu1JhyrcyCUilQEnm4KoFwco/1/da"><img src="http://feedads.g.doubleclick.net/~a/qSFEu1JhyrcyCUilQEnm4KoFwco/1/di" border="0" ismap="true"></img></a></p><div id="attachment_265" class="wp-caption alignright" style="width: 310px"><a href="http://lars.werner.no/wp-content/uploads/2010/10/rotation.png"><img src="http://lars.werner.no/wp-content/uploads/2010/10/rotation-300x195.png" alt="A simple work rotation calendar" title="Work rotation calendar" width="300" height="195" class="size-medium wp-image-265" /></a><p class="wp-caption-text">Work rotation calendar</p></div>
<p>If you ever need a simple calendar to show your work rotation, please visit <a href="http://kalender.werner.no/rotasjon.asp">http://kalender.werner.no/rotasjon.asp</a></p>
<p>Many people I know work two weeks on, two weeks off; this calendar is a quick way display such a rotation.<br />
You can send people links, here is my <a href="http://kalender.werner.no/default.asp?date=01%2F10%2F2010&#038;name=Test+rotation&#038;rotation=1414&#038;lang=ENG">rotation</a> and they know if you&#8217;re on work or not. It is also design to fit on a A4 page for printing.</p>
<p>Any suggestions or feedback regarding it, please send me an e-mail!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/SMsqegZ80RU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=202</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=202</feedburner:origLink></item>
		<item>
		<title>WordPress updated!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/1xcRia148So/</link>
		<comments>http://lars.werner.no/?p=204#comments</comments>
		<pubDate>Sat, 04 Sep 2010 21:31:53 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=204</guid>
		<description><![CDATA[<p></p> <p>I have just upgraded from WordPress 2.2.3 to 3.0.1 without any hazzle.</p> <p>If you haven&#8217;t done so yet, just fire away. It does not take long and the new autoupdate and direct download of plugins etc is great!</p> <p>Thank you WordPress team a donation is on your way.</p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=204">WordPress updated!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/xCO95RN5D-d00pWu-XU7LU_m2EQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/xCO95RN5D-d00pWu-XU7LU_m2EQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xCO95RN5D-d00pWu-XU7LU_m2EQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/xCO95RN5D-d00pWu-XU7LU_m2EQ/1/di" border="0" ismap="true"></img></a></p><p><img src="http://lars.werner.no/wp-content/uploads/2010/09/We-Love-Wordpress.png" alt="" title="We Love WordPress" width="226" height="121" class="alignleft size-full wp-image-205" /></p>
<p>I have just upgraded from WordPress 2.2.3 to 3.0.1 without any hazzle.</p>
<p>If you haven&#8217;t done so yet, just fire away. It does not take long and the new autoupdate and direct download of plugins etc is great!</p>
<p>Thank you WordPress team a donation is on your way.</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/1xcRia148So" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=204</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=204</feedburner:origLink></item>
		<item>
		<title>Futurama as X-men</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/SaSweh5QoIE/</link>
		<comments>http://lars.werner.no/?p=201#comments</comments>
		<pubDate>Sat, 12 Jun 2010 05:47:31 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=201</guid>
		<description><![CDATA[<p>Futurama is my favorite of all times and this drawing blew some life in the &#8220;inner nerd&#8221; </p> <p></p> <p>Cheers to gottabecarl for this great drawing!</p> ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/NmKhq-WdMAr1tQuCUYGcWjFqmPY/0/da"><img src="http://feedads.g.doubleclick.net/~a/NmKhq-WdMAr1tQuCUYGcWjFqmPY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NmKhq-WdMAr1tQuCUYGcWjFqmPY/1/da"><img src="http://feedads.g.doubleclick.net/~a/NmKhq-WdMAr1tQuCUYGcWjFqmPY/1/di" border="0" ismap="true"></img></a></p><p>Futurama is my favorite of all times and this drawing blew some life in the &#8220;inner nerd&#8221; <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://lars.werner.no/wp-content/uploads/2010/06/futurama_x_men_meld_by_gottabecarl.jpg"><img src='http://lars.werner.no/wp-content/uploads/2010/06/futurama_x_men_meld_by_gottabecarl.jpg' alt='Futurama as X-men' width=400px height=550px/></a></p>
<p>Cheers to <a href="http://gottabecarl.deviantart.com/#/d2bmqaf">gottabecarl</a> for this great drawing!</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/SaSweh5QoIE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=201</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=201</feedburner:origLink></item>
		<item>
		<title>SpotiAmp v0.8 released</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/aBB-T1T5HPM/</link>
		<comments>http://lars.werner.no/?p=194#comments</comments>
		<pubDate>Mon, 17 May 2010 18:42:37 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=194</guid>
		<description><![CDATA[<p></p> <p>New features:</p> Windows 7 support! Also added a nagscreen for Vista users to upgrade to a decent OS Simple Wildchar support for blocking commercials, eg Artist=Spotify, Title=* Hotkey &#8220;Flag current track as commercial&#8221; added Option to ignore the current mute-state Option to not use mediakeys but send hotkeys directly to Spotify (Spotify window might <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=194">SpotiAmp v0.8 released</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/9Xpwl5kkDylVJu6c3S7jlILcII0/0/da"><img src="http://feedads.g.doubleclick.net/~a/9Xpwl5kkDylVJu6c3S7jlILcII0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9Xpwl5kkDylVJu6c3S7jlILcII0/1/da"><img src="http://feedads.g.doubleclick.net/~a/9Xpwl5kkDylVJu6c3S7jlILcII0/1/di" border="0" ismap="true"></img></a></p><p><img src='http://lars.werner.no/wp-content/uploads/2010/05/spotiampv08.JPG' alt='SpotiAmp v0.8' /></p>
<p><strong>New features:</strong></p>
<ul>
<li>Windows 7 support! Also added a nagscreen for Vista users to upgrade to a decent OS <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Simple Wildchar support for blocking commercials, eg Artist=Spotify, Title=*</li>
<li>Hotkey &#8220;Flag current track as commercial&#8221; added</li>
<li>Option to ignore the current mute-state</li>
<li>Option to not use mediakeys but send hotkeys directly to Spotify (Spotify window might blink)</li>
</ul>
<p><strong>Fixed:</strong></p>
<ul>
<li>Added decent 404-pages on the webserver</li>
<li>Fixed the systray-icon to show correct</li>
<li>Remove the preset function, didn&#8217;t want the feature</li>
<li>Nag-screen shows on every 20 commercial blocked, increased 100% from 10</li>
</ul>
<p>Download new v0.8 version <a href="http://lars.werner.no/spotiamp">here</a></p>
<p><strong>New HTML</strong><br />
The <a href='http://lars.werner.no/wp-content/uploads/2010/05/ajaxhtml.zip' title='Ajax HTML'>Ajax HTML</a> shall be unpacked in the same directory as the Spotiamp.exe.<br />
If you put Spotiamp.exe in the same directory as Spotify then the directorystructure should look like this:<br />
C:\Program Files\Spotify\Spotify.exe<br />
C:\Program Files\Spotify\Uninstall.exe<br />
C:\Program Files\Spotify\SpotiAmp.exe<br />
C:\Program Files\Spotify\html\ <&#8211; All files from ajaxhtml.zip here</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/aBB-T1T5HPM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=194</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=194</feedburner:origLink></item>
		<item>
		<title>Netcom miniruter – Frihet i en liten boks!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/sUSekg5HjEk/</link>
		<comments>http://lars.werner.no/?p=193#comments</comments>
		<pubDate>Mon, 22 Mar 2010 08:44:40 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=193</guid>
		<description><![CDATA[<p></p> <p>For å oppsummere kort; jeg liker det lille modemet. Mye pga jeg ikke har en mobil med 3G eller Wifi Har aldri likt USB dingsene som krever egne propitær programmer / drivere kun for internettilgang. Denne slipper du det på for den er et accesspunkt.</p> <p>Ruteren ble testa i Hammerfest og på tur i <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=193">Netcom miniruter &#8211; Frihet i en liten boks!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/y3Kyq9pAPCUEpjs3snM1UHHgC_w/0/da"><img src="http://feedads.g.doubleclick.net/~a/y3Kyq9pAPCUEpjs3snM1UHHgC_w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/y3Kyq9pAPCUEpjs3snM1UHHgC_w/1/da"><img src="http://feedads.g.doubleclick.net/~a/y3Kyq9pAPCUEpjs3snM1UHHgC_w/1/di" border="0" ismap="true"></img></a></p><p><object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/pXuRdwr9W7o&#038;hl=en_US&#038;fs=1&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/pXuRdwr9W7o&#038;hl=en_US&#038;fs=1&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object></p>
<p>For å oppsummere kort; jeg liker det lille modemet. Mye pga jeg ikke har en mobil med 3G eller Wifi <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Har aldri likt USB dingsene som krever egne propitær programmer / drivere kun for internettilgang. Denne slipper du det på for den er et accesspunkt.</p>
<p>Ruteren ble testa i Hammerfest og på tur i omvegen. Dekningen er det ingenting å si på. Når jeg reiser tilbake kommer ny rapport om dekningen <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>MIFI ruteren er laget av Huawei og modellen er E5832.<br />
Virgin har kjørt med E5832 en stund og de har <a href="http://virginmobile.custhelp.com/app/answers/detail/a_id/2004">getting-started</a> guider bla.<br />
Denne bloggeren har tatt en <a href="http://mytechnews.info/b/2009/12/review-huawei-e5830.html">grundig test av E5830</a> enheten (Forgjengeren til 5832)<br />
Huawei derimot har ingen produktside og all support må nok Netcom ta seg av.</p>
<p>En annen problemstilling som er tatt opp på diverse forum er bytte av batteri på enheten.<br />
Vi håper Netcom tar seg av problemstillingen selv etter et halvår når produktet fases ut med noe nytt &#038; spennende.</p>
<p>Nå noen keynotes fra Netcom:<br />
Hvilke fordeler gir det deg?<br />
    * Del ditt Mobile Bredbånd med andre<br />
    * Perfekt når du er på hytta, hjemme, i båten eller i bilen<br />
    * Inntil 5 stykker kan være på nett samtidig<br />
    * Alle type enheter (iPod, PSP++) med støtte for WLAN kan koble seg til Mobilt Bredbånd ved bruk av ruteren<br />
    * Ta med deg ruteren i lommen og du har tilgang til Mobilt Bredbånd via WiFi overalt hvor det er mobil dekning</p>
<p>NetCom MiniRuter/Huawei E5832 tekniske spesifikasjoner<br />
    * Støtte for HSDPA 7.2 Mb/s<br />
    * Støtte for HSUPA 5.76 Mb/s<br />
    * Støtte for UMTS 2100/900 MHz, GSM/EDGE 850/900/1800/1900 MHz<br />
    * Micro SD kortleser<br />
    * OS støtte dersom en bruker enheten som USB-modem; Windows 2000, XP, Vista, 7. Mac 10.5 og 10.6, samt Linux<br />
    * Dobbel innebygd antenne<br />
    * WLAN støtte<br />
    * Batterilader følger med i pakken<br />
    * Batterikapasitet: 1500 Mah, 4 timer bruk<br />
    * Mål: 86 x 46.4 x 10.5 mm</p>
<p>Tilslutt bilder av ruteren in action<br />

<div class="ngg-galleryoverview" id="ngg-gallery-4-193">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://lars.werner.no/?p=193&amp;show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-171" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010-03-19-040.jpg" title=" " class="thickbox" rel="set_4" >
								<img title="Ruteren" alt="Ruteren" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010-03-19-040.jpg"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-172" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010-03-19-036.jpg" title=" " class="thickbox" rel="set_4" >
								<img title="Inneholdet i pakken foruten ruteren" alt="Inneholdet i pakken foruten ruteren" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010-03-19-036.jpg"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-173" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010-03-17-022.jpg" title=" " class="thickbox" rel="set_4" >
								<img title="Du må ha et SIM kort for tilgang" alt="Du må ha et SIM kort for tilgang" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010-03-17-022.jpg"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-174" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010-03-17-016.jpg" title=" " class="thickbox" rel="set_4" >
								<img title="Esken som produktet kommer i" alt="Esken som produktet kommer i" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010-03-17-016.jpg"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-175" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010 03 21 067.JPG" title=" " class="thickbox" rel="set_4" >
								<img title="Isbjørnen sjekker mail" alt="Isbjørnen sjekker mail" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010 03 21 067.JPG"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-176" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010 03 21 071.JPG" title=" " class="thickbox" rel="set_4" >
								<img title="Irritert isbjørn når jeg skrudde ruteren av" alt="Irritert isbjørn når jeg skrudde ruteren av" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010 03 21 071.JPG"  />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-177" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://lars.werner.no/wp-content/gallery/netcomminiruter/2010 03 21 077.JPG" title=" " class="thickbox" rel="set_4" >
								<img title="Ruteren i action i de nordlige breddegrader" alt="Ruteren i action i de nordlige breddegrader" src="http://lars.werner.no/wp-content/gallery/netcomminiruter/thumbs/thumbs_2010 03 21 077.JPG"  />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</p>
<p>PS:<br />
Jeg har ikke DV-kamera og heller ikke noe stativ. Alt ble tatt opp med et Casio stillbildekamera og en særdeles stødig hånd! <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/sUSekg5HjEk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=193</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=193</feedburner:origLink></item>
		<item>
		<title>Learn the OpenVPN ALS (Adito) basics from Hak5!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/In3xj7hyO0E/</link>
		<comments>http://lars.werner.no/?p=190#comments</comments>
		<pubDate>Fri, 11 Dec 2009 12:10:14 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=190</guid>
		<description><![CDATA[<p></p> <p>Thanks to Darren@Hak5 for credits on the Adito installer </p> <p>Discuss the episode at Hak5 forums</p> <p>Many of you might not know that the Adito-agent can be used as a portable-apps-thingy that doesn&#8217;t require a usb-thumbdrive. You can have your own apps, with your own settings on-the-go where every you connect to Adito. Check <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=190">Learn the OpenVPN ALS (Adito) basics from Hak5!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/9l2exorKMbcOrCFbNqtHfiZjlf4/0/da"><img src="http://feedads.g.doubleclick.net/~a/9l2exorKMbcOrCFbNqtHfiZjlf4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9l2exorKMbcOrCFbNqtHfiZjlf4/1/da"><img src="http://feedads.g.doubleclick.net/~a/9l2exorKMbcOrCFbNqtHfiZjlf4/1/di" border="0" ismap="true"></img></a></p><p><embed class="rev3PlayerEmbed" type="application/x-shockwave-flash" src="http://revision3.com/player-v3563" allowFullScreen="true" quality="high" allowScriptAccess="always" width="555" height="312"  /></p>
<p>Thanks to Darren@Hak5 for credits on the Adito installer <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Discuss the episode at Hak5 <a href="http://hak5.org/forums/index.php?showtopic=14478">forums</a></p>
<p>Many of you might not know that the Adito-agent can be used as a portable-apps-thingy that doesn&#8217;t require a usb-thumbdrive. You can have your own apps, with your own settings on-the-go where every you connect to Adito. Check it out yourself and download packages below.</p>
<p>These are the ones I prefer:<br />
<strong>Microsoft RDP client</strong> (complete client, will work on clients that even don&#8217;t have RDP installed): <a href="http://lars.werner.no/wp-content/uploads/2009/12/adito-application-advancednativerdpwin32.zip">http://lars.werner.no/adito-application-advancednativerdpwin32.zip</a><br />
<strong>UltraVNC client</strong>: <a href="http://lars.werner.no/wp-content/uploads/2009/12/adito-application-ultravnc.zip">http://lars.werner.no/adito-application-ultravnc.zip</a><br />
<strong>Putty</strong>: <a href="http://lars.werner.no/wp-content/uploads/2009/12/adito-application-putty-portable-ssh.zip">http://lars.werner.no/adito-application-putty-portable-ssh.zip</a><br />
<strong>WinUtil</strong> (My own smallutil for hiding/always-on-top/transparent): <a href="http://lars.werner.no/wp-content/uploads/2009/12/WinUtil.zip">http://lars.werner.no/WinUtil.zip</a><br />
<strong>Firefox portable</strong>: <a href="http://lars.werner.no/wp-content/uploads/2009/12/sslexplorer-application-firefoxportable.zip">http://lars.werner.no/sslexplorer-application-firefoxportable.zip<br />
</a><br />
Save the *.zip file and upload zip-file in the (Configuration) Extension Manager -> (Actions) Upload Extension</p>
<p>Now add a new application to a user/group, customize and test. Simple as 1-2-3</p>
<p>To make your own, check out the Winutil-example-package. It is the simplest form of getting an application (that does not require network access) running through Adito. Customize one XML repack and publish your own utils. Add them to the comment-field to share with others.</p>
<blockquote><p>
<em>Be warned there is a bug in 0.9.1 that you cannot fix (only SVN-releases for now).</em><br />
<strong>Do not change option in (Resources) Profiles -> (Default) More -> Configure!</strong><br />
Unfortunately these are the options for the Adito-agent, this will be fixed when OpenVPN ALS is in a new public release!
</p></blockquote>
<p><span id="more-190"></span><br />
Too bad Shannon wasn&#8217;t involved in this episode  <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
My wife hate these comments, but I just had to, hehe&#8230;</p>
<p>I don&#8217;t have much time for my blog / pc / programming these days.<br />
My newborn kid takes all the time <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If Hak5.org is down here is the <a href='http://lars.werner.no/wp-content/uploads/2009/12/hak5--0607--SSL-VPNs-and-D-Solo--large.xvid.avi'>Xvid</a> video (or the <a href='http://lars.werner.no/wp-content/uploads/2009/12/hak5--0607--SSL-VPNs-and-D-Solo--hd720p30.h264.mp4'>HD-version</a> if you prefer)</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/In3xj7hyO0E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=190</wfw:commentRss>
		<slash:comments>3</slash:comments>
<enclosure url="http://lars.werner.no/wp-content/uploads/2009/12/hak5--0607--SSL-VPNs-and-D-Solo--large.xvid.avi" length="257589224" type="video/avi" />
<enclosure url="http://lars.werner.no/wp-content/uploads/2009/12/hak5--0607--SSL-VPNs-and-D-Solo--hd720p30.h264.mp4" length="1635" type="video/mp4" />
		<feedburner:origLink>http://lars.werner.no/?p=190</feedburner:origLink></item>
		<item>
		<title>SpotiAmp – Control Spotify the way you like, even mute commercials / ads</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/NnIRifpdxws/</link>
		<comments>http://lars.werner.no/?p=189#comments</comments>
		<pubDate>Sat, 08 Aug 2009 21:47:59 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=189</guid>
		<description><![CDATA[<p>Spotify is a great service! I have been using it for quite a while, but I felt that something was missing. Winamp has been my main player for years and I got inspired to make a combination and support things I wanted with this application. </p> <p>Presenting SpotiAmp </p> <p>Features</p> Global hotkeys to control play, <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=189">SpotiAmp &#8211; Control Spotify the way you like, even mute commercials / ads</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/iYeyRRvUD0jl3Br87ACCOzDZGCQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/iYeyRRvUD0jl3Br87ACCOzDZGCQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iYeyRRvUD0jl3Br87ACCOzDZGCQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/iYeyRRvUD0jl3Br87ACCOzDZGCQ/1/di" border="0" ismap="true"></img></a></p><p><a href="http://www.spotify.com">Spotify </a>is a great service! I have been using it for quite a while, but I felt that something was missing.<br />
Winamp has been my main player for years and I got inspired to make a combination and support things I wanted with this application. </p>
<p>Presenting SpotiAmp<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/08/mainwindow.JPG' alt='SpotiAmp Mainwindow' /></p>
<p><strong>Features</strong></p>
<ul>
<li>
Global hotkeys to control play, stop, pause, next and previous
</li>
<li>
Mute commercials / ads, it comes with a price read about below
</li>
<li>
Simple Webserver support
</li>
<li>
Winamp WM_COMMAND / WM_WA_IPC support to let other applications (like girder) control Spotify
</li>
</ul>
<p>To download please visit the <a href="http://lars.werner.no/?page_id=183">SpotiAmp page</a>.</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/NnIRifpdxws" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=189</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=189</feedburner:origLink></item>
		<item>
		<title>A Windows user confession: Make LIRC on Ubuntu manage your HTPC + making suspend-to-ram work properly</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/LlolZeghCe4/</link>
		<comments>http://lars.werner.no/?p=177#comments</comments>
		<pubDate>Mon, 03 Aug 2009 11:45:49 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=177</guid>
		<description><![CDATA[<p>As the topic says; I am a Windows user. I been using the XBMC on Xbox1 for many years. Since the hardware on Xbox does not handle the new “HD-thing”, I started to find a replacement. This is my recipe that forced me to learn some basic Linux stuff.</p> <p>Read my part 1 before you <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=177">A Windows user confession: Make LIRC on Ubuntu manage your HTPC + making suspend-to-ram work properly</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/ny0wrddH2fmuPhFx4vje13BvI_8/0/da"><img src="http://feedads.g.doubleclick.net/~a/ny0wrddH2fmuPhFx4vje13BvI_8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ny0wrddH2fmuPhFx4vje13BvI_8/1/da"><img src="http://feedads.g.doubleclick.net/~a/ny0wrddH2fmuPhFx4vje13BvI_8/1/di" border="0" ismap="true"></img></a></p><p>As the topic says; I am a Windows user. I been using the XBMC on Xbox1 for many years. Since the hardware on Xbox does not handle the new “HD-thing”, I started to find a replacement. This is my recipe that forced me to learn some basic Linux stuff.</p>
<p>Read my <a href="http://lars.werner.no/?p=175">part 1</a> before you continue with this one.</p>
<p><strong>1. Requirements</strong><br />
You need these following items:<br />
* Ubuntu preinstalled with XBMC and LIRC<br />
* A MCE IR receiver/remote that is supported by LIRC<br />
* A confirmed working LIRC, tested with the <em>irw</em> command</p>
<p><strong>2. What do you want it to do?</strong><br />
My HTPC requirements is XBMC, switch between another program (like MythTV) and do simple movements on the desktop. Another thing that is important is the on/off function and my prefer method is suspend-to-ram. It is quick, quiet and fully manageable on Linux.<br />
Much of the information (and some scripts) has been processed and modified from <a href="http://vikjonlinuxhowto.blogspot.com/2009/04/howto-setup-remote-for-ubuntu-804-xbmc.html">vikjon&#8217;s Blog</a></p>
<p><strong>3. Setting up IRExec+IRXevent and application specific settings</strong><br />
LIRC has an extra tool called IRExec+IRXevent that basically execute a command to terminal when an event happens. Also the MythTV-crew have made a generator for default LIRC-config. It creates application specific settings, we&#8217;ll now install&#8217;em both:<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Install IRExec+IRXevent by entering: sudo apt-get install lirc-x<br />
3. Install Mythbuntu-lirc-generator by entering: sudo apt-get install mythbuntu-lirc-generator<br />
4. Create default settings running: mythbuntu-lirc-generator<br />
5. Start IRExec to check that it works, enter: irexec (nothing should be printed and a waiting cursor, break it with Ctrl-C)</p>
<p>LIRC is installed as a daemon (service) but the IRExec+IRXevent need to be in your &#8220;user space&#8221;. This script shall be started when you login. Here is what todo (in terminal):<br />
1. Create a scripts directory, enter: mkdir ~/scripts<br />
2. Create a script-file, enter: nano ~/scripts/startirexec.sh<br />
3. Paste inn these lines, replace the &#8220;username&#8221; in the text with your own username</p>
<blockquote><p>
#!/bin/bash</p>
<p># Test to see if IRXevent is running first, if so kill it, then restart<br />
if ps -ef|grep -v grep|grep -i irxevent<br />
then<br />
ps aux|grep -i username|grep -i irxevent |awk &#8216;{print $2}&#8217;|xargs kill<br />
else<br />
# Do nothing<br />
echo &#8220;irxevent already dead!&#8221;<br />
fi</p>
<p># Test to see if IRexec is running first, if so kill it, then restart<br />
if ps -ef|grep -v grep|grep -vi start|grep -i irexec<br />
then<br />
ps aux|grep -i username|grep -i irexec |grep -vi start|awk &#8216;{print $2}&#8217;|xargs kill<br />
else<br />
# Do nothing<br />
echo &#8220;irexec already dead!&#8221;<br />
fi</p>
<p>#test to see if an instance of irxevent is already running<br />
if ps -ef|grep -v grep|grep irxevent<br />
then<br />
# do nothing<br />
echo &#8220;irxevent already running&#8221;<br />
else<br />
# start irxevent<br />
irxevent /home/username/.lircrc &#038;<br />
fi</p>
<p>#test to see if an instance of irexec is already running<br />
if ps -ef|grep -v grep|grep irexec<br />
then<br />
# do nothing<br />
echo &#8220;irexec already running&#8221;<br />
else<br />
# start irxevent<br />
irexec -d /home/username/.lircrc &#038;<br />
fi</p>
<p>exit
</p></blockquote>
<p>4. Save the file by pressing Ctrl-X, say Yes to save.<br />
5. Go to System -> Preferences -> Startup applications<br />
6. Press add and goto the directory &#8220;scripts&#8221;. Add the startirexec.sh file</p>
<p>When you restart and same user logs in, the IRXevent+IRExec will be running in the background.</p>
<p><strong>3.1 Start/kill scripts for your applications</strong><br />
Here are two examples of start/kill application scripts. You should create one on each program you want to control using the remote.</p>
<p>Start-script (to customize to others change the xbmc.bin and the executable xbmc later on)</p>
<blockquote><p>
#!/bin/bash</p>
<p># Test to see if XBMC is running first<br />
if ps -ef|grep -v grep|grep -i xbmc.bin<br />
then<br />
# Do nothing<br />
echo &#8220;XBMC already Running!&#8221;<br />
else<br />
# Startup XBMC<br />
xbmc<br />
fi<br />
exit
</p></blockquote>
<p>Kill script (it does a soft kill first and hard after some time. Replace the &#8220;username&#8221; with your username.)<br />
To manage other applications replace the xbmc and xbmc.bin with your executable.</p>
<blockquote><p>
#!/bin/bash</p>
<p># Test to see if XBMC is running first<br />
if ps -ef|grep -v grep|grep -i xbmc.bin<br />
then<br />
# Try a clean kill<br />
ps aux|grep -i username|grep -v grep|grep -i xbmc.bin|awk &#8216;{print $2}&#8217;|xargs kill<br />
echo `date` &#8220;Killed XBMC! (soft)&#8221; >> /tmp/killXBMC.log<br />
else<br />
echo &#8220;XBMC already dead! (soft)&#8221;<br />
exit<br />
fi</p>
<p># takes a second or two to die with the soft kill<br />
sleep 2</p>
<p># Test to see if it&#8217;s still running<br />
if ps -ef|grep -v grep|grep -i xbmc.bin<br />
then<br />
# If it&#8217;s still around, kill it -9<br />
ps aux|grep -i username|grep -v grep|grep -i xbmc.bin|awk &#8216;{print $2}&#8217;|xargs kill -9<br />
echo `date` &#8220;Killed XBMC! (hard)&#8221; >> /tmp/killXBMC.log<br />
else<br />
echo &#8220;XBMC already dead! (hard)&#8221;<br />
exit<br />
fi
</p></blockquote>
<p>Both of these scripts has been stored as ~/scripts/startxbmc.sh and ~/scripts/killxbmc.sh.</p>
<p>You could also create a ~/scripts/reboot.sh, it could look something like this</p>
<blockquote><p>
#!/bin/bash<br />
sudo reboot<br />
exit
</p></blockquote>
<p>Simple and hopefully you have turn off the password-nagging (as described in part 1) so it actually works <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>3.2 Executing these scripts using the IRExec</strong><br />
The mythbuntu-lirc-generator created a hidden directory that contains custom settings for several applications. We are now going to create a <em>simple</em> &#8220;common&#8221; script that will work independent on which program you have executed.</p>
<p>1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Create a common file for our commands, enter: nano ~/.lirc/common<br />
3. Paste inn these commands</p>
<blockquote><p>
#Kill then start XBMC when pressing the Videos button<br />
begin<br />
        remote = mceusb<br />
        prog = irexec<br />
        button = Videos<br />
        config = sh /home/username/scripts/killxbmc.sh<br />
        config = sh /home/username/scripts/startxbmc.sh &#038;<br />
        repeat = 0<br />
        delay = 0<br />
end<br />
<br />
#Reboot the computer when you press the &#8220;Clear&#8221; button<br />
begin<br />
        remote = mceusb<br />
        prog = irexec<br />
        button = Clear<br />
        config = sh /home/username/scripts/reboot.sh &#038;<br />
        repeat = 0<br />
        delay = 0<br />
end
</p></blockquote>
<p>4. Press Ctrl-X and save file.<br />
5. Now we have to include the file as a LIRC resource, enter: nano ~/.lircrc<br />
6. Add at the end of the file: include ~/.lirc/common<br />
7. Press Ctrl-X and save file<br />
8. Restart the IRExec by entering: sh ~/scripts/startirexec.sh</p>
<p>Try the remote by pressing &#8220;My Videos&#8221; and see that XBMC starts.</p>
<p><strong>4. Wake-up on USB</strong><br />
MythTv have a good guide on how to get suspend-to-ram work, this info is partly taken from that <a href="http://www.mythtv.org/wiki/MCE_Remote#S3_.2F_Suspend_To_RAM">guide</a>.</p>
<p>1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. List the devices available, enter: cat /proc/acpi/wakeup (it should look something like the list below)</p>
<blockquote><p>
Device  S-state   Status   Sysfs node<br />
PCI0      S4     disabled  no-bus:pci0000:00<br />
PEG1      S4     disabled  pci:0000:00:01.0<br />
IGBE      S4     disabled  pci:0000:00:19.0<br />
PCX1      S4     disabled  pci:0000:00:1c.0<br />
HUB       S4     disabled  pci:0000:00:1e.0<br />
USB0      S3     disabled  pci:0000:00:1d.0<br />
USB1      S3     disabled  pci:0000:00:1d.1
</p></blockquote>
<p>3. Usally the USB0 is the one that your ir-receiver is connected to. To activate it enter: sudo sh -c &#8216;echo &#8220;USB0&#8243; >> /proc/acpi/wakeup&#8217; (it should state S3 behind it, or else the item will be shutoff during suspend-to-ram)<br />
4. Check in the list that the device is enabled, enter: cat /proc/acpi/wakeup</p>
<blockquote><p>
Device  S-state   Status   Sysfs node<br />
(snip)<br />
HUB       S4     disabled  pci:0000:00:1e.0<br />
USB0      S3     <strong>enabled</strong>  pci:0000:00:1d.0<br />
USB1      S3     disabled  pci:0000:00:1d.1
</p></blockquote>
<p>5. Do a actual test (Warning; this might crash your system. Save any unsaved stuff before you test). Enter: sudo sh /etc/acpi/sleepbtn.sh<br />
6. When it has suspended, hold the power-button on your remote down and see if it wakes up. (If it don&#8217;t you either got the wrong USB-device, in the wakeup-list, or the receiver doesn&#8217;t send a valid power-on signal to the computer.)</p>
<p>Notice that when the computer wakes up either it hangs or the remote does not work. This will be handled in the next chapter. But first, lets make the change wakeup device permanent.<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Edit the rc.local file (equal to autoexec.bat for us Windows users): sudo nano /etc/rc.local<br />
3. Add at the end of the file (but before exit 0): sudo sh -c &#8216;echo &#8220;USB0&#8243; >> /proc/acpi/wakeup&#8217; (change the USB0 if another device worked for you)</p>
<p>Reboot your computer to check if the /proc/acpi/wakeup list has the USB0 (or what ever device working for you) enabled. Do a second test, just to make sure the suspend/resume works.</p>
<p><strong>4.1 Suspend-to-ram and wakeup script</strong><br />
When a computer is suspended a list of devices, drivers etc are stopped. IRExec+IRXEvent needs LIRC to work properly. Both of them are not installed as daemons so they will not be included in a suspend (for some reason).<br />
I have also encountered several lock-ups because of the mce_usb driver, so it is clever to remove driver before a suspend. If you have other drivers for LIRC, just replace the mce_usb with your own name.</p>
<p>The suspendscript will be located at the same spots as our other scripts, here is what you do:<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Create the suspendfile, enter: nano ~/scripts/suspendcomputer.sh<br />
3. Paste the script below into the file</p>
<blockquote><p>
#!/bin/sh<br />
sh ~/scripts/killxbmc.sh<br />
sudo /etc/init.d/lirc stop<br />
sudo modprobe -r lirc_mceusb<br />
sudo /etc/acpi/sleep.sh force<br />
exit
</p></blockquote>
<p>4. Edit the common-file and make powerbutton, on the remote, run suspendcomputer.sh using the chapter 3.2 technique: nano ~/.lirc/common (if you are uncertain on the name of the powerbutton use irw to get them)</p>
<p>You could test the remote powerbutton and see that it suspend. Turn the power on with the remote again. Nothing IR-based is going to work since we have stopped LIRC and removed the drivers. Here is the wakeup-script.<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Create a acpi-resume file by entering: sudo nano /etc/acpi/resume.d/99-resume-lirc.sh<br />
3. Paste the script below into the file. (Change the &#8220;Username&#8221; with your username, since the resume-daemon execute on another user/level we need to specify.)</p>
<blockquote><p>
#!/bin/bash<br />
sudo modprobe lirc_mceusb<br />
sudo /etc/init.d/lirc start<br />
sudo -u username sh /home/username/scripts/startIRExec.sh<br />
sudo -u username sh /home/username/scripts/startxbmc.sh
</p></blockquote>
<p>4. Make sure the script is executeable by entering: sudo chmod +x /etc/acpi/resume.d/99-resume-lirc.sh<br />
5. Test the script by entering: sudo sh /etc/acpi/resume.d/99-resume-lirc.sh</p>
<p>Now the LIRC and the driver should work again. So try a new suspend/resume using the remote and the 99-resume-lirc.sh will be the last script executed by the resume-daemon.</p>
<p><strong>5. Navigate on desktop using IR</strong><br />
After reading <a href="http://ubuntu.bryanludvigsen.com/?p=199">Bryan Ludvigsens blog</a> on how to control Snes using LIRC and Xmacro, I got the idea of use something similar for controlling the desktop.</p>
<p>First off you need to install xmacro, this is how you do it:<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Install xmacro by entering: sudo apt-get install xmacro</p>
<p>Bryans approach is to complicated for me (linux newbie, you know). I took an easier route by reading <a href="http://ubuntuforums.org/showthread.php?t=896449">this post</a>. Here are some combinations you probably want to use, paste the line after the : &#8211; sign to test. If it works in terminal it works using the IRexec.</p>
<p>&#8220;Start&#8221;-button: echo -e &#8216;KeyStrPress Control_L\n KeyStrPress Escape\n KeyStrRelease Escape\n KeyStrRelease Control_L\n&#8217; | xmacroplay -d 50 :0<br />
Next window (alt-tab): echo -e &#8216;KeyStrPress Alt_L\n KeyStr Tab\n KeyStrRelease Alt_L&#8217; | xmacroplay -d 50 :0<br />
Close: echo -e &#8216;KeyStrPress Alt_L\n KeyStr F4\n KeyStrRelease Alt_L&#8217; | xmacroplay :0</p>
<p>You probably got the picture. You can also record your own macros using this command: xmacrorec or xmacrorec2 (read more about that <a href="http://www.krisalan.com/?p=55">here</a>). To find keyboard shortcuts read <a href="https://help.ubuntu.com/community/KeyboardShortcuts">this wiki</a>.</p>
<p><strong>5.1 Grouping to re-use buttons in LIRC setup</strong><br />
LIRC support modes (or groups) that activate buttons based on where you are navigating. It is a way to seperate for example the Start-button on the remote. In XBMC you want to get the menu but in &#8220;desktop mode&#8221; you want it to open the start menu.<br />
The ~/.lirc/common file would be a good place to seperate these modes, here is an example:</p>
<blockquote><p>
#Our wakeup-script execute xbmc and when LIRC is reloaded we are in &#8220;Xbmc-mode&#8221;<br />
begin<br />
    flags = startup_mode<br />
    mode = mode_xbmc<br />
end<br />
<br />
#Global keys goes here (switch to/from applications). The XBMC button shall have the mode_xbmc (we don&#8217;t have any group since XBMC manage itself <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )<br />
begin<br />
        remote = mceusb<br />
        prog = irexec<br />
        button = Videos<br />
        <strong>mode = mode_xbmc</strong><br />
        config = sh /home/username/scripts/killxbmc.sh<br />
        config = sh /home/username/scripts/startxbmc.sh &#038;<br />
        repeat = 0<br />
        delay = 0<br />
end<br />
<br />
#Still global, but here we change to &#8220;desktop&#8221; mode<br />
begin<br />
        remote = mceusb<br />
        prog = irexec<br />
        button = Music<br />
	<strong>mode = mode_desktop</strong><br />
        config = sh /home/username/scripts/killxbmc.sh &#038;<br />
        repeat = 0<br />
        delay = 0<br />
end<br />
<br />
#Here is the functions for the desktop, note the mode_desktop<br />
<strong>begin mode_desktop</strong></p>
<p>#Startbutton<br />
begin<br />
	remote = mceusb<br />
	prog = irexec<br />
	button = Home<br />
	config = echo -e &#8216;KeyStrPress Control_L\n KeyStrPress Escape\n KeyStrRelease Escape\n KeyStrRelease Control_L\n&#8217; | xmacroplay -d 50 :0<br />
	repeat = 0<br />
	delay = 0<br />
end<br />
<br />
# (&#8230;) More desktop-buttons goes here&#8230;<br />
<br />
#End the mode_desktop here<br />
<strong>end mode_desktop</strong>
</p></blockquote>
<p>When you press the &#8220;My Music&#8221; button XBMC will quit and the buttons below would be activated. When you are finished a press on &#8220;My Videos&#8221; will launch XBMC and deactivate the desktop-mode.</p>
<p><strong>6. All scripts wrapped up</strong><br />
Here are my scripts that I&#8217;m currently using. Please note that you need to change the username in some of these scripts.<br />
<a href='http://lars.werner.no/wp-content/uploads/2009/08/lirc.zip' title='LIRC common script'>Common-script</a> to be placed in: ~/.lirc/<br />
<a href='http://lars.werner.no/wp-content/uploads/2009/08/scripts.zip' title='Controll scripts for LIRC'>Launchscripts</a> to be used with IRExec. Common placement it ~/scripts/<br />
<a href='http://lars.werner.no/wp-content/uploads/2009/08/suspend.zip' title='Suspend and resume script managing LIRC'>Suspend/resume</a> script to be placed in /etc/acpi/resume.d and common placement ~/scripts/</p>
<p>Note that these scripts contains comments on my native language Norwegian. But you should understand based on the guide. If there are any questions, please let me know in the comments.</p>
<ol>
<strong><em>What is next&#8230;</em></strong><br />
My HTPC works as expected so I don&#8217;t spend much time investigating. Nothing new will be added unless there are new stuff that could be interesting.<br />
The latest modification I&#8217;ve done is to install Spotify on Ubuntu, it is done easily by following <a href="http://www.spotify.com/en/help/faq/wine/">this guide</a>.
</ol>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/LlolZeghCe4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=177</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=177</feedburner:origLink></item>
		<item>
		<title>A Windows user confession: XBMC on Ubuntu using ION chipset, the way it should work!</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/qBV3HZkkkkY/</link>
		<comments>http://lars.werner.no/?p=175#comments</comments>
		<pubDate>Fri, 31 Jul 2009 15:52:10 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Modifications]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=175</guid>
		<description><![CDATA[<p>As the topic says; I am a Windows user. I been using the XBMC on Xbox1 for many years. Since the hardware on Xbox does not handle the new &#8220;HD-thing&#8221;, I started to find a replacement. This is my recipe that forced me to learn some basic linux stuff.</p> <p>Comments regarding other ways to handle <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=175">A Windows user confession: XBMC on Ubuntu using ION chipset, the way it should work!</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/QZlX6O9ydBxGcUP5eurVvWzS0a0/0/da"><img src="http://feedads.g.doubleclick.net/~a/QZlX6O9ydBxGcUP5eurVvWzS0a0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/QZlX6O9ydBxGcUP5eurVvWzS0a0/1/da"><img src="http://feedads.g.doubleclick.net/~a/QZlX6O9ydBxGcUP5eurVvWzS0a0/1/di" border="0" ismap="true"></img></a></p><p>As the topic says; I am a Windows user. I been using the XBMC on Xbox1 for many years. Since the hardware on Xbox does not handle the new &#8220;HD-thing&#8221;, I started to find a replacement. This is my recipe that forced me to learn some basic linux stuff.</p>
<p>Comments regarding other ways to handle stuff will be highly appriciated!</p>
<p><strong>1. What hardware do you need?</strong><br />
I prefer a simple ION-chipset based computer to take on the task. They are small and have what it takes. I have tested two boxes: <a href="http://www.asrock.com/nettop/spec/ION%20330.asp">Asrock I330</a> and <a href="http://us.acer.com/acer-v2/product.do%3bjsessionid=?LanguageISOCtxParam=en&#038;inu49e.current.c2att92=163&#038;link=ln314e&#038;CountryISOCtxParam=US&#038;kcond47e.c2att92=163&#038;rcond159e.att21k=1&#038;kcond48e.c2att101=60746&#038;rcond190e.att21k=1&#038;acond23=US&#038;sp=page17e&#038;rcond157e.c2att92=163&#038;ctx1g.c2att92=163&#038;kcond50e.c2att92=163&#038;rcond45e.att21k=1&#038;rcond158e.c2att1=0&#038;ctx2.c2att1=0&#038;inu53e.current.c2att92=163&#038;rcond44e.c2att1=0&#038;rcond186e.c2att92=163&#038;rcond189e.c2att1=0&#038;ctx1.att21k=1&#038;CRC=4139638406">Acer R3600</a>. Both work well and plays HD in 720p and 1080p without any problems.</p>
<p>None of the boxes above has an IR-eye. If you have an existing MCE remote you can use that, if not jump over to eBay and search for &#8220;mce remote&#8221;. Most of them work work good with LIRC (Linux IR control), ensure that you have a power on/off button on it.</p>
<p><strong>2. What software do you need?</strong><br />
Ubuntu Desktop (v9.04, called Jaunty, it is what this guide is based on): <a href="http://www.ubuntu.com/getubuntu/download">Download</a> the 32-bits version<br />
XBMC will be installed using respotories after Ubuntu is installed.</p>
<p><strong>2.1 Installing Ubuntu</strong><br />
There are several good guides out there for installing Ubuntu, like <a href="http://www.ubuntugeek.com/step-by-step-ubuntu-904-jaunty-desktop-installation-guide.html">this one</a>. Notice! Enable &#8220;Log in automaticly&#8221; on the &#8220;Who are you?&#8221; page, that saves you some trouble. Just follow the guide for references and instructions.<br />
None of the ION boxes have a DVD-drive so you will be forced to use an USB-stick. Check <a href="http://www.teamteabag.com/2008/05/17/howto-easy-install-ubuntu-804-hardy-heron-or-most-other-distros-from-usb/">this guide</a> out for information regarding that topic.</p>
<p>Update Ubuntu with the Update Manager afterwards, like you would do with any OS.</p>
<p><strong>2.2 Installation of NVIDIA graphics driver</strong><br />
As any operatingsystem you should install a new driver for the gfx-card. For the ION you must!<br />
1. Download the drivers using firefox from <a href="ftp://download.nvidia.com/XFree86/Linux-x86/">here</a> (The 190.18 was the latest when I wrote this and it is based on that)<br />
2. Store them to your Desktop (NVIDIA-Linux-x86-190.18-pkg#.run files)<br />
3. Press CTRL-ALT-F1 (you are now in a terminal without GUI)<br />
4. Login with your username &#038; password<br />
5. Write: sudo killall gdm<br />
6. Check that desktop is killed with CTRL-ALT-F7 (should show some text)<br />
7. Goto root-mode by entering: sudo -i   (the username in front should change from <yourusername> to root)<br />
8. Write: cd /home/username/Desktop/ (username is what you entered earlier, might differ from locale to locale, TAB is your friend <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )<br />
9. Start the installation by: sh NVIDIA-Linux-x86-190.18-pkg0.run<br />
10. Next your way through it, straight forward<br />
11. Reboot system by entering: reboot</p>
<p>You should now have Nvidia-Settings under System -> Administration tab on the start-menu. Here you can check the current installed version and change the screen resolution. Other settings are available, just make sure to let the gpu-core run on performance-mode!</p>
<p><strong>2.3 Installing SSH-server as backdoor for updating NVIDIA driver after kernel update</strong><br />
<em>Note:</em> After a while new kernels will be available, when installed they corrupt the NVIDIA driver. Because NVIDIA-driver builds binarys on each kernel, you probably have to do chapter 2.2 again with crappy resolution.<br />
If the driver corrupt you could manage it from another computer, in the same network, using SSH. It is simple and often quicker, here is what you do:<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Install SSH by entering: sudo apt-get install openssh-server openssh-client</p>
<p>The default setup &#038; config is OK from the start. Use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> as your SSH-client on another computer (ssh on another linux box).<br />
1. Connect to the dns-name/ip of the HTPC<br />
2. Login with your username &#038; password<br />
3. Goto the desktop directory by entering: cd ~/Desktop<br />
3. Visit the <a href="ftp://download.nvidia.com/XFree86/Linux-x86/">NVIDIA driver page</a> and copy the directlink. Download the file like this: wget ftp://download.nvidia.com/XFree86/Linux-x86/190.18/NVIDIA-Linux-x86-190.18-pkg0.run (do the same for alle the files)<br />
4. Follow the chapter 2.2 point 5 and down for finishing installation</p>
<p><strong>2.4 Making your user sudo-master-password-free</strong><br />
Your HTPC does not need security, so to get Ubuntu stop nagging about its precious root-password you should do this. (<em>Warning:</em> This removes the security totally, beware!) Collected from this <a href="http://maestric.com/doc/unix/ubuntu_sudo_without_password">guide</a>.<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Enter: sudo visudo<br />
3. At the end of file (in the nano-window) enter this:</p>
<blockquote><p>
username ALL=NOPASSWD: ALL<br />
%username ALL=NOPASSWD: ALL
</p></blockquote>
<p>Change &#8220;username&#8221; to what your username is. The installer creates a user and group with your selected username.<br />
4. Press Ctrl-X, save changes<br />
5. Reboot (to activate the setting)</p>
<p>The &#8220;sudo&#8221; command in terminal will now stop nagging you. </p>
<p><strong>3. Setting up audio over hdmi</strong><br />
The ALSA (Advanced Linux Sound Architecture) is default installed to the system. It does not manage to setup sound-over-hdmi for some reason. Please check out <a href="http://alsa.opensrc.org/index.php/DigitalOut">Alsa Wiki</a> for more information. This is how I managed to fix the problem. This could be different on your system, so please be flexible <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Enter: alsamixer<br />
3. Select IEC958 (or simular) using navigation keys and press M to mute/unmute<br />
4. Press Ctrl-C when finished<br />
5. Download wav-examples from <a href="http://www.sr.se/sida/default.aspx?programID=2445">here</a><br />
6. Unzip it by entering: unzip filname.zip<br />
7. Enter: cat /proc/asound/devices it will give you a list simular to this:</p>
<blockquote><p>
lars@htpc:~$ cat /proc/asound/devices<br />
 18: [0- 2]: digital audio playback<br />
 17: [0- 1]: digital audio playback<br />
 16: [0- 0]: digital audio playback<br />
 24: [0- 0]: digital audio capture<br />
 33:       : timer
</p></blockquote>
<p>The brackets shows card and device number. [card- device]<br />
8. Play the file by entering: aplay -D hw:card,device file.wav (replace card with your card number and device with your device number and file.wav with the soundfile. Example: aplay -D hw:0,2 file.wav, used the first device in the list).<br />
You might have to try through different card and devices, you should get sound on one of them. When you do remember the card &#038; device.<br />
10. Create a file by entering: sudo nano /etc/asound.conf<br />
Change x to your cardnumber and y to your device.</p>
<blockquote><p>
ctl.!default {<br />
    type hw<br />
    card x<br />
    device y<br />
}</p>
<p>pcm.!default {<br />
    type plug<br />
    slave {<br />
    pcm {<br />
        type hw<br />
        card x<br />
        device y<br />
        }<br />
    }<br />
}
</p></blockquote>
<p>11. Reboot is required and you should get sound in all applications afterwards <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>4. Installing Xbox Media center (XBMC)</strong><br />
First of all, visit <a href="http://xbmc.org/download/">Xbmc.org download page</a> for the latest info. This guide handles the Jaunty installation only.</p>
<p>This is collected from the <a href="http://xbmc.org/wiki/?title=HOW-TO_install_XBMC_for_Linux_on_Ubuntu_with_a_minimal_installation_step-by-step">XBMC Wiki</a>:<br />
Adding the XBMC Repo tells your system where to look for xbmc for installation and future updates<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Enter: echo &#8220;deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main&#8221; | sudo tee -a /etc/apt/sources.list.d/xbmc.list<br />
3. Enter: sudo apt-get update<br />
4. Enter: sudo apt-get install xbmc<br />
5. Enter Y for any questions<br />
(Ignore the key nagging. If you care, import the PGP key by reading the Wiki above)</p>
<p>After installation is finished you&#8217;ll find XBMC in Applications -> Sound &#038; Video</p>
<p><strong>4.1 Using VDPAU as your player in XBMC</strong><br />
In XBMC go to: Settings -> Videos -> Players -> Rendering<br />
Change rendering to VDPAU</p>
<p><strong>4.2 Testing the player</strong><br />
Download some 720/1080p *.mov files from <a href="http://www.apple.com/trailers/#section=justhd">Apple</a><br />
Try different formats from here: <a href="http://www.bigbuckbunny.org/index.php/download/">http://www.bigbuckbunny.org/index.php/download/</a></p>
<p><strong>5. Installing LIRC (Linux InfraRed Control)</strong><br />
This guide is based on a simple MCE remote bought from eBay. It should have a on/off button + a Windows logo button in center. If you have different receivers you could find others that works with another default setup.<br />
1. Open a terminal (Applications -> Accessories -> Terminal)<br />
2. Enter: sudo apt-get install lirc<br />
3. In the &#8220;Configure lirc&#8221; window select: &#8220;Windows Media Center Remotes (old version Microsoft USB ID)&#8221; using navigationkeys.<br />
4. Select &#8220;None&#8221; on transmitters<br />
5. Test LIRC by running command: irw (send IR-signals with your remote, they should be printed to the screen)</p>
<p>If you encountered problems you can start all over by running command: sudo dpkg-reconfigure lirc<br />
Restart LIRC by running command: sudo /etc/init.d/lirc restart</p>
<p>If irw works then, IR should work in XBMC also <img src='http://lars.werner.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Notice the name of the remote it should be mceusb. (If not check the Lircmap.xml if it is default supported).<br />
If you want to reconfigure the buttons in XBMC enter: sudo nano /usr/share/xbmc/system/Lircmap.xml</p>
<p>Last tip:<br />
If you have an iPhone and don&#8217;t like the idea of spending time setting up LIRC, download the <a href="http://www.appstoreapps.com/2008/09/13/xbmc-remote/">XBMC Remote</a></p>
<ol>
<strong><em>What is next&#8230;</em></strong><br />
A new guide! It will explain suspend-to-ram and how to manage LIRC after a suspend (IR-gone missing).<br />
Irxevent scripts and common start/stop/reboot scripts for XBMC will also be included + desktop navigation with the IR-remote.<br />
Read all about it <a href="http://lars.werner.no/?p=177">here</a>
</ol>
<p>Please write comments regarding errors and other ways todo stuff quicker <img src='http://lars.werner.no/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/qBV3HZkkkkY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=175</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=175</feedburner:origLink></item>
		<item>
		<title>Adito v0.9.1 windows installer</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/haW0YUitpJk/</link>
		<comments>http://lars.werner.no/?p=174#comments</comments>
		<pubDate>Mon, 16 Mar 2009 19:36:58 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=174</guid>
		<description><![CDATA[<p>The Adito is a great software for easy SSL tunneling through a browser. The installation in Windows was not pretty and many potentinally users might go away just because of that.</p> <p>I have taken a few hours of my time to bring you an more easy way to install it.</p> <p>For more information regarding Adito <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=174">Adito v0.9.1 windows installer</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Sj9vQr70z5ii9BTobmeY4YpIQMw/0/da"><img src="http://feedads.g.doubleclick.net/~a/Sj9vQr70z5ii9BTobmeY4YpIQMw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Sj9vQr70z5ii9BTobmeY4YpIQMw/1/da"><img src="http://feedads.g.doubleclick.net/~a/Sj9vQr70z5ii9BTobmeY4YpIQMw/1/di" border="0" ismap="true"></img></a></p><p>The Adito is a great software for easy SSL tunneling through a browser.<br />
The installation in Windows was not pretty and many potentinally users might go away just because of that.</p>
<p>I have taken a few hours of my time to bring you an more easy way to install it.</p>
<p>For more information regarding Adito go <a href="http://lars.werner.no/?page_id=153">here</a><br />
To download the installer go <a href="http://lars.werner.no/?page_id=162">here</a></p>
<p>Note: If you want a standalone agent with direct access, please check out <a href="http://zhoupenghust.web.officelive.com/project.aspx">this</a></p>
<p>PS: If you are looking for the RDP client and guide, check <a href="http://lars.werner.no/?p=640">here</a></p>
<p><strong>Screenshots</strong><br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/1-start.JPG' alt='Welcome' /><br />
Main window<br />
<a href='http://lars.werner.no/wp-content/uploads/2009/03/loginwindow.JPG' title='Login window'><img src='http://lars.werner.no/wp-content/uploads/2009/03/loginwindow.thumbnail.JPG' alt='Login window' /></a> <a href='http://lars.werner.no/wp-content/uploads/2009/03/mainwindow.JPG' title='Main Window'><img src='http://lars.werner.no/wp-content/uploads/2009/03/mainwindow.thumbnail.JPG' alt='Main Window' /></a><br />
Agent<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/agenttunnel.JPG' alt='Agent options' /></p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/haW0YUitpJk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=174</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=174</feedburner:origLink></item>
		<item>
		<title>Setting up VPN to your Squeezecenter for easy access in “Music Source”</title>
		<link>http://feedproxy.google.com/~r/LarsWerner/~3/rQx7NbaLXaA/</link>
		<comments>http://lars.werner.no/?p=132#comments</comments>
		<pubDate>Thu, 05 Mar 2009 01:29:13 +0000</pubDate>
		<dc:creator>large</dc:creator>
				<category><![CDATA[Frontend]]></category>

		<guid isPermaLink="false">http://lars.werner.no/?p=132</guid>
		<description><![CDATA[<p>In Squeezecenter Duet (and I guess other versions) the &#8220;Music Source&#8221; option is limited to IP-addresses and not hosts. This makes it quite hard to connect to other servers outside your home network. By setting up a VPN-connection to your Squeezecenter box you could share/connect the server with family &#038; friends without a big hazzle.</p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://lars.werner.no/?p=132">Setting up VPN to your Squeezecenter for easy access in &#8220;Music Source&#8221;</a></span>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/SVay1iDCUq9AwgzyaSKBG4q3uv0/0/da"><img src="http://feedads.g.doubleclick.net/~a/SVay1iDCUq9AwgzyaSKBG4q3uv0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SVay1iDCUq9AwgzyaSKBG4q3uv0/1/da"><img src="http://feedads.g.doubleclick.net/~a/SVay1iDCUq9AwgzyaSKBG4q3uv0/1/di" border="0" ismap="true"></img></a></p><p>In Squeezecenter Duet (and I guess other versions) the &#8220;Music Source&#8221; option is limited to IP-addresses and not hosts. This makes it quite hard to connect to other servers outside your home network.<br />
By setting up a VPN-connection to your Squeezecenter box you could share/connect the server with family &#038; friends without a big hazzle.</p>
<p>Follow this step-by-step guide by pressing the (more) button</p>
<p><span id="more-132"></span></p>
<p>First off, let me explain my network setup.<br />
Note that every networkmask is: 255.255.255.0</p>
<p><strong>Gateway (router):</strong><br />
IP: 192.168.0.1 (static)<br />
Router uses a NAT-setup with a cable-modem to the internet</p>
<p><strong>Windows home server / Squeezecenter:</strong><br />
IP: 192.168.0.30 (static)</p>
<p>My router is running the fabulous <a href="http://www.polarcloud.com/tomato">Tomato firmware</a> so I had little hazzle with opening the ports.<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/routerconfig.JPG' alt='routerconfig.JPG' /><br />
You need to forward the ports 1723 &#038; 500 to your Squeezecenter machine, in this example 192.168.0.30. Notice that in this example the machine is running Windows Home Server (WHS). Your router could be different so please consult the <a href="http://portforward.com/">Portforward</a> site and find your router!</p>
<p><strong>Hostname setup</strong><br />
If you haven&#8217;t setup a simple dynamic DNS service or simular on your router you could download the <a href="http://www.dyndns.com/support/clients/">DynDns client</a> and run it on your Server/Squeezecenter machine.</p>
<p>This will give you a host like: mysqueeze.homeip.net and it will be updated when you change ip.</p>
<p>Please refer to the DynDns page (or simular for the setup)</p>
<p><strong>VPN server setup</strong><br />
This can be done on Win2000/XP/2003/WHS/2008 (Dunno with Vista since nothing seems to work with that shitty OS).</p>
<p>1. Open the &#8220;Network Connections&#8221; (right-click on it for open)<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/1.JPG' alt='1.JPG' /></p>
<p>2. Select File and then &#8220;New Connection&#8221;<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/2.JPG' alt='2.JPG' /></p>
<p>3. Select &#8220;Set up an advanced connection&#8221;<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/3.JPG' alt='3.JPG' /></p>
<p>4. Select &#8220;Accept incomming connections&#8221;<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/4.JPG' alt='4.JPG' /></p>
<p>5. Select &#8220;Allow virtual private connections&#8221;<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/5.JPG' alt='5.JPG' /></p>
<p>6. Select the users you want to enable the VPN-connection for<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/6.JPG' alt='6.JPG' /></p>
<p>7. Just press &#8220;Next&#8221;, settings are defaulted to give ip by DHCP (usally your router)<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/7.JPG' alt='7.JPG' /></p>
<p>9. You are now done setting up the incoming connections part<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/9.JPG' alt='9.JPG' /></p>
<p><strong>VPN Client setup</strong></p>
<p>1. Go to your Network connection<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/2.JPG' alt='2.JPG' /></p>
<p>2. Starting the wizard, Press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/b.JPG' alt='b.JPG' /></p>
<p>3. Choose &#8220;Connect to the network at my workplace&#8221;, press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/c.JPG' alt='c.JPG' /></p>
<p>4. Choose &#8220;Virtual Private Network connection&#8221;, Press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/d.JPG' alt='d.JPG' /></p>
<p>5. Write any info you like here, Press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/e.JPG' alt='e.JPG' /></p>
<p>6. If this window comes up, choose &#8220;Do not dial the inital connection&#8221;, Press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/f.JPG' alt='f.JPG' /></p>
<p>7. Write your friends / family hostname, Press Next<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/g.JPG' alt='g.JPG' /><br />
(If you get a Smartcard question, on the next window just choose no and go to the next picture)</p>
<p>8. You&#8217;re finished, press Finished<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/h.JPG' alt='h.JPG' /></p>
<p>9. Now double-click the new connection you got<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/i.JPG' alt='i.JPG' /></p>
<p>10. Enter your username &#038; password<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/j.JPG' alt='j.JPG' /></p>
<p>11. It should be connected and registered on the network<br />
<img src='http://lars.werner.no/wp-content/uploads/2009/03/k.JPG' alt='k.JPG' /></p>
<p>If everything went OK you should be able to see the Squeecenter server in the &#8220;Music source&#8221; list.<br />
If not check the IP-address you got is in the same range as the server, in this example 192.168.0.x. If you didn&#8217;t get any IPs or you got connection refused you probably hasn&#8217;t forwarded the ports correctly. Double check it, and try a connection outside with <a href="http://www.canyouseeme.org/">CanyouSeeMeeeee</a><br />
Then check if you could ping each other. If the ping does not reply, please turn off soft-firewalls like Windows Firewall and check if it works then.</p>
<p>Fire away a comment for questions regarding this setup&#8230;</p>
<img src="http://feeds.feedburner.com/~r/LarsWerner/~4/rQx7NbaLXaA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://lars.werner.no/?feed=rss2&amp;p=132</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://lars.werner.no/?p=132</feedburner:origLink></item>
	</channel>
</rss><!-- Served from: lars.werner.no @ 2012-05-17 23:33:26 by W3 Total Cache -->

