<?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>Tommy George . com &#187; programming</title>
	<atom:link href="http://www.tommygeorge.com/blog/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tommygeorge.com/blog</link>
	<description>( a real life, text-based adventure )</description>
	<lastBuildDate>Wed, 28 Jul 2010 06:31:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Things that are annoying me at the moment</title>
		<link>http://www.tommygeorge.com/blog/2009-04-17/things-that-are-annoying-me-at-the-moment/</link>
		<comments>http://www.tommygeorge.com/blog/2009-04-17/things-that-are-annoying-me-at-the-moment/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 15:59:15 +0000</pubDate>
		<dc:creator>Tommy George</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[annoying]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.tommygeorge.com/blog/2009-04-17/things-that-are-annoying-me-at-the-moment/</guid>
		<description><![CDATA[Here&#8217;s a quick list of a few programming-related things that are irritating me at the current time: Inconsistent, illogical, or just plain poor indentation of code. A previous developers apparent thought process concerning the lack of a need to pass function arguments when everything you need can just be pulled in from Global scope. &#8220;If&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick list of a few programming-related things that are irritating me at the current time:</p>
<ul>
<li>Inconsistent, illogical, or just plain poor indentation of code.</li>
<li>A previous developers apparent thought process concerning the lack of a need to pass function arguments when everything you need can just be pulled in from Global scope.</li>
<li>&#8220;If&#8221; statements with no braces, mixed in with &#8220;If&#8221; statements <em>with</em> braces, and other strange inconsistencies.</li>
</ul>
<p>But it&#8217;s okay everyone! I am patient, and loving, and will help this little code-base learn to use it&#8217;s gifts and talents for good.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tommygeorge.com/blog/2009-04-17/things-that-are-annoying-me-at-the-moment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Side Effects</title>
		<link>http://www.tommygeorge.com/blog/2008-10-10/side-effects/</link>
		<comments>http://www.tommygeorge.com/blog/2008-10-10/side-effects/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 22:40:59 +0000</pubDate>
		<dc:creator>Tommy George</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[microwaves]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[side-effects]]></category>

		<guid isPermaLink="false">http://www.tommygeorge.com/blog/?p=172</guid>
		<description><![CDATA[Being a programmer sometimes has interesting side-effects on every-day situations. Today, for instance, I was doing a lot of automation related programming, and some basic shell scripting. Only the shell scripting was really out of the ordinary. I arrived home after work, and found a nice frozen treat to hold me over until the movies [...]]]></description>
			<content:encoded><![CDATA[<p>Being a programmer sometimes has interesting side-effects on every-day situations.</p>
<p>Today, for instance, I was doing a lot of automation related programming, and some basic shell scripting. Only the shell scripting was really out of the ordinary. I arrived home after work, and found a nice frozen treat to hold me over until the movies tonite. It&#8217;s instructions called for defrosting before cooking. My first instinct was to somehow script the microwave to defrost for a time, then immediately begin cooking.</p>
<p>It was almost reactionary to the thought of having to come back to the kitchen to interact with the microwave a second time.</p>
<p>Perhaps I&#8217;ve been working too hard?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tommygeorge.com/blog/2008-10-10/side-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Django Debugging Tips from Simon Willison</title>
		<link>http://www.tommygeorge.com/blog/2008-09-26/great-django-debugging-tips-from-simon-willison/</link>
		<comments>http://www.tommygeorge.com/blog/2008-09-26/great-django-debugging-tips-from-simon-willison/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 02:48:08 +0000</pubDate>
		<dc:creator>Tommy George</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.tommygeorge.com/blog/?p=168</guid>
		<description><![CDATA[http://simonwillison.net/2008/May/22/debugging/ Includes: Making the most of the error page Logging to the development server console Using the debugger (pdb) Handling errors in production]]></description>
			<content:encoded><![CDATA[<p><a title="Great Django Debugging tips from Simon Willison" href="http://simonwillison.net/2008/May/22/debugging/">http://simonwillison.net/2008/May/22/debugging/</a></p>
<p>Includes:</p>
<ul>
<li>Making the most of the error page</li>
<li>Logging to the development server console</li>
<li>Using the debugger (pdb)</li>
<li>Handling errors in production</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tommygeorge.com/blog/2008-09-26/great-django-debugging-tips-from-simon-willison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP/MySQL Conundrum: Inserting Large Data with PHP Memory Limits</title>
		<link>http://www.tommygeorge.com/blog/2008-09-17/phpmysql-conundrum-inserting-large-data-with-php-memory-limits/</link>
		<comments>http://www.tommygeorge.com/blog/2008-09-17/phpmysql-conundrum-inserting-large-data-with-php-memory-limits/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 16:17:47 +0000</pubDate>
		<dc:creator>Tommy George</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[conundrum]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[solved]]></category>

		<guid isPermaLink="false">http://www.tommygeorge.com/blog/?p=158</guid>
		<description><![CDATA[I recently inherited a PHP application that stores uploaded PDF and JPG files in a MySQL database. Unfortunately, it is way beyond scope (and original architecture) to change this fact. Given that, there are some memory limit problems when the initial file is quite large as it&#8217;s contents are read to a variable which is [...]]]></description>
			<content:encoded><![CDATA[<p>I recently inherited a PHP application that stores uploaded PDF and JPG files in a MySQL database. Unfortunately, it is way beyond scope (and original architecture) to change this fact. Given that, there are some memory limit problems when the initial file is quite large as it&#8217;s contents are read to a variable which is evetually placed into the MySQL INSERT query.</p>
<p>Is there a method of updating/inserting to a MySQL field with binary/data directly from disk, or of somehow not reading in the file contents through PHP?</p>
<p>Also, my first thought was to buffer the file in with PHP and use CONCAT, where PHP only has a portion of the data at any given time &#8211; but that would require many DB queries (one for each buffered portion of the file), not to mention the very idea just sounds wrong.</p>
<p>Am I thinking about this the wrong way?</p>
<h3>UPDATE:</h3>
<p>There is a way, and it&#8217;s <a title="MySQL Documentation for LOAD_FILE()" href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_load-file">documented in the MySQL Manual</a>, tho&#8217; it took me a bit of searching to find it. The problem, in my case, is that it comes with this caveat:</p>
<blockquote><p>To           use this function, the file must be located on the server           host, you must specify the full pathname to the file, and you           must have the <code class="literal">FILE</code> privilege.</p></blockquote>
<p>Which makes sense, but will probably prevent me from being able to use this method.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tommygeorge.com/blog/2008-09-17/phpmysql-conundrum-inserting-large-data-with-php-memory-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
