<?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>Ryan Joy (atxryan) &#187; code</title>
	<atom:link href="http://ryanjoy.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanjoy.com</link>
	<description>Web developer living and playing in Austin, Texas</description>
	<lastBuildDate>Thu, 24 May 2012 21:09:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>sortvis.org &#8211; sorting algorithm visualisations</title>
		<link>http://ryanjoy.com/2010/07/sortvis-org-sorting-algorithm-visualisations/</link>
		<comments>http://ryanjoy.com/2010/07/sortvis-org-sorting-algorithm-visualisations/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 20:12:38 +0000</pubDate>
		<dc:creator>atxryan</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://delicious.com/url/d6a04472d198ec41df8ff09defc5d8ac#atxryan</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2010/07/sortvis-org-sorting-algorithm-visualisations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate Bundles &#8211; /trunk/Bundles</title>
		<link>http://ryanjoy.com/2010/06/textmate-bundles-trunkbundles/</link>
		<comments>http://ryanjoy.com/2010/06/textmate-bundles-trunkbundles/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 18:35:23 +0000</pubDate>
		<dc:creator>atxryan</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[bundles]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[Textmate]]></category>

		<guid isPermaLink="false">http://delicious.com/url/e8d544d6cc4ff8080c8960dd83922496#atxryan</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2010/06/textmate-bundles-trunkbundles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Bubbles Project: Rethinking the User Interface Paradigm of Integrated Development Environments</title>
		<link>http://ryanjoy.com/2010/03/code-bubbles-project-rethinking-the-user-interface-paradigm-of-integrated-development-environments/</link>
		<comments>http://ryanjoy.com/2010/03/code-bubbles-project-rethinking-the-user-interface-paradigm-of-integrated-development-environments/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 23:24:31 +0000</pubDate>
		<dc:creator>atxryan</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://delicious.com/url/42dae5255da9eeac3a95ca4ecdde9c69#atxryan</guid>
		<description><![CDATA[The essential goal of this project is to make it easier for developers to see many fragments of code (or other information) at once without having to navigate back and forth. Each of these fragments is shown in a bubble.]]></description>
			<content:encoded><![CDATA[<p>The essential goal of this project is to make it easier for developers to see many fragments of code (or other information) at once without having to navigate back and forth. Each of these fragments is shown in a bubble.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2010/03/code-bubbles-project-rethinking-the-user-interface-paradigm-of-integrated-development-environments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evolution of a Python programmer.py</title>
		<link>http://ryanjoy.com/2010/01/evolution-of-a-python-programmer-py/</link>
		<comments>http://ryanjoy.com/2010/01/evolution-of-a-python-programmer-py/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 21:30:53 +0000</pubDate>
		<dc:creator>atxryan</dc:creator>
				<category><![CDATA[Shared]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://delicious.com/url/951e2b656d7ea4cf0c4ef752f0edb6d2#atxryan</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2010/01/evolution-of-a-python-programmer-py/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily delivery of an electronic newspaper</title>
		<link>http://ryanjoy.com/2008/02/daily-delivery-of-an-electronic-newspaper/</link>
		<comments>http://ryanjoy.com/2008/02/daily-delivery-of-an-electronic-newspaper/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 12:00:27 +0000</pubDate>
		<dc:creator>Ryan Joy</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.atxryan.com/2008/02/05/daily-delivery-of-an-electronic-newspaper/</guid>
		<description><![CDATA[I subscribe to Investor&#8217;s Business Daily for insight and valuable education as I gradually learn how to effectively invest in the market. It comes out Monday-Friday and obviously is very time relevant. I initially signed up for the print version so that I could read it on the bus and have something to highlight. However, [...]]]></description>
			<content:encoded><![CDATA[<p>I subscribe to Investor&#8217;s Business Daily for insight and valuable education as I gradually learn how to effectively invest in the market.  It comes out Monday-Friday and obviously is very time relevant.  I initially signed up for the print version so that I could read it on the bus and have something to highlight.  However, I ended up never getting it on time because it&#8217;d come in while I was at work and I&#8217;d end up not even looking at it when I got home.  I switched to the electronic version, but then I&#8217;d end up not downloading and reading the thing for weeks at a time.  I needed an &#8216;in-your-face&#8217; solution, so I wrote up this little PHP script to automatically download the eIBD every day and a separate shell script to open the PDF at 9am on my computer every weekday morning.  So, I essentially have it &#8216;delivered&#8217; to my desktop when I log on my Mac in the morning!</p>
<p>Here&#8217;s an example script to show how I did it.  I&#8217;ve removed the information specific to IBD.  Keep in mind that this script, as presented, does not log in to anything and assumed a filename format like 020508.pdf.  I wrote these scripts for Mac OS X 10.4 and used Cronnix to create the crontab entry.  It could easily be done on a Windows machine as well using the utilities provided by that system.</p>
<pre class="textmate-source cobalt">
<span class="text text_html text_html_basic"><span class="source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html"><span class="punctuation punctuation_definition punctuation_definition_embedded punctuation_definition_embedded_begin punctuation_definition_embedded_begin_php">&lt;?php</span>
<span class="comment comment_line comment_line_double-slash comment_line_double-slash_php"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_php">//</span>
</span><span class="comment comment_line comment_line_double-slash comment_line_double-slash_php"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_php">//</span> Provided as-is without warranty.
</span><span class="comment comment_line comment_line_double-slash comment_line_double-slash_php"><span class="punctuation punctuation_definition punctuation_definition_comment punctuation_definition_comment_php">//</span>
</span>

<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_interface support_function_interface_php">curl_init</span>()<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>today</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">mdy</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>)

<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span><span class="keyword keyword_control keyword_control_php">if</span>(<span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">w</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>) <span class="keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php">==</span> <span class="constant constant_numeric constant_numeric_php">0</span>) {
  <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$monday</span></span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_php_date support_function_php_date_php">mktime</span>(<span class="constant constant_numeric constant_numeric_php">0</span>, <span class="constant constant_numeric constant_numeric_php">0</span>, <span class="constant constant_numeric constant_numeric_php">0</span>, <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">m</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>), <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">d</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>)<span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_php">+</span><span class="constant constant_numeric constant_numeric_php">1</span>, <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">y</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>))<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
  <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>today</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">mdy</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>, <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$monday</span></span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
}

<span class="keyword keyword_control keyword_control_php">if</span>(<span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">w</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>) <span class="keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php">==</span>  <span class="constant constant_numeric constant_numeric_php">6</span>) {
  <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$monday</span></span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_php_date support_function_php_date_php">mktime</span>(<span class="constant constant_numeric constant_numeric_php">0</span>, <span class="constant constant_numeric constant_numeric_php">0</span>, <span class="constant constant_numeric constant_numeric_php">0</span>, <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">m</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>), <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">d</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>)<span class="keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_php">+</span><span class="constant constant_numeric constant_numeric_php">2</span>, <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">y</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>))<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
  <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>today</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_php_date support_function_php_date_php">date</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">mdy</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>, <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>monday</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
}

<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>pdf_url</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php"><a href="http://www.example.com/pdf/" rel="nofollow">http://www.example.com/pdf/</a></span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span> <span class="keyword keyword_operator keyword_operator_string keyword_operator_string_php">.</span> <span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php"><span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>today</span>.pdf</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span><span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>fp</span> <span class="keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php">=</span> <span class="support support_function support_function_file support_function_file_php">fopen</span>(<span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">/Users/username/path/to/pdf/archive/<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>today</span>.pdf</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>, <span class="string string_quoted string_quoted_double string_quoted_double_php"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_php">"</span><span class="meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php">w</span><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_php">"</span></span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>

<span class="support support_function support_function_interface support_function_interface_php">curl_setopt</span> (<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span>, <span class="constant constant_other constant_other_php">CURLOPT_URL</span>, <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>pdf_url</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="support support_function support_function_interface support_function_interface_php">curl_setopt</span> (<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span>, <span class="constant constant_other constant_other_php">CURLOPT_FILE</span>, <span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>fp</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="support support_function support_function_interface support_function_interface_php">curl_setopt</span> (<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span>, <span class="constant constant_other constant_other_php">CURLOPT_HEADER</span>, <span class="constant constant_numeric constant_numeric_php">0</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="support support_function support_function_interface support_function_interface_php">curl_exec</span> (<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="support support_function support_function_interface support_function_interface_php">curl_close</span> (<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>ch</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="support support_function support_function_file support_function_file_php">fclose</span>(<span class="variable variable_other variable_other_php"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_php">$</span>fp</span>)<span class="punctuation punctuation_terminator punctuation_terminator_expression punctuation_terminator_expression_php">;</span>
<span class="punctuation punctuation_definition punctuation_definition_embedded punctuation_definition_embedded_end punctuation_definition_embedded_end_php"><span class="source source_php">?</span>&gt;</span>
</span></span></pre>
<p>And the shell script to open the PDF&#8230;</p>
<pre class="textmate-source cobalt"><span class="source source_shell">DATE=<span class="string string_interpolated string_interpolated_backtick string_interpolated_backtick_shell"><span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_begin punctuation_definition_string_begin_shell">`</span>date '+%m%d%y'<span class="punctuation punctuation_definition punctuation_definition_string punctuation_definition_string_end punctuation_definition_string_end_shell">`</span></span><span class="keyword keyword_operator keyword_operator_list keyword_operator_list_shell">;</span>
FILE=<span class="keyword keyword_operator keyword_operator_tilde keyword_operator_tilde_shell">~</span>/path/to/pdf/archive/<span class="variable variable_other variable_other_bracket variable_other_bracket_shell"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">${</span>DATE<span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">}</span></span>.pdf<span class="keyword keyword_operator keyword_operator_list keyword_operator_list_shell">;</span>
<span class="keyword keyword_control keyword_control_shell">if</span> [ -e <span class="variable variable_other variable_other_normal variable_other_normal_shell"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">$</span>FILE</span> ]<span class="keyword keyword_operator keyword_operator_list keyword_operator_list_shell">;</span> <span class="keyword keyword_control keyword_control_shell">then</span>
  open /Applications/Preview.app <span class="variable variable_other variable_other_normal variable_other_normal_shell"><span class="punctuation punctuation_definition punctuation_definition_variable punctuation_definition_variable_shell">$</span>FILE</span><span class="keyword keyword_operator keyword_operator_list keyword_operator_list_shell">;</span>
<span class="keyword keyword_control keyword_control_shell">fi</span>
</span></pre>
<p>And the crontab used to download the PDF each day at 11pm and open the file for me at 9am.</p>
<pre class="textmate-source cobalt">
30      23      *       *       *               php /path/to/script.php
0       9       *       *       1,2,3,4,5,7     sh /path/to/pdf_opener.sh
</pre>
<p>I might clean this up a bit, but I just wanted to share it in case anyone else had a similar need for daily download and view.  Feel free to offer suggestions for other ways to achieve this.</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2008/02/daily-delivery-of-an-electronic-newspaper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Extending link area using DOM methods</title>
		<link>http://ryanjoy.com/2007/01/extending-link-area-using-dom-methods/</link>
		<comments>http://ryanjoy.com/2007/01/extending-link-area-using-dom-methods/#comments</comments>
		<pubDate>Sun, 21 Jan 2007 00:32:29 +0000</pubDate>
		<dc:creator>Ryan Joy</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://ryan.joyserve.net/2007/01/20/extending-link-area-using-dom-methods/</guid>
		<description><![CDATA[function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function linkTabs() { if(!document.getElementById("top_tabs")) return false; var topTabs = document.getElementById("top_tabs"); var topTabsLi = topTabs.getElementsByTagName("li"); for (var i = 0; i &#60; topTabsLi.length; i++) { topTabsLi[i].onmouseover = function() [...]]]></description>
			<content:encoded><![CDATA[<pre class="textmate-source cobalt">

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function linkTabs() {
  if(!document.getElementById("top_tabs")) return false;

  var topTabs = document.getElementById("top_tabs");
  var topTabsLi = topTabs.getElementsByTagName("li");

  for (var i = 0; i &lt; topTabsLi.length; i++) {
    topTabsLi[i].onmouseover = function() {
      this.style.cursor = "pointer";
    }
    topTabsLi[i].onclick = function() {
      return linkThis(this);
    }
  }
}
function linkThis(whichLink) {
  window.location = whichLink.getElementsByTagName("a")[0].getAttribute("href");
}

addLoadEvent(linkTabs);</pre>
]]></content:encoded>
			<wfw:commentRss>http://ryanjoy.com/2007/01/extending-link-area-using-dom-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

