<?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>Randomness from RES</title>
	<atom:link href="http://www.robertswarthout.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robertswarthout.com</link>
	<description>Things that I run across that might be useful to others...</description>
	<lastBuildDate>Tue, 23 Sep 2008 19:24:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apple iPhone Developer Program Support?!?!</title>
		<link>http://www.robertswarthout.com/2008/09/apple-iphone-developer-program-support/</link>
		<comments>http://www.robertswarthout.com/2008/09/apple-iphone-developer-program-support/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 18:20:53 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=104</guid>
		<description><![CDATA[Update: I just received an email from support, the reports will show up in my account tomorrow at 6:00 AM. [9/23/2008 3:21 PM ET]
I typically will not write about anything non-technical but I will make an exception this time. Why-oh-why is it like pulling teeth when dealing with the iPhone App Developer Program support. I [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> I just received an email from support, the reports will show up in my account tomorrow at 6:00 AM. [9/23/2008 3:21 PM ET]</p>
<p>I typically will not write about anything non-technical but I will make an exception this time. Why-oh-why is it like pulling teeth when dealing with the iPhone App Developer Program support. I get the feeling that when I call and wait my turn in the phone queue, all I am getting to talk to is a receptionist who is going to &#8220;escalate the matter&#8221;. When asked how long it will take to get a response back, I am told that it will take a week to a week and a half. This is a VERY simple matter. All I want to know is how many downloads <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=290493281&amp;mt=8">my app</a> has had. Shouldn&#8217;t this automatically, programmatically for that matter, be turned on in the iTunesConnect portal by default when an app goes live? If that was the case, I could be writing a blog post about how awesome the developer program is, but no, I am stuck here writing in frustration.</p>
<p>Having dealt with Apple support for a Macbook Pro a couple of times, the iPhone Developer support seems like a bunch of amateurs who have no idea what&#8217;s going on. As an <a href="http://finance.google.com/finance?q=NASDAQ:AAPL">AAPL</a> share holder, I am glad that the general public does not have to deal with the iPhone Developer support, as it would turn people away in droves.</p>
<p>If anyone with power to help in this situation is reading this post please feel free to contact me at rswarthout [at] gmail [dot] com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/09/apple-iphone-developer-program-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monkey Slap is now available in the App Store</title>
		<link>http://www.robertswarthout.com/2008/09/monkey-slap-is-now-available-in-the-app-store/</link>
		<comments>http://www.robertswarthout.com/2008/09/monkey-slap-is-now-available-in-the-app-store/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 13:01:09 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Monkey Slap]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=88</guid>
		<description><![CDATA[For those of you with an iPhone and looking for a new game to play you might consider checking out Monkey Slap. This is my first stab at making an iPhone application. It has been a very fun and interesting process. You will have to let me know what you think.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=290493281&amp;mt=8"><img class="alignright size-full wp-image-87" title="avail_on_app_store" src="http://www.robertswarthout.com/wp-content/uploads/2008/09/avail_on_app_store.png" align="right" alt="" width="166" height="74" /></a>For those of you with an iPhone and looking for a new game to play you might consider checking out <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=290493281&amp;mt=8">Monkey Slap</a>. This is my first stab at making an iPhone application. It has been a very fun and interesting process. You will have to let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/09/monkey-slap-is-now-available-in-the-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submitted my first application to Apple</title>
		<link>http://www.robertswarthout.com/2008/09/submitted-my-first-application-to-apple/</link>
		<comments>http://www.robertswarthout.com/2008/09/submitted-my-first-application-to-apple/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 13:27:41 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=81</guid>
		<description><![CDATA[After more than a month of development and learning how to code in Objective-C and Cocoa I finished up my first app. My first app is titled &#8220;Monkey Slap&#8221; and I hope it will be available very soon in the App Store. Below I have copied in the description of the game. This application will [...]]]></description>
			<content:encoded><![CDATA[<p>After more than a month of development and learning how to code in Objective-C and Cocoa I finished up my first app. My first app is titled &#8220;Monkey Slap&#8221; and I hope it will be available very soon in the App Store. Below I have copied in the description of the game. This application will be sold for $1.99.</p>
<blockquote>
<div class="entrytext">
<p>You’re deep in the jungle when suddenly a silly little monkey starts laughing at you. Better show him who’s boss and slap that monkey! Similar to the classic arcade game “Whack A Mole” this game is both funny and easy to play. Exciting features test your speed and coordination and you try to slap every monkey you see. Extra points if you catch him while he is stealing bananas. Guaranteed to be more fun than a… barrel full of monkeys.</p>
<p>Features:</p>
<ul>
<li>Multi-touch game play</li>
<li>Endless Levels</li>
<li>3 independent difficulty settings</li>
<li>Sound Control</li>
<li>Top Score Board</li>
</ul>
</div>
</blockquote>
<p>Here are a few screen shots of what this will look like:</p>
<p><a href="http://www.robertswarthout.com/wp-content/uploads/2008/09/intro_view_10.jpg"><img class="alignnone size-medium wp-image-78" title="intro_view_10" src="http://www.robertswarthout.com/wp-content/uploads/2008/09/intro_view_10-200x300.jpg" alt="" width="98" height="147" /></a> <a href="http://www.robertswarthout.com/wp-content/uploads/2008/09/game_view_10.jpg"><img class="alignnone size-medium wp-image-77" title="game_view_10" src="http://www.robertswarthout.com/wp-content/uploads/2008/09/game_view_10-200x300.jpg" alt="" width="98" height="147" /></a> <a href="http://www.robertswarthout.com/wp-content/uploads/2008/09/settings_view_10.jpg"><img class="alignnone size-medium wp-image-79" title="settings_view_10" src="http://www.robertswarthout.com/wp-content/uploads/2008/09/settings_view_10-200x300.jpg" alt="" width="98" height="147" /></a></p>
<p>Be sure to let me know what you think about this game.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/09/submitted-my-first-application-to-apple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My php&#124;works talk got accepted</title>
		<link>http://www.robertswarthout.com/2008/08/my-phpworks-talk-got-accepted/</link>
		<comments>http://www.robertswarthout.com/2008/08/my-phpworks-talk-got-accepted/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 12:55:13 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Sphinx Search]]></category>
		<category><![CDATA[php|works]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=73</guid>
		<description><![CDATA[I got the email this morning, my php&#124;works talk got accepted! My talk will take place on day #2, 11/14/2008 at 1:45 PM and is titled &#8220;Sphinx: Search for Everyone Else&#8221;. Hope to see you there.
]]></description>
			<content:encoded><![CDATA[<p>I got the email this morning, my <a href="http://phpworks.mtacon.com/">php|works</a> talk got accepted! My talk will take place on day #2, 11/14/2008 at 1:45 PM and is titled <a class="talk" href="http://phpworks.mtacon.com/c/schedule/talk/d2s5/2">&#8220;Sphinx: Search for Everyone Else&#8221;</a>. Hope to see you there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/08/my-phpworks-talk-got-accepted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Continued: MySQL connection benchmarking</title>
		<link>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/</link>
		<comments>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 19:08:58 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Benchmarking]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=62</guid>
		<description><![CDATA[I was asked by a fellow Schematicer to see if there was a performance difference if the fourth parameter of mysql_connect was set to true if it would make any difference. I would assume that it would not make any difference but I went ahead and ran the variation to be sure, the results are [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked by a fellow <a href="http://www.schematic.com">Schematic</a>er to see if there was a performance difference if the fourth parameter of <a href="http://www.php.net/mysql_connect">mysql_connect</a> was set to true if it would make any difference. I would assume that it would not make any difference but I went ahead and ran the variation to be sure, the results are below.</p>
<p>Run #1:</p>
<blockquote><p>11409 fetches, 20 max parallel, 45636 bytes, in 600.011 seconds<br />
4 mean bytes/connection<br />
19.0146 fetches/sec, 76.0586 bytes/sec<br />
msecs/connect: 0.211857 mean, 39.668 max, 0.029 min<br />
msecs/first-response: 1050.65 mean, 2662.53 max, 323.514 min<br />
HTTP response codes: code 200 &#8212; 11409</p></blockquote>
<p>Run #2:</p>
<blockquote><p>11141 fetches, 20 max parallel, 44564 bytes, in 600.005 seconds<br />
4 mean bytes/connection<br />
18.5682 fetches/sec, 74.2727 bytes/sec<br />
msecs/connect: 0.206869 mean, 30.293 max, 0 min<br />
msecs/first-response: 1076.17 mean, 2317.13 max, 350.16 min<br />
HTTP response codes: code 200 &#8212; 11141</p></blockquote>
<p>Run #3:</p>
<blockquote><p>11183 fetches, 20 max parallel, 44732 bytes, in 600 seconds<br />
4 mean bytes/connection<br />
18.6383 fetches/sec, 74.5533 bytes/sec<br />
msecs/connect: 0.201182 mean, 24.691 max, 0.03 min<br />
msecs/first-response: 1071.81 mean, 2448.18 max, 366.686 min<br />
HTTP response codes: code 200 &#8212; 11183</p></blockquote>
<p><strong>Results Analysis</strong></p>
<ul>
<li>Average requests per second: 18.7043</li>
<li>Average requests completed: 11,244</li>
</ul>
<p>These results can be compared to the <a href="/2008/08/benchmarking-of-mysql-persistent-connections-vs-non-persistent-connections/">previous post on this topic</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/08/continued-mysql-connection-benchmarking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Benchmarking of MySQL Persistent Connections vs Non-Persistent Connections</title>
		<link>http://www.robertswarthout.com/2008/08/benchmarking-of-mysql-persistent-connections-vs-non-persistent-connections/</link>
		<comments>http://www.robertswarthout.com/2008/08/benchmarking-of-mysql-persistent-connections-vs-non-persistent-connections/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 14:37:37 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Benchmarking]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/?p=28</guid>
		<description><![CDATA[This post will be about the what always seems to be a hot topic among PHPers about what connection type to use when connection to a MySQL database.
I used MySQL 5.0.45, PHP 5.2.4 for this benchmarking. You can download the same sample MySQL database that is used for this set of benchmarking by visiting http://dev.mysql.com/doc/#sampledb. [...]]]></description>
			<content:encoded><![CDATA[<p>This post will be about the what always seems to be a hot topic among PHPers about what connection type to use when connection to a MySQL database.</p>
<p>I used MySQL 5.0.45, PHP 5.2.4 for this benchmarking. You can download the same sample MySQL database that is used for this set of benchmarking by visiting <a href="http://dev.mysql.com/doc/#sampledb">http://dev.mysql.com/doc/#sampledb</a>. In the list of example databases, choose the one named &#8217;sakila&#8217;.</p>
<p>For each connection type I will run three tests to see compensate for variations in tests. I will be using <a href="http://www.acme.com/software/http_load/">http_load</a> to do the benchmarking of the connection file. To view each of the connection files, download the file bundle at the end of this post.</p>
<p>Below is the benchmark command with the options used for each run.</p>
<blockquote><p>./http_load -verbose -parallel 20 -seconds 600 urls.txt</p></blockquote>
<p>The urls.txt file contains the following:</p>
<blockquote><p>http://127.0.0.1/mysql_connection_bench_{CONNECT_TYPE}.php</p></blockquote>
<p>Between each benchmark run I will restart both Apache and MySQL.</p>
<p><strong>Results for the standard MySQL functions in PHP using mysql_connect.</strong></p>
<p>Run #1:</p>
<blockquote><p>11024 fetches, 20 max parallel, 44096 bytes, in 600.007 seconds<br />
4 mean bytes/connection<br />
18.3731 fetches/sec, 73.4925 bytes/sec<br />
msecs/connect: 0.22087 mean, 48.992 max, 0.03 min<br />
msecs/first-response: 1087.74 mean, 2880.95 max, 355.012 min<br />
HTTP response codes: code 200 &#8212; 11024</p></blockquote>
<p>Run #2:</p>
<blockquote><p>10895 fetches, 20 max parallel, 43580 bytes, in 600.004 seconds<br />
4 mean bytes/connection<br />
18.1582 fetches/sec, 72.6328 bytes/sec<br />
msecs/connect: 0.219867 mean, 48.58 max, 0.031 min<br />
msecs/first-response: 1100.1 mean, 2623.47 max, 369.341 min<br />
HTTP response codes: code 200 &#8212; 10895</p></blockquote>
<p>Run #3:</p>
<blockquote><p>11134 fetches, 20 max parallel, 44536 bytes, in 600.003 seconds<br />
4 mean bytes/connection<br />
18.5566 fetches/sec, 74.2264 bytes/sec<br />
msecs/connect: 0.217796 mean, 42.036 max, 0.03 min<br />
msecs/first-response: 1076.59 mean, 3079.73 max, 270.734 min<br />
HTTP response codes: code 200 &#8212; 11134</p></blockquote>
<p><strong>Results for the standard MySQL functions in PHP using mysql_pconnect.</strong></p>
<p>Run #1:</p>
<blockquote><p>10982 fetches, 20 max parallel, 43928 bytes, in 600.025 seconds<br />
4 mean bytes/connection<br />
18.3026 fetches/sec, 73.2103 bytes/sec<br />
msecs/connect: 0.216663 mean, 69.795 max, 0 min<br />
msecs/first-response: 1091.52 mean, 3166.82 max, 254.36 min<br />
HTTP response codes: code 200 &#8212; 10982</p></blockquote>
<p>Run #2:</p>
<blockquote><p>11002 fetches, 20 max parallel, 44008 bytes, in 600.001 seconds<br />
4 mean bytes/connection<br />
18.3366 fetches/sec, 73.3465 bytes/sec<br />
msecs/connect: 0.20555 mean, 47.176 max, 0.031 min<br />
msecs/first-response: 1089.51 mean, 2953.82 max, 414.826 min<br />
HTTP response codes: code 200 &#8212; 11002</p></blockquote>
<p>Run #3:</p>
<blockquote><p>11196 fetches, 20 max parallel, 44784 bytes, in 600 seconds<br />
4 mean bytes/connection<br />
18.66 fetches/sec, 74.6399 bytes/sec<br />
msecs/connect: 0.2013 mean, 22.478 max, 0.03 min<br />
msecs/first-response: 1070.5 mean, 2506.02 max, 448.161 min<br />
HTTP response codes: code 200 &#8212; 11196</p></blockquote>
<p><strong>Results for non-persistent connections with PDO_MYSQL.</strong></p>
<p>Run #1:</p>
<blockquote><p>10995 fetches, 20 max parallel, 43980 bytes, in 600.008 seconds<br />
4 mean bytes/connection<br />
18.3248 fetches/sec, 73.299 bytes/sec<br />
msecs/connect: 0.203731 mean, 17.309 max, 0.029 min<br />
msecs/first-response: 1090.44 mean, 2852.34 max, 358.45 min<br />
HTTP response codes: code 200 &#8212; 10995</p></blockquote>
<p>Run #2:</p>
<blockquote><p>10971 fetches, 20 max parallel, 43884 bytes, in 600.002 seconds<br />
4 mean bytes/connection<br />
18.285 fetches/sec, 73.1398 bytes/sec<br />
msecs/connect: 0.21357 mean, 32.036 max, 0 min<br />
msecs/first-response: 1092.36 mean, 3515.71 max, 456.688 min<br />
HTTP response codes: code 200 &#8212; 10971</p></blockquote>
<p>Run #3:</p>
<blockquote><p>11161 fetches, 20 max parallel, 44644 bytes, in 600.001 seconds<br />
4 mean bytes/connection<br />
18.6016 fetches/sec, 74.4065 bytes/sec<br />
msecs/connect: 0.20571 mean, 31.679 max, 0.031 min<br />
msecs/first-response: 1073.96 mean, 2539.06 max, 351.236 min<br />
HTTP response codes: code 200 &#8212; 11161</p></blockquote>
<p><strong>Results for persistent connections with PDO_MYSQL.</strong></p>
<p>Run #1:</p>
<blockquote><p>10347 fetches, 20 max parallel, 41388 bytes, in 600.006 seconds<br />
4 mean bytes/connection<br />
17.2448 fetches/sec, 68.9793 bytes/sec<br />
msecs/connect: 0.253049 mean, 96.354 max, 0 min<br />
msecs/first-response: 1158.52 mean, 2596.78 max, 282.647 min<br />
HTTP response codes: code 200 &#8212; 10347</p></blockquote>
<p>Run #2:</p>
<blockquote><p>11106 fetches, 20 max parallel, 44424 bytes, in 600.008 seconds<br />
4 mean bytes/connection<br />
18.5098 fetches/sec, 74.0391 bytes/sec<br />
msecs/connect: 0.226898 mean, 51.29 max, 0.03 min<br />
msecs/first-response: 1079.29 mean, 2393.4 max, 311.85 min<br />
HTTP response codes: code 200 &#8212; 11106</p></blockquote>
<p>Run #3:</p>
<blockquote><p>10978 fetches, 20 max parallel, 43912 bytes, in 600.029 seconds<br />
4 mean bytes/connection<br />
18.2958 fetches/sec, 73.1831 bytes/sec<br />
msecs/connect: 0.210895 mean, 30.339 max, 0 min<br />
msecs/first-response: 1091.98 mean, 3455.6 max, 373.751 min<br />
HTTP response codes: code 200 &#8212; 10978</p></blockquote>
<p><strong>Results Analysis</strong></p>
<ul>
<li>mysql_connect
<ul>
<li>Average requests per second: 18.3626</li>
<li>Average requests completed: 11,017</li>
</ul>
</li>
<li>mysql_pconnect
<ul>
<li>Average requests per second: 18.4330</li>
<li>Average requests completed: 11,060</li>
</ul>
</li>
<li>PDO_MySQL non-persistent
<ul>
<li>Average requests per second: 18.4038</li>
<li>Average requests completed: 11,042</li>
</ul>
</li>
<li>PDO_MySQL persistent
<ul>
<li>Average requests per second: 18.0168</li>
<li>Average requests completed: 10,810</li>
</ul>
</li>
</ul>
<p>Basically what the numbers above shows us is that in an isolated environment it makes no difference which connection type you are going to use. My past experience in live heavily trafficked environment says that using non-persistent connections is better than using persistent connections. Where this difference comes shows itself the most is when an apache thread will hang and still hold the persistent connection to mysql preventing other apache processes from connecting. By tweaking your apache and mysql settings you can achieve very good performance with non-persistent connections.</p>
<p><a href="/wp-content/uploads/benchmarking_source.tar.gz">Source files</a> for this benchmarking test.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/08/benchmarking-of-mysql-persistent-connections-vs-non-persistent-connections/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Submitted a talk proposal to php&#124;works 2008 today</title>
		<link>http://www.robertswarthout.com/2008/06/submitted-a-talk-proposal-to-phpworks-2008-today/</link>
		<comments>http://www.robertswarthout.com/2008/06/submitted-a-talk-proposal-to-phpworks-2008-today/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 20:14:28 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Sphinx Search]]></category>
		<category><![CDATA[php|works]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/rswarthout/2008/06/submitted-a-talk-proposal-to-phpworks-2008-today/</guid>
		<description><![CDATA[So I have submitted my first conference talk proposal. PHP&#124;works 2008 is going to be held in Atlanta here again this year. My proposed talk is about implementing the open source fulltext search engine Sphinx in a website. Let&#8217;s hope that it gets accepted! :-D
]]></description>
			<content:encoded><![CDATA[<p>So I have submitted my first conference talk proposal. PHP|works 2008 is going to be held in Atlanta here again this year. My proposed talk is about implementing the open source fulltext search engine Sphinx in a website. Let&#8217;s hope that it gets accepted! :-D</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/06/submitted-a-talk-proposal-to-phpworks-2008-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Subversion Frontend &#8211; Part 1</title>
		<link>http://www.robertswarthout.com/2008/05/php-subversion-frontend-part-1/</link>
		<comments>http://www.robertswarthout.com/2008/05/php-subversion-frontend-part-1/#comments</comments>
		<pubDate>Mon, 26 May 2008 20:21:49 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/rswarthout/2008/05/php-subversion-frontend-part-1/</guid>
		<description><![CDATA[I am going to begin the process of explaining how to setup a PHP frontend to a remote subversion (SVN) working copy. The post today will talk about how to correctly setup apache to work in a multi-user setup.
One of the the nice things about SVN is that it keeps track of who changes what [...]]]></description>
			<content:encoded><![CDATA[<p>I am going to begin the process of explaining how to setup a PHP frontend to a remote subversion (SVN) working copy. The post today will talk about how to correctly setup apache to work in a multi-user setup.</p>
<p>One of the the nice things about SVN is that it keeps track of who changes what line and what changes they made on that line. SVN bases the username it stores on who committed the file. The trick in getting a PHP frontend to SVN to work correctly is that the user that apache is running as needs to be the user who is performing the commit action. To do this and make it work in a multiple user environment I have setup apache to proxy through requests to a specific URL to another instance of apache running as the needed user. In this setup you will need to have mod_proxy either loaded or compiled into your apache setup.</p>
<p>For example a request sent to http://rswarthout.svn.dummydomain.com would be routed through a proxy in apache to another instance of apache at http://127.0.0.1:8001. This internal address will handle the apache requests and pass it back to the web facing apache server instance.</p>
<p>The apache virtual host config below is for the web facing apache instance:</p>
<blockquote><p>&lt;VirtualHost 12.34.56.78:80&gt;<br />
ServerName rswarthout.svn.dummydomain.com<br />
ProxyPreserveHost On<br />
ProxyPass / http://127.0.0.1:8001/<br />
ProxyPassReverse / http://127.0.0.1:8001/<br />
&lt;VirtualHost&gt;</p></blockquote>
<p>You will need to start a seperate instance of apache and pass it the config file to run. The config file below will start apache and have it listen on IP 127.0.0.1 only on port 8001.</p>
<blockquote><p>Listen 127.0.0.1:8001</p>
<p>LoadModule php5_module        modules/libphp5.so<br />
AddType application/x-httpd-php .php</p>
<p>DocumentRoot &#8220;/home/svn.dummydomain.com/public_html&#8221;</p>
<p>&lt;Directory &#8220;/home/svn.dummydomain.com/public_html&#8221;&gt;<br />
Options -Indexes FollowSymLinks<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>User rswarthout<br />
Group rswarthout</p>
<p>DirectoryIndex index.php index.html</p>
<p>php_admin_value include_path &#8220;.:/home/svn.dummydomain.com/:/usr/share/pear&#8221;</p></blockquote>
<p>In the above apache config you will see that I am setting the include path for PHP as well in the last line. This is not a requirement but it is good practice to only have files accessible through apache that need to be. To start a seperate instance of apache with the above config run the following command.</p>
<blockquote><p>/path/to/apache/httpd -f /path/to/above/config/file.conf</p></blockquote>
<p>That is all for this piece of the puzzle. Next time I will begin to explain the PHP side of the puzzle. When this puzzle is broken up into its smaller pieces it is quite easy to work through.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/05/php-subversion-frontend-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>31,622,400 second hiatus</title>
		<link>http://www.robertswarthout.com/2008/05/31556926-second-hiatus/</link>
		<comments>http://www.robertswarthout.com/2008/05/31556926-second-hiatus/#comments</comments>
		<pubDate>Tue, 20 May 2008 15:17:07 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[I dunno]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/rswarthout/2008/05/31556926-second-hiatus/</guid>
		<description><![CDATA[So it has been 1 year to the day since my last post, too long! A lot has happened in the last year, I will spare you most of the details. Recently I have started working for Schematic in Atlanta and started a used auto sales site, EasyAutoSales.com with some friends. If you are in [...]]]></description>
			<content:encoded><![CDATA[<p>So it has been 1 year to the day since my last post, too long! A lot has happened in the last year, I will spare you most of the details. Recently I have started working for <a href="http://www.schematic.com">Schematic</a> in Atlanta and started a used auto sales site, <a href="http://www.easyautosales.com">EasyAutoSales.com</a> with some friends. If you are in the market to buy a new/used car/truck/van/bus/motorcycle/carriage you should stop by and check it out. I will try my best to write further posts as we make progress on EasyAutoSales as I am sure I will run across things that would be of help to others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2008/05/31556926-second-hiatus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 6, Apache mod_deflate, blank pages&#8230;</title>
		<link>http://www.robertswarthout.com/2007/05/ie-6-apache-mod_deflate-blank-pages/</link>
		<comments>http://www.robertswarthout.com/2007/05/ie-6-apache-mod_deflate-blank-pages/#comments</comments>
		<pubDate>Sun, 20 May 2007 16:42:10 +0000</pubDate>
		<dc:creator>Robert Swarthout</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.robertswarthout.com/rswarthout/2007/05/ie-6-apache-mod_deflate-blank-pages/</guid>
		<description><![CDATA[I just ran across an interesting bug in IE 6 when a page is loading an external javascript file. If Apache is outputting the external javascript compressed (gzip) IE will do one of the following things:

Return a blank page
Try loading the page forever

Prior to finding this bug, our apache settings for mod_deflate looked like&#8230;
AddOutputFilterByType DEFLATE [...]]]></description>
			<content:encoded><![CDATA[<p>I just ran across an interesting bug in IE 6 when a page is loading an external javascript file. If Apache is outputting the external javascript compressed (gzip) IE will do one of the following things:</p>
<ol>
<li>Return a blank page</li>
<li>Try loading the page forever</li>
</ol>
<p>Prior to finding this bug, our apache settings for mod_deflate looked like&#8230;</p>
<blockquote><p>AddOutputFilterByType DEFLATE text/html text/css text/xml text/plain application/x-javascript</p></blockquote>
<p>Now it looks like&#8230;</p>
<blockquote><p>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.[0678] no-gzip<br />
BrowserMatch \bMSIE\s7Â  !no-gzip !gzip-only-text/html</p></blockquote>
<p>Making these changes seemed to have fixed the issue. Now when a page is loaded in IE6, any external javascript file will not be gzipped and their page load will be slower. I suppose that is punishment for not upgrading to IE7 or getting Firefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robertswarthout.com/2007/05/ie-6-apache-mod_deflate-blank-pages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
