<?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/"
	xmlns:cc="http://creativecommons.org/ns#" >

<channel>
	<title>Shiny Pebbles...</title>
	<atom:link href="http://richard.milewski.org/feed" rel="self" type="application/rss+xml" />
	<link>http://richard.milewski.org</link>
	<description>A Compendium of Distractions</description>
	<lastBuildDate>Wed, 02 May 2012 20:28:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<cc:license >Attribution-ShareAlike CC BY-SA</cc:license><dc:rights  >Attribution-ShareAlike CC BY-SA</dc:rights>		<item>
		<title>Resizable 4-way Rocker Widget</title>
		<link>http://richard.milewski.org/archives/1351</link>
		<comments>http://richard.milewski.org/archives/1351#comments</comments>
		<pubDate>Sun, 25 Sep 2011 21:14:39 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Open Source Projects]]></category>
		<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1351</guid>
		<description><![CDATA[ window.onload = document.write(" "); window.onload = document.write("See the source on jsFiddle"); <p>It has always seemed odd to me that the 4-way rocker switch that&#8217;s at the top of almost every TV and DVR remote and game controller has not made its way into the collection of web input widgets. Even with all the new [...]]]></description>
			<content:encoded><![CDATA[<div class="floatRight"><script type='text/javascript'>  
window.onload = document.write("<iframe width='”300”' height='”400px″' marginwidth='10px' marginheight='10px' scrolling='auto' frameborder='0'  src='http://netfools.com/rocker/smallDemo.html' ></iframe> "); 
 window.onload = document.write("<br /><a href='http://jsfiddle.net/RAMilewski/njUe6/'><center>See the source on jsFiddle</center></a><br/>"); 
</script></div>
<p>It has always seemed odd to me that the 4-way rocker switch that&#8217;s at the top of almost every TV and DVR remote and game controller has not made its way into the collection of web input widgets.  Even with all the new whizzy input controls in HTML5, there&#8217;s not an analogous 2-axis control. </p>
<p>I took a crack at creating one and discovered that I couldn&#8217;t do it with pure CSS.  While it&#8217;s possible create things that look like triangles on the screen, in (cyber) reality they are rectangles with transparent bits.  There&#8217;s no apparent way to create triangular areas for hover detection.</p>
<p>But using mouse position detection and a bit of jQuery,  it&#8217;s not too hard make something work.   The code is up on <a href="http://jsfiddle.net/RAMilewski/njUe6/" title="Resizable 4-way Rocker" target="_blank">jsFiddle</a>.  The widget is re-sizable, with the scale of all the various bits and pieces being controlled by the font-size property in the rockerControl div.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Resizable+4-way+Rocker+Widget%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1351" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1351&amp;headline=Resizable+4-way+Rocker+Widget" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1351&amp;title=Resizable+4-way+Rocker+Widget" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1351&amp;title=Resizable+4-way+Rocker+Widget" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1351&amp;t=Resizable+4-way+Rocker+Widget" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1351&amp;t=Resizable+4-way+Rocker+Widget" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Resizable+4-way+Rocker+Widget&amp;link=http://richard.milewski.org/archives/1351" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1351&amp;title=Resizable+4-way+Rocker+Widget" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1351&amp;title=Resizable+4-way+Rocker+Widget" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1351/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Simple HTML Slides &#8211; Not Ready for Prime Time?</title>
		<link>http://richard.milewski.org/archives/1173</link>
		<comments>http://richard.milewski.org/archives/1173#comments</comments>
		<pubDate>Wed, 21 Sep 2011 22:01:27 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[PlanetMozilla]]></category>
		<category><![CDATA[Simple HTML Slides]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1173</guid>
		<description><![CDATA[<p>Christian Heilmann, one of the most persuasive of Mozilla&#8217;s evangelists for HTML5 wrote a blog post titled &#8220;Why I don&#8217;t write my slides in HTML.&#8221; It&#8217;s a good read. In it he provided a list of places where he sees HTML slide tools falling short. These days, Christian spends much of his life giving presentations [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wait-till-i.com/2010/11/02/why-i-dont-write-my-slides-in-html/"><img class="alignright size-medium wp-image-1174" title="ChrisHeilmann" src="http://richard.milewski.org/blog/wp-content/uploads/2011/07/ChrisHeilmann-207x300.png" alt="" width="207" height="300" /></a>Christian Heilmann, one of the most persuasive of Mozilla&#8217;s evangelists for HTML5 wrote a blog post titled <a href="http://www.wait-till-i.com/2010/11/02/why-i-dont-write-my-slides-in-html/">&#8220;Why I don&#8217;t write my slides in HTML.&#8221;</a> It&#8217;s a good read. In it he provided a list of places where he sees HTML slide tools falling short. These days, Christian spends much of his life giving presentations on HTML so slide tool developers who ignore those points do so at their peril.</p>
<p>I&#8217;ve remixed Christian&#8217;s list and used it as a <a title="Scorecard for Simple HTML Slides" href="http://richard.milewski.org/shs/slide-scorecard">scorecard and feature checklist</a> to guide further development of Simple HTML Slides. If it&#8217;s possible to satisfy all (or at least most) of those requirements then I can be confident that Simple HTML Slides are actually useful in the real world of hard core presenters.</p>
<p>Check out the <a title="Simple HTML Slides" href="http://richard.milewski.org/shs">Simple HTML Slides Project Page</a> to see a working presentation that has a slide with video on it, all embedded in a WordPress post.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1173" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1173&amp;headline=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1173&amp;title=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1173&amp;title=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1173&amp;t=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1173&amp;t=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F&amp;link=http://richard.milewski.org/archives/1173" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1173&amp;title=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1173&amp;title=Simple+HTML+Slides+%E2%80%93+Not+Ready+for+Prime+Time%3F" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1173/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ink a Teacher!</title>
		<link>http://richard.milewski.org/archives/1316</link>
		<comments>http://richard.milewski.org/archives/1316#comments</comments>
		<pubDate>Wed, 14 Sep 2011 21:22:43 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[K-12 EdTech]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[MozillaEd]]></category>
		<category><![CDATA[EdTech]]></category>
		<category><![CDATA[K-12]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1316</guid>
		<description><![CDATA[<p>&#8220;An apple for the teacher&#8221; is an old tradition in America that has fallen by the wayside. But doing a little something to show your children&#8217;s teachers that you appreciate their effort and understand the challenges they face is still worth the effort.</p> <p>Rather than sending an apple for the teacher, I&#8217;d like to suggest [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://richard.milewski.org/blog/wp-content/uploads/2011/09/school_bag_s.gif" alt="" title="" width="110" height="113" class="alignright size-full wp-image-1318" />&#8220;An apple for the teacher&#8221; is an old tradition in America that has fallen by the wayside.  But doing a little something to show your children&#8217;s teachers that you appreciate their effort and understand the challenges they face is still worth the effort.</p>
<p>Rather than sending an apple for the teacher, I&#8217;d like to suggest you &#8220;Ink the Teacher&#8221;. No, I&#8217;m not suggesting a gift certificate to the local tattoo parlor.  I&#8217;m talking about ink for the classroom printer. Teachers in the US typically spend hundreds of dollars each year out of their own pockets to get supplies that dysfunctional school systems don&#8217;t provide.  We could all help just a little.</p>
<p>When you head to your child&#8217;s classroom for back-to-school night this year, do a little sleuthing and find the model number of the classroom printer.  Contributing an inkjet cartridge and perhaps even a ream of printer paper will give you superhero status and help ensure your child has a productive school year less constrained by tight school budgets.</p>
<p>&#8230;and if you tweet the idea, maybe you&#8217;ll help more than just your child&#8217;s class.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Ink+a+Teacher%21%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1316" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1316&amp;headline=Ink+a+Teacher%21" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1316&amp;title=Ink+a+Teacher%21" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1316&amp;title=Ink+a+Teacher%21" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1316&amp;t=Ink+a+Teacher%21" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1316&amp;t=Ink+a+Teacher%21" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Ink+a+Teacher%21&amp;link=http://richard.milewski.org/archives/1316" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1316&amp;title=Ink+a+Teacher%21" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1316&amp;title=Ink+a+Teacher%21" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1316/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn PDF Slide Decks into HTML5 Web Presentations in Under 5 Minutes</title>
		<link>http://richard.milewski.org/archives/1168</link>
		<comments>http://richard.milewski.org/archives/1168#comments</comments>
		<pubDate>Tue, 26 Jul 2011 16:14:29 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[PlanetMozilla]]></category>
		<category><![CDATA[Simple HTML Slides]]></category>
		<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[HTML5 Slides]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1168</guid>
		<description><![CDATA[<p>In an earlier post, I introduced Simple HTML Slides and an anonymous sync server that lets your audience follow along via the web. It uses some deep jQuery magic from Janne Aukia&#8217;s wonderful zoomooz.js.</p> <p>There&#8217;s now a new feature that will let you take a PDF of a slide deck and quickly and easily turn [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://slides.netfools.com/downloads/PDFslides.html" target="_blank"><img src="http://richard.milewski.org/blog/wp-content/uploads/2011/07/it_girl-300x162.gif" alt="" title="it_girl" width="300" height="162" class="alignright size-medium wp-image-1150" /></a>In an earlier post, I introduced <a href="http://slides.netfools.com/">Simple HTML Slides</a> and an anonymous sync server that lets your audience follow along via the web. It uses some deep jQuery magic from <a href="http://janne.aukia.com/zoomooz/">Janne Aukia&#8217;s wonderful zoomooz.js</a>.</p>
<p>There&#8217;s now a new feature that will let you take a PDF of a slide deck and quickly and easily turn it into an on-line presentation that syncs just like the earlier HTML slides.</p>
<p>On a Mac the process is amazingly simple. I&#8217;ve been able to put a 60-slide presentation on-line in under three minutes!  Just browse to the <a href="http://slides.netfools.com/downloads/PDFslides.html">PDF Slides</a> page and follow the easy instructions there.</p>
<p>I don&#8217;t know of a workflow for Windows that is as simple as what&#8217;s on that page.  It should be possible to cobble together a PhotoShop action but I&#8217;d rather find a solution that doesn&#8217;t require a $600 software package.  If you know a quick, simple way to make a directory of web images from a PDF (preferably with free &#038; open source software), please post a comment.   </p>
<p><strong>UPDATE:</strong> This post, and the PDF support feature of Simple HTML Slides have caused a lot of confusion.  Many people see this and come to the erroneous conclusion that Simple HTML Slides aren&#8217;t actually done in HTML and the only way to make a presentation is to pour a PDF into Simple HTML Slides.  That isn&#8217;t true.  Supporting PDFs of other presentation formats is just an added feature of Simple HTML Slides. The real power of Simple HTML Slides shows when you write your slides in HTML.  See the <a href="http://richard.milewski.org/shs" title="Simple HTML Slides">project page</a> for more details.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1168" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1168&amp;headline=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1168&amp;title=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1168&amp;title=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1168&amp;t=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1168&amp;t=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes&amp;link=http://richard.milewski.org/archives/1168" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1168&amp;title=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1168&amp;title=Turn+PDF+Slide+Decks+into+HTML5+Web+Presentations+in+Under+5+Minutes" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1168/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Crowdsourced Help for Ladybugs</title>
		<link>http://richard.milewski.org/archives/1136</link>
		<comments>http://richard.milewski.org/archives/1136#comments</comments>
		<pubDate>Wed, 13 Jul 2011 21:30:39 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1136</guid>
		<description><![CDATA[<p>Ladybugs are some of our best friends in the insect world. They are voracious predators of aphids and other plant-damaging insects, but two of the major species of Ladybugs in North America appear to be in decline. The Lost Ladybug project at Cornell University is conducting a study to learn more, and you can help. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://richard.milewski.org/blog/wp-content/uploads/2011/07/ladybug.gif" alt="" title="ladybug" width="300" height="195" class="alignright size-full wp-image-1137" />Ladybugs are some of our best friends in the insect world.  They are voracious predators of aphids and other plant-damaging insects, but two of the major species of Ladybugs in North America appear to be in decline.  The Lost Ladybug project at Cornell University is conducting a study to learn more, and you can help. </p>
<p>To be able to help the nine spotted ladybug and other ladybug species they need to have detailed information on which species are still out there and how many individual insects are around. Entomologists at Cornell can identify the different species but there are too few of them to sample in enough places to find the really rare ones. They need us to be their legs, hands and eyes.  This is a great summer science project for both kids and adults! You can learn, have fun and help save these important critters. It&#8217;s also a great excuse to get away from your keyboard and spend a day outdoors.</p>
<p>If you find a ladybug in your garden or while on a hike, snap a picture and make a note of the time and location.  Then visit <a href="http://www.lostladybug.org/participate.php">The Lost Ladybug Project&#8217;s web page</a> and upload the photo. You&#8217;ll help the team at Cornell learn more about where the different species live, and help our spotted friends as well.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Crowdsourced+Help+for+Ladybugs%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1136" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1136&amp;headline=Crowdsourced+Help+for+Ladybugs" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1136&amp;title=Crowdsourced+Help+for+Ladybugs" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1136&amp;title=Crowdsourced+Help+for+Ladybugs" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1136&amp;t=Crowdsourced+Help+for+Ladybugs" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1136&amp;t=Crowdsourced+Help+for+Ladybugs" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Crowdsourced+Help+for+Ladybugs&amp;link=http://richard.milewski.org/archives/1136" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1136&amp;title=Crowdsourced+Help+for+Ladybugs" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1136&amp;title=Crowdsourced+Help+for+Ladybugs" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1136/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mozilla&#8217;s Robots</title>
		<link>http://richard.milewski.org/archives/1117</link>
		<comments>http://richard.milewski.org/archives/1117#comments</comments>
		<pubDate>Tue, 03 May 2011 14:33:46 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1117</guid>
		<description><![CDATA[<p></p> <p>I recently had a chance to interview Mozilla&#8217;s new Director of Robotics. It looks like there are some big changes coming in the way humans and robots interact at Mozilla. See the video for all the details.</p> <p> </p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://youtu.be/6y9CgNKrmZE"><img src="http://richard.milewski.org/blog/wp-content/uploads/2011/05/Screen-shot-2011-05-02-at-2.06.51-PM-300x168.png" alt="" title="Watch the Interview on YouTube." width="300" height="168" class="alignright size-medium wp-image-1118" /></a></p>
<p>I recently had a chance to interview Mozilla&#8217;s new Director of Robotics.  It looks like there are some big changes coming in the way humans and robots interact at Mozilla.  See the video for all the details.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Mozilla%E2%80%99s+Robots%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1117" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1117&amp;headline=Mozilla%E2%80%99s+Robots" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1117&amp;title=Mozilla%E2%80%99s+Robots" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1117&amp;title=Mozilla%E2%80%99s+Robots" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1117&amp;t=Mozilla%E2%80%99s+Robots" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1117&amp;t=Mozilla%E2%80%99s+Robots" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Mozilla%E2%80%99s+Robots&amp;link=http://richard.milewski.org/archives/1117" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1117&amp;title=Mozilla%E2%80%99s+Robots" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1117&amp;title=Mozilla%E2%80%99s+Robots" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1117/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web App Strategy Marginally Flawed</title>
		<link>http://richard.milewski.org/archives/1059</link>
		<comments>http://richard.milewski.org/archives/1059#comments</comments>
		<pubDate>Mon, 11 Apr 2011 16:33:19 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Source Projects]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1059</guid>
		<description><![CDATA[A Sad Tale In Which We Discover That The Bleeding Edge Is ¾ Of An Inch Wide <p>There is a lot of attention being payed to web apps these days. Web apps are applications written using the same technologies used to create web sites, HTML, CSS and JavasScript. Web apps offer the best opportunity for [...]]]></description>
			<content:encoded><![CDATA[<h3>A Sad Tale In Which We Discover That The Bleeding Edge Is ¾ Of An Inch Wide</h3>
<p>There is a lot of attention being payed to web apps these days.  Web apps are applications written using the same technologies used to create web sites, HTML, CSS and JavasScript. Web apps offer the best opportunity for cross-platform application development for mobile devices, and there is now burgeoning interest in web apps for desktop platforms as well.  Firefox 4, with it&#8217;s support of HTML5, much of CSS3 and a wicked-fast  JavaScript engine, provides a better environment than ever for both developing and using web apps.</p>
<p>So&#8230; when a non-technical friend asked for help with a project, I decided to take a crack at solving the problem with a web app.  Now keep in mind that I&#8217;m not a full-time code-cutter, so I may be missing something, but what looked like a very simple task turned out to be surprisingly difficult.</p>
<p>The assignment was to print some temporary business cards on pre-scored forms from the local office supply store.  Because I&#8217;m a Mac user and the MS-Word templates from the form vendors don&#8217;t work on my preferred word processor, this is a problem I usually solve with Photoshop.   But I wanted a cross-platform solution my friend could take home and use later, and recommending a $600 photo editing package for this task is just plain silly. So a web app <em>seemed</em> to make perfect sense.  Using both new HTML5 features in Firefox 4 and older features like the <a href="https://developer.mozilla.org/en/HTML/Global_attributes">global attribute contentEditable</a> that have now become standardized, it was easy to cobble together a nifty little <a href="http://netfools.com/bugzamples/cardmaker/">web page</a> that would let the user edit a card in a wysiwyg editor and then produce a page full of the new cards at the click of a button.</p>
<h3>Failing At The Margins</h3>
<p>The problem came when I tried to print the cards.  The forms from the office supply store require printing with a ½ inch margin at the top.  But on MacOS, the Firefox UI does not provide <strong><em>any</em></strong> access to margins in the page-setup dialog.  Regardless of what you do, Firefox prints ¾ inch margins all around, pushing part of your output to the next page.  This means that aligning the card content with the pre-scored forms is impossible.  (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=648657">bug#648657</a>).</p>
<p>Digging into <em>about:config</em> shows some margin prefs that are set to 0.5. Presumably those are inches, although there is some <a href="http://preferential.mozdev.org/preferences.html">very old documentation</a> that says it&#8217;s the number of half-inch increments. But in any event, neither match the ¾ inch margins that appeared in the printed output.  Those issues aside, non-technical users shouldn&#8217;t be messing with <em>about:config</em>, and to change those prefs from code we&#8217;d need to write a browser extension instead of a web app.  If we change all four <strong>print.print_margin_xxxxx</strong> prefs to zero, then it&#8217;s possible get the right margins, for my printer at least, by using CSS to set the left margin to 0.625in and the top margin to 0.375in.  Not exactly obvious.</p>
<p>I opened a Windows XP VM to test the behavior of Firefox on Windows.  Page Setup gives me access to margin settings, but setting ½ inch margins top and bottom doesn&#8217;t position the output to match the cards, so any web app would have to prompt the user to set some non-obvious margin value that may well vary from printer to printer.  Better to set all the margins to zero in Page Setup and fiddle with CSS.  I noticed that in Windows there is a separate set of print.PRINTERNAME.print_margin_xxxx prefs for each printer.  On MacOS there only seems to be the one, regardless of how many different printer drivers are installed.  So even finding the name of the right pref to change could be a bit of a challenge for an app developer.</p>
<p>Searching the <a href="https://developer.mozilla.org/en-US/search?q=print+header+footer">Mozilla Developer Network</a>, I wasn&#8217;t able to find any documented way to control the printing of browser headers and footers from the web app.  The same is true for the &#8220;print background&#8221; and &#8220;print background images&#8221; checkboxes in the print dialog.  A printing app needs to be able to control page margins, and set defaults for most print parameters so that the user doesn&#8217;t have to set everything from scratch each time the app is used.</p>
<p>There is a pref, <strong>print.use_global_printsettings</strong>, that is <a href="http://kb.mozillazine.org/About:config_entries#Print.">documented in Mozillazine</a> as allowing  the user to change the print settings independently for each browser window.  On MacOS it appears to allow the settings to be set on a tab-by-tab basis, on Windows it didn&#8217;t seem to work.  Print settings changed in one window changed the settings in all open windows, the output was scaled oddly and backgrounds disappeared regardless of the status of the Print Backgrounds checkbox.  (Global print settings seem to have been a known problem for a while now. See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=194268">bug#194268</a>).</p>
<p>But a single switch, buried in <em>about:config</em> and inaccessible to a web app&#8217;s JavaScript isn&#8217;t really an answer.  Wouldn&#8217;t it be better if each app tab&#8217;s settings were modified independently while keeping the global settings for regular tabs?  (See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=648950">bug#648950</a>).</p>
<p>There are sound security reasons for making <em>about:config</em> prefs inaccessible from scripts on the web.  However I believe there is a case to be made for having some mechanism for controlling various print setup parameters from JavaScript.  The alternative seems to be to force any web app that wants to print to be implemented as a browser extension rather than as a web app.  Can anyone suggest a reason that granting JavaScript access to printer prefs would constitute a security vulnerability?</p>
<h3>Vanishing Web Fonts</h3>
<p>The lack of page-setup control wasn&#8217;t the only problem with our little experimental app.  <em>None of the <a href="http://www.google.com/webfonts?subset=latin">Google web fonts</a> used by the application show up in the printed output!</em> Firefox substituted Helvetica for all of the web fonts.  Web fonts only appear in printed output if the same font is also installed in the operating system. (<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=648679"><del datetime="2011-04-11T17:21:09+00:00">bug#648679</del></a> a dupe of <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=468568">bug#468568</a>).   This greatly complicates the installation process for web apps that print.  We could limit our app to just the fonts installed on the local system, but JavaScript doesn&#8217;t have a way to enumerate those directly, and the existing work-arounds make rather <a href="http://www.lalit.org/lab/javascript-css-font-detect">unacceptable assumptions.</a></p>
<h3>Shouldn&#8217;t Mozilla Be Empowering Users?</h3>
<p>Now I&#8217;m sure that some will argue that printing isn&#8217;t important for web apps, especially web apps for mobile devices.  After all, Apple didn&#8217;t implement any form of printing until the fourth generation of the iPhone, and web apps are mostly for mobile devices, right?</p>
<p>Wrong!  <strong><em>If Mozilla truly wants the web to become a first-class platform for applications, we need to empower the user to print.</em></strong></p>
<p> <a xmlns:dc="http://purl.org/dc/terms/" property="dc:title" id="oatitle" href="http://richard.milewski.org/archives/1059">Web App Strategy Marginally Flawed</a> by <a id="oaattributionurl" xmlns:cc="http://creativecommons.org/ns#" href="http://richard.milewski.org/blog" property="cc:attributionName" rel="cc:attributionURL" oaauthor="Richard A. Milewski">Richard A. Milewski</a> is licensed under a <a id="oalicense" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0">Attribution-ShareAlike CC BY-SA</a>.<br /> Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="http://richard.milewski.org/archives/1059" rel="dct:source">http://richard.milewski.org/archives/1059</a>.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Web+App+Strategy+Marginally+Flawed%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1059" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1059&amp;headline=Web+App+Strategy+Marginally+Flawed" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1059&amp;title=Web+App+Strategy+Marginally+Flawed" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1059&amp;title=Web+App+Strategy+Marginally+Flawed" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1059&amp;t=Web+App+Strategy+Marginally+Flawed" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1059&amp;t=Web+App+Strategy+Marginally+Flawed" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Web+App+Strategy+Marginally+Flawed&amp;link=http://richard.milewski.org/archives/1059" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1059&amp;title=Web+App+Strategy+Marginally+Flawed" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1059&amp;title=Web+App+Strategy+Marginally+Flawed" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1059/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Non-Obvious CSS: Full-Screen Gradients</title>
		<link>http://richard.milewski.org/archives/1014</link>
		<comments>http://richard.milewski.org/archives/1014#comments</comments>
		<pubDate>Fri, 11 Mar 2011 10:07:44 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Dev Tools]]></category>
		<category><![CDATA[CSS Tricks]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=1014</guid>
		<description><![CDATA[<p>Anyone who has ever cobbled together a CSS file for a web page knows that you can set the background color for the entire window by setting the background-color property of the body tag like this:</p> body { background-color: #00abeb; } <p>Many modern browsers (Firefox, Chrome and Safari) support a linear gradient fill in the [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who has ever cobbled together a CSS file for a web page knows that you can set the background color for the entire window by setting the background-color property of the body tag like this:</p>
<pre>body {
  background-color: #00abeb;
}</pre>
<p>Many modern browsers (Firefox, Chrome and Safari) support a linear gradient fill in the background-image property that, in theory, lets you spiff up those backgrounds a bit without having to load large images.  It&#8217;s fast, because it happens in the browser, and it looks nice.</p>
<p>But if you write a CSS entry that looks like this:</p>
<pre>body {
  background-image: -moz-linear-gradient(top, #ed5900, #eff108);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#0ae), to(#fff));
  background-image: -webkit-linear-gradient(top, #0ea, white);
}</pre>
<p>The background gradient only goes to the bottom of other page content. It doesn&#8217;t fill to the bottom of the browser window the way a solid color does.  What&#8217;s even more puzzling,  the documentation for -moz-linear-gradient, says:</p>
<blockquote><p>The -moz-linear-gradient property does not allow repeating gradients. For this functionality, see -moz-repeating-linear-gradient .</p></blockquote>
<p>But the gradient repeats in segments the same size as your content height until it gets to the bottom of the page.</p>
<p>I&#8217;ve been assured by people who understand why all this happens that it&#8217;s pretty much the way things are supposed to work according to the standards.  (That solid color in the example above is repeating as well, but you can&#8217;t see the boundaries).</p>
<p>The good news is that there&#8217;s a work-around.  The bad news is that before today it didn&#8217;t seem to appear in anyone&#8217;s documentation.   &#8230;you could waste hours Googling for a solution without success.</p>
<h3>Work-Around</h3>
<p>Here&#8217;s the trick. You need to set the min-height property of the <strong>&lt;html&gt;</strong> tag in your CSS:</p>
<pre>html {
   min-height: 100%;
}</pre>
<p>Why the &lt;html&gt; tag and not the &lt;body&gt; tag?   I haven&#8217;t a clue, but it seems to work in all three browsers.<br />
Try playing with the <a href="http://milewski.us/bugzamples/bz552698a.html">demo page</a>.</p>
<p><strong>UPDATE:</strong>  Boris explains why!  See the comments&#8230;</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Non-Obvious+CSS%3A+Full-Screen+Gradients%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D1014" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/1014&amp;headline=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/1014&amp;title=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/1014&amp;title=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/1014&amp;t=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/1014&amp;t=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Non-Obvious+CSS%3A+Full-Screen+Gradients&amp;link=http://richard.milewski.org/archives/1014" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/1014&amp;title=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/1014&amp;title=Non-Obvious+CSS%3A+Full-Screen+Gradients" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/1014/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress Themes Victims of Progress</title>
		<link>http://richard.milewski.org/archives/995</link>
		<comments>http://richard.milewski.org/archives/995#comments</comments>
		<pubDate>Sat, 05 Mar 2011 21:59:17 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=995</guid>
		<description><![CDATA[<p> If you have a blog powered by WordPress and you&#8217;re using a theme based on &#8220;Default&#8221; or &#8220;Kubrick&#8221; you need to change to another theme.</p> <p>The issue is that these themes do not play nicely with many of the HTML5 parsers in forthcoming browsers.</p> <p>The bad news is that WordPress shipped with default themes [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://richard.milewski.org/blog/wp-content/uploads/2011/03/HTML5_Badge_128.png" alt="" title="HTML5_Badge_128" width="128" height="128" class="alignright size-full wp-image-997" /><br />
If you have a blog powered by WordPress and you&#8217;re using a theme based on &#8220;Default&#8221; or &#8220;Kubrick&#8221; you need to change to another theme.</p>
<p>The issue is that these themes do not play nicely with many of the HTML5 parsers in forthcoming browsers.</p>
<p>The bad news is that WordPress shipped with default themes based on Kubrick up until the recent 3.0 WordPress release, so there are <strong><em>hundreds of thousands of sites</strong></em> using these themes.</p>
<p>In many cases these sites will not display properly on Firefox 4.0, Chrome 9, Opera 11.5, or IE9.    They do work in Firefox 3.6 and other earlier browsers.</p>
<p>If you&#8217;re running a WordPress powered blog, right now would be a good time to <a href="http://www.mozilla.com/en-US/firefox/beta/" target="_blank">download the Firefox 4 beta</a> and check your site.</p>
<p>There&#8217;s a <a href="http://wordpress.org/support/topic/default-and-kubrick-based-themes-fail-on-new-browsers?replies=1" target="_blank">warning post</a> in the WordPress Forums on the topic, and more details in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=638487" target="_blank">Bug 638487</a>.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=WordPress+Themes+Victims+of+Progress%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D995" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/995&amp;headline=WordPress+Themes+Victims+of+Progress" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/995&amp;title=WordPress+Themes+Victims+of+Progress" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/995&amp;title=WordPress+Themes+Victims+of+Progress" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/995&amp;t=WordPress+Themes+Victims+of+Progress" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/995&amp;t=WordPress+Themes+Victims+of+Progress" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=WordPress+Themes+Victims+of+Progress&amp;link=http://richard.milewski.org/archives/995" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/995&amp;title=WordPress+Themes+Victims+of+Progress" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/995&amp;title=WordPress+Themes+Victims+of+Progress" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/995/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New Data on Password Re-use</title>
		<link>http://richard.milewski.org/archives/970</link>
		<comments>http://richard.milewski.org/archives/970#comments</comments>
		<pubDate>Fri, 04 Mar 2011 21:00:08 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[PlanetMozilla]]></category>

		<guid isPermaLink="false">http://richard.milewski.org/?p=970</guid>
		<description><![CDATA[<p>One of the battles in the recent cyberwar between the group Anonymous and Aaron Barr the now ex-CEO of HBGary Federal was the hacking of rootkit.org.</p> <p>While most of the media attention has been focused on the personalities, egos, and the questionable ethics involved, Joseph Bonneau, a PhD candidate in the Security Group of the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the battles in the recent cyberwar between the group <a href="http://en.wikipedia.org/wiki/Anonymous_%28group%29" target="_blank">Anonymous</a> and <a href="http://twitter.com/#!/aaronbarr" target="_blank"> Aaron Barr</a> the now ex-CEO of <a href="http://hbgaryfederal.com/" target="_blank">HBGary Federal</a>  was the hacking of rootkit.org.</p>
<p>While most of the media attention has been focused on the personalities, egos, and the questionable ethics involved,<a href="http://www.cl.cam.ac.uk/~jcb82/" target="_blank"> Joseph Bonneau</a>, a PhD candidate in the Security Group of the University of Cambridge Computer Laboratory, gleaned some surprising information from the leaked rootkit.org database.</p>
<p>In a <a href="http://www.lightbluetouchpaper.org/2011/02/09/measuring-password-re-use-empirically/" target="_blank">blog post on Light Blue Touchpaper</a>, the Security Group&#8217;s blog, he compares that data with the user database from the recent Gawker incident.  He found a rate of <a href="http://xkcd.com/792/" target="_blank">password re-use</a> much higher than most previous estimates.</p>
<blockquote><p>&#8220;Of the 456 common users, 161 had their password cracked in both datasets, 46 only had their rootkit.com password cracked and 77 only had their Gawker password cracked, leaving 172 with neither password cracked. Of the accounts for which passwords were cracked at both sites, 76% used the exact same password. A further 6% used passwords differing by only capitalisation or a small suffix (e.g. ‘password’ and ‘password1′).&#8221; </p></blockquote>
<p>He goes on to explain why the 76% is not a valid estimate, but that the real number is somewhere between 31% and 43%.  These numbers are a substantial increase over the 12% estimate of <a href="http://portal.acm.org/citation.cfm?id=1242572.1242661" target="_blank">Florencio and Herley</a> (Microsoft Research) and the 20% estimate from <a href="http://portal.acm.org/citation.cfm?id=1143127" target="_blank">Gaw and Felten&#8217;s</a> user survey at Princeton.</p>
<p>The full <a href="http://www.lightbluetouchpaper.org/2011/02/09/measuring-password-re-use-empirically/">blog post</a> is a worthwhile read.</p>
<p>This reinforces my belief that increased consumer education on the dangers of reusing passwords between sites and  banning passwords appearing in the <a href="http://dazzlepod.com/rootkit/password/">rootkit.org top-500</a> and <a href="http://www.duosecurity.com/docs/top250gawker.txt">Gawker top-250</a> lists would do much more to improve security than setting arbitrary password content standards and forcing periodic password changes.   </p>
<p>However, <a href="http://www.slyman.org/index.php">Matthew Slyman</a>, another Cambridge University alumnus, makes an <a href="http://www.slyman.org/blog/2011/02/preventing-password-reuse/">argument</a> for an algorithm uses variable password expiration periods to encourage stronger passwords.</p>
<p>You can follow the <a href="http://www.google.com/#sclient=psy&#038;hl=en&#038;q=HBGary+site:arstechnica.com">ongoing HBGary soap opera</a> on Ars Technica.</p>
<div class="tweetthis" style="text-align:right;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=New+Data+on+Password+Re-use%2C+http%3A%2F%2Frichard.milewski.org%2F%3Fp%3D970" title="Post to Twitter"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/buzz?targetUrl=http://richard.milewski.org/archives/970&amp;headline=New+Data+on+Password+Re-use" title="Post to Yahoo Buzz"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/buzz/tt-buzz.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://richard.milewski.org/archives/970&amp;title=New+Data+on+Password+Re-use" title="Post to Delicious"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://richard.milewski.org/archives/970&amp;title=New+Data+on+Password+Re-use" title="Post to Digg"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://richard.milewski.org/archives/970&amp;t=New+Data+on+Password+Re-use" title="Post to Facebook"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://richard.milewski.org/archives/970&amp;t=New+Data+on+Password+Re-use" title="Post to MySpace"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/myspace/tt-myspace.png" alt="Post to MySpace" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=New+Data+on+Password+Re-use&amp;link=http://richard.milewski.org/archives/970" title="Post to Ping.fm"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/ping/tt-ping.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://reddit.com/submit?url=http://richard.milewski.org/archives/970&amp;title=New+Data+on+Password+Re-use" title="Post to Reddit"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://richard.milewski.org/archives/970&amp;title=New+Data+on+Password+Re-use" title="Post to StumbleUpon"><img class="nothumb" src="http://richard.milewski.org/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://richard.milewski.org/archives/970/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

