<?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>sonyboy.dk</title>
	<atom:link href="http://www.sonyboy.dk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sonyboy.dk</link>
	<description>Tools, tip, tricks and other stuff I might come up with</description>
	<lastBuildDate>Sat, 17 Jul 2010 22:01:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Did you know?</title>
		<link>http://www.sonyboy.dk/2010/05/05/did-you-know/</link>
		<comments>http://www.sonyboy.dk/2010/05/05/did-you-know/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:43:20 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[The funny stuff]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=60</guid>
		<description><![CDATA[If you yelled for 8 years, 7 months and 6 days you would have produced enough sound energy to heat one cup of coffee. (Hardly seems worth it.) If you farted consistently for 6 years and 9 months, enough gas is produced to create the energy of an atomic bomb. (Now that&#8217;s more like it!) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If you yelled for 8 years, 7 months and 6 days you would have produced enough sound energy to heat one cup of coffee.</strong><br />
<em> (Hardly seems worth it.)</em></p>
<p><strong>If you farted consistently for 6 years and 9 months, enough gas is produced to create the energy of an atomic bomb.</strong><br />
<em> (Now that&#8217;s more like it!)</em></p>
<p><strong>The human heart creates enough pressure when it pumps out to the body to squirt blood 30 feet.</strong><br />
<em> (O.M.G.!)</em></p>
<p><strong>A pig&#8217;s orgasm lasts 30 minutes.</strong><br />
<em> (In my next life, I want to be a pig.)</em></p>
<p><strong>A cockroach will live nine days without its head before it starves to death.</strong><br />
<em> (Creepy.)</em></p>
<p><strong>Banging your head against a wall uses 150 calories an hour.</strong><br />
<em> (Do not try this at home. Maybe at work.)</em></p>
<p><strong>The male pray mantis cannot copulate while its head is attached to its body. The female initiates sex by ripping the male&#8217;s head off.</strong><br />
<em> (&#8220;Honey, I&#8217;m home. What the&#8230;.?!&#8221;)</em></p>
<p><strong>The flea can jump 350 times its body length. It&#8217;s like a human jumping the length of a football field.</strong><br />
<em> (30 minutes&#8230; lucky pig. can you imagine??)</em></p>
<p><strong>The catfish has over 27,000 taste buds.</strong><br />
<em> (What could be so tasty on the bottom of a pond?)</em></p>
<p><strong>Some lions mate over 50 times a day.</strong><br />
<em> (I still want to be a pig in my next life&#8230;quality over quantity)</em></p>
<p><strong>Butterflies taste with their feet.</strong><br />
<em> (Something I always wanted to know.)</em></p>
<p><strong>The strongest muscle in the body is the tongue.</strong><br />
<em> (Hmmmmmm&#8230;&#8230;..)</em></p>
<p><strong>Right-handed people live, on average, nine years longer than left-handed people.</strong><br />
<em> (If you&#8217;re ambidextrous, do you split the difference?)</em></p>
<p><strong>Elephants are the only animals that cannot jump.</strong><br />
<em> (OK, so that would be a good thing&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..)</em></p>
<p><strong>A cat&#8217;s urine glows under a black light.</strong><br />
<em> (I wonder who was paid to figure that out?)</em></p>
<p><strong>An ostrich&#8217;s eye is bigger than its brain.</strong><br />
<em> (I know some people like that.)</em></p>
<p><strong>Starfish have no brains.</strong><br />
<em> (I know some people like that too.)</em></p>
<p><strong>Polar bears are left-handed.</strong><br />
<em> (If they switch, they&#8217;ll live a lot longer.)</em></p>
<p><strong>Humans and dolphins are the only species that have sex for pleasure.</strong><br />
<em> (What about that pig??)</em></p>
<p><strong>You Know You Are Living In 21st Century when&#8230;</strong><br />
1. You accidentally enter your password on the microwave.<br />
2. You haven&#8217;t played solitaire with real cards in years.<br />
3. You have a list of 15 phone numbers to reach your family of 3.<br />
4. You e-mail the person who works at the desk next to you.<br />
5. Your reason for not staying in touch with friends and family is that they don&#8217;t have e-mail addresses.<br />
6. You pull up in your own driveway and use your cell phone to see if anyone is home to help you carry in the groceries.<br />
7. Every commercial on television has a web site at the bottom of the screen.<br />
8. Leaving the house without your cell phone, which you didn&#8217;t have the first 20 or 30 (or 60) years of your life, is now a cause for panic and you turn around to go and get it.<br />
10. You get up in the morning and go on line before getting your coffee.<br />
11. You start tilting your head sideways to smile.  : )<br />
12. You&#8217;re reading this and nodding and laughing.<br />
13. Even worse, you know exactly to whom you are going to show this message.<br />
14. You are too busy to notice there was no #9 on this list.<br />
15. You actually scrolled back up to check that there wasn&#8217;t a #9 on this list.<br />
<strong> And Now You Are Laughing At Yourself!!!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2010/05/05/did-you-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent .DS_Store file creation over network connections</title>
		<link>http://www.sonyboy.dk/2010/05/05/how-to-prevent-ds_store-file-creation-over-network-connections/</link>
		<comments>http://www.sonyboy.dk/2010/05/05/how-to-prevent-ds_store-file-creation-over-network-connections/#comments</comments>
		<pubDate>Wed, 05 May 2010 11:32:00 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[.DS_Store]]></category>
		<category><![CDATA[AFP]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[defatuls]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[SMB/CIFS]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[WebDAV]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=14</guid>
		<description><![CDATA[Note: This will affect the user&#8217;s interactions with SMB/CIFS, AFP, NFS, and WebDAV servers. Open Terminal Execute this command defaults write com.apple.desktopservices DSDontWriteNetworkStores true Either restart the computer or log out and back in to the user account If you want to prevent .DS_Store file creation for other users on the same computer, log in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note:</strong> This will affect the user&#8217;s interactions with SMB/CIFS, AFP, NFS, and WebDAV servers.</p>
<ol>
<li>Open Terminal</li>
<li>Execute this command
<div class="codesnip-container" >defaults write com.apple.desktopservices DSDontWriteNetworkStores true</div>
</li>
<li>Either restart the computer or log out and back in to the user account</li>
</ol>
<p>If you want to prevent .DS_Store file creation for other users on the same computer, log in to each user account and perform the steps above—or distribute a copy of the newly modified com.apple.desktopservices.plist file to the ~/Library/Preferences folder of other user accounts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2010/05/05/how-to-prevent-ds_store-file-creation-over-network-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 hangs with ‘Digest: generating secret for digest authentication’</title>
		<link>http://www.sonyboy.dk/2009/10/20/apache2-hangs-with-%e2%80%98digest-generating-secret-for-digest-authentication%e2%80%99/</link>
		<comments>http://www.sonyboy.dk/2009/10/20/apache2-hangs-with-%e2%80%98digest-generating-secret-for-digest-authentication%e2%80%99/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:31:24 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=28</guid>
		<description><![CDATA[I was running Apache2+SSL on a VM (Virtual Machine). After enabling&#160;SSL and trying to add another&#160;SSL site, apache would refuse to restart and the following error would show up in /var/log/apache2.log Digest: generating secret for digest authentication After doing some research, it turns out that the VM did not have enough entropy to generate much [...]]]></description>
			<content:encoded><![CDATA[<p>I was running Apache2+SSL on a VM (Virtual Machine).</p>
<p>After enabling&nbsp;<acronym title="Secure Sockets Layer">SSL</acronym> and trying to add another&nbsp;<acronym title="Secure Sockets Layer">SSL</acronym> site, apache would refuse to restart and the following error would show up in /var/log/apache2.log</p>
<blockquote>
<pre>Digest: generating secret for digest authentication</pre>
</blockquote>
<p>After doing some research, it turns out that the VM did not have enough entropy to generate much of anything. Increasing this is easy, but may not be completely secure.</p>
<div class="codesnip-container" >$ cat /proc/sys/kernel/random/entropy_avail<br />
139</div>
<p>I found that&nbsp;<strong>rng-tools</strong> could help me solve this.</p>
<div class="codesnip-container" >apt-get install rng-tools</div>
<p>Start the service</p>
<div class="codesnip-container" >rngd -r /dev/urandom -o /dev/random</div>
<p>After running rngd, the entropy will increase at a gradual rate.</p>
<div class="codesnip-container" >cat /proc/sys/kernel/random/entropy_avail<br />
2220</div>
<p><strong>If you want this to survive a reboot, you’ll need to put it in a startup script.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/10/20/apache2-hangs-with-%e2%80%98digest-generating-secret-for-digest-authentication%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XenServer: Date/Time synchronization issues</title>
		<link>http://www.sonyboy.dk/2009/09/16/xenserver-datetime-synchronization-issues/</link>
		<comments>http://www.sonyboy.dk/2009/09/16/xenserver-datetime-synchronization-issues/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:38:15 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[date and time]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=52</guid>
		<description><![CDATA[By default, XenVMs have their clocks synchronized to the XenServer Host that hosts them and will ignore requests to adjust the time made by an ntp daemon if one is running. If you want a XenVM to have an independent clock, log on to its Text Console and issue the command echo 1 &#62; /proc/sys/xen/independent_wallclock [...]]]></description>
			<content:encoded><![CDATA[<p>By default, XenVMs have their clocks synchronized to the XenServer Host that hosts them and will ignore requests to adjust the time made by an ntp daemon if one is running. If you want a XenVM to have an independent clock, log on to its Text Console and issue the command</p>
<div class="codesnip-container" >echo 1 &gt; /proc/sys/xen/independent_wallclock</div>
<p>then run an NTP daemon.</p>
<p>To revert to the default, issue the command</p>
<div class="codesnip-container" >echo 0 &gt; /proc/sys/xen/independent_wallclock</div>
<p>For more setting up an NTP on the XenServer please refer to the below kb article. Refer to the below kb article for “How to set up an NTP Server for a XenServer network”</p>
<ul>
<li><a href="http://support.citrix.com/article/CTX121278" target="_blank">http://support.citrix.com/article/CTX121278</a></li>
<li><a href="http://support.citrix.com/article/CTX116307" target="_blank">http://support.citrix.com/article/CTX116307</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/09/16/xenserver-datetime-synchronization-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 &#8211; No space left on device</title>
		<link>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/</link>
		<comments>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 07:32:59 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[semaphore]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=34</guid>
		<description><![CDATA[I had problems restarting Apache2&#8230; After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user. The following appears to be some of the errors Apache writes in the log. [emerg] (28)No space left on device: Couldn&#8217;t create accept lock or [crit] (28)No space left [...]]]></description>
			<content:encoded><![CDATA[<p>I had problems restarting Apache2&#8230; After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user.</p>
<p>The following appears to be some of the errors Apache writes in the log.</p>
<ul>
<li>
<div class="codesnip-container" >[emerg] (28)No space left on device: Couldn&#8217;t create accept lock</div>
<p> or</li>
<li>
<div class="codesnip-container" >[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed</div>
<p> or</li>
<li>
<div class="codesnip-container" >[error] (28)No space left on device: Cannot create SSLMutex</div>
</li>
</ul>
<p>After stopping Apache I found the semaphores with the following command</p>
<div class="codesnip-container" >ipcs -s | grep www-data</div>
<p>Removing this semaphores immediately solved the problem.</p>
<div class="codesnip-container" >ipcs -s | grep www-data | perl -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Dashboard on Mac OS X</title>
		<link>http://www.sonyboy.dk/2009/07/20/disable-dashboard-on-mac-os-x/</link>
		<comments>http://www.sonyboy.dk/2009/07/20/disable-dashboard-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 15:31:43 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=6</guid>
		<description><![CDATA[Open Terminal and issue command in subsequent: defaults write com.apple.dashboard mcx-disabled -boolean YES killall Dock]]></description>
			<content:encoded><![CDATA[<p>Open Terminal and issue command in subsequent:</p>
<div class="codesnip-container" >defaults write com.apple.dashboard mcx-disabled -boolean YES<br />
killall Dock</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/07/20/disable-dashboard-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Purge files from an already removed package</title>
		<link>http://www.sonyboy.dk/2009/06/23/howto-purge-files-from-an-already-removed-package/</link>
		<comments>http://www.sonyboy.dk/2009/06/23/howto-purge-files-from-an-already-removed-package/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 14:00:48 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[purge]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=43</guid>
		<description><![CDATA[Simply use the following command: dpkg &#8211;purge PACKAGENAME]]></description>
			<content:encoded><![CDATA[<p>Simply use the following command:</p>
<div class="codesnip-container" >dpkg &#8211;purge PACKAGENAME</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/06/23/howto-purge-files-from-an-already-removed-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios3 &#8211; Could not stat() command file</title>
		<link>http://www.sonyboy.dk/2008/11/02/nagios3-could-not-stat-command-file/</link>
		<comments>http://www.sonyboy.dk/2008/11/02/nagios3-could-not-stat-command-file/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 23:01:28 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nagios3]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=48</guid>
		<description><![CDATA[On Debian and Ubuntu I have seen this error a lot of times with Nagios3. Error: Could not stat() command file &#8216;/var/lib/nagios3/rw/nagios.cmd&#8217;! To solve it, simply run /etc/init.d/nagios3 stop dpkg-statoverride &#8211;update &#8211;add nagios www-data 2710 /var/lib/nagios3/rw dpkg-statoverride &#8211;update &#8211;add nagios nagios 751 /var/lib/nagios3 /etc/init.d/nagios3 start]]></description>
			<content:encoded><![CDATA[<p>On Debian and Ubuntu I have seen this error a lot of times with Nagios3.</p>
<div class="codesnip-container" >Error: Could not stat() command file &#8216;/var/lib/nagios3/rw/nagios.cmd&#8217;!</div>
<p>To solve it, simply run</p>
<div class="codesnip-container" >/etc/init.d/nagios3 stop<br />
dpkg-statoverride &#8211;update &#8211;add nagios www-data 2710 /var/lib/nagios3/rw<br />
dpkg-statoverride &#8211;update &#8211;add nagios nagios 751 /var/lib/nagios3<br />
/etc/init.d/nagios3 start</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2008/11/02/nagios3-could-not-stat-command-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Tips to Keep Your Mac in Top Form</title>
		<link>http://www.sonyboy.dk/2008/10/02/top-tips-to-keep-your-mac-in-top-form/</link>
		<comments>http://www.sonyboy.dk/2008/10/02/top-tips-to-keep-your-mac-in-top-form/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 09:21:18 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=22</guid>
		<description><![CDATA[Keep Things Up to Date Make it a point to check for Apple software updates once a month to keep your system running optimally. From the Apple menu, choose Software Update while your computer is connected to the Internet. Software Update will assess the Apple software on your computer and check our servers for new [...]]]></description>
			<content:encoded><![CDATA[<h3>Keep Things Up to Date</h3>
<p>Make it a point to check for Apple software updates once a month to keep your system running optimally. From the Apple menu, choose Software Update while your computer is connected to the Internet. Software Update will assess the Apple software on your computer and check our servers for new versions. If it finds any, the updates will appear in the Software Update window. Select the checkbox for the software you want and then click the Install button to download and install the software. You can configure Software Update to automatically check for updates either daily, weekly, or monthly.</p>
<h3>Put Your Files Away</h3>
<p>Put your files away where you can easily find them. This can help prevent accidental file deletion and help you find things much more efficiently. You can get organized by creating new folders (in the Finder, press Shift-Command-N) and arranging them into a workable hierarchy for your files at hand, or you can move your files into existing folders.</p>
<h3>Name Your Files</h3>
<p>Go through your generically-named files and folders and give them more descriptive names so you can find what you need fast. This can help you get organized and makes it easier for Spotlight to search and find what you&#8217;re looking for, especially one file amongst your digital photo collection with names like DSC_0431.jpg and so on.</p>
<p><strong>Note:</strong> If you use iPhoto to manage your photos, don&#8217;t use the Finder to rename the files.</p>
<h3><a name="prune_through_your_files"></a></h3>
<p>To reduce the amount of clutter on your hard drive, free up some disk space by archiving large, seldom used files (learn how here), and be sure to name the resulting archive file appropriately too, so you know what&#8217;s in it. Delete any unnecessary or outdated personal files whenever possible and anything that you no longer want or need—just drag them all into the Trash and don&#8217;t forget to empty it.</p>
<h3>Back Up Your Files</h3>
<p>To prevent losing your prized or important files, make it a point to back up on a regular basis. You can back up files onto a CD, DVD, external hard drive, iPod, iDisk, or other storage medium and then delete the copies on your hard drive to free up some space. To learn how to back up files, choose Mac Help from the Help menu in the Finder and do a search for “back up files.”</p>
<h3>Check for Viruses</h3>
<p>Macs are far more less likely to get a computer virus like Windows PCs are prone to but that doesn&#8217;t mean it&#8217;s impossible. If you don&#8217;t already have antivirus software, you may want to consider making a purchase. If you have the software installed, be sure to keep your virus definitions up to date—you can find the latest updates on your software manufacturer&#8217;s website.</p>
<h3>Clean the Outside</h3>
<p>Dust and other debris can harm your computer&#8217;s innards if you allow the stuff to build up around your workspace. Use a soft, dry, lint-free cloth, feather duster, or canned air to clean your Mac&#8217;s outside as well as the surface areas around it. You can use a slightly water-dampened cloth to clean the screen. Do not use any type of liquid cleaner to clean your Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2008/10/02/top-tips-to-keep-your-mac-in-top-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail seems to have lost account information</title>
		<link>http://www.sonyboy.dk/2008/09/29/mail-seems-to-have-lost-account-information/</link>
		<comments>http://www.sonyboy.dk/2008/09/29/mail-seems-to-have-lost-account-information/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 19:39:00 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[apple mail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=19</guid>
		<description><![CDATA[Repeated crashes may cause Mail to discard the current ~/Library/Preferences/com.apple.mail.plist preferences file and create a new one: Reopening an application after it unexpectedly quits Mail may reset to default if it unexpectedly quits twice in row This file is where all the account settings are stored. As a result, all the non-.Mac account settings are [...]]]></description>
			<content:encoded><![CDATA[<p>Repeated crashes may cause Mail to discard the current <strong>~/Library/Preferences/com.apple.mail.plist</strong> preferences file and create a new one:</p>
<ul>
<li><a href="http://docs.info.apple.com/article.html?artnum=301084" target="_blank">Reopening an application after it unexpectedly quits</a></li>
<li><a href="http://docs.info.apple.com/article.html?artnum=301256" target="_blank">Mail may reset to default if it unexpectedly quits twice in row</a></li>
</ul>
<p>This file is where all the account settings are stored. As a result, all the non-.Mac account settings are lost. If you have a .Mac account, that account would appear to have been preserved because Mail would set it up automatically using the <strong>System Preferences &gt; .Mac/MobileMe</strong> settings.</p>
<p>You may want to make a backup copy of the <strong>~/Library/Mail</strong> folder first (e.g. by dragging it to the Desktop while holding the <strong>Option (Alt)</strong> key down), just in case something else goes wrong while trying to solve the problem. This is where Mail stores the mail on your computer.</p>
<p>Now, there are at least three ways to restore the account settings:</p>
<ol>
<li>Restore <strong>~/Library/Preferences/com.apple.mail.plist</strong> from a backup if you have one. Mail shouldn’t be running while you do this.</li>
<li>Set up your mail accounts again (you may want to quit Mail and trash the new com.apple.mail.plist first to start over). If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done. You’ll also have to re-configure some of the <strong>Mail &gt; Preferences</strong> settings. <a title="http://docs.info.apple.com/article.html?artnum=107401" rel="nofollow" href="http://docs.info.apple.com/article.html?artnum=107401">For spam-related security reasons</a>, the first thing you should do is go to <strong>Preferences &gt; Viewing</strong> and disable <strong>Display remote images in <acronym title="HyperText Markup Language">HTML</acronym> messages</strong> if it’s enabled.</li>
<li>Mail may have renamed the old preferences file to <strong>com.apple.mail.plist.saved</strong>. If that’s the case, you may try trashing the new<strong>com.apple.mail.plist</strong> and renaming the old <strong>com.apple.mail.plist.saved</strong> back to <strong>com.apple.mail.plist</strong>. Again, be sure Mail isn’t running while doing this. Given the circumstances, there exists the possibility that <strong>com.apple.mail.plist.saved</strong> became corrupt, but that often is not the case and the settings can usually be restored by just renaming the file back to <strong>com.apple.mail.plist</strong>.</li>
</ol>
<p>As a side effect of re-creating <strong>com.apple.mail.plist</strong>, Mail might rename <strong>Outbox</strong> (which is where messages waiting to be sent are stored) to<strong>Delivered</strong>. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.</p>
<p><strong>Note:</strong> For those not familiarized with the <strong>~/</strong> notation, it refers to the user’s home folder. That is, <strong>~/Library</strong> is the Library folder within the user’s home folder, i.e.<strong>/Users/username/Library</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2008/09/29/mail-seems-to-have-lost-account-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NTP: Who is using my NTP server?</title>
		<link>http://www.sonyboy.dk/2008/09/28/ntp-who-is-using-my-ntp-server/</link>
		<comments>http://www.sonyboy.dk/2008/09/28/ntp-who-is-using-my-ntp-server/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 21:36:06 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=56</guid>
		<description><![CDATA[You can check which hosts are talking to your time server by using the monlist command of ntpdc, e.g. ntpdc -c monlist Please note that a maximum of 600 entries is supported with current versions of ntpdc. The protocol (or better: the contents of the return packets) used by ntpdc is not standardized, therefore it [...]]]></description>
			<content:encoded><![CDATA[<p>You can check which hosts are talking to your time server by using the monlist command of ntpdc, e.g. ntpdc -c monlist Please note that a maximum of 600 entries is supported with current versions of ntpdc. The protocol (or better: the contents of the return packets) used by ntpdc is not standardized, therefore it is recommended to only use ntpdc with a matching ntpd, i.e. both should have the same version number.</p>
<p>To get by this 600 entry limitation, many server operators run client statistics scripts, such as Wayne Schlitt&#8217;s ntp_clients and ntp_clients_stats scripts, which can be found at <a title="http://www.schlitt.net/scripts/ntp/index.html" rel="nofollow" href="http://www.schlitt.net/scripts/ntp/index.html">http://www.schlitt.net/scripts/ntp/index.html</a> . They work very well, but can use quite a bit of system resources if your client counts are in the high thousands. Examples of these scripts in action can be found at:</p>
<ul>
<li><a href="http://www.schlitt.net/ntpstats/ntp_stats.txt" target="_blank">http://www.schlitt.net/ntpstats/ntp_stats.txt</a></li>
<li><a href="http://saturn.dennishilberg.com/ntpstats/ntp_clients_stats.php" target="_blank">http://saturn.dennishilberg.com/ntpstats/ntp_clients_stats.php</a> (slightly modified)</li>
</ul>
<h3>ntpq -p</h3>
<p>The character in the left margin indicates the fate of this peer in the clock selection process. The codes mean:</p>
<div class="codesnip-container" >&lt;sp&gt; discarded due to high stratum and/or failed sanity checks;<br />
&#8220;x&#8221; designated falsticker by the intersection algorithm;<br />
&#8220;.&#8221; culled from the end of the candidate list;<br />
&#8220;-&#8221; discarded by the clustering algorithm;<br />
&#8220;+&#8221; included in the final selection set;<br />
&#8220;#&#8221; selected for synchronization but distance exceeds maximum;<br />
&#8220;*&#8221; selected for synchronization;<br />
&#8220;o&#8221; selected for synchronization, PPS signal in use.</p>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2008/09/28/ntp-who-is-using-my-ntp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable AppArmor</title>
		<link>http://www.sonyboy.dk/2008/09/28/disable-apparmor/</link>
		<comments>http://www.sonyboy.dk/2008/09/28/disable-apparmor/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 21:27:57 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[apparmor]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=40</guid>
		<description><![CDATA[AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don&#8217;t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn&#8217;t working as expected, and then you find [...]]]></description>
			<content:encoded><![CDATA[<p>AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don&#8217;t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn&#8217;t working as expected, and then you find out that everything was ok, only AppArmor was causing the problem).</p>
<p>We can disable it like this:</p>
<div class="codesnip-container" >/etc/init.d/apparmor stop<br />
update-rc.d -f apparmor remove</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2008/09/28/disable-apparmor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
