<?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>Create Blog &#187; USPS</title>
	<atom:link href="http://create.tpsitulsa.com/blog/category/usps/feed/" rel="self" type="application/rss+xml" />
	<link>http://create.tpsitulsa.com/blog</link>
	<description>the create framework blog</description>
	<lastBuildDate>Sat, 30 Jan 2010 20:08:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Python, Windows, and Network</title>
		<link>http://create.tpsitulsa.com/blog/2009/04/16/python-windows-and-network/</link>
		<comments>http://create.tpsitulsa.com/blog/2009/04/16/python-windows-and-network/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 19:31:00 +0000</pubDate>
		<dc:creator>Alex Iskander</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[USPS]]></category>
		<category><![CDATA[Barcode]]></category>

		<guid isPermaLink="false">http://create.tpsitulsa.com/blog/?p=123</guid>
		<description><![CDATA[We have several machines. All of them (except for mine, a MacBook Pro which I use for almost everything) run Windows. I&#8217;ve been learning Python. It is a really useful language. It runs on the command line, and that is really important. If I could, I&#8217;d use JavaScript instead, but some things &#8212; such as [...]]]></description>
			<content:encoded><![CDATA[<p>We have several machines. All of them (except for mine, a MacBook Pro which I use for almost everything) run Windows.</p>

<p>I&#8217;ve been learning Python. It is a really useful language. It runs on the command line, and that is really important. If I could, I&#8217;d use JavaScript instead, but some things &mdash; such as connecting to MySQL servers &mdash; are a bit much for me to write JavaScript shells for at the moment (especially because it has been a year or three since I&#8217;ve dealt with the C++ MySQL APIs).</p>

<p>So, for a recent diversion which required MySQL database access, I decided to use Python. If I can remember, I&#8217;ll write about the project later. It was a simple script to keep track of sequence numbers for the new <a href="http://en.wikipedia.org/wiki/Intelligent_Mail_Barcode">Intelligent Mail Barcode</a>, so that we could ensure each piece had a unique number in any 45-day period.</p>

<p>Windows does not come with Python pre-installed. This is not usually a problem, as Python is not at all difficult to install. But in addition to having to install Python, I&#8217;d have to install the Python package for MySQL. This Python script could be used from several computers, so I&#8217;d have to do in on each computer. Even if I posted an article on our intra-office wiki (which it <em>still</em> seems like nobody reads), I would probably have to end up helping everyone install it.</p>

<p>And, what if I make a mistake? Having so many installations (at least 3 or 4, possibly more, and prone to change whenever we replace or add a computer) could make me very busy with things I don&#8217;t really want to be busy with.</p>

<p>What would be best is if I could install Python on a central server. Well, I couldn&#8217;t do that, but I could install Python on my Windows computer (which, alas, I still have to use sometimes), and figure out what I needed to copy to the server.</p>

<p>It is really quite simple in principle: just install Python on Windows. Copy <tt>C:\Python25</tt> (or whatever your Python install directory is) to your central server.</p>

<p>Except&#8230; <strong>it still won&#8217;t run on the other computers.</strong></p>

<p>It complains about missing a Python25.dll. It would seem that the Python installer was stupid enough to not install its DLLs in the install folder along with Python itself, but instead litter the already-overpopulated <tt>C:\Windows\System32</tt> directory with them.</p>

<p>So, I found all of the DLLs that looked like they belonged to Python 2.5, and copied them into the Python25 directory on the central server:</p>

<ul>
<li>python25.dll</li>
<li>pythoncom25.dll</li>
<li>pywintypes25.dll</li>
</ul>

<p>Could I have missed some? Perhaps. But everything appeared to work.</p>

<p>I still had one complication: it would be nice if scripts could run without the command needing to say <tt>r:\path\to\Python25\python</tt>. For this, each computer would need to have Python&#8217;s path in their PATH system variable.</p>

<p>Instead of adding yet another item to PATH, however, I decided to make a simple command file that would &#8220;initialize&#8221; Python by adding it to the instance&#8217;s PATH. This would only last the duration of the Command window.</p>

<p>Here is the script, changed only slightly:</p>


<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
&nbsp;
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">INITIALIZED_PYTHON_25</span><span style="color: #33cc33;">%</span>&quot;==&quot;YES&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">END</span>
&nbsp;
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">PYTHONPATH</span>=R:\path\to\python\python25\
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">PATH</span>=R:\path\to\python\python25\;<span style="color: #33cc33;">%</span><span style="color: #448888;">PATH</span><span style="color: #33cc33;">%</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">INITIALIZED_PYTHON_25</span>=YES
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">END</span></pre></div></div>


<p>And that&#8217;s it. As the script I was working on (and likely any others in future) would be run from batch files anyway, they&#8217;d just need an extra line at the beginning to call this command. And that&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://create.tpsitulsa.com/blog/2009/04/16/python-windows-and-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-Configuring, the Build, and the Barcode</title>
		<link>http://create.tpsitulsa.com/blog/2009/03/17/auto-configuring-the-build-and-the-barcode/</link>
		<comments>http://create.tpsitulsa.com/blog/2009/03/17/auto-configuring-the-build-and-the-barcode/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:21:46 +0000</pubDate>
		<dc:creator>Alex Iskander</dc:creator>
				<category><![CDATA[Barcode]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[USPS]]></category>

		<guid isPermaLink="false">http://create.tpsitulsa.com/blog/?p=111</guid>
		<description><![CDATA[Last night, I wrote about how I could not easily add the barcode functionality to the build because it was not guaranteed that the library would be on every computer compiling it. I did two main things: Added ENABLE() and HAVE() macros. Inspired by WebKit&#8217;s, here. This allows enabling and disabling the capabilities through a [...]]]></description>
			<content:encoded><![CDATA[<p>Last night, I wrote about how <a href="http://create.tpsitulsa.com/blog/2009/03/16/script-the-usps-intelligent-mail-barcode/">I could not easily add the barcode functionality to the build</a> because it was not guaranteed that the library would be on every computer compiling it.</p>

<p>I did two main things:</p>

<ol>
    <li><strong>Added ENABLE() and HAVE() macros.</strong> Inspired by WebKit&#8217;s, <a href="http://trac.webkit.org/browser/trunk/JavaScriptCore/wtf/Platform.h">here.</a> This allows enabling and disabling the capabilities through a configuration header file (<em>now located in config/config.h</em>).</li>
    <li><strong>Added a simple <em>generate-config</em> script.</strong> I know there are existing tools for this &mdash; I think GNU&#8217;s Autoconf does it &mdash; but I didn&#8217;t have time to learn something new, and I also didn&#8217;t want to invest in such complexity for a system which would not work in Windows. The Windows script is a command file; the Mac one is a shell script.</li>
</ol>

<p>I like how the scripts have no prerequisites on Mac and Windows. Unfortunately, I will probably have to rewrite them later in a consolidated form, so that I only have on script; at this point, it will likely cease to have <em>no</em> prerequisites.</p>

<p>So, how do compile with support for the barcode? On Mac, you have to put the libUSPS4CB.dylib in /usr/local/lib/. On Windows, you have to put in in your WINDOWS folder. And that&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://create.tpsitulsa.com/blog/2009/03/17/auto-configuring-the-build-and-the-barcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script &amp; the USPS Intelligent Mail Barcode</title>
		<link>http://create.tpsitulsa.com/blog/2009/03/16/script-the-usps-intelligent-mail-barcode/</link>
		<comments>http://create.tpsitulsa.com/blog/2009/03/16/script-the-usps-intelligent-mail-barcode/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 04:08:28 +0000</pubDate>
		<dc:creator>Alex Iskander</dc:creator>
				<category><![CDATA[Barcode]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[USPS]]></category>
		<category><![CDATA[V8]]></category>

		<guid isPermaLink="false">http://create.tpsitulsa.com/blog/?p=105</guid>
		<description><![CDATA[We need a way to integrate the new USPS Intelligent Mail Barcode nicely into our existing workflow. The software we use for most of our composition seems to have some&#8230; disagreements (or something)&#8230; with it at times, even though it officially supports it. Other people using the same software recommend using the USPS&#8217;s library. That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>We need a way to integrate the new USPS Intelligent Mail Barcode nicely into our existing workflow. The software we use for most of our composition seems to have some&#8230; <em>disagreements (or something)</em>&#8230; with it at times, even though it officially supports it.</p>

<p>Other people using the same software recommend using the USPS&#8217;s library. That&#8217;s fine and all, but we don&#8217;t want to write a C program for each job &mdash; writing in C or C++ can be quite time consuming. And it requires compiling, creating projects, etc. In short, a lot of hassle.</p>

<p>While this may not be the course we end up following, I decided, tonight, that although I was half-asleep, I&#8217;d attempt to add scripting support for USPS&#8217;s library. At around 10:00, I downloaded the software from USPS. Now, roughly fifty minutes later, I have managed to write a script that uses the USPS barcode.</p>

<p><span id="more-105"></span></p>

<p>Here&#8217;s the script:</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> main<span style="color: #009900;">&#40;</span>input<span style="color: #339933;">,</span> output<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> inputFile <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> InputStream<span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> outputFile <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> OutputStream<span style="color: #009900;">&#40;</span>output<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>inputFile.<span style="color: #660066;">ok</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//get line</span>
		<span style="color: #003366; font-weight: bold;">var</span> line <span style="color: #339933;">=</span> inputFile.<span style="color: #660066;">getLine</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//split</span>
		<span style="color: #003366; font-weight: bold;">var</span> fields <span style="color: #339933;">=</span> line.<span style="color: #660066;">splitQuoted</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//if there aren't the required amount of fields, continue to next line (if any)</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>fields.<span style="color: #660066;">length</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			outputFile.<span style="color: #660066;">writeLine</span><span style="color: #009900;">&#40;</span>line<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">continue</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//get needed fields</span>
		<span style="color: #003366; font-weight: bold;">var</span> track <span style="color: #339933;">=</span> fields<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> route <span style="color: #339933;">=</span> fields<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//set output</span>
		line <span style="color: #339933;">=</span> line <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;,<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">+</span> USPSBarcode.<span style="color: #660066;">encode</span><span style="color: #009900;">&#40;</span>track<span style="color: #339933;">,</span> route<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//write</span>
		outputFile.<span style="color: #660066;">writeLine</span><span style="color: #009900;">&#40;</span>line<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> snipped<span style="color: #339933;">:</span> the splitQuoted string <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #339933;">--&gt;</span></pre></div></div>


<p>The Framework&#8217;s Script Engine made adding this to the Shell very easy (really, it should be moved into Spec, and Shell should get it from there, but for now&#8230;).</p>

<p>I will, over the course of the next couple of days, figure out a workflow for how I can get this code online without breaking the build for compiles without the library. Perhaps a command line switch? I will probably also move it to where it belongs: in Spec.</p>

<p>I will, however, go ahead and post the majority of the code here. I could have done it much quicker with a single function in global scope, but I prefer the cleanliness of using a JavaScript object (I could have still used an empty dummy object, but that wouldn&#8217;t have been proper).</p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">#ifndef SHELL_WRAPPERS_USPSBARCODEWRAPPER_H_
#define SHELL_WRAPPERS_USPSBARCODEWRAPPER_H_
&nbsp;
#ifdef SHELL_WITH_USPS_BARCODE
&nbsp;
#include <span style="color: #339933;">&lt;</span>string<span style="color: #339933;">&gt;</span>
&nbsp;
extern <span style="color: #3366CC;">&quot;C&quot;</span> <span style="color: #009900;">&#123;</span>
	int USPS4CB<span style="color: #009900;">&#40;</span> char <span style="color: #339933;">*</span>TrackPtr<span style="color: #339933;">,</span> char <span style="color: #339933;">*</span>RoutePtr<span style="color: #339933;">,</span> char <span style="color: #339933;">*</span>BarPtr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">namespace</span> Shell
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">class</span> USPSBarcodeProvider
	<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">public</span><span style="color: #339933;">:</span>
		USPSBarcodeProvider<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
		std<span style="color: #339933;">::</span>string encode<span style="color: #009900;">&#40;</span>std<span style="color: #339933;">::</span>string tracker<span style="color: #339933;">,</span> std<span style="color: #339933;">::</span>string route<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>tracker.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">20</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>
				route.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">11</span> <span style="color: #339933;">&amp;&amp;</span> 
				route.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">5</span> <span style="color: #339933;">&amp;&amp;</span> 
				route.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">9</span> <span style="color: #339933;">&amp;&amp;</span>
				route.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			char res<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">66</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			int result <span style="color: #339933;">=</span> USPS4CB<span style="color: #009900;">&#40;</span>
								 const_cast<span style="color: #339933;">&lt;</span>char <span style="color: #339933;">*&gt;</span> <span style="color: #009900;">&#40;</span>tracker.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
								 const_cast<span style="color: #339933;">&lt;</span>char <span style="color: #339933;">*&gt;</span> <span style="color: #009900;">&#40;</span>route.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
								 res
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>result <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
			res<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">65</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">NULL</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">return</span> res<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
ScriptBaseNative<span style="color: #009900;">&#40;</span>Shell<span style="color: #339933;">::</span>USPSBarcodeProvider<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">namespace</span> Shell
<span style="color: #009900;">&#123;</span>
	SWrap<span style="color: #009900;">&#40;</span>USPSBarcodeWrapper<span style="color: #339933;">,</span> USPSBarcodeProvider<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">public</span><span style="color: #339933;">:</span>
		USPSBarcodeWrapper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			set<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;encode&quot;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span>encode<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			className <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;USPSBarcodeProvider&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		SMember<span style="color: #009900;">&#40;</span>encode<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>extract<span style="color: #009900;">&#40;</span>self<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #009900;">&#40;</span>extract<span style="color: #009900;">&#40;</span>self<span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>encode<span style="color: #009900;">&#40;</span>arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span>stringValue<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> arguments<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span>stringValue<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
#endif
&nbsp;
#endif</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://create.tpsitulsa.com/blog/2009/03/16/script-the-usps-intelligent-mail-barcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

