<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Groovy and Python for Quick Scripting Wins</title>
	<atom:link href="http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/</link>
	<description>Web Application Design &#38; Development</description>
	<lastBuildDate>Thu, 29 Jul 2010 10:34:30 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joel Potischman</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-762</link>
		<dc:creator>Joel Potischman</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-762</guid>
		<description>Let&#039;s not forget C#:
File.WriteAllText(&quot;output.txt&quot;, Convert.ToBase64String(File.ReadAllBytes(&quot;input.pdf&quot;)));</description>
		<content:encoded><![CDATA[<p>Let&#8217;s not forget C#:<br />
File.WriteAllText(&#8220;output.txt&#8221;, Convert.ToBase64String(File.ReadAllBytes(&#8220;input.pdf&#8221;)));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Williams</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-761</link>
		<dc:creator>Matt Williams</dc:creator>
		<pubDate>Thu, 25 Dec 2008 17:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-761</guid>
		<description>Couldn&#039;t resist...
Ruby script:
require &quot;base64&quot;
File.open(ARGV[0], &#039;r&#039;) do &#124;input&#124;
File.open(ARGV[1], &#039;w&#039;) do &#124;output&#124;
output.write(Base64.b64encode(input.read))
end
end
Ruby command line:
ruby -e &#039;print [IO.read(File.join(Dir.pwd, ARGV[0]))].pack(&quot;m&quot;)&#039; input.pdf &gt; output.txt
No luck on the LOLcode...</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t resist&#8230;<br />
Ruby script:<br />
require &#8220;base64&#8243;<br />
File.open(ARGV[0], &#8216;r&#8217;) do |input|<br />
File.open(ARGV[1], &#8216;w&#8217;) do |output|<br />
output.write(Base64.b64encode(input.read))<br />
end<br />
end<br />
Ruby command line:<br />
ruby -e &#8216;print [IO.read(File.join(Dir.pwd, ARGV[0]))].pack(&#8220;m&#8221;)&#8217; input.pdf &gt; output.txt<br />
No luck on the LOLcode&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi Flax</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-760</link>
		<dc:creator>Avi Flax</dc:creator>
		<pubDate>Thu, 25 Dec 2008 13:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-760</guid>
		<description>Thanks Matt! Good stuff.
I think the only language from the Arc90 family that we&#039;re missing at this point is Ruby... I wonder how long it&#039;ll be before Nir or Dan post up a Ruby script for this purpose. And what&#039;s after that? LOLcode?</description>
		<content:encoded><![CDATA[<p>Thanks Matt! Good stuff.<br />
I think the only language from the Arc90 family that we&#8217;re missing at this point is Ruby&#8230; I wonder how long it&#8217;ll be before Nir or Dan post up a Ruby script for this purpose. And what&#8217;s after that? LOLcode?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Williams</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-759</link>
		<dc:creator>Matt Williams</dc:creator>
		<pubDate>Thu, 25 Dec 2008 04:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-759</guid>
		<description>Wow, don&#039;t post while distracted by the television, kids :P
One more try...
file_put_contents(
$argv[2],
base64_encode(file_get_contents($argv[1]))
);</description>
		<content:encoded><![CDATA[<p>Wow, don&#8217;t post while distracted by the television, kids :P<br />
One more try&#8230;<br />
file_put_contents(<br />
$argv[2],<br />
base64_encode(file_get_contents($argv[1]))<br />
);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Williams</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-758</link>
		<dc:creator>Matt Williams</dc:creator>
		<pubDate>Thu, 25 Dec 2008 04:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-758</guid>
		<description>Apparently, php tags cause all following text to be stripped...
file_put_contents(
$argv[2],
file_get_contents($argv[1])
);</description>
		<content:encoded><![CDATA[<p>Apparently, php tags cause all following text to be stripped&#8230;<br />
file_put_contents(<br />
$argv[2],<br />
file_get_contents($argv[1])<br />
);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Williams</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-757</link>
		<dc:creator>Matt Williams</dc:creator>
		<pubDate>Thu, 25 Dec 2008 04:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-757</guid>
		<description>Python and Groovy are nice, but for &quot;in the next few minutes&quot;, don&#039;t forget your resident php devs!</description>
		<content:encoded><![CDATA[<p>Python and Groovy are nice, but for &#8220;in the next few minutes&#8221;, don&#8217;t forget your resident php devs!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi Flax</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-756</link>
		<dc:creator>Avi Flax</dc:creator>
		<pubDate>Fri, 19 Dec 2008 16:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-756</guid>
		<description>Good tip Chris! Thanks!
It&#039;s also possible to run Python and Groovy scripts directly from the command line:
python -c &quot;import binascii;open(&#039;output.txt&#039;, &#039;w&#039;).write(binascii.b2a_base64(open(&#039;documents.pdf&#039;).read()))&quot;
groovy -e &#039;new File(&quot;output.txt&quot;).write(new File(&quot;documents.pdf&quot;).readBytes().encodeBase64().toString())&#039;</description>
		<content:encoded><![CDATA[<p>Good tip Chris! Thanks!<br />
It&#8217;s also possible to run Python and Groovy scripts directly from the command line:<br />
python -c &#8220;import binascii;open(&#8216;output.txt&#8217;, &#8216;w&#8217;).write(binascii.b2a_base64(open(&#8216;documents.pdf&#8217;).read()))&#8221;<br />
groovy -e &#8216;new File(&#8220;output.txt&#8221;).write(new File(&#8220;documents.pdf&#8221;).readBytes().encodeBase64().toString())&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Dary</title>
		<link>http://blog.arc90.com/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-755</link>
		<dc:creator>Chris Dary</dc:creator>
		<pubDate>Fri, 19 Dec 2008 16:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.daniell.acr90-dev-02/2008/12/19/groovy-and-python-for-quick-scripting-wins/#comment-755</guid>
		<description>This little terminal one liner to encode/decode is also pretty neat:
&lt;a href=&quot;http://www.macosxhints.com/article.php?story=20030721010526390&quot; rel=&quot;nofollow&quot;&gt;http://www.macosxhints.com/article.php?story=20030721010526390&lt;/a&gt;
openssl also supports a lot of different encodings/digests (man dgst and man enc for more)</description>
		<content:encoded><![CDATA[<p>This little terminal one liner to encode/decode is also pretty neat:<br />
<a href="http://www.macosxhints.com/article.php?story=20030721010526390" rel="nofollow">http://www.macosxhints.com/article.php?story=20030721010526390</a><br />
openssl also supports a lot of different encodings/digests (man dgst and man enc for more)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
