<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Coding on Holyarmy.org</title>
		<link>https://holyarmy.org/categories/coding/</link>
		<description>Recent content in Coding on Holyarmy.org</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Wed, 18 Sep 2013 23:28:52 +0000</lastBuildDate>
		
			<atom:link href="https://holyarmy.org/categories/coding/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Odd Git Licensing Message on OSX</title>
				<link>https://holyarmy.org/2013/09/odd-git-message-on-osx/</link>
				<pubDate>Wed, 18 Sep 2013 23:28:52 +0000</pubDate>
				<guid>https://holyarmy.org/2013/09/odd-git-message-on-osx/</guid>
				<description>&lt;p&gt;Today,IOS 7 dropped to the general public. As usually comes with the release, there was an Xcode update. I updated.&lt;/p&gt;&#xA;&lt;p&gt; &lt;/p&gt;&#xA;&lt;p&gt;For some time, I’ve been using the git bundled in Xcode as it makes it simpler to get updates as they come with Xcode. Today, that yielded an amusing message.&lt;/p&gt;&#xA;&lt;p&gt;I use git via an alias in my .bashrc&lt;/p&gt;&#xA;&lt;pre&gt;alias git=&#39;xcrun git&#39;&lt;/pre&gt;&#xA;&lt;p&gt;A simple version check reveals all:&lt;/p&gt;&#xA;&lt;p&gt; &lt;/p&gt;&#xA;&lt;p&gt;git –version&lt;/p&gt;&#xA;&lt;img class=&#34;alignnone size-medium wp-image-424&#34; alt=&#34;xcode-git-message&#34; src=&#34;https://holyarmy.org/files/2013/09/cl167_sphbb.png&#34; /&gt;&#xA;&lt;p&gt;Oops… git is apparently subject to Apple’s licenses.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Have fun RESTing!</title>
				<link>https://holyarmy.org/2010/01/have-fun-resting/</link>
				<pubDate>Fri, 08 Jan 2010 10:46:59 +0000</pubDate>
				<guid>https://holyarmy.org/2010/01/have-fun-resting/</guid>
				<description>&lt;p&gt;Cheesy post titles aside…&lt;/p&gt;&#xA;&lt;p&gt;I just discovered the very simple but incredibly useful &lt;strong&gt;RESTClient&lt;/strong&gt; at: &lt;a href=&#34;http://code.google.com/p/rest-client/&#34;&gt;http://code.google.com/p/rest-client/&lt;/a&gt; .&lt;/p&gt;&#xA;&lt;p&gt;It’s a simple Java GUI app for testing out one’s REST services. You can choose your: URL, HTTP method, add any custom headers, add a body for PUT/POST, set auth info, SSL info, and do simple scripting.&lt;/p&gt;&#xA;&lt;p&gt;This is an incredibly useful tool, AND a far cry better than doing it all on the command line with curl.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Here, File File! Nears Release, Gets Attention</title>
				<link>https://holyarmy.org/2009/12/here-file-file-nears-release/</link>
				<pubDate>Sat, 05 Dec 2009 22:51:08 +0000</pubDate>
				<guid>https://holyarmy.org/2009/12/here-file-file-nears-release/</guid>
				<description>&lt;p&gt;I’m taking time away from adding spit and polish to the exciting &lt;a href=&#34;http://herefilefile.com&#34; title=&#34;Here, File File!&#34;&gt;Here, File File&lt;/a&gt; project to say WOO HOO!&lt;/p&gt;&#xA;&lt;p&gt;The whole team (&lt;a href=&#34;http://welcome.totheinter.net&#34;&gt;Adam&lt;/a&gt;, &lt;a href=&#34;http://buckwilson.me&#34;&gt;Buck&lt;/a&gt;, and I) are psyched! A few days ago we found out Here, File File is a finalist in the &lt;a href=&#34;http://video.appsfire.com/video/2623113-here-file-file-iphone-app-promo&#34;&gt;AppsFire Apps Star Awards&lt;/a&gt;. And today, The Unofficial Apple Weblog (TUAW) published a great &lt;a href=&#34;http://www.tuaw.com/2009/12/05/found-footage-here-file-file-lets-you-access-your-macs-files/&#34;&gt;HFF write up&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you haven’t seen our promo video yet, give it a whirl!&lt;/p&gt;</description>
			</item>
			<item>
				<title>Updating RubyGems on Mac OS X 10.5 Leopard</title>
				<link>https://holyarmy.org/2009/03/updating-rubygems-on-mac-os-x-105-leopard/</link>
				<pubDate>Fri, 06 Mar 2009 04:38:40 +0000</pubDate>
				<guid>https://holyarmy.org/2009/03/updating-rubygems-on-mac-os-x-105-leopard/</guid>
				<description>&lt;p&gt;I’m just posting a simple tip today.&lt;/p&gt;&#xA;&lt;p&gt;I was wanting to play around with the very cool &lt;a href=&#34;http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html&#34;&gt;SASS meta-language&lt;/a&gt; using &lt;a href=&#34;http://wiki.github.com/chriseppstein/compass&#34;&gt;Compass&lt;/a&gt;. The language and tool are implemented in Ruby, which is pre-installed on OS X, but as I discovered, I needed a newer version of RubyGems.&lt;/p&gt;&#xA;&lt;p&gt;I had already known I needed to update Gems, so I was doing the following:&lt;/p&gt;&#xA;&lt;pre style=&#34;padding-left: 30px&#34;&gt;$ sudo gem update&lt;/pre&gt;&#xA;&lt;p&gt;Eventually I got errors like this:&lt;/p&gt;&#xA;&lt;pre style=&#34;padding-left: 30px&#34;&gt;Updating installed gems...&#xA;Bulk updating Gem source index for: http://gems.rubyforge.org&#xA;Bulk updating Gem source index for: http://gems.github.com/&#xA;Attempting remote update of RedCloth&#xA;ERROR:  Error installing RedCloth:&#xA;    RedCloth requires RubyGems version &amp;gt;= 1.2&#xA;Attempting remote update of capistrano&#xA;ERROR:  Error installing capistrano:&#xA;    capistrano requires RubyGems version &amp;gt;= 1.2&#xA;Attempting remote update of net-sftp&#xA;ERROR:  Error installing net-sftp:&#xA;    net-sftp requires RubyGems version &amp;gt;= 1.2&#xA;Attempting remote update of net-ssh&#xA;ERROR:  Error installing net-ssh:&#xA;    net-ssh requires RubyGems version &amp;gt;= 1.2&#xA;Gems updated: RedCloth, capistrano, net-sftp, net-ssh&lt;/pre&gt;&#xA;&lt;p&gt;Turns out, to update RubyGems, one must update the gem &lt;em&gt;system!&lt;/em&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Logins with mod_rewrite, Cookies, and Javascript Redux</title>
				<link>https://holyarmy.org/2008/12/logins-with-mod_rewrite-cookies-and-javascript-redux/</link>
				<pubDate>Thu, 11 Dec 2008 06:44:45 +0000</pubDate>
				<guid>https://holyarmy.org/2008/12/logins-with-mod_rewrite-cookies-and-javascript-redux/</guid>
				<description>&lt;p&gt;A while back I posted a &lt;a href=&#34;https://holyarmy.org/2008/02/logins-with-mod_rewrite-cookies-javascript/&#34;&gt;simple solution for restricting website access&lt;/a&gt; in a situation where HTTP basic authentication couldn’t be used.&lt;/p&gt;&#xA;&lt;p&gt;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 /) &lt;/p&gt;</description>
			</item>
			<item>
				<title>WordPressMU Plugin Commander</title>
				<link>https://holyarmy.org/2008/12/wordpressmu-plugin-commander/</link>
				<pubDate>Mon, 08 Dec 2008 07:56:01 +0000</pubDate>
				<guid>https://holyarmy.org/2008/12/wordpressmu-plugin-commander/</guid>
				<description>&lt;p&gt;I’m solidly impressed with the &lt;a href=&#34;http://firestats.cc/wiki/WPMUPluginCommander&#34;&gt;WPMU Plugin Commander&lt;/a&gt;. 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).&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;</description>
			</item>
			<item>
				<title>WordPress Regenerate Thumbnail Plugin</title>
				<link>https://holyarmy.org/2008/12/word-press-regenerate-thumbnail-plugin/</link>
				<pubDate>Mon, 08 Dec 2008 06:57:50 +0000</pubDate>
				<guid>https://holyarmy.org/2008/12/word-press-regenerate-thumbnail-plugin/</guid>
				<description>&lt;p&gt;I was literally sitting down to write a plugin that did this, when I stumbled across &lt;a href=&#34;http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/&#34;&gt;Viper007’s Regenerate Thumbnail&lt;/a&gt; plugin.&lt;/p&gt;&#xA;&lt;p&gt;I could still write my own version, but eh, what’s the point. 🙂 Seems to work great!&lt;/p&gt;</description>
			</item>
			<item>
				<title>Use vi key bindings in bash</title>
				<link>https://holyarmy.org/2008/12/use-vi-key-bindings-in-bash/</link>
				<pubDate>Thu, 04 Dec 2008 06:29:38 +0000</pubDate>
				<guid>https://holyarmy.org/2008/12/use-vi-key-bindings-in-bash/</guid>
				<description>&lt;p&gt;A long time ago I used ksh with vi key bindings, and life was good.&lt;/p&gt;&#xA;&lt;p&gt;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).&lt;/p&gt;&#xA;&lt;p&gt;So, just the other day I said to myself, “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.”&lt;/p&gt;</description>
			</item>
			<item>
				<title>A Project Idea: iPhoto to WordPress [gallery] Export</title>
				<link>https://holyarmy.org/2008/10/a-project-idea-iphoto-to-wordpress-gallery-export/</link>
				<pubDate>Thu, 23 Oct 2008 05:52:02 +0000</pubDate>
				<guid>https://holyarmy.org/2008/10/a-project-idea-iphoto-to-wordpress-gallery-export/</guid>
				<description>&lt;p&gt;I’ve been spending some time getting my &lt;a href=&#34;https://holyarmy.org/beaumin/&#34;&gt;son’s blog&lt;/a&gt; setup. In doing so, I discovered that as of WordPress 2.5, there is built-in [ gallery ] functionality.  Though it isn’t full featured, it’s pretty nice, and perfectly integrated with WordPress, since, well, it IS WordPress.&lt;/p&gt;&#xA;&lt;p&gt;Currently the process to put photos into a gallery is:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Choose photos in iPhoto&lt;/li&gt;&#xA;&lt;li&gt;Export chosen files to disk&lt;/li&gt;&#xA;&lt;li&gt;Create new WordPress post&lt;/li&gt;&#xA;&lt;li&gt;Add media via WordPress uploader&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This isn’t too bad, especially for a geek who’s used to lots of arcane workarounds to accomplish simple goals. But… for my wife or others who don’t want the hassle, this is basically annoying.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Good Post on Using Ant for Solid Build Process</title>
				<link>https://holyarmy.org/2008/06/good-post-on-using-ant-for-solid-build-process/</link>
				<pubDate>Fri, 20 Jun 2008 20:35:30 +0000</pubDate>
				<guid>https://holyarmy.org/2008/06/good-post-on-using-ant-for-solid-build-process/</guid>
				<description>&lt;p&gt;I use &lt;a href=&#34;http://ant.apache.org&#34;&gt;Ant&lt;/a&gt; for my Java projects. It’s a great and powerfule build too. However, there’s always more than can be done to improve the quality of the build process.&lt;/p&gt;&#xA;&lt;p&gt;I found &lt;a href=&#34;http://www.julienlecomte.net/blog/2007/09/16/&#34;&gt;this nice article&lt;/a&gt; that gives some good examples of a complete build process with Ant: dev, test, prod, etc.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Investigating OpenID</title>
				<link>https://holyarmy.org/2008/05/investigating-openid/</link>
				<pubDate>Tue, 27 May 2008 15:02:43 +0000</pubDate>
				<guid>https://holyarmy.org/2008/05/investigating-openid/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;http://cephas.net/blog/2008/05/24/links-5-23-2008/&#34;&gt;Aaron (one of my co-workers)&lt;/a&gt;, recently posted a link about OpenID. I’ve given &lt;a href=&#34;http://openid.net/&#34;&gt;OpenID&lt;/a&gt; only cursory glances over the last year, but the Coding Horror link in Aaron’s post had a comment to this &lt;a href=&#34;http://video.google.com/videoplay?docid=2288395847791059857&#34;&gt;Google Video where Simon Willison gives a Google Tech Talk on The Implications of OpenID&lt;/a&gt;. The video is nearly a year old, but to date, it’s done more to convince me to get on the OpenID bandwagon than anything else.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Logins with mod_rewrite &#43; Cookies &#43; JavaScript</title>
				<link>https://holyarmy.org/2008/02/logins-with-mod_rewrite-cookies-javascript/</link>
				<pubDate>Fri, 29 Feb 2008 03:05:32 +0000</pubDate>
				<guid>https://holyarmy.org/2008/02/logins-with-mod_rewrite-cookies-javascript/</guid>
				<description>&lt;p&gt;I recently had an odd situation come up, though it’s not incredibly hard to imagine. I needed to create a staging web server, identical to production, but it should live on a different hostname (eg, staging.sherman.bz, instead of &lt;a href=&#34;https://www.sherman.bz&#34;&gt;www.sherman.bz&lt;/a&gt;). The content should not accessible to the public, nor to search engines. This isn’t really so much a privacy or security issue as it is a convenience and customer service issue. If search engines somehow picked up on our staging site (and they would, given it’s full of SEO triggering info, google analytics scripts and the like) then our search information could become poisoned with the staging URL. Also bad would be if a customer found the staging site and posted information to the wrong place. I’ve actually seen both of these happen in the past when measures were not in place to prevent it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Fixing Binary File Corruption from Ant Copies</title>
				<link>https://holyarmy.org/2007/10/fixing-binary-file-corruption-from-ant-copies/</link>
				<pubDate>Thu, 01 Nov 2007 02:44:09 +0000</pubDate>
				<guid>https://holyarmy.org/2007/10/fixing-binary-file-corruption-from-ant-copies/</guid>
				<description>&lt;p&gt;So there I was, poking around in some java / j2ee code, trying to learn how it all works. I did some testing on a Linux server and realized, something is broken. It seemed something was corrupting ALL the Jar files in WEB-INF/lib/.&lt;/p&gt;&#xA;&lt;p&gt;A co-worker guessed that the token filtering Ant was doing might be the culprit. He was right. It seems Ant has issues with detecting whether files are binary or not, given that it uses a Reader class which runs the files through a character decoder. This is specifically a problem on Unix systems since they commonly use UTF8 character set, and in that case Ant hasn’t a clue if its looking at UTF8 text or binary data.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
