<?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>VerySimple &#187; Operating Systems</title>
	<atom:link href="http://verysimple.com/category/operating-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://verysimple.com</link>
	<description>Custom Software</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:12:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kill imagent</title>
		<link>http://verysimple.com/2011/12/23/kill-imagent/</link>
		<comments>http://verysimple.com/2011/12/23/kill-imagent/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 09:33:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1169</guid>
		<description><![CDATA[For some reason after upgrading to Lion I have to kill the process for imagent regularly in order to use iChat.  Otherwise iChat stays stuck saying &#8220;unavailable.&#8221;  I don&#8217;t know exactly why this is happening to some people and not others but I&#8217;m one of the unlucky people who has been experiencing it ever since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.png" rel="shadowbox[sbpost-1169];player=img;" title="kill-imagent"><img class="alignright size-full wp-image-1171" title="kill-imagent" src="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.png" alt="" width="247" height="228" /></a>For some reason after upgrading to Lion I have to kill the process for imagent regularly in order to use iChat.  Otherwise iChat stays stuck saying &#8220;unavailable.&#8221;  I don&#8217;t know exactly why this is happening to some people and not others but I&#8217;m one of the unlucky people who has been experiencing it ever since I upgraded.  It seems to happen when I let my computer go to sleep.  iChat doesn&#8217;t connect after the laptop wakes up.</p>
<p>Since it&#8217;s turned into almost a daily thing for me to open terminal and kill imagent, I decided to write that into applescript and make an icon so I can just click it.  It&#8217;s only one line of applescript:</p>
<p><code>do shell script "killall imagent"</code></p>
<p>That&#8217;s all there is to it, but in case you don&#8217;t know or want to deal with compiling that yourself, you can download this <a href="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.zip">pre-built version of kill-imagent</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/12/23/kill-imagent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Image Magick for PHP on OSX</title>
		<link>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/</link>
		<comments>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 05:34:56 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1160</guid>
		<description><![CDATA[These instructions will install the ImageMagick binaries as well as the PHP extension for the default OSX Apache/PHP setup.  If you prefer not to use MacPorts there are binaries available, however you may have to deal with some dependencies and configuration on your own. 1. Install ImageMagick sudo port install ImageMagick 2. Install imagic module [...]]]></description>
			<content:encoded><![CDATA[<p>These instructions will install the ImageMagick binaries as well as the PHP extension for the default OSX Apache/PHP setup.  If you prefer not to use MacPorts there are binaries available, however you may have to deal with some dependencies and configuration on your own.</p>
<h3>1. Install ImageMagick</h3>
<p><code>sudo port install ImageMagick</code></p>
<h3>2. Install imagic module</h3>
<p>You&#8217;d expect to just be able to run &#8220;pecl install imagick&#8221; and I would probably try it first.  However the instructions below will work if the automatic installation returns the error: ImageMagick MagickWand API configuration program&#8230; configure: error: not found. Please provide a path to MagickWand-config or Wand-config program. ERROR: &#8216;/private/tmp/pear/temp/imagick/configure &#8211;with-imagick=/opt/local/bin/&#8217; failed.</p>
<p><em>Note version is 3.0.1 in these instructions, adjust the commands depending on the version that is downloaded by pecl.</em></p>
<p><code>pecl download imagick<br />
tar xvzf imagick-3.0.1.tgz<br />
cd imagick-3.0.1<br />
phpize<br />
./configure --with-imagick=/opt/local<br />
make<br />
sudo make install</code></p>
<p>The install process will create a file &#8220;imagick.so&#8221;, but it may not be automatically installed in the correct location depending on your PHP path settings.  The install will output the location of the .so file so if necessary, you can manually move that file to the extensions directory for your web server.</p>
<h3>3. Append to php.ini</h3>
<p><code>extension=imagick.so</code></p>
<p>That should be it.  Restart Apache and view phpinfo.php. There should be a section for ImageMagick</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing LAMP Stack on OSX 10.7 Lion</title>
		<link>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/</link>
		<comments>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 22:14:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=998</guid>
		<description><![CDATA[This is a follow-up to my previous article on installing a LAMP Stack on Snow Leopard and explains the steps that you need to get Lion up and running for LAMP development.  (Linux, Apache, MySQL and PHP in case you don&#8217;t already know).  Lion comes pre-installed with Apache and PHP 5.3.6 so you only need [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow-up to my previous article on <a href="http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/" target="_blank">installing a LAMP Stack on Snow Leopard</a> and explains the steps that you need to get Lion up and running for LAMP development.  (Linux, Apache, MySQL and PHP in case you don&#8217;t already know).  Lion comes pre-installed with Apache and PHP 5.3.6 so you only need to enable those features.  MySQL is the only component that you have to install.</p>
<h3>1.Turn on Apache</h3>
<p>Go to System Settings-&gt;Sharing and turn on Web Sharing. If necessary click the button that says &#8220;Create Home Folder&#8221; which will create a folder called &#8220;Sites&#8221; in your home directory.  You now have a web server that you can access at http://localhost/~username/  (&#8220;username&#8221; being your own account login name)</p>
<h3>2. Edit /private/etc/apache2/httpd.conf</h3>
<p>To enable PHP uncomment (remove the number sign at the beginning of) the line:</p>
<p>#LoadModule php5_module libexec/apache2/libphp5.so</p>
<p>(optional) you can re-map the server root to your home website directory by editing DocumentRoot:</p>
<p>DocumentRoot “/Users/username/Sites”</p>
<p>If you wish to use .htaccess files then look a bit further down AllowOverride and set it to &#8220;All&#8221; like so:</p>
<p>Options FollowSymLinks<br />
AllowOverride All<br />
Order deny,allow<br />
Deny from all</p>
<h3>3. Edit /private/etc/apache2/users/username.conf</h3>
<p>Your user directory has it&#8217;s own permissions as well which are located in this separate file.  You may wish to enable FollowSymLinks and AllowOverride again here by changing these two lines like so:</p>
<p>Options Indexes MultiViews FollowSymLinks<br />
AllowOverride to All</p>
<h3>4. Copy /private/etc/php.ini.default to /private/etc/php.ini</h3>
<p>OSX includes a default php.ini file that you can use but you must rename or copy it first.  If you don&#8217;t do this then PHP will still run but it will just be using the default initialization settings with no way for you to override them.</p>
<p>Edit these settings in <strong>php.ini</strong> (some of these settings will not come into play until they are installed)</p>
<p>display_errors = On<br />
mysql.default_socket = /tmp/mysql.sock<br />
pdo_mysql.default_socket=/tmp/mysql.sock<br />
date.timezone = &#8216;America/Chicago&#8217;<br />
include_path = &#8220;.:/usr/lib/php/pear&#8221;</p>
<h3>5. (Optional) Install PEAR</h3>
<p>If you use the PEAR libraries you can install them using the included phar file like so:</p>
<p>sudo php /usr/lib/php/install-pear-nozlib.phar<br />
sudo pear config-set php_ini /private/etc/php.ini<br />
sudo pecl config-set php_ini /private/etc/php.ini<br />
sudo pear upgrade-all</p>
<h3>6.  Install MySQL</h3>
<p>This doesn&#8217;t really require instructions, simply download the latest MySQL from <a href="http://mysql.com/">mysql.com</a>.  I installed the 32 bit version, however it may be possible to run the 64 bit version as well.</p>
<h3>7. (Optional) Install Apache Plugins</h3>
<p>If you use encryption you may need to install mcrypt.  <a href="http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/" target="_blank">Instructions</a> have been provided by Michael Gracie</p>
<p>If you use the Zend debugger you can install that using <a href="http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/" target="_blank">these instructions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing Zend PHP Debugger in Eclipse on OSX</title>
		<link>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/</link>
		<comments>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 21:02:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=993</guid>
		<description><![CDATA[This walk-through video shows how to install  and enable PHP debugging using the Zend debugger in Eclipse on OSX.  Instead of using print_r and die statements you can step through your code line-by-line, inspect variables and objects, set breakpoints and view the call stack. Using a debugger really pays off in the long run in [...]]]></description>
			<content:encoded><![CDATA[<p>This walk-through video shows how to install  and enable PHP debugging using the Zend debugger in Eclipse on OSX.  Instead of using print_r and die statements you can step through your code line-by-line, inspect variables and objects, set breakpoints and view the call stack.</p>
<p>Using a debugger really pays off in the long run in my opinion.  It gives you so much visibility and insight into what&#8217;s happening in your code and allows you to work faster.  Most developers that I know don&#8217;t bother installing a debugger for PHP web applications because either they either aren&#8217;t aware of how well it works and/or they think the initial setup is a pain.  The setup does have a few steps but actually isn&#8217;t difficult.  This video walks you through all of the steps to install the Zend debugger.</p>
<p><a href="http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/"><em>Click here to view the embedded video.</em></a></p>
<p><strong>Download links referenced in the video:</strong></p>
<p>Zend Studio Web Debugger (Apache Module):<br />
<a title="http://www.zend.com/en/products/studio/downloads" dir="ltr" href="http://www.zend.com/en/products/studio/downloads" rel="nofollow" target="_blank">http://www.zend.com/en/products/studio/downloads</a></p>
<p>Zend Debugger Plugin Install Site (Eclipse Plugin):<br />
<a title="http://downloads.zend.com/pdt" dir="ltr" href="http://downloads.zend.com/pdt" rel="nofollow" target="_blank">http://downloads.zend.com/pdt</a></p>
<p>Optionally you can download the Zend debugger plugin and install it manually by copying the files to your Eclipse folder instead of using the &#8220;Install Site&#8221;  That can be downloaded here: <a href="http://www.zend.com/en/community/pdt ">http://www.zend.com/en/community/pdt </a></p>
<p><strong>Configuration text for php.ini</strong></p>
<p>zend_extension=/usr/lib/php/extensions/ZendDebugger.so<br />
zend_debugger.expose_remotely=always<br />
zend_debugger.connector_port=10000<br />
zend_debugger.allow_hosts=127.0.0.1/32,192.168.*.*,10.*.*.*</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Connect to VNC over SSH</title>
		<link>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/</link>
		<comments>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 03:07:11 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=861</guid>
		<description><![CDATA[Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so. Any system that has SSH installed can connect using an SSH Tunnel. I go into more detail about the concept on a separate post about mounting OSX AFS shares over SSH. First you [...]]]></description>
			<content:encoded><![CDATA[<p>Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so.  Any system that has SSH installed can connect using an SSH Tunnel.  I go into more detail about the concept on a separate post about <a href="http://verysimple.com/2008/03/09/mount-an-osx-afs-shared-drive-over-ssh/">mounting OSX AFS shares over SSH</a>.</p>
<p>First you need to have a server that is running VNC, but most likely only has it&#8217;s SSH port exposed.  I&#8217;ll assume that SSH is on port 22 and VNC is on port 5900 (these are the default ports for these services).  I&#8217;ll also assume that you have the ssh command and a VNC client installed on your client machine.</p>
<p><span id="more-861"></span>1. On your client machine, open a command line window and enter the following to create the SSH tunnel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span> USERNAME<span style="color: #000000; font-weight: bold;">@</span>YOURSERVER <span style="color: #660033;">-L</span> <span style="color: #000000;">5901</span><span style="color: #000000; font-weight: bold;">/</span>localhost<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5900</span></pre></div></div>

<p><em>Replace USERNAME with your server username, and replace YOURSERVER with your server address (ie verysimple.com or 192.168.1.99)</em></p>
<p>2. Once you enter this command you&#8217;ll be prompted for the server password.  Enter the password.  You will see no feedback in the terminal window, but the SSH tunnel is now active.</p>
<p>3. Open your VNC client and connect to the address &#8220;localhost:5901&#8243;  If you have a password set for VNC access then you will need to enter that now.  If all goes well, you should see your server VNC desktop!</p>
<p>It might seem weird that you are connecting to localhost in your VNC client.  But the the SSH tunnel you created is actually routing port 5901 on your localhost to port 5900 on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable improved vi features (vim) in OSX</title>
		<link>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/</link>
		<comments>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 01:29:52 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=777</guid>
		<description><![CDATA[The vi editor in OSX by default runs in &#8220;compatibility&#8221; mode, however a secret is that vi on OSX is actually an alias to vim (vi iMproved). vim is a more modern version of vi that includes a variety of optional features.  As you can see in the screenshot, colored syntax highlighting is one of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2010/11/vim.png" rel="shadowbox[sbpost-777];player=img;" title="vim"><img class="alignright size-medium wp-image-778" title="vim" src="http://verysimple.com/wp-content/uploads/2010/11/vim-300x285.png" alt="" width="300" height="285" /></a>The vi editor in OSX by default runs in &#8220;compatibility&#8221; mode, however a secret is that vi on OSX is actually an alias to vim (vi iMproved). vim is a more modern version of vi that includes a variety of optional features.  As you can see in the screenshot, colored syntax highlighting is one of the more noticeable features.</p>
<p>If you want to enable these, you can run the following from Terminal:</p>
<p>cp /usr/share/vim/vim72/vimrc_example.vim ~/.vimrc<br />
cp /usr/share/vim/vim72/gvimrc_example.vim ~/.gvimrc</p>
<p>Basically what this does is copy some sample configuration files that enable the additional features.  If you decide you don&#8217;t like them, you can just delete ~/.vimrc and ~/.gvimrc and everything will go back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing LAMP stack on OSX 10.6 Snow Leopard</title>
		<link>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/</link>
		<comments>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 21:55:19 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=414</guid>
		<description><![CDATA[Updated instructions are available for installing LAMP on OSX 10.7 Lion. I&#8217;m setting up a new machine and found a great tutorial written by Josh Lockhart on getting a PHP web development environment up and running on Snow Leopard.  This goes through almost everything to be up and running for a typical LAMP stack with [...]]]></description>
			<content:encoded><![CDATA[<p>Updated instructions are available for <a href="http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/">installing LAMP on OSX 10.7 Lion</a>.</p>
<p>I&#8217;m setting up a new machine and found a great tutorial written by Josh Lockhart on <a href="http://www.newmediacampaigns.com/page/install-pear-phpunit-xdebug-on-macosx-snow-leopard" target="_blank">getting a PHP web development environment up and running on Snow Leopard</a>.  This goes through almost everything to be up and running for a typical LAMP stack with unit testing using all of the default services.</p>
<p>Josh&#8217;s instructions include everything that I need except mcrypt &amp; IMAP.  Luckily Michael Gracie has provided a walk-through for <a href="http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10.6.1/" target="_blank">installing mcrypt on Snow Leopard</a> which involves re-compiling some things, but isn&#8217;t as tough as it first appears.  A <a href="http://www.activecollab.com/forums/topic/5844/">walk-through for installing IMAP support</a> is available on activeColab (with a pre-built binary).</p>
<p>After getting PHP, mcrypt and IMAP going, the last step for me is setting up MySQL which has some caveats on OSX.  The main problem is that the MySQL installer places the mysql.sock file in a non-standard place and so you have to either <a href="http://www.verysimple.com/blog/2009/01/07/php-on-os-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/">create a link or alter your php.ini file</a> before PHP will be able to talk to MySQL.  (If you get <em>&#8220;Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’</em>&#8221; or  “<em>No such file or directory</em>” when calling mysql_connect, then this is the problem)</p>
<p><span id="more-414"></span></p>
<p>After completing the steps on Josh&#8217;s &amp; Michael&#8217;s pages and running the MySQL installation package, here are the additional steps that I like to take to get my local environment configured:</p>
<p><strong>Edit /private/etc/php.ini</strong></p>
<p>display_errors = On<br />
mysql.default_socket = /tmp/mysql.sock<br />
pdo_mysql.default_socket=/tmp/mysql.sock<br />
date.timezone = &#8216;America/Chicago&#8217;</p>
<p><strong>Edit /private/etc/apache2/httpd.conf</strong></p>
<p>DocumentRoot &#8220;/Users/jason/Sites&#8221;</p>
<p><strong>Edit /private/etc/apache2/users/jason.conf</strong></p>
<p>Append <em>FollowSymLinks</em> to the Options</p>
<p>Change AllowOverride to All</p>
<p>I also like to change the permissions on php.ini and httpd.conf to allow my user account edit permissions and create an alias to those two files somewhere easy to get to.</p>
<p>Installing <a href="http://www.mamp.info" target="_blank">MAMP</a> is probably easier, but for some reason I prefer using all of the services that are pre-bundled with OSX.  Also Snow Leopard includes PHP 5.3 which led me to find a couple of deprecated functions in some of our libraries.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>iChat Auto-Accept Text Invitation</title>
		<link>http://verysimple.com/2009/08/29/ichat-auto-accept-text-invitation/</link>
		<comments>http://verysimple.com/2009/08/29/ichat-auto-accept-text-invitation/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 19:53:23 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=403</guid>
		<description><![CDATA[I really like using iChat for IM but one thing that is a minor annoyance is having to click the &#8220;Accept&#8221; button when you receive a text invitation from an AIM account.  My preferred solution is to use Chax which offers a lot of other functions including chat logging.  However if you don&#8217;t want any [...]]]></description>
			<content:encoded><![CDATA[<p>I really like using iChat for IM but one thing that is a minor annoyance is having to click the &#8220;Accept&#8221; button when you receive a text invitation from an AIM account.  My preferred solution is to use <a href="http://www.ksuther.com/chax/" target="_blank">Chax</a> which offers a lot of other functions including chat logging.  However if you don&#8217;t want any of that stuff, in Snow Leopard you can configure iChat to auto-accept text invitations in the preferences.  On the &#8220;Alerts&#8221; tab of the Preferences, select the Event &#8220;Text Invitation,&#8221; check the box to run an AppleScript and select &#8220;Auto Accept&#8221; like so:</p>
<p style="text-align: center"><a href="http://verysimple.com/wp-content/uploads/2009/08/ichat-aut-accept.png" rel="shadowbox[sbpost-403];player=img;"><img class="aligncenter size-full wp-image-404" src="http://verysimple.com/wp-content/uploads/2009/08/ichat-aut-accept.png" alt="ichat-aut-accept" width="444" height="285" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2009/08/29/ichat-auto-accept-text-invitation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP on OSX: Can&#039;t connect to local MySQL server through socket &#039;/var/mysql/mysql.sock&#039;</title>
		<link>http://verysimple.com/2009/01/07/php-on-os-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/</link>
		<comments>http://verysimple.com/2009/01/07/php-on-os-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 21:59:29 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/2009/01/07/osx-php-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/</guid>
		<description><![CDATA[When installing PHP and MySQL on OSX  you may get the error Can&#8217;t connect to local MySQL server through socket &#8216;/var/mysql/mysql.sock&#8217;.  Or you may also get &#8220;No such file or directory&#8221; when calling mysql_connect from a PHP page.  This occurs because PHP is looking for the file mysql.sock in it&#8217;s typical installation location of /var/mysql/mysql.sock. [...]]]></description>
			<content:encoded><![CDATA[<p>When installing PHP and MySQL on OSX  you may get the error <em>Can&#8217;t connect to local MySQL server through socket &#8216;/var/mysql/mysql.sock&#8217;</em>.   Or you may also get &#8220;<em>No such file or directory</em>&#8221; when calling mysql_connect from a PHP page.  This occurs because PHP is looking for the file mysql.sock in it&#8217;s typical installation location of /var/mysql/mysql.sock.  However the MySQL OSX installer actually puts the file in /tmp/mysql.sock.  There are two easy ways to solve the problem.</p>
<p><span id="more-266"></span></p>
<p><strong>Solution 1: Create a symbolic link</strong></p>
<p>Open terminal and do the following:</p>
<p>sudo su<br />
mkdir /var/mysql<br />
ln -s /tmp/mysql.sock /var/mysql/mysql.sock</p>
<p>You just created a symbolic link in the place where PHP expects the socket file to be located so it should be happy.</p>
<p><strong>Solution 2: Edit php.ini</strong></p>
<p>If you don&#8217;t like the idea of creating a symbolic link, you can also simply alter your php.ini file to point PHP to the real location of mysql.sock.</p>
<p>Locate /etc/php.ini.  (If php.ini doesn&#8217;t exist on your system, copy /etc/php.ini.default to /etc/php.ini).  You will likely have to do this from the terminal unless you have Finder configured to show hidden files.  Open the file and update the setting mysql.default_socket so it looks like this:</p>
<p>mysql.default_socket = /tmp/mysql.sock</p>
<p>To commit the change you need to restart Apache.  You can do that in System Settings -&gt; Sharing, then  uncheck, then recheck Web Sharing.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2009/01/07/php-on-os-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>TortoiseSVN for Apple OSX</title>
		<link>http://verysimple.com/2009/01/06/tortoisesvn-for-apple-osx/</link>
		<comments>http://verysimple.com/2009/01/06/tortoisesvn-for-apple-osx/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 22:30:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=255</guid>
		<description><![CDATA[TortoiseSVN is my personal favorite SVN client, unfortunately it&#8217;s only fully supported on Windows.  With a little bit of hacking, though, TortoiseSVN is usable on OSX.  You can checkout, commit, update view the repo, etc.  At this point there are no overlays or Finder contextual menus.  These instructions are not for the novice user, but [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-259" src="http://verysimple.com/wp-content/uploads/2009/01/tortoise_on_osx.jpg" alt="tortoise_on_osx" width="459" height="487" /></p>
<p>TortoiseSVN is my personal favorite SVN client, unfortunately it&#8217;s only fully supported on Windows.  With a little bit of hacking, though, TortoiseSVN is usable on OSX.  You can checkout, commit, update view the repo, etc.  At this point there are no overlays or Finder contextual menus.  These instructions are not for the novice user, but chances are if you&#8217;re using SVN it shouldn&#8217;t be a problem.</p>
<p><span id="more-255"></span></p>
<p><strong>Requirements:</strong></p>
<p>1. <a href="http://www.codeweavers.com/products/cxmac/" target="_blank">Crossover</a> or <a href="http://www.winehq.org/" target="_blank">Wine</a> for OSX</p>
<p>2. Subversion server using the svn: protocol (http: doesn&#8217;t work yet)</p>
<p><strong>Step 1: Install Crossover/Wine</strong></p>
<p>The first thing you need is either <a href="http://www.codeweavers.com/products/cxmac/" target="_blank">Crossover</a> or <a href="http://www.winehq.org/" target="_blank">Wine</a>.  Crossover is the commercial version of Wine that is already customized for OSX.  With Wine you&#8217;ll probably have to learn some terminal commands.  The choice is up to you but for these instructions are for Crossover.  Wine should work the same but I don&#8217;t know what the interface is like so you&#8217;re on your own.  Please post a comment if you have any tips. After you&#8217;ve installed Crossover, download the .msi installer for TortoiseSVN.  My testing has been done with version 1.5.5.  If you have success with a more recent version, please post a comment.</p>
<p><strong>Step 2: Create a Bottle and install TortoiseSVN</strong></p>
<p><em>NOTE: For these instructions, use the default bottle name of &#8220;winxp&#8221;  If you use another name for your bottle, you&#8217;ll need to adjust the commands appropriately below.</em></p>
<p>Installing an app in Crossover is pretty easy using the installation Wizard.  Open Crossover and go to the menu item Configure -&gt; Install Software.  Click on the button that says &#8220;Install Unsupported Software.&#8221;  Ignore the warning and click &#8220;Continue&#8221; to proceed.  If you are prompted, select the option to install to a &#8220;New bottle&#8221; and continue. Once you have a bottle created, Crossover will want to know where the installation file is.  Click the install button and select the TortoiseSVN .msi file that you downloaded.  This will run you throught the typical Windows installer.</p>
<p><strong>Step 3: Using TortoiseSVN</strong></p>
<p>Now that you have Crossover installed, created a bottle and have installed TortoiseSVN the big question is &#8220;how do I use it?&#8221;  The problem is that you normally use TortoiseSVN by right-clicking folders in Windows Explorer.  There is no explorer and there are no Finder contextual menus that have been added.</p>
<p>The solution is to set up some Crossover commands and then save them.  Basically TortoiseSVN supports various windows command-line arguments.  Crossover allows you to save a command and make it appear as a regular OSX application shortcut.  So you just need to initially execute the command, then save a shortcut so you don&#8217;t have to re-type it all the time.</p>
<p><strong>Checkout an existing Repository:</strong></p>
<p>1. Create a folder on your Desktop called &#8220;jasonrules&#8221;  (This will be the test folder used for the rest of the instructions.)</p>
<p>2. Enter the checkout command. To run a windows command, open Crossover and go to the menu item &#8220;Programs -&gt; Run Command&#8230;&#8221;  There is a field for the windows command you would like to execute. The command to checkout is below.  replace <span style="color: #008000">USERNAME</span> with your home folder name and <span style="color: #008000">MY.SVN.SERVER/REPOPATH </span>with your full svn repo path.  You must keep all double-quotes in the command as they are typed below:</p>
<p><em>&#8220;/Users/<span style="color: #008000">USERNAME</span>/Library/Application Support/CrossOver/Bottles/winxp/drive_c/Program Files/TortoiseSVN/bin/TortoiseProc.exe&#8221; /command:checkout /path:&#8221;/Users/<span style="color: #008000">USERNAME</span>/Desktop/jasonrules&#8221; /url:&#8221;svn://<span style="color: #008000">MY.SVN.SERVER/REPOPATH</span>&#8220;</em></p>
<p>3.  Click the &#8220;Run&#8221; button.  You should see the familiar TortoiseSVN dialog appear confirming your action and, if your server requires authentication, you&#8217;ll be prompted for your username and password. If successful, you should see the files pulling into your working folder at this point.   You don&#8217;t need to save this command because you generally only run it once.</p>
<p>You now have a working copy of your project.  Yay!</p>
<p>NOTE &#8211; BEFORE YOU SAVE ANY COMMANDS, GO TO BOTTLE MANAGEMENT AND DUPLICATE YOUR BOTTLE!  There seems to be an issue with Crossover where it doesn&#8217;t work when saving multiple commands with the same executable but different arguments.  Most TortoiseSVN commands use the same executable so this creates a problem.  For the moment my workaround is to create a separate bottle for each command.  Hopefully that will be resolved by Crossover.</p>
<p><strong>Updating your working copy:</strong></p>
<p>Once you have a working copy, the next logical thing is to update the project.  Of course if you just checked it out, it should be pretty much up-to-date, however you will use the update command all the time so you want to save it. Follow the same steps that you did for running the checkout command, only using the command below instead.  (Be sure to replace <span style="color: #008000">PROJECTNAME</span><span style="color: #008000"> </span>with the name of the folder that is now inside jasonrules.)</p>
<p><em>&#8220;/Users/<span style="color: #008000">USERNAME</span>/Library/Application Support/CrossOver/Bottles/winxp/drive_c/Program Files/TortoiseSVN/bin/TortoiseProc.exe&#8221; /command:update /path:&#8221;/Users/<span style="color: #008000">USERNAME</span>/Desktop/jasonrules/<span style="color: #008000">PROJECTNAME</span>&#8220;</em></p>
<p>Click the &#8220;Run&#8221;button again and you should see the familiar TortoiseSVN dialog.  If all goes well, you will be able to successfully update the working directory.</p>
<p>Since you will want to run update regularly as you work, you should save a shortcut for this command.  To do this, click the &#8220;Save Command to Programs Menu&#8221; button.  This will create a shortcut icon which you can rename, drag it to your Dock or whatever you&#8217;d like to do.  Everytime you double-click this shortcut, the update command that you saved will be executed.</p>
<p><strong>Committing Changes:</strong></p>
<p>The last command I&#8217;m going to describe is the Commit command.  Basically updating and committing are the most common operations, so you should be able to do your basic work at this point.  The commit command is run the same as update:</p>
<p><em>&#8220;/Users/<span style="color: #008000">USERNAME</span>/Library/Application Support/CrossOver/Bottles/winxp/drive_c/Program Files/TortoiseSVN/bin/TortoiseProc.exe&#8221; /command:commit /path:&#8221;/Users/<span style="color: #008000">USERNAME</span>/Desktop/jasonrules/<span style="color: #008000">PROJECTNAME</span>&#8220;</em></p>
<p>You should again see the familiar dialog and be able to commit just as if you were working in Windows.  Again, save this command.</p>
<p><strong>Additional Information:</strong></p>
<p>With the three commands I showed you above you should be able to do basic development work using TortoiseSVN in OSX. You will most likely want to repeat the process using your actual working directories and not the jasonrules folder on your Desktop.  One thing to note is that if you work on multiple projects, you&#8217;ll have to create separate shortcuts for all of them because the working directory path is hard-coded into the commands.</p>
<p>Obviously there are a lot more commands, branching, merging, patching, etc.  The basic concept behind running these is the same.  You just need to know the correct syntax in order to run them.  The inline TortoiseSVN help lists all of the commands.</p>
<p>I would be interested in hearing from anyone who comes up with more commands, or knows AppleScript and would be able to write contextual Finder menus.  I don&#8217;t think it would be too difficult.  The <a href="http://scplugin.tigris.org/" target="_blank">SCPlugin</a> source code might provide some clues.</p>
<p>Please feel free to leave a comment if you used this tutorial and found it helpful (or not).</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2009/01/06/tortoisesvn-for-apple-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

