<?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>Knob &#187; PHP</title>
	<atom:link href="http://josheli.com/knob/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://josheli.com/knob</link>
	<description>More knob? Unpossible!</description>
	<lastBuildDate>Tue, 10 Jan 2012 22:33:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Project Euler Problem 1</title>
		<link>http://josheli.com/knob/2012/01/10/project-euler-problem-1/</link>
		<comments>http://josheli.com/knob/2012/01/10/project-euler-problem-1/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 22:32:03 +0000</pubDate>
		<dc:creator>dv</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tachion Emissions]]></category>

		<guid isPermaLink="false">http://josheli.com/knob/?p=280</guid>
		<description><![CDATA[Endeavoring to be more of a producer than a consumer, ran across Project Euler which looks to be low friction but somewhat useful and interesting. Unfortunately their register/login system is broken: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/admin/domains/projecteuler.net/public_html/includes/login_preprocess.php on line 11 So I&#8217;ll keep track on my own blog I guess [...]]]></description>
			<content:encoded><![CDATA[<p>Endeavoring to be more of a producer than a consumer, ran across <a title="Project Euler" href="http://projecteuler.net">Project Euler</a> which looks to be low friction but somewhat useful and interesting. Unfortunately their register/login system is broken:</p>
<blockquote><p><strong>Warning</strong>: mysql_num_rows(): supplied argument is not a valid MySQL result resource in <strong>/home/admin/domains/projecteuler.net/public_html/includes/login_preprocess.php</strong> on line <strong>11</strong></p></blockquote>
<p>So I&#8217;ll keep track on my own blog I guess and see how far along I get.</p>
<p><a title="Project Euler Problem 1" href="http://projecteuler.net/problem=1">Problem 1</a>:</p>
<blockquote><p>If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.</p>
<p>Find the sum of all the multiples of 3 or 5 below 1000.</p></blockquote>
<p>And my solution, in PHP:</p>
<pre class="brush: php; title: ; notranslate">
$sum = 0;

for($i = 0; $i &lt; 1000; ++$i)
{
  if(!($i % 3) || !($i % 5))
  {
    $sum += $i;
  }
}
echo number_format($sum);
</pre>
<p>Answer: 233,168</p>
]]></content:encoded>
			<wfw:commentRss>http://josheli.com/knob/2012/01/10/project-euler-problem-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Josheli, What Happened?</title>
		<link>http://josheli.com/knob/2006/05/26/josheli-what-happened/</link>
		<comments>http://josheli.com/knob/2006/05/26/josheli-what-happened/#comments</comments>
		<pubDate>Fri, 26 May 2006 15:41:53 +0000</pubDate>
		<dc:creator>dv</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.josheli.com/knob/?p=6</guid>
		<description><![CDATA[[UPDATE]The cpanel stuff and statrat are back.[/UPDATE] There used to be a bunch of crappy php scripts on this site. I took them down. Here&#8217;s why&#8230; 1. They were crappy. 2. They were time-consuming to support. 3. They were crappy. 4. They were time-consuming to support. First, the crappiness. I learned PHP in 2001 in [...]]]></description>
			<content:encoded><![CDATA[<p>[UPDATE]The <a href="http://www.josheli.com/vox/">cpanel stuff</a> and <a href="http://www.josheli.com/statrat/">statrat </a>are back.[/UPDATE]</p>
<p>There used to be a bunch of crappy php scripts on this site. I took them down. Here&#8217;s why&#8230;</p>
<p>1. They were crappy.</p>
<p>2. They were time-consuming to support.</p>
<p>3. They were crappy.</p>
<p>4. They were time-consuming to support.</p>
<p>First, the crappiness. I learned PHP in 2001 in order to create a baseball stats tracking application for my <a href="http://www.austinrangers.com">MSBL team</a>. Statrat, as it was known, was my first PHP &#8220;application&#8221;. It worked, but the code was inelegant, imprecise and probably unsecure. But it worked, and lots of people downloaded and used it (and are still using it I guess). All of those people also wanted me to support it, and to help them install it, and to fix bugs and make it work on their machines and &#8230;. well, it was more and more time consuming.</p>
<p>I also created several other &#8220;applications&#8221; for personal use and various other utility scripts that I made available. All told, I was getting a fair bit of traffic and it was all taking more and more time to support, though I continually had less and less time to offer. I put up a forum to offload some support, set up CVS and a build system, and I added Google ads and a PayPal donation button for some ROI. I made about $100/year from the ads and got about $80 in donations over 3 years but the support costs (in time, money, sanity) just kept growing.</p>
<p>Not ever having time to re-implement the code, the works just stagnated, and when I would apply for a PHP job, employers would google my name and find this repository of crappy code. I really think it hurt me in the job search, which is ever-ongoing.</p>
<p>So I took them all down, let my <a href="http://www.hotscripts.com">Hotscripts</a> entries lapse (which drove much of the traffic), and just went silent for about 6 months. Perhaps I&#8217;ll put them all back up, unsupported, with a link to this explanation. Perhaps not, I&#8217;m sure no one missed them. I don&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://josheli.com/knob/2006/05/26/josheli-what-happened/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

