<?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>Oremj's Blog &#187; Development</title>
	<atom:link href="http://blog.mozilla.com/oremj/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/oremj</link>
	<description>Just another Blog.mozilla.com weblog</description>
	<lastBuildDate>Mon, 23 Nov 2009 20:14:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AssignToMe Bookmarklet</title>
		<link>http://blog.mozilla.com/oremj/2009/11/23/assigntome-bookmarklet/</link>
		<comments>http://blog.mozilla.com/oremj/2009/11/23/assigntome-bookmarklet/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 20:14:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/?p=63</guid>
		<description><![CDATA[I&#8217;ve been trying to cut down on the number of addons I run. Previously I blogged about my Bugzilla &#8220;assigntome&#8221; ubiquity command. Turns out it is really easy to turn it in to a bookmarklet. Just drag AssignToMe to your bookmarks toolbar.
Code:

javascript:(function() {
    var logout_re = /[\s\S]*Log.*out.*[\s]\s*(.*)\s/m;
    var links [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to cut down on the number of addons I run. Previously I <a href="http://blog.mozilla.com/oremj/2008/09/12/my-life-is-a-little-bit-easier-now/">blogged</a> about my Bugzilla &#8220;assigntome&#8221; ubiquity command. Turns out it is really easy to turn it in to a bookmarklet. Just drag <a href="javascript:(function(){var logout_re=/[\s\S]*Log.*out.*[\s]\s*(.*)\s/m;var links=document.getElementById('footer').getElementsByClassName('links')[0].getElementsByTagName('li');var user_name=links[links.length-1].textContent.replace(logout_re,'$1');var evt=document.createEvent('MouseEvents');evt.initMouseEvent('click',true,true,window,0,0,0,0,0,false,false,false,false,0,null);document.getElementById('bz_assignee_edit_action').dispatchEvent(evt);document.getElementById('assigned_to').value=user_name;document.getElementById('commit_top').click()})();">AssignToMe</a> to your bookmarks toolbar.</p>
<p>Code:</p>
<pre>
javascript:(function() {
    var logout_re = /[\s\S]*Log.*out.*[\s]\s*(.*)\s/m;
    var links = document.getElementById('footer').getElementsByClassName('links')[0].getElementsByTagName('li');
    var user_name = links[links.length - 1].textContent.replace(logout_re, '$1');
    var evt = document.createEvent('MouseEvents');
    evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
    document.getElementById('bz_assignee_edit_action').dispatchEvent(evt);
    document.getElementById('assigned_to').value = user_name;
    document.getElementById('commit_top').click();
})();
</pre>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2009/11/23/assigntome-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordpressMU: changing domain names.</title>
		<link>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/</link>
		<comments>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:12:51 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/?p=45</guid>
		<description><![CDATA[Unfortunately, changing domain names in WordpressMU is a manual process. It&#8217;s something I&#8217;ve come across often and have to look it up each time. Here&#8217;s what I did, so I don&#8217;t have to look it up again. Original idea from Boris Masis.
1. Drop and run this script in the root wpmu directory:
&#60;?php
define('WP_INSTALLING', true);
require_once('wp-load.php');

$old_domain = 'olddomain.com';
$new_domain [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, changing domain names in WordpressMU is a manual process. It&#8217;s something I&#8217;ve come across often and have to look it up each time. Here&#8217;s what I did, so I don&#8217;t have to look it up again. Original idea from <a href="http://www.borism.net/2008/12/02/changing-domainsenvironments-in-wordpress-mu/" class="extlink">Boris Masis.</a></p>
<p>1. Drop and run this script in the root wpmu directory:</p>
<pre>&lt;?php
define('WP_INSTALLING', true);
require_once('wp-load.php');

$old_domain = 'olddomain.com';
$new_domain = 'newdomain.com';

$query = "UPDATE wp_site SET domain = '$new_domain' where domain = '$old_domain'";
$wpdb-&gt;query($query);

$query = "UPDATE wp_blogs SET domain = REPLACE(domain, '$old_domain', '$new_domain')";
$wpdb-&gt;query($query);

$querystr ="SHOW TABLES LIKE 'wp_%_options'";

$tables = $wpdb-&gt;get_results($querystr, ARRAY_N);

echo count($tables);
$query = "";
if ($tables){
  foreach ($tables as $table){
    $query = 'UPDATE '.$table[0]." SET option_value = REPLACE(option_value,'$old_domain','$new_domain')";
    $wpdb-&gt;query($query);
  }
}
?&gt;
</pre>
<p>2. Edit wp-config.php and set &#8220;DOMAIN_CURRENT_SITE&#8221; to the appropriate domain.</p>
<p>That&#8217;s it, everything should work properly.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2009/10/27/wordpressmu-changing-domain-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Life is a Little Bit Easier Now</title>
		<link>http://blog.mozilla.com/oremj/2008/09/12/my-life-is-a-little-bit-easier-now/</link>
		<comments>http://blog.mozilla.com/oremj/2008/09/12/my-life-is-a-little-bit-easier-now/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 21:56:17 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/?p=21</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 [...]]]></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" class="extlink">subscribe to my Ubiquity feed</a>.</p>
<p>Cross-post from <a href="http://blog.oremj.com/2008/09/12/my-life-is-a-little-bit-easier-now/" class="extlink">blog.oremj.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2008/09/12/my-life-is-a-little-bit-easier-now/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MediaWiki: HttpAuth Plugin</title>
		<link>http://blog.mozilla.com/oremj/2007/01/29/mediawiki-httpauth-plugin/</link>
		<comments>http://blog.mozilla.com/oremj/2007/01/29/mediawiki-httpauth-plugin/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 03:29:59 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/2007/01/29/mediawiki-httpauth-plugin/</guid>
		<description><![CDATA[Using MediaWiki behind http authetication was always slightly annoying in the past.  One would have to:

 Login with their htpasswd credentials
Create account if it did not exist already
Login with their wiki credentials
Remember both sets of credentials

This extension reduces the previous four steps into one simple step.

Login with htpasswd credentials

The extension can be downloaded at [...]]]></description>
			<content:encoded><![CDATA[<p>Using MediaWiki behind http authetication was always slightly annoying in the past.  One would have to:</p>
<ol>
<li> Login with their htpasswd credentials</li>
<li>Create account if it did not exist already</li>
<li>Login with their wiki credentials</li>
<li>Remember both sets of credentials</li>
</ol>
<p>This extension reduces the previous four steps into one simple step.</p>
<ol>
<li>Login with htpasswd credentials</li>
</ol>
<p>The extension can be downloaded at <a href="http://people.mozilla.com/~oremj/HttpAuthPlugin.php">http://people.mozilla.com/~oremj/HttpAuthPlugin.php</a> and setup instructions at <a href="http://www.mediawiki.org/wiki/Extension:HttpAuth" class="extlink">MediaWiki</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2007/01/29/mediawiki-httpauth-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SimpleCaptcha Plugin</title>
		<link>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/</link>
		<comments>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 22:46:03 +0000</pubDate>
		<dc:creator>oremj</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/</guid>
		<description><![CDATA[The other day spent several hours searching for a Wordpress MU(WPMU) compatible captcha plugin with no success.  I didn&#8217;t care about a robust spam fighting packages with Bayesian filtering etc;  all I wanted was very simple and accessible plugin.  Yesterday, I came up with SimpleCaptcha.  So far SimpleCaptcha seems to be [...]]]></description>
			<content:encoded><![CDATA[<p>The other day spent several hours searching for a Wordpress MU(WPMU) compatible captcha plugin with no success.  I didn&#8217;t care about a robust spam fighting packages with Bayesian filtering etc;  all I wanted was very simple and accessible plugin.  Yesterday, I came up with <a href="http://blog.mozilla.com/oremj/simplecaptcha-plugin/" title="SimpleCaptcha">SimpleCaptcha</a>.  So far SimpleCaptcha seems to be working very well against spam bots.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/oremj/2006/12/28/simplecaptcha-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
