<?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>unexpected[it] &#187; Mac OS X</title>
	<atom:link href="http://www.unexpectedit.com/category/mac-os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unexpectedit.com</link>
	<description>Professional IT Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:55:19 +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>Installing Zend + PHPUnit on Mac OS x with MAMP</title>
		<link>http://www.unexpectedit.com/mac-os-x/installing-zend-phpunit-on-mac-os-x-with-mamp</link>
		<comments>http://www.unexpectedit.com/mac-os-x/installing-zend-phpunit-on-mac-os-x-with-mamp#comments</comments>
		<pubDate>Sat, 16 Apr 2011 01:46:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=552</guid>
		<description><![CDATA[1) Replacing MAC OS X php and pear for MAMP 2) Install Zend Framework 3) Create a link to the zf.sh tool Error: Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created. Solution: Make sure you&#8217;ve installed PHPUnit from https://github.com/sebastianbergmann/phpunit/ instead of http://phpunit.sourceforge.net/ &#160; Error: phpunit/PHPUnit requires PEAR [...]]]></description>
			<content:encoded><![CDATA[<div class="leftColumn">
<p>
<strong>1) Replacing MAC OS X php and pear for MAMP</strong></p>
<pre class="brush: bash; title: ; notranslate">
cd /Applications/MAMP/bin/php5.3/bin
sudo chmod 0554 *

cd /usr/bin
sudo mv php php.bak
sudo ln -s /Applications/MAMP/bin/php5.3/bin/php php
sudo mv pear pear.bak
sudo ln -s /Applications/MAMP/bin/php5.3/bin/pear pear
cd /etc
sudo ln -s /Applications/MAMP/conf/php5.3/php.ini /etc/php.ini

vi .bash_login
PATH=$PATH:/Applications/MAMP/Library/bin/:/Applications/MAMP/bin/php5.3/bin

logout

** Before MAMP 2.x **
cd /Applications/MAMP/bin/php5.3/bin
pear config-set
Note: If you get &quot;error: Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050&quot; then just delete /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf before proceeding. You are on MAMP 2.x!

pear config-set doc_dir /Applications/MAMP/bin/php5.3/lib/php/doc
pear config-set ext_dir /Applications/MAMP/bin/php5.3/lib/php/extensions
pear config-set php_dir /Applications/MAMP/bin/php5.3/lib/php/PEAR
pear config-set php_bin /Applications/MAMP/bin/php5.3/bin/php
pear config-set php_ini /Applications/MAMP/conf/php5.3/php.ini/
pear config-set sig_keydir /Applications/MAMP/conf/php5.3/pearkeys
** end Before MAMP 2.x **

** MAMP 2.x **
cd /Applications/MAMP/bin/php/php5.3.6/bin
pear config-set doc_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/doc
pear config-set ext_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions
pear config-set php_dir /Applications/MAMP/bin/php/php5.3.6/
pear config-set php_bin /Applications/MAMP/bin/php/php5.3.6/bin/php
pear config-set php_ini /Applications/MAMP/bin/php/php5.3.6/conf/php.ini
** end MAMP 2.x **

pear channel-update pear.php.net

pear upgrade pear

pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit

** Before MAMP 2.x **
vi /Applications/MAMP/conf/php5.3/php.ini
include_path = &quot;.:/Applications/MAMP/bin/php5.3/lib/php:/Applications/MAMP/bin/php5.3/lib/php/PEAR&quot;
** end Before MAMP 2.x **

** MAMP 2.x **
vi /Applications/MAMP/bin/php/php5.3.6/conf/php.ini
include_path = &quot;.:/Applications/MAMP/bin/php/php5.3.6/lib/php:/Applications/MAMP/bin/php/php5.3.6/&quot;
** end MAMP 2.x **
</pre>
<p><br/></p>
<p><strong>2) Install Zend Framework</strong></p>
<pre class="brush: bash; title: ; notranslate">
# Download Zend Framework to your Downloads folder
cd
mv Downloads/ZendFramework-1.11.5 /Applications/MAMP/bin/php5.3/lib/php/
cd /Applications/MAMP/bin/php5.3/lib/php/
ln -s ZendFramework-1.11.5 Zend
</pre>
<p><br/><br />
<strong>3) Create a link to the zf.sh tool</strong></p>
<pre class="brush: bash; title: ; notranslate">
vi ~/.bash_login
alias zf=/Applications/MAMP/bin/php5.3/lib/php/Zend/bin/zf.sh
</pre>
<div class="error">
<div>Error: Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.<br />
Solution: Make sure you&#8217;ve installed PHPUnit from https://github.com/sebastianbergmann/phpunit/ instead of http://phpunit.sourceforge.net/
</div>
</div>
<div class="clr">&nbsp;</div>
<div class="error">
<div>Error: phpunit/PHPUnit requires PEAR Installer (version >= x.x.x), installed version is x.x.x<br />
Solution: try with an older PHPUnit version: pear install phpunit/PHPUnit-3.3.17
</div>
</div>
</div>
<div class="rightColumnSpec">
<ul>
<li>MAC OS X 10.6.6</li>
<li>MAMP 1.9.2</li>
<li>Zend Framework 1.11.5</li>
<li>PHPUnit 3.3.17</li>
</ul>
</div>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/mac-os-x/installing-zend-phpunit-on-mac-os-x-with-mamp/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mac OS X Handbook</title>
		<link>http://www.unexpectedit.com/mac-os-x/mac-os-x-handbook</link>
		<comments>http://www.unexpectedit.com/mac-os-x/mac-os-x-handbook#comments</comments>
		<pubDate>Mon, 14 Jun 2010 21:12:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=139</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: cpp; title: ; notranslate">
//Screen Capture
//...to desktop
SHIFT+CMD+4
//...to clipboard
SHIFT+CMD+CTRL+4

//sharp, dash key #######
In Mac on British Keyboards I found it as ALT+3
//pound, pound key £££££££
In Mac on British Keyboards I found it as SHIFT+3
//euro, euro key €€€€€€€€
In Mac on British Keyboards I found it as ALT+2
//unix home, key ~~~~~~~~ Windows: Documents~1
In Mac on British Keyboards I found it as ALT+n

//Show hidden files in finder
defaults write com.apple.Finder AppleShowAllFiles YES

//Burn ISO CDs or DVDs
1) Create image with Disk Utility, uncompressed and CD/DVD master option
2) hdiutil makehybrid -iso -joliet -o Master.iso Master.dmg
3) Burn the ISO image with Disk Utility

//determine the device that is you CD/DVD drive
drutil status

//Install Mac Port from &lt;a href=&quot;http://www.macports.org/&quot; target=&quot;_blank&quot;&gt;www.macports.org&lt;/a&gt;
port search wget
sudo port install unison
</pre>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/mac-os-x/mac-os-x-handbook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

