<?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>Hank Beaver &#187; Uncategorized</title>
	<atom:link href="http://www.hankbeaver.com/index.php/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hankbeaver.com</link>
	<description>Open-source, Internet technologist who works for MaxMedia located in Atlanta, GA, USA</description>
	<lastBuildDate>Tue, 09 Aug 2011 18:20:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MongoDB GridFS Sanity Checks</title>
		<link>http://www.hankbeaver.com/index.php/2011/08/09/mongodb-gridfs-sanity-checks/</link>
		<comments>http://www.hankbeaver.com/index.php/2011/08/09/mongodb-gridfs-sanity-checks/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 18:19:42 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mongodb]]></category>

		<guid isPermaLink="false">http://www.hankbeaver.com/?p=170</guid>
		<description><![CDATA[I want to verify that the data is what I expect across two systems for binaries. Here&#8217;s some sanity check examples:
1) Verify fs.files object count:

mongofiles -d cms list &#124; wc -l

Example output:

connected to: 127.0.0.1
3700

(should be > 3000)
2) Verify Meta data:

> db.fs.files.stats();

Example output:
{
	"ns" : "cms.fs.files",
	"count" : 3700,
	"size" : 899348,
	"storageSize" : 1196800,
	"numExtents" : 4,
	"nindexes" : 3,
	"lastExtentSize" : [...]]]></description>
			<content:encoded><![CDATA[<p>I want to verify that the data is what I expect across two systems for binaries. Here&#8217;s some sanity check examples:</p>
<p>1) Verify fs.files object count:</p>
<pre>
mongofiles -d cms list | wc -l
</pre>
<p>Example output:</p>
<pre>
connected to: 127.0.0.1
3700
</pre>
<p>(should be > 3000)<br />
2) Verify Meta data:</p>
<pre>
> db.fs.files.stats();

Example output:
{
	"ns" : "cms.fs.files",
	"count" : 3700,
	"size" : 899348,
	"storageSize" : 1196800,
	"numExtents" : 4,
	"nindexes" : 3,
	"lastExtentSize" : 901120,
	"paddingFactor" : 1,
	"flags" : 1,
	"totalIndexSize" : 966656,
	"indexSizes" : {
		"_id_" : 163840,
		"filename_1_uploadDate_-1" : 425984,
		"filename_1" : 376832
	},
	"ok" : 1
}
</pre>
<p>Should be same as mongofiles -d cms list | wc -l</p>
<p>3) Verify Binary data:</p>
<pre>
> db.fs.chunks.stats();

