<?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>Vvvegard! &#187; ninja</title>
	<atom:link href="http://www.vvvegard.net/blog/category/ninja/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vvvegard.net/blog</link>
	<description>Learn me a book!</description>
	<lastBuildDate>Sun, 27 Feb 2011 03:11:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache2 wildcard DNS and dynamic virtual hosts</title>
		<link>http://www.vvvegard.net/blog/apache2-wildcard-dns-and-dynamic-virtual-hosts/283/</link>
		<comments>http://www.vvvegard.net/blog/apache2-wildcard-dns-and-dynamic-virtual-hosts/283/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 01:36:53 +0000</pubDate>
		<dc:creator>Vegard Hansen</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ninja]]></category>
		<category><![CDATA[vhost]]></category>

		<guid isPermaLink="false">http://www.vvvegard.net/blog/?p=283</guid>
		<description><![CDATA[We can utilize the power (.. or lack?) of mod_rewrite in Apache2 to dynamically add subdomains for all subdirectories in a certain folder. I cannot recall where i first read how to do this, but all creds goes to someone on the Internet! Also, this only works &#8220;out-of-the-box&#8221; for Debian Lenny running latest stable version [...]]]></description>
			<content:encoded><![CDATA[<p>We can utilize the power (.. or lack?) of mod_rewrite in Apache2 to dynamically add subdomains for all subdirectories in a certain folder. I cannot recall where i first read how to do this, but all creds goes to someone on the Internet! Also, this only works &#8220;out-of-the-box&#8221; for Debian Lenny running latest stable version of Apache2, but it should work on all systems running Apache2, with slight modification.</p>
<p>First we need to enable some modules:</p>
<pre class="brush: plain; title: Code example:;">
a2enmod rewrite vhost_alias
/etc/init.d/apache2 restart</pre>
<p>Next up we do some rewrite magic, you need to change some paths and domains to reflect your setup, personally I just use some search and replace in nano to reflect whatever domain and site I&#8217;m setting up.</p>
<pre class="brush: plain; title: Code example:;">
&lt;VirtualHost *:80&gt;
ServerName eksempel.no
ServerAlias *.eksempel.no #wildcard catch all
VirtualDocumentRoot /var/www/%1
UseCanonicalName Off
IndexOptions FancyIndexing
### Use mod_rewrite to direct eksempel.no to www.eksempel.no
RewriteEngine On
RewriteCond %{HTTP_HOST} ^eksempel.no
RewriteRule (.*) http://www.%{HTTP_HOST}$1 [R=301,L]
### Logging
LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
CustomLog /var/log/apache2/access_log_eksempel combined
&lt;Directory /var/www&gt;
AllowOverride None
&lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>
<p>You must also restart Apache2 for your changes to apply.</p>
<pre class="brush: plain; title: Code example:;">
/etc/init.d/apache2 restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vvvegard.net/blog/apache2-wildcard-dns-and-dynamic-virtual-hosts/283/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing the MacBook Pro SuperDrive, the ninja way!</title>
		<link>http://www.vvvegard.net/blog/fixing-the-macbook-pro-superdrive-the-ninja-way/228/</link>
		<comments>http://www.vvvegard.net/blog/fixing-the-macbook-pro-superdrive-the-ninja-way/228/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 22:10:30 +0000</pubDate>
		<dc:creator>Vegard Hansen</dc:creator>
				<category><![CDATA[Macbook]]></category>
		<category><![CDATA[ninja]]></category>
		<category><![CDATA[burn]]></category>
		<category><![CDATA[burn disk]]></category>
		<category><![CDATA[cannot burn]]></category>
		<category><![CDATA[cleaning]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[superdrive]]></category>

		<guid isPermaLink="false">http://www.vvvegard.net/blog/?p=228</guid>
		<description><![CDATA[If you ever had the following error message on you Macbook&#8217;s SuperDrive, The disc can&#8217;t be burned; it might be incompatible with this disc drive. Please try a different brand of disc, or try burning at a slower speed. you are probably in luck. It&#8217;s does not seem to be some sort of firmware error [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever had the following error message on you Macbook&#8217;s SuperDrive,</p>
<blockquote><p>The disc can&#8217;t be burned; it might be incompatible with this disc drive. Please try a different brand of disc, or try burning at a slower speed.</p></blockquote>
<p>you are probably in luck. It&#8217;s does not seem to be some sort of firmware error or anything wrong with the disk you are using. It&#8217;s simply the SuperDrives laser that has gotten dusty and needs cleaning. Simple find a creditcard and a t-shirt with <em>long threaded weaving</em>. Use the creditcard to hold the cloth wrapped around and insert it into the SuperDrive and carefully move it back and forth whilst applying a <em>little</em> force downwards. The optical sensor should be on the left side, but I cleaned both sides.</p>
<p>Note, if you are within warranty you should not do this at home. I guess mighty Steve would void your ass back to outer space if he ever saw you doing it&#8230; For some pictures of the madness, head over to <a href="http://picasaweb.google.com/116546159631570220926/CleaningSuperdrive#">PicasaWeb</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vvvegard.net/blog/fixing-the-macbook-pro-superdrive-the-ninja-way/228/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
