<?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>hibbins.com &#187; PHP</title>
	<atom:link href="http://www.hibbins.com/category/softwaredevelopment/code/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hibbins.com</link>
	<description>Software Development: C#, SQL Server, .NET, Analysis Services, Reporting Services, Intergration Services, OLAP, PHP, HTML, XML, CSS, Java, Javascript and anything else technical, complex and hibbins.com</description>
	<lastBuildDate>Wed, 04 Jan 2012 11:42:46 +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 all PHP Processes on Unix</title>
		<link>http://www.hibbins.com/2012/01/04/kill-all-php-processes-on-unix/</link>
		<comments>http://www.hibbins.com/2012/01/04/kill-all-php-processes-on-unix/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 08:02:34 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=341</guid>
		<description><![CDATA[Kill all PHP Processes on Unix]]></description>
			<content:encoded><![CDATA[<p>You can kill all the PHP processes in Unix with the following command :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">killall php</pre></div></div>

<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2012%2F01%2F04%2Fkill-all-php-processes-on-unix%2F';
  addthis_title  = 'Kill+all+PHP+Processes+on+Unix';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2012/01/04/kill-all-php-processes-on-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Mobile SDK Web Browser Testing on OSX</title>
		<link>http://www.hibbins.com/2010/10/03/android-mobile-sdk-web-browser-testing-on-osx/</link>
		<comments>http://www.hibbins.com/2010/10/03/android-mobile-sdk-web-browser-testing-on-osx/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 11:45:11 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Platform]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Web Browser]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=256</guid>
		<description><![CDATA[Android Mobile SDK Web Browser Testing on OSX]]></description>
			<content:encoded><![CDATA[<p>Because it&#8217;s painful, here&#8217;s how I did it on OSX :</p>
<p>1) <a href="http://developer.android.com/sdk/index.html" target="_blank">Download Android SDK</a></p>
<p>2) Install it</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Android<span style="color: #000000; font-weight: bold;">/</span>android-sdk-mac_86
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>Android<span style="color: #000000; font-weight: bold;">/</span>android-sdk-mac_86<span style="color: #000000; font-weight: bold;">/</span>tools</pre></div></div>

<p>3) Setup the Emulator</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>android</pre></div></div>

<ul>
<li>A Java app opens
<li>Click SDK Platform Android 2.1 and download Archive for MacOS X
<li>Click Virtual Devices and New
<li>Give a name (AndroidTest), set the target to the SDK you downloaded
<li>Set Size to 512
<li>Create the AVD (Android Virtual Device)
</ul>
<p>4) Run the Emulator</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>emulator <span style="color: #660033;">-avd</span> AndroidTest <span style="color: #660033;">-partition-size</span> <span style="color: #000000;">128</span></pre></div></div>

<p>5) Setup the Hosts file</p>
<p>Set the device to read-write</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>adb remount
.<span style="color: #000000; font-weight: bold;">/</span>adb pull <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>Edit the hosts with the following</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> hosts
10.0.2.2 localhost
.<span style="color: #000000; font-weight: bold;">/</span>adb remount
.<span style="color: #000000; font-weight: bold;">/</span>adb push hosts <span style="color: #000000; font-weight: bold;">/</span>system<span style="color: #000000; font-weight: bold;">/</span>etc</pre></div></div>

