<?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>All Night Diner &#187; Wil Clouser</title>
	<atom:link href="http://micropipes.com/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://micropipes.com/blog</link>
	<description>because at 3am anything sounds good</description>
	<lastBuildDate>Tue, 10 Apr 2012 17:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to get a development instance of AMO set up in about 10 minutes</title>
		<link>http://micropipes.com/blog/2012/04/10/how-to-get-a-development-instance-of-amo-set-up-in-about-10-minutes/</link>
		<comments>http://micropipes.com/blog/2012/04/10/how-to-get-a-development-instance-of-amo-set-up-in-about-10-minutes/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 17:29:54 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=256</guid>
		<description><![CDATA[Last year we set up landfill.amo to give contributors an easy base to set up the addons.mozilla.org site. Easy is relative here, of course, but it was a big leap over what we had at the time. Kumar leapfrogged that milestone by adding Vagrant configuration scripts to our repository. Now you can have a running [...]]]></description>
			<content:encoded><![CDATA[<p>Last year <a href="http://micropipes.com/blog/2011/03/29/welcome-to-the-landfill/">we set up landfill.amo</a> to give contributors an easy base to set up the addons.mozilla.org site.  Easy is relative here, of course, but it was a big leap over what we had at the time.</p>
<p><a href="http://farmdev.com/">Kumar</a> leapfrogged that milestone by adding <a href="http://vagrantup.com/">Vagrant</a> configuration scripts to our repository.  Now you can have a running version of AMO on your local system in about 3-5 commands[1].  </p>
<p>Check out <a href="http://mozilla.github.com/zamboni/topics/install-zamboni/install-with-vagrant.html">the steps to install AMO with Vagrant</a> to see how.  I set it up on OS X last week and aside from waiting for the download it only took a few minutes.  Drop by #amo on IRC if you run into any troubles.</p>
<p>[1]  Setting this up on Windows is apparently more difficult although one contributor did find success after fighting with it for some time.</p>
<p><em>Edit: Updated the installation instructions URL</em></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2012/04/10/how-to-get-a-development-instance-of-amo-set-up-in-about-10-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 years of Irssi use and I switched to WeeChat last weekend</title>
		<link>http://micropipes.com/blog/2012/04/09/10-years-of-irssi-use-and-i-switched-to-weechat-last-weekend/</link>
		<comments>http://micropipes.com/blog/2012/04/09/10-years-of-irssi-use-and-i-switched-to-weechat-last-weekend/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 23:10:37 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=269</guid>
		<description><![CDATA[I started using Irssi almost 10 years ago when I first started trolling wandering around the world of IRC. My main use is to run it in a screen and stay connected all the time. To chat I&#8217;ll just ssh into the server and reconnect to the screen. Generally I leave my terminal open, stretched [...]]]></description>
			<content:encoded><![CDATA[<p>I started using <a href="http://irssi.org/">Irssi</a> almost 10 years ago when I first started <strike>trolling</strike> wandering around the world of IRC.  My main use is to run it in a screen and stay connected all the time.  To chat I&#8217;ll just ssh into the server and reconnect to the screen.  Generally I leave my terminal open, stretched across the top of my monitor so it&#8217;s really wide but only about 8 or 10 lines high.  This way I can keep IRC visible all day long and respond quickly to questions.</p>
<p>I&#8217;ve customized irssi with custom highlights and commands and all has been well, save one thing:  <a href="http://bugs.irssi.org/index.php?do=details&#038;task_id=310">bug 310 &#8211; vertical splits</a>.  Irssi can&#8217;t do vertical window splits and with the trends giving us widescreen monitors, horizontal splits aren&#8217;t really useful to me.  The bug has been open since 2005 and I&#8217;ve all but given up on it.</p>
<p>Then the other day <a href="http://blog.wraithan.net/">Chris McDonald</a> claimed the unfortunately named <a href="http://www.weechat.org/">WeeChat</a> was superior to Irssi.  I was all ready to defend Irssi&#8217;s honor but I read through the documentation and WeeChat was pretty compelling &#8211; most notably its support for vertical splits!</p>
<p>So, long story short, I switched last week and it&#8217;s awesome.  I don&#8217;t miss Irssi at all and in fact WeeChat offers me things I never even knew I&#8217;d want (like per-buffer history when hitting the up-arrow).  I&#8217;ve customized it so it essentially looks like Irssi (no nickname list, etc.) and I&#8217;ve added a lot of aliases to make it easier for me to use (mostly vim keys).  If you&#8217;re an Irssi user you owe it to yourself to at least read their docs and see what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2012/04/09/10-years-of-irssi-use-and-i-switched-to-weechat-last-weekend/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP is dead!  (on addons.mozilla.org)</title>
		<link>http://micropipes.com/blog/2012/04/09/php-is-dead-on-addons-mozilla-org/</link>
		<comments>http://micropipes.com/blog/2012/04/09/php-is-dead-on-addons-mozilla-org/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 17:26:57 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[L10n]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=267</guid>
		<description><![CDATA[This is just a short note to recognize the long coming milestone of PHP being effectively off[1] on addons.mozilla.org. We started the migration in 2010 and just finished it up a couple weeks ago. After the major pages were completed it was hard to budget time for all the minor details we had implemented since [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a short note to recognize the long coming milestone of PHP being effectively off[1] on addons.mozilla.org.  We <a href="http://micropipes.com/blog/2009/11/17/amo-development-changes-in-2010/">started the migration</a> in 2010 and just finished it up a couple weeks ago.  After the major pages were completed it was hard to budget time for all the minor details we had implemented since there was so much other important stuff to do (I&#8217;m looking at you, marketplace.mozilla.org).  Now that the switch is done though we can simplify our setup instructions for AMO, simplify our infrastructure, optimize apache for python only, have full unit test coverage &#8211; the list goes on.</p>
<p>A big thanks to all the developers who made the switch possible, and especially the ones at the end who were working on migrating PHP scripts instead of more glorious projects.  Thanks to the management and all the other folks affected by the switch for being patient with the scheduling.  Thanks to the localizers for dealing with the crazy merged .po files, and, of course, thanks to the users of AMO for reporting bugs when they happened and generally being an all around great community to work with.</p>
<p>[1] Currently all traffic is being rewritten to a WSGI handler for Python.  PHP is still on the server but nothing uses it.  We&#8217;ll be removing it completely in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2012/04/09/php-is-dead-on-addons-mozilla-org/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Choosing your own greener grass</title>
		<link>http://micropipes.com/blog/2012/04/06/choosing-your-own-greener-grass/</link>
		<comments>http://micropipes.com/blog/2012/04/06/choosing-your-own-greener-grass/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 16:39:09 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[hindsight]]></category>
		<category><![CDATA[leadership]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=250</guid>
		<description><![CDATA[A lot of my time is spent trying to arrange projects and schedules so we can get code shipped in a reasonable time. AMO has the blessing/curse of being broad enough that there is work to do in nearly every area on the site. Once the highest priority areas have people working on them there [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of my time is spent trying to arrange projects and schedules so we can get code shipped in a reasonable time.  AMO has the blessing/curse of being broad enough that there is work to do in nearly every area on the site.  Once the highest priority areas have people working on them there is still plenty of work to go around that isn&#8217;t as time critical.</p>
<p>Last March there was some feedback from developers about being tired of the code they were working on and eyeing other technologies but not having the time to work with them.  This is a fragile balance which every manager and developer has had to struggle with.  Writing new code is always sexier than maintaining old code, but the old code is the bread and butter that keeps you in business.  Finding a happy medium is a noble, elusive, and unfortunately, shifting goal.</p>
<p>Enjoying what you work on is crucial to being happy and productive though so I&#8217;ll continue to pursue that goal.  </p>
<p>One of the changes we experimented with at the time was to let developers choose their own focus for the quarter.  We still had high level quarterly goals that needed to be done, but that left plenty of other time throughout the quarter to work on any of those areas which were all equally important but perhaps not equally as interesting.  I filled up a whiteboard with ideas one morning (and left space for developers to add more) and we had a meeting later in the day where anyone could discuss the ideas and sign up for what was interesting to them.  This was a short term commitment from the developers and they got to work on what they cared about.  From a managerial perspective, it increased motivation but didn&#8217;t sacrifice accountability.  Since I knew the focus of the developers early in the quarter, I could help clear out roadblocks that they&#8217;d meet before they even started working on their areas.</p>
<p>The quarter is over this week and overall the idea was a success.  All the feedback from developers was positive &#8211; if you&#8217;re looking for a way to spice up the top-down approach to goal setting this was effective.  It also turned the goal setting into more of a discussion rather than an edict that just shows up.</p>
<p><em>I wrote this almost 9 months ago but apparently never hit publish.  So, here it is.  We&#8217;ve played with it a bit since but haven&#8217;t had a large quarterly planning meeting like that because we&#8217;re mainly focused on the marketplace.  Experimenting with smaller goals is a next step here, and doing the meetings on a weekly or biweekly basis.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2012/04/06/choosing-your-own-greener-grass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grave Pursuit</title>
		<link>http://micropipes.com/blog/2012/04/04/grave-pursuit/</link>
		<comments>http://micropipes.com/blog/2012/04/04/grave-pursuit/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 03:48:07 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=258</guid>
		<description><![CDATA[I read a book called Hint Fiction last year where the idea was to write a compelling story in 25 words or less. My favorite that I can remember was by J. Matthew Zoss: I’m sorry, but there’s not enough air in here for everyone. I’ll tell them you were a hero. I had an [...]]]></description>
			<content:encoded><![CDATA[<p>I read a book called <a href="http://www.robertswartwood.com/hint-fiction/">Hint Fiction</a> last year where the idea was to write a compelling story in 25 words or less.  My favorite that I can remember was by J. Matthew Zoss:</p>
<blockquote><p>I’m sorry, but there’s not enough air in here for everyone. I’ll tell them you were a hero.</p></blockquote>
<p>I had an idea to translate this idea into photographs and tell a story within a limit of 3 photos (a generous 3000 words if we&#8217;re going by the standard exchange).  I took the first two photos fairly quickly but the 3rd took me a long time to organize the scene (and get a participant).  During some time off a couple weeks ago I found the time to finish the trio of photos and complete the tale.</p>
<p>Click on the photo below to see the whole story</p>
<p><a href="http://micropipes.com/gravepursuit/"><img src="http://micropipes.com/gravepursuit/final1.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2012/04/04/grave-pursuit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security in Depth; the first layer of addons.mozilla.org</title>
		<link>http://micropipes.com/blog/2011/05/20/security-in-depth-the-first-layer-of-addons-mozilla-org/</link>
		<comments>http://micropipes.com/blog/2011/05/20/security-in-depth-the-first-layer-of-addons-mozilla-org/#comments</comments>
		<pubDate>Fri, 20 May 2011 16:16:28 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=243</guid>
		<description><![CDATA[Discussing the security measures of a public facing and popular website is usually taboo. Often owners are unsure they are following best practices, prefer not to draw attention to their site, or hope that they can maintain security through the obscurity of their code. At Mozilla we are fortunate to offer nearly all of the [...]]]></description>
			<content:encoded><![CDATA[<p>Discussing the security measures of a public facing and popular website is usually taboo.  Often owners are unsure they are following best practices, prefer not to draw attention to their site, or hope that they can maintain <a href="http://en.wikipedia.org/wiki/Security_through_obscurity">security through the obscurity</a> of their code.  At Mozilla we are fortunate to offer nearly all of the code in the entire company as open source software.  <a href="https://github.com/jbalogh/zamboni">addons.mozilla.org is no exception</a>.  This means we need to be extra vigilant with the code we write (and a huge thanks to our developers doing code reviews, the security and QA teams testing code, and the community members reporting bugs they find), but it also means I can write posts like this to explain some of the security measures we have implemented and how you can use them to make visitors to your sites safer too.  </p>
<p><strong>SSL Encryption</strong>:  Let&#8217;s start off easy.  Anytime you go to addons.mozilla.org we redirect you to <strong>https</strong>://addons.mozilla.org.  Assuming you make it through the redirect safely you can be reasonably sure you&#8217;re talking to us at that point.  Any data sent between your browser and us is encrypted with industry standard encryption.  This seems like a freebie (I know you&#8217;re thinking, &#8220;really? you&#8217;re talking about SSL?&#8221;), but do a quick search and you&#8217;ll find <a href="http://www.firstrade.com">plenty</a> <a href="http://www.albinabank.com/">of</a> <a href="http://www.usbank.com">financial</a> <a href="http://www.discovercard.com/">institutions</a> that fail to take even this most basic precaution on pages where you submit the username and password to your accounts.</p>
<p>Alright, let&#8217;s get more interesting.  AMO has a lot of user uploaded data on it, from images to files (the add-ons themselves) to the files within add-ons (we allow you to browse uploaded add-ons on the site).  If a user uploads some malicious JavaScript they&#8217;ll be able to run it in the context of the addons.mozilla.org domain which would give them access to manipulate the site and change or steal user data.  We protect ourselves by <strong>using an alternate domain for user uploads</strong> &#8211; static.addons.mozilla.net.  By using .net instead of .org we&#8217;ve sand-boxed user scripts onto their own domain and protected the content on .org.  This is industry standard (notice how your content you upload to Google comes off of www.googleusercontent.com) and gives you a free performance boost as well.</p>
<p>Actually, uploaded images should get special mention.  It&#8217;s a best practice to always clean and verify user data but this is often overlooked for images.  Back in the days of IE6 you could actually <a href="http://kestas.kuliukas.com/JavaScriptImage/">run arbitrary JavaScript embedded in the comments of an image</a>.  This has since been fixed in the browser but poorly configured servers and applications can still pose a threat.  <a href="https://nealpoole.com">Neal Poole</a> demonstrated a proof of concept on a Mozilla site where he embedded PHP in an image, saved it as &#8220;image.php&#8221; and uploaded to a site.  The site saved it under a /media/gallery/ directory (under the webroot with PHP enabled) and he had arbitrary PHP execution on the server.  The lesson learned was <strong>always re-encode user images when they are submitted</strong>.  Even if you&#8217;re re-encoding from PNG to PNG, strip the comments &#8211; it&#8217;s not worth it to find out there was something malicious in them later on.</p>
<p>For many sites session cookies are one of the most valuable assets behind the actual credentials to log in.  AMO protects the session cookie (and most of its cookies) with two very underused options: the <strong>Secure and HTTPOnly flags</strong>.  Secure simply means the cookie is only sent over a secure connection &#8211; that means that when you go to addons.mozilla.org without typing the https, your cookies (and therefore your session) aren&#8217;t sent and won&#8217;t be compromised if someone is eavesdropping.  <a href="https://www.owasp.org/index.php/HttpOnly">HTTPOnly</a> means that the cookies are sent with browser traffic to AMO but the cookie is inaccessible to client side scripts.  If a malicious script is somehow injected into the page this option will prevent it from stealing the session id.  Assuming you don&#8217;t need access to the cookies and are running SSL these are essentially free additional layers of security for your site.</p>
<p>Every request to AMO returns a pile of interesting (and sometimes bleeding edge) HTTP headers.  If you hit the front page, you&#8217;ll see <strong>X-Frame-Options: DENY</strong>.  In a supporting browser, this will prevent someone from putting the AMO site into an &lt;iframe&gt; (which prevents things like <a href="http://en.wikipedia.org/wiki/Clickjacking">clickjacking</a>).  The vast majority of sites can add this header for more free security.</p>
<p>In a couple examples above I say that once you get to AMO on SSL you&#8217;ll be fine but I conveniently skip all the traffic and redirects up until then.  An attempt to keep people safe until they reach that point is the <strong>Strict-Transport-Security: max-age=2592000</strong> header.  This tells the browser that for the next 30 days, if you type in addons.mozilla.org without https it will automatically send it over SSL before the initial request &#8211; no unencrypted traffic at all.  Support for this header is not widespread yet, but it&#8217;s in all the recent versions of Firefox and I expect support for it to expand.</p>
<p>I can&#8217;t mention &#8220;bleeding edge&#8221; and &#8220;headers&#8221; without a hat tip to the <strong>Content Security Policy</strong> (<a href="https://wiki.mozilla.org/Security/CSP/Specification">specifications</a>).  We&#8217;ve had it in reporting mode for a couple months as we work out what needs to be adjusted before we turn it on, but once we do, this will (again, in a supporting browser) define specific rules for what domains will have valid assets (like images, JavaScript, CSS, etc.) as well as disallow any inline JavaScript from executing.  This essentially locks down XSS attacks even if someone does find a way to inject code into the page.  It&#8217;s a really exciting development but not for the faint of heart to implement on a complex site at this point in time.  There are still some bugs to iron out and some edge cases to clarify in CSP but it&#8217;s becoming something to seriously consider.  I think <a href="http://engineering.twitter.com/2011/03/improving-browser-security-with-csp.html">Twitter is the most prominent site using it to enforce rules</a> (as opposed to only reporting violations) at this time.</p>
<p>Whew, that is a pile of text and that&#8217;s just covering the extreme front end.  I&#8217;m going to cut it off there to keep this from running on for pages but if there is interest I&#8217;ll write another post about more things AMO does to defend itself and its visitors, and other areas where everyone can consider adding in extra security.  </p>
<p>In the mean time, if you want even more best practices the Mozilla Security Team has made a <a href="https://wiki.mozilla.org/WebAppSec/Secure_Coding_Guidelines">great wiki page for further reading about web security</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2011/05/20/security-in-depth-the-first-layer-of-addons-mozilla-org/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AMO 2011 Development Visualized</title>
		<link>http://micropipes.com/blog/2011/05/15/amo-2011-development-visualized/</link>
		<comments>http://micropipes.com/blog/2011/05/15/amo-2011-development-visualized/#comments</comments>
		<pubDate>Sun, 15 May 2011 23:48:36 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=233</guid>
		<description><![CDATA[I was playing around with gource this weekend while watching the TSL 3 Finals and pointed it at addons.mozilla.org&#8217;s source repository. I sped it up to display 1 day of commits per second and piped it all to ffmpeg to make a video. It turned out pretty well so here is addons.mozilla.org development so far [...]]]></description>
			<content:encoded><![CDATA[<p>I was playing around with <a href="http://code.google.com/p/gource/">gource</a> this weekend while watching the <a href="http://www.pokerstrategytsl3.com/">TSL 3 Finals</a> and pointed it at <a href="https://github.com/jbalogh/zamboni">addons.mozilla.org&#8217;s source repository</a>.  I sped it up to display 1 day of commits per second and piped it all to ffmpeg to make a video.  </p>
<p>It turned out pretty well so here is addons.mozilla.org development so far for 2011 (in HD!):</p>
<p><video width="1280" height="720" controls preload="none"><br />
    <source src="http://people.mozilla.org/~clouserw/public/blog/amo-2011-development.ogv" type='video/ogg; codecs="theora"'><br />
</video><br />
(Warning: prefetching is off but if you click play you&#8217;re in for an 80MB video.)</p>
<p>The gource docs are easy to read if you want to do this for your project, but for the record this is what I ran:<br />
<code><br />
gource --viewport 1280x720 \<br />
       --user-image-dir ~/sandbox/zamboni/.git/avatar/ \<br />
       --title "addons.mozilla.org" \<br />
       --auto-skip-seconds 1 \<br />
       --seconds-per-day 1 \<br />
       --start-position .715 \<br />
       --max-file-lag 0.5 \<br />
       --max-files 5000 \<br />
       --camera-mode track \<br />
       -o -<br />
</code></p>
<p>Piped to:<br />
<code><br />
ffmpeg -y \<br />
       -r 60 \<br />
       -f image2pipe \<br />
       -vcodec ppm \<br />
       -i - \<br />
       -vcodec libtheora \<br />
       -b 10000K \<br />
       ~/out.ogv<br />
</code></p>
<p>That gave me a 180MB uncompressed ogv.  The uncompressed version looks far nicer, but that&#8217;s a lot of bandwidth for a random video so I cut it down with ffmpeg2thoerea (anyone know the switch to do this directly in the ffmpeg command?):<br />
<code><br />
ffmpeg2theora -v 4<br />
              ~/out.ogv<br />
              --optimize<br />
              --noaudio<br />
              -o amo-2011-development.ogv<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2011/05/15/amo-2011-development-visualized/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://people.mozilla.org/~clouserw/public/blog/amo-2011-development.ogv" length="82392684" type="video/ogg" />
		</item>
		<item>
		<title>getpersonas.com: where it&#8217;s from, where it&#8217;s going</title>
		<link>http://micropipes.com/blog/2011/04/12/getpersonas-com-where-its-from-where-its-going/</link>
		<comments>http://micropipes.com/blog/2011/04/12/getpersonas-com-where-its-from-where-its-going/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 17:15:07 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[personas]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=224</guid>
		<description><![CDATA[getpersonas.com was started as a labs project in 2008. The plan was to get a website up and running to show off what lightweight themes were and see if they got any traction. If the site became popular, we&#8217;d merge it in to AMO in six or ten months and everyone would go back to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.getpersonas.com/">getpersonas.com</a> was started as a labs project in 2008.  The plan was to get a website up and running to show off what lightweight themes were and see if they got any traction.  If the site became popular, we&#8217;d merge it in to <a href="https://addons.mozilla.org/">AMO</a> in six or ten months and everyone would go back to working on other things.  Ha.  </p>
<p>As is all too common, way leads on to way, and now here we are three years later.  getpersonas.com has become a juggernaut of 3000x200px free expression on the web.  There are over 1.25 million registered users on the site, 400,000 personas, and a half million hits a day.  The site was built with scaling in mind and, honestly, has needed relatively little attention.</p>
<p>On the other hand, the site lost its owners and maintainers last year.  <a href="http://www.dria.org/wordpress/">Deb</a> stepped up with some awesome volunteers and contractors to fix minor issues but there are no dedicated developers to keep the site fresh.  The web security bounty program late last year wasn&#8217;t kind to the old code, and any time devoted to the site turned in to trudging through old PHP code to solve overlooked problems from long ago.</p>
<p>We&#8217;ve decided that this is the year to finally replace the precarious cron job synchronizing the getpersonas.com and AMO databases for the past 18 months and finally migrate the site to AMO completely.  This is no small undertaking, but we&#8217;ve had a lot of time to think about it. <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I wrote a <a href="http://micropipes.com/greaterpercona/">migration plan</a> a few weeks ago as a general guide.  The searching and listing pages are already at parity with getpersonas.com.  The reviewer and author functionality will be added shortly &#8211; and if you read the bugs and look at the mockups you&#8217;ll see it&#8217;s <a href="http://people.mozilla.com/~chowse/drop/amo/personas/review/">greatly improved</a>.  This is a mutually beneficial migration; the personas will be able to leverage AMO features like statistics reporting and collections, and AMO will get a fresh look at reviewing user submitted content and an influx of creative designers.</p>
<p>I snuck in to a personas planning meeting last week and I saw a lot of fun stuff in the pipeline for personas.  I&#8217;m happy to say migrating them onto AMO will give everyone the server and developer resources to get that new stuff out the door.  This will get underway in Q3 of this year.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2011/04/12/getpersonas-com-where-its-from-where-its-going/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Welcome to the Landfill</title>
		<link>http://micropipes.com/blog/2011/03/29/welcome-to-the-landfill/</link>
		<comments>http://micropipes.com/blog/2011/03/29/welcome-to-the-landfill/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 21:26:31 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[L10n]]></category>
		<category><![CDATA[open web]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=196</guid>
		<description><![CDATA[Anyone who has tried to set up AMO knows it&#8217;s no walk in the park even with the respectable amount of documentation. There are two big stumbling blocks: the database is large and complex, and a portion of the site functionality is still in PHP. Django&#8217;s syncdb can make a database, but the relationships in [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who has tried to set up <abbr title="addons.mozilla.org">AMO</abbr> knows it&#8217;s no walk in the park even with the <a href="http://jbalogh.github.com/zamboni/topics/installation/">respectable amount of documentation</a>.  There are two big stumbling blocks:  the database is large and complex, and a portion of the site functionality is still in PHP.  Django&#8217;s <em>syncdb</em> can make a database, but the relationships in the data is what&#8217;s hard and trying to load fixtures from the test cases is an exercise in frustration since they may or may not all combine into a useful set of data.</p>
<p>With the launch of <a href="https://landfill.addons.allizom.org/">landfill.amo</a>[1] we bypass the entire headache.  The site started with a clean database and I uploaded an add-on to show it worked, but otherwise it&#8217;s empty.  It&#8217;s compact, fast, and simple to use.  The beauty of the site for volunteers and casual developers is that the database and the filesystem are <a href="https://landfill.addons.allizom.org/db/">available in their entirety to download</a>.  This means you can check out the code, fill in the configuration, import the landfill database and have the site 90% running.[2]</p>
<p>Perhaps a testament to the obscene number of open bugs for AMO right now, but this also solves a second <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=510430">long standing problem</a> where localizers couldn&#8217;t see the entire site.  On landfill, anyone can be an administrator, an editor, or any other permission level they&#8217;d like; and they&#8217;ll be able to see the entire site.</p>
<p>If you&#8217;ve been overwhelmed or frustrated trying to set up AMO in the past, now is a good time to give it another shot.  The landfill should just get better with age and use &#8211; if a few people register and add some data the available database dumps will get richer.</p>
<p>If there is a part of the site that isn&#8217;t working and you need it to be, let me know.  Keep in mind this is only the new Python code, so the few parts that are still on PHP (like the admin panel) won&#8217;t be available until they are ported.  Code is updated near-instantly on commit, localization changes are updated every 5 minutes.</p>
<p>[1] Forgive the fake certificate.  This is a sandbox for developers, y&#8217;all know what you&#8217;re doing. <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[2] Honestly, 90% is really all you need.  We do a lot of stuff for scalability, statistics, etc. and unless you&#8217;re actually working on that part of the site, you don&#8217;t need those elements running.  Of course, you&#8217;re more than welcome to turn them on, I&#8217;m just trying to make it easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2011/03/29/welcome-to-the-landfill/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>High level perspective on the switch from PHP to Python</title>
		<link>http://micropipes.com/blog/2011/03/27/high-level-perspective-on-the-switch-from-php-to-python/</link>
		<comments>http://micropipes.com/blog/2011/03/27/high-level-perspective-on-the-switch-from-php-to-python/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 22:39:03 +0000</pubDate>
		<dc:creator>Wil Clouser</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[AMO]]></category>
		<category><![CDATA[hindsight]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://micropipes.com/blog/?p=206</guid>
		<description><![CDATA[It may be fatuous to write this post before we&#8217;ve actually finished the transition from PHP to Python, but I started writing a different post and this is what came out. Sometimes that happens. In January of 2010 we started migrating addons.mozilla.org from CakePHP to Django. It was a controversial decision. Developers were ambivalent to [...]]]></description>
			<content:encoded><![CDATA[<p><em>It may be fatuous to write this post before we&#8217;ve actually finished the transition from PHP to Python, but I started writing a different post and this is what came out.  Sometimes that happens.</em></p>
<p>In January of 2010 we started migrating <a href="https://addons.mozilla.org">addons.mozilla.org</a> from CakePHP to Django.  It was a controversial decision.  Developers were ambivalent to excited, managers were opposed to neutral &#8211; a split anyone would expect.  When I <a href="http://micropipes.com/blog/2009/11/17/amo-development-changes-in-2010/">first talked about it</a> I expected to be able to turn off PHP by the end of the year.  It didn&#8217;t turn out quite like that.  </p>
<p>Fifteen months later we&#8217;re still transitioning and it&#8217;s still stressful.  The toughest part about a major migration like this is that there is only one team that is doing the migration, continuing to add the new features we need, and all the while maintaining the old site.  That&#8217;s a stressful environment for developers since the interactions between the languages can be complicated, it&#8217;s stressful for managers because features take longer to complete, and it&#8217;s stressful for users (and QA for that matter) because issues <em>will</em> arise which are hard to reproduce and complicated to explain.</p>
<p>In the midst of all the work of migration, the rest of the company is still working:  the security team is <a href="http://blog.mozilla.com/security/2010/12/14/adding-web-applications-to-the-security-bug-bounty-program/">announcing bounties on our site</a> which means we need to be vigilant about fixing issues, project management continues to come up with features to be added, the site perseveres in its never-ending quest for a new <em>look and feel</em>, and <a href="http://blog.mozilla.com/addons/2011/03/22/firefox-4-add-ons/">Firefox 4 is using AMO like never before</a> meaning approaching 10,000 hits per second is a regular day.  All of that is specific to the add-ons site, but consider your own company if you&#8217;re thinking of going down the same road &#8211; what is coming up for your site that will throw a wrench in the works?</p>
<p>The meat and potatoes of it really comes down to:  Given the hindsight of today, would the migration be a good idea?  There isn&#8217;t a right answer for every site, but for AMO we did the right thing[1].  As of today the majority of pages that matter are on Python &#8211; there are some admin tools, and some cron jobs, and the occasional semi-obsolete public page that is on PHP, but for the most part, we&#8217;re looking really good (<a href="https://spreadsheets.google.com/ccc?key=0AgX-nlaDaTaBdGhVd3ZlU1ZySWRiNmZ4YmgxTkV6ZlE&#038;hl=en">less hand waving, more real data</a>).  My new (overly optimistic?) plan is to have PHP off by the end of <em>this</em> year.  We&#8217;ll see.</p>
<p>To give you an idea of man-hours, we&#8217;ve had anywhere from 3 to 6 superhero developers working on the site over the past 15 months, and it&#8217;s looking like the whole thing will take around 24 months.  That&#8217;s a big chunk of time for a site that needs to grow and evolve as quickly as popular sites do these days.</p>
<p>So, overall, I think the lesson is: any reasonably sized site is going to have rabbit holes in it.  At first glance AMO might look like it&#8217;s got a dozen &#8220;main&#8221; pages, with a couple dozen more supporting pages (and throw in a few more for the admin CRUD).  Have a look at that spreadsheet I linked above and you&#8217;ll see that&#8217;s not even remotely the case.  The spreadsheet even ignores sub-pages in a few places and doesn&#8217;t include any new features added in the past year.  If you&#8217;re considering a migration, think it through well.  Make a spreadsheet of every URL, identify the complicated areas, and make sure everyone is clear on the timeline and what it means for new features.  People will absolutely try to scope creep your migration &#8211; make it clear if a section of the site is migrating as-is or can be migrated and redesigned at the same time.  Redesigns add complexity for the developers but can earn you some good will with the users and managers and if you&#8217;re in this boat you can use all the good will you can get.  </p>
<p>May you have the best of luck with your decisions. <img src='http://micropipes.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[1] I&#8217;ll write another post about pros/cons of the actual frameworks and platforms.  Let&#8217;s just assume we&#8217;re happy with the technical side of the switch for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://micropipes.com/blog/2011/03/27/high-level-perspective-on-the-switch-from-php-to-python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

