<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Honey Baked Goodness!</title>
	<atom:link href="http://brianin3d.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://brianin3d.wordpress.com</link>
	<description>Remember: when you zoom into the fractal, the fractal also zooms into you</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:03:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='brianin3d.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Honey Baked Goodness!</title>
		<link>http://brianin3d.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://brianin3d.wordpress.com/osd.xml" title="Honey Baked Goodness!" />
	<atom:link rel='hub' href='http://brianin3d.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A003686</title>
		<link>http://brianin3d.wordpress.com/2012/01/20/658/</link>
		<comments>http://brianin3d.wordpress.com/2012/01/20/658/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:00:48 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=658</guid>
		<description><![CDATA[A few weeks ago I had an idea for generating this sequence based on the following rules: populate the initial set with [1,2] at each iteration calculate the product of all the elements of the set except the last add the last element to this product and append it to the set I had a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=658&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I had an idea for generating this sequence based on the following rules:</p>
<p><UL></p>
<li>populate the initial set with [1,2]</li>
<li>at each iteration</li>
<p><UL></p>
<li>calculate the product of all the elements of the set except the last</li>
<li>add the last element to this product and append it to the set</li>
<p></UL><br />
</UL>I had a half baked notion that it might generate a set of primes, but was dissappointed at 371.</p>
<p>It seemed unlikely that I was the first person to think of this set, but http://oeis.org/A003686 was the only result for my google search of &#8220;1, 2, 3, 5, 11, 41, 371&#8243;</p>
<p>No idea what dude is talking about, but I thought it was interesting&#8230;</p>
<p>Here is a link to the awk script: <a href="http://brianin3d-misc.googlecode.com/svn/trunk/scripts/primo.awk">primo.awk</a>. </p>
<p>Here is some output before it gets sign extended:</p>
<pre>
[ 1, 2 ] : 1 + 2 = 3
[ 1, 2, 3 ] : 2 + 3 = 5
[ 1, 2, 3, 5 ] : 6 + 5 = 11
[ 1, 2, 3, 5, 11 ] : 30 + 11 = 41
[ 1, 2, 3, 5, 11, 41 ] : 330 + 41 = 371
[ 1, 2, 3, 5, 11, 41, 371 ] : 13530 + 371 = 13901
[ 1, 2, 3, 5, 11, 41, 371, 13901 ] : 5019630 + 13901 = 5033531
[ 1, 2, 3, 5, 11, 41, 371, 13901, 5033531 ] : 69777876630 + 5033531 = 69782910161
[ 1, 2, 3, 5, 11, 41, 371, 13901, 5033531, 69782910161 ] : 351229105131280512 + 69782910161 = 351229174914190656
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/658/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=658&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2012/01/20/658/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>the joy of css sprites</title>
		<link>http://brianin3d.wordpress.com/2011/11/02/the-joy-of-css-sprites/</link>
		<comments>http://brianin3d.wordpress.com/2011/11/02/the-joy-of-css-sprites/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 13:19:55 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fu]]></category>
		<category><![CDATA[sprites]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=627</guid>
		<description><![CDATA[Been having some fun with CSS sprites lately. Here is on I did based on a doodle: spinning head. It&#8217;s fun coming up with the offset to make the animation work! The other day, I also played with the glitch developer api to make this goofy thing based off the example code: glitch demo. If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=627&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Been having some fun with CSS sprites lately.</p>
<p>Here is on I did based on a doodle:  <a href="https://s3.amazonaws.com/brianin3d.games/demos/random/spin_head.html">spinning head</a>.</p>
<p><img src="https://s3.amazonaws.com/brianin3d.games/demos/random/spin_head.png" /></p>
<p>It&#8217;s fun coming up with the offset to make the animation work!</p>
<p>The other day, I also played with the <a href="http://developer.glitch.com/api/">glitch developer api</a> to make this goofy thing based off the example code:  <a href="https://s3.amazonaws.com/brianin3d.games/demos/glitch/simple/test-anim-00.html">glitch demo</a>.</p>
<p>If you put in ur player code, you can see ur guy pop in there!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/627/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=627&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/11/02/the-joy-of-css-sprites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>

		<media:content url="https://s3.amazonaws.com/brianin3d.games/demos/random/spin_head.png" medium="image" />
	</item>
		<item>
		<title>all vi(m), all the time, plz!</title>
		<link>http://brianin3d.wordpress.com/2011/09/23/all-vim-all-the-time-plz/</link>
		<comments>http://brianin3d.wordpress.com/2011/09/23/all-vim-all-the-time-plz/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 14:37:57 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[emacs blows]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=617</guid>
		<description><![CDATA[UGH! EMACS AND PICO! GO AWAY! export VISUAL=vim ; export EDITOR=vim ; set -o vi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=617&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>UGH! EMACS AND PICO! GO AWAY!</p>
<pre>
export VISUAL=vim ; export EDITOR=vim ; set -o vi
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/617/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/617/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/617/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=617&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/09/23/all-vim-all-the-time-plz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert camel case to all caps underscored</title>
		<link>http://brianin3d.wordpress.com/2011/09/12/convert-camel-case-to-allcapz-underscored/</link>
		<comments>http://brianin3d.wordpress.com/2011/09/12/convert-camel-case-to-allcapz-underscored/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 12:36:28 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=618</guid>
		<description><![CDATA[Convert camel case to all caps underscored: $ echo -e 'SomeNiceHTTPCandyTCPSocketWrapper\nSimpleExample\nMoreHTTPFun' \ &#124; sed 's,\([A-Z][A-Z]*\)\([A-Z]\),\1_\2,g;s,\([a-z]\)\([A-Z]\),\1_\2,g' \ &#124; tr '[a-z]' '[A-Z]' SOME_NICE_HTTP_CANDY_TCP_SOCKET_WRAPPER SIMPLE_EXAMPLE MORE_HTTP_FUN<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=618&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Convert camel case to all caps underscored:</p>
<pre>
$ echo -e 'SomeNiceHTTPCandyTCPSocketWrapper\nSimpleExample\nMoreHTTPFun' \
  | sed 's,\([A-Z][A-Z]*\)\([A-Z]\),\1_\2,g;s,\([a-z]\)\([A-Z]\),\1_\2,g' \
  | tr '[a-z]' '[A-Z]'
SOME_NICE_HTTP_CANDY_TCP_SOCKET_WRAPPER
SIMPLE_EXAMPLE
MORE_HTTP_FUN
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/618/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=618&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/09/12/convert-camel-case-to-allcapz-underscored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>me sudo long time!</title>
		<link>http://brianin3d.wordpress.com/2011/09/08/me-sudo-long-time/</link>
		<comments>http://brianin3d.wordpress.com/2011/09/08/me-sudo-long-time/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 12:28:36 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=611</guid>
		<description><![CDATA[Feel like sudo is always asking your for ur password? Add a line like this: Defaults:YOU_USERNAME_GOES_HERE_DUDE timestamp_timeout=28800 to your /etc/sudoers and ride it all night long!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=611&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Feel like sudo is always asking your for ur password?</p>
<p>Add a line like this:</p>
<pre>

Defaults:YOU_USERNAME_GOES_HERE_DUDE timestamp_timeout=28800
</pre>
<p>to your /etc/sudoers and ride it all night long!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/611/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=611&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/09/08/me-sudo-long-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>fun with nodejs and rabbitmq</title>
		<link>http://brianin3d.wordpress.com/2011/08/01/fun-with-nodejs-and-rabbitmq/</link>
		<comments>http://brianin3d.wordpress.com/2011/08/01/fun-with-nodejs-and-rabbitmq/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 23:40:25 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[rabbitmq]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=600</guid>
		<description><![CDATA[The long awaited server side javascript revolutions is alive and well! Here is a quickstart for funning around with nodejs and rabbitmq The copy-pasta is from my retro machine at the house running ubuntu 10 (Maverick), but there&#8217;s little ubuntu specific stuff&#8230; install nodejs % git clone https://github.com/joyent/node.git % cd node % sudo apt-get install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=600&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The long awaited server side javascript revolutions is alive and well!</p>
<p>Here is a quickstart for funning around with <a href="http://nodejs.org/">nodejs</a> and <a href="http://www.rabbitmq.com/">rabbitmq</a></p>
<p>The copy-pasta is from my retro machine at the house running ubuntu 10 (Maverick), but there&#8217;s little ubuntu specific stuff&#8230; </p>
<h1> install <a href="http://nodejs.org/">nodejs</a> </h1>
<pre>
 % git clone https://github.com/joyent/node.git
 % cd node
 % sudo apt-get install g++ libssl-dev
 % ./configure &amp;&amp; make &amp;&amp; sudo make install
 % echo 'console.log( "go node!" )'  | node
</pre>
<h2> install <a href="http://npmjs.org/">npm</a> </h2>
<p>As per the website, you can run the install script from curl.</p>
<p>Oddly enuff, to avoid running it as root, buddy suggests making your user own all of /usr/local.</p>
<p>Instead, I thought I&#8217;d add an npm user and setuid the npm stuff:</p>
<pre>
 % sudo adduser --gid 0 npm
 % sudo chmod g+w /usr/local/lib
 % sudo chmod g+w /usr/local/share/man
 % sudo chmod g+w /usr/local/bin
 % sudo chmod g+w /usr/local/man/man1
 % sudo su npm
 % cd /tmp
 % git clone https://github.com/isaacs/npm.git
 % cd npm
 % ./configure
 % make &amp;&amp; make install
</pre>
<div>
I tried setting 4755 on /usr/local/lib/node_modules/npm/bin/npm.js, but it complains when I tried to install some stuff..
</div>
<p>Just have to use the npm user to install <a href="https://github.com/postwait/node-amqp">node-amqp</a>:</p>
<pre>
 % sudo su npm -c "npm install -g amqp"
 % cd
 % ln -s /usr/local/lib/node_modules
</pre>
<h1> install <a href="http://www.rabbitmq.com/">rabbitmq</a> </h1>
<p>The out of the box rabbit for ubu10 was ancient bullshit!</p>
<p>The <a href="http://www.rabbitmq.com/debian.html">rabbitmq</a> guys have some tips&#8230; basically:</p>
<pre>
 % echo deb http://www.rabbitmq.com/debian/ testing main | sudo tee -a /etc/apt/sources.list
 % wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
 % sudo apt-key add rabbitmq-signing-key-public.asc
 % sudo apt-get update
 % sudo apt-get install rabbitmq-server
</pre>
<p>It gets cranked up at install and there is a handy init script: </p>
<pre>
 % sudo /etc/init.d/rabbitmq-server status
</pre>
<h1> a simple demo </h1>
<p>So&#8230; this code runs fine on my mac, but is weirdly busted on my olde ubuntu box: </p>
<pre>
clear ; ./<a href="http://brianin3d-misc.googlecode.com/svn/trunk/random/javascript/node/demos/amqp-dee-dum.js">amqp-dee-dum.js</a>
connected
ready
got the exchange
[hilarity ensues: try it out!]
</pre>
<p>I had to create new exchange named &#8216;tmp&#8217;, it wouldn&#8217;t let me use &#8216;amq.direct&#8217; for some reason&#8230;</p>
<p>Anyhooo&#8230;</p>
<p>I think the code is pretty ez to follow if sorta copy-pasta heavy.</p>
<p>I hope to do a refactored version at some point&#8230;</p>
<h1>what happened with the old rabbit</h1>
<pre>
connected
ouch: Oversized frame 1342243080
cya!
FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length exceeds max acceptable value
</pre>
<p>Using the non-crusty version everything worked fine.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/600/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=600&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/08/01/fun-with-nodejs-and-rabbitmq/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>paramiko: ssh scripting the ez way</title>
		<link>http://brianin3d.wordpress.com/2011/06/10/paramiko-ssh-scripting-the-ez-way/</link>
		<comments>http://brianin3d.wordpress.com/2011/06/10/paramiko-ssh-scripting-the-ez-way/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 12:40:20 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[paramiko]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=597</guid>
		<description><![CDATA[The other day I wanted to jack around some goofy script and run it on a bunch of hosts, but&#8230; without keys, it was drag to do in a simple script&#8230; So&#8230; a buddy of mine had used paramiko to do some ssh action in python. After reading Jesse&#8216;s article, I used paramiko to copy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=597&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The other day I wanted to jack around some goofy script and run it on a bunch of hosts, but&#8230; without keys, it was drag to do in a simple script&#8230; So&#8230; a buddy of mine had used <a href="http://www.lag.net/paramiko/">paramiko</a> to do some ssh action in python.</p>
<p>After reading <a href="http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/">Jesse</a>&#8216;s article, I used paramiko to copy a script around, run it and collect the output on the local filesystem</p>
<p>Here is some crap example:</p>
<pre>

import os
import paramiko
import socket
import sys

# yeh... my script really doesn't look like this...

host = 'super.cool.hostname.example.com'
username = 'root'
password = 'passwords_are_for_cowards'

tmp  = '/tmp/cool_script.sh'

# copy our cool_script over to the host in /tmp
transport = paramiko.Transport( ( host, 22 ) )
transport.connect( username = username, password = password )
sftp = paramiko.SFTPClient.from_transport( transport )
sftp.put( 'cool_script.sh', tmp )
sftp.close()

# seems like ssh.connect sometimes fails due to some
# weird dns issue, so hack around it...
ip = socket.gethostbyname( host )

# chmod and run the script
ssh = paramiko.SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() )
ssh.connect( ip, username = username, password = password )
stdin, stdout, stderr = ssh.exec_command( 'chmod 755 ' + tmp + ';' + tmp )
data = stdout.read()
ssh.close()

# save the output as json on the local filesystem
filename = host + '.json'
output = open( filename, 'w' )
output.write( data )
output.close()
</pre>
<p>EZ-PZ!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/597/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=597&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/06/10/paramiko-ssh-scripting-the-ez-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>sl: use this function all the time&#8230;</title>
		<link>http://brianin3d.wordpress.com/2011/06/06/sl-use-this-function-all-the-time/</link>
		<comments>http://brianin3d.wordpress.com/2011/06/06/sl-use-this-function-all-the-time/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 13:57:32 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=594</guid>
		<description><![CDATA[function sl() { if [ 1 = ${#} ] ; then less -i "${1}" ; else ls ${*} ; fi }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=594&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
function sl() { if [ 1 = ${#} ] ; then less -i "${1}" ; else ls ${*} ; fi }
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/594/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/594/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/594/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=594&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/06/06/sl-use-this-function-all-the-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>over a barrel in da2</title>
		<link>http://brianin3d.wordpress.com/2011/05/29/over-a-barrel-in-da2/</link>
		<comments>http://brianin3d.wordpress.com/2011/05/29/over-a-barrel-in-da2/#comments</comments>
		<pubDate>Sat, 28 May 2011 17:29:20 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[gaming]]></category>
		<category><![CDATA[barrel]]></category>
		<category><![CDATA[da2]]></category>
		<category><![CDATA[dragon age 2]]></category>
		<category><![CDATA[puzzle]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=587</guid>
		<description><![CDATA[Here is a slightly different way of presenting the solutions to the Night Terrors barrel puzzle in Dragon Age 2. I&#8217;ve always hated this kind of bullshit&#8230; 5,9 6,10 1,11 14 4,8 3,7 2,12 13 Here is the second puzzle&#8230; 6 1,9 10 12 3,11 8 5 2,14 13 15 4,16 7 I&#8217;m sure someone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=587&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a slightly different way of presenting the solutions to the <a href="http://dragonage.wikia.com/wiki/Night_Terrors">Night Terrors</a> barrel puzzle in Dragon Age 2. </p>
<p>I&#8217;ve always hated this kind of bullshit&#8230;</p>
<table border="1">
<tr>
<td>5,9 </td>
<td> 6,10 </td>
<td> 1,11 </td>
<td> 14</td>
</tr>
<tr>
<td>4,8 </td>
<td> 3,7  </td>
<td> 2,12 </td>
<td> 13</td>
</tr>
</table>
<p>Here is the second puzzle&#8230;</p>
<table border="1">
<tr>
<td>6</td>
<td>1,9 </td>
<td>10</td>
<td>12</td>
<td>3,11</td>
<td>8 </td>
</tr>
<tr>
<td>5</td>
<td>2,14</td>
<td>13</td>
<td>15</td>
<td>4,16</td>
<td>7 </td>
</tr>
</table>
<p>I&#8217;m sure someone enjoys this sort of thing&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/587/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=587&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/05/29/over-a-barrel-in-da2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
		<item>
		<title>mysql5: username,password,database = domain</title>
		<link>http://brianin3d.wordpress.com/2011/03/30/mysql5-usernamepassworddatabase-domain/</link>
		<comments>http://brianin3d.wordpress.com/2011/03/30/mysql5-usernamepassworddatabase-domain/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 13:59:33 +0000</pubDate>
		<dc:creator>brianin3d</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[add user]]></category>
		<category><![CDATA[create user]]></category>
		<category><![CDATA[myql]]></category>

		<guid isPermaLink="false">http://brianin3d.wordpress.com/?p=578</guid>
		<description><![CDATA[Often in development, I want to throw up a custom mysql db just to dump junk for a project in. Typically this is a small scale, 0 security scenario just to dump some crap into. I like to have the database name, username and password all be the same. Here is a little script to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=578&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Often in development, I want to throw up a custom mysql db just to dump junk for a project in.</p>
<p>Typically this is a small scale, 0 security scenario just to dump some crap into. </p>
<p>I like to have the database name, username and password all be the same.</p>
<p>Here is a little script to mysql5 user create / user add it up:</p>
<pre>
export domain="fnck"
export UP="-uroot -proot"
mysqladmin ${UP} create ${domain}
cat &lt;&lt; EOM | mysql ${UP}
CREATE USER &#039;${domain}&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;${domain}&#039;;
GRANT ALL PRIVILEGES ON ${domain}.* TO &#039;${domain}&#039;@&#039;%&#039; WITH GRANT OPTION;
EOM
echo &quot;show tables;&quot; | mysql -u${domain} -p${domain} ${domain}
</pre>
<p>I rolled it up into <a href="http://brianin3d-misc.googlecode.com/svn/trunk/scripts/nu_mysql_duh_buh.sh">nu_mysql_duh_buh.sh</a></p>
<h2>5uck it!</h2>
<p>For some reason, ports install of mysql 5 on my mac has a fckng &#8220;5&#8243; on the end of all the commands:</p>
<pre>
cd /opt/local/bin
for dumb in mysq*5 ; do
   duh=$( echo ${dumb} | sed 's,5$,,' )
   sudo ln -s ${dumb} ${duh}
done
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brianin3d.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brianin3d.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brianin3d.wordpress.com/578/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=brianin3d.wordpress.com&amp;blog=3685636&amp;post=578&amp;subd=brianin3d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://brianin3d.wordpress.com/2011/03/30/mysql5-usernamepassworddatabase-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">brianin3d</media:title>
		</media:content>
	</item>
	</channel>
</rss>
