<?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>Aaron As a Chimp</title>
	<atom:link href="http://sachimp.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sachimp.com</link>
	<description>with a typewriter</description>
	<lastBuildDate>Sat, 16 Jan 2010 22:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scientific Notation &#8211; Quick JS Snippy</title>
		<link>http://sachimp.com/2010/01/16/scientific-notation-2/</link>
		<comments>http://sachimp.com/2010/01/16/scientific-notation-2/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 21:19:36 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=143</guid>
		<description><![CDATA[
Number.prototype.toScientific = function &#40;x&#41; &#123;
&#160;
	var parts = this.toExponential&#40;x&#41;.split&#40; /[e]\+?/i ,2&#41;;
&#160;
	return parts&#91;0&#93; + &#40;&#40;parts&#91;1&#93; != 0 &#38;&#38; parts &#91;1&#93; != 1&#41;? &#34; &#38;times; 10&#60;sup&#62;&#34; + parts&#91;1&#93; + &#34;&#60;/sup&#62;&#34;: &#34;&#34;&#41;;
&#125;






		
			Send this page to Print Friendly
		
		
			Tweet This!
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Facebook
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Email this to a friend?
		





]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Number.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">toScientific</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> parts <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">toExponential</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span> <span style="color: #009966; font-style: italic;">/[e]\+?/i</span> <span style="color: #339933;">,</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">return</span> parts<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>parts<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> parts <span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot; &amp;times; 10&lt;sup&gt;&quot;</span> <span style="color: #339933;">+</span> parts<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;/sup&gt;&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>



<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2010/01/16/scientific-notation-2/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Scientific+Notation+-+Quick+JS+Snippy+-+http://b2l.me/dwdbu+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2010/01/16/scientific-notation-2/&amp;title=Scientific+Notation+-+Quick+JS+Snippy" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2010/01/16/scientific-notation-2/&amp;t=Scientific+Notation+-+Quick+JS+Snippy" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2010/01/16/scientific-notation-2/&amp;title=Scientific+Notation+-+Quick+JS+Snippy" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2010/01/16/scientific-notation-2/&amp;title=Scientific+Notation+-+Quick+JS+Snippy" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Scientific%20Notation%20-%20Quick%20JS%20Snippy%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Number.prototype.toScientific%20%3D%20function%20%28x%29%20%7B%0D%0A%0D%0A%09var%20parts%20%3D%20this.toExponential%28x%29.split%28%20%2F%5Be%5D%5C%2B%3F%2Fi%20%2C2%29%3B%0D%0A%09%0D%0A%09return%20parts%5B0%5D%20%2B%20%28%28parts%5B1%5D%20%21%3D%200%20%26%26%20parts%20%5B1%5D%20%21%3D%201%29%3F%20%22%20%26times%3B%2010%22%20%2B%20parts%5B1%5D%20%2B%20%22%22%3A%20%22%22%29%3B%0D%0A%7D%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2010/01/16/scientific-notation-2/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2010/01/16/scientific-notation-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Barbeque: A brainstorm on better Data interfaces</title>
		<link>http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/</link>
		<comments>http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 00:46:38 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[bbQuery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=89</guid>
		<description><![CDATA[So, with the release of PHP 5.3 some of the new features got me thinking about better ways to query and interact with data.  I&#8217;m tentatively calling it bbQuery, or bbQ for short.
Data Driven Apps
Web applications are typically driven by data and interactions between it.  A typical situation involves: Querying data from the [...]]]></description>
			<content:encoded><![CDATA[<p>So, with the release of <a href="http://www.php.net/archive/2009.php#id2009-06-30-1">PHP 5.3</a> some of the new features got me thinking about better ways to query and interact with data.  I&#8217;m tentatively calling it <strong>bbQuery</strong>, or <strong>bbQ</strong> for short.</p>
<h3>Data Driven Apps</h3>
<p>Web applications are typically driven by<strong> data </strong>and interactions<strong> between it</strong>.  A typical situation involves: Querying data from the database, formatting as HTML, outputting.  A few years ago it was just that simple.  <strong>Today</strong> you have JSON, RSS, and other various formats.</p>
<p>Going by the standard model, you have to create <strong>each</strong> page <strong>separately</strong> for all of the various formats, duplicating code.  I can&#8217;t say I solved this problem entirely, but I&#8217;m getting close.</p>
<h3>Grab the Steaks, It&#8217;s Time for a bbQ</h3>
<p>The goal is to be <strong>functionally similar</strong> to SQL but include a formatting layer that <strong>intelligently</strong> determines the way to display the data.  The following snippet show how the old model can be transitioned to bbQ.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Children'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'children_id'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dob'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fitness'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">${row['dob']}</span> - <span style="color: #006699; font-weight: bold;">${row['fitness']}</span> - <span style="color: #006699; font-weight: bold;">${row['status']}</span>&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>A simple example using the <a href="http://github.com/AaronAsAChimp/gfonted/blob/692129f6bb5bad40e302b98010358a95c08d32a2/db.sql">gFonted database</a>.  The first line selects the table from the database.  On the second we select the columns we want in the query.  The query results are then returned in to a callback from the format function.  Very quickly you could create predefined formatting functions.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Children'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">left_join</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Template'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'children_id'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span>bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">format_table</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// predefined format functions</span></pre></div></div>

<p>But thats far from automatic, intelligent maybe.  Its impossible to guess what format anyone will need.  There are a few generic formats (JSON and XML) that could be dealt with automatically.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Children'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">left_join</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Template'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'children_id'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">order_by</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fitness'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">asc</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// bbQuery::asc == &quot;asc&quot;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_type</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;application/json&quot;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Children'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">left_join</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Template'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'children_id'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// is a variable that gets overwritten</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">order_by</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fitness'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">desc</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// order by's are string</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">order_by</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dob'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">asc</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// and gets appended to</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_type</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;application/xml&quot;</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Going the Other Direction</h3>
<p>Sometimes its useful to put data into a database.  I guess thats an understatement.  Its also an understatement to say that doing so is a simple task.  An example of standard data insertion:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Correct'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">insert_into</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'children_id'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'correct'</span><span style="color: #009900;">&#41;</span>  <span style="color: #666666; font-style: italic;">// returns an insert object</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">values</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>However this could be greatly simplified.  MySQL already knows the datatype for the column, so validation could be automated.  The data could even be automatically inserted from a form.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;form&gt;
   &lt;input name=&quot;children_id&quot; type=&quot;text&quot; value=&quot;12&quot; /&gt;
   &lt;input name=&quot;correct&quot; type=&quot;checkbox&quot; /&gt;
&lt;/form&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #000088;">$DB</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Children'</span><span style="color: #009900;">&#93;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">insert_into</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'children_id'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'correct'</span><span style="color: #009900;">&#41;</span>  <span style="color: #666666; font-style: italic;">// returns an insert object</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">from_form</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And finally some other useful snippets:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DB</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select * from Children&quot;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span>bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">format_table</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">create_table</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// returns a create_table object</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_id'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">id_column</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// id is special if set as a primary key, unsigned integer autoincrement</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_foreign_id'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">id_column</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// just a unsigned integer</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_char'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">char_column</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// field length as parameter</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_int'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">integer_column</span><span style="color: #009900;">&#40;</span>bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">big</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// default as third parameter to column</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_enum'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">enum_column</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'val'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'val3'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'val2'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// enum is varidaic</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">primary_key</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_id'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">foreign_key</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_foreign_id'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Correct'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$DB</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">alter_table</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// returns a alter_table object</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">add</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_timestamp'</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">timestamp_column</span><span style="color: #339933;">,</span> bbQuery<span style="color: #339933;">::</span><span style="color: #004000;">now</span><span style="color: #009900;">&#41;</span>
   <span style="color: #339933;">-&gt;</span><span style="color: #004000;">drop</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test_int'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$DB</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;truncate table test&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// format is not appropriate here</span></pre></div></div>



<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Barbeque%3A+A+brainstorm+on+better+Data+interfaces+-+http://b2l.me/act9r+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/&amp;title=Barbeque%3A+A+brainstorm+on+better+Data+interfaces" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/&amp;t=Barbeque%3A+A+brainstorm+on+better+Data+interfaces" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/&amp;title=Barbeque%3A+A+brainstorm+on+better+Data+interfaces" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/&amp;title=Barbeque%3A+A+brainstorm+on+better+Data+interfaces" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Barbeque%3A%20A%20brainstorm%20on%20better%20Data%20interfaces%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22So%2C%20with%20the%20release%20of%20PHP%205.3%20some%20of%20the%20new%20features%20got%20me%20thinking%20about%20better%20ways%20to%20query%20and%20interact%20with%20data.%20%20I%27m%20tentatively%20calling%20it%20bbQuery%2C%20or%20bbQ%20for%20short.%0D%0AData%20Driven%20Apps%0D%0AWeb%20applications%20are%20typically%20driven%20by%20data%20and%20interactions%20between%20it.%20%20A%20typical%20situation%20involv%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2009/07/06/barbeque-a-brainstorm-on-better-data-interfaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cosmic Sans source available at GitHub</title>
		<link>http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/</link>
		<comments>http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 19:22:07 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Original Fonts]]></category>
		<category><![CDATA["Google Docs"]]></category>
		<category><![CDATA[cosmic sans]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[GitHub]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=69</guid>
		<description><![CDATA[Cosmic Sans, a font showing the planets to scale, is now available at GitHub.
If you are an artist, astronimer, or a space enthusiast you can help contribute.  A list of desired space objects are at Google Docs.  If your interested leave a comment, or just fork the get repository and send me a Pull Request.





		
			Send [...]]]></description>
			<content:encoded><![CDATA[<p>Cosmic Sans, a font showing the planets to scale, is now available at <a href="http://github.com/AaronAsAChimp/cosmic-sans/tree/master">GitHub</a>.</p>
<p>If you are an artist, astronimer, or a space enthusiast you can help contribute.  A list of desired space objects are at <a href="http://spreadsheets.google.com/pub?key=r9XiKwkHRn0jsGAae5q5aKA&amp;output=html">Google Docs</a>.  If your interested leave a comment, or just fork the get repository and send me a <a href="http://github.com/guides/pull-requests">Pull Request</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Cosmic+Sans+source+available+at+GitHub+-+http://b2l.me/acup2+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/&amp;title=Cosmic+Sans+source+available+at+GitHub" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/&amp;t=Cosmic+Sans+source+available+at+GitHub" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/&amp;title=Cosmic+Sans+source+available+at+GitHub" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/&amp;title=Cosmic+Sans+source+available+at+GitHub" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Cosmic%20Sans%20source%20available%20at%20GitHub%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Cosmic%20Sans%2C%20a%20font%20showing%20the%20planets%20to%20scale%2C%20is%20now%20available%20at%20GitHub.%0D%0A%0D%0AIf%20you%20are%20an%20artist%2C%20astronimer%2C%20or%20a%20space%20enthusiast%20you%20can%20help%20contribute.%C2%A0%20A%20list%20of%20desired%20space%20objects%20are%20at%20Google%20Docs.%C2%A0%20If%20your%20interested%20leave%20a%20comment%2C%20or%20just%20fork%20the%20get%20repository%20and%20send%20me%20a%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2009/06/05/cosmic-sans-source-available-at-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dr. JavaScript and Mr. PHP</title>
		<link>http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/</link>
		<comments>http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 00:27:40 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Sachimp Labs]]></category>
		<category><![CDATA[Billy Hoffman]]></category>
		<category><![CDATA[Hak .5]]></category>
		<category><![CDATA[hybrid code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=35</guid>
		<description><![CDATA[In my last post I wrote about JavaScript variables.  It stemmed from realizing that the dollar sign ($) was a valid character in JavaScript.  I struggled to find any use for all of these new characters – other than making code unreadable.  One thing stuck out in my mind.  An old episode of Hak .5 where [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a title="The many lives of JavaScript variables" href="/2008/12/13/javascript-variables/">last post</a> I wrote about JavaScript variables.  It stemmed from realizing that the dollar sign ($) was a valid character in JavaScript.  I struggled to find any use for all of these new characters – other than making code unreadable.  One thing stuck out in my mind.  An <a href="http://www.hak5.org/episodes/episode-2x09-release">old episode of Hak .5</a> where Billy Hoffman described a <a href="http://en.wikipedia.org/wiki/Computer_worm">worm</a> that would be written in a hybrid of Perl and JavaScript.  A <em>Dr. Jekyll and Mr. Hyde</em> scenario where the worm would embed itself in a web page and search for a &#8220;host&#8221;, and then infect that host.  That host would then serve pages with the worm embedded in it, creating exponential growth.  Unfortunately at the time he didn&#8217;t have a proof of concept.</p>
<h3>Hybrid Means Better Gas Mileage</h3>
<p>Unlike Billy&#8217;s technique I chose to use PHP instead of Perl.  Many of the language constructs are identical between PHP and JavaScript.  However there are few snags.</p>
<ul>
<li>PHP scripts have to start and end with &#8216;&lt;?&#8217; and &#8216;?&gt;&#8217; respectively.</li>
<li>PHP variables must start with a &#8216;$&#8217;.</li>
<li>Most of JavaScript&#8217;s standard functions are wrapped in objects.  Math, String, etc.</li>
<li>PHP uses the &#8216;.&#8217; for concatenation, while JavaScript uses &#8216;+&#8217;.</li>
<li>PHP uses C++ style definition for objects, while JavaScript uses a prototype definition.</li>
<li>JavaScript uses the C++ style const keyword to define constants, while PHP uses the define() function.</li>
</ul>
<h3>The Lucky Ones</h3>
<p>Not all of these problems can be worked around, but enough of them can be worked around that functioning code can be written.</p>
<dl>
<dt>PHP scripts have to start and end with &#8216;&lt;?&#8217; and &#8216;?&gt;&#8217; respectively.</dt>
<dd>The workaround for this is to run the script using the eval() function.  The PHP&#8217;s eval() function doesn&#8217;t require the opening and closing tags as feature.</dd>
<dt>PHP variables must start with a &#8216;$&#8217;.</dt>
<dd>The dollar sign is a valid character in JavaScript variables, so starting them with the dollar sign poses no problem.</dd>
<dt>Most of JavaScript&#8217;s standard functions are wrapped in objects.  Math, String, etc.</dt>
<dd><a title="PHP.js" href="http://phpjs.org/">PHP.js</a> can be used to wrap the standard JavaScript functions.  Acting as a compatibility layer.</dd>
<dt>JavaScript uses the C++ style const keyword to define constants, while PHP uses the define() function.</dt>
<dd>PHP version 5.3.0 allows for the const keyword.</dd>
</dl>
<h3>Taking the Plunge</h3>
<p>As a proof of concept I wrote a small function to calculate  the <a href="http://en.wikipedia.org/wiki/Great-circle_distance">great circle distance</a>.  It computes the distance in both PHP and JavaScript.  You can find it <a href="http://code.sachimp.com/labs/dualcode/">here</a> and hybrid PHP / JavaScript code <a href="http://code.sachimp.com/labs/dualcode/dualcode.js">here</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Dr.+JavaScript+and+Mr.+PHP+-+http://b2l.me/acup3+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/&amp;title=Dr.+JavaScript+and+Mr.+PHP" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/&amp;t=Dr.+JavaScript+and+Mr.+PHP" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/&amp;title=Dr.+JavaScript+and+Mr.+PHP" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/&amp;title=Dr.+JavaScript+and+Mr.+PHP" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Dr.%20JavaScript%20and%20Mr.%20PHP%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22In%20my%20last%20post%20I%20wrote%20about%20JavaScript%20variables.%C2%A0%20It%20stemmed%20from%20realizing%20that%20the%20dollar%20sign%20%28%24%29%20was%20a%20valid%20character%20in%20JavaScript.%C2%A0%20I%20struggled%20to%20find%20any%20use%20for%20all%20of%20these%20new%20characters%C2%A0%E2%80%93%20other%20than%20making%20code%20unreadable.%C2%A0%20One%20thing%20stuck%20out%20in%20my%20mind.%C2%A0%20An%20old%20episode%20of%20Ha%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2009/01/21/dr-javascript-and-mr-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The many lives of JavaScript variables</title>
		<link>http://sachimp.com/2008/12/13/javascript-variables/</link>
		<comments>http://sachimp.com/2008/12/13/javascript-variables/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 03:42:30 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Sachimp Labs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[special characters]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=13</guid>
		<description><![CDATA[So, It was about three months ago when I first met jQuery.  It&#8217;s a neat little library that helps JavaScript programmers easily do relatively complex things.  Among many of its features one stood out to me.  The $() function is an interesting beast that takes a CSS selector or XPath and returns a set of [...]]]></description>
			<content:encoded><![CDATA[<p>So, It was about three months ago when I first met jQuery.  It&#8217;s a neat little library that helps JavaScript programmers easily do relatively complex things.  Among many of its features one stood out to me.  The $() function is an interesting beast that takes a CSS selector or XPath and returns a set of matching nodes.  However, the application of it was not what attracted me to it.</p>
<h3>The Revelation</h3>
<p>The name, a single dollar sign, is what struck me.  I never knew that such a character could be used in a variable name.  As I, and many others, were taught the only character allowed were:</p>
<ol>
<li>letters</li>
<li>underscores</li>
<li>and numbers so long they are not the first character</li>
</ol>
<p>I was interested and decided to embark on quest to figure out what characters were allowed and which weren&#8217;t.  This took me to the <a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMA-262 specification</a>, the standard for JavaScript, or ECMA Script as its formally called. The standard states:</p>
<blockquote><p>Identifiers are interpreted according to the grammar given in Section 5.16 of the upcoming version 3.0 of the Unicode standard, with some small modifications.</p></blockquote>
<p>The <a href="http://www.unicode.org/reports/tr31/">Unicode Standard</a> allows for nearly 14,000 characters to be used in variables, as opposed to the measly 63 that are commonly used.</p>
<h3>The Disappointment</h3>
<p>I instantly tried to stuff Sigmas (Σ) and Double Struck N&#8217;s (ℕ) in to my code, but to my dismay, they didn&#8217;t work.  Disappointing? Yes.  Surprising? No.  It seems to be this way with all web standard&#8217;s, either implemented wrongly or incompletely (or both, heres looking at you Microsoft).  So, to test compliance I wrote a small JavaScript that creates a variable, using one of the Unicode characters, and assigns a value to it.  If throws an exception, then that means the browser doesn&#8217;t support that character.  Simple enough, but who wins this browser compliance battle.  So far Opera, it supports 99.5% of all characters.  Heres the data I&#8217;ve collected so far:</p>
<table border="0">
<thead>
<tr>
<td>Browser</td>
<td>Chars Tested</td>
<td>Non Supported Chars</td>
<td>% Not Supported</td>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Opera 9.27<br />
</strong>(Ubuntu Linux)</td>
<td>13935</td>
<td>78</td>
<td>0.5597416576964478</td>
</tr>
<tr>
<td><strong>Opera 9.63<br />
</strong>(Windows XP &amp; Ubuntu Linux)</td>
<td>13935</td>
<td>80</td>
<td>0.5740940078937926</td>
</tr>
<tr>
<td><strong>Internet Explorer 8 beta<br />
</strong>(Windows 7 beta)</td>
<td>13935</td>
<td>2131</td>
<td>15.292429135270902</td>
</tr>
<tr>
<td><strong>Google Chrome<br />
</strong>(Windows XP)</td>
<td>13935</td>
<td>2746</td>
<td>19.705776820954434</td>
</tr>
<tr>
<td><strong>Internet Explorer 7 &amp; 6<br />
</strong>(Windows XP)</td>
<td>13935</td>
<td>4340</td>
<td>31.144599928238246</td>
</tr>
<tr>
<td><strong>Firefox 3.0.X<br />
</strong>(Windows XP &amp; Ubuntu Linux)</td>
<td>13935</td>
<td>7220</td>
<td>51.811984212414785</td>
</tr>
</tbody>
</table>
<p>Yeah, I know thats a pathetically small dataset, but you can help run <a title="READ THE WARNING FIRST" href="http://code.sachimp.com/labs/unicode-support.html">the test script</a> and then post the last three lines in the comments along with the browser, version, and OS.  WARNING: This script takes a very long time to execute, it may appear to lock your browser up, but be patient.</p>
<p>On an unrelated note, Chrome&#8217;s Javascript engine was suprisingly fast.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2008/12/13/javascript-variables/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=The+many+lives+of+JavaScript+variables+-+http://b2l.me/acup4+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2008/12/13/javascript-variables/&amp;title=The+many+lives+of+JavaScript+variables" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2008/12/13/javascript-variables/&amp;t=The+many+lives+of+JavaScript+variables" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2008/12/13/javascript-variables/&amp;title=The+many+lives+of+JavaScript+variables" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2008/12/13/javascript-variables/&amp;title=The+many+lives+of+JavaScript+variables" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22The%20many%20lives%20of%20JavaScript%20variables%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22So%2C%20It%20was%20about%20three%20months%20ago%20when%20I%20first%20met%20jQuery.%C2%A0%20It%27s%20a%20neat%20little%20library%20that%20helps%20JavaScript%20programmers%20easily%20do%20relatively%20complex%20things.%C2%A0%20Among%20many%20of%20its%20features%20one%20stood%20out%20to%20me.%C2%A0%20The%20%24%28%29%20function%20is%20an%20interesting%20beast%20that%20takes%20a%20CSS%20selector%20or%20XPath%20and%20returns%20a%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2008/12/13/javascript-variables/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2008/12/13/javascript-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cosmic Sans</title>
		<link>http://sachimp.com/2008/12/09/cosmic-sans/</link>
		<comments>http://sachimp.com/2008/12/09/cosmic-sans/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 22:43:44 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Original Fonts]]></category>
		<category><![CDATA[cosmic sans]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=16</guid>
		<description><![CDATA[I&#8217;ve had this font sitting my hard drive for a while I thought I should get around to publishing it.  You can get it from openfontlibrary. Currently it only has the 8 planets, but I&#8217;ll eventually add more cosmic stuff.  If you have any ideas leave them in the comments.






		
			Send this page to Print Friendly
		
		
			Tweet [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had this font sitting my hard drive for a while I thought I should get around to publishing it.  You can get it from <a title="Cosmic Sans" href="http://openfontlibrary.org/media/files/AaronAsAChimp/350">openfontlibrary.</a> Currently it only has the 8 planets, but I&#8217;ll eventually add more cosmic stuff.  If you have any ideas leave them in the comments.<a href="http://sachimp.com/wp-content/uploads/2008/12/preview.png"><img class="aligncenter size-medium wp-image-20" title="Cosmic Sans" src="http://sachimp.com/wp-content/uploads/2008/12/preview-300x64.png" alt="" width="300" height="64" /></a></p>
<p style="text-align: center;">


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2008/12/09/cosmic-sans/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Cosmic+Sans+-+http://b2l.me/acup6+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2008/12/09/cosmic-sans/&amp;title=Cosmic+Sans" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2008/12/09/cosmic-sans/&amp;t=Cosmic+Sans" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2008/12/09/cosmic-sans/&amp;title=Cosmic+Sans" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2008/12/09/cosmic-sans/&amp;title=Cosmic+Sans" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Cosmic%20Sans%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22I%27ve%20had%20this%20font%20sitting%20my%20hard%20drive%20for%20a%20while%20I%20thought%20I%20should%20get%20around%20to%20publishing%20it.%C2%A0%20You%20can%20get%20it%20from%20openfontlibrary.%20Currently%20it%20only%20has%20the%208%20planets%2C%20but%20I%27ll%20eventually%20add%20more%20cosmic%20stuff.%C2%A0%20If%20you%20have%20any%20ideas%20leave%20them%20in%20the%20comments.%0D%0A%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2008/12/09/cosmic-sans/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2008/12/09/cosmic-sans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ding v1.1</title>
		<link>http://sachimp.com/2008/11/06/ding-v11/</link>
		<comments>http://sachimp.com/2008/11/06/ding-v11/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 15:07:39 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Ding]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=9</guid>
		<description><![CDATA[Ding version 1.1 has been released.  This release includes bug fixes for the view mode, and some optimizations.
Get it at: http://code.sachimp.com/ding/





		
			Send this page to Print Friendly
		
		
			Tweet This!
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Facebook
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Email this to a friend?
		





]]></description>
			<content:encoded><![CDATA[<p>Ding version 1.1 has been released.  This release includes bug fixes for the view mode, and some optimizations.</p>
<p>Get it at: <a title="Aaron Codes a CHimp" href="http://code.sachimp.com/ding/">http://code.sachimp.com/ding/</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2008/11/06/ding-v11/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Ding+v1.1+-+http://b2l.me/acup7+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2008/11/06/ding-v11/&amp;title=Ding+v1.1" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2008/11/06/ding-v11/&amp;t=Ding+v1.1" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2008/11/06/ding-v11/&amp;title=Ding+v1.1" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2008/11/06/ding-v11/&amp;title=Ding+v1.1" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Ding%20v1.1%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22Ding%20version%201.1%20has%20been%20released.%C2%A0%20This%20release%20includes%20bug%20fixes%20for%20the%20view%20mode%2C%20and%20some%20optimizations.%0D%0A%0D%0AGet%20it%20at%3A%20http%3A%2F%2Fcode.sachimp.com%2Fding%2F%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2008/11/06/ding-v11/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2008/11/06/ding-v11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aaron Creates A Chimp</title>
		<link>http://sachimp.com/2008/11/02/aaron-creates-a-chimp/</link>
		<comments>http://sachimp.com/2008/11/02/aaron-creates-a-chimp/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 15:48:41 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Ding]]></category>
		<category><![CDATA[getcorkd]]></category>
		<category><![CDATA[hire me]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[sachimp]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=7</guid>
		<description><![CDATA[or at least a website.  Ok, so, here&#8217;s how it goes:

code.sachimp.com There&#8217;s some cool stuff including Inkscape extensions, Buildings API and, and some cool form widgets.
hire.sachimp.com My portfolio and resume, In case you need a really good developer / designer.

Don&#8217;t forget to check out getcorkd.com if you need a model or photographer.





		
			Send this page to [...]]]></description>
			<content:encoded><![CDATA[<p>or at least a website.  Ok, so, here&#8217;s how it goes:</p>
<ul>
<li><a title="code" href="http://code.sachimp.com">code.sachimp.com</a> There&#8217;s some cool stuff including Inkscape extensions, Buildings API and, and some cool form widgets.</li>
<li><a title="Portfolio" href="http://hire.sachimp.com">hire.sachimp.com</a> My portfolio and resume, In case you need a really good developer / designer.</li>
</ul>
<p>Don&#8217;t forget to check out <a href="http://getcorkd.com">getcorkd.com</a> if you need a model or photographer.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2008/11/02/aaron-creates-a-chimp/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Aaron+Creates+A+Chimp+-+http://b2l.me/acuqa+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2008/11/02/aaron-creates-a-chimp/&amp;title=Aaron+Creates+A+Chimp" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2008/11/02/aaron-creates-a-chimp/&amp;t=Aaron+Creates+A+Chimp" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2008/11/02/aaron-creates-a-chimp/&amp;title=Aaron+Creates+A+Chimp" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2008/11/02/aaron-creates-a-chimp/&amp;title=Aaron+Creates+A+Chimp" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Aaron%20Creates%20A%20Chimp%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22or%20at%20least%20a%20website.%C2%A0%20Ok%2C%20so%2C%20here%27s%20how%20it%20goes%3A%0D%0A%0D%0A%09code.sachimp.com%20There%27s%20some%20cool%20stuff%20including%20Inkscape%20extensions%2C%20Buildings%20API%20and%2C%20and%20some%20cool%20form%20widgets.%0D%0A%09hire.sachimp.com%20My%20portfolio%20and%20resume%2C%20In%20case%20you%20need%20a%20really%20good%20developer%20%2F%20designer.%0D%0A%0D%0ADon%27t%20forget%20to%20check%20ou%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2008/11/02/aaron-creates-a-chimp/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2008/11/02/aaron-creates-a-chimp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Things Set up</title>
		<link>http://sachimp.com/2008/10/31/getting-things-set-up/</link>
		<comments>http://sachimp.com/2008/10/31/getting-things-set-up/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 17:02:01 +0000</pubDate>
		<dc:creator>AaronAsAChimp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sachimp.com/?p=3</guid>
		<description><![CDATA[I&#8217;m getting things set up.  Make yourself at home. There&#8217;s some drinks in the fridge, but stay away from the Guacamole, its been in there a while.  You can check out sachimp.com/portfolio for stuff I&#8217;ve worked on in the past.  Oh, and check back here in a bit for some more cool stuff.





		
			Send this page [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting things set up.  Make yourself at home. There&#8217;s some drinks in the fridge, but stay away from the Guacamole, its been in there a while.  You can check out <a title="portfolio" href="http://aarona.sachimp.com/portfolio">sachimp.com/portfolio</a> for stuff I&#8217;ve worked on in the past.  Oh, and check back here in a bit for some more cool stuff.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://sachimp.com/2008/10/31/getting-things-set-up/" rel="nofollow" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Getting+Things+Set+up+-+http://b2l.me/acuqb+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://sachimp.com/2008/10/31/getting-things-set-up/&amp;title=Getting+Things+Set+up" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://sachimp.com/2008/10/31/getting-things-set-up/&amp;t=Getting+Things+Set+up" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://sachimp.com/2008/10/31/getting-things-set-up/&amp;title=Getting+Things+Set+up" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://sachimp.com/2008/10/31/getting-things-set-up/&amp;title=Getting+Things+Set+up" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Getting%20Things%20Set%20up%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22I%27m%20getting%20things%20set%20up.%C2%A0%20Make%20yourself%20at%20home.%20There%27s%20some%20drinks%20in%20the%20fridge%2C%20but%20stay%20away%20from%20the%20Guacamole%2C%20its%20been%20in%20there%20a%20while.%C2%A0%20You%20can%20check%20out%20sachimp.com%2Fportfolio%20for%20stuff%20I%27ve%20worked%20on%20in%20the%20past.%C2%A0%20Oh%2C%20and%20check%20back%20here%20in%20a%20bit%20for%20some%20more%20cool%20stuff.%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://sachimp.com/2008/10/31/getting-things-set-up/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://sachimp.com/2008/10/31/getting-things-set-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
