<?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>Harry Bailey &#187; OS X 10.4</title>
	<atom:link href="http://harrybailey.com/category/mac/os-x-104/feed/" rel="self" type="application/rss+xml" />
	<link>http://harrybailey.com</link>
	<description>just a little bit geeky</description>
	<lastBuildDate>Tue, 24 Aug 2010 12:15:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Location of hosts httpd.conf php.ini on Mac OSX</title>
		<link>http://harrybailey.com/2009/02/location-of-hosts-httpdconf-phpini-on-mac-osx/</link>
		<comments>http://harrybailey.com/2009/02/location-of-hosts-httpdconf-phpini-on-mac-osx/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 15:16:28 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.4]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[The Web]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=194</guid>
		<description><![CDATA[I&#8217;m sick of forgetting where to find my local development files so here is a quick breakdown. It includes hosts file, httpd.conf and php.ini

hosts
The hosts file is used to point domains at an i.p although in most cases it will just be a list of 127.0.0.1 and a domain name such as mysite.local or mysite.hjb [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sick of forgetting where to find my local development files so here is a quick breakdown. It includes hosts file, httpd.conf and php.ini</p>
<p><span id="more-194"></span></p>
<h2>hosts</h2>
<p>The hosts file is used to point domains at an i.p although in most cases it will just be a list of 127.0.0.1 and a domain name such as mysite.local or mysite.hjb in my case.<br />
For < 10.5 you used to use netinfo manager to add extra domains and didn't really use the host file, although in 10.5 (and probably later) you do use the host file.</p>
<p><strong>locations:</strong></p>
<p>/private/etc/</p>
<h2>httpd.conf</h2>
<p>The main apache config file. This is where all the setting for apache are stored. After making changed you need to restart web sharing in system preferences sharing for them to have an effect.</p>
<p><strong>locations:</strong></p>
<p>/private/etc/httpd/</p>
<h2>php.ini</h2>
<p>The main php config file. This is where all the setting for php are stored. After making changed you need to restart web sharing in system preferences sharing for them to have an effect.</p>
<p><strong>locations:</strong></p>
<p>/usr/local/php[4|5]/lib/</p>
<h2>Sites folder</h2>
<p>This is where your actual site files are stored and depends on if you are using the default osx install or a 3rd party install. I strongly suggest <a href="http://www.entropy.ch/software/macosx/php/">Marc Liyanage</a>&#8217;s help here as it deals with plenty of plugins too including the always useful gd2 image library.</p>
<p><strong>locations:</strong></p>
<p>/Users/[username]/Sites/<br />
/Library/Webserver/Documents/</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2009/02/location-of-hosts-httpdconf-phpini-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using iDrive But Stop iDriveMonitor Autostarting</title>
		<link>http://harrybailey.com/2008/12/using-idrive-but-stop-idrivemonitor-autostarting/</link>
		<comments>http://harrybailey.com/2008/12/using-idrive-but-stop-idrivemonitor-autostarting/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 23:29:37 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.4]]></category>
		<category><![CDATA[apps]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=118</guid>
		<description><![CDATA[I like iDrive. It quietly keeps my selected folders backed up. But this isn&#8217;t a review of iDrive, it&#8217;s instructions for how to use iDrive but stop the iDriveMonitor application from forcing itself to the front of the startup queue when you login.
It took me a while to get to the bottom of the problem [...]]]></description>
			<content:encoded><![CDATA[<p>I like iDrive. It quietly keeps my selected folders backed up. But this isn&#8217;t a review of iDrive, it&#8217;s instructions for how to use iDrive but stop the iDriveMonitor application from forcing itself to the front of the startup queue when you login.</p>
<p>It took me a while to get to the bottom of the problem after I started <a href="http://harrybailey.com/2008/12/delay-login-items-and-applications-for-os-x-104-including-idrive/">delaying application launch</a> to ease memory use on startup.</p>
<p>I knew I needed iDriveMonitor to start at login, but I didn&#8217;t want it to start first because it seems to bog down os x when started along with multiple other apps.</p>
<p>But if I removed it from the login items and manually started it, it automatically added itself back to my Login Items. There is no option to stop it doing this built into iDrive. How annoying.</p>
<p><span id="more-118"></span></p>
<p>My solution was a really simple AppleScript, which starts it after everything else at login, and when it automatically adds itself to my Login Items, the script counts to 4 and then removes it.</p>
<p>So now iDriveMonitor launches last at login and isn&#8217;t allowed to add itself to my Login Items for more than a few seconds.</p>

<div class="wp_syntax"><div class="code"><pre class="applescript applescript" style="font-family:monospace;">delay <span style="color: #cc66cc;">2</span>
&nbsp;
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;IDriveMonitor&quot;</span>
	<span style="color: #000066;">launch</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
&nbsp;
delay <span style="color: #cc66cc;">4</span>
&nbsp;
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;System Events&quot;</span>
	<span style="color: #b1b100;">get</span> <span style="color: #000000; font-weight: bold;">the</span> name <span style="color: #b1b100;">of</span> <span style="color: #000000; font-weight: bold;">every</span> login item
	<span style="color: #b1b100;">if</span> login item <span style="color: #ff0000;">&quot;IDriveMonitor&quot;</span> <span style="color: #000066;">exists</span> <span style="color: #b1b100;">then</span>
		<span style="color: #000066;">delete</span> login item <span style="color: #ff0000;">&quot;IDriveMonitor&quot;</span>
	<span style="color: #b1b100;">else</span>
		display dialog <span style="color: #ff0000;">&quot;IDriveMonitor login item doesn’t exist&quot;</span>
	<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2008/12/using-idrive-but-stop-idrivemonitor-autostarting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delay Login Items and Applications for OS X 10.4 Including iDrive</title>
		<link>http://harrybailey.com/2008/12/delay-login-items-and-applications-for-os-x-104-including-idrive/</link>
		<comments>http://harrybailey.com/2008/12/delay-login-items-and-applications-for-os-x-104-including-idrive/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 23:21:22 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.4]]></category>
		<category><![CDATA[apps]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=115</guid>
		<description><![CDATA[Once you have had your mac for a while you are likely to have found dozens of applications that you love, and multiple items that you want to start when you log in.
So you add them all to your login-items and you&#8217;re done right? Wrong.
If you simply add them all to your login items then [...]]]></description>
			<content:encoded><![CDATA[<p>Once you have had your mac for a while you are likely to have found dozens of applications that you love, and multiple items that you want to start when you log in.</p>
<p>So you add them all to your login-items and you&#8217;re done right? Wrong.</p>
<p>If you simply add them all to your login items then when you log in, they all try to start at once and it all ends in a massive delay before you can use any of them or even any of your other applications. It isn&#8217;t unheard of to see the rainbow spinner of death on some machines.</p>
<p>My solution was to create my own simple applescript that starts all the things I want, in the order I want and with delays between then to keep my mac in a usable state.</p>
<p><span id="more-115"></span></p>
<p>Creating applescripts is actually much simpler than most people think.<br />
First open Applications -&gt; AppleScript -&gt; Script Editor</p>
<p>Now I am going to give you a large headstart here, so you can copy and paste in the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="applescript applescript" style="font-family:monospace;">delay <span style="color: #cc66cc;">2</span>
&nbsp;
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Quicksilver&quot;</span>
	<span style="color: #000066;">launch</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
&nbsp;
delay <span style="color: #cc66cc;">2</span>
&nbsp;
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Things&quot;</span>
	<span style="color: #000066;">launch</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
&nbsp;
delay <span style="color: #cc66cc;">2</span>
&nbsp;
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;GrowlHelperApp&quot;</span>
	<span style="color: #000066;">launch</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span></pre></div></div>

<p>The code above adds a delay of 2, then opens the application &#8220;Quicksilver&#8221;, it then pauses for another delay of 2 and opens the application &#8220;Things&#8221;. There is then another delay of 2 and we launch the &#8220;GrowlHelperApp&#8221;.</p>
<p>It is important that you get the application names correct. I suggest either copying them from &#8220;System Preferences -&gt; Accounts -&gt; Your account -&gt; Login Items&#8221; or you could head on over to your Applications folder or Utilities folder and copy the applications name from there (without the .app on the end)</p>
<p>When you are happy with your list of delayed applications click on the compile button in Script Editor. If you receive errors, check you have no sytax errors. If you get stuck then copy the code from above again and start over. If you you don&#8217;t have errors we are ready to save it all ready for use. Select &#8220;File -&gt; Save As&#8221;, select File Format: Application, uncheck all other options and give your new application a name, mine is called Appause (get it?). Be sure to save your application to the Utilities folder.</p>
<p>So now you can remove all the applications you just put in your home-made application delayer from your existing login items and add your new app to the login items.</p>
<p>Open Login Items, click each application you want to remove followed by the minus [-] button.<br />
Then click the plus [+] and browse to your utilities folder to find where you put your new app.</p>
<p>You should end up with something like this:</p>
<p><img class="alignnone size-full wp-image-116" title="login items" src="http://harrybailey.com/wp-content/uploads/2008/12/picture-3.jpg" alt="" width="383" height="336" /></p>
<p>The only application I have had a problem with so far is iDrive. iDriveMonitor annoyingly adds itself back to your Login Items as start up. I found a solution though which sits in my home made Appause application too. See how to still be able to use iDrive but <a title="using iDrive from login" href="http://harrybailey.com/2008/12/using-idrive-but-stop-idrivemonitor-autostarting/">stop iDriveMonitor autostarting</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2008/12/delay-login-items-and-applications-for-os-x-104-including-idrive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Move stray windows back into view in mac OS X</title>
		<link>http://harrybailey.com/2008/11/move-stray-windows-back-into-view-in-mac-os-x/</link>
		<comments>http://harrybailey.com/2008/11/move-stray-windows-back-into-view-in-mac-os-x/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 11:11:38 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.4]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=18</guid>
		<description><![CDATA[Today the iTunes Equilizer went walkabout on my mac. When I say it went walkabout I mean, I knew it was open because pressing F9 to show all windows proved it was open, but when I went to use it, it was somewhere up above the usable screen of my macbook. Well thanks to Dudehey [...]]]></description>
			<content:encoded><![CDATA[<p>Today the iTunes Equilizer went walkabout on my mac. When I say it went walkabout I mean, I knew it was open because pressing F9 to show all windows proved it was open, but when I went to use it, it was somewhere up above the usable screen of my macbook. Well thanks to <a href="http://www.macosxhints.com/article.php?story=2007102012424539">Dudehey and robg</a> I found an answer.</p>
<p><span id="more-18"></span></p>
<p>I had already tried the more simple method of selecting the troublesome window using apple-~ and then choosing Window-&gt;Zoom. It failed to solve the issue.</p>
<p>The following steps will return all your open windows back to the useable and viewable part of the screen.</p>
<p>1) Open System Preferences -&gt; Universal Access<br />
2) Check the box &#8216;Enable access for assistive devices&#8217; (remember to uncheck later if you need)<br />
3) Close System Preferences<br />
4) Run Applications -&gt; AppleScript -&gt; Script Editor<br />
5) Paste the following code into the top box<br />
6) Click Run<br />
7) Quite Script Editor</p>

<div class="wp_syntax"><div class="code"><pre class="applescript applescript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">-- start code</span>
<span style="color: #b1b100;">property</span> processesToIgnore : <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;Finder&quot;</span>
	<span style="color: #b1b100;">set</span> _b <span style="color: #b1b100;">to</span> bounds <span style="color: #b1b100;">of</span> window <span style="color: #b1b100;">of</span> desktop
	<span style="color: #b1b100;">set</span> screen_width <span style="color: #b1b100;">to</span> item <span style="color: #cc66cc;">3</span> <span style="color: #b1b100;">of</span> _b
	<span style="color: #b1b100;">set</span> screen_height <span style="color: #b1b100;">to</span> item <span style="color: #cc66cc;">4</span> <span style="color: #b1b100;">of</span> _b
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
<span style="color: #b1b100;">tell</span> application <span style="color: #ff0000;">&quot;System Events&quot;</span>
	<span style="color: #b1b100;">set</span> allProcesses <span style="color: #b1b100;">to</span> application processes
	<span style="color: #b1b100;">set</span> _results <span style="color: #b1b100;">to</span> <span style="color: #ff0000;">&quot;&quot;</span>
	<span style="color: #b1b100;">repeat</span> <span style="color: #b1b100;">with</span> i <span style="color: #b1b100;">from</span> <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">to</span> <span style="color: #000066;">count</span> allProcesses
		<span style="color: #b1b100;">set</span> doIt <span style="color: #b1b100;">to</span> <span style="color: #cc66cc;">1</span>
		<span style="color: #b1b100;">repeat</span> <span style="color: #b1b100;">with</span> z <span style="color: #b1b100;">from</span> <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">to</span> <span style="color: #000066;">count</span> processesToIgnore
			<span style="color: #b1b100;">if</span> process i <span style="color: #66cc66;">=</span> process <span style="color: #66cc66;">&#40;</span>item z <span style="color: #b1b100;">of</span> processesToIgnore<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">then</span>
				<span style="color: #b1b100;">set</span> doIt <span style="color: #b1b100;">to</span> 0
			<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">repeat</span>
		<span style="color: #b1b100;">if</span> doIt <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">then</span>
			<span style="color: #b1b100;">tell</span> process i
				<span style="color: #b1b100;">repeat</span> <span style="color: #b1b100;">with</span> x <span style="color: #b1b100;">from</span> <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">to</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000066;">count</span> windows<span style="color: #66cc66;">&#41;</span>
					<span style="color: #b1b100;">set</span> winPos <span style="color: #b1b100;">to</span> position <span style="color: #b1b100;">of</span> window x
					<span style="color: #b1b100;">set</span> _x <span style="color: #b1b100;">to</span> item <span style="color: #cc66cc;">1</span> <span style="color: #b1b100;">of</span> winPos
					<span style="color: #b1b100;">set</span> _y <span style="color: #b1b100;">to</span> item <span style="color: #cc66cc;">2</span> <span style="color: #b1b100;">of</span> winPos
					<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_x <span style="color: #66cc66;">&lt;</span> 0 <span style="color: #000066;">or</span> _y <span style="color: #66cc66;">&lt;</span> 0 <span style="color: #000066;">or</span> _x &gt; screen_width <span style="color: #000066;">or</span> _y &gt; screen_height<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">then</span>
						<span style="color: #b1b100;">set</span> position <span style="color: #b1b100;">of</span> window x <span style="color: #b1b100;">to</span> <span style="color: #66cc66;">&#123;</span>0, <span style="color: #cc66cc;">22</span><span style="color: #66cc66;">&#125;</span>
					<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
				<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">repeat</span>
			<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
		<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">if</span>
	<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">repeat</span>
<span style="color: #b1b100;">end</span> <span style="color: #b1b100;">tell</span>
<span style="color: #808080; font-style: italic;">-- end code</span></pre></div></div>

<p>And that&#8217;s it. I use Tiger 10.4 but apparently you can also use this method in Leopard 10.5.</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2008/11/move-stray-windows-back-into-view-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
