<?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"
	>

<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>
	<pubDate>Thu, 30 Oct 2008 20:58:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
			<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 - if your picture [...]]]></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 - if your picture has the most votes = you win! So please help us and vote for our picture - 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 - promise!):<br />
<a href="http://jensensb.ziteman.com/mms_sider/mms_nyestebilleder.asp?vote=1C4936BC-3DF0-48DA-B464-C11E0AD6D092"title="Vote on us, at Jensens Bøfhus competition"  target="_blank" onclick="javascript:urchinTracker ('/outbound/article/jensensb.ziteman.com');">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>
		</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 - it might be different for your system)</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash 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 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 - this is Debian! It might be different for you)</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash 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>
		</item>
		<item>
		<title>The Status of the World - 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 Status of [...]]]></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>
<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 be [...]]]></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 - it&#8217;s released under the BSD license.</p>
<p>You might notice it&#8217;s refering to a bunch of files - 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 - 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 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;$SUBJECT&quot;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;$SENDER&quot;</span>  <span style="color: #ff0000;">&quot;$MAILREC&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;$SUBJECT&quot;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;$SENDER&quot;</span> <span style="color: #ff0000;">&quot;$MAILREC&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;$DISC/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: #007800;">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;$DISC/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;$DISC/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 - 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>
		</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 just [...]]]></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 - 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 - My conclusion? Shift all energy production to wind power and nuclear power - and stop irritating us with demands of lower power consumption. The only real reason to consume less power is saving money - 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 - 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>
		</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>
		</item>
		<item>
		<title>Tribute to the American &#8220;Flag&#8221;</title>
		<link>http://www.scepticalmind.com/2008/09/04/tribute-to-the-american-flag/</link>
		<comments>http://www.scepticalmind.com/2008/09/04/tribute-to-the-american-flag/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 20:27:20 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
		
		<category><![CDATA[Junk]]></category>

		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=68</guid>
		<description><![CDATA[!!VOTE FOR BARACK OBAMA!!

Oh, say, can you see, by the dawn&#8217;s early light,
What so proudly we hailed at the twilight&#8217;s last gleaming?
Whose broad stripes and bright stars, thro&#8217; the perilous fight&#8217;
O&#8217;er the ramparts we watched, were so gallantly streaming.
And the rockets red glare, the bombs bursting in air,
Gave proof through the night that our flag [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.scepticalmind.com/wp-content/uploads/2008/09/flag.jpg" ><img class="alignleft size-medium wp-image-69" style="margin: 8px;" title="American Flag" src="http://www.scepticalmind.com/wp-content/uploads/2008/09/flag-300x225.jpg" alt="" width="300" height="225" /></a><strong>!!VOTE FOR BARACK OBAMA!!</strong></p>
<p style="text-align: center;">
<p style="text-align: left;"><em><span style="font-family: Arial,Helvetica;">Oh, say, can you see, by the dawn&#8217;s early light,<br />
What so proudly we hailed at the twilight&#8217;s last gleaming?<br />
Whose broad stripes and bright stars, thro&#8217; the perilous fight&#8217;<br />
O&#8217;er the ramparts we watched, were so gallantly streaming.<br />
And the rockets red glare, the bombs bursting in air,<br />
Gave proof through the night that our flag was still there.<br />
Oh, say, does that star-spangled banner yet wave<br />
O&#8217;er the land of the free and the home of the brave?</p>
<p>On the shore dimly seen, thro&#8217; the mists of the deep,<br />
Where the foe&#8217;s haughty host in dread silence reposes,<br />
What is that which the breeze, o&#8217;er the towering steep,<br />
As it fitfully blows, half conceals, half discloses?<br />
Now it catches the gleam of the morning&#8217;s first beam,<br />
In full glory reflected, now shines on the stream;<br />
&#8216;Tis the star-spangled banner: oh, long may it wave<br />
O&#8217;er the land of the free and the home of the brave.</p>
<p>And where is that band who so vauntingly swore<br />
That the havoc of war and the battle&#8217;s confusion<br />
A home and a country should leave us no more?<br />
Their blood has wash&#8217;d out their foul footstep&#8217;s pollution.<br />
No refuge could save the hireling and slave<br />
From the terror of flight or the gloom of the grave,<br />
And the star-spangled banner in triumph doth wave<br />
O&#8217;er the land of the free and the home of the brave.</p>
<p>Oh, thus be it ever when free men shall stand,<br />
Between their loved homes and the war&#8217;s desolation;<br />
Blest with vict&#8217;ry and peace, may the heav&#8217;n-rescued land<br />
Praise the Power that has made and preserved us as a nation.<br />
Then conquer we must, when our cause is just,<br />
And this be our motto: &#8220;In God is our trust&#8221;;<br />
And the star-spangled banner in triumph shall wave<br />
O&#8217;er the land of the free and the home of the brave. </span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/09/04/tribute-to-the-american-flag/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Linus Torvalds - Living in a dream world?</title>
		<link>http://www.scepticalmind.com/2008/08/26/linus-torvalds-living-in-a-dream-world/</link>
		<comments>http://www.scepticalmind.com/2008/08/26/linus-torvalds-living-in-a-dream-world/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 23:36:30 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[bugs]]></category>

		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linus Torvalds]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=59</guid>
		<description><![CDATA[When I originally decided to write this post I was a bit hesitant about attacking Linus too vigorously. I do have a huge amount of respect for what this man has achieved, however I&#8217;m not going to censor myself in any way and need to say what has been irritating me for some time.
About a [...]]]></description>
			<content:encoded><![CDATA[<p>When I originally decided to write this post I was a bit hesitant about attacking Linus too vigorously. I do have a huge amount of respect for what this man has achieved, however I&#8217;m not going to censor myself in any way and need to say what has been irritating me for some time.</p>
<p>About a month ago I saw a news feed related to Mr. Torvalds&#8217; comments here: <a href="http://article.gmane.org/gmane.linux.kernel/706950"title="Linus Torvalds on security"  onclick="javascript:urchinTracker ('/outbound/article/article.gmane.org');">http://article.gmane.org/gmane.linux.kernel/706950</a>. His comments has since then been on my mind quite a lot and have actual decreased my regard for this man&#8217;s opinion, as he seems completely ignorant to the state of things.</p>
<p>To be fair, I should state that I do work with computer security and I use FreeBSD on my Laptop and several of my servers, so I might be a bit bias. However I do also have a couple of Linux machines, a couple of Linux servers and two Microsoft Windows systems - no Mac however, but that&#8217;s another discussion. But even though his comments were somewhat directed at people like me, I still don&#8217;t fit his stereotype completely <em>(and don&#8217;t get mad easily)</em> and therefore believe I am objective enough to comment in an adult way.</p>
<p>So - let&#8217;s get started. Let&#8217;s just put in his quote in it&#8217;s complete form and I&#8217;ll begin explaining why he&#8217;s wrong:</p>
<blockquote>
<pre>Btw, and you may not like this, since you are so focused on security, one
reason I refuse to bother with the whole security circus is that I think
it glorifies - and thus encourages - the wrong behavior.

It makes "heroes" out of security people, as if the people who don't just
fix normal bugs aren't as important.

In fact, all the boring normal bugs are _<span style="text-decoration: underline;">way</span>_ more important, just because
there's a lot more of them. I don't think some spectacular security hole
should be glorified or cared about as being any more "special" than a
random spectacular crash due to bad locking.

Security people are often the black-and-white kind of people that I can't
stand. I think the OpenBSD crowd is a bunch of masturbating monkeys, in
that they make such a big deal about concentrating on security to the
point where they pretty much admit that nothing else matters to them.

To me, security is important. But it's no less important than everything
<strong>*else*</strong> that is also important!

			Linus</pre>
</blockquote>
<p>So why is he wrong? Well, it&#8217;s really not that complicated - he neglects to recognize what&#8217;s important for the biggest users of Linux systems in the world - the businesses and universities! The most important issues for these users are and have always been: <strong>Stability</strong>, <strong>Security</strong> and <strong>Reliability</strong>. All these humongous users have systems that need to stay up and running 24-7 all year long - without incident! So to claim that security issues aren&#8217;t more important than &#8220;normal&#8221; bugs is just plain naive! Functionality isn&#8217;t important for anyone but the end users, as the companies and institutions have already made the functions they want available - they don&#8217;t want their users to be able to do a bunch of stuff they didn&#8217;t expect or plan, so for them it doesn&#8217;t matter at all. Stability is another issue however and I do agree there isn&#8217;t much difference between a stability issue and a security issue.</p>
<p>Also the stuff about OpenBSD users being black-and-white - he&#8217;s got to be kidding right? By simply stating this without proof, he makes himself seem untrustworthy to me, because in my experience, I&#8217;ve seen the exact opposite! Linux users are the people whom are black-and-white, the people whom hate Microsoft for no other reason than they&#8217;re not Linux, the people whom claim all software should be free and whom believe that enterprises are killing innovation. Even though I&#8217;ve seen these things, I still wouldn&#8217;t conclude <em>&#8220;Linux people are often the black-and-white kind of people&#8230;&#8221;</em>, as I had no way of knowing this unless I actually knew enough of the world population of Linux users to claim that the majority believe certain things.</p>
<p>Also <em>&#8220;Masturbating monkeys&#8221; - </em>Stop being a fucking child! I can respect using profanities to emphasize your points and it would be easier to respect you if you weren&#8217;t the fucking creator of a struggling OS - but seriously&#8230; self-pleasuring primates? - Grow up and show some respect! The OpenBSD project has come out with a lot of good stable software and talking about them in this way is basically just like spitting in their fucking faces! It&#8217;s no different than if I said Linux users were donkey-fucking scat-lovers - an equally retarded statement!</p>
<p>And concerning Mr. Torvalds&#8217; last point:</p>
<blockquote>
<pre>To me, security is important. But it's no less important than everything
<strong>*else*</strong> that is also important!</pre>
</blockquote>
<p>Most will probably agree with this - as I also do - however we apparently have very different views of what is important and what isn&#8217;t important!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/08/26/linus-torvalds-living-in-a-dream-world/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Linear Algebra - pwn3d</title>
		<link>http://www.scepticalmind.com/2008/08/13/linear-algebra-pwn3d/</link>
		<comments>http://www.scepticalmind.com/2008/08/13/linear-algebra-pwn3d/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 12:36:14 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
		
		<category><![CDATA[Junk]]></category>

		<category><![CDATA[math]]></category>

		<category><![CDATA[university]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=44</guid>
		<description><![CDATA[




LEARN BIATCH!
So as some of you may have read, I flunked Linear Algebra a few months ago due to picking a subject I hadn&#8217;t read or prepared in any way. So this time it was up for a re-match and I kicked Linear Algebra&#8217;s ass! Picking the subject of Orthogonality and Unitary Matrices - Schurs [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_46" class="wp-caption alignnone" style="width: 268px;">
<dt class="wp-caption-dt"><a href="http://www.scepticalmind.com/wp-content/uploads/2008/08/gauss1.jpg" ><img class="size-medium wp-image-46" style="margin: 5px; float: left;" title="gauss1dead" src="http://www.scepticalmind.com/wp-content/uploads/2008/08/gauss1-258x300.jpg" alt="" width="258" height="300" /></a></dt>
</dl>
</div>
<p>LEARN BIATCH!</p>
<p>So as some of you may have read, I flunked Linear Algebra a few months ago due to picking a subject I hadn&#8217;t read or prepared in any way. So this time it was up for a re-match and I kicked Linear Algebra&#8217;s ass! Picking the subject of Orthogonality and Unitary Matrices - Schurs Theorem, Spectral Theorem etc. A very nice subject actually.</p>
<p>The score as of right now:</p>
<p>Lin Alg: <strong>1</strong></p>
<p>Michael: <strong>10</strong></p>
<p>Linear Algebra got pwn3d!</p>
<p>For those who might be interested, my course materials, notes and dispositions can be found here:</p>
<p><a href="http://www.daimi.au.dk/~illio/courses/LinAlg/"title="Linear Algebra Notes"  onclick="javascript:urchinTracker ('/outbound/article/www.daimi.au.dk');">http://www.daimi.au.dk/~illio/courses/LinAlg/</a></p>
<p>Be aware however, the notes are in Danish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/08/13/linear-algebra-pwn3d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Folkia loans - The stupid man&#8217;s loan!</title>
		<link>http://www.scepticalmind.com/2008/08/06/folkia-loans-the-stupid-mans-loan/</link>
		<comments>http://www.scepticalmind.com/2008/08/06/folkia-loans-the-stupid-mans-loan/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 21:27:39 +0000</pubDate>
		<dc:creator>Michael Lind Mortensen</dc:creator>
		
		<category><![CDATA[Debunking]]></category>

		<category><![CDATA[economics]]></category>

		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://www.scepticalmind.com/?p=36</guid>
		<description><![CDATA[I was watching tv the other day and suddenly this add came up:
Mikrolån: Du kan vælge at låne 1.000 kr. eller 2.000 kr. (til Danmarks laveste afgift). Lånet skal tilbagebetales inden 30 dage.
Now.. this is obviously Danish. Roughly translated it means:
Micro loans: You can choose to loan 1000 Danish Kroners or 2000 Danish Kroners (at [...]]]></description>
			<content:encoded><![CDATA[<p>I was watching tv the other day and suddenly this add came up:</p>
<blockquote><p>Mikrolån: Du kan vælge at låne 1.000 kr. eller 2.000 kr. (til Danmarks laveste afgift). Lånet skal tilbagebetales inden 30 dage.</p></blockquote>
<p>Now.. this is obviously Danish. Roughly translated it means:</p>
<blockquote><p>Micro loans: You can choose to loan 1000 Danish Kroners or 2000 Danish Kroners (at the lowest rate in Denmark). The loan has to be repaid within 30 days.</p></blockquote>
<p>So let&#8217;s see, how does this work? Well basically, you loan 1000 DKK or 2000 DKK and then repay the money + a fee of either 300 DKK or 450 DKK respectively.. oh yeah, and you have to do all this within 30 days. So basically you loan 2000 DKK and suddenly you&#8217;re 2450 DKK in debt and you have to pay it back within 30 days.. so you go out, have a night on the town, maybe buy a new mobile phone and then you&#8217;re pretty much broke again. So this took maybe 1-2 days and now you have under 30 days to earn 2450 DKK (after taxes of course) and repay those fuckers with that money.</p>
<p><strong>To sum up here:</strong> You begin your month thinking: <em>&#8220;I need money&#8221;</em>. You go to <a href="http://www.folkia.dk"title="Folkia Mikrolån"  onclick="javascript:urchinTracker ('/outbound/article/www.folkia.dk');">folkia.dk</a> and apply for a loan of 2000 DKK. You get your money (which actually assumes a bunch of stuff about your current job situation, e.g. a monthly income of over 10000 DKK) and then you immediately start using the money. A few days later you&#8217;ve used the money and now you need to find a way to earn 2450 DKK within 30 days, which in Denmark means around 4600 DKK before taxes for most people. So in all this time, why the hell didn&#8217;t it occur to you to just earn the fucking 2450 DKK in the first place and use the money at the end of the month you fucking retarded piece of shit!</p>
<p>Companies like this one seriously makes me sick! They exploit the stupidity of people who are already in financial trouble and generally lead to a more unstable population of people stressed by debt.</p>
<p>I hope people in Denmark will be smart enough to see through all of this and not make stupid mistakes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scepticalmind.com/2008/08/06/folkia-loans-the-stupid-mans-loan/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
