<?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>a.Tidwell blog &#187; Programming</title>
	<atom:link href="http://aarontidwell.com/wordpress/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://aarontidwell.com/wordpress</link>
	<description>Random thoughts...</description>
	<lastBuildDate>Fri, 07 Aug 2009 16:38:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jquery + canvas</title>
		<link>http://aarontidwell.com/wordpress/2009/01/jquery-canvas-2/</link>
		<comments>http://aarontidwell.com/wordpress/2009/01/jquery-canvas-2/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 19:13:19 +0000</pubDate>
		<dc:creator>Tidwell</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aarontidwell.com/wordpress/?p=35</guid>
		<description><![CDATA[Why hasn&#8217;t anyone written a good jquery plugin for interacting, manipulating, and animating canvas elements via jquery?  I&#8217;ve found some very basic libraries, but nothing that approaches the point where they could be mainstream&#8230; project?
]]></description>
			<content:encoded><![CDATA[<p>Why hasn&#8217;t anyone written a good jquery plugin for interacting, manipulating, and animating canvas elements via jquery?  I&#8217;ve found some very basic libraries, but nothing that approaches the point where they could be mainstream&#8230; project?</p>
]]></content:encoded>
			<wfw:commentRss>http://aarontidwell.com/wordpress/2009/01/jquery-canvas-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now this looks like fun&#8230;</title>
		<link>http://aarontidwell.com/wordpress/2008/04/now-this-looks-like-fun/</link>
		<comments>http://aarontidwell.com/wordpress/2008/04/now-this-looks-like-fun/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 13:10:18 +0000</pubDate>
		<dc:creator>Tidwell</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aarontidwell.com/wordpress/?p=32</guid>
		<description><![CDATA[Its nice that they changed the start date to be Saturday morning &#8211; it might give me time to do it.  Looks like fun  
http://cssoff.com/
]]></description>
			<content:encoded><![CDATA[<p>Its nice that they changed the start date to be Saturday morning &#8211; it might give me time to do it.  Looks like fun <img src='http://aarontidwell.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
<a href="http://cssoff.com/">http://cssoff.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://aarontidwell.com/wordpress/2008/04/now-this-looks-like-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holy Crap I need this on my ipod&#8230;</title>
		<link>http://aarontidwell.com/wordpress/2008/03/holy-crap-i-need-this-on-my-ipod/</link>
		<comments>http://aarontidwell.com/wordpress/2008/03/holy-crap-i-need-this-on-my-ipod/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 21:37:16 +0000</pubDate>
		<dc:creator>Tidwell</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aarontidwell.com/wordpress/?p=31</guid>
		<description><![CDATA[Found this on Digg earlier today&#8230;
Dude is a bit stuttery..but the info is right at least  
Tag your look and feel on a separate stylesheet, yo.


]]></description>
			<content:encoded><![CDATA[<p>Found this on Digg earlier today&#8230;</p>
<p>Dude is a bit stuttery..but the info is right at least <img src='http://aarontidwell.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Tag your look and feel on a separate stylesheet, yo.</p>
<p>
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/a0qMe7Z3EYg&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/a0qMe7Z3EYg&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://aarontidwell.com/wordpress/2008/03/holy-crap-i-need-this-on-my-ipod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invisible Myspace Trakzor</title>
		<link>http://aarontidwell.com/wordpress/2007/10/invisible-myspace-trakzor/</link>
		<comments>http://aarontidwell.com/wordpress/2007/10/invisible-myspace-trakzor/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 15:53:00 +0000</pubDate>
		<dc:creator>Tidwell</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aarontidwell.com/wordpress/?p=28</guid>
		<description><![CDATA[So, I&#8217;ll keep this brief &#8211; anyone who has trakzor probably knows I registered for the dumb thing and dropped it on my myspace just because I&#8217;m curious as to how it works (which is now obviously ip logging &#8211; I was testing with proxies yesterday, and they showed up today &#8211; though it may [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ll keep this brief &#8211; anyone who has <a href="http://www.trakzor.com" target="new">trakzor</a> probably knows I registered for the dumb thing and dropped it on my myspace just because I&#8217;m curious as to how it works (which is now obviously ip logging &#8211; I was testing with proxies yesterday, and they showed up today &#8211; though it may read your myspace cookie information which is just scary).  Anyway, I don&#8217;t want to give them any free advertising and their graphics would look ugly on my myspace so all I had to do was modify their code a little bit and it works to not display the graphic, yet still track who looks @ your page&#8230;Heres the couple of steps to compile your code after the cut:</p>
<p><span id="more-28"></span></p>
<p>1.  Go to <a href="http://www.trakzor.com" target="new">Trakzor</a> and click on profile code at the top.  Copy that code into a text editor (or just into your myspace about me section)  then add the following around it:</p>
<pre>
<code>&lt;div style="display: none; height: 1px; width: 1px;"&gt;
THE CODE FROM TRAKZOR GOES HERE
&lt;/div&gt;
</code>
</pre>
<p>After, you should have something that looks like this (you will see numbers instead of XXXX in the code, and there will be a space between the &#8216;a&#8217; and &#8216;href&#8217;):</p>
<pre>
<code>&lt;div style="display: none; height: 1px; width: 1px;"&gt;
&lt;ahref="http://www.dlrowehtfodne.com/?ref=XXXXXXX"&gt;
&lt;img src="http://www.dlrowehtfodne.com/images/XXXXXXXXX.gif" border="0"&gt;</a>
&lt;/div&gt;
</code>
</pre>
<p>I&#8217;m 99% sure this works in safari, firefox 1.5+, ie7, and ie6.  I like the service, I just hate giving them advertising and cluttering my myspace with more ads than what myspace forces on ya&#8230;</p>
<p>If anyone hasn&#8217;t registered for trakzor before and you do register and want to get around the &#8220;you have to send out a bulletin&#8221; thing when you first login, then leave a comment &#8211; its a slightly more complicated method of viewing the source and modifying some variables in the URL header info, but I could lead ya through</p>
]]></content:encoded>
			<wfw:commentRss>http://aarontidwell.com/wordpress/2007/10/invisible-myspace-trakzor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sweet Regex thing&#8230;</title>
		<link>http://aarontidwell.com/wordpress/2007/10/sweet-regex-thing/</link>
		<comments>http://aarontidwell.com/wordpress/2007/10/sweet-regex-thing/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 18:53:38 +0000</pubDate>
		<dc:creator>Tidwell</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://aarontidwell.com/wordpress/?p=27</guid>
		<description><![CDATA[Most of you probably will have no idea what this is&#8230;but it its my first example of using regular expressions to do string parsing and feeding that back as a function call..its well documented &#8211; check it after the break


&#60;?php
/*
Takes a string ($text) and replaces all regex matches with the return from a function call [...]]]></description>
			<content:encoded><![CDATA[<p>Most of you probably will have no idea what this is&#8230;but it its my first example of using regular expressions to do string parsing and feeding that back as a function call..its well documented &#8211; check it after the break</p>
<p><span id="more-27"></span></p>
<pre>
<code>&lt;?php
/*
Takes a string ($text) and replaces all regex matches with the return from a function call of the same name.
Usage:  run_replace_callback($regex, $text);
You can overload the defaults set below in the function call
	overloaded example: run_replace_callback('/:([a-zA-Z_]+)/', 'this is the text :functiontodo');
*/

//the regular expression used for parsing
$regex = '/:([a-zA-Z_]+)/';
//the preface tag to add to the string before calling the function
$func_preface = 'userfunction_';
//the string to be parsed
$text = "This is some text and do the following function :dofunction and more text";

//the functions that render the replacement text - note that all function names must start with the value of $func_preface
//Place all functions below -- if you have a lot, probably will want to put these in another included php file
function userfunction_dofunction() {
  return 'FUNCTION RESULT';
}
//END FUNCTIONS

//the function that takes the matched text, adds the preface, and runs the function if it exists.  Otherwise returns the full match
function run_user_function($matches) {
	global $func_preface;
	// as usual: $matches[0] is the complete match
	// $matches[1] the match for the first subpattern
	$function = $func_preface.$matches[1];
	if(function_exists($function)) {
		return call_user_func($function);
	}
}

//the function that accepts the regex to use and the text to use and runs the preg_replace_callback function
function run_replace_callback($regex_to_use, $text_to_use) {
	echo preg_replace_callback(
			$regex_to_use,
            'run_user_function',
            $text_to_use);
}
?&gt;</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://aarontidwell.com/wordpress/2007/10/sweet-regex-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
