<?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"
	>

<channel>
	<title>Benjamin Sherman</title>
	<atom:link href="http://holyarmy.org/benjamin/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>http://holyarmy.org/benjamin</link>
	<description>I have to have a tagline?</description>
	<pubDate>Fri, 19 Dec 2008 05:34:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>I Bought a New Camera</title>
		<link>http://holyarmy.org/benjamin/2008/12/i-bought-a-new-camera/</link>
		<comments>http://holyarmy.org/benjamin/2008/12/i-bought-a-new-camera/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 05:27:49 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[camera]]></category>

		<category><![CDATA[canon]]></category>

		<category><![CDATA[family]]></category>

		<category><![CDATA[sx10]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=351</guid>
		<description><![CDATA[I&#8217;ve been a bit obsessive this week as I&#8217;ve been trying to research and find a new camera that I would really like. The last one died last weekend&#8230; so we were facing the trip home for Christmas with no camera! Before Beaumin was born, not having a camera for a few weeks would have [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a bit obsessive this week as I&#8217;ve been trying to research and find a new camera that I would really like. The last one died last weekend&#8230; so we were facing the trip home for Christmas with no camera! Before Beaumin was born, not having a camera for a few weeks would have been a non-issue, but now, we take multiple pictures a day!</p>
<p>I talked with several friends who are way more &#8220;camera geeky&#8221; than I am&#8230; I&#8217;m pretty ignorant of photography for the most part, but I wouldn&#8217;t mind learning a bit more. So I only had a few basic criteria:</p>
<ul>
<li>Pretty decent low-light (indoor) photos</li>
<li>Use AA batteries (I really like having easy access to spares in a pinch)</li>
<li>Some advanced features so I can learn more if I get motivated</li>
</ul>
<p>Not required but very nice to have items were:</p>
<ul>
<li>Big optical zoom (because its really nice)</li>
<li>Viewfinder (because sometimes glare just makes LCDs useless)</li>
<li>Semi-fast flash recharge</li>
</ul>
<p>It was soon obvious that I was looking for an &#8220;Advanced Point and Shoot&#8221; for which a few of the top players were <a href="http://www.nikonusa.com/Find-Your-Nikon/Product/Digital-Camera/26114/COOLPIX-P80.html">Nikon&#8217;s P80</a> and <a href="http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&amp;fcategoryid=144&amp;modelid=17630">Canon&#8217;s SX10 IS</a>. I have some friends who are die-hard Nikon fans and others who are die-hard Canon fans, so this was tricky. <img src='http://holyarmy.org/benjamin/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The P80 was a bit more inexpensive, and <a href="http://prophotosupply.com/">Pro Photo Supply in Portland</a>, is primarily (though by no means completely) a Nikon shop, so they packed some extra value with their Nikons, including a free 2-year add-on to the already present 1-year warranty, and a basic leather camera case. The biggest single downside for me was that it uses a custom Li-ion rechargeable, and one of my bigger criteria was to use AA batteries. However, it is pretty light, has a nice interface, and seemed good overall with an 18x zoom and a nice wide mode too (27mm - 486mm range).</p>
<p>The SX10 IS is the new version of the S5 IS (and S3 IS before it); I&#8217;ve got friends with both the S5 and S3, so I&#8217;ve had the chance to play with them before. Both friends are nearly fanatical about these cameras, so they were hard to ignore. The SX10 cost about $60 more than the P80, but very importantly, it is powered by AA batteries. It also boasts a nice wide mode and an even larger 20x zoom (28mm - 560mm range). This one is a bit heaver than the P80, but has a nice LCD that actually pivots out and can be turned around to protect the screen and save battery, or be used to aid in self portraiting. One downside is that it doesn&#8217;t have a provided lens cap keeper string, but I should be able to pick one up very cheaply (Pro Photo was out of stock).</p>
<p>Both cameras were very nice, but the SX10 fit my criteria more closely, so that&#8217;s what I went with. Of course, I&#8217;ve left out the internal battle I had one whether or not I should get an &#8220;advanced&#8221; Point and Shoot like this. I figured I could get a much cheaper small P&amp;S with a 4x zoom, and perhaps someday later explore the SLR world. But I think I&#8217;m happy. My biggest concern was that the wife would find it too bulky to mess with, but she seems to like it quite well! It IS after all a Point and Shoot and has all the preset auto and scene modes to make things as simple as you want.</p>
<p>To test low-light shots, I took the following three pictures as soon as I got home tonight. I don&#8217;t think they do the camera justice, but I&#8217;m a rookie and I&#8217;m just demonstrating some fun differences I found.</p>
<p>All three were taken at ISO 800. I think the images are a bit noisy due to the higher ISO, but bleh, I&#8217;m new and playing around. This is my sons room and crib, no lights on with a half-open door letting in some fairly dim incandescent light.</p>
<p>The first image is auto-mode with the flash and auto white balance on. I really want to learn to avoid the flash (or maybe just when to use it), as it almost always makes weird shadows and strange highlights. Anyway&#8230; here it is.</p>
<p><a href="http://holyarmy.org/benjamin/files/2008/12/img_0073.jpg"><img class="alignnone size-medium wp-image-352" src="http://holyarmy.org/benjamin/files/2008/12/img_0073-400x300.jpg" alt="" width="400" height="300" /></a></p>
<p>This second is in aperture-priority mode set to f2.8, with the flash off and auto white balance on. It&#8217;s very obvious this is a dark room in this shot.</p>
<p><a href="http://holyarmy.org/benjamin/files/2008/12/img_0074.jpg"><img class="alignnone size-medium wp-image-353" src="http://holyarmy.org/benjamin/files/2008/12/img_0074-400x300.jpg" alt="" width="400" height="300" /></a></p>
<p>My next thought was &#8220;I think I could make this photo better by setting the white balance.&#8221; So I did just that. I used evaluative white balance to set the the wall as the white but kept it at f2.8 priority and no flash. I then snapped the same picture again. Amazing! It&#8217;s hard to tell the room is even dark!</p>
<p><a href="http://holyarmy.org/benjamin/files/2008/12/img_0076.jpg"><img class="alignnone size-medium wp-image-354" src="http://holyarmy.org/benjamin/files/2008/12/img_0076-400x300.jpg" alt="" width="400" height="300" /></a></p>
<p>I know I&#8217;m going to have lots of fun with this camera. Though it doesn&#8217;t yet support the Digic 4 processor, I&#8217;m looking forward to seeing what the <a href="http://chdk.wikia.com/">CHDK addon firmware</a> will do for me when it does. Plus, I look forward to lots of fun learning more about photography in general. And the most important thing; the wife seems to like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/12/i-bought-a-new-camera/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Logins with mod_rewrite, Cookies, and Javascript Redux</title>
		<link>http://holyarmy.org/benjamin/2008/12/logins-with-mod_rewrite-cookies-and-javascript-redux/</link>
		<comments>http://holyarmy.org/benjamin/2008/12/logins-with-mod_rewrite-cookies-and-javascript-redux/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 06:44:45 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Web]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[httpd]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[mod_rewrite]]></category>

		<category><![CDATA[not so secure]]></category>

		<category><![CDATA[staging]]></category>

		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=348</guid>
		<description><![CDATA[A while back I posted a simple solution for restricting website access in a situation where HTTP basic authentication couldn&#8217;t be used.
Not much more to the story, but I did make a few tweaks to my sample code. The mod_rewrite rule and javascript have been a tiny bit improved, so now after a successful login, [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I posted a <a href="http://holyarmy.org/benjamin/2008/02/logins-with-mod_rewrite-cookies-javascript/">simple solution for restricting website access</a> in a situation where HTTP basic authentication couldn&#8217;t be used.</p>
<p>Not much more to the story, but I did make a few tweaks to my sample code. The mod_rewrite rule and javascript have been a tiny bit improved, so now after a successful login, it will try to redirect you to where you intended to go. (Previously, it always sent the user to /) </p>
<p>Also, in the comments I made it MUCH clearer that this is NOT intended to be a secure solution, just a simple way to keep Google and random people out of things. Anyone with a basic knowledge of HTML/Javascript/Cookies (or less than basic) could read the source and figure out how to create the &#8220;secure&#8221; cookie, and BAM they&#8217;re in like Flynn.</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/12/logins-with-mod_rewrite-cookies-and-javascript-redux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPressMU Plugin Commander</title>
		<link>http://holyarmy.org/benjamin/2008/12/wordpressmu-plugin-commander/</link>
		<comments>http://holyarmy.org/benjamin/2008/12/wordpressmu-plugin-commander/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 07:56:01 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Web]]></category>

		<category><![CDATA[admin]]></category>

		<category><![CDATA[management]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=344</guid>
		<description><![CDATA[I&#8217;m solidly impressed with the WPMU Plugin Commander. One thing that seemed odd to me about WPMU was that I either enable users to have plugin control, or NO ONE (not even the site admin) has the ability to enabled/disable plugins (without a lot of hacking).
This plugin provides a control panel where I can globally [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m solidly impressed with the <a href="http://firestats.cc/wiki/WPMUPluginCommander">WPMU Plugin Commander</a>. One thing that seemed odd to me about WPMU was that I either enable users to have plugin control, or NO ONE (not even the site admin) has the ability to enabled/disable plugins (without a lot of hacking).</p>
<p>This plugin provides a control panel where I can globally enable/disable plugins, set plugins to be auto-enabled for new blogs, and give users the ability to enable/disable only selected plugins.</p>
<p>The perfect scenario is, I want to auto-anable Akismet for my users, so they get spam filtering on comments. Also, I want them to have the ability to try out other various plugins, but don&#8217;t want them able to turn off Aksimet.</p>
<p>I&#8217;ll echo the sentiments of others I read when discovering Plugin Commander, &#8220;this functionality should be in WPMU core!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/12/wordpressmu-plugin-commander/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Regenerate Thumbnail Plugin</title>
		<link>http://holyarmy.org/benjamin/2008/12/word-press-regenerate-thumbnail-plugin/</link>
		<comments>http://holyarmy.org/benjamin/2008/12/word-press-regenerate-thumbnail-plugin/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 06:57:50 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[acquiesce]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[thumbnail]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=338</guid>
		<description><![CDATA[I was literally sitting down to write a plugin that did this, when I stumbled across Viper007&#8217;s Regenerate Thumbnail plugin.
I could still write my own version, but eh, what&#8217;s the point.  Seems to work great!
]]></description>
			<content:encoded><![CDATA[<p>I was literally sitting down to write a plugin that did this, when I stumbled across <a href="http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/">Viper007&#8217;s Regenerate Thumbnail</a> plugin.</p>
<p>I could still write my own version, but eh, what&#8217;s the point. <img src='http://holyarmy.org/benjamin/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Seems to work great!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/12/word-press-regenerate-thumbnail-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Use vi key bindings in bash</title>
		<link>http://holyarmy.org/benjamin/2008/12/use-vi-key-bindings-in-bash/</link>
		<comments>http://holyarmy.org/benjamin/2008/12/use-vi-key-bindings-in-bash/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 06:29:38 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[command line]]></category>

		<category><![CDATA[geekery]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=331</guid>
		<description><![CDATA[A long time ago I used ksh with vi key bindings, and life was good.
Then I moved on to bash, but for some reason, I never investigated using vi key bindings. I simply lived with the defaults (which, for the record, are emacs-like key bindings).
So, just the other day I said to myself, &#8220;Self, I [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago I used ksh with vi key bindings, and life was good.</p>
<p>Then I moved on to bash, but for some reason, I never investigated using vi key bindings. I simply lived with the defaults (which, for the record, are emacs-like key bindings).</p>
<p>So, just the other day I said to myself, &#8220;Self, I want to use vi key bindings in bash. I want to again experience the joy of traversing and editing my command line in COMMAND MODE. I want the speed and the power of my precious vi (well, I use vim) at my finger tips. And I NO LONGER want to waste time holding arrow keys or to think about using emacs-like commands.&#8221;</p>
<p>So, I fired up google.com; low and behold I stumbled onto this little post about <a href="http://blogs.techrepublic.com.com/opensource/?p=193">using vi key bindings in bash and zsh</a>. So sweet!</p>
<p>In a nutshell, the bash command to enable vi mode is:</p>
<p><code>set -o vi</code></p>
<p>This can be set in your .bashrc file, and if it doesn&#8217;t pickup when you start a new terminal session, add something like this to your .profile or .bash_profile:</p>
<p><code>if [ -f ~/.bashrc ]; then<br />
. ~/.bashrc<br />
fi</code></p>
<p>With vi mode enabled, you&#8217;ll start your bash session in insert mode, so things should behave as normal. But, to turn on the power, just hit the ESC key to enter COMMAND MODE. <img src='http://holyarmy.org/benjamin/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Now all your vi commands are availble. Move to end of line with &#8220;$&#8221;, beginning of line with &#8220;^&#8221;, delete a word with &#8220;dw&#8221;, etc.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/12/use-vi-key-bindings-in-bash/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bonjour Avahi Addendum</title>
		<link>http://holyarmy.org/benjamin/2008/11/bonjour-avahi-addendum/</link>
		<comments>http://holyarmy.org/benjamin/2008/11/bonjour-avahi-addendum/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 16:23:53 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[avahi]]></category>

		<category><![CDATA[bonjour]]></category>

		<category><![CDATA[time machine]]></category>

		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=325</guid>
		<description><![CDATA[A while back I wrote about advertising Linux services via Avahi/Bonjour. Since then I&#8217;ve made a few changes to my setup.
First, I nixed netatalk for direct AFP support. My primary reason for using it was to gain a more Mac-like network filesystem which would make Time Machine happier. Well, Time Machine uses a sparse bundle [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote about <a href="http://holyarmy.org/benjamin/2008/01/advertising-linux-services-via-avahibonjour">advertising Linux services via Avahi/Bonjour</a>. Since then I&#8217;ve made a few changes to my setup.</p>
<p>First, I nixed netatalk for direct AFP support. My primary reason for using it was to gain a more Mac-like network filesystem which would make Time Machine happier. Well, Time Machine uses a sparse bundle disk image on it&#8217;s target; after learning about that, using AFP seemed a bit unnecessary. Also, Samba CIFS/SMB seemed to perform better. I don&#8217;t have solid benchmarks for this, but simple file copies seemed to be consistenly faster with Samba. One of the biggest annoyances about netatalk was all the extra hidden files and folders it created. I run a hybrid network, I have more Mac machines, but also Windows, plus I browse file systems on the command line quite often; and those excess files pushed me over the edge.</p>
<p>Second, I nixed Time Machine. Just when I thought everything was working perfectly, it completely blew up and could no longer access its data store. Not good for a backup solution. I plan to write about my new home backup solution sometime, but it&#8217;s basically rsync with a few key points.</p>
<p>Lastly, I streamlined my Linux avahi config using some pointers <a href="http://www.simonwheatley.co.uk/2008/04/06/avahi-finder-icons/">here</a>, suggested to me by George the commenter on my above linked post.</p>
<p>Previously i had a service config file for each service, but this resulted in my server having multiple entries in the OS X Finder, one host for Samba, one host for AFP (when I had it), and one host for RFB. So, I merged all of those files into one.</p>
<p><strong>multi.service</strong><br />
<code><br />
&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;<br />
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;<br />
&lt;service-group&gt;<br />
&lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_smb._tcp&lt;/type&gt;<br />
&lt;port&gt;139&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_rfb._tcp&lt;/type&gt;<br />
&lt;port&gt;5901&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_device-info._tcp&lt;/type&gt;<br />
&lt;port&gt;0&lt;/port&gt;<br />
&lt;txt-record&gt;model=RackMac&lt;/txt-record&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_http._tcp&lt;/type&gt;<br />
&lt;port&gt;80&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_ssh._tcp&lt;/type&gt;<br />
&lt;port&gt;22&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;service&gt;<br />
&lt;type&gt;_sftp-ssh._tcp&lt;/type&gt;<br />
&lt;port&gt;22&lt;/port&gt;<br />
&lt;/service&gt;<br />
&lt;/service-group&gt;<br />
</code><br />
Now everything that can show up in the OS X finder, shows up on one host entry. Plus thanks to the tip I linked to above, the &#8220;_device-info._tcp&#8221; section sets an icon for the server in OS X Finder.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/11/bonjour-avahi-addendum/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A Project Idea: iPhoto to Wordpress [gallery] Export</title>
		<link>http://holyarmy.org/benjamin/2008/10/a-project-idea-iphoto-to-wordpress-gallery-export/</link>
		<comments>http://holyarmy.org/benjamin/2008/10/a-project-idea-iphoto-to-wordpress-gallery-export/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 05:52:02 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Coding]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[cocoa]]></category>

		<category><![CDATA[Military]]></category>

		<category><![CDATA[Music]]></category>

		<category><![CDATA[objective-c]]></category>

		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=321</guid>
		<description><![CDATA[I&#8217;ve been spending some time getting my son&#8217;s blog setup. In doing so, I discovered that as of Wordpress 2.5, there is built-in [ gallery ] functionality.  Though it isn&#8217;t full featured, it&#8217;s pretty nice, and perfectly integrated with Wordpress, since, well, it IS Wordpress.
Currently the process to put photos into a gallery is:

Choose photos [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been spending some time getting my <a href="/beaumin/">son&#8217;s blog</a> setup. In doing so, I discovered that as of Wordpress 2.5, there is built-in [ gallery ] functionality.  Though it isn&#8217;t full featured, it&#8217;s pretty nice, and perfectly integrated with Wordpress, since, well, it IS Wordpress.</p>
<p>Currently the process to put photos into a gallery is:</p>
<ol>
<li>Choose photos in iPhoto</li>
<li>Export chosen files to disk</li>
<li>Create new Wordpress post</li>
<li>Add media via Wordpress uploader</li>
</ol>
<p>This isn&#8217;t too bad, especially for a geek who&#8217;s used to lots of arcane workarounds to accomplish simple goals. But&#8230; for my wife or others who don&#8217;t want the hassle, this is basically annoying.</p>
<p>So I have this idea to create an iPhoto export plugin which will upload directly into Wordpress!</p>
<p>Roadblocks to completion:</p>
<ol>
<li>Time and Commitment (typical)</li>
<li>Objective-C (don&#8217;t know it)</li>
<li>Cocoa (don&#8217;t know it)</li>
<li>X-Code (don&#8217;t know it)</li>
<li>Non-Javascript/Java development on Mac OS X (new to me)</li>
</ol>
<p>So&#8230; this is going to be a slightly ambitions undertaking&#8230; but I&#8217;m excited about it! I&#8217;ll be learning a bunch of new stuff. It&#8217;ll take more time than I&#8217;d like, but I expect it to be a rewarding process. At some point, I&#8217;ll be able to create a &#8220;project&#8221; home for this bad boy, and make it available to all!</p>
<p>If anyone has pointers on OS X development, I&#8217;m all ears. <img src='http://holyarmy.org/benjamin/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/10/a-project-idea-iphoto-to-wordpress-gallery-export/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrades and Offline Photos</title>
		<link>http://holyarmy.org/benjamin/2008/09/upgrades-and-offline-photos/</link>
		<comments>http://holyarmy.org/benjamin/2008/09/upgrades-and-offline-photos/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 18:01:40 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Site Changelog]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[family]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://holyarmy.org/benjamin/?p=317</guid>
		<description><![CDATA[I&#8217;m working on some updates to my personal blog which have more or less taken photos down for a while.
Hopefully, all will be well again soon.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on some updates to my personal blog which have more or less taken photos down for a while.</p>
<p>Hopefully, all will be well again soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/09/upgrades-and-offline-photos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I Like Jive and So Do Others</title>
		<link>http://holyarmy.org/benjamin/2008/07/i-like-jive/</link>
		<comments>http://holyarmy.org/benjamin/2008/07/i-like-jive/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 06:34:38 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[clearspace]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[jive]]></category>

		<category><![CDATA[self-promotion]]></category>

		<guid isPermaLink="false">http://holyarmy.org/?p=311</guid>
		<description><![CDATA[I got a real kick out of reading this blog post today.
It&#8217;s cool to see good feedback on the company I work for and our flagship product, Clearspace. Of course, since I&#8217;m friends with Matt (mentioned in the post), it&#8217;s nice to know he&#8217;s doing a good job. Gotta keep him on his toes!  [...]]]></description>
			<content:encoded><![CDATA[<p>I got a real kick out of reading this <a href="http://meilij.com/blog/2008/07/22/how-clearspace-won-me-back/">blog post today</a>.</p>
<p>It&#8217;s cool to see good feedback on <a href="http://www.jivesoftware.com">the company I work for</a> and our flagship product, Clearspace. Of course, since I&#8217;m friends with Matt (mentioned in the post), it&#8217;s nice to know he&#8217;s doing a good job. Gotta keep him on his toes! <img src='http://holyarmy.org/benjamin/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> D00d!</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/07/i-like-jive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fight Back! (When VPN Clients Mis-Behave)</title>
		<link>http://holyarmy.org/benjamin/2008/07/fight-back-when-vpn-clients-mis-behave/</link>
		<comments>http://holyarmy.org/benjamin/2008/07/fight-back-when-vpn-clients-mis-behave/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 18:20:19 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[Networks]]></category>

		<category><![CDATA[cisco]]></category>

		<category><![CDATA[command line]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[mac hack]]></category>

		<category><![CDATA[scutil]]></category>

		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://holyarmy.org/?p=310</guid>
		<description><![CDATA[I have to use VPNs at work. Specifically, to access my production webservers (etc), I have to use a Cisco VPN client. Sadly, the VPN concentrator overrides my choice of allowing local LAN access. So, when I am on the VPN, I have my DNS options changed so I can&#8217;t use any local servers. This [...]]]></description>
			<content:encoded><![CDATA[<p>I have to use VPNs at work. Specifically, to access my production webservers (etc), I have to use a Cisco VPN client. Sadly, the VPN concentrator overrides my choice of allowing local LAN access. So, when I am on the VPN, I have my DNS options changed so I can&#8217;t use any local servers. This is a serious, serious pain. So painful in fact, that many times instead of fight with it, I simply would run a Windows session in VMware (on my Mac) and connect the VPN there. This has drawbacks too, but it&#8217;s better than not having local network access.</p>
<p>So I set out to find a solution and I found a <a href="http://blog.dv8.ro/2008/06/configuring-cisco-vpn-for-local-dns.html">post by loudhush</a> which described using the <strong>scutil</strong> to modify DNS network settings after connecting to a Cisco VPN. This was great, but I needed something a bit handier.</p>
<p>So, I cranked out the following which goes in my /Users/username/.profile:<br />
<code><br />
# .profile or .bash_profile<br />
function myvpn {<br />
vpnclient connect VPNPROFILENAME user MYVPNUSERNAME<br />
myworkdns<br />
}<br />
function myworkdns {<br />
printf "get State:/Network/Service/com.cisco.VPN/DNS\nd.add ServerAddresses * 192.168.1.252, 192.168.1.198\nd.add SearchDomains * example.com, other.example.com\nset State:/Network/Service/com.cisco.VPN/DNS" | sudo scutil<br />
}<br />
</code></p>
<p>These are bash functions which i run from the command line. (I also find the Client GUI Cisco to be a pain, and prefer command line)</p>
<p>So, obviously, you&#8217;ll need to substitute in your Cisco VPN profile name ( found in /etc/opt/cisco-vpnclient/Profiles), your VPN username, your DNS server IP addresses, and your DNS search domains to your legitimate values.</p>
<p>To use, run <strong>Terminal</strong>, then type <strong>myvpn</strong>. The VPN client will prompt you for your username and password. You&#8217;ll then have to hit CTRL+Z to suspend the VPN client so the script can run the DNS updates; this part uses <strong>sudo</strong> to run the command as root, so you will probably need to type your Mac password immediately after hitting CTRL+Z. If you didn&#8217;t want to bother with the command line VPN client, you could just use your GUI Cisco VPN client, then run <strong>myworkdns</strong> from Terminal, which will still probably prompt you for your Mac password.</p>
<p>Hope others find this useful. If I find a cleaner way, I&#8217;ll post that too.</p>
]]></content:encoded>
			<wfw:commentRss>http://holyarmy.org/benjamin/2008/07/fight-back-when-vpn-clients-mis-behave/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
