<?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>WebMess &#187; firefox</title>
	<atom:link href="http://www.webmess.it/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmess.it</link>
	<description>Informatica, Web ed altro... il blog di Alessio Caprari.</description>
	<lastBuildDate>Fri, 06 Nov 2009 21:26:14 +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>SteerMe &#8211; Firefox Orientation Bookmarklet</title>
		<link>http://www.webmess.it/2009/11/steerme-firefox-orientation-bookmarklet/</link>
		<comments>http://www.webmess.it/2009/11/steerme-firefox-orientation-bookmarklet/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:28:22 +0000</pubDate>
		<dc:creator>alessio</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[orientation]]></category>

		<guid isPermaLink="false">http://www.webmess.it/?p=108</guid>
		<description><![CDATA[Just a few days ago, the guys at Mozilla released the first beta version of the incoming Firefox 3.6.
While playing with it, I was wondering, which is the coolest feature introduced in this new release? Well, if you are a user, it should be the full screen support for native HTML5 video. If you are [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few days ago, the guys at Mozilla released the <a href="http://www.mozilla.com/en-US/firefox/3.6b1/releasenotes/">first beta version of the incoming Firefox 3.6</a>.</p>
<p>While playing with it, I was wondering, which is the coolest feature introduced in this new release? Well, if you are a user, it should be the <a href="http://mozillalinks.org/wp/2009/10/firefox-3-6-gets-full-screen-native-video/">full screen support for native HTML5 video</a>. If you are a developer, it may be the <a href="https://developer.mozilla.org/En/Firefox_3.6_for_developers">new CSS enhancements</a>. But, what if you are a Macbook user?</p>
<p>If you are a Macbook user, it will surely be the <a href="https://developer.mozilla.org/en/DOM/window.onmozorientation">detection of the notebook orientation</a> using its integrated accelerometer.</p>
<p>There are a <a href="http://hacks.mozilla.org/2009/10/orientation-for-firefox/">bunch of demo</a> showing this new functionality, they were so exciting I wanted to build one on my own. So, here it is a brand new orientation bookmarklet:</p>
<p style="text-align: center; margin-top: 2em; margin-bottom: 2em;"><a style="background-color: #FF6600; color: white; -moz-border-radius: 7px; -webkit-border-radius: 7px; padding: 5px 8px; font-weight: bold; font-size: 125%; text-decoration: none;" href="javascript:window.addEventListener&amp;&amp;window.addEventListener(&quot;MozOrientation&quot;,function(e){var h=innerHeight,ox=scrollX+innerWidth/2,oy=scrollY+h/2,bs=document.body.style;bs.MozTransformOrigin=ox+&quot;px &quot;+oy+&quot;px&quot;;bs.MozTransform=&quot;rotate(&quot;+(90*e.x)+&quot;deg) scaleY(&quot;+(e.y+1)+&quot;) translateY(&quot;+(-h*(e.z+1))+&quot;px)&quot;;},true);void(0);">SteerMe</a></p>
<p style="text-align: left;">Simply drag and drop the SteerMe button into the bookmarks toolbar of Firefox, or copy its link and manually create a new bookmark. Then, go to a new web page, press the newly created bookmark and begin to rotate your Macbook.</p>
<p style="text-align: left;">You will see the page still vertical while you rotate the notebook on the left and on the right, you will see it stretched and tightened while you move the keyboard up and down. And you will see the page bounce when, ehm&#8230;, you drop your precious notebook!</p>
<p style="text-align: left;">
<div id="attachment_115" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.webmess.it/wp-content/uploads/2009/11/06112009001.jpg"><img class="size-medium wp-image-115" title="Macbook rotated on the left" src="http://www.webmess.it/wp-content/uploads/2009/11/06112009001-300x225.jpg" alt="Tablet-like visualization with Macbook rotated on the left" width="300" height="225" /></a><p class="wp-caption-text">Tablet-like visualization with Macbook rotated on the left</p></div>
<div id="attachment_116" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.webmess.it/wp-content/uploads/2009/11/06112009003.jpg"><img class="size-medium wp-image-116" title="Macbook upside down" src="http://www.webmess.it/wp-content/uploads/2009/11/06112009003-300x225.jpg" alt="Stretched page with keyboard upside down" width="300" height="225" /></a><p class="wp-caption-text">Stretched page with keyboard upside down</p></div>
<p style="text-align: left;">How does it work? This is the bookmarklet code with extra spaces:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">addEventListener</span> <span style="color: #339933;">&amp;&amp;</span>
window.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;MozOrientation&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> innerHeight<span style="color: #339933;">,</span>
        ox <span style="color: #339933;">=</span> scrollX <span style="color: #339933;">+</span> innerWidth <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">,</span>
        oy <span style="color: #339933;">=</span> scrollY <span style="color: #339933;">+</span> h <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">,</span>
        bs <span style="color: #339933;">=</span> document.<span style="color: #660066;">body</span>.<span style="color: #660066;">style</span><span style="color: #339933;">;</span>
    bs.<span style="color: #660066;">MozTransformOrigin</span> <span style="color: #339933;">=</span> ox <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px &quot;</span> <span style="color: #339933;">+</span> oy <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px&quot;</span><span style="color: #339933;">;</span>
    bs.<span style="color: #660066;">MozTransform</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;rotate(&quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">90</span> <span style="color: #339933;">*</span> e.<span style="color: #660066;">x</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;deg) &quot;</span> <span style="color: #339933;">+</span>
                      <span style="color: #3366CC;">&quot;scaleY(&quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">y</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;) &quot;</span> <span style="color: #339933;">+</span>
                      <span style="color: #3366CC;">&quot;translateY(&quot;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>h <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">z</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px)&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p style="text-align: left;">As with every bookmarklet, its Javascript code must be as short as possible and tends to be quite obfuscated, but it is very simple. First of all, we will listen to the new <tt>MozOrientation</tt> event on the <tt>window</tt> object. Then we will apply a CSS transform to the body of the page using the event orientation data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmess.it/2009/11/steerme-firefox-orientation-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS transform in Firefox 3.1</title>
		<link>http://www.webmess.it/2008/09/css-transform-in-firefox-31/</link>
		<comments>http://www.webmess.it/2008/09/css-transform-in-firefox-31/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 22:27:34 +0000</pubDate>
		<dc:creator>alessio</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>

		<guid isPermaLink="false">http://webmess.wordpress.com/?p=70</guid>
		<description><![CDATA[Per gli sviluppatori web, Firefox 3.1 sembra riservare sorprese decisamente interessanti, nonostante l&#8217;incremento del solo minor number della versione.
Una di queste consiste nella nuova proprietà CSS transform che per il momento sarà utilizzabile con il nome proprietario -moz-transform. Mutuata da WebKit, questa proprietà permetterà di applicare trasformazioni come rotazioni, traslazioni o variazioni di scala agli [...]]]></description>
			<content:encoded><![CDATA[<p>Per gli sviluppatori web, Firefox 3.1 sembra riservare sorprese decisamente interessanti, nonostante l&#8217;incremento del solo <em>minor number</em> della versione.</p>
<p>Una di queste consiste nella nuova proprietà CSS <a href="http://developer.mozilla.org/web-tech/2008/09/12/css-transforms/">transform</a> che per il momento sarà utilizzabile con il nome proprietario -moz-transform. Mutuata da <a href="http://webkit.org/specs/CSSVisualEffects/CSSTransforms.html">WebKit</a>, questa proprietà permetterà di applicare trasformazioni come rotazioni, traslazioni o variazioni di scala agli elementi delle proprie pagine web.</p>
<p>Mi sembra il modo giusto di procedere, da convinto sostenitore della <a href="http://www.w3.org/2001/tag/doc/contentPresentation-26.html">separazione tra presentazione e contenuto</a> credo che il potenziamento delle funzionalità fornite dai fogli di stile CSS sia il modo migliore per poter realizzare interfacce accattivanti, senza dover ricorrere ad un uso eccessivo di immagini o, peggio ancora, a <a href="http://en.wikipedia.org/wiki/Adobe_Flash">prodotti proprietari</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmess.it/2008/09/css-transform-in-firefox-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elemento video in Firefox 3.1</title>
		<link>http://www.webmess.it/2008/09/elemento-video-in-firefox-31/</link>
		<comments>http://www.webmess.it/2008/09/elemento-video-in-firefox-31/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 22:31:46 +0000</pubDate>
		<dc:creator>alessio</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[filosofia]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[theora]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vorbis]]></category>

		<guid isPermaLink="false">http://webmess.wordpress.com/?p=45</guid>
		<description><![CDATA[Pochi giorni fa è stata rilasciata la seconda versione alfa di Firefox 3.1. Questa introduce, oltre ad altre novità che varrà la pena di analizzare in futuro, il supporto preliminare all&#8217;elemento &#60;video&#62; previsto dalla bozza di standard di HTML 5.
L&#8217;elemento &#60;video&#62; ha lo scopo di semplificare decisamente l&#8217;inclusione di filmati all&#8217;interno delle proprie pagine web, [...]]]></description>
			<content:encoded><![CDATA[<p>Pochi giorni fa è stata rilasciata la <a href="http://developer.mozilla.org/devnews/index.php/2008/09/05/firefox-31-alpha-2-now-available-for-download/">seconda versione alfa di Firefox 3.1</a>. Questa introduce, oltre ad altre novità che varrà la pena di analizzare in futuro, il supporto preliminare all&#8217;<a href="http://www.whatwg.org/specs/web-apps/current-work/#video">elemento &lt;video&gt;</a> previsto dalla bozza di standard di HTML 5.</p>
<p>L&#8217;elemento &lt;video&gt; ha lo scopo di semplificare decisamente l&#8217;inclusione di filmati all&#8217;interno delle proprie pagine web, rendendone l&#8217;inserimento facile come l&#8217;utilizzo di immagini attraverso il tag &lt;img&gt;.</p>
<p>In dettaglio, l&#8217;inserimento del video avviene utilizzando codice HTML di questo tipo:</p>
<pre>&lt;video controls="controls" src="<em>URL filmato</em>"&gt;&lt;/video&gt;</pre>
<p>L&#8217;elemento potrà inoltre contenenere altro codice HTML, come testo o immagini, che saranno visualizzati dai browser non compatibili, al posto del filmato.</p>
<p>In Firefox 3.1 l&#8217;unico formato supportato sarà Ogg <a href="http://en.wikipedia.org/wiki/Theora">Theora</a> con audio Ogg <a href="http://en.wikipedia.org/wiki/Vorbis">Vorbis</a> e per la decodifica non verrà utilizzato alcun tipo di plugin. All&#8217;interno dei sorgenti sono state infatti direttamente incluse le librerie sviluppate dalla fondazione <a href="http://xiph.org/">Xiph.Org</a>.</p>
<p>Presso il blog degli sviluppatori del browser Opera, è possibile trovare <a href="http://people.opera.com/howcome/2007/video/controls.html">alcune pagine di esempio</a> che utilizzano questo nuovo elemento HTML. Visitandole con la nuova versione alfa di Firefox, si potrà verificare direttamente quali risultati si possano ottenere:</p>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.webmess.it/wp-content/uploads/2008/09/screenshot-shiretoko.png"><img class="size-medium wp-image-65" title="Elemento &lt;video&gt; in Firefox 3.1 alfa 2" src="http://www.webmess.it/wp-content/uploads/2008/09/screenshot-shiretoko.png?w=300" alt="Elemento &lt;video&gt; in Firefox 3.1 alfa 2" width="300" height="246" /></a><p class="wp-caption-text">Elemento &lt;video&gt; in Firefox 3.1 alfa 2</p></div>
<p>Rimane soltanto da fare un&#8217;ultima considerazione: la creazione di nuovi elementi come &lt;audio&gt; e &lt;video&gt; delinea una filosofia alla base dello sviluppo del nuovo standard HTML 5 che non ritengo completamente condivisibile. Per la visualizzazione di filmati o audio, escludendo il diffusissimo ricorso ad appositi player in Flash, era già disponibile l&#8217;elemento &lt;object&gt;, che ha il vantaggio di essere generico e quindi adatto a qualsiasi utilizzo non inizialmente previsto. Il rischio che si corre è infatti quello di abbandonare la strada intrapresa dal W3C che aveva portato alla differenziazione tra documenti HTML Transitional e documenti HTML Strict.</p>
<p>I nuovi elementi presentano comunque dei vantaggi, come ad esempio la disponibilità di un&#8217;API JavaScript studiata appositamente per la gestione di oggetti multimediali. Inoltre si potrebbe addirittura ottenere come effetto collaterale la diffusione e l&#8217;eventuale successo di un formato video standard e libero da royalty, se solo il working group di HTML 5 riuscisse a raggiungere un consenso al riguardo…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmess.it/2008/09/elemento-video-in-firefox-31/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
