<?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>Adam's Continuity at BlackAcid &#187; General</title>
	<atom:link href="http://blogs.blackacid.org/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.blackacid.org</link>
	<description>Experiments in Real Time</description>
	<lastBuildDate>Tue, 27 Jan 2009 23:24:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Linking ncurses with Ocaml</title>
		<link>http://blogs.blackacid.org/2009/01/27/linking-ncurses-with-ocaml/</link>
		<comments>http://blogs.blackacid.org/2009/01/27/linking-ncurses-with-ocaml/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 23:24:00 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ocaml]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/?p=69</guid>
		<description><![CDATA[Just a quick reminder to myself to remember to pass a -linkpkg flag on all when compiling sources using linked c libraries. ocamlfind ocamlc -package unix,curses -linkpkg -o scr scr.ml]]></description>
			<content:encoded><![CDATA[<p>Just a quick reminder to myself to remember to pass a -linkpkg flag on all when compiling sources using linked c libraries.</p>
<p><code><br />
ocamlfind ocamlc -package unix,curses -linkpkg -o scr scr.ml<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2009/01/27/linking-ncurses-with-ocaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alphabet Soup .com</title>
		<link>http://blogs.blackacid.org/2009/01/03/alphabet-soup-com/</link>
		<comments>http://blogs.blackacid.org/2009/01/03/alphabet-soup-com/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 08:07:53 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[Daily Dwindle]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/?p=56</guid>
		<description><![CDATA[With the brain running in low gear after exploring ideas and concepts with people all day, I decided to do something silly by running through all domains that had port 80 open from a to z in the .com tld &#8230; <a href="http://blogs.blackacid.org/2009/01/03/alphabet-soup-com/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With the brain running in low gear after exploring ideas and concepts with people all day, I decided to do something silly by running through all domains that had port 80 open from a to z in the .com tld namespace.  Results are as follows.</p>
<ul>
<li>http://www.q.com -> Qwest</li>
<li>http://www.x.com -> Paypal&#8217;s Dev site</li>
<li>http://www.z.com -> Nissan&#8217;s 350z</li>
</ul>
<p>Interesting that no other domain is actually registered.  Now I&#8217;m curious as to why the other domains whois records show they are <a href="http://www.google.com/search?q=IANA_RESERVED&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.debian:en-US:unofficial&#038;client=iceweasel-a">IANA_RESERVED</a>.  </p>
<p>In a thread on <a href="http://http://answers.google.com/answers/threadview?id=498509">google answers</a>, someone states that if someone lets a two-letter domain expire it will not be allowed to be re-registered ever again.  This makes me wonder that all the people with single letter domains let their domains expire and became reserved?  With a little research into wikipedia of <a href="http://en.wikipedia.org/wiki/Single-letter_second-level_domains">single letter  second level domains</a>, we learn that these domains were &#8220;grandfathered&#8221; in.  </p>
<p><em>Such domains are rare, due to the fact that on December 1, 1993, The Internet Assigned Numbers Authority explicitly reserved all single-letter and single-digit second-level domain names in the top-level domains .com, .net, and .org. This was done in case the registries for these domains became overloaded.</em> &#8211; wikipedia</p>
<p>Hope you learned something new!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2009/01/03/alphabet-soup-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building an IVR with Twilio</title>
		<link>http://blogs.blackacid.org/2008/12/10/building-an-ivr-with-twilio/</link>
		<comments>http://blogs.blackacid.org/2008/12/10/building-an-ivr-with-twilio/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 05:52:25 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ivr]]></category>
		<category><![CDATA[phones]]></category>
		<category><![CDATA[twilio]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/?p=28</guid>
		<description><![CDATA[Developing an IVR can immediately be a daunting task if you have not had any experience doing so before. To simplify it, Twilio.com came up with a solution that takes the complicated choices in technology away from the project. You &#8230; <a href="http://blogs.blackacid.org/2008/12/10/building-an-ivr-with-twilio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Developing an IVR can immediately be a daunting task if you have not had any experience doing so before.  To simplify it, <a href="http://twilio.com">Twilio.com</a> came up with a solution that takes the complicated choices in technology away from the project.  You will immediately start to think about your call system instead of which text-to-speech solution should we go with, which software pbx technology to implement, how much will our phone costs be, can we afford it?  Wait, what about multi-lingual call handling?  Don&#8217;t get me wrong, I like to build systems, asterisk is quite fun to get dirty with, but you can&#8217;t do both and have immediate results.  <div id="attachment_29" class="wp-caption alignleft" style="width: 160px"><img src="http://blogs.blackacid.org/wp-content/uploads/2008/12/photo-150x150.jpg" alt="A glimpse at a call diagram" title="IVR Design" width="150" height="150" class="size-thumbnail wp-image-29" /><p class="wp-caption-text">A glimpse at a call diagram</p></div> So after whiteboarding your idea, you want to start out with a menu system.  I&#8217;d recommend splitting up the greeting from your initial menu.  For example in TwiML, do a call redirect from the greeting to your menu.</p>
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code>Welcome to Hello IVR.</code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code>http://example.com/voice/hello/</code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/ivr-twilio/welcome.xml">welcome.xml</a></li>
</ol>
<p>Menu&#8217;s should be simple, they should also conform to the same usage standard through every call screen.</p>
<p>Some common dial keys that have been recommended by others are:</p>
<ul>
<li>* &#8211; Repeat</li>
<li># &#8211; Go back</li>
<li>7 &#8211; Previous</li>
<li>9 &#8211; Next</li>
<li>0 &#8211; Operator</li>
</ul>
<p>Also, when asking for user selection, keep the number of choices to 5.  Have them enter 9 for more options.  With menu&#8217;s always make sure to gather input at anytime to allow quick navigation for experienced phone users.  Here&#8217;s an example of a call menu with TwiML.</p>
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Gather</span><br />
</span</code></li>
<li class="tab4 even"><code>numDigits=&quot;1&quot;</code></li>
<li class="tab4 odd"><code>method=&quot;GET&quot;&gt;</code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 odd"><code>Sales, press 1.</code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 even"><code>Support, press 2.</code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 odd"><code>Frontdesk, press 3.</code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 even"><code>For more options, press 9.</code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 odd"><code>For the operator, press 0.</code></li>
<li class="tab4 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 even"><code>To hear the options again, please stay on the line.</code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Gather<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Pause</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code>http://example.com/voice/menu/</code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/ivr-twilio/menu.xml">menu.xml</a></li>
</ol>
<p>When you want to build a search interface into your IVR, you need to make it simple, but also make sure you accept all input and handle all operations normally.  People really want to press 0 when it doesn't work.  Additionally, you need to keep track of the number of search failures and offer a solution.  In most cases, a dial out to a human will suffice.  In the case of no man power, I recommend a voicemail using TwiML's record tags.  Here's an example search interface:</p>
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Gather</span><br />
</span</code></li>
<li class="tab4 even"><code>method=&quot;GET&quot;</code></li>
<li class="tab4 odd"><code>numDigits=&quot;3&quot;</code></li>
<li class="tab4 even"><code>finishOnKey=&quot;&quot;</code></li>
<li class="tab4 odd"><code>timeout=&quot;5&quot;</code></li>
<li class="tab4 even"><code>action=&quot;http://example.com/voice/search/?failures=0&quot;&gt;</code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab6 even"><code>Please enter the first three letters of what you are looking for.</code></li>
<li class="tab4 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Gather<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code>http://search.earth911.com/voice/what/?failures=0</code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab0 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="odd">&nbsp;</li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/ivr-twilio/search.xml">search.xml</a></li>
</ol>
<p>When you have too much data, too little structure, and need to tell the phone user a book, don't.  Give them options, a details menu is a good thing.  If you provide information such as phone numbers, add an option to redirect the call.  If you have related information or you are nested one level deep in a list, offer the option to go directly to the next item.  It's important to provide this level of navigation as it will save them time and you money on your minutes.</p>
<p>Voicemail systems are not complicated, but are difficult to maintain.  Fortunately, for us we don't have to worry about that, we just want to send the recorded message to the right dept.  Handle your voicemail successes &#038; failures accordingly.  Have the user try again if the voicemail fails and always provide a fail-safe redirect so that they can try something else if they can't leave a voicemail at that time.</p>
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code>Leave your name, company, and your phone number to best reach you.</code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code>Press the star key when finished.</code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Record</span><br />
</span</code></li>
<li class="tab4 even"><code>action=&quot;http://example.com/voice/voicemail/&quot;</code></li>
<li class="tab4 odd"><code>method=&quot;GET&quot;</code></li>
<li class="tab4 even"><code>maxLength=&quot;20&quot;</code></li>
<li class="tab4 odd"><code>finishOnKey=&quot;*&quot;</code></li>
<li class="tab4 even"><code>/&gt;</code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 even"><code>Try again. &nbsp;Press the star key when finished.</code></li>
<li class="tab2 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Say<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Record</span><br />
</span</code></li>
<li class="tab4 odd"><code>action=&quot;http://example.com/voice/voicemail/&quot;</code></li>
<li class="tab4 even"><code>method=&quot;GET&quot;</code></li>
<li class="tab4 odd"><code>maxLength=&quot;20&quot;</code></li>
<li class="tab4 even"><code>finishOnKey=&quot;*&quot;</code></li>
<li class="tab2 odd"><code>/&gt;</code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab4 odd"><code>http://example.com/voice/</code></li>
<li class="tab2 even"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Redirect<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="tab0 odd"><code><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/Response<span style="font-weight: bold; color: black;">&gt;</span></span></span></code></li>
<li class="even">&nbsp;</li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/ivr-twilio/voicemail.xml">voicemail.xml</a></li>
</ol>
<p>Next up, I'll talk about Robo-Calling!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2008/12/10/building-an-ivr-with-twilio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code Poetry, it&#8217;s an Art</title>
		<link>http://blogs.blackacid.org/2007/11/21/code-poetry-its-an-art/</link>
		<comments>http://blogs.blackacid.org/2007/11/21/code-poetry-its-an-art/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 00:00:19 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/2007/11/21/code-poetry-its-an-art/</guid>
		<description><![CDATA[To my left is a kickass compiler poet named Gopal Vijay(shortened). I worked with Gopal when I just started to learn compilers and frameworks on the DotGNU Project. He understands what hard work is, as does Rhys Weatherly, the original &#8230; <a href="http://blogs.blackacid.org/2007/11/21/code-poetry-its-an-art/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img width="200" src="http://foss.in/2007/content/images/thumb/1/1c/Gopal.jpg/400px-Gopal.jpg" alt="Gopal V" style="float: left"/>To my left is a kickass compiler poet named Gopal Vijay(shortened).  I worked with Gopal when I just started to learn compilers and frameworks on the DotGNU Project.  He understands what hard work is, as does Rhys Weatherly, the original author of Portable.NET.  Both of them had mentored me to become a better programmer all around and not only understand what it means to do it correctly, always.  After a couple years of working on DotGNU I moved on to constructive network protocol development which pushed me straight back into webservices where I stand today repeating the circle.</p>
<p>The reality is that we like to speak, walk, run around, and play with code.  It&#8217;s our paintbrush, tinker toy, classical instrument, and pen.  It can do things that people can take for granite or widen peoples&#8217; eyes.  </p>
<p>We all need to respect the programmer and give him/her a pat on the back.  A raise might be nice too ;)  </p>
<p>Yes, it&#8217;s true, we develop for ourselves, some more than others.  If we want to build a god damn game engine for a calculator, by damn we will.  You can&#8217;t stop us!  </p>
<p>A toast for the digital poets!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2007/11/21/code-poetry-its-an-art/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Syntax Highlighting &#8211; Phase 2</title>
		<link>http://blogs.blackacid.org/2007/11/18/wordpress-syntax-highlighting-phase-2/</link>
		<comments>http://blogs.blackacid.org/2007/11/18/wordpress-syntax-highlighting-phase-2/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 09:43:17 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[geshi]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/2007/11/18/wordpress-syntax-highlighting-phase-2/</guid>
		<description><![CDATA[Since recent times have suggested to me that I better start putting a good collection of code online about how the things I create work, I need to start with a better syntax highlighter which is so important to explaining &#8230; <a href="http://blogs.blackacid.org/2007/11/18/wordpress-syntax-highlighting-phase-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since recent times have suggested to me that I better start putting a good collection of code online about how the things I create work, I need to start with a better syntax highlighter which is so important to explaining how things work in this world.</p>
<p>I started off using google&#8217;s system, but found it too cumbersome.  I shot straight through three more plugins tonight and found they also have strange issues.  This last one I&#8217;m working with today has found all the problems I have had and made it nice to use, besides one large issue with the WordPress TinyMCE Editor. </p>
<p>The winner is<br />
<a href="http://elasticdog.com/2004/09/code-viewer/" alt="CodeViewer">CodeViewer</a> by elasticdog &#8211; <a href="http://elasticdog.com/2004/09/code-viewer/">http://elasticdog.com/2004/09/code-viewer/</a></p>
<p>Below is a Test Program &#8211; this is a C program and you download here to it:
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #339933;">#include &lt;stdio.h&gt;</span></code></li>
<li class="tab0 even"><code><span style="color: #339933;">#include &lt;stdlib.h&gt;</span></code></li>
<li class="odd">&nbsp;</li>
<li class="tab0 even"><code><span style="color: #993333;">void</span> main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></code></li>
<li class="tab2 odd"><code><span style="color: #b1b100;">return</span>;</code></li>
<li class="tab0 even"><code><span style="color: #66cc66;">&#125;</span></code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/test.c">test.c</a></li>
</ol>
<p>I found that formatting is more important than the actual syntax highlighting.  So what I&#8217;m doing is using CodeViewer for the display and will use a child extension for doing actual syntax highlighting.  </p>
<p><a href="http://qbnz.com/highlighter/">GeSHi</a> has given a wonderful attempt at writing a variable syntax highlighter.  It works while in chunk-based highlighting too.  GeSHi is a O(n) based parser for syntax highlighting, yet it works pretty quickly as it keeps its use of substr and preg_replace at a minimum where doing character based descent to speed up the system.</p>
<p>I&#8217;ve partially implemented GeSHi for line-based highlighting inside CodeViewer.  You can download and compliment your wordpress installation by grabbing this tarball &#8211; <a href="/code/code-viewer_geshi.tar.bz2">Code Viewer with GeSHi Support</a>.  </p>
<p>To write a proper geshi supported tag, you must use the lang attribute.  </p>
<ol class="codelist">
<li class="tab0 odd"><code>&lt;viewcode src=&quot;cv_geshi_example.html&quot; lang=&quot;html&quot; /&gt;</code></li>
</ol>
<p>If you would like to see the changes I&#8217;ve made to the plugin, please see this diff below:</p>
<ol class="codelist">
<li class="tab0 odd"><code><span style="color: #888822;">--- code-viewer.txt&nbsp; &nbsp; &nbsp;Mon Aug <span style="">29</span> <span style="">07</span>:<span style="">08</span>:<span style="">37</span> <span style="">2005</span></span></code></li>
<li class="tab0 even"><code><span style="color: #888822;">+++ code-viewer.php&nbsp; &nbsp; &nbsp;Sun Nov <span style="">18</span> <span style="">09</span>:<span style="">33</span>:<span style="">15</span> <span style="">2007</span></span></code></li>
<li class="tab0 odd"><code><span style="color: #440088;">@@ <span style="">-9</span>,<span style="">14</span> <span style="">+9</span>,<span style="">15</span> @@</span></code></li>
<li class="tab1 even"><code>*/</code></li>
<li class="odd">&nbsp;</li>
<li class="tab1 even"><code>/* Configuration Settings */</code></li>
<li class="tab0 odd"><code><span style="color: #991111;">-$default_path = &quot;http://elasticdog.com/code/&quot;; &nbsp;// the absolute path of your code folder</span></code></li>
<li class="tab0 even"><code><span style="color: #00b000;">+$default_path = &quot;http://<span style="">&#123;</span>$_SERVER<span style="">&#91;</span>'HTTP_HOST'<span style="">&#93;</span><span style="">&#125;</span>/code/&quot;; &nbsp;// the absolute path of your code folder</span></code></li>
<li class="odd">&nbsp;</li>
<li class="tab1 even"><code>/* --- STOP EDITING --- &nbsp;*/</code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+require_once<span style="">&#40;</span>'geshi/geshi.php'<span style="">&#41;</span>;</span></code></li>
<li class="even">&nbsp;</li>
<li class="tab1 odd"><code>function code_viewer<span style="">&#40;</span>$text<span style="">&#41;</span> <span style="">&#123;</span></code></li>
<li class="tab2 even"><code>global $default_path;</code></li>
<li class="odd">&nbsp;</li>
<li class="tab0 even"><code><span style="color: #991111;">-&nbsp; &nbsp; &nbsp; &nbsp;$count = preg_match_all<span style="">&#40;</span>'/&lt;viewcode src=&quot;<span style="">&#40;</span><span style="">&#91;</span>^&quot;<span style="">&#93;</span>+<span style="">&#41;</span>&quot;<span style="">&#40;</span>?: link=&quot;<span style="">&#40;</span>?i:<span style="">&#40;</span>yes|no<span style="">&#41;</span><span style="">&#41;</span>&quot;<span style="">&#41;</span>?\s?\/&gt;/', $text, $matches<span style="">&#41;</span>;</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+&nbsp; &nbsp; &nbsp; &nbsp;$count = preg_match_all<span style="">&#40;</span>'/&lt;viewcode src=&quot;<span style="">&#40;</span><span style="">&#91;</span>^&quot;<span style="">&#93;</span>+<span style="">&#41;</span>&quot;<span style="">&#40;</span>?: link=&quot;<span style="">&#40;</span>?i:<span style="">&#40;</span>yes|no<span style="">&#41;</span><span style="">&#41;</span>&quot;<span style="">&#41;</span>?<span style="">&#40;</span>?: lang=&quot;<span style="">&#40;</span>?i:<span style="">&#40;</span><span style="">&#91;</span>a-z<span style="">&#93;</span>+<span style="">&#41;</span><span style="">&#41;</span>&quot;<span style="">&#41;</span>?\s?\/&gt;/', $text, $matches<span style="">&#41;</span>;</span></code></li>
<li class="even">&nbsp;</li>
<li class="tab2 odd"><code>for <span style="">&#40;</span>$i = <span style="">0</span>; $i &lt; $count; $i++<span style="">&#41;</span> <span style="">&#123;</span></code></li>
<li class="tab3 even"><code>// Determine if the specified path is absolute, or relative to the root path</code></li>
<li class="tab0 odd"><code><span style="color: #440088;">@@ <span style="">-29</span>,<span style="">6</span> <span style="">+30</span>,<span style="">9</span> @@</span></code></li>
<li class="tab4 even"><code>$path = $default_path . $matches<span style="">&#91;</span><span style="">1</span><span style="">&#93;</span><span style="">&#91;</span>$i<span style="">&#93;</span>;</code></li>
<li class="tab3 odd"><code><span style="">&#125;</span></code></li>
<li class="even">&nbsp;</li>
<li class="tab0 odd"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if<span style="">&#40;</span>strtolower<span style="">&#40;</span>$matches<span style="">&#91;</span><span style="">3</span><span style="">&#93;</span><span style="">&#91;</span>$i<span style="">&#93;</span><span style="">&#41;</span> != &quot;&quot;<span style="">&#41;</span> <span style="">&#123;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$language = $matches<span style="">&#91;</span><span style="">3</span><span style="">&#93;</span><span style="">&#91;</span>$i<span style="">&#93;</span>;</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">&#125;</span></span></code></li>
<li class="tab3 even"><code>// Open the file</code></li>
<li class="tab3 odd"><code>// If the file can't be found, print an error message</code></li>
<li class="tab3 even"><code>if <span style="">&#40;</span>$lines = @file<span style="">&#40;</span>$path<span style="">&#41;</span><span style="">&#41;</span> <span style="">&#123;</span></code></li>
<li class="tab0 odd"><code><span style="color: #440088;">@@ <span style="">-44</span>,<span style="">8</span> <span style="">+48</span>,<span style="">11</span> @@</span></code></li>
<li class="tab5 even"><code><span style="">&#125;</span> else <span style="">&#123;</span></code></li>
<li class="tab6 odd"><code>$numtabs = strlen<span style="">&#40;</span>$line<span style="">&#41;</span> - strlen<span style="">&#40;</span>ltrim<span style="">&#40;</span>$line<span style="">&#41;</span><span style="">&#41;</span>; &nbsp;// determine the number of tabs</code></li>
<li class="tab6 even"><code>$line = trim<span style="">&#40;</span>$line<span style="">&#41;</span>; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// trim leading/trailing whitespace</code></li>
<li class="tab0 odd"><code><span style="color: #991111;">-</span></code></li>
<li class="tab0 even"><code><span style="color: #991111;">-&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $codelist .= &quot;\t&quot; . '&lt;li class=&quot;tab' . $numtabs . ' ' . $toggle . '&quot;&gt;&lt;code&gt;' . htmlspecialchars<span style="">&#40;</span>$line<span style="">&#41;</span> . '&lt;/code&gt;&lt;/li&gt;' . &quot;\n&quot;;</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if<span style="">&#40;</span>isset<span style="">&#40;</span>$language<span style="">&#41;</span><span style="">&#41;</span> <span style="">&#123;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$codelist .= &quot;\t&quot; . '&lt;li class=&quot;tab' . $numtabs . ' ' . $toggle . '&quot;&gt;&lt;code&gt;' . geshi_highlight<span style="">&#40;</span>$line, $language, null, true<span style="">&#41;</span> . '&lt;/code&gt;&lt;/li&gt;' . &quot;\n&quot;;</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">&#125;</span> else <span style="">&#123;</span></span></code></li>
<li class="tab0 even"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$codelist .= &quot;\t&quot; . '&lt;li class=&quot;tab' . $numtabs . ' ' . $toggle . '&quot;&gt;&lt;code&gt;' . htmlspecialchars<span style="">&#40;</span>$line<span style="">&#41;</span> . '&lt;/code&gt;&lt;/li&gt;' . &quot;\n&quot;;</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">&#125;</span></span></code></li>
<li class="tab5 even"><code><span style="">&#125;</span></code></li>
<li class="tab4 odd"><code><span style="">&#125;</span></code></li>
<li class="even">&nbsp;</li>
<li class="tab0 odd"><code><span style="color: #440088;">@@ <span style="">-76</span>,<span style="">4</span> <span style="">+83</span>,<span style="">4</span> @@</span></code></li>
<li class="even">&nbsp;</li>
<li class="tab1 odd"><code>add_filter<span style="">&#40;</span>'the_content', 'code_viewer', <span style="">9</span><span style="">&#41;</span>;</code></li>
<li class="tab1 even"><code>add_filter<span style="">&#40;</span>'the_content', 'fix_bad_p'<span style="">&#41;</span>;</code></li>
<li class="tab0 odd"><code><span style="color: #991111;">-?&gt;</span></code></li>
<li class="tab0 even"><code><span style="color: #aaaaaa; font-style: italic;">\ No newline at end of file</span></code></li>
<li class="tab0 odd"><code><span style="color: #00b000;">+?&gt;</span></code></li>
<li class="sourcelink"><strong>Download this code:</strong> <a href="http://blogs.blackacid.org/code/code-viewer_geshi.diff">code-viewer_geshi.diff</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2007/11/18/wordpress-syntax-highlighting-phase-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Code Prettify for wordpress</title>
		<link>http://blogs.blackacid.org/2007/08/08/google-code-prettify-for-wordpress/</link>
		<comments>http://blogs.blackacid.org/2007/08/08/google-code-prettify-for-wordpress/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 20:22:53 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/2007/08/08/google-code-prettify-for-wordpress/</guid>
		<description><![CDATA[I&#8217;m testing out this cool js based wp plugin. foreach($bastards as $retard) { $life-&#62;addFailuresIQRates($retard-&#62;get("iq_test_scores")); }]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m testing out this cool js based wp plugin.</p>
<p><code class="”prettyprint”"><br />
foreach($bastards as $retard) {<br />
  $life-&gt;addFailuresIQRates($retard-&gt;get("iq_test_scores"));<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2007/08/08/google-code-prettify-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super Happy Dev House Fun</title>
		<link>http://blogs.blackacid.org/2007/08/08/super-happy-dev-house-fun/</link>
		<comments>http://blogs.blackacid.org/2007/08/08/super-happy-dev-house-fun/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 18:53:41 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[Daily Dwindle]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blogs.blackacid.org/2007/08/08/super-happy-dev-house-fun/</guid>
		<description><![CDATA[About ~six weeks ago we decided to expand our datacenter to a San Jose location. Mae West is our new location for current and future servers at the Blackacid Community Colocation Project(BCCP). It just so happened to be the same &#8230; <a href="http://blogs.blackacid.org/2007/08/08/super-happy-dev-house-fun/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float: right"><img src="http://farm1.static.flickr.com/76/197866518_44645e3f3d_m.jpg" width="150" /></p>
<p>About ~six weeks ago we decided to expand our datacenter to a San Jose location.  <a href="http://www.mae.net/fac/mae-west.htm">Mae West</a> is our new location for current and future servers at the Blackacid Community Colocation Project(BCCP).  It just so happened to be the same weekend as <a href="http://superhappydevhouse.org/SuperHappyDevHouse18">SHDH18</a>.  Never had a better time with a bunch of geeks and some of these guys know how to pound a beer.  If you are in the bay area and you haven&#8217;t heard about this event, you are really missing out.  I&#8217;m still living in Phoenix these days so its not an easy event to make.  We hope to set one up in Phoenix if it appears to be a tough habit.  If anyone has interest in helping out with such an event, please email me. Adios!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2007/08/08/super-happy-dev-house-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busy, Busy, and Busy</title>
		<link>http://blogs.blackacid.org/2006/03/31/busy-busy-and-busy/</link>
		<comments>http://blogs.blackacid.org/2006/03/31/busy-busy-and-busy/#comments</comments>
		<pubDate>Fri, 31 Mar 2006 14:44:55 +0000</pubDate>
		<dc:creator>aballai</dc:creator>
				<category><![CDATA[Daily Dwindle]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PSP Programming]]></category>

		<guid isPermaLink="false">http://blackacid.org/wordpress/?p=4</guid>
		<description><![CDATA[It&#8217;s been a hell of a week with tossing and turning between personal, business, and education. I&#8217;ve succeeded in re-entering a University to finish up my BSE in programming. Biggest feat of getting a business plan written for a new &#8230; <a href="http://blogs.blackacid.org/2006/03/31/busy-busy-and-busy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a hell of a week with tossing and turning between personal, business, and education. I&#8217;ve succeeded in re-entering a University to finish up my BSE in programming. Biggest feat of getting a business plan written for a new venture is completed, <span id="more-4"></span>or so I think ;) Alas, I&#8217;ve gotten requests for possible work. A healthy note always works.</p>
<p>So whats under my dev-blurb for the last 24 hours you ask?</p>
<p>I loaded up FreeBSD-6.0 Release on my HP zv5410us &#8211; thanks to cokane for the help he pointed me to at defcon last year! =)</p>
<p>Looks like I got this blog properly working and running under my hackish design of four cols =D</p>
<p>I accomplished a series of annoying builds, builds, and rebuilds till I had an outcome of a<br />
full homebrew psp development toolchain setup&#8230;  not very difficult to make <a href="http://www.oopo.net/consoledev">oopo&#8217;s</a> script to work properly under freebsd.  If you can&#8217;t figure it out, well email me or join #pspdev on freenode.</p>
<p>Looks great, feels great, the psp that is. I wrote a couple tests for the 1.0 psp that work as predicted ;) Simple text-based output and shapes, nothing special. I&#8217;ll try some algorithms in a bit and try out the pad!</p>
<ul />Getting sleepy, but more stuff to do!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.blackacid.org/2006/03/31/busy-busy-and-busy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
