<?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>Justin Dolske's blog &#187; Mozilla Labs</title>
	<atom:link href="http://blog.mozilla.com/dolske/category/mozilla-labs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/dolske</link>
	<description>The odd parity bit</description>
	<lastBuildDate>Wed, 14 Oct 2009 01:29:50 +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>Delicious Personas</title>
		<link>http://blog.mozilla.com/dolske/2009/02/09/delicious-personas/</link>
		<comments>http://blog.mozilla.com/dolske/2009/02/09/delicious-personas/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:28:32 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/?p=101</guid>
		<description><![CDATA[Personas, for those not familiar with it, is a Firefox add-on from Mozilla Labs that allows you to easily reskin the browser. Sort of like a theme, but different.
This weekend I decided to make a bacon persona. It was really easy to do; I just made a couple of JPEGs and submitted them to the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.mozilla.com/2007/12/personas-for-firefox/">Personas</a>, for those not familiar with it, is a Firefox add-on from Mozilla Labs that allows you to easily reskin the browser. Sort of like a theme, but different.</p>
<p>This weekend I decided to make a bacon persona. It was really easy to do; I just made a couple of JPEGs and submitted them to the getpersonas.com site. Result:</p>
<p><img src="http://people.mozilla.com/~dolske/blogimg/baconscreen-win.png"><br />
<img src="http://people.mozilla.com/~dolske/blogimg/baconscreen-osx.png"><br />
<img src="http://people.mozilla.com/~dolske/blogimg/baconscreen-lin.png"></p>
<p>If you want to try it out, just:</p>
<ol>
<li>Install Personas from <a href="http://www.getpersonas.com">getpersonas.com</a>.</li>
<li>Select &#8220;Bacon&#8221; from the <a href="http://www.getpersonas.com/personas/store/Other/all.html">Personas directory</a>. It&#8217;s under the &#8220;Other&#8221; category. (At the moment, it&#8217;s also at the top of the &#8220;<a href="http://www.getpersonas.com/store/Other/recent.html">Recent</a>&#8221; subsection.</li>
</ol>
<p>Mmm, bacon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2009/02/09/delicious-personas/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wheee!</title>
		<link>http://blog.mozilla.com/dolske/2007/08/15/wheee/</link>
		<comments>http://blog.mozilla.com/dolske/2007/08/15/wheee/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 01:07:56 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/2007/08/15/wheee/</guid>
		<description><![CDATA[On Monday I posted a Mozilla Labs blog entry discussing the APNG Edit extension I was releasing.
Just for fun, I thought I&#8217;d convert my favorite Firefox Flicks video to the APNG format&#8230;.

The compression algorithms in APNG and AGIF are not really suited for straight conversions from video; doing so tends to result in large files [...]]]></description>
			<content:encoded><![CDATA[<p>On Monday I posted a Mozilla Labs <a href="http://labs.mozilla.com/2007/08/better-animations-in-firefox-3/">blog entry</a> discussing the <a href="https://addons.mozilla.org/en-US/firefox/addon/5519">APNG Edit</a> extension I was releasing.</p>
<p>Just for fun, I thought I&#8217;d convert my favorite Firefox Flicks <a href="http://www.firefoxflicks.com/flick/index.php?id=19542&amp;c=false">video</a> to the APNG format&#8230;.</p>
<p><img src="http://people.mozilla.com/~dolske/apng/whee86x75.png"></p>
<p>The compression algorithms in APNG and AGIF are not really suited for straight conversions from video; doing so tends to result in large files (this one has about 340 frames at 86&#215;75, weighing in at 990KB). Similarly, some images are better suited to JPEG or SVG&#8230; One just needs to use the right tool for the job. Hmm, <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=382267">&lt;video&gt; tag</a>, anyone? :-)</p>
<p>I also made a full-resolution (but still cropped) 230&#215;200 version, although it&#8217;s a wee bit large (pun intended). So I&#8217;ll just <a href="http://people.mozilla.com/~dolske/apng/whee.png">link to it</a>.</p>
<p>The conversion itself was a fairly simple process&#8230; I basically used &#8220;mplayer -vo png wheee.mov&#8221; to convert the QuickTime video to a pile of PNG images, dragged them into my APNG Edit window, and let it chew through them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2007/08/15/wheee/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chromatabs 2</title>
		<link>http://blog.mozilla.com/dolske/2007/04/03/chromatabs-2/</link>
		<comments>http://blog.mozilla.com/dolske/2007/04/03/chromatabs-2/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 22:34:17 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/2007/04/03/chromatabs-2/</guid>
		<description><![CDATA[I released an update to Chromatabs today&#8230; [Edit: It's no longer in the AMO Sandbox.]
This version adds the ability to color tabs based on the site&#8217;s favicon. (This is off by default; you can enable it in the extension&#8217;s preferences.]
Here&#8217;s what it looks like with a few select sites:

It&#8217;s just averaging the pixels in the [...]]]></description>
			<content:encoded><![CDATA[<p>I released an update to <a href="https://addons.mozilla.org/en-US/firefox/addon/3810">Chromatabs</a> today&#8230; [Edit: It's no longer in the AMO Sandbox.]</p>
<p>This version adds the ability to color tabs based on the site&#8217;s favicon. (This is <strong>off by default</strong>; you can enable it in the extension&#8217;s preferences.]</p>
<p>Here&#8217;s what it looks like with a few select sites:</p>
<p><img src="http://people.mozilla.com/~dolske/blogimg/chromatabs2.png"></p>
<p>It&#8217;s just averaging the pixels in the favicon, which is why Flickr&#8217;s color is purple (a blend of the pinkish-red and blue in the icon). It would probably be better to build up a histogram, and then select the most prominent color&#8230; But averaging works fairly well and is easy. :-) The code is smart enough to ignore pixels that are almost white or black, which would otherwise pollute the average color. I&#8217;ve noticed that a surprising number of sites have black-and-white site icons (eg BBC), so Chromatabs will fall-back to the old method of picking a color for the site in such cases. [Grayscale confuses it sometimes, though.]</p>
<p>I&#8217;ve found that using the favicon to determine colors for tabs seems more useful, because the color actually has some relevance to the site. Of course, for sites without an favicon it doesn&#8217;t help at all.</p>
<p>&nbsp;</p>
<p>Oh, and one more thing (as Steve Jobs is wont to say)&#8230;</p>
<p>I&#8217;ve been thinking about some ideas to improve the visibility of the foreground tab, which is sometimes hard to pick out (especially with colored tabs, although I think even the default theme is too non-distinct). Here&#8217;s a mockup of what I&#8217;m currently thinking about &#8212; subtle gradients on either side, vaguely as if the neighboring tabs are curving into darkness.</p>
<p><img src="http://people.mozilla.com/~dolske/blogimg/chromatabs2-mockup.png"></p>
<p>(*cough* I just noticed I styled the wrong tab in the mockup, as the URL bar clearly says &#8220;www.blogspot.com&#8221; and not &#8220;www.flickr.com.&#8221; Oh well, no one is prefect! [sic :)])</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2007/04/03/chromatabs-2/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>A bit of bling</title>
		<link>http://blog.mozilla.com/dolske/2006/11/16/a-bit-of-bling/</link>
		<comments>http://blog.mozilla.com/dolske/2006/11/16/a-bit-of-bling/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 23:19:42 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/2006/11/16/a-bit-of-bling/</guid>
		<description><![CDATA[[Did I just use the word "bling"? I'm so, so, sorry.]
The Mozilla offices have been humming with activity this week, with the influx of folks arriving for the Firefox Summit. We&#8217;ve been having some fascinating discussions on a variety of topics and ideas for the future. On that note, a few weeks ago I wrote [...]]]></description>
			<content:encoded><![CDATA[<p>[Did I just use the word "bling"? I'm so, so, sorry.]</p>
<p>The Mozilla offices have been humming with activity this week, with the influx of folks arriving for the <a href="http://wiki.mozilla.org/FirefoxSummit/2006/Schedule">Firefox Summit</a>. We&#8217;ve been having some fascinating discussions on a variety of topics and ideas for the future. On that note, a few weeks ago I wrote up some thoughts I had for an evolution of Firefox 2&#8217;s <a href="http://www.mozilla.com/en-US/firefox/features.html#livetitles">Live Titles</a> (aka &#8220;microsummaries&#8221;), in the form of adding graphics to a traditionally text-based feature. [Wonder Twin powers activate.]</p>
<p>Here&#8217;s a mockup of what <a href="http://wiki.mozilla.org/GraphicalMicrosummaries">Graphical Microsummaries</a> might look like:</p>
<p align="center"><img src="http://people.mozilla.com/~dolske/blogimg/msumm-mockup.png" alt="UI mockup of how this feature might look" height="417" width="576" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2006/11/16/a-bit-of-bling/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Chromatabs followup</title>
		<link>http://blog.mozilla.com/dolske/2006/11/14/chromatabs-followup/</link>
		<comments>http://blog.mozilla.com/dolske/2006/11/14/chromatabs-followup/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 07:06:26 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/2006/11/14/chromatabs-followup/</guid>
		<description><![CDATA[I&#8217;ve received quite a few useful comments from last week&#8217;s posting of Chromatabs, and I thought it might be nice to summarize some of it. Personally, I&#8217;m satisfied &#8212; though not thrilled &#8212; with the extension. The idea has merit, but the implementation exposed some issues&#8230; Which is exactly what it was supposed to do, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve received quite a few useful comments from last week&#8217;s posting of Chromatabs, and I thought it might be nice to summarize some of it. Personally, I&#8217;m satisfied &#8212; though not thrilled &#8212; with the extension. The idea has merit, but the implementation exposed some issues&#8230; Which is exactly what it was supposed to do, as a labs.mozilla.org prototype! Here&#8217;s some of the common comments:</p>
<p><span id="more-5"></span><br />
<strong>What&#8217;s this thing do?</strong></p>
<p>This was a little surprising to hear at first, but it makes sense. Even though we&#8217;re just coloring tabs, unless you already know what&#8217;s going on it probably seems like the tabs are being randomly colored. This would be a significant issue if this was a default feature that shipped with Firefox. [As an extension, probably not so much.]</p>
<p><strong>It&#8217;s hard to determine which tab is active.</strong></p>
<p>I think this originates with the default theme itself, in that it can be hard to find the active tab even when they&#8217;re not colored. However, colorizing the tabs clearly makes things worse. You have to pick out somewhat-subtle brightness differences between different colors, and the myriad of colors is visually distracting.</p>
<p>I had been thinking that simply changing the tab&#8217;s luminance would be enough to make it look active, but I don&#8217;t think that&#8217;s enough. Some other cue needs to be provided. Maybe add a border, or design a stronger 3D look? The difference in luminance could be increased, but then tabs would seem to change color when they become active.</p>
<p><strong>The colors of site X and site Y are too similar.</strong></p>
<p>The extension generates hundreds of different colors, but the reality is that anything more than, say, a couple dozen is going to be too subtle. You can usually see the difference with close inspection, but at a glance the hues can look the same.</p>
<p>Is there a good solution to this? I&#8217;m not sure, but trying to give millions of web sites unique and differentiable colors doesn&#8217;t seem like the way to do it&#8230; A tweak that might help is to only color a tab when a site is open in at least one other tab. But I think this would probably end up being confusing to some users, and it still doesn&#8217;t address the problem of two sites having nearly identical colors. [Well, it might help a little in that you wouldn't see the problem as often -- on average -- until you open 2 tabs for each site.]</p>
<p><strong>Future directions&#8230;</strong></p>
<p>Instead, for future work, a cleaner problem to tackle might be to give groups of tabs (eg, those showing same site) a unique color. The color wouldn&#8217;t be persistent, so the same group might get a different color the next time you open them. The point is that you could always pick a unique new color up until you have a few dozen tabs open. And even then, you could still distinguish groups spatially (&#8221;the red group on the left is Yahoo tabs, and the red group waaaaaaaaay on the right is Google tabs&#8221;).</p>
<p>I think this is actually closer to the original problem I wanted to solve, which was having a bunch of Bugzilla and LXR tabs open&#8230; I want to tell the difference between the two, but don&#8217;t really care what the exact color is.</p>
<p>This would also be an opportunity to use a color palette that&#8217;s more esthetically pleasing than random colors.</p>
<p>Other suggestions for Chromatabs included making it work with Tab Mix Plus, choosing the color from the favicon, and coloring the menu entries for bookmarks, history, and the tab list. Using <a href="http://www.triplecode.com/munsell/">Munsell palettes</a> also seems like a great idea.<br />
<strong>Other extensions</strong></p>
<p>We mentioned the first two of these in the original labs.mozilla.org post, and readers brought the last two to our attention:</p>
<ul>
<li><a href="https://addons.mozilla.org/firefox/1368/">Colorful Tabs</a></li>
<li><a href="https://addons.mozilla.org/firefox/3542/">Aging Tabs</a></li>
<li><a href="https://addons.mozilla.org/firefox/1523">PageStyle2Tab</a></li>
<li><a href="https://addons.mozilla.org/firefox/437/">HashColoredTabs</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2006/11/14/chromatabs-followup/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>You are in a maze of twisty little tabs, all alike.</title>
		<link>http://blog.mozilla.com/dolske/2006/11/08/chromatabs/</link>
		<comments>http://blog.mozilla.com/dolske/2006/11/08/chromatabs/#comments</comments>
		<pubDate>Wed, 08 Nov 2006 22:53:45 +0000</pubDate>
		<dc:creator>Justin Dolske</dc:creator>
				<category><![CDATA[Mozilla Labs]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/dolske/2006/11/08/chromatabs/</guid>
		<description><![CDATA[I had this idea for tweaking tabs floating around my head for a while, and last week I finally decided to implement it. The result is Chromatabs, and the UI aspects of it are discussed on today&#8217;s labs.mozilla.org posting.
I thought I&#8217;d write a bit more here about how it&#8217;s implemented, because it&#8217;s doing a few [...]]]></description>
			<content:encoded><![CDATA[<p>I had this idea for tweaking tabs floating around my head for a while, and last week I finally decided to implement it. The result is <a href="https://addons.mozilla.org/firefox/3810/">Chromatabs</a>, and the UI aspects of it are discussed on <a href="http://labs.mozilla.com/2006/11/chromatabs/">today&#8217;s labs.mozilla.org posting</a>.</p>
<p>I thought I&#8217;d write a bit more here about how it&#8217;s implemented, because it&#8217;s doing a few interesting things under the hood&#8230;<br />
<span id="more-4"></span><br />
My first proof-of-concept at colorizing tabs was to just set a background color on the tab, and adjust the tab&#8217;s opacity to allow the color to show though. This early result was, well, crap:</p>
<p><img src="http://people.mozilla.com/~dolske/blogimg/early-tab.png" alt="Screenshot of an early attempt at colorizing tabs" height="50" width="270" /><br />
The positioning of the elements that comprise the tab&#8217;s internal structure caused some white lines, the opacity affected the text and favicon (they got colorized too), and the background color was visible around the tab&#8217;s curved borders. I could probably have worked around the first few issues, but the tab&#8217;s curves were an interesting problem&#8230; In Firefox 2, the default theme uses chrome images to make the tabs look nice and stylish (curved ends, and a bit of a shiny vertical gradient). You can simulate coloring an image by lowering its opacity and allowing a background color to bleed-though &#8212; but if the image already has transparent regions the background color comes through at full-strength.</p>
<p>So, to make a colored tab look nice that approach won&#8217;t work. Drat. It would be really easy to colorize a tab with Photoshop, but you can&#8217;t do that in the browser. <em>&#8230;or can you?</em> The thought struck me that the <a href="http://developer.mozilla.org/en/docs/Canvas_tutorial">&lt;canvas&gt;</a> tag, which Firefox supports, gives you a pixel region upon which you can draw things, and it has a compositing mode that allows you to draw only on regions that already have content (ie, that are not transparent). So, that&#8217;s what Chromatabs is doing. It dynamically renders new colorized chrome images for each tab. First, it uses the tab&#8217;s original chrome image to produce solid-color version via compositing, and then blends it back into the original chrome image by overdrawing with  reduced opacity (ie, partial transparency). And it&#8217;s all driven by Javascript!</p>
<p><img src="http://people.mozilla.com/~dolske/blogimg/chromatabs1.jpg" height="58" width="700" /></p>
<p>This might also be an interesting technique for themes to use. Currently, if a theme wants to have versions with different colors, the author must create each as <a href="https://addons.mozilla.org/search.php?q=shift&amp;type=T&amp;app=firefox">separate themes</a>. If the theme could colorize itself at runtime, you&#8217;d just need one version of the theme. Plus, the user would be able to pick the exact shade of color they want. Everyone wins.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/dolske/2006/11/08/chromatabs/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
