<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>blog.oremj.com</title>
	
	<link>http://blog.oremj.com</link>
	<description>What is Jeremy thinking about?</description>
	<lastBuildDate>Fri, 26 Feb 2010 22:30:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/oremj" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="oremj" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Speedup Firefox with VACUUM</title>
		<link>http://blog.oremj.com/2009/08/20/speedup-firefox-with-vacuum/</link>
		<comments>http://blog.oremj.com/2009/08/20/speedup-firefox-with-vacuum/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 20:31:54 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=46</guid>
		<description><![CDATA[I&#8217;ve seen a few posts about VACUUMing Firefox&#8217;s sqlite database for better performance, but each requires Firefox to be shut down.
Here is a way to VACUUM your places database from within the browser.

Go to Tools -&#62; Error Console
Paste the following in the &#8220;Code:&#8221; text-box:
Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM");

Press Enter

Your UI will freeze for a bit while the vacuum runs.
Resources:

https://developer.mozilla.org/En/Updating_extensions_for_Firefox_3.5#Accessing_the_Places_database
https://developer.mozilla.org/en/Storage
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a <a href="http://www.gettingclever.com/2008/06/vacuum-your-firefox-3.html">few</a> <a href="http://petervk.wordpress.com/2009/01/17/use-firefox-3-youll-need-to-vacuum-the-database-once-in-a-while/">posts</a> about VACUUMing Firefox&#8217;s sqlite database for better performance, but each requires Firefox to be shut down.</p>
<p>Here is a way to VACUUM your places database from within the browser.</p>
<ol>
<li>Go to Tools -&gt; Error Console</li>
<li>Paste the following in the &#8220;Code:&#8221; text-box:
<pre>Components.classes["@mozilla.org/browser/nav-history-service;1"].getService(Components.interfaces.nsPIPlacesDatabase).DBConnection.executeSimpleSQL("VACUUM");</pre>
</li>
<li>Press Enter</li>
</ol>
<p>Your UI will freeze for a bit while the vacuum runs.</p>
<p>Resources:</p>
<ul>
<li><a href="https://developer.mozilla.org/En/Updating_extensions_for_Firefox_3.5#Accessing_the_Places_database" rel="nofollow">https://developer.mozilla.org/En/Updating_extensions_for_Firefox_3.5#Accessing_the_Places_database</a></li>
<li><a href="https://developer.mozilla.org/en/Storage" rel="nofollow">https://developer.mozilla.org/en/Storage</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2009/08/20/speedup-firefox-with-vacuum/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Command line pastebin</title>
		<link>http://blog.oremj.com/2009/07/16/command-line-pastebin/</link>
		<comments>http://blog.oremj.com/2009/07/16/command-line-pastebin/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 21:53:48 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=44</guid>
		<description><![CDATA[I have been frustrated with copying/pasting command line output to pastebin lately.  To solve the problem I&#8217;ve whipped up a simple script to pastebin stdin. Check it out.]]></description>
			<content:encoded><![CDATA[<p>I have been frustrated with copying/pasting command line output to pastebin lately.  To solve the problem I&#8217;ve whipped up a simple script to pastebin stdin. <a href="http://github.com/oremj/pastebinit/">Check it out</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2009/07/16/command-line-pastebin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom-User-CSS – Wordpress Plugin</title>
		<link>http://blog.oremj.com/2009/02/11/custom-user-css-wordpress-plugin/</link>
		<comments>http://blog.oremj.com/2009/02/11/custom-user-css-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 22:54:51 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.oremj.com/?p=34</guid>
		<description><![CDATA[I hacked up a new wordpress plugin that gives users more control over the appearance of their blogs.  This plugin is especially useful for WordpressMU maintainers and users.  Read more about it or visit its wordpress.org home.]]></description>
			<content:encoded><![CDATA[<p>I hacked up a new wordpress plugin that gives users more control over the appearance of their blogs.  This plugin is especially useful for WordpressMU maintainers and users.  Read more <a href="http://blog.oremj.com/custom-user-css-wordpress-plugin/">about</a> it or visit its wordpress.org <a href="http://wordpress.org/extend/plugins/custom-user-css/">home</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.oremj.com/2009/02/11/custom-user-css-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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>
		<category><![CDATA[IT]]></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>
		<slash:comments>1</slash:comments>
		</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>
		<slash:comments>1</slash:comments>
		</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>
		<slash:comments>3</slash:comments>
		</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>
		<slash:comments>2</slash:comments>
		</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>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
