<?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>celsobarriga-dot-com &#187; celso</title>
	<atom:link href="http://www.celsobarriga.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.celsobarriga.com</link>
	<description>Wasting bandwidth in style!</description>
	<lastBuildDate>Fri, 06 Nov 2009 14:14:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Base64 Encoding and Decoding</title>
		<link>http://www.celsobarriga.com/2009/05/28/base64-encoding-and-decoding/</link>
		<comments>http://www.celsobarriga.com/2009/05/28/base64-encoding-and-decoding/#comments</comments>
		<pubDate>Thu, 28 May 2009 18:10:31 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.celsobarriga.com/?p=131</guid>
		<description><![CDATA[At one time, I needed to encode and decode strings in Base64 but I was on a very old Perl version that does not include the MIME::Base64 core module, nor am I able to install the said module. So, here&#8217;s the source for encoding and decoding Base64 ripped from the MIME::Base64 module:
sub EncodeBase64
{
   [...]]]></description>
			<content:encoded><![CDATA[<p>At one time, I needed to encode and decode strings in Base64 but I was on a very old Perl version that does not include the MIME::Base64 core module, nor am I able to install the said module. So, here&#8217;s the source for encoding and decoding Base64 ripped from the MIME::Base64 module:</p>
<pre style='color:#000000;background:#ffffff;'><span style='color:#800000; font-weight:bold; '>sub </span>EncodeBase6<span style='color:#008c00; '>4</span>
<span style='color:#800080; '>{</span>
    <span style='color:#800000; font-weight:bold; '>my</span> $s <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>shift</span> <span style='color:#800080; '>;</span>
    <span style='color:#800000; font-weight:bold; '>my</span> $r <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>''</span><span style='color:#800080; '>;</span>
    <span style='color:#800000; font-weight:bold; '>while</span><span style='color:#808030; '>(</span> $s <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span><span style='color:#0000e6; '> </span><span style='color:#800000; '>/</span><span style='color:#808030; '>(</span><span style='color:#808030; '>.</span><span style='color:#0000e6; '>{1,45}</span><span style='color:#808030; '>)</span><span style='color:#800000; '>/</span><span style='color:#800000; font-weight:bold; '>gs</span> <span style='color:#808030; '>)</span><span style='color:#800080; '>{</span>
        <span style='color:#800000; font-weight:bold; '>chop</span><span style='color:#808030; '>(</span> $r <span style='color:#808030; '>.</span><span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>substr</span><span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>pack</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>"u"</span><span style='color:#808030; '>,</span>$1<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span><span style='color:#008c00; '>1</span><span style='color:#808030; '>)</span> <span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
    <span style='color:#800080; '>}</span>
    <span style='color:#800000; font-weight:bold; '>my</span> $pad<span style='color:#808030; '>=</span><span style='color:#808030; '>(</span><span style='color:#008c00; '>3</span><span style='color:#808030; '>-</span><span style='color:#800000; font-weight:bold; '>length</span><span style='color:#808030; '>(</span>$s<span style='color:#808030; '>)</span><span style='color:#808030; '>%</span><span style='color:#008c00; '>3</span><span style='color:#808030; '>)</span><span style='color:#808030; '>%</span><span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
    $r <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span> <span style='color:#800000; font-weight:bold; '>tr</span><span style='color:#800000; '>|</span><span style='color:#0000e6; '>` </span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>_</span><span style='color:#800000; '>|</span><span style='color:#0000e6; '>AA</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>Za</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>z0</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>9+/</span><span style='color:#800000; '>|</span><span style='color:#800080; '>;</span>
    $r<span style='color:#808030; '>=</span><span style='color:#808030; '>~</span><span style='color:#800000; font-weight:bold; '>s</span><span style='color:#800000; '>/</span><span style='color:#808030; '>.</span><span style='color:#0000e6; '>{</span><span style='color:#0000e6; '>$pad</span><span style='color:#0000e6; '>}</span><span style='color:#808030; '>$</span><span style='color:#800000; '>/</span><span style='color:#0000e6; '>"="x</span><span style='color:#0000e6; '>$pad</span><span style='color:#800000; '>/</span><span style='color:#800000; font-weight:bold; '>e</span> <span style='color:#800000; font-weight:bold; '>if</span> $pad<span style='color:#800080; '>;</span>
    $r<span style='color:#808030; '>=</span><span style='color:#808030; '>~</span><span style='color:#800000; font-weight:bold; '>s</span><span style='color:#800000; '>/</span><span style='color:#808030; '>(</span><span style='color:#808030; '>.</span><span style='color:#0000e6; '>{1,72}</span><span style='color:#808030; '>)</span><span style='color:#800000; '>/</span><span style='color:#0000e6; '>$1</span><span style='color:#0f69ff; '>\n</span><span style='color:#800000; '>/</span><span style='color:#800000; font-weight:bold; '>g</span><span style='color:#800080; '>;</span>
    $r<span style='color:#800080; '>;</span>
<span style='color:#800080; '>}</span> 

<span style='color:#800000; font-weight:bold; '>sub </span>DecodeBase6<span style='color:#008c00; '>4</span>
<span style='color:#800080; '>{</span>
    <span style='color:#800000; font-weight:bold; '>my</span> $d <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>shift</span><span style='color:#800080; '>;</span>
    $d <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span> <span style='color:#800000; font-weight:bold; '>tr</span><span style='color:#800000; '>!</span><span style='color:#0000e6; '>A</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>Za</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>z0</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>9+/</span><span style='color:#800000; '>!</span><span style='color:#800000; '>!</span><span style='color:#800000; font-weight:bold; '>cd</span><span style='color:#800080; '>;</span>
    $d <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span> <span style='color:#800000; font-weight:bold; '>s</span><span style='color:#800000; '>/</span><span style='color:#0000e6; '>=</span><span style='color:#808030; '>+</span><span style='color:#808030; '>$</span><span style='color:#800000; '>/</span><span style='color:#800000; '>/</span><span style='color:#800080; '>;</span>
    $d <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span> <span style='color:#800000; font-weight:bold; '>tr</span><span style='color:#800000; '>!</span><span style='color:#0000e6; '>A</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>Za</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>z0</span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>9+/</span><span style='color:#800000; '>!</span><span style='color:#0000e6; '> </span><span style='color:#800000; font-weight:bold; '>-</span><span style='color:#0000e6; '>_</span><span style='color:#800000; '>!</span><span style='color:#800080; '>;</span>
    <span style='color:#800000; font-weight:bold; '>my</span> $r <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>''</span><span style='color:#800080; '>;</span>
    <span style='color:#800000; font-weight:bold; '>while</span><span style='color:#808030; '>(</span> $d <span style='color:#808030; '>=</span><span style='color:#808030; '>~</span><span style='color:#0000e6; '> </span><span style='color:#800000; '>/</span><span style='color:#808030; '>(</span><span style='color:#808030; '>.</span><span style='color:#0000e6; '>{1,60}</span><span style='color:#808030; '>)</span><span style='color:#800000; '>/</span><span style='color:#800000; font-weight:bold; '>gs</span> <span style='color:#808030; '>)</span><span style='color:#800080; '>{</span>
        <span style='color:#800000; font-weight:bold; '>my</span> $len <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>chr</span><span style='color:#808030; '>(</span><span style='color:#008c00; '>32</span> <span style='color:#808030; '>+</span> <span style='color:#800000; font-weight:bold; '>length</span><span style='color:#808030; '>(</span>$1<span style='color:#808030; '>)</span><span style='color:#808030; '>*</span><span style='color:#008c00; '>3</span><span style='color:#808030; '>/</span><span style='color:#008c00; '>4</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        $r <span style='color:#808030; '>.</span><span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>unpack</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>"u"</span><span style='color:#808030; '>,</span> $len <span style='color:#808030; '>.</span> $1 <span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
    <span style='color:#800080; '>}</span>
    $r<span style='color:#800080; '>;</span>
<span style='color:#800080; '>}</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2009/05/28/base64-encoding-and-decoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skydiving video</title>
		<link>http://www.celsobarriga.com/2009/05/25/skydiving-video/</link>
		<comments>http://www.celsobarriga.com/2009/05/25/skydiving-video/#comments</comments>
		<pubDate>Mon, 25 May 2009 14:40:08 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.celsobarriga.com/?p=119</guid>
		<description><![CDATA[Look what I did last weekend! I went for a tandem skydive at Pepperell, MA on May 24th, 2009. What a rush; it was an awesome experience!
See full post to see the movie.


]]></description>
			<content:encoded><![CDATA[<p>Look what I did last weekend! I went for a tandem skydive at Pepperell, MA on May 24th, 2009. What a rush; it was an awesome experience!</p>
<p>See full post to see the movie.<br />
<span id="more-119"></span><br />
<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="480" height="288" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"><param name="enablejavascript" value="true" /><param name="src" value="/wpress/wp-content/uploads/2009/05/CelsoSkydive.m4v" /><embed type="video/quicktime" width="480" height="288" src="/wpress/wp-content/uploads/2009/05/CelsoSkydive.m4v" enablejavascript="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2009/05/25/skydiving-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
