<?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>gnucom.cc &#187; Programming</title>
	<atom:link href="http://blog.gnucom.cc/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gnucom.cc</link>
	<description>Code snippets and more...</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Linking shared object files that aren&#8217;t explicity used.</title>
		<link>http://blog.gnucom.cc/2012/linking-shared-object-files-that-arent-explicity-used/</link>
		<comments>http://blog.gnucom.cc/2012/linking-shared-object-files-that-arent-explicity-used/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 09:01:51 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=1179</guid>
		<description><![CDATA[Today I learned something from a nice stranger I met on the internet in the #stackoverflow channel on irc.freenode.net named at cky944. For a personal project I&#8217;m modifying the Hoard memory allocator &#8212; a shared object library that application programs can link with to replace memory allocation code (e.g., malloc, free, etc.). Other users of [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2012/linking-shared-object-files-that-arent-explicity-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating a square root.</title>
		<link>http://blog.gnucom.cc/2010/calculating-a-square-root/</link>
		<comments>http://blog.gnucom.cc/2010/calculating-a-square-root/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 02:19:01 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scheme]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=1130</guid>
		<description><![CDATA[I was just recently asked to calculate the square root of 17 without a math library. I couldn&#8217;t do it when I was asked to, so the question has been bugging me of awhile. I was bored today, so I decided to figure it out. The following is a Python function that calculates the square [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/calculating-a-square-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write HTTP request to web server with PHP.</title>
		<link>http://blog.gnucom.cc/2010/write-http-request-to-web-server-with-php/</link>
		<comments>http://blog.gnucom.cc/2010/write-http-request-to-web-server-with-php/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 18:50:10 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=830</guid>
		<description><![CDATA[I&#8217;ve recently built a proxy server that manually handles a lot of HTTP exchanges. I summarized the proxy&#8217;s read/writing to the server here. It actually is very simple: format a request in the form of an HTTP header, send the request to the server, and then read the server&#8217;s response. // OPEN SOCKET TO SERVER [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/write-http-request-to-web-server-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using reduce in Python.</title>
		<link>http://blog.gnucom.cc/2010/using-reduce-in-python/</link>
		<comments>http://blog.gnucom.cc/2010/using-reduce-in-python/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 01:46:36 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=825</guid>
		<description><![CDATA[Python has a built in operator called reduce. This is just another name for what a functional programmer would called a fold. They&#8217;re really useful, but you don&#8217;t know so until you actually need one. The easiest example to understand is listed below and is the same example provided on Python&#8217;s documentation. lon = &#91;1, [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/using-reduce-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculate file age in Python.</title>
		<link>http://blog.gnucom.cc/2010/calculate-file-age-in-python/</link>
		<comments>http://blog.gnucom.cc/2010/calculate-file-age-in-python/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 01:15:38 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[time & dates]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=726</guid>
		<description><![CDATA[I use a file&#8217;s age for many things, especially when it comes to monitoring servers with nagios. Every language has their own modules to do these things, so here is my quick example to calculate a file&#8217;s age with Python. import os from datetime import datetime stat = os.stat&#40;'/etc/php.ini'&#41; fileage = datetime.fromtimestamp&#40;stat.st_mtime&#41; now = datetime.now&#40;&#41; [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/calculate-file-age-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source database for books.</title>
		<link>http://blog.gnucom.cc/2010/open-source-database-for-books/</link>
		<comments>http://blog.gnucom.cc/2010/open-source-database-for-books/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 05:40:41 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Open Library]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[thumbnails]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=684</guid>
		<description><![CDATA[Have you ever wanted to add your favorite book&#8217;s thumbnail or description to webpage or blog? I did, but I couldn&#8217;t find a really good book knowledgebase/database where I could query for book information and thumbs. I found two really great options: Google Dynamic Links Open Library Both are identical implementations, but one is run [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/open-source-database-for-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print string permutations with Java.</title>
		<link>http://blog.gnucom.cc/2010/print-string-permutations-with-java/</link>
		<comments>http://blog.gnucom.cc/2010/print-string-permutations-with-java/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 07:08:14 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[recursion]]></category>

		<guid isPermaLink="false">http://gnucom.cc/blog/?p=579</guid>
		<description><![CDATA[I wrote this just to exercise my old java skills. If you find a use for it, let me know what you did with it! import java.util.*; &#160; public class Permute &#123; LinkedList&#60;String&#62; orig; &#160; public Permute&#40;LinkedList&#60;String&#62; _orig&#41; &#123; orig = _orig; &#125; &#160; public LinkedList&#60;String&#62; BuildPerms&#40;LinkedList&#60;String&#62; thisOrig&#41; &#123; Iterator&#60;String&#62; itr = thisOrig.iterator&#40;&#41;; LinkedList&#60;String&#62; thisSol [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/print-string-permutations-with-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

