<?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>pantleg.net</title>
	<atom:link href="http://www.pantleg.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pantleg.net</link>
	<description>things i think of</description>
	<lastBuildDate>Mon, 21 Jun 2010 17:50:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>music breaks</title>
		<link>http://www.pantleg.net/2010/06/21/music-breaks/</link>
		<comments>http://www.pantleg.net/2010/06/21/music-breaks/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 17:49:54 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[el musico]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/?p=66</guid>
		<description><![CDATA[Currently I have three YouTube (I just looked up YouTube on Wikipedia to make sure I have the correct letters capitalized &#8211; how pedantic) videos opened in different tabs.  They are used for random music breaks during the day in the office. They are quite random and awesome.  I want to share:]]></description>
			<content:encoded><![CDATA[<p>Currently I have three YouTube (I just looked up YouTube on Wikipedia to make sure I have the correct letters capitalized &#8211; how pedantic) videos opened in different tabs.  They are used for random music breaks during the day in the office.</p>
<p>They are quite random and awesome.  I want to share:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/BZXcRqFmFa8&amp;hl=en_US&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/BZXcRqFmFa8&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/LxoE2az9mJM&amp;hl=en_US&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/LxoE2az9mJM&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/7ZWaWrvJ7nA&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/7ZWaWrvJ7nA&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2010/06/21/music-breaks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jp2a</title>
		<link>http://www.pantleg.net/2009/12/17/jp2a/</link>
		<comments>http://www.pantleg.net/2009/12/17/jp2a/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 21:46:53 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Banquet]]></category>
		<category><![CDATA[Puters]]></category>
		<category><![CDATA[jp2a]]></category>
		<category><![CDATA[ramble]]></category>
		<category><![CDATA[saucy-awesomeness]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/?p=24</guid>
		<description><![CDATA[I&#8217;m going to write about jp2a, a Linux utility that converts jpg images to ascii.  The problem is that my blog posts (when they happen) usually aren&#8217;t purely about technical topic.  I like to ramble on about random things.  So, I&#8217;m going to do that a bit and then talk about jp2a. Oh, I thought [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I&#8217;m going to write about jp2a, a Linux utility that converts jpg images to ascii.  The problem is that my blog posts (when they happen) usually aren&#8217;t purely about technical topic.  I like to ramble on about random things.  So, I&#8217;m going to do that a bit and then talk about jp2a.</p>
<p style="text-align: left;">Oh, I thought of something: I&#8217;m eating a <a href="http://www.conagrafoods.com/consumer/brands/getBrand.do?page=banquet" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.conagrafoods.com/consumer/brands/getBrand.do?page=banquet&amp;referer=');">Banquet</a> for lunch right now.  Boneless Pork Rib to be exact.  I noticed that after cooking it (haha, I mean heating) some of the sauce was still on the cellophane so I scraped it off with a fork so as to not miss that saucy-awesomeness.  I&#8217;m glad I did that.</p>
<p style="text-align: left;">Alright, I feel I have rambled enough, now on to jp2a.</p>
<p style="text-align: left;">If you didn&#8217;t get it already, jp2a stands for &#8220;jpg to ascii&#8221;.  They are hip and use &#8217;2&#8242; to mean &#8216;to&#8217;.  Clever.</p>
<p style="text-align: left;">I wanted to email a picture of myself to my dad for possible use in a Christmas card he is going to make.  The problem was that I didn&#8217;t have the picture on my computer at the time.  I did have it on my server at home, though, so at least I could scp (transfer it via the intertubez) it to myself.  After finding the folder that the picture was in, I then had the problem of not knowing which picture of the thirty or so it was.  The folder was logically labeled, so that was good, but the actual images were just the standard IMG_[number].</p>
<p style="text-align: left;">Yet another roadblock was that my server doesn&#8217;t run a GUI, it is command-line only.  (Note how I&#8217;m not labeling that a &#8220;problem&#8221;, I prefer the challenge and awesomeness of a GUI-less server.)  That means that I couldn&#8217;t look at the image files without first transferring them to my computer.  That would take a while as [1] I&#8217;d have to transfer over the entire set of pictures and [2] the upload speed at my apartment isn&#8217;t stellar.</p>
<p style="text-align: left;">I decided to do some research and see if there was a utility that could produce an <a href="http://en.wikipedia.org/wiki/ASCII_art" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/ASCII_art?referer=');">ASCII &#8220;art&#8221;</a> representation of my images.  That would allow me to get a basic idea of what is in the image and I could do it all remotely.  Turns out there is and it&#8217;s called <a href="http://csl.sublevel3.org/jp2a/" target="_self" onclick="pageTracker._trackPageview('/outgoing/csl.sublevel3.org/jp2a/?referer=');">jp2a</a>.</p>
<p style="text-align: left;">Using jp2a is pretty easy.  It includes a handy flag that will output the image in color on your terminal.  I&#8217;d almost say that a utility like this would be quite useless for what I&#8217;m doing with it here if one couldn&#8217;t output the ASCII in color.  One requirement is that the image is a jpg as it won&#8217;t work for other image formats.  (Once can use <a href="http://www.imagemagick.org/script/index.php" onclick="pageTracker._trackPageview('/outgoing/www.imagemagick.org/script/index.php?referer=');">imagemagick</a> and a pipe if they have to work with a non-jpg.)</p>
<p style="text-align: left;">So, quite simply, to run jp2a one types:</p>
<p style="text-align: left;"><code>jp2a --color [image name]</code></p>
<p style="text-align: left;">Now for some examples.  Here is the picture that I was looking for:</p>
<p style="text-align: left;">
<p style="text-align: center;"><img class="size-full wp-image-40  aligncenter" title="original" src="http://www.pantleg.net/wp-content/uploads/2009/12/orig.png" alt="that's me!" width="494" height="371" /></p>
<p style="text-align: left;">This is what it looks like when jp2a is ran on it:</p>
<p style="text-align: left;">
<p style="text-align: center;"><img class="size-full wp-image-41 aligncenter" title="ascii picture" src="http://www.pantleg.net/wp-content/uploads/2009/12/picture.png" alt="that's me in gigabitz" width="502" height="395" /></p>
<p style="text-align: left;">As you can see, it does a pretty decent job of representing what the image looks like!</p>
<p style="text-align: left;">One last thing: I had to run this command on all the pictures in the folder.  jp2a doesn&#8217;t label the image when it prints out, so using * as the input value isn&#8217;t too helpful because you don&#8217;t know what the name of the file is that is being displayed.  I found and edited a quick bash script to output the name before the picture as well as run jp2a on all jpg files in the current directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dir</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">*</span>JPG<span style="color: #000000; font-weight: bold;">`</span> ; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$file</span>
    <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>jp2a <span style="color: #ff0000;">&quot;<span style="color: #007800;">$file</span>&quot;</span> <span style="color: #660033;">--colors</span> <span style="color: #660033;">--width</span>=<span style="color: #000000;">100</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Yeah, yeah, it could be more advanced, but it did what I want.</p>
<p>So there you have it.  A blog post and an informative one at that.  Plus, you got to see my pretty face, always a plus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/12/17/jp2a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bed logging</title>
		<link>http://www.pantleg.net/2009/04/10/bed-logging/</link>
		<comments>http://www.pantleg.net/2009/04/10/bed-logging/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:29:01 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mostly clothed]]></category>
		<category><![CDATA[sleepy]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/2009/04/10/bed-logging/</guid>
		<description><![CDATA[I believe I have come up with something revolutionary: logging from bed. (via my touch currently) I shall contract the words to give it a shorter name to help ease adoption and encourage common usage: blogging. &#8230; Blast!]]></description>
			<content:encoded><![CDATA[<p>I believe I have come up with something revolutionary: logging from bed. (via my touch currently) I shall contract the words to give it a shorter name to help ease adoption and encourage common usage: blogging.</p>
<p>&#8230;</p>
<p>Blast! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/04/10/bed-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fantasy names &#8211; formerly &#8216;ah crap&#8217;</title>
		<link>http://www.pantleg.net/2009/04/10/fantasy-names-formerly-ah-crap/</link>
		<comments>http://www.pantleg.net/2009/04/10/fantasy-names-formerly-ah-crap/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:03:38 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Idle Ramblings]]></category>
		<category><![CDATA[complaining]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[ramble]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/?p=15</guid>
		<description><![CDATA[So I was just writing a blog post complaining about names in fantasy novels.  I was even making up my own names for a book that I would like to write if I ever had so much free time that I felt like writing a book.  Problem is, my plan is to have all my [...]]]></description>
			<content:encoded><![CDATA[<p>So I was just writing a blog post complaining about names in fantasy novels.  I was even making up my own names for a book that I would like to write if I ever had so much free time that I felt like writing a book.  Problem is, my plan is to have all my characters have names that are just letters I randomly hit on my keyboard.  I was typing examples and accidentally hit ctrl+w&#8230;that is not cool.  I&#8217;m really good at losing my blog posts mid-completion.</p>
<p>I will continue with my original thought/post all from memory:</p>
<p>Fantasy names in novels are dumb.  They have too many apostrophes and are too hard to pronounce.  The author probably practices pronouncing the character names while looking in the mirror in their bathroom so as to find something that makes their mouth move in some super-awesome (translation: dumb) way.  </p>
<p>In my novel, my characters would go something like: Aldsgq3og&#8217;3&#8242;lkd as the heroine squaring off against her new mortal enemy 433l&#8221;&#8221;asljgaw&#8217;jgad&#8217;ljv Hrestgr&lt;Windows Key&gt;.  Note the apostrophes, those are paramount.  Also note how numbers are incorporated into the names.  Unlike letters, numbers can&#8217;t be capitalized.  Not sure where I was going with that&#8230;mainly it&#8217;s OK to have a number be the first character of a name.  As you can also see, &#8220;&lt;Windows Key&gt;&#8221; is actually part of the antagonist&#8217;s name.  That is because I hit the Windows Key as I was creating his name.  Clever, eh?  </p>
<p>I will further improve upon my awesome novel by making sure the characters change their names at least once in the story.  Keep my readers on their toes.  I would probably have 33l&#8221;&#8221;asljgaw&#8217;jgad&#8217;ljv Hrestgr&lt;Windows Key&gt; (copied and pasted, had to) change his name to something including &#8220;&lt;Left Meta&gt;&#8221; because he just discovered Linux and wanted to make a keyboard shortcut to do something and &lt;Windows Key&gt; isn&#8217;t used.  Yeah, that doesn&#8217;t really make sense to change a name to reflect one&#8217;s want to have a keyboard shortcut, but it&#8217;s my novel, so I can do whatever the hell I want.</p>
<p>Also, my novel will take place in the past/future.  Yup, the past/future.  It doesn&#8217;t make sense, does it?  Well, neither does sound in space, but it is awesome, so it&#8217;s cool.  Also, if you couldn&#8217;t tell, my novel would be a satire on other fantasy novels.</p>
<p>(Can I make an hr?)</p>
<hr />Nice.</p>
<hr />I should write more blog posts at late hours when I&#8217;m kind of delirious.</p>
<p>I think I&#8217;m going to try and make my titles all lower case.  Let&#8217;s see how much it messes with my bad grammar-thing tick.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/04/10/fantasy-names-formerly-ah-crap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tertiary</title>
		<link>http://www.pantleg.net/2009/03/07/tertiary/</link>
		<comments>http://www.pantleg.net/2009/03/07/tertiary/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 00:12:36 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/2009/03/07/tertiary/</guid>
		<description><![CDATA[From my touch.]]></description>
			<content:encoded><![CDATA[<p>From my touch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/03/07/tertiary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Second</title>
		<link>http://www.pantleg.net/2009/03/07/second/</link>
		<comments>http://www.pantleg.net/2009/03/07/second/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 18:03:58 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/?p=8</guid>
		<description><![CDATA[blargh]]></description>
			<content:encoded><![CDATA[<p>blargh</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/03/07/second/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First Post</title>
		<link>http://www.pantleg.net/2009/03/07/first-post/</link>
		<comments>http://www.pantleg.net/2009/03/07/first-post/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 17:49:01 +0000</pubDate>
		<dc:creator>william</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pantleg.net/?p=3</guid>
		<description><![CDATA[First!]]></description>
			<content:encoded><![CDATA[<p>First!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pantleg.net/2009/03/07/first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

