<?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>Steve Wamsley</title>
	<atom:link href="http://ne0phyte.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ne0phyte.com</link>
	<description>Musician, developer, and software architect... aka ne0phyte</description>
	<lastBuildDate>Tue, 06 Apr 2010 23:50:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Quiz: Passing Objects By Value vs. Reference</title>
		<link>http://ne0phyte.com/blog/2010/04/06/php-quiz-passing-objects-by-value-vs-reference/</link>
		<comments>http://ne0phyte.com/blog/2010/04/06/php-quiz-passing-objects-by-value-vs-reference/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 23:50:36 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=176</guid>
		<description><![CDATA[Here is something to test your knowledge of how PHP handles passing objects by value vs. reference. Try to figure this out without using a PHP interpreter.
What is the output of the following code:
class Foo {
  private $bar;
  public function Foo($x) {
    $this-&#62;bar = $x;
  }
  public function [...]]]></description>
			<content:encoded><![CDATA[<p>Here is something to test your knowledge of how PHP handles passing objects by value vs. reference. Try to figure this out without using a PHP interpreter.</p>
<p>What is the output of the following code:</p>
<pre>class Foo {
  private $bar;
  public function Foo($x) {
    $this-&gt;bar = $x;
  }
  public function getBar() {
    return $this-&gt;bar;
  }
  public function setBar($x) {
    $this-&gt;bar = $x;
  }
}

function changeFooByValue($foo) {
 $foo-&gt;setBar('high');
 $foo = new Foo('too low');
}

function changeFooByRef(&amp;$foo) {
  $foo-&gt;setBar('just high enough');
  $foo = new Foo('too high');
}

$foo = new Foo('low');
echo "Bar: " . $foo-&gt;getBar() . "\n";

changeFooByValue($foo);
echo "Bar: " . $foo-&gt;getBar() . "\n";

changeFooByRef($foo);
echo "Bar: " . $foo-&gt;getBar() . "\n";
</pre>
<p>Is it:</p>
<p>A:</p>
<pre>Bar: low
Bar: too low
Bar: too high</pre>
<p>B:</p>
<pre>Bar: low
Bar: too low
Bar: too high</pre>
<p>C:</p>
<pre>Bar: low
Bar: too low
Bar: too high</pre>
<p>D:</p>
<p>Parse/syntax error</p>
<p>E:</p>
<p>None of the above</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2010%2F04%2F06%2Fphp-quiz-passing-objects-by-value-vs-reference%2F&amp;title=PHP%20Quiz%3A%20Passing%20Objects%20By%20Value%20vs.%20Reference&amp;bodytext=Here%20is%20something%20to%20test%20your%20knowledge%20of%20how%20PHP%20handles%20passing%20objects%20by%20value%20vs.%20reference.%20Try%20to%20figure%20this%20out%20without%20using%20a%20PHP%20interpreter.%0D%0A%0D%0AWhat%20is%20the%20output%20of%20the%20following%20code%3A%0D%0Aclass%20Foo%20%7B%0D%0A%20%20private%20%24bar%3B%0D%0A%20%20public%20function%20" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2010%2F04%2F06%2Fphp-quiz-passing-objects-by-value-vs-reference%2F&amp;title=PHP%20Quiz%3A%20Passing%20Objects%20By%20Value%20vs.%20Reference&amp;notes=Here%20is%20something%20to%20test%20your%20knowledge%20of%20how%20PHP%20handles%20passing%20objects%20by%20value%20vs.%20reference.%20Try%20to%20figure%20this%20out%20without%20using%20a%20PHP%20interpreter.%0D%0A%0D%0AWhat%20is%20the%20output%20of%20the%20following%20code%3A%0D%0Aclass%20Foo%20%7B%0D%0A%20%20private%20%24bar%3B%0D%0A%20%20public%20function%20" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2010%2F04%2F06%2Fphp-quiz-passing-objects-by-value-vs-reference%2F&amp;t=PHP%20Quiz%3A%20Passing%20Objects%20By%20Value%20vs.%20Reference" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=PHP%20Quiz%3A%20Passing%20Objects%20By%20Value%20vs.%20Reference%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2010%2F04%2F06%2Fphp-quiz-passing-objects-by-value-vs-reference%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2010/04/06/php-quiz-passing-objects-by-value-vs-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP/cURL to grok your public IP address</title>
		<link>http://ne0phyte.com/blog/2009/07/23/using-phpcurl-to-grok-your-public-ip-address/</link>
		<comments>http://ne0phyte.com/blog/2009/07/23/using-phpcurl-to-grok-your-public-ip-address/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:10:33 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=159</guid>
		<description><![CDATA[I had the occasion to create a PHP page that displays the server&#8217;s current public IP address. Not necessarily a good thing to display. But, I have several internal web sites on a development server where the host names are not available on a public DNS server. Displaying the server&#8217;s current public IP address is [...]]]></description>
			<content:encoded><![CDATA[<p>I had the occasion to create a PHP page that displays the server&#8217;s current public IP address. Not necessarily a good thing to display. But, I have several internal web sites on a development server where the host names are not available on a public DNS server. Displaying the server&#8217;s current public IP address is handy to prevent needing to nslookup my dyndns host name when altering my host file.</p>
<p>So, here is how I did it:</p>
<pre>$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "www.checkip.org");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);

$pattern = '/Your IP:  ([\d]{1,3}.[\d]{1,3}.[\d]{1,3}.[\d]{1,3})&lt;\/span&gt;/';
$matches = array();
preg_match($pattern, $output, $matches);

$yourIP = 'N/A';
if (count($matches) &gt; 1) {
  $yourIP = $matches[1];
}
curl_close($ch);</pre>
<p>What I&#8217;m doing here is using cURL to get the page at checkip.org and then using a regular expressing to get the IP address returned in that page.</p>
<p>Albeit not completely fault-tolerant, as the web site can change it&#8217;s structure, but this type of quick&#8217;n'dirty screen scraping was what I needed at the time.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F07%2F23%2Fusing-phpcurl-to-grok-your-public-ip-address%2F&amp;title=Using%20PHP%2FcURL%20to%20grok%20your%20public%20IP%20address&amp;bodytext=I%20had%20the%20occasion%20to%20create%20a%20PHP%20page%20that%20displays%20the%20server%27s%20current%20public%20IP%20address.%20Not%20necessarily%20a%20good%20thing%20to%20display.%20But%2C%20I%20have%20several%20internal%20web%20sites%20on%20a%20development%20server%20where%20the%20host%20names%20are%20not%20available%20on%20a%20public%20D" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F07%2F23%2Fusing-phpcurl-to-grok-your-public-ip-address%2F&amp;title=Using%20PHP%2FcURL%20to%20grok%20your%20public%20IP%20address&amp;notes=I%20had%20the%20occasion%20to%20create%20a%20PHP%20page%20that%20displays%20the%20server%27s%20current%20public%20IP%20address.%20Not%20necessarily%20a%20good%20thing%20to%20display.%20But%2C%20I%20have%20several%20internal%20web%20sites%20on%20a%20development%20server%20where%20the%20host%20names%20are%20not%20available%20on%20a%20public%20D" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F07%2F23%2Fusing-phpcurl-to-grok-your-public-ip-address%2F&amp;t=Using%20PHP%2FcURL%20to%20grok%20your%20public%20IP%20address" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Using%20PHP%2FcURL%20to%20grok%20your%20public%20IP%20address%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F07%2F23%2Fusing-phpcurl-to-grok-your-public-ip-address%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2009/07/23/using-phpcurl-to-grok-your-public-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How much weight do I need to lose?</title>
		<link>http://ne0phyte.com/blog/2009/02/06/how-much-weight-do-i-need-to-lose/</link>
		<comments>http://ne0phyte.com/blog/2009/02/06/how-much-weight-do-i-need-to-lose/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 16:56:02 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Home Page]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=89</guid>
		<description><![CDATA[How much weight do I need to lose to attain a healthy body mass? The standard weight charts tell that due to my height (5&#8242;10&#8243;), frame size (medium), and gender (male), I should weigh from 151 to 163 lbs. Really? I mean I currently weight 213 lbs. Do I really need to lose 50 lbs?
The [...]]]></description>
			<content:encoded><![CDATA[<p>How much weight do I need to lose to attain a healthy body mass? The <a title="Standard Weight Charts" href="http://dietbites.com/article1023.html">standard weight charts</a> tell that due to my height (5&#8242;10&#8243;), <a title="How to determine your frame size" href="http://www.dietbites.com/diet-advice-34.html">frame size</a> (medium), and gender (male), I should weigh from 151 to 163 lbs. Really? I mean I currently weight 213 lbs. Do I really need to lose 50 lbs?</p>
<p>The weight charts do not take into account lean body mass (and no, I&#8217;m not saying that I&#8217;m 200+ lbs. of muscle). So, given my body fat percentage and a realistic goal of attaining a weight consisting of 20% body fat, how much do I really need to lose?</p>
<p>The answer requires a means for measuring body fat and some math. I have a scale at home that measures my weight and body fat and currently I am 213.2 lbs., 33% of which is fat. Here is a formula to find <em>my</em> ideal body weight:</p>
<p style="text-align: center;"><a href="http://www.codecogs.com/eqnedit.php?latex=\bg_black W_{g}=\frac{W_{c}-W_{c}F{c}}{1-F_{g}}" target="_blank"><img title="\bg_black W_{g}=\frac{W_{c}-W_{c}F{c}}{1-F_{g}}" src="http://latex.codecogs.com/png.latex?\bg_black W_{g}=\frac{W_{c}-W_{c}F{c}}{1-F_{g}}" alt="" /></a></p>
<p>Where <em>W<sub>c</sub></em> is my current weight, <em>F<sub>c</sub></em> is my current body fat percentage, <em>W<sub>g</sub></em> is my goal weight, and <em>F<sub>g</sub></em> is my goal body fat percentage. My ideal <a title="Ideal fat percentage for men and women" href="http://www.weightlossforall.com/fat-percentage-ideal.htm">body fat percentage</a> for my gender (again, male) and age (38) is between 8 and 19 percent.</p>
<p>Plugging in the numbers for my current weight and body fat and a goal body fat of 19% gives me:</p>
<p style="text-align: center;"><a href="http://www.codecogs.com/eqnedit.php?latex=\bg_black W_{g}=\frac{213.2-213.2\times0.33}{1-0.19}" target="_blank"><img title="\bg_black W_{g}=\frac{213.2-213.2\times0.33}{1-0.19}" src="http://latex.codecogs.com/png.latex?\bg_black W_{g}=\frac{213.2-213.2\times0.33}{1-0.19}" alt="" /></a></p>
<p>The result is an ideal weight of 176.4. Slightly more than what the body fat charts recommend. Perhaps I do have some extra muscle? Maybe?</p>
<p>So, I need to lose about 37 lbs. Or, two Katos. My cat Kato currently weighs 17 lbs. I&#8217;m not going to go into whether or not he is at his ideal weight. He&#8217;s a big cat &#8211; not fat, just big. But, and more importantly, he&#8217;s heavy. If I lost the weight amounting to two Katos, think about the stress that would take off my medium frame? And that is the real goal.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F02%2F06%2Fhow-much-weight-do-i-need-to-lose%2F&amp;title=How%20much%20weight%20do%20I%20need%20to%20lose%3F&amp;bodytext=How%20much%20weight%20do%20I%20need%20to%20lose%20to%20attain%20a%20healthy%20body%20mass%3F%20The%20standard%20weight%20charts%20tell%20that%20due%20to%20my%20height%20%285%2710%22%29%2C%20frame%20size%20%28medium%29%2C%20and%20gender%20%28male%29%2C%20I%20should%20weigh%20from%20151%20to%20163%20lbs.%20Really%3F%20I%20mean%20I%20currently%20weight%20213%20lbs.%20Do%20" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F02%2F06%2Fhow-much-weight-do-i-need-to-lose%2F&amp;title=How%20much%20weight%20do%20I%20need%20to%20lose%3F&amp;notes=How%20much%20weight%20do%20I%20need%20to%20lose%20to%20attain%20a%20healthy%20body%20mass%3F%20The%20standard%20weight%20charts%20tell%20that%20due%20to%20my%20height%20%285%2710%22%29%2C%20frame%20size%20%28medium%29%2C%20and%20gender%20%28male%29%2C%20I%20should%20weigh%20from%20151%20to%20163%20lbs.%20Really%3F%20I%20mean%20I%20currently%20weight%20213%20lbs.%20Do%20" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F02%2F06%2Fhow-much-weight-do-i-need-to-lose%2F&amp;t=How%20much%20weight%20do%20I%20need%20to%20lose%3F" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=How%20much%20weight%20do%20I%20need%20to%20lose%3F%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2009%2F02%2F06%2Fhow-much-weight-do-i-need-to-lose%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2009/02/06/how-much-weight-do-i-need-to-lose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New app, coming soon to an App Store near you: Cheapest</title>
		<link>http://ne0phyte.com/blog/2008/12/25/new-app-coming-soon-to-an-app-store-near-you-cheapest/</link>
		<comments>http://ne0phyte.com/blog/2008/12/25/new-app-coming-soon-to-an-app-store-near-you-cheapest/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 20:40:26 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>
		<category><![CDATA[iPhone App]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=88</guid>
		<description><![CDATA[What is cheapest? Two 12 oz. cans for $4.99 or one pint for $3.99? Find out with the newest iPhone App from Katanaa: Cheapest. We submitted the app to the store last Friday. It will be a day or two before it&#8217;s available. Stay tuned.
Update: Cheapest is now available in the App Store: Get the [...]]]></description>
			<content:encoded><![CDATA[<p>What is cheapest? Two 12 oz. cans for $4.99 or one pint for $3.99? Find out with the newest iPhone App from Katanaa: Cheapest. We submitted the app to the store last Friday. It will be a day or two before it&#8217;s available. Stay tuned.</p>
<p>Update: Cheapest is now available in the App Store: <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300770393&amp;mt=8">Get the Cheapest application from iTunes</a>.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F12%2F25%2Fnew-app-coming-soon-to-an-app-store-near-you-cheapest%2F&amp;title=New%20app%2C%20coming%20soon%20to%20an%20App%20Store%20near%20you%3A%20Cheapest&amp;bodytext=What%20is%20cheapest%3F%20Two%2012%20oz.%20cans%20for%20%244.99%20or%20one%20pint%20for%20%243.99%3F%20Find%20out%20with%20the%20newest%20iPhone%20App%20from%20Katanaa%3A%20Cheapest.%20We%20submitted%20the%20app%20to%20the%20store%20last%20Friday.%20It%20will%20be%20a%20day%20or%20two%20before%20it%27s%20available.%20Stay%20tuned.%0D%0A%0D%0AUpdate%3A%20Cheape" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F12%2F25%2Fnew-app-coming-soon-to-an-app-store-near-you-cheapest%2F&amp;title=New%20app%2C%20coming%20soon%20to%20an%20App%20Store%20near%20you%3A%20Cheapest&amp;notes=What%20is%20cheapest%3F%20Two%2012%20oz.%20cans%20for%20%244.99%20or%20one%20pint%20for%20%243.99%3F%20Find%20out%20with%20the%20newest%20iPhone%20App%20from%20Katanaa%3A%20Cheapest.%20We%20submitted%20the%20app%20to%20the%20store%20last%20Friday.%20It%20will%20be%20a%20day%20or%20two%20before%20it%27s%20available.%20Stay%20tuned.%0D%0A%0D%0AUpdate%3A%20Cheape" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F12%2F25%2Fnew-app-coming-soon-to-an-app-store-near-you-cheapest%2F&amp;t=New%20app%2C%20coming%20soon%20to%20an%20App%20Store%20near%20you%3A%20Cheapest" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=New%20app%2C%20coming%20soon%20to%20an%20App%20Store%20near%20you%3A%20Cheapest%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F12%2F25%2Fnew-app-coming-soon-to-an-app-store-near-you-cheapest%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/12/25/new-app-coming-soon-to-an-app-store-near-you-cheapest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Electronic Formula Calculator</title>
		<link>http://ne0phyte.com/blog/2008/11/13/iphone-electronic-formula-calculator/</link>
		<comments>http://ne0phyte.com/blog/2008/11/13/iphone-electronic-formula-calculator/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 01:29:11 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[iPhone App]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=87</guid>
		<description><![CDATA[My latest adventure has been in the iPhone/iTouch application development world. The first application to hit the iTunes Store is Formula Sensei, a formula database and calculator. Formula Sensei will encompass a suite of formula calculators, the first of which is the Electronic Formula Calculator. This app has been developed and uploaded for review/approval to [...]]]></description>
			<content:encoded><![CDATA[<p>My latest adventure has been in the iPhone/iTouch application development world. The first application to hit the iTunes Store is Formula Sensei, a formula database and calculator. Formula Sensei will encompass a suite of formula calculators, the first of which is the Electronic Formula Calculator. This app has been developed and uploaded for review/approval to the iTunes store. Future editions of Formula Sensei will include financial, real estate, physics, etc. A web site has been set up to provide more information about the product:</p>
<p><a title="Formula Sensei" href="http://formulasensei.com">formulasensei.com</a></p>
<p>Update: the E-Formulas app has now been approved for sale! See it at the iTunes Store: <a title="E-Formulas at the iTunes Store" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=296288975&amp;mt=8">E-Formulas</a>.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F11%2F13%2Fiphone-electronic-formula-calculator%2F&amp;title=iPhone%20Electronic%20Formula%20Calculator&amp;bodytext=My%20latest%20adventure%20has%20been%20in%20the%20iPhone%2FiTouch%20application%20development%20world.%20The%20first%20application%20to%20hit%20the%20iTunes%20Store%20is%20Formula%20Sensei%2C%20a%20formula%20database%20and%20calculator.%20Formula%20Sensei%20will%20encompass%20a%20suite%20of%20formula%20calculators%2C%20the%20fir" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F11%2F13%2Fiphone-electronic-formula-calculator%2F&amp;title=iPhone%20Electronic%20Formula%20Calculator&amp;notes=My%20latest%20adventure%20has%20been%20in%20the%20iPhone%2FiTouch%20application%20development%20world.%20The%20first%20application%20to%20hit%20the%20iTunes%20Store%20is%20Formula%20Sensei%2C%20a%20formula%20database%20and%20calculator.%20Formula%20Sensei%20will%20encompass%20a%20suite%20of%20formula%20calculators%2C%20the%20fir" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F11%2F13%2Fiphone-electronic-formula-calculator%2F&amp;t=iPhone%20Electronic%20Formula%20Calculator" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=iPhone%20Electronic%20Formula%20Calculator%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F11%2F13%2Fiphone-electronic-formula-calculator%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/11/13/iphone-electronic-formula-calculator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache Performance: Rotate your logs (duh)</title>
		<link>http://ne0phyte.com/blog/2008/10/07/apache-performance-rotate-your-logs/</link>
		<comments>http://ne0phyte.com/blog/2008/10/07/apache-performance-rotate-your-logs/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 02:21:38 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=51</guid>
		<description><![CDATA[Seems kinda silly, doesn&#8217;t it? After following all the Apache performance tips found on Google, I noticed that the site I was tuning (rss2.com) had access logs exceeding 2GB in size. Now if you imagine each httpd process having to load a file that size, you can imagine why it took so long for new [...]]]></description>
			<content:encoded><![CDATA[<p>Seems kinda silly, doesn&#8217;t it? After following all the Apache performance tips found on Google, I noticed that the site I was tuning (rss2.com) had access logs exceeding 2GB in size. Now if you imagine each httpd process having to load a file that size, you can imagine why it took so long for new httpd processes to load.</p>
<p>I configured logrotate to rotate logs each hour when the logs exceeded 100K. What a difference! Of course, restarting Apache every hour helps, too. But the change made a significant difference.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F10%2F07%2Fapache-performance-rotate-your-logs%2F&amp;title=Apache%20Performance%3A%20Rotate%20your%20logs%20%28duh%29&amp;bodytext=Seems%20kinda%20silly%2C%20doesn%27t%20it%3F%20After%20following%20all%20the%20Apache%20performance%20tips%20found%20on%20Google%2C%20I%20noticed%20that%20the%20site%20I%20was%20tuning%20%28rss2.com%29%20had%20access%20logs%20exceeding%202GB%20in%20size.%20Now%20if%20you%20imagine%20each%20httpd%20process%20having%20to%20load%20a%20file%20that%20si" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F10%2F07%2Fapache-performance-rotate-your-logs%2F&amp;title=Apache%20Performance%3A%20Rotate%20your%20logs%20%28duh%29&amp;notes=Seems%20kinda%20silly%2C%20doesn%27t%20it%3F%20After%20following%20all%20the%20Apache%20performance%20tips%20found%20on%20Google%2C%20I%20noticed%20that%20the%20site%20I%20was%20tuning%20%28rss2.com%29%20had%20access%20logs%20exceeding%202GB%20in%20size.%20Now%20if%20you%20imagine%20each%20httpd%20process%20having%20to%20load%20a%20file%20that%20si" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F10%2F07%2Fapache-performance-rotate-your-logs%2F&amp;t=Apache%20Performance%3A%20Rotate%20your%20logs%20%28duh%29" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Apache%20Performance%3A%20Rotate%20your%20logs%20%28duh%29%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F10%2F07%2Fapache-performance-rotate-your-logs%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/10/07/apache-performance-rotate-your-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Keypress Event &#8211; the right way</title>
		<link>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/</link>
		<comments>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 19:35:15 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=41</guid>
		<description><![CDATA[I had an occassion where I had to capture the &#8220;enter&#8221; key press in a text box and couldn&#8217;t quite remember how to do that. So, like the well-adjusted web developer I am, I Google&#8217;d for the answer. I was suprised to find how many different solutions there were and how some of them just [...]]]></description>
			<content:encoded><![CDATA[<p>I had an occassion where I had to capture the &#8220;enter&#8221; key press in a text box and couldn&#8217;t quite remember how to do that. So, like the well-adjusted web developer I am, I Google&#8217;d for the answer. I was suprised to find how many different solutions there were and how some of them just plain didn&#8217;t work.</p>
<p>I turned to the tried-and-true Prototype library (because that&#8217;s how I remembered doing it in the first place). The bonus with using Prototype is that it will actually be browser compatible.</p>
<p>Here is the penultimate solution to capturing an &#8220;enter&#8221; keypress in an HTML input text box.</p>
<p>The HTML:</p>
<p><code>&lt;input type="text" name="my_text" id="my_text" value="" /&gt;</code></p>
<p>The JavaScript:</p>
<p><code>&lt;script type="text/javascript"&gt;&lt;!--<br />
function onMyTextKeypress(event)<br />
{<br />
if (Event.KEY_RETURN == event.keyCode) {<br />
// do something usefull<br />
alert('Enter key was pressed.');<br />
}<br />
return;<br />
}</code></p>
<p><code>Event.observe('my_text', 'keypress', onMyTextKeypress);</code><br />
<code> //--&gt;<br />
&lt;/script&gt;</code></p>
<p>Now, don&#8217;t forget to include the prototype.js script in the HTML page!</p>
<p><code>&lt;script type="text/javascript" src="/js/prototype.js"&gt;&lt;/script&gt;</code></p>
<p>The JavaScript must execute <em>after</em> the DOM elements are rendered. One way to do it is to put the JavaScript code in a SCRIPT element after the INPUT element. However, another way would be to put the following code in the SCRIPT element in the HEAD element:</p>
<p><code>Event.observe(window, 'load', function() {<br />
Event.observe(Event.observe('my_text', 'keypress', onMyTextKeypress);<br />
});<br />
</code></p>
<p>I like this method because all the JavaScript can be kept in the HEAD, or in a JS library file, instead of splattering the code throughout the document body.</p>
<p>References:</p>
<p><a href="http://prototypejs.org/api/event/observe">Prototype Event.observe API</a></p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F09%2F02%2Fjavascript-keypress-event%2F&amp;title=JavaScript%20Keypress%20Event%20-%20the%20right%20way&amp;bodytext=I%20had%20an%20occassion%20where%20I%20had%20to%20capture%20the%20%22enter%22%20key%20press%20in%20a%20text%20box%20and%20couldn%27t%20quite%20remember%20how%20to%20do%20that.%20So%2C%20like%20the%20well-adjusted%20web%20developer%20I%20am%2C%20I%20Google%27d%20for%20the%20answer.%20I%20was%20suprised%20to%20find%20how%20many%20different%20solutions%20th" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F09%2F02%2Fjavascript-keypress-event%2F&amp;title=JavaScript%20Keypress%20Event%20-%20the%20right%20way&amp;notes=I%20had%20an%20occassion%20where%20I%20had%20to%20capture%20the%20%22enter%22%20key%20press%20in%20a%20text%20box%20and%20couldn%27t%20quite%20remember%20how%20to%20do%20that.%20So%2C%20like%20the%20well-adjusted%20web%20developer%20I%20am%2C%20I%20Google%27d%20for%20the%20answer.%20I%20was%20suprised%20to%20find%20how%20many%20different%20solutions%20th" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F09%2F02%2Fjavascript-keypress-event%2F&amp;t=JavaScript%20Keypress%20Event%20-%20the%20right%20way" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=JavaScript%20Keypress%20Event%20-%20the%20right%20way%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F09%2F02%2Fjavascript-keypress-event%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHPKeyStore Update</title>
		<link>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/</link>
		<comments>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 21:18:22 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Computer Technology]]></category>
		<category><![CDATA[KeyStore]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=35</guid>
		<description><![CDATA[The KeyStore API is code complete. Check it out at phpkeystore.org. The current development release can always be installed with PEAR using:
pear install http://phpkeystore.org/download/KeyStore-current.tgz
All that really remains right now is internal tweaking for best practices and performance.
To summarize the functionality, the key management functionality consists of:

Loading and storing the key store
Creating secret keys, certificate signing [...]]]></description>
			<content:encoded><![CDATA[<p>The KeyStore API is code complete. Check it out at <a href="http://phpkeystore.org">phpkeystore.org</a>. The current development release can always be installed with PEAR using:</p>
<p><code>pear install http://phpkeystore.org/download/KeyStore-current.tgz</code></p>
<p>All that really remains right now is internal tweaking for best practices and performance.</p>
<p>To summarize the functionality, the key management functionality consists of:</p>
<ul>
<li>Loading and storing the key store</li>
<li>Creating secret keys, certificate signing requests, importing signed certificates, and deleting key store entries</li>
<li>Querying the key store for the existence of an entry and what type of entry it is</li>
</ul>
<p>And the key usage functionality consists of:</p>
<ul>
<li>Loading the key store</li>
<li>Using a public/private key pair to encrypt, decrypt, sign, and verify</li>
<li>Using a secret symmetric key to encrypt and decrypt</li>
</ul>
<p>The current to-do list:</p>
<ul>
<li>Add configuration file for system default values</li>
<li>Support file-based passwords</li>
<li>Support user-supplied options on the interface methods in order to support cryptographic functionality other than the default, baked-in settings</li>
<li>Add failure-case unit tests</li>
<li>Code review</li>
</ul>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;title=PHPKeyStore%20Update&amp;bodytext=The%20KeyStore%20API%20is%20code%20complete.%20Check%20it%20out%20at%20phpkeystore.org.%20The%20current%20development%20release%20can%20always%20be%20installed%20with%20PEAR%20using%3A%0D%0A%0D%0Apear%20install%20http%3A%2F%2Fphpkeystore.org%2Fdownload%2FKeyStore-current.tgz%0D%0A%0D%0AAll%20that%20really%20remains%20right%20now%20is%20" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;title=PHPKeyStore%20Update&amp;notes=The%20KeyStore%20API%20is%20code%20complete.%20Check%20it%20out%20at%20phpkeystore.org.%20The%20current%20development%20release%20can%20always%20be%20installed%20with%20PEAR%20using%3A%0D%0A%0D%0Apear%20install%20http%3A%2F%2Fphpkeystore.org%2Fdownload%2FKeyStore-current.tgz%0D%0A%0D%0AAll%20that%20really%20remains%20right%20now%20is%20" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F&amp;t=PHPKeyStore%20Update" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=PHPKeyStore%20Update%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F07%2F01%2Fphpkeystore-update%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/07/01/phpkeystore-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPKeyStore Web Site &amp; Development Release</title>
		<link>http://ne0phyte.com/blog/2008/06/28/phpkeystore-web-site-development-release/</link>
		<comments>http://ne0phyte.com/blog/2008/06/28/phpkeystore-web-site-development-release/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 17:10:51 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[KeyStore]]></category>
		<category><![CDATA[PHP KeyStore]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=27</guid>
		<description><![CDATA[The PHPKeyStore web site, wiki, and trac are now up. Here are the links:

Web Site
Wiki
Source
Project
Downloads

The web site, wiki, and source are browsable by anyone. Also, a PEAR package proposal has been submitted. We&#8217;re waiting to hear back from the PEAR community.



Share and Enjoy:


	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>The PHPKeyStore web site, wiki, and trac are now up. Here are the links:</p>
<ul>
<li><a href="http://phpkeystore.org">Web Site</a></li>
<li><a href="http://projects.serafinistudios.com/wiki/phpkeystore">Wiki</a></li>
<li><a href="http://projects.serafinistudios.com/projects/show/phpkeystore">Source</a></li>
<li><a href="http://projects.serafinistudios.com/projects/show/phpkeystore">Project</a></li>
<li><a href="http://phpkeystore.org/download">Downloads</a></li>
</ul>
<p>The web site, wiki, and source are browsable by anyone. Also, a PEAR package proposal has been submitted. We&#8217;re waiting to hear back from the PEAR community.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F06%2F28%2Fphpkeystore-web-site-development-release%2F&amp;title=PHPKeyStore%20Web%20Site%20%26%20Development%20Release&amp;bodytext=The%20PHPKeyStore%20web%20site%2C%20wiki%2C%20and%20trac%20are%20now%20up.%20Here%20are%20the%20links%3A%0D%0A%0D%0A%09Web%20Site%0D%0A%09Wiki%0D%0A%09Source%0D%0A%09Project%0D%0A%09Downloads%0D%0A%0D%0AThe%20web%20site%2C%20wiki%2C%20and%20source%20are%20browsable%20by%20anyone.%20Also%2C%20a%20PEAR%20package%20proposal%20has%20been%20submitted.%20We%27re%20waiting%20to%20" title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F06%2F28%2Fphpkeystore-web-site-development-release%2F&amp;title=PHPKeyStore%20Web%20Site%20%26%20Development%20Release&amp;notes=The%20PHPKeyStore%20web%20site%2C%20wiki%2C%20and%20trac%20are%20now%20up.%20Here%20are%20the%20links%3A%0D%0A%0D%0A%09Web%20Site%0D%0A%09Wiki%0D%0A%09Source%0D%0A%09Project%0D%0A%09Downloads%0D%0A%0D%0AThe%20web%20site%2C%20wiki%2C%20and%20source%20are%20browsable%20by%20anyone.%20Also%2C%20a%20PEAR%20package%20proposal%20has%20been%20submitted.%20We%27re%20waiting%20to%20" title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F06%2F28%2Fphpkeystore-web-site-development-release%2F&amp;t=PHPKeyStore%20Web%20Site%20%26%20Development%20Release" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=PHPKeyStore%20Web%20Site%20%26%20Development%20Release%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F06%2F28%2Fphpkeystore-web-site-development-release%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/06/28/phpkeystore-web-site-development-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet/Network Gotchas</title>
		<link>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/</link>
		<comments>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/#comments</comments>
		<pubDate>Fri, 16 May 2008 16:46:29 +0000</pubDate>
		<dc:creator>ne0phyte</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ne0phyte.com/?p=24</guid>
		<description><![CDATA[The following forty five (45) Internet/network security gotchas are taken from Firewalls and Internet Security &#8211; Repelling the Wily Hacker, Second Edition (ISBN: 0-201-63344-X) by William R. Cheswick, et. al.

IP source addresses aren&#8217;t trustable.
Fragmented packets have been abused to avoid security checks.
ARP-spoofing can lead to session-hijacking.
Sequence number attacks can be used to subvert address-based authentication.
It [...]]]></description>
			<content:encoded><![CDATA[<p>The following forty five (45) Internet/network security gotchas are taken from <a title="Preview Book" href="http://books.google.com/books?id=_ZqIh0IbcrgC&amp;printsec=frontcover&amp;source=gbs_summary_r&amp;cad=0" target="_blank">Firewalls and Internet Security &#8211; Repelling the Wily Hacker, Second Edition</a> (ISBN: 0-201-63344-X) by William R. Cheswick, et. al.</p>
<ol>
<li><abbr title="Internet Protocol">IP</abbr> source addresses aren&#8217;t trustable.</li>
<li>Fragmented packets have been abused to avoid security checks.</li>
<li><abbr title="Address Resolution Protocol">ARP</abbr>-spoofing can lead to session-hijacking.</li>
<li>Sequence number attacks can be used to subvert address-based authentication.</li>
<li>It is easy to spoof <abbr title="User Datagram Packet">UDP</abbr> packets.</li>
<li><abbr title="Internet Control Message Protocol">ICMP</abbr> <code>Redirect</code> messages can subvert routing tables.</li>
<li><abbr title="Internet Protocol">IP</abbr> source routing can address-based authentication.</li>
<li>It is easy to generate bogus <abbr title="Routing Information Protocol">RIP</abbr> messages.</li>
<li>The inverse <abbr title="Domain Name Server">DNS</abbr> tree can be used for name-spoofing.</li>
<li>The <abbr title="Domain Name Server">DNS</abbr> cache can be contaminated to foil cross-checks.</li>
<li><abbr title="Internet Protocol version 6">IPv6</abbr> network numbers may change frequently.</li>
<li><abbr title="Internet Protocol version 6">IPv6</abbr> host addresses change frequently, too.</li>
<li><abbr title="Wired Equivalent Privacy">WEP</abbr> is useless.</li>
<li>Attackers have the luxury of using nonstandard equipment.</li>
<li>Return addresses in mail aren&#8217;t reliable, and this fact is easily forgotten.</li>
<li>Don&#8217;t blindly execute <abbr title="Multipurpose Internet Mail Extension">MIME</abbr> messages.</li>
<li>Don&#8217;t trust <abbr title="Remote Procedure Call">RPC</abbr>&#8217;s machine name field.</li>
<li><em>Rpcbind</em> can call <abbr title="Remote Procedure Call">RPC</abbr> services for its caller.</li>
<li><abbr title="Network Information Service">NIS</abbr> can often be persuaded to give out password files.</li>
<li>It is sometimes possible to direct machines to phony <abbr title="Network Information Service">NIS</abbr> servers.</li>
<li>If misconfigured, <abbr title="Trivial File Transfer Protocol">TFTP</abbr> will had over sensitive files.</li>
<li>Don&#8217;t make <em>ftp</em>&#8217;s home directory writable by <em>ftp</em>.</li>
<li>Don&#8217;t put a real password file in the anonymous <em>ftp</em> area.</li>
<li>It is easy to wiretap <em>telnet</em> sessions.</li>
<li>The <em>r</em> commands rely on address-based authentication.</li>
<li>Be careful about interpreting <abbr title="World Wide Web">WWW</abbr> format information.</li>
<li><abbr title="World Wide Web">WWW</abbr> servers should be careful about <abbr title="Uniform Resource Locator">URL</abbr>s.</li>
<li>Poorly written query scripts pose a danger to <abbr title="World Wide Web">WWW</abbr> servers.</li>
<li>The <abbr title="Multicast Backbone">MBone</abbr> can be used to route through some firewalls.</li>
<li>Scalable security administration of peer-to-peer nodes is difficult.</li>
<li>An attacker anywhere on the Internet can probe for X11 servers.</li>
<li><abbr title="User Datagram Packet">UDP</abbr>-based services can be abused to create broadcast storms.</li>
<li>Web servers shouldn&#8217;t believe uploaded state variables.</li>
<li>Signed code is not necessarily safe code.</li>
<li>[Client-side script] is dangerous.</li>
<li>Users are ill-equipped to make correct security choices.</li>
<li>Humans choose lousy passwords.</li>
<li>There are lots of ways to grab <code>/etc/passwd</code>.</li>
<li>There is no absolute remedy for a denial-of-service attack.</li>
<li>Hackers plant sniffers.</li>
<li>Network monitoring tools can be very dangerous on an exposed machine.</li>
<li>Don&#8217;t believe port numbers supplied by outside machines.</li>
<li>It is all but impossible to permit most <abbr title="User Datagram Packet">UDP</abbr> traffic through a packet filter safely.</li>
<li>A tunnel can be built on top of almost any transport mechanism.</li>
<li>If the connection is vital, don&#8217;t use a public network.</li>
</ol>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;title=Internet%2FNetwork%20Gotchas&amp;bodytext=The%20following%20forty%20five%20%2845%29%20Internet%2Fnetwork%20security%20gotchas%20are%20taken%20from%20Firewalls%20and%20Internet%20Security%20-%20Repelling%20the%20Wily%20Hacker%2C%20Second%20Edition%20%28ISBN%3A%200-201-63344-X%29%20by%20William%20R.%20Cheswick%2C%20et.%20al.%0D%0A%0D%0A%09IP%20source%20addresses%20aren%27t%20trustable." title="Digg"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;title=Internet%2FNetwork%20Gotchas&amp;notes=The%20following%20forty%20five%20%2845%29%20Internet%2Fnetwork%20security%20gotchas%20are%20taken%20from%20Firewalls%20and%20Internet%20Security%20-%20Repelling%20the%20Wily%20Hacker%2C%20Second%20Edition%20%28ISBN%3A%200-201-63344-X%29%20by%20William%20R.%20Cheswick%2C%20et.%20al.%0D%0A%0D%0A%09IP%20source%20addresses%20aren%27t%20trustable." title="del.icio.us"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F&amp;t=Internet%2FNetwork%20Gotchas" title="Facebook"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Internet%2FNetwork%20Gotchas%20-%20http%3A%2F%2Fne0phyte.com%2Fblog%2F2008%2F05%2F16%2Finternet-network-gotchas%2F" title="Twitter"><img src="http://ne0phyte.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://ne0phyte.com/blog/2008/05/16/internet-network-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
