<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.3.1" --><rss 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/" version="2.0">

<channel>
	<title>GeekBlog.info</title>
	<link>http://geekblog.info</link>
	<description>If at first you don't succeed; call it version 1.0</description>
	<pubDate>Thu, 27 Dec 2007 19:27:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Geekbloginfo" type="application/rss+xml" /><item>
		<title>December 2007 Issue of Python Magazine Released</title>
		<link>http://geekblog.info/2007/12/december-2007-issue-of-python-magazine-released/</link>
		<comments>http://geekblog.info/2007/12/december-2007-issue-of-python-magazine-released/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 19:07:02 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Community]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[PyMag]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/december-2007-issue-of-python-magazine-released/</guid>
		<description><![CDATA[The December issue of PyMag was released this past Monday. Go check it out.
]]></description>
			<content:encoded><![CDATA[<p>The December issue of <a href="http://pymag.phparch.com/c/issue/view/64" target="_blank">PyMag</a> was released this past Monday. Go check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/december-2007-issue-of-python-magazine-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Clinton is still riding the Video Game Violence bandwagon</title>
		<link>http://geekblog.info/2007/12/clinton-is-still-riding-the-video-game-violence-bandwagon/</link>
		<comments>http://geekblog.info/2007/12/clinton-is-still-riding-the-video-game-violence-bandwagon/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 18:19:02 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[General Interest]]></category>

		<category><![CDATA[games]]></category>

		<category><![CDATA[violence]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/clinton-is-still-riding-the-video-game-violence-bandwagon/</guid>
		<description><![CDATA[As President, Hillary Clinton will actively legislate television and video game violence. While not necessary a bad thing, I think we may be heading down the wrong path.]]></description>
			<content:encoded><![CDATA[<p> <a href="http://gamepolitics.com/" target="_blank">GamePolitics.com</a> has an <a href="http://gamepolitics.com/2007/12/21/hillary-clinton-tells-common-sense-media-she-would-support-video-game-legislation/" target="_blank">article</a> about <a href="http://gamepolitics.com/2007/12/10/where-the-presidential-candidates-stand-on-video-game-legislation/">Common Sense Media's Survey</a> of the 2008 presidential candidates on where they stand regarding issues such as video game violence. Clinton was quoted as saying...</p>
<blockquote><p>Research has shown that violent and sexually explicit media contribute to aggressive behavior, early sexual experimentation, obesity, and depression.</p>
<p>Whenever I meet young parents... they tell me that they are worried about losing control over the raising of their own children and about ceding the responsibility of implicating values and behaviors to a multi-dimensional media marketplace over which they have no control...</p></blockquote>
<p>I wonder when research will be done to see just how many of those parents are actually taking an active role in their children's development. I realize that older children are harder to moderate, but it is certainly not impossible. The only thing my wife and I let our son watch/play is shows/games from <a href="http://www.noggin.com/" target="_blank">Noggin</a>. I have personally watched at least a couple of episodes of every show that airs on Noggin, and approve of them.</p>
<p>Don't get me wrong here. I do approve of any legislation that would keep such games out of the hands of young children. I am just afraid that such games will eventually be legislated out of existence by the likes of Clinton.  It is not the government's job to parent our children. It is ours.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/clinton-is-still-riding-the-video-game-violence-bandwagon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>October 2007 Issue of Python Magazine still free!</title>
		<link>http://geekblog.info/2007/12/october-2007-issue-of-python-magazine-still-free/</link>
		<comments>http://geekblog.info/2007/12/october-2007-issue-of-python-magazine-still-free/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 07:06:35 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Python]]></category>

		<category><![CDATA[Community]]></category>

		<category><![CDATA[PyMag]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/october-2007-issue-of-python-magazine-still-free/</guid>
		<description><![CDATA[Well, I stumbled across this jewel yesterday I believe. Unfortunately, all the links that were posted back in October were dead. Fret not, this issue is still available in PDF format for free. The catch, well the catch is you have to register on the pymag website.
I have not yet had the opportunity to read [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I stumbled across this jewel yesterday I believe. Unfortunately, all the links that were posted back in October were dead. Fret not, this <a href="http://pymag.phparch.com/c/issue/view/60" target="_blank">issue</a> is still available in PDF format for free. The catch, well the catch is you have to register on the <a href="http://pymag.phparch.com/" target="_blank">pymag</a> website.</p>
<p>I have not yet had the opportunity to read the issue. I am actually quite afraid that I will like it. A PDF subscription is a whopping 60 bucks a year.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/october-2007-issue-of-python-magazine-still-free/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu: Full Circle Magazine Issue 8 Released</title>
		<link>http://geekblog.info/2007/12/ubuntu-full-circle-magazine-issue-8-released/</link>
		<comments>http://geekblog.info/2007/12/ubuntu-full-circle-magazine-issue-8-released/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 06:58:21 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Community]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/ubuntu-full-circle-magazine-issue-8-released/</guid>
		<description><![CDATA[Issue 8 of Full Circle,the independent Ubuntu community magazine, was released this past Thursday.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://fullcirclemagazine.org/issue-8/" target="_blank">Issue 8</a> of <a href="http://fullcirclemagazine.org/" target="_blank">Full Circle</a>,the independent Ubuntu community magazine, was released this past Thursday.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/ubuntu-full-circle-magazine-issue-8-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What Wordpress plugins should I use?</title>
		<link>http://geekblog.info/2007/12/what-wordpress-plugins-should-i-use/</link>
		<comments>http://geekblog.info/2007/12/what-wordpress-plugins-should-i-use/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 21:14:49 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/what-wordpress-plugins-should-i-use/</guid>
		<description><![CDATA[I am still very new to blogging, and I've been trying to answer that question for the last couple of days.]]></description>
			<content:encoded><![CDATA[<p>I am still very new to blogging, and I've been trying to answer that question for the last couple of days. I just now happened to stumble across an article posted on <a href="http://www.ghacks.net/" target="_blank">gHacks.net</a> where <a href="http://www.ghacks.net/author/martin/" target="_blank">Martin</a> has listed the plugins that he uses over there.</p>
<blockquote><p>I hope this article mentions some plugins that are not that known and might be interesting for some webmasters who use Wordpress as their blogging plattform of choice.</p></blockquote>
<p>Good resource for newbie bloggers like me. Thanks Martin.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/what-wordpress-plugins-should-i-use/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why am I learning Python</title>
		<link>http://geekblog.info/2007/12/why-am-i-learning-python/</link>
		<comments>http://geekblog.info/2007/12/why-am-i-learning-python/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 22:03:32 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/why-am-i-learning-python/</guid>
		<description><![CDATA[After reading the article, I found myself to be motivated as well. If you've thought about learning any programming language, I suggest you head over to linux journal to read Eric Raymond's Why Python? article. ]]></description>
			<content:encoded><![CDATA[<p>I've been wanting to learn Python since I dabbled in it back in late 2000.</p>
<p>I use to play <a href='http://en.wikipedia.org/wiki/MUD' target='_blank'>MUDs</a> quite regularly. In fact, I am an official <a href='http://en.wikipedia.org/wiki/zMUD' target='_blank'>zMUD</a> Guru. Anyhow, while playing in linux, my client of choice was <a href="http://www.andreasen.org/mcl/" target="_blank">mcl</a>. Mcl offered both <a href='http://en.wikipedia.org/wiki/PERL' target='_blank'>PERL</a> (which I was already familiar with) and <a href='http://en.wikipedia.org/wiki/Python' target='_blank'>Python</a> scripting. Nothing ever came from that short-lived experience with <a href='http://en.wikipedia.org/wiki/Python' target='_blank'>Python</a> .</p>
<p>Then a couple of years ago, I grabbed a copy of Python Programming for Absolute Beginners from Amazon. As I have previously mentioned, I have only now dedicated myself to reading it.</p>
<p>So why the sudden dedication? Why Python? Well, I came across this article on <a href="http://www.learningpython.com/">learning python</a> titled <a href="http://www.learningpython.com/2005/12/04/why-python/" target="_blank">Why Python?</a> which just happened to link to a Linux Journal article by the same name written by Eric Raymond.</p>
<blockquote><p>One of the reasons that I decided to learn python and put up this website was a fantastic article written by <a href="http://www.catb.org/~esr/" target="_blank">Eric Raymond</a>. The article is title "Why Python?" and can be found <a href="http://www.linuxjournal.com/article/3882" target="_blank">here</a>.</p></blockquote>
<p>After reading the article, I found myself to be motivated as well. If you've thought about learning any programming language, I suggest you head over to linux journal to read Eric Raymond's <a href="http://www.linuxjournal.com/article/3882" target="_blank">Why Python?</a> article.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/why-am-i-learning-python/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Python Programming for the Absolute Beginner</title>
		<link>http://geekblog.info/2007/12/python-programming-for-the-absolute-beginner/</link>
		<comments>http://geekblog.info/2007/12/python-programming-for-the-absolute-beginner/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 18:44:28 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/python-programming-for-the-absolute-beginner/</guid>
		<description><![CDATA[...I am finding that the first handful of chapters are very basic and even boring. Nevertheless, I am dedicated to reading this book front to back if for no other reasons than to get a hold of Python's rather unique syntax.]]></description>
			<content:encoded><![CDATA[<div class="amtap-item" lang="en" xml:lang="en"><a href="http://www.amazon.com/gp/redirect.html%3FASIN=1598631128%26tag=geekblinfo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1598631128%253FSubscriptionId=13SX45PBJ3J04P44SNG2"><img src="http://ecx.images-amazon.com/images/I/512XSm2lNhL._SL110_.jpg" width="89" height="110" alt=""/></a><br />
<h3><a href="http://www.amazon.com/gp/redirect.html%3FASIN=1598631128%26tag=geekblinfo-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1598631128%253FSubscriptionId=13SX45PBJ3J04P44SNG2">Python Programming for the Absolute Beginner, Second Edition (For the Absolute Beginner)</a></h3>
<p class="author">Michael Dawson.					Course Technology PTR 2005, 					Paperback,				472 pages,				&#36;29.99</p>
</div>
<p>This is a book I picked up a couple of years ago when I first became interested in Python. Unfortunately, due to life throwing a monkey wrench into my plans, I was never able to finish the book. In fact, I didn't get past the first two chapters.</p>
<p>Now that I've been able to pick up this book again, I am finding that the first handful of chapters are very basic and even boring. Nevertheless, I am dedicated to reading this book front to back if for no other reasons than to get a hold of Python's rather unique syntax.</p>
<p>I plan to give this book a proper review once I have finished reading it.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/python-programming-for-the-absolute-beginner/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dive Into Python: Python from novice to pro</title>
		<link>http://geekblog.info/2007/12/dive-into-python-python-from-novice-to-pro/</link>
		<comments>http://geekblog.info/2007/12/dive-into-python-python-from-novice-to-pro/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 21:18:14 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[book:isbn=1590593561]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[mod-rewrite]]></category>

		<guid isPermaLink="false">http://geekblog.info/2007/12/dive-into-python-python-from-novice-to-pro/</guid>
		<description><![CDATA[Today I wrote a quick bit of PHP to dynamically replace the custom Google search in the Dive Into Python mirror.]]></description>
			<content:encoded><![CDATA[<p>Today I put the finishing touches on the <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FDive-Into-Python-Mark-Pilgrim%2Fdp%2F1590593561&amp;tag=geekblinfo-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325" target="_blank" title="Dive Into Python">Dive Into Python</a> mirror over at http://diveintopython.geekblog.info .</p>
<p>I decided that rather than editing the source of every file to include my own custom Google search, I'd use apache mod-rewrite and php to replace relevant code on the fly and cache it.  It is really simple, but does the job quite well.</p>
<p>The PHP Code:</p>
<pre class="php"><span style="color: #808080; font-style: italic;">// Send content type</span>
<a href="http://www.php.net/header"><span style="color: #000066;">header</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Content-type: text/html'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Check if a cached version is available</span>
<span style="color: #808080; font-style: italic;">// If it is, print and die</span>
<span style="color: #0000ff;">$cachename</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/'</span>,<span style="color: #ff0000;">'_'</span>,<span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'FILE'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #000066;">file_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cache/'</span>.<span style="color: #0000ff;">$cachename</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cache/'</span>.<span style="color: #0000ff;">$cachename</span><span style="color: #66cc66;">&#41;</span>;
	<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// Get the file we're asking for</span>
<span style="color: #0000ff;">$realHTML</span> = <a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'FILE'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Ads</span>
<span style="color: #0000ff;">$ads</span> = <a href="http://www.php.net/file_get_contents"><span style="color: #000066;">file_get_contents</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'inc/ads'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// Replace SSI with real ads</span>
<span style="color: #0000ff;">$shtml</span> = <span style="color: #ff0000;">'&lt;!--#include virtual=&quot;/inc/ads&quot; --&gt;'</span>;
<span style="color: #0000ff;">$realHTML</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$shtml</span>, <span style="color: #0000ff;">$ads</span>, <span style="color: #0000ff;">$realHTML</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Proudly Hosted By</span>
<span style="color: #0000ff;">$hosted</span> = <span style="color: #ff0000;">&quot;
&lt;p class=&quot;</span>Footer<span style="color: #ff0000;">&quot; style=&quot;</span>border-top: medium none; margin-bottom: 8px<span style="color: #ff0000;">&quot;&gt;&lt;u&gt;Dive Into Python&lt;/u&gt; by Mark Pilgrim is proudly mirrored by &lt;a href=&quot;</span>http:<span style="color: #808080; font-style: italic;">//geekblog.info/&quot;&gt;GeekBlog.info&lt;/a&gt;&quot;;</span>
<span style="color: #0000ff;">$body</span> = <span style="color: #ff0000;">&quot;&quot;</span>;
<span style="color: #0000ff;">$realHTML</span> = <a href="http://www.php.net/preg_replace"><span style="color: #000066;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/$body/i&quot;</span>, <span style="color: #0000ff;">$hosted</span>, <span style="color: #0000ff;">$realHTML</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Replace the default Custom Google Search</span>
<span style="color: #0000ff;">$oldSearch</span> = <a href="http://www.php.net/addcslashes"><span style="color: #000066;">addcslashes</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'
&lt;form id=&quot;search&quot; method=&quot;get&quot; action=&quot;http://www.google.com/custom&quot;&gt;<span style="color: #000099; font-weight: bold;">\s</span>+
&nbsp;
&lt;label for=&quot;q&quot; accesskey=&quot;4&quot;&gt;Find: &lt;/label&gt;
&lt;input id=&quot;q&quot; name=&quot;q&quot; size=&quot;20&quot; maxlength=&quot;255&quot; value=&quot; &quot; type=&quot;text&quot; /&gt;
&lt;input value=&quot;Search&quot; type=&quot;submit&quot; /&gt;
&lt;input name=&quot;cof&quot; value=&quot;LW:752;L:http://diveintopython.org/images/diveintopython.png;LH:42;AH:left;GL:0;AWFID:3ced2bb1f7f1b212;&quot; type=&quot;hidden&quot; /&gt;
&lt;input name=&quot;domains&quot; value=&quot;diveintopython.org&quot; type=&quot;hidden&quot; /&gt;
&lt;input name=&quot;sitesearch&quot; value=&quot;diveintopython.org&quot; type=&quot;hidden&quot; /&gt;
&nbsp;
<span style="color: #000099; font-weight: bold;">\s</span>+&lt;/form&gt;
&nbsp;
'</span>,<span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$newSearch</span> = <span style="color: #ff0000;">'
&lt;!-- Google CSE Search Box Begins  --&gt;
&lt;form action=&quot;http://www.google.com/cse&quot; id=&quot;searchbox_004948342960141248740:vdxqp1bv-tm&quot;&gt;
&lt;input name=&quot;cx&quot; value=&quot;004948342960141248740:vdxqp1bv-tm&quot; type=&quot;hidden&quot; /&gt;
&lt;input name=&quot;q&quot; size=&quot;25&quot; type=&quot;text&quot; /&gt;
&lt;input name=&quot;sa&quot; value=&quot;Search&quot; type=&quot;submit&quot; /&gt;
&lt;/form&gt;
&nbsp;
&lt;script src=&quot;http://www.google.com/coop/cse/brand?form=searchbox_004948342960141248740%3Avdxqp1bv-tm&amp;amp;lang=en&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;!-- Google CSE Search Box Ends --&gt;
'</span>;
&nbsp;
<span style="color: #0000ff;">$realHTML</span> = <a href="http://www.php.net/preg_replace"><span style="color: #000066;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/$oldSearch/i&quot;</span>, <span style="color: #0000ff;">$newSearch</span>, <span style="color: #0000ff;">$realHTML</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Create a cached version</span>
<span style="color: #0000ff;">$cache</span> = <a href="http://www.php.net/fopen"><span style="color: #000066;">fopen</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;cache/&quot;</span>.<span style="color: #0000ff;">$cachename</span>, <span style="color: #ff0000;">&quot;w&quot;</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/fwrite"><span style="color: #000066;">fwrite</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$cache</span>, <span style="color: #0000ff;">$realHTML</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/fclose"><span style="color: #000066;">fclose</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$cache</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// print and die</span>
<a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #0000ff;">$realHTML</span>;
<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>The Apache Code (.htaccess):</p>
<pre class="apache">&lt;ifmodule&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
<span style="color: #00007f;">RewriteBase</span> /
&nbsp;
<span style="color: #00007f;">RewriteCond</span> %<span style="color: #66cc66;">&#123;</span>SCRIPT_FILENAME<span style="color: #66cc66;">&#125;</span> -f
<span style="color: #00007f;">RewriteRule</span> ^<span style="color: #66cc66;">&#40;</span>.+\.html<span style="color: #66cc66;">&#41;</span>$ /hostedby.php?FILE=$<span style="color: #ff0000;">1</span> <span style="color: #66cc66;">&#91;</span>nc,qsa,l<span style="color: #66cc66;">&#93;</span>
&lt;/ifmodule&gt;
&nbsp;</pre>
<p>Head on over to <a href="http://diveintopython.geekblog.info/">Dive Into Python</a> to check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/dive-into-python-python-from-novice-to-pro/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://geekblog.info/2007/12/hello-world/</link>
		<comments>http://geekblog.info/2007/12/hello-world/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 04:49:00 +0000</pubDate>
		<dc:creator>William</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://geekblog.info/?p=1</guid>
		<description><![CDATA["Hello World" is a classic. A very suitable first post using highlighted PHP code to print the words, "Hello World".]]></description>
			<content:encoded><![CDATA[<p>Testing code highlighting.</p>
<pre class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'highlight'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <a href="http://www.php.net/print"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;Hello World&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
]]></content:encoded>
			<wfw:commentRss>http://geekblog.info/2007/12/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
