<?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>A Sceptical Mind</title>
	<atom:link href="http://www.scepticalmind.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scepticalmind.com</link>
	<description>The ramblings of a Danish sceptic liberal</description>
	<lastBuildDate>Sat, 24 Apr 2010 16:24:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Anyone threatening death in the name of religion or politics: Go Fuck Yourself!</title>
		<link>http://www.scepticalmind.com/2010/04/24/anyone-threatening-death-in-the-name-of-religion-or-politics-go-fuck-yourself/</link>
		<comments>http://www.scepticalmind.com/2010/04/24/anyone-threatening-death-in-the-name-of-religion-or-politics-go-fuck-yourself/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 16:24:19 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[freedom of speech]]></category>
		<category><![CDATA[islam]]></category>
		<category><![CDATA[jon stewart]]></category>
		<category><![CDATA[religion]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=212</guid>
		<description><![CDATA[Support freedom of speech! The Daily Show With Jon Stewart Mon &#8211; Thurs 11p / 10c South Park Death Threats www.thedailyshow.com Daily Show Full Episodes Political Humor Tea Party]]></description>
			<content:encoded><![CDATA[<p>Support freedom of speech!</p>
<table style="font: normal normal normal 11px/normal arial; color: #333333; background-color: #f5f5f5; width: 360px; height: 353px;" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background-color: #e5e5e5;" valign="middle">
<td style="padding: 2px 1px 0px 5px;"><a style="color: #333; text-decoration: none; font-weight: bold;" href="http://www.thedailyshow.com" target="_blank">The Daily Show With Jon Stewart</a></td>
<td style="padding: 2px 5px 0px 5px; text-align: right; font-weight: bold;">Mon &#8211; Thurs 11p / 10c</td>
</tr>
<tr style="height: 14px;" valign="middle">
<td style="padding: 2px 1px 0px 5px;" colspan="2"><a style="color: #333; text-decoration: none; font-weight: bold;" href="http://www.thedailyshow.com/watch/thu-april-22-2010/south-park-death-threats" target="_blank">South Park Death Threats</a></td>
</tr>
<tr style="height: 14px; background-color: #353535;" valign="middle">
<td style="padding: 2px 5px 0px 5px; width: 360px; overflow: hidden; text-align: right;" colspan="2"><a style="color: #96deff; text-decoration: none; font-weight: bold;" href="http://www.thedailyshow.com/" target="_blank">www.thedailyshow.com</a></td>
</tr>
<tr valign="middle">
<td style="padding: 0px;" colspan="2"><object style="display: block;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="360" height="301" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="bgcolor" value="#000000" /><param name="flashvars" value="autoPlay=false" /><param name="src" value="http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:281721" /><param name="wmode" value="window" /><param name="allowfullscreen" value="true" /><embed style="display: block;" type="application/x-shockwave-flash" width="360" height="301" src="http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:281721" allowfullscreen="true" wmode="window" flashvars="autoPlay=false" bgcolor="#000000"></embed></object></td>
</tr>
<tr style="height: 18px;" valign="middle">
<td style="padding: 0px;" colspan="2">
<table style="text-align: center; width: 100%; height: 100%; margin: 0px;" cellspacing="0" cellpadding="0">
<tbody>
<tr valign="middle">
<td style="padding: 3px; width: 33%;"><a style="font: 10px arial; color: #333; text-decoration: none;" href="http://www.thedailyshow.com/full-episodes/" target="_blank">Daily Show Full Episodes</a></td>
<td style="padding: 3px; width: 33%;"><a style="font: 10px arial; color: #333; text-decoration: none;" href="http://www.indecisionforever.com" target="_blank">Political Humor</a></td>
<td style="padding: 3px; width: 33%;"><a style="font: 10px arial; color: #333; text-decoration: none;" href="http://www.thedailyshow.com/videos/tag/Tea+Party" target="_blank">Tea Party</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2010/04/24/anyone-threatening-death-in-the-name-of-religion-or-politics-go-fuck-yourself/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m back baby!</title>
		<link>http://www.scepticalmind.com/2010/04/08/im-back-baby/</link>
		<comments>http://www.scepticalmind.com/2010/04/08/im-back-baby/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 16:28:54 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Junk]]></category>
		<category><![CDATA[announcement]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=207</guid>
		<description><![CDATA[Just when you thought you were rid of me I came clawing back For anyone actually looking at the amount of time between this post and the one before it, you might be thinking: &#8220;Where the hell was that guy for like.. a year?&#8221;. Well, I have no idea? Busy I guess? Wrote a compiler, [...]]]></description>
			<content:encoded><![CDATA[<p>Just when you thought you were rid of me I came clawing back <img src='http://www.scepticalmind.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>For anyone actually looking at the amount of time between this post and the one before it, you might be thinking: &#8220;Where the hell was that guy for like.. a year?&#8221;. Well, I have no idea? Busy I guess? Wrote a compiler, took a bunch of courses, started a business.. all sorts of stuff.</p>
<p>But anyway, I&#8217;m back now so hopefully I will be taken the time to write something worthwhile within the near future (no this post is not classified as worthwhile ;-P).. oh yeah, and I updated the About the author page.. it was getting kinda outdated! So come back here soon and read+comment on whatever dribble I conjure up.</p>
<p>Until then: take care!</p>
<p>~ Out</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2010/04/08/im-back-baby/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Statistical Voyeurism</title>
		<link>http://www.scepticalmind.com/2009/04/08/statistical-voyeurism/</link>
		<comments>http://www.scepticalmind.com/2009/04/08/statistical-voyeurism/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 08:51:32 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Junk]]></category>
		<category><![CDATA[sex]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=109</guid>
		<description><![CDATA[Hehe &#8211; If you&#8217;ve just had a couple of statistics courses, this joke just seems a million times funnier:]]></description>
			<content:encoded><![CDATA[<p>Hehe &#8211; If you&#8217;ve just had a couple of statistics courses, this joke just seems a million times funnier:</p>
<p><img title="Statistical Voyeurism" src="http://imgs.xkcd.com/comics/fermirotica.png" alt="Statistical Voyeurism" width="392" height="483" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2009/04/08/statistical-voyeurism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ayoe Angelica</title>
		<link>http://www.scepticalmind.com/2009/02/07/ayoe-angelica/</link>
		<comments>http://www.scepticalmind.com/2009/02/07/ayoe-angelica/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 01:04:32 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Ayoe Angelica]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[talent]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=104</guid>
		<description><![CDATA[When it comes to music I&#8217;m mostly a Metal, Jazz and Hard Rock kinda guy, but lately one artist has captivated me in a new and deeper way &#8211; This artist is the talented and beautiful Ayoe Angelica. Truth be told, I actually know Ayoe indirectly through my fiancee Sara Lind, however Ayoe never striked [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: left; padding-right: 5px;" title="Ayoe Angelica - I'm Amazed" src="http://www.diskant.dk/Billeder/Cd%20Covers/A/AyoeAngelica-ImAmazed.jpg" alt="Ayoe Angelica - I'm Amazed" width="300" height="273" />When it comes to music I&#8217;m mostly a Metal, Jazz and Hard Rock kinda guy, but lately one artist has captivated me in a new and deeper way &#8211; This artist is the talented and beautiful Ayoe Angelica.</p>
<p>Truth be told, I actually know Ayoe indirectly through my fiancee Sara Lind, however Ayoe never striked me as a potential world artist until I heard her sing. With a combination of mellow soul and powerful lyrics, Ayoe&#8217;s debut-album is a wonderful piece of art that tears up your mind and soul. Not only do I firmly believe Ayoe&#8217;s music will appeal to most everyone in some way or another, but I also believe that 5 years from now, such a statement will be so universal that it almost constitutes a given!</p>
<p>This belief was strengthened even further when I accidently turned on Denmark&#8217;s DR1 in December and saw Ayoe Angelica as a supporting singer for Ufo &amp; Yepha (for a charity event as far as I know.)</p>
<p>So am I expecting you&#8217;re just gonna take my word for it? Of course not!! You can find more information about Ayoe on her own website: <a href="http://ayoeangelica.dk/">http://ayoeangelica.dk/</a> &#8230; Other than that Ayoe also has a MySpace page, a Facebook fan page and a bunch of YouTube videos, one of which is included in the bottom of this post! I hope Ayoe&#8217;s music brings you enlightenment as it has me! &#8230; That is all!!</p>
<p>Ayoe Angelica &#8211; Dr. Jekyll:<br />
<object width="425" height="344" data="http://www.youtube.com/v/2WFuqDHqMiY&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/2WFuqDHqMiY&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>Ufo &amp; Yepha feat. Ayoe Angelica (This is in Danish):<br />
<object width="425" height="344" data="http://www.youtube.com/v/2CHMhvLxoFw&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/2CHMhvLxoFw&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2009/02/07/ayoe-angelica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Help us get a free dinner at Jensens Bøfhus</title>
		<link>http://www.scepticalmind.com/2008/10/30/help-us-get-a-free-dinner-at-jensens/</link>
		<comments>http://www.scepticalmind.com/2008/10/30/help-us-get-a-free-dinner-at-jensens/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 20:57:58 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[university]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=97</guid>
		<description><![CDATA[Hello everyone! Dear friend, visitor or whatever your role might be. Please take the time to help me and my fellow computer science students get a free dinner at the Danish restaurant Jensens Bøfhus. They basically have a small competition running right now, where you can upload a picture and get voted for &#8211; if [...]]]></description>
			<content:encoded><![CDATA[<div class="entry">
<p>Hello everyone!</p>
<p>Dear friend, visitor or whatever your role might be. Please take the time to help me and my fellow computer science students get a free dinner at the Danish restaurant Jensens Bøfhus.</p>
<p>They basically have a small competition running right now, where you can upload a picture and get voted for &#8211; if your picture has the most votes = you win! So please help us and vote for our picture &#8211; you would make a bunch of poor students happy <img src='http://www.scepticalmind.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>So, if you would be so kind to click on this link (no viruses &#8211; promise!):<br />
<a title="Vote on us, at Jensens Bøfhus competition" href="http://jensensb.ziteman.com/mms_sider/mms_nyestebilleder.asp?vote=1C4936BC-3DF0-48DA-B464-C11E0AD6D092" target="_blank">http://jensensb.ziteman.com/mms_sider/mms_nyestebilleder.asp?vote=1C4936BC-3DF0-48DA-B464-C11E0AD6D092</a></p>
<p>It will simply cast a vote for us in the competition. And remeber, <span style="text-decoration: underline;">you can vote two times</span>! <img class="wp-smiley" src="http://www.micdah.dk/wp-includes/images/smilies/icon_wink.gif" alt=";-)" /></p>
<p>Anyways, thanks for the support!! Peace!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/10/30/help-us-get-a-free-dinner-at-jensens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing X-Powered-By header for mod_rails</title>
		<link>http://www.scepticalmind.com/2008/10/30/removing-x-powered-by-mod-rails/</link>
		<comments>http://www.scepticalmind.com/2008/10/30/removing-x-powered-by-mod-rails/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 15:44:32 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=91</guid>
		<description><![CDATA[I recently had a bit of a problem with a server running a Ruby on Rails application. I wanted to make sure the server didn&#8217;t give out any information about service versions, however mod_rails didn&#8217;t give any easy way of doing this within the module itself. I therefore began searching for another way of doing [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a bit of a problem with a server running a Ruby on Rails application. I wanted to make sure the server didn&#8217;t give out any information about service versions, however mod_rails didn&#8217;t give any easy way of doing this within the module itself. I therefore began searching for another way of doing this, and found that an easy solution was to make Apache remove the headers via. the mod_headers module.</p>
<p>So how is it done? Very simple, just enable the module mod_headers and add the snippet below to httpd.conf or another included configuration file in Apache. Both actions have to be done as root of course.</p>
<p>Enable the mod_headers module <em>(This example is Linux Debian &#8211; it might be different for your system)</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cd /etc/apache2/mods-available/</span>
<span style="color: #666666; font-style: italic;"># a2enmod headers</span></pre></div></div>

<p>Add these lines to httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Header always <span style="color: #7a0874; font-weight: bold;">unset</span> <span style="color: #ff0000;">&quot;X-Powered-By&quot;</span>
Header always <span style="color: #7a0874; font-weight: bold;">unset</span> <span style="color: #ff0000;">&quot;X-Runtime&quot;</span></pre></div></div>

<p>Restart the Apache server <em>(Again &#8211; this is Debian! It might be different for you)</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apache2ctl restart</span></pre></div></div>

<p>And there you go. Try making e.g. a Nikto scan on the server and see if the headers aren&#8217;t there anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/10/30/removing-x-powered-by-mod-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Status of the World &#8211; Audio version</title>
		<link>http://www.scepticalmind.com/2008/10/19/the-status-of-the-world-audio-version/</link>
		<comments>http://www.scepticalmind.com/2008/10/19/the-status-of-the-world-audio-version/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 23:54:46 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[crime]]></category>
		<category><![CDATA[Denmark]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=86</guid>
		<description><![CDATA[Hello everyone, I thought I would try something new today. I just bought a microphone a few months ago and haven&#8217;t really attempted to get it tested yet, so I guess it was about time. For this reason I&#8217;ve recorded a small message to the world, summing up the status of the world.. Enjoy! The [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>I thought I would try something new today. I just bought a microphone a few months ago and haven&#8217;t really attempted to get it tested yet, so I guess it was about time. For this reason I&#8217;ve recorded a small message to the world, summing up the status of the world.. Enjoy!</p>
<p><a href="http://www.scepticalmind.com/wp-content/uploads/2008/10/myfirstmessagetotheworld.mp3">The Status of the World</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/10/19/the-status-of-the-world-audio-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.scepticalmind.com/wp-content/uploads/2008/10/myfirstmessagetotheworld.mp3" length="2256142" type="audio/mpeg" />
		</item>
		<item>
		<title>Simple backup script with notification</title>
		<link>http://www.scepticalmind.com/2008/09/28/simple-backup-script-with-notification/</link>
		<comments>http://www.scepticalmind.com/2008/09/28/simple-backup-script-with-notification/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 01:07:58 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=80</guid>
		<description><![CDATA[So I recently had to come up with a simple backup solution that didn&#8217;t involve any fancy system and basically just gave one the opportunity to choose what directories to backup, where to back them up and notify if something goes wrong. So I came up with a solution which, in my own view, could [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently had to come up with a simple backup solution that didn&#8217;t involve any fancy system and basically just gave one the opportunity to choose what directories to backup, where to back them up and notify if something goes wrong.</p>
<p>So I came up with a solution which, in my own view, could be better and more &#8220;clean&#8221;, however this is how it is right now. You&#8217;re welcome to take the script, change and redistribute it &#8211; it&#8217;s released under the BSD license.</p>
<p>You might notice it&#8217;s refering to a bunch of files &#8211; these files are the error messages sent in e-mails and need to be placed somewhere, with corresponding changes in the script. If they don&#8217;t, e-mail notification won&#8217;t work.</p>
<p>Right now it&#8217;s sending e-mails when it&#8217;s succesful in making a backup. Depending on how often you want your cron job to do a backup, it might be irritating to get that many e-mails, so all you need to do is basically just remove the last part so that it only notifies you if something goes wrong.. That will however create the possibility that the e-mail functionality of the server will stop working and you won&#8217;t notice.</p>
<p>But yeah.. Here&#8217;s the script + all the error-messages zipped for download: <a href="http://www.scepticalmind.com/wp-content/uploads/2008/09/backup_script.zip">backup_script</a></p>
<p>I&#8217;ll be the first to admit it&#8217;s not optimal in any way.. it&#8217;s a quick solution and has a bunch of DRY (Don&#8217;t Repeat Yourself) violations&#8230; but hey.. it works and given it&#8217;s low complexity I don&#8217;t wanna prioritize cleaning it up that much &#8211; but you are more than welcome to do so!</p>
<p>Here&#8217;s the code copied into the post:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Copyright (c) 2008, Michael Lind Mortensen</span>
<span style="color: #666666; font-style: italic;"># All rights reserved.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Redistribution and use in source and binary forms, with or without</span>
<span style="color: #666666; font-style: italic;"># modification, are permitted provided that the following conditions are met:</span>
<span style="color: #666666; font-style: italic;">#     * Redistributions of source code must retain the above copyright</span>
<span style="color: #666666; font-style: italic;">#       notice, this list of conditions and the following disclaimer.</span>
<span style="color: #666666; font-style: italic;">#     * Redistributions in binary form must reproduce the above copyright</span>
<span style="color: #666666; font-style: italic;">#       notice, this list of conditions and the following disclaimer in the</span>
<span style="color: #666666; font-style: italic;">#       documentation and/or other materials provided with the distribution.</span>
<span style="color: #666666; font-style: italic;">#     * Neither the name of Michael Lind Mortensen nor the</span>
<span style="color: #666666; font-style: italic;">#       names of his contributors may be used to endorse or promote products</span>
<span style="color: #666666; font-style: italic;">#       derived from this software without specific prior written permission.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># THIS SOFTWARE IS PROVIDED BY MICHAEL LIND MORTENSEN ''AS IS'' AND ANY</span>
<span style="color: #666666; font-style: italic;"># EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span>
<span style="color: #666666; font-style: italic;"># WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span>
<span style="color: #666666; font-style: italic;"># DISCLAIMED. IN NO EVENT SHALL MICHAEL LIND MORTENSEN BE LIABLE FOR ANY</span>
<span style="color: #666666; font-style: italic;"># DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span>
<span style="color: #666666; font-style: italic;"># (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span>
<span style="color: #666666; font-style: italic;"># LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
<span style="color: #666666; font-style: italic;"># ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<span style="color: #666666; font-style: italic;"># (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
<span style="color: #666666; font-style: italic;"># SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Define settings</span>
<span style="color: #007800;">DATA</span>=<span style="color: #ff0000;">&quot;/home/user1 /home/user2 /etc /var/www/virtual /var/log&quot;</span> <span style="color: #666666; font-style: italic;">#Location of backup files.</span>
<span style="color: #007800;">DISC</span>=<span style="color: #ff0000;">&quot;/mnt/backup&quot;</span> <span style="color: #666666; font-style: italic;"># Mount location of backup disc</span>
<span style="color: #007800;">DEVICE</span>=<span style="color: #ff0000;">&quot;/dev/sdb1&quot;</span> <span style="color: #666666; font-style: italic;"># Backup devicename</span>
<span style="color: #007800;">MAILREC</span>=<span style="color: #ff0000;">&quot;info@example.com&quot;</span> <span style="color: #666666; font-style: italic;"># Define message recipients. Comma-separate for more recipients.</span>
<span style="color: #007800;">SENDER</span>=<span style="color: #ff0000;">&quot;noreply@example.com&quot;</span> <span style="color: #666666; font-style: italic;"># Define sender e-mail for error-messaging.</span>
<span style="color: #007800;">LOG</span>=<span style="color: #ff0000;">&quot;logfile.txt&quot;</span> <span style="color: #666666; font-style: italic;"># Location of the error logfile</span>
<span style="color: #007800;">DBPASS</span>=<span style="color: #ff0000;">&quot;databasepassword&quot;</span> <span style="color: #666666; font-style: italic;"># The root password to the mysql server</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#####################################################</span>
<span style="color: #666666; font-style: italic;">#  Define email functionality for error messaging   #</span>
<span style="color: #666666; font-style: italic;">#                                                   #</span>
<span style="color: #666666; font-style: italic;"># Parameters: MESSAGE - E-mail content from file    #</span>
<span style="color: #666666; font-style: italic;">#                                                   #</span>
<span style="color: #666666; font-style: italic;">#####################################################</span>
<span style="color: #000000; font-weight: bold;">function</span> error_mailer <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #007800;">MESSAGE</span>=$<span style="color: #000000;">1</span>
        <span style="color: #007800;">SUBJECT</span>=<span style="color: #ff0000;">&quot;Backup process encountered errors!&quot;</span>
        <span style="color: #666666; font-style: italic;"># Send the email using mail</span>
    <span style="color: #000000; font-weight: bold;">if</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$SUBJECT</span>&quot;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$SENDER</span>&quot;</span>  <span style="color: #ff0000;">&quot;<span style="color: #007800;">$MAILREC</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #007800;">$MESSAGE</span>
    <span style="color: #000000; font-weight: bold;">then</span>
        :
    <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: Mail functionality not working!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#####################################################</span>
<span style="color: #666666; font-style: italic;">#  Define email functionality for success messaging #</span>
<span style="color: #666666; font-style: italic;">#                                                   #</span>
<span style="color: #666666; font-style: italic;"># Parameters: MESSAGE - E-mail content from file    #</span>
<span style="color: #666666; font-style: italic;">#                                                   #</span>
<span style="color: #666666; font-style: italic;">#####################################################</span>
<span style="color: #000000; font-weight: bold;">function</span> success_mailer <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        <span style="color: #007800;">MESSAGE</span>=$<span style="color: #000000;">1</span>
        <span style="color: #007800;">SUBJECT</span>=<span style="color: #ff0000;">&quot;Backup created succesfully!&quot;</span>
        <span style="color: #666666; font-style: italic;"># Send the email using mail</span>
        <span style="color: #000000; font-weight: bold;">if</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$SUBJECT</span>&quot;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$SENDER</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$MAILREC</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #007800;">$MESSAGE</span>
        <span style="color: #000000; font-weight: bold;">then</span>
                :
        <span style="color: #000000; font-weight: bold;">else</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: Mail functionality not working!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;"># Mount backup disc</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #007800;">$DEVICE</span> <span style="color: #007800;">$DISC</span>
<span style="color: #000000; font-weight: bold;">then</span>
        :
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: error while mounting disc!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
    error_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/errors/mount_error.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Perform daily full backup</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> cfz <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DISC</span>/data/data_$3-$2-$6.tgz&quot;</span> <span style="color: #007800;">$DATA</span>
<span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Data saved successfully!&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: error while saving data!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
    error_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/errors/data_error.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Create SQL dumps of databases</span>
<span style="color: #000000; font-weight: bold;">if</span> mysqldump <span style="color: #660033;">-u</span> root <span style="color: #660033;">--password</span>=<span style="color: #007800;">$DBPASS</span> <span style="color: #660033;">--all-databases</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DISC</span>/database/db_$3-$2-$6.sql&quot;</span>
<span style="color: #000000; font-weight: bold;">then</span>
        :
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: error while making mysqldump!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
    error_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/errors/mysqldump_error.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DISC</span>/database/db_$3-$2-$6.sql&quot;</span>
<span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;MySQL databases saved and compressed succesfully!&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: error while saving mysql databases!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
    error_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/errors/db_error.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Unmount backup disc</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #007800;">$DISC</span>
<span style="color: #000000; font-weight: bold;">then</span>
        success_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/success.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$3-$2-$6-$4 - ERROR: error while unmounting disc!&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$LOG</span>
        error_mailer <span style="color: #ff0000;">&quot;/etc/backup_inc/error/umount_error.txt&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>The fast person will probably notice that WordPress writes &lt; and &gt; as &amp;lt; and &amp;gt; .. that&#8217;s just the code plugin messing things up and I hope you can figure out how to fix that yourselves.. if not, the zipfile has the code without any odd layout errors.</p>
<p>All in all the code should be fairly self-explanatory.. if not, there are plenty of comments to help you use the script or change it to whatever you need.</p>
<p>Last but not least &#8211; Remember to add a cron job with the script.. If you don&#8217;t there won&#8217;t be much automatic backup about it.</p>
<p>That&#8217;s just about it.. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/09/28/simple-backup-script-with-notification/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Energy saving hype</title>
		<link>http://www.scepticalmind.com/2008/09/11/energy-saving-hype/</link>
		<comments>http://www.scepticalmind.com/2008/09/11/energy-saving-hype/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 08:17:27 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Debunking]]></category>
		<category><![CDATA[global warming]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=73</guid>
		<description><![CDATA[I saw a new TV-add from &#8220;Elsparefonden&#8221; this morning. As many before it, it tried to get people to think about how much power they consumed and thereby consume less to save the environment. Before I go on, you can watch the add here from YouTube: So what&#8217;s my problem with this? Well, basically it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I saw a new TV-add from &#8220;Elsparefonden&#8221; this morning. As many before it, it tried to get people to think about how much power they consumed and thereby consume less to save the environment. Before I go on, you can watch the add here from YouTube:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/48BQ_fWpNiY&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/48BQ_fWpNiY&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
<p>So what&#8217;s my problem with this? Well, basically it&#8217;s just plain bullshit! Sure, power consumption will fire up energy production demands and thereby harm the environment because the energy production harms the environment. However the only reason why energy production harms the environment is because of low-quality materials like coal! Why the hell try to get people to go back in technological development by using less power, instead of just making our energy production more effective and clean (which would probably also be cheaper than all does damn adds all the time).</p>
<p>But apparently the global warming hype has become almost a religion, with fanatics fighting to jump back in time on a lot of fronts like electronics, food, industrial production etc. For some reason they believe the world population was better off with the status we had 50 years ago! Like for example a Linux guy I heard at FOSDEM 08, whom claimed that the German government should not use Windows Vista and instead use Linux &#8211; what was his reason? Vista uses more power and Microsoft was therefore fighting to destroy the environment&#8230;. Now, there are many valid arguments for using Linux instead of Vista, however saving the environment is definitely not one of them! It really pisses me off a lot of organizations are using this global warming frenzy to push their agendas, just by coating it with some environmental bullshit.</p>
<p>So &#8211; My conclusion? Shift all energy production to wind power and nuclear power &#8211; and stop irritating us with demands of lower power consumption. The only real reason to consume less power is saving money &#8211; power is expensive and will probably keep on getting more expensive for a long while, so if one can develop machines that consume less power, these machines will obviously be cheaper &#8211; this however has nothing to do with saving the environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/09/11/energy-saving-hype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Funny Christian music</title>
		<link>http://www.scepticalmind.com/2008/09/09/funny-christian-music/</link>
		<comments>http://www.scepticalmind.com/2008/09/09/funny-christian-music/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 18:10:20 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
				<category><![CDATA[Junk]]></category>
		<category><![CDATA[christian]]></category>
		<category><![CDATA[religion]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=71</guid>
		<description><![CDATA[This is probably the funniest Christian music I have ever heard.. Very very odd!]]></description>
			<content:encoded><![CDATA[<p>This is probably the funniest Christian music I have ever heard.. Very very odd!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/1iUU6jTqB6k&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/1iUU6jTqB6k&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/09/09/funny-christian-music/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
