<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jesperrasmussen.com &#187; Technology</title>
	<atom:link href="http://jesperrasmussen.com/category/technology/feed" rel="self" type="application/rss+xml" />
	<link>http://jesperrasmussen.com</link>
	<description>confessions of yet another Mac-geek</description>
	<lastBuildDate>Wed, 07 Mar 2012 19:36:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>R.I.P Steve Jobs</title>
		<link>http://jesperrasmussen.com/r-i-p-steve-jobs</link>
		<comments>http://jesperrasmussen.com/r-i-p-steve-jobs#comments</comments>
		<pubDate>Thu, 06 Oct 2011 08:44:12 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://jesperrasmussen.com/?p=141</guid>
		<description><![CDATA[Headline says it all. Thanks for being a constant inspiration during my adult life, as a developer and as a person who wants a simple, down-to-earth approach to life. You changed the world, made it a better place and inspired others to do the same. R.I.P. apple.com/stevejobs]]></description>
			<content:encoded><![CDATA[<p>Headline says it all. Thanks for being a constant inspiration during my adult life, as a developer and as a person who wants a simple, down-to-earth approach to life.</p>
<p>You changed the world, made it a better place and inspired others to do the same. R.I.P.</p>
<p><a href="http://www.apple.com/stevejobs/">apple.com/stevejobs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jesperrasmussen.com/r-i-p-steve-jobs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enjoying your media in the living room</title>
		<link>http://jesperrasmussen.com/enjoying-your-media-in-the-living-room</link>
		<comments>http://jesperrasmussen.com/enjoying-your-media-in-the-living-room#comments</comments>
		<pubDate>Mon, 22 Mar 2010 15:58:45 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Movies]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://jesperrasmussen.com/?p=124</guid>
		<description><![CDATA[Back in the day, I used to have an old Xbox v1. It was modded to enable it to run Xbox Media Center, the best mediasolution I&#8217;ve ever seen. It played EVERYTHING I threw at it, no questions asked. However, when my old standard-definition TV was dying, I wanted to upgrade to a new, shiny [...]]]></description>
			<content:encoded><![CDATA[<p>Back in the day, I used to have an old Xbox v1. It was modded to enable it to run <a href="http://xbmc.org">Xbox Media Center</a>, the best mediasolution I&#8217;ve ever seen. It played EVERYTHING I threw at it, no questions asked.</p>
<p>However, when my old standard-definition TV was dying, I wanted to upgrade to a new, shiny LCD TV, and so I did. Back then, it didn&#8217;t matter as much, as HD content really wasn&#8217;t that popular yet, and the display of SD content on the TV was rather acceptable.</p>
<p>Now, some years later, I recently had a small batch of money, and therefore decided to retire the, now old, LG 32&#8243; TV, and get a brand-sparkling-new 47&#8243; LED version instead. Now doing that was one thing, but I really wanted to upgrade my mediacenter as well. My initial thought, being the Apple-fanboy that I am, was to get a Mac Mini, and hack that like a madman. However, I knew that the advancements within &#8220;nettops&#8221; (Small desktop computers based on the lowpower netbook cpu&#8217;s) meant that you could get a similar sized PC at half the price of the Mini (And using less power too, something quite important in these global warming times ;) ).<span id="more-124"></span></p>
<p>Anyway, these were the primary requirements for my new system:</p>
<p>Should be able to handle most formats<br />
Should be able to handle full-HD playback<br />
Should be able to stream from the NAS in the home office without lag<br />
Should be easy to manage</p>
<p>So, I ended up getting a <a href="http://www.asrock.com/nettop/overview.asp?Model=ION%20330HT">AsRock ION 330HT</a> , a model very popular among XBMC fans. It&#8217;s small, uses the Nvidia ION platform (capable of running full-HD without straining the CPU), has HDMI out, has eSATA, 6 USB ports and even a VGA port if you&#8217;re using an old screen for the initial setup. Oh, and it has built-in IR-receiver and a remote to go along with it, so you don&#8217;t need an external (read: Ugly) receiver!</p>
<p>There&#8217;s a lot of different setups outthere, and other producers are becoming as popular as the AsRock. Shuttle has new models coming out at the moment, Acer etc. are also in the race for the living room with smaller, more friendly devices (No more large PC enclosures in the living room, along with fan noise, woohoo!), so better alternatives might already be available. I just suggest having a look at the <a href="http://forum.xbmc.org">XBMC Forum</a> before buying anything.</p>
<h3>The initial setup</h3>
<p>This took me some trial and error, but it will be worth it in the end, as the final system works excellently. Don&#8217;t expect everything to work after 5 mins. though, so if you have no patience, or dislike reading and/or troubleshooting, doing this setup may not be for you.</p>
<p>Anyway: First up, get a minimal version of Ubuntu 32 or 64 bit. <a href="https://help.ubuntu.com/community/Installation/MinimalCD">https://help.ubuntu.com/community/Installation/MinimalCD</a> should provide you with download links. You&#8217;d want Karmic Koala, as that&#8217;s suggested as the most stable atm, when running XBMC. To not have to use a CD for the minimal install (It&#8217;s only 12MB), I use <a href="http://unetbootin.sourceforge.net/">UNetbootin</a> to create a bootable USB drive.</p>
<p>Now boot the machine from the USB key, and run through the Ubuntu install. You&#8217;d probably want to partition your main drive with one of the default setups, that create 3 partitions (root, home and swap). This is an advantage, as it allows you to store all your media within /home and not have it deleted if/when you reinstall your HTPC.<br />
Furthermore, when the installer asks you to select packages to install, you&#8217;d want to select the &#8220;Basic Ubuntu Server&#8221; and &#8220;OpenSSH Server&#8221;, to install only the basics, and allow for SSH access to the machine later on (Makes maintenance somewhat easier when the machine is finally located below your TV).<br />
Finally, create a user named &#8220;xbmc&#8221;. This user will run the actual software, own all the mediafiles etc.</p>
<h3>Installing the basics</h3>
<p>Assuming you&#8217;ve finished the Ubuntu setup, log on as root (using the password you setup in the initial install), and do the following:</p>
<p>[shell]visudo[/shell]</p>
<p>Now after the line containing &#8220;root&#8221;, add the following:</p>
<p>[shell]xbmc    ALL=(ALL) ALL[/shell]</p>
<p>This allows the xbmc user to use the sudo command for all commands. Now logout of the root account, and log in as xbmc. Here&#8217;s the fun part: A couple of XBMC users has decided to gather all of the guides, howtos etc. in one simple installer, that simply allows you to run their installer instead of having to install XBMC, graphic drivers etc. manually.</p>
<p>I use this to setup my AsRock box, as it&#8217;s able to fix graphic drivers and HD acceleration, setup my remote, setup audio over HDMI, setup XBMC and make everything boot up when starting the machine, without having to manually change anything. Simply put, when the basic system is installed and this script is run, XBMC should just be ready to take on everything you throw at it.</p>
<p>Anyway, to run the installer, type the following as the xbmc user:</p>
<p>[shell]wget http://sourceforge.net/projects/xci/files/Release/xci.sh/download<br />
chmod +x xci.sh; sudo ./xci.sh[/shell]</p>
<p>And follow the onscreen instructions, to install XBMC stable and whatever you may need. Now you should be done! To get mediafiles onto your new mediacenter, try SFTP&#8217;ing a couple of files over to test. In the longer run you may want to setup Samba shares or setup NFS on the machine, to make it easier, but that&#8217;s a story for another day ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://jesperrasmussen.com/enjoying-your-media-in-the-living-room/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coding on the go &#8211; Setting up local Apache</title>
		<link>http://jesperrasmussen.com/coding-on-the-go-setting-up-local-apache</link>
		<comments>http://jesperrasmussen.com/coding-on-the-go-setting-up-local-apache#comments</comments>
		<pubDate>Thu, 27 Aug 2009 16:13:11 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://jesperrasmussen.com/?p=43</guid>
		<description><![CDATA[As one might imagine, I&#8217;ve setup Apache with PHP support quite some times over the last years. A thing I&#8217;ve already enjoyed, is having a local development environment installed on my laptop, and having my development environment with me, everywhere I go. Over the next couple of weeks, I&#8217;ll walk you through setting everything up. [...]]]></description>
			<content:encoded><![CDATA[<p>As one might imagine, I&#8217;ve setup Apache with PHP support quite some times over the last years. A thing I&#8217;ve already enjoyed, is having a local development environment installed on my laptop, and having my development environment with me, everywhere I go. Over the next couple of weeks, I&#8217;ll walk you through setting everything up. We&#8217;ll start out by setting up Apache.<span id="more-43"></span></p>
<h4>Why would I run everything locally ?</h4>
<p>Over the last years, a lot of the development agencies in the PHP world, has found out the joys of having local, individual environments for all developers, and managing larger projects through version control like SVN, CVS or, my new favourite, Git. Most people don&#8217;t have the luxury of having their own dedicated testserver for development, but you really don&#8217;t need one either. If you just have a Mac with OS X, you&#8217;ll have everything you need.</p>
<p>The reasons for having a local environment are quite massive: You&#8217;re able to have a complete replica of a running website, you&#8217;ll be able to develop new features without risking the stability of your public site. You&#8217;ll have full control of every setting in Apache, MySQL and PHP, meaning you&#8217;ll have the opportunity of testing optimizations and database structures properly, without the risk of destroying everything in a production environment.</p>
<h3>Prerequirements</h3>
<p>To complete the setup of Apache &amp; friends, you&#8217;ll need the assistance of Terminal. If you are not comfortable with Terminal, just feel free to copy&#8217;n'paste every command here. Of course, as time passes, and you&#8217;re using your new environment, you&#8217;ll probably notice the advantages of Terminal anyway.</p>
<h3>Setting up Apache</h3>
<p>As Apache 2 is bundled with Leopard, this is very easy. Apache is controlled by enabling Web sharing in System Preferences.</p>
<h4>Setting up webroots</h4>
<p>As you have full control of Apache&#8217;s setup, you could actually put your websites whereever you&#8217;d like. However, as you already have the Sites folder available in your home directory, I&#8217;ll just make use of that. This also ensures, that Time Machine for instance is able to create backups of your sites.</p>
<p>So go ahead and create a directory within Sites for your new site, and try to give it a memorable name (In this example I&#8217;ll use jesperrasmussen.com from now on) .</p>
<p>[shell]sudo mkdir -p ~/Sites/jesperrasmussen.com/htdocs[/shell]</p>
<p>While you&#8217;re at it, add a general directory for Apache&#8217;s logs within Sites, to gather all sites logs within one place, making debugging and log-analyzing a bit easier.</p>
<p>[shell]sudo mkdir ~/Sites/logs[/shell]</p>
<p>Now that that&#8217;s done, you should have a couple of nice directories for the virtualhost and its logfiles, so let&#8217;s move on.</p>
<h4>Setting up a VirtualHost</h4>
<p>In the default setting, Apache will see your Sites folder as one site, as it&#8217;s setup to allow one personal site per user. To make Apache recognize the new virtual hosts, you need to edit the file /private/etc/apache2/users/.conf in your favourite editor (I recommend emacs or nano for Terminal editing).</p>
<p>The file will look somewhat like this when you open it:</p>
<p>[shell]&lt;Directory &quot;/Users/jesper/Sites/&quot;&gt;<br />
 Options Indexes MultiViews<br />
 AllowOverride None<br />
 Order allow,deny<br />
 Allow from all<br />
&lt;/Directory&gt;[/shell]</p>
<p>Now, what we&#8217;ll do, is that we&#8217;ll add the lines for a new virtualhost in the configuration. Furthermore, in my example, there&#8217;s  an added .dev alias to the domain, allowing me to access the local development version of the site by accessing jesperrasmussen.dev, and access the public version (On another server) by accessing jesperrasmussen.com. Anyway, add the following lines, replacing jesperrasmussen.com with whatever your virtual host is called, and save the file.</p>
<p>[shell]NameVirtualHost *:80<br />
DocumentRoot /Users/jesper/Sites/jesperrasmussen.com/htdocs<br />
ServerName jesperrasmussen.com<br />
ServerAlias jesperrasmussen.dev<br />
ErrorLog /Users/jesper/Sites/logs/jesperrasmussen.com-error_log<br />
CustomLog /Users/jesper/Sites/logs/jesperrasmussen.com-access_log common[/shell]</p>
<h4>Restarting Apache</h4>
<p>Inorder to test the new site, we need to reload Apache&#8217;s configuration files. This is done by testing the new config files first.</p>
<p>[shell]sudo apachectl -t[/shell]</p>
<p>If this says &#8220;Syntax OK&#8221;, we should gracefully load the changes into Apache. *)</p>
<p>[shell]sudo apachectl graceful[/shell]</p>
<h4>Accessing your newly created site</h4>
<p>Now, you may think you should be able to access your new site at the domain you&#8217;ve entered. But no, you still need one more thing, changing your hosts-file into handling your domain locally (Or at least, the development version). This is done by editing /etc/hosts (Again, using emacs or nano), like so:</p>
<p>[shell]sudo nano /etc/hosts[/shell]</p>
<p>This should load your hosts-file **), which should look like this:</p>
<p>[shell]127.0.0.1 localhost<br />
255.255.255.255 broadcasthost<br />
::1 localhost<br />
fe80::1%lo0 localhost[/shell]</p>
<p>Now, in the bottom of the file, insert a couple of blank lines to seperate your changes from the default parts, and insert this line:</p>
<p>[shell]127.0.0.1       jesperrasmussen.dev www.jesperrasmussen.dev[/shell]</p>
<p>This will force your machine into believing that your domain is located at localhost, thus making the request at your local Apache.</p>
<p>Now, everything should work, try putting a dummy index.html file in your new htdocs directory, and try loading the site in your browser. Next time I&#8217;ll have a look at enabling PHP and MySQL support on your standard machine.</p>
<h4>Further reading</h4>
<p>It&#8217;s come to my attention that Patrick Gibson has a fine shellscript for handling the VirtualHost part, making this a lot easier.<br />
You might want to <a href="http://patrickgibson.com/utilities/virtualhost/">check that out</a></p>
<hr />
<p>* Gracefully restarting Apache lets Apache apply the configuration more smoothly, by allowing it&#8217;s child processes to keep running with the old configuration, but loading the new configuration for all new processes. This is usually done in production environments, to avoid hard restarting servers, thereby avoiding possible downtime.</p>
<p>** The hosts-file is OS X&#8217;s way of overriding DNS locally. It allows you to force a domain to a specific IP-address rather than the one specified in the domains DNS. This is especially useful for testing a development or staging environment with the correct domainname.</p>
]]></content:encoded>
			<wfw:commentRss>http://jesperrasmussen.com/coding-on-the-go-setting-up-local-apache/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