<p>Congratulations you should now be able to browse the hosts</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2010%2F10%2F03%2Fandroid-mobile-sdk-web-browser-testing-on-osx%2F';
  addthis_title  = 'Android+Mobile+SDK+Web+Browser+Testing+on+OSX';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2010/10/03/android-mobile-sdk-web-browser-testing-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Server CE on OSX 10.6 Snow Leopard</title>
		<link>http://www.hibbins.com/2009/10/18/zend-server-ce-on-osx-10-6-snow-leopard/</link>
		<comments>http://www.hibbins.com/2009/10/18/zend-server-ce-on-osx-10-6-snow-leopard/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 11:36:08 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[CE]]></category>
		<category><![CDATA[Comunity Edition]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Watchdog]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=225</guid>
		<description><![CDATA[When I installed Zend Server CE on OSX 10.6 Snow Leopard the admin interface failed, the following fixed the issue : 1. Download this: Watchdog update 2. Backup watchdog with the command sudo mv /usr/local/zend/bin/watchdog /usr/local/zend/bin/watchdogOLD 3. Extract the new watchdog to /usr/local/zend/bin/ (I used the go to folder in finder, if you can view [...]]]></description>
			<content:encoded><![CDATA[<p>When I installed Zend Server CE on OSX 10.6 Snow Leopard the admin interface failed, the following fixed the issue :</p>
<p>1. Download this: <a title=" downloaded 93 times" href="http://www.cobbweb.me/downloads/files/watchdog.tar.gz">Watchdog update</a></p>
<p>2. Backup watchdog with the command</p>
<pre style="font-family: monospace;"><span style="color: #ff00ff;"><span style="font-weight: bold;">sudo</span> <span style="font-weight: bold;">mv</span></span> <span style="color: #336633; font-weight: bold;">/</span>usr<span style="color: #336633; font-weight: bold;">/</span>local<span style="color: #336633; font-weight: bold;">/</span>zend<span style="color: #336633; font-weight: bold;">/</span>bin<span style="color: #336633; font-weight: bold;">/</span>watchdog <span style="color: #336633; font-weight: bold;">/</span>usr<span style="color: #336633; font-weight: bold;">/</span>local<span style="color: #336633; font-weight: bold;">/</span>zend<span style="color: #336633; font-weight: bold;">/</span>bin<span style="color: #336633; font-weight: bold;">/</span>watchdogOLD</pre>
<p>3. Extract the new watchdog to /usr/local/zend/bin/ (I used the go to folder in finder, if you can view hidden files)</p>
<p>4. Run the following command to restart the Zend server</p>
<pre style="font-family: monospace;"><span style="color: #ff00ff;"><strong>sudo</strong> </span>/usr/local/zend/bin/zendctl.sh restart</pre>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2009%2F10%2F18%2Fzend-server-ce-on-osx-10-6-snow-leopard%2F';
  addthis_title  = 'Zend+Server+CE+on+OSX+10.6+Snow+Leopard';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2009/10/18/zend-server-ce-on-osx-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4 Coding tips</title>
		<link>http://www.hibbins.com/2009/08/26/4-coding-tips/</link>
		<comments>http://www.hibbins.com/2009/08/26/4-coding-tips/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:49:00 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Duplicates]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=223</guid>
		<description><![CDATA[4 Coding tips]]></description>
			<content:encoded><![CDATA[<p><strong>1: Delete It !</strong><br />
If a chunk of code comment or class is not used, don&#8217;t comment it out, just delete it.</p>
<p><strong>2: Write clear code.<br />
</strong> &#8220;make sure you document code that&#8217;s hard to understand&#8221;. Question: why is the code hard to understand?</p>
<p><strong>3: Comment </strong><br />
Comments can indeed be useful but mostly as a summary of action</p>
<p><strong>4: Don&#8217;t Repeat Yourself </strong><br />
Duplication is bad. If you have more than 4-5 lines of code that do the same thing in a single class, refactor to remove duplication.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2009%2F08%2F26%2F4-coding-tips%2F';
  addthis_title  = '4+Coding+tips';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2009/08/26/4-coding-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autostart Zend Core on Ubuntu</title>
		<link>http://www.hibbins.com/2008/09/18/autostart-zend-core-on-ubuntu/</link>
		<comments>http://www.hibbins.com/2008/09/18/autostart-zend-core-on-ubuntu/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 07:13:21 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Platform]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[Restart]]></category>
		<category><![CDATA[Startup]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=164</guid>
		<description><![CDATA[This is the 2nd time I have had to search for starting up Zend Core automatically on Ubuntu Workstation, so here is the answer: First change the permissions of /etc/rc.local by opening a terminal window (Applications&#124;Accessories&#124;Terminal) and enter the following command: sudo chmod 777 /etc/rc.local Then open this file with the text editor (Applications&#124;Accessories&#124;Text Editor) [...]]]></description>
			<content:encoded><![CDATA[<p>This is the 2nd time I have had to search for starting up Zend Core automatically on Ubuntu Workstation, so here is the answer:</p>
<p>First change the permissions <span class="MsgBodyText">of /etc/rc.local by opening a terminal window (Applications|Accessories|Terminal) and enter the following command:</span></p>
<blockquote><p><span class="MsgBodyText">sudo chmod 777 /etc/rc.local</span></p></blockquote>
<p><span class="MsgBodyText">Then open this file with the text editor </span><span class="MsgBodyText">(Applications|Accessories|Text Editor) and</span><span class="MsgBodyText"> put the following text before the exit 0 command<br />
</span></p>
<blockquote><p><span class="MsgBodyText">cd /usr/local/Zend/Core/mysql &amp;&amp; ./bin/safe_mysqld &amp;<br />
/usr/local/Zend/apache2/bin/apachectl start &amp;</span></p></blockquote>
<p>Zend Core, PHP and MySQL should now all start automaticaly at boot time.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2008%2F09%2F18%2Fautostart-zend-core-on-ubuntu%2F';
  addthis_title  = 'Autostart+Zend+Core+on+Ubuntu';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2008/09/18/autostart-zend-core-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