Example output:
{
	"ns" : "cms.fs.chunks",
	"count" : 13009,
	"size" : 2878929012,
	"storageSize" : 3436553216,
	"numExtents" : 28,
	"nindexes" : 2,
	"lastExtentSize" : 576252672,
	"paddingFactor" : 1,
	"flags" : 1,
	"totalIndexSize" : 1122304,
	"indexSizes" : {
		"_id_" : 548864,
		"files_id_1_n_1" : 573440
	},
	"ok" : 1
}
</pre>
<p>size should be > 2,500,000,000  (2.5 GB) </p>
<p>4) Save a binary from Mongo:</p>
<p>a) pick a file from list</p>
<pre>mongofiles -d cms list</pre>
<p>b) restore it to /tmp/</p>
<pre>mongofiles -d cms get 'carouselimages/4bc24ba5fa7e1c75b10000d5/image/tradeshow_placeholder.jpg' -l /tmp/tradeshow_placeholder.jpg</pre>
<p>View file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2011/08/09/mongodb-gridfs-sanity-checks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tonight, a dream</title>
		<link>http://www.hankbeaver.com/index.php/2010/06/28/tonight-a-dream/</link>
		<comments>http://www.hankbeaver.com/index.php/2010/06/28/tonight-a-dream/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 04:24:41 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[childhood]]></category>
		<category><![CDATA[dreams]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[satriani]]></category>

		<guid isPermaLink="false">http://www.hankbeaver.com/index.php/2010/06/28/tonight-a-dream/</guid>
		<description><![CDATA[This weekend Jill, Jude and I visited Chris Kenney to watch his band perform on his front porch in Villa Rica. To say Chris plays guitar well is an understatement. I&#8217;ve Spent time with him and now witnessed him play electric. For his set, he clearly had a distinct style.
Jill thought he might be offended [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend Jill, Jude and I visited Chris Kenney to watch his band perform on his front porch in Villa Rica. To say Chris plays guitar well is an understatement. I&#8217;ve Spent time with him and now witnessed him play electric. For his set, he clearly had a distinct style.<br />
Jill thought he might be offended by this but I could close my eyes and clearly hear Joe Satriani. And it got me recalling my days of listening to him on cassette with my Sony Walkman with a 3 band graphic EQ. Thanks Chris.</p>
<p><a href='Http://www.youtube.com/watch?v=U-zjnVmuTzs&#038;feature=youtube_gdata'>flying in a blue dream</a></p>
<p>I was taken back to when I was in high school and playing guitar was the only thing that mattered to me. I was neither a jock nor a band geek, I was a lone guitar guy in high school it seemed. Where now everyone plays. Not in blairsville did they in 1987.</p>
<p>So much of our lives change from adolescence and for the most part our dreams of ourselves are sucked into the vortex of responsibility.</p>
<p>For the rare few who escape this, I send this song. It is not cool by many standards but I have no shame. It is just what I held at the time to be my dream to make music like this. Thus the irony of the title.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2010/06/28/tonight-a-dream/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Testing Varnish VCL Syntax</title>
		<link>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:15:00 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[validate]]></category>
		<category><![CDATA[varnish]]></category>
		<category><![CDATA[vcl]]></category>

		<guid isPermaLink="false">http://www.hankbeaver.com/?p=120</guid>
		<description><![CDATA[The simplest way to test syntax is to use the administration console via telnet on a Dev/QA Varnish machine. Your current running Varnish should allow your IP/localhost to connect if you have implemented a Varnish ACL.

Start up Varnish with single command-line
Login to console via telnet
Load the config you wish to test
Use the config.

On OSX:

sudo /usr/local/sbin/varnishd [...]]]></description>
			<content:encoded><![CDATA[<p>The simplest way to test syntax is to use the administration console via telnet on a Dev/QA Varnish machine. Your current running Varnish should allow your IP/localhost to connect if you have implemented a Varnish ACL.</p>
<ul>
<li>Start up Varnish with single command-line</li>
<li>Login to console via telnet</li>
<li>Load the config you wish to test</li>
<li>Use the config.</li>
</ul>
<p>On OSX:</p>
<pre>
sudo /usr/local/sbin/varnishd -F  -a localhost:3000 -b localhost:6081 -T localhost:6082
</pre>
<p>From another console/shell/ open connection to Varnish management console:</p>
<pre>
telnet localhost 6082
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
</pre>
<p>Load config and try to use (the config used in this example has a syntax problem. Therefore, you will see compilation errors:</p>
<pre>
vcl.load error /Users/hbeaver/code/varnish_demo/config/syntax_error.vcl
106 181
Message from VCC-compiler:
Expected one of
	'acl', 'sub', 'backend',  or 'director'
Found: '}' at
(input Line 12 Pos 1)
}
#
Running VCC-compiler failed, exit 1VCL compilation failed
</pre>
<p>Conversely, if the VCL has good syntax you should see no errors:</p>
<pre>
vcl.load good_config /Users/hbeaver/code/varnish_demo/config/default.vcl
200 13
VCL compiled.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/11/02/testing-varnish-vcl-syntax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Starting specific version of thin web server</title>
		<link>http://www.hankbeaver.com/index.php/2009/10/15/starting-specific-version-of-thin-web-server/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/10/15/starting-specific-version-of-thin-web-server/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 12:40:37 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[thin]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=115</guid>
		<description><![CDATA[You may find yourself needing to test something with a specific version of thin, for whatever reason. If you need start up thin with a specific version of gem you have installed this is how you do it:
&#60;pre&#62;thin _1.2.4_ -R config.ru -p 3001 start&#60;/pre&#62;
The first argument represents the gem version prefixed and post-fixed with &#8220;_&#8221;.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p>You may find yourself needing to test something with a specific version of thin, for whatever reason. If you need start up thin with a specific version of gem you have installed this is how you do it:</p>
<p>&lt;pre&gt;thin _1.2.4_ -R config.ru -p 3001 start&lt;/pre&gt;</p>
<p>The first argument represents the gem version prefixed and post-fixed with &#8220;_&#8221;.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/10/15/starting-specific-version-of-thin-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F5/BigIP Healthcheck against Thin/Sinatra app</title>
		<link>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:18:01 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BigIP]]></category>
		<category><![CDATA[F5]]></category>
		<category><![CDATA[healthcheck]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=87</guid>
		<description><![CDATA[When using a BigIP to load balance a Sinatra app via Thin you will need to provide more than just the GET request string in F5&#8217;s &#8220;send string&#8221; field OR you might get &#8220;Request Invalid!&#8221; error message. Heads up.
Using this will cause issue:

GET /ops/heartbeat

This works:

GET /ops/heartbeat HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n


]]></description>
			<content:encoded><![CDATA[<p>When using a BigIP to load balance a Sinatra app via Thin you will need to provide more than just the GET request string in F5&#8217;s &#8220;send string&#8221; field OR you might get &#8220;Request Invalid!&#8221; error message. Heads up.</p>
<h4>Using this will cause issue:</h4>
<h4>
<pre>GET /ops/heartbeat</pre>
</h4>
<p><strong>This works:</strong></p>
<h4>
<pre>GET /ops/heartbeat HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n</pre>
</h4>
<h4></h4>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/06/05/f5bigip-healthcheck-against-thinsinatra-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realtime response time reporting from Rails logs using regex.</title>
		<link>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:12:20 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=86</guid>
		<description><![CDATA[Simple but effective regex to monitor when there are issues. In my example below, this will show all response times &#62; 1 second:
 tail -f production.log &#124; egrep "Completed in [0-9]{3,10}"
]]></description>
			<content:encoded><![CDATA[<p>Simple but effective regex to monitor when there are issues. In my example below, this will show all response times &gt; 1 second:</p>
<pre> tail -f production.log | egrep "Completed in [0-9]{3,10}"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/06/05/realtime-response-time-reporting-from-rails-logs-using-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>links for 2009-06-03</title>
		<link>http://www.hankbeaver.com/index.php/2009/06/03/links-for-2009-06-03/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/06/03/links-for-2009-06-03/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 00:05:52 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=85</guid>
		<description><![CDATA[

smartrics: JMeter to test robustness of system exposing REST APIs
(tags: REST uri jmeter sampler)


]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://smartrics.blogspot.com/2009/04/jmeter-to-test-robustness-of-system.html">smartrics: JMeter to test robustness of system exposing REST APIs</a></div>
<div class="delicious-tags">(tags: <a href="http://delicious.com/blasterpal/REST">REST</a> <a href="http://delicious.com/blasterpal/uri">uri</a> <a href="http://delicious.com/blasterpal/jmeter">jmeter</a> <a href="http://delicious.com/blasterpal/sampler">sampler</a>)</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/06/03/links-for-2009-06-03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>links for 2009-05-26</title>
		<link>http://www.hankbeaver.com/index.php/2009/05/26/links-for-2009-05-26/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/05/26/links-for-2009-05-26/#comments</comments>
		<pubDate>Wed, 27 May 2009 00:07:52 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=83</guid>
		<description><![CDATA[

Live Mongrel Debugging and Recovery &#8211; igvita.com
(tags: mongrel debugging live recovery)


]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://www.igvita.com/2008/02/19/live-mongrel-debugging-and-recovery/">Live Mongrel Debugging and Recovery &#8211; igvita.com</a></div>
<div class="delicious-tags">(tags: <a href="http://delicious.com/blasterpal/mongrel">mongrel</a> <a href="http://delicious.com/blasterpal/debugging">debugging</a> <a href="http://delicious.com/blasterpal/live">live</a> <a href="http://delicious.com/blasterpal/recovery">recovery</a>)</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/05/26/links-for-2009-05-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>links for 2009-05-23</title>
		<link>http://www.hankbeaver.com/index.php/2009/05/23/links-for-2009-05-23/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/05/23/links-for-2009-05-23/#comments</comments>
		<pubDate>Sun, 24 May 2009 00:34:41 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=82</guid>
		<description><![CDATA[

Mac OS X Manual Page For launchctl(1)
(tags: launchctl osx service control command line)


]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/launchctl.1.html">Mac OS X Manual Page For launchctl(1)</a></div>
<div class="delicious-tags">(tags: <a href="http://delicious.com/blasterpal/launchctl">launchctl</a> <a href="http://delicious.com/blasterpal/osx">osx</a> <a href="http://delicious.com/blasterpal/service">service</a> <a href="http://delicious.com/blasterpal/control">control</a> <a href="http://delicious.com/blasterpal/command">command</a> <a href="http://delicious.com/blasterpal/line">line</a>)</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/05/23/links-for-2009-05-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>links for 2009-05-15</title>
		<link>http://www.hankbeaver.com/index.php/2009/05/15/links-for-2009-05-15/</link>
		<comments>http://www.hankbeaver.com/index.php/2009/05/15/links-for-2009-05-15/#comments</comments>
		<pubDate>Sat, 16 May 2009 00:04:59 +0000</pubDate>
		<dc:creator>hbeaver</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rubyslacker.com/?p=81</guid>
		<description><![CDATA[

Tags on Git @ 知易行难
(tags: git tags tag remove origin)


]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://blog.ashchan.com/archive/2008/06/30/tags-on-git/">Tags on Git @ 知易行难</a></div>
<div class="delicious-tags">(tags: <a href="http://delicious.com/blasterpal/git">git</a> <a href="http://delicious.com/blasterpal/tags">tags</a> <a href="http://delicious.com/blasterpal/tag">tag</a> <a href="http://delicious.com/blasterpal/remove">remove</a> <a href="http://delicious.com/blasterpal/origin">origin</a>)</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hankbeaver.com/index.php/2009/05/15/links-for-2009-05-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

