<?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>SirSpanky.com - The Secret Diary of James Pearce Aged 20-Something</title>
	<atom:link href="http://www.sirspanky.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sirspanky.com</link>
	<description>Personal jorunal of a professional geek - James Pearce in Perth, Australia</description>
	<pubDate>Mon, 24 May 2010 04:03:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Unlocking My 3GS 3.1.3</title>
		<link>http://www.sirspanky.com/informative/unlocking-my-3gs-313/</link>
		<comments>http://www.sirspanky.com/informative/unlocking-my-3gs-313/#comments</comments>
		<pubDate>Fri, 21 May 2010 04:21:39 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Informative]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=840</guid>
		<description><![CDATA[I was going to title this &#8220;Unlocking the iPhone 3GS 3.1.3&#8243; and then I realised that there are a billion posts out there like that, and there doesn&#8217;t seem to be a one-size-fits-all answer to this. So, here&#8217;s what worked on mine.
1. Grab a copy of Spirit (has Mac and Win versions)
2. Make sure you [...]]]></description>
			<content:encoded><![CDATA[<p>I was going to title this &#8220;Unlocking the iPhone 3GS 3.1.3&#8243; and then I realised that there are a billion posts out there like that, and there doesn&#8217;t seem to be a one-size-fits-all answer to this. So, here&#8217;s what worked on mine.</p>
<p>1. Grab a copy of <a href="http://spiritjb.com/">Spirit</a> (has Mac and Win versions)</p>
<p>2. Make sure you have already activated your iPhone (i.e. turned it on and synched to iTunes and you are able to register with the cellphone network)</p>
<p>3. Connect the iPhone and run Spirit, hit Jailbreak</p>
<p>4. Install <a href="http://www.redmondpie.com/unlock-iphone-3.1.3-3g-3gs-with-ultrasn0w/">Ulstrasn0w</a> and you have unlocked the iPhone <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>NOTE: I&#8217;ve discovered and confirmed Ultrasn0w doesn&#8217;t work with baseband 05.12.01 yet.</p>
<p>The difficulty for me with the 3GS was that the older methods of unlocking it didn&#8217;t work for me, because I have a native 3.1.3 model&#8230;which has intermittent success depending on the actual model number. Spirit worked though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/informative/unlocking-my-3gs-313/feed/</wfw:commentRss>
		</item>
		<item>
		<title>One Phone To Rule Them All</title>
		<link>http://www.sirspanky.com/serious/one-phone-to-rule-them-all/</link>
		<comments>http://www.sirspanky.com/serious/one-phone-to-rule-them-all/#comments</comments>
		<pubDate>Wed, 05 May 2010 05:56:27 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=837</guid>
		<description><![CDATA[Yeah, ok, it&#8217;s a bit of a gimmicky title  
With my recent escapades into VOIP though, it quickly became annoying for me to have a desk IP phone and a softphone on my laptop, as well as my normal mobile and landline. Well, asterisk can route the landline as I want, so I guess [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah, ok, it&#8217;s a bit of a gimmicky title <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>With my recent escapades into VOIP though, it quickly became annoying for me to have a desk IP phone and a softphone on my laptop, as well as my normal mobile and landline. Well, asterisk can route the landline as I want, so I guess that doesn&#8217;t really count. But given that I use my mobile for almost all of my calls (it is the number I hand out), it&#8217;s still annoying to have to swap phones.</p>
<p>Enter <a href="http://code.google.com/p/siphon/">Siphon</a> (click for screenies), a VOIP client for the iPhone. It is a real client, not a proxy like <a href="http://www.fring.com/default.php">Fring</a> (took me a while to figure that out :/). This means if you have a local Asterisk setup, you can use the local IP and actually get a reasonable latency <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> The call quality is perfect with Siphon too. And it plugs into the addressbook in the iPhone, even better. The only down side is that apple don&#8217;t allow background applications to actually run on the iPhone, so incoming VOIP calls do not get routed through unless the application is left open. Oh well, it&#8217;s still a cool app <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I wonder if I will have problems remembering when I&#8217;m calling someone over VOIP and when I&#8217;m calling over the mobile network given they are both made with my mobile phone device now&#8230;I don&#8217;t really want to spend an hour on the phone to a landline thinking I&#8217;m talking over VOIP only to discover a bill for $60 <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/one-phone-to-rule-them-all/feed/</wfw:commentRss>
		</item>
		<item>
		<title>More Mac Woes</title>
		<link>http://www.sirspanky.com/serious/more-mac-woes/</link>
		<comments>http://www.sirspanky.com/serious/more-mac-woes/#comments</comments>
		<pubDate>Mon, 03 May 2010 13:46:29 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=834</guid>
		<description><![CDATA[Another glaring oversight of having a Mac, and one that I think should be exploited by those making parodies of the Mac v PC ads  
I have a mac, therefore, I can do &#8220;everything&#8221; out of the box&#8230;except resize an image. Or create an image. Or, edit an image in any way. There is [...]]]></description>
			<content:encoded><![CDATA[<p>Another glaring oversight of having a Mac, and one that I think should be exploited by those making parodies of the Mac v PC ads <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I have a mac, therefore, I can do &#8220;everything&#8221; out of the box&#8230;except resize an image. Or create an image. Or, edit an image in any way. There is no Mac equivalent to MS Paint. Not that paint is very good, but at least in a pinch you can save a screenshot to paint and then resize it. Sure, the Grab utility in Mac OS X is great, but it&#8217;s not very much good to me at full size. Ohhh, right, I&#8217;m supposed to buy Photoshop, because that&#8217;s the only well known program that PC users are going to recognize that is also on a Mac that can edit images. Or I Google a lot and find a bunch of new programs I&#8217;ve never heard of, none of which are endorsed by Apple.</p>
<p>So, anyway, I&#8217;ve settled on <a href="http://seashore.sourceforge.net/">SeaShore</a>, which is based on GIMP. I didn&#8217;t like GIMP because it runs in X11 and doesn&#8217;t interpret key commands &#8220;properly&#8221;. By properly, I mean the same way Cocoa apps behave. You have to click on a window before you can click on any buttons in X11 i.e. if you are looking at the image and want to change tools, you must click the tool twice. One click selects the tool window, and one selects the tool. Then you have to click twice in the image to start using the tool. Annoying. Oh, and all of the commands are mapped to control button, not the command button. Also annoying.</p>
<p><a href="http://seashore.sourceforge.net/">SeaShore</a> is a very cut down version of the gimp, but it&#8217;s small, Mac friendly, and allows me to paste and resize my screenshot easily <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I also stumbled across <a href="http://blog.somekool.net/2006/10/03/free-paint-program-for-mac-os-x">this blog entry</a> from 2006 that discusses some of the free editing tools for Mac, all of which turned up in my search as well, but it&#8217;s easier to link there for a summary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/more-mac-woes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Macbook Pro Mic Location</title>
		<link>http://www.sirspanky.com/serious/macbook-pro-mic-location/</link>
		<comments>http://www.sirspanky.com/serious/macbook-pro-mic-location/#comments</comments>
		<pubDate>Sun, 02 May 2010 05:12:35 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=832</guid>
		<description><![CDATA[Recently I have started getting into VOIP servers, specifically, Asterisk based VOIP servers. I use a Macbook pro as my everyday work computer (clamshell mode while at the office).
Problem 1) The Macbook Pro has line level inputs not mic level inputs. So when I bought a medium-range Logitech Clearchat headset, it didn&#8217;t work.
Attempted solution 1: [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have started getting into VOIP servers, specifically, Asterisk based VOIP servers. I use a Macbook pro as my everyday work computer (clamshell mode while at the office).</p>
<p>Problem 1) The Macbook Pro has line level inputs not mic level inputs. So when I bought a medium-range Logitech Clearchat headset, it didn&#8217;t work.</p>
<p>Attempted solution 1: I have an external Toshiba Dynadock which has a sound card in it, and connects up via USB. The mac detects the sound card. The Sound preferences control panel sees the mic and responds to it. No other application responds to the mic. I&#8217;ve absolutely no idea why. The only problem I could find on Google that remotely resembled this was when people are trying to get sound into a sound recording application, and the recording input is set at the wrong sampling rate. I tried modifying this to no joy. I can even hear the mic if I put the input on &#8220;passthrough&#8221; mode with Rogue Amoeba&#8217;s LineIn application, but I simply can&#8217;t get it to work in an application. The most simple test I have is using Audacity and recording off that input. Sigh.</p>
<p>Attempted solution 2: I un-clamshelled my mac to use the internal mic. So I have the internal mic and internal speakers and I&#8217;m talking and I can hear them, and they can hear me, but they are hearing an echo of themselves. Why? Because the internal mic in a Macbook Pro is in the speaker grill, next to the speaker. So the other person talks, it comes out my speakers, and the mic picks up on some of it and routes it back to the person.</p>
<p>Why put a mic next to the speaker? Lots of people say &#8220;oh I used it to record my voice and it was ok&#8221;. Yes, but you&#8217;re not outputting through the speakers at the same time. Even the normal Macbook has the mic next to the camera. It makes SENSE to put it next to the camera, because when people do video calling, they are looking at (and therefore speaking to) the camera.</p>
<p>As much as I like Mac OS X, I don&#8217;t think I&#8217;ll buy another mac. I might buy a Vaio instead. Windows 7 is quite nice, and even if it does &#8220;go slow&#8221; after a year and require a reinstall, I have discovered that a lot of what I do is server-based anyway, meaning that as long as I have a core set of applications on whatever PC I am using, I don&#8217;t have to back up / reinstall much.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/macbook-pro-mic-location/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VirtualBox UUID Woes</title>
		<link>http://www.sirspanky.com/informative/virtualbox-uuid-woes/</link>
		<comments>http://www.sirspanky.com/informative/virtualbox-uuid-woes/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 20:48:54 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Informative]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=826</guid>
		<description><![CDATA[I had a power outage the other night and it looks like one of my VirtualBox virtual images got a little corrupt and it&#8217;s UUID changed. This isn&#8217;t espcially a problem, but VirtualBox identifies images by the UUID and therefore refused to start the VM this is attached to throwing the error:
UUID {b6e58671-d821-4dba-b723-f12defc2650a} of the [...]]]></description>
			<content:encoded><![CDATA[<p>I had a power outage the other night and it looks like one of my VirtualBox virtual images got a little corrupt and it&#8217;s UUID changed. This isn&#8217;t espcially a problem, but VirtualBox identifies images by the UUID and therefore refused to start the VM this is attached to throwing the error:</p>
<blockquote><p>UUID {b6e58671-d821-4dba-b723-f12defc2650a} of the medium &#8216;/home/admin1/vimages/zen.vdi&#8217; does not match the value {c14b3de3-78c8-40a1-8106-badd0e0fb9c2} stored in the media registry (&#8217;/home/admin1/.VirtualBox/VirtualBox.xml&#8217;)</p></blockquote>
<p>I hacked the VirtualBox.xml file to reflect the new UUID but it still gave me the same error. I guess VirtualBox must cache it somewhere.</p>
<p>I ran:</p>
<blockquote><p>VBoxManage internalcommands setuuid &#8220;/home/admin1/vimages/zen.vdi&#8221;</p></blockquote>
<p>Which said it ran successfully, but then gave me the same error when I tried to start the VM. Weird. Cloning the VDI also fails with the same message, so I can&#8217;t generate a new virtual image from this one either.</p>
<p>I have in fact had this issue when using the Mac version of VirtualBox, and I removed the image from the HD listing and re-added it, forcing VirtualBox to accept the new UUID of the image. Unfortunately, I couldn&#8217;t find in the manual how to perform this step on the command line. Simly detaching and reattaching the media does not force VirtualBox to change the media registry.</p>
<p>Eventually after molesting Google to broaden my search way beyond my error message (effectively looking at everyone who had UUID errors in VirtualBox!) I came accross the unregisterimage command. Intuitively I discovered there is an identical reverse command called registerimage. These commands control the media library from the command line. They appear to be compeltely undocumented in the VirtualBox Manual. It&#8217;s quite stupid really, they should be in the same section where the GUI describes how to do this.<br />
A quick detachment of the drive from my VM:</p>
<blockquote><p>VBoxManage storageattach zen &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 0 &#8211;medium none</p></blockquote>
<p>Followed by resetting the image registration:</p>
<blockquote><p>VBoxManage unregister &#8220;/home/admin1/vimages/ubuntu.vdi&#8221;<br />
VBoxManage register &#8220;/home/admin1/vimages/ubuntu.vdi&#8221;</p></blockquote>
<p>And re-attaching the drive:</p>
<blockquote><p>VBoxManage storageattach zen &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 0 &#8211;type hdd &#8211;medium &#8220;/home/admin1/vimages/ubuntu.vdi&#8221;</p></blockquote>
<p>And all was good!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/informative/virtualbox-uuid-woes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Back online - and faster now!</title>
		<link>http://www.sirspanky.com/serious/back-online-and-faster-now/</link>
		<comments>http://www.sirspanky.com/serious/back-online-and-faster-now/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 12:33:01 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=818</guid>
		<description><![CDATA[Ok, the house move is complete, the DSL is back online. And faster now too  I don&#8217;t think I&#8217;ll bother shifting the site off to one of the public hosting servers now  24 / 1 at almost full speed. If Amnet are using Annex M I can probably unbalance that a little in [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, the house move is complete, the DSL is back online. And faster now too <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I don&#8217;t think I&#8217;ll bother shifting the site off to one of the public hosting servers now <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> 24 / 1 at almost full speed. If Amnet are using Annex M I can probably unbalance that a little in favor of the upload throughput given the signal strength <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.sirspanky.com/blog/uploaded_images/amdsl.jpg"><img class="aligncenter size-full wp-image-819" title="amdsl" src="http://www.sirspanky.com/blog/uploaded_images/amdsl.jpg" alt="" width="500" height="257" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/back-online-and-faster-now/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dell 1320C and Mac OS X</title>
		<link>http://www.sirspanky.com/informative/dell-1320c-and-mac-os-x/</link>
		<comments>http://www.sirspanky.com/informative/dell-1320c-and-mac-os-x/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 12:39:50 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Informative]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=823</guid>
		<description><![CDATA[When my Samsung CLP-300N failed, I had about $200 worth of new unused toner sitting around and so I bought a 2nd hand CLP-300 (the network version is rare and so prohibitively expensive). This worked ok for about another 6 months, but before I can even change the toner, the black imager is dying again. [...]]]></description>
			<content:encoded><![CDATA[<p>When my Samsung CLP-300N failed, I had about $200 worth of new unused toner sitting around and so I bought a 2nd hand CLP-300 (the network version is rare and so prohibitively expensive). This worked ok for about another 6 months, but before I can even change the toner, the black imager is dying again. So I investigated sub $500 color laser printers, and I found that the Dell is one of the cheapest capital expenditures while still giving good quality. I think this is because they sell the toner with the imaging unit, which makes the toner about $100 per color, very expensive. However, it should prolong the printer. I saw these on special at $180 from Dell&#8217;s site and picked one up last month. I hadn&#8217;t set it up because of the shift though. Now, in the new place, in a hurry to print something, I unboxed it and set it up, only to find that:</p>
<p>1) Mac OS 10.5.8 does not support the printer natively</p>
<p>2) The driver disc Dell included includes only the electonic version of the manual, in about 10 languages, in the Mac OS mount partition (obviously the Windows drivers are on the Windows partition).</p>
<p>Googling tells me there is no driver, and to use a Fujixerox driver that uses the same electronics, and so will print, but will not give any options. Great. I couldn&#8217;t even find the driver they were talking about. However, dispelling these myths and the myths of Dell&#8217;s lack of support for Mac OS X, they do indeed have a Mac OS X driver on their site. And it&#8217;s just the driver - 550kb download or so. The application has been split. I like this. It works perfectly now. Thanks Dell! <img src='http://www.sirspanky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/informative/dell-1320c-and-mac-os-x/feed/</wfw:commentRss>
		</item>
		<item>
		<title>USA Outsourcing</title>
		<link>http://www.sirspanky.com/serious/usa-outsourcing/</link>
		<comments>http://www.sirspanky.com/serious/usa-outsourcing/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 02:27:24 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=814</guid>
		<description><![CDATA[I recently started using eLance for some work I am doing, and I wanted to see how others use it. I opened a couple of projects from the main page and found this one. A US company outsourcing some IT work, fine. I&#8217;ve seen some US freelances on the site ranging in bids from $20ph [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started using eLance for some work I am doing, and I wanted to see how others use it. I opened a couple of projects from the main page and found this one. A US company outsourcing some IT work, fine. I&#8217;ve seen some US freelances on the site ranging in bids from $20ph to $100ph. Sounds reasonable enough to me, a little like Australia. Then the asian / indian market freelances are operating at $12 - $25ph. This was also no surprise. This one job posting that I opened here though, $2 PER HOUR?? Isn&#8217;t that a bit low? I agree with a freemarket economy, but I also agree with rewarding good people (it helps with retention of those people / good business, which makes life easier in a freemarket). I was surprised anyone would try to get something done for that amount. Maybe they&#8217;re going for quantity not quality&#8230;</p>
<p><a href="http://www.sirspanky.com/blog/uploaded_images/elance-long-term-part-time-employment.jpg"><img class="aligncenter wp-image-815" title="elance-long-term-part-time-employment" src="http://www.sirspanky.com/blog/uploaded_images/elance-long-term-part-time-employment-400x203.jpg" alt="" width="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/usa-outsourcing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Opening file URI Links In FireFox 3 From A Website</title>
		<link>http://www.sirspanky.com/informative/opening-file-uri-links-in-firefox-3-from-a-website/</link>
		<comments>http://www.sirspanky.com/informative/opening-file-uri-links-in-firefox-3-from-a-website/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:28:48 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Informative]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=810</guid>
		<description><![CDATA[I have just had to write a web application that links to the local file system (NFS actually) to open a directory that stores common business files in FireFox 3. It doesn&#8217;t allow it. I found many sites saying this, but not offering any real helpful workaround. Mozilla is quite clear about this fact, and [...]]]></description>
			<content:encoded><![CDATA[<p>I have just had to write a web application that links to the local file system (NFS actually) to open a directory that stores common business files in FireFox 3. It doesn&#8217;t allow it. I found many sites saying this, but not offering any real helpful workaround. Mozilla is quite clear about this fact, and the appropriate work around:</p>
<blockquote><p>For security purposes, Mozilla applications block links to local files (and directories) from remote files. This includes linking to files on your hard drive, on mapped network drives, and accessible via <a class="external text" title="http://en.wikipedia.org/wiki/Path_%28computing%29#Uniform_Naming_Convention" rel="nofollow" href="http://en.wikipedia.org/wiki/Path_%28computing%29#Uniform_Naming_Convention">Uniform Naming Convention</a> (UNC) paths.</p></blockquote>
<p><a href="http://kb.mozillazine.org/Links_to_local_pages_do_not_work">http://kb.mozillazine.org/Links_to_local_pages_do_not_work</a></p>
<p>The solution is to alter the security settings for the site in question, with the exact settings shown above. Note that the settings do not require using the user.js / prefs.js file and can be enabled in about:config, although doing that on many computers might be a drag!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/informative/opening-file-uri-links-in-firefox-3-from-a-website/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Spotlight / mds CPU Usage on Mac OS X</title>
		<link>http://www.sirspanky.com/serious/spotlight-mds-cpu-usage-on-mac-os-x/</link>
		<comments>http://www.sirspanky.com/serious/spotlight-mds-cpu-usage-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 16:20:35 +0000</pubDate>
		<dc:creator>james.pearce</dc:creator>
		
		<category><![CDATA[Serious]]></category>

		<guid isPermaLink="false">http://www.sirspanky.com/?p=808</guid>
		<description><![CDATA[I recently upgraded my 10.5.4 OS to 10.5.8. I&#8217;d been putting off updating the OS for a while since it&#8217;s one of the installations that I know always requires a restart, and I hate restarting. Despite the fact that my mac regularly does stupid things that necessitate restarting (protected memory is really useless against protecting [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my 10.5.4 OS to 10.5.8. I&#8217;d been putting off updating the OS for a while since it&#8217;s one of the installations that I know always requires a restart, and I hate restarting. Despite the fact that my mac regularly does stupid things that necessitate restarting (protected memory is really useless against protecting the OS from application crashes if there is no protection from an application consuming all available memory for starters).</p>
<p>Now I consistently have to put up with mds / mdsworker consuming my entire CPU. Even when it&#8217;s not, it is often spamming my hard drive, and since that is the slowest component in the computer anyway, my computer slows to a crawl again. mds is the process for spotlight that crawls the hard drive indexing the files. Apparently this situation can happen with a corrupt Spotlight database. This wouldn&#8217;t surprise me, because with my 200G hard drive, the Spotlight DB grows to 18G and doesn&#8217;t stop. I run out of space then, so I remove the DB for / and it starts all over again.</p>
<p>Now, I&#8217;ve noticed that mds is actually run by launchd (a variation of cron). And launchd actually allows limits to be specified:</p>
<p>launchd limit cpu 100</p>
<p>Limits the CPU usage to 100%. This should, in theory, help. In practice, it&#8217;s hard to tell. I can&#8217;t tell how the limit is achieved. If it&#8217;s an average, it would permit a spike of 150% if followed by a 50% usage interval of the same time. Then the question becomes how long the calculation envelope is (the time interval for the average) to determine how long a 150% CPU usage (more than 1 core) spike actually is. I don&#8217;t have the information. I can see that sometimes launchd / mds is still using &gt;100% and sometimes it isn&#8217;t, but it moves too quick for me to see if the average is hitting 100% or not. Oh well, was worth the try I guess.</p>
<p>I have a feeling that running my CPU at full load and my HDD constantly being railed, and for some reason my GFX is getting worked over as well, resulting in system loads consistently above 2 and permanent temperatures above 70 degrees celsius for the CPU and GFX, is going to result in my HDD dying soon. I have everything important backed up, but I certainly won&#8217;t be forking out $3000 for another Mac Book Pro if that happens. I haven&#8217;t had any problems with Windows 7, and if I do, it won&#8217;t be unexpected so I&#8217;m prepared for a reformat in that case. And it will cost be $2k less.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sirspanky.com/serious/spotlight-mds-cpu-usage-on-mac-os-x/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
