<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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" version="2.0">

<channel>
	<title>blog.oremj.com</title>
	
	<link>http://blog.oremj.com</link>
	<description>What is Jeremy thinking about?</description>
	<pubDate>Wed, 03 Dec 2008 21:33:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/oremj" type="application/rss+xml" /><item>
		<title>Simple bash locking</title>
		<link>http://blog.oremj.com/2008/12/02/simple-bash-locking/</link>
		<comments>http://blog.oremj.com/2008/12/02/simple-bash-locking/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 02:33:59 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=24</guid>
		<description><![CDATA[I often need to create lock files in my scripts, so crontab doesn&#8217;t spawn more than one process.  This is a simple bash lock file function I like to use:
function create_lock {
        LOCK_NAME=$1
        if [[ -e "$LOCK_NAME" ]]
    [...]]]></description>
			<content:encoded><![CDATA[<p>I often need to create lock files in my scripts, so crontab doesn&#8217;t spawn more than one process.  This is a simple bash lock file function I like to use:</p>
<pre style="text-align: left;">function create_lock {
        LOCK_NAME=$1
        if [[ -e "$LOCK_NAME" ]]
        then
                OLDPID=`cat $LOCK_NAME`
                if ps p $OLDPID &gt; /dev/null
                then
                        return 1
                fi
                rm $LOCK_NAME
        fi
        echo $$ &gt; $LOCK_NAME
        return 0
}</pre>
<p>create_lock doesn&#8217;t handle race conditions, but it is typically good enough for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2008/12/02/simple-bash-locking/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mediawiki Google Search Appliance Integration</title>
		<link>http://blog.oremj.com/2008/10/15/mediawiki-google-search-appliance-integration/</link>
		<comments>http://blog.oremj.com/2008/10/15/mediawiki-google-search-appliance-integration/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 22:07:31 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=21</guid>
		<description><![CDATA[I was given the task of integrating our old Google Search Appliance with our internal wiki.    It turns out MediaWiki offers a couple of different ways to alter search functionality: $wgSearchForwardUrl and $wgSearchType.  The $wgSearchType variable accepts a SearchEngine class name and enables custom search back-ends.  SimpleXML and the GSA XML API then allowed [...]]]></description>
			<content:encoded><![CDATA[<p>I was given the task of integrating our old <a title="Google Search Appliance" href="http://www.google.com/enterprise/gsa/">Google Search Appliance</a> with our internal wiki.    It turns out <a href="http://www.mediawiki.org/">MediaWiki</a> offers a couple of different ways to alter search functionality: <a href="http://www.mediawiki.org/wiki/Manual:$wgSearchForwardUrl">$wgSearchForwardUrl</a> and <a href="http://www.mediawiki.org/wiki/Manual:$wgSearchType">$wgSearchType</a>.  The <a href="http://www.mediawiki.org/wiki/Manual:$wgSearchType">$wgSearchType</a> variable accepts a SearchEngine class name and enables custom search back-ends.  <a href="http://us.php.net/simplexml">SimpleXML</a> and the <a href="http://code.google.com/apis/searchappliance/documentation/50/xml_reference.html">GSA XML API</a> then allowed me to fetch and process the search results.  After a few hours of tweaking I am pretty happy with the <a href="http://code.google.com/p/mediawiki-gsa-engine/">result</a>, a tightly integrated full text search.</p>
<p>If you are interested in setting up your Google Search Appliance with a mediawiki instance, installation is simple, <a href="http://mediawiki-gsa-engine.googlecode.com/svn/trunk/SearchGSA.php">download</a> or <a href="http://code.google.com/p/mediawiki-gsa-engine/source/checkout">checkout</a> the extension and follow the <a href="http://code.google.com/p/mediawiki-gsa-engine/wiki/Installation">installation instructions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2008/10/15/mediawiki-google-search-appliance-integration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My Life is a Little Bit Easier Now</title>
		<link>http://blog.oremj.com/2008/09/12/my-life-is-a-little-bit-easier-now/</link>
		<comments>http://blog.oremj.com/2008/09/12/my-life-is-a-little-bit-easier-now/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 21:42:11 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=15</guid>
		<description><![CDATA[Lately, I&#8217;ve found the process of assigning a bug to myself slightly cumbersome and wanted to speed up the process.  I happen to be a fan of Ubiquity, so I decided to write a command.
The command assigntome, by default, changes the assigned to field to your user.  The whole process can be automated by tacking [...]]]></description>
			<content:encoded><![CDATA[<p>Lately, I&#8217;ve found the process of assigning a bug to myself slightly cumbersome and wanted to speed up the process.  I happen to be a fan of <a href="http://labs.mozilla.com/projects/ubiquity/">Ubiquity</a>, so I decided to write a command.</p>
<p>The command assigntome, by default, changes the assigned to field to your user.  The whole process can be automated by tacking on the submit noun, which will simulate clicking the &#8220;Commit&#8221; button.</p>
<p>To install assigntome <a href="http://dev.oremj.com/ubiquity.html">subscribe to my Ubiquity feed</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2008/09/12/my-life-is-a-little-bit-easier-now/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MediaWiki: HttpAuth Plugin</title>
		<link>http://blog.oremj.com/2008/09/07/mediawiki-httpauth-plugin/</link>
		<comments>http://blog.oremj.com/2008/09/07/mediawiki-httpauth-plugin/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 02:21:22 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=10</guid>
		<description><![CDATA[All HttpAuth Plugin development has moved here from my work blog.  Mozilla&#8217;s internal wikis have been using the extension without issue.  Is anyone aware of issues that need fixing?
]]></description>
			<content:encoded><![CDATA[<p>All <a href="http://www.mediawiki.org/wiki/Extension:HttpAuth">HttpAuth Plugin</a> development has moved here from my <a href="http://blog.mozilla.com/oremj/2007/01/29/mediawiki-httpauth-plugin/">work blog</a>.  Mozilla&#8217;s internal wikis have been using the extension without issue.  Is anyone aware of issues that need fixing?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2008/09/07/mediawiki-httpauth-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SimpleCaptcha Update</title>
		<link>http://blog.oremj.com/2008/09/04/simplecaptcha-update/</link>
		<comments>http://blog.oremj.com/2008/09/04/simplecaptcha-update/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 23:52:38 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=8</guid>
		<description><![CDATA[I&#8217;ve decided to move SimpleCaptcha development to my personal server.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to move <a href="http://blog.oremj.com/simplecaptcha-plugin/">SimpleCaptcha</a> development to my personal server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2008/09/04/simplecaptcha-update/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
