<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:media="http://search.yahoo.com/mrss/" version="2.0">

<channel>
	<title>Snippets code from my daily experience</title>
	
	<link>http://dafizilla.wordpress.com</link>
	<description>Just another unnecessary code resource blog</description>
	<lastBuildDate>Sun, 08 Nov 2009 10:48:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="dafizilla.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/635b338f35d7304cae2e1b31926d3592?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Snippets code from my daily experience</title>
		<link>http://dafizilla.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SnippetsCodeFromMyDailyExperience" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Karmic Koala hides Firefox context menuitems icons</title>
		<link>http://dafizilla.wordpress.com/2009/11/08/karmic-koala-hides-firefox-context-menuitems-icons/</link>
		<comments>http://dafizilla.wordpress.com/2009/11/08/karmic-koala-hides-firefox-context-menuitems-icons/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 10:27:56 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[bugzilla]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[viewsourcewith]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=911</guid>
		<description><![CDATA[This week I&#8217;ve received four times the same (i.e. duplicated) ViewSourceWith (VSW) bug report that sounds&#8230;
&#8220;ViewSourceWith stopped to show the icons on context menu, this regression is present on Karmic Koala (Ubuntu 9.10)&#8221;
I use Intrepid Ibex (Ubuntu 8.10) and all works fine, so I&#8217;ve burned a Karmic Koala ISO and tested it discovering the &#8220;regression&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=911&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This week I&#8217;ve received four times the same (i.e. duplicated) <a href="http://dafizilla.sourceforge.net/viewsourcewith/index.php">ViewSourceWith</a> (VSW) bug report that sounds&#8230;</p>
<blockquote><p><em>&#8220;ViewSourceWith stopped to show the icons on context menu, this regression is present on Karmic Koala (Ubuntu 9.10)&#8221;</em></p></blockquote>
<p>I use Intrepid Ibex (Ubuntu 8.10) and all works fine, so I&#8217;ve burned a Karmic Koala ISO and tested it discovering the &#8220;regression&#8221; exists.</p>
<p>Debug -&gt; Add logs -&gt; Remove logs -&gt; Clean Profile -&gt; DOM Inspect -&gt; <a href="http://hyperstruct.net/content/mozrepl">MozRepl</a> without find where the problem occurs.</p>
<p>Last resort -&gt; <a href="https://bugzilla.mozilla.org">Bugzilla</a> -&gt; Found!!!</p>
<p>The <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=527253#c2">Bug 527253</a> unveils the mystery!</p>
<p>This isn&#8217;t a regression</p>
<p>ViewSourceWith isn&#8217;t the guilty, Firefox isn&#8217;t the guilty but&#8230; Gnome is the guilty <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Type the command shown below from command line and restart Firefox</p>
<pre>gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true
</pre>
<p><strong><span style="color:#ff0000;">EDIT</span> </strong><strong>Or use the UI to obtain same result (thanks to mzz) system -&gt; preferences -&gt; appearance -&gt; interface -&gt; show icons in menus</strong></p>
<p>This worked for me and also for two bug submitters (the other two guys do not replayed to my hint)</p>
<p>So remember <a href="https://bugzilla.mozilla.org/">Bugzilla</a> is your friend <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/911/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=911&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/11/08/karmic-koala-hides-firefox-context-menuitems-icons/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Little browsers grow</title>
		<link>http://dafizilla.wordpress.com/2009/11/02/little-browsers-grow/</link>
		<comments>http://dafizilla.wordpress.com/2009/11/02/little-browsers-grow/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 19:06:33 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[fennec]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=905</guid>
		<description><![CDATA[This is a non technical post


Read full story at ZooBorns
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=905&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p><em>This is a non technical post</em></p></blockquote>
<p><em><img class="alignnone" title="Little fennec" src="http://www.zooborns.com/.a/6a010535647bf3970b0120a64ad026970b-pi" alt="" width="470" height="325" /><br />
</em></p>
<p>Read full story at <a href="http://www.zooborns.com/zooborns/2009/11/cute-fennec-fox-kits-everland-zoo.html">ZooBorns</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/905/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=905&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/11/02/little-browsers-grow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://www.zooborns.com/.a/6a010535647bf3970b0120a64ad026970b-pi" medium="image">
			<media:title type="html">Little fennec</media:title>
		</media:content>
	</item>
		<item>
		<title>PluginChecker v0.2</title>
		<link>http://dafizilla.wordpress.com/2009/10/29/pluginchecker-v0-2/</link>
		<comments>http://dafizilla.wordpress.com/2009/10/29/pluginchecker-v0-2/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:46:10 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=881</guid>
		<description><![CDATA[I&#8217;ve received great and unexpected feedback about PluginChecker on my previous post so I&#8217;ve decided to refactor its code and better integrate with the standard Extensions Manager.
The original ugly dialog has been removed and informations about the new installed plugins are shown directly onto the Extensions Manager.

PluginChecker v0.2 can be downloaded from SourceForge and from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=881&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve received great and unexpected feedback about PluginChecker <a href="http://wp.me/p3ITK-dH">on my previous post</a> so I&#8217;ve decided to refactor its code and better integrate with the standard Extensions Manager.</p>
<p>The original ugly dialog has been removed and informations about the new installed plugins are shown directly onto the Extensions Manager.</p>
<p><a rel="attachment wp-att-882" href="http://dafizilla.wordpress.com/2009/10/29/pluginchecker-v0-2/dialog/"><img class="aligncenter size-full wp-image-882" title="PluginChecker" src="http://dafizilla.files.wordpress.com/2009/10/dialog.png?w=530&#038;h=407" alt="PluginChecker" width="530" height="407" /></a></p>
<p><a href="http://sourceforge.net/projects/dafizilla/files/pluginchecker/v0.2/pluginchecker-0.2.xpi/download">PluginChecker v0.2</a> can be downloaded from <a href="http://sourceforge.net/projects/dafizilla/files/pluginchecker/v0.2/pluginchecker-0.2.xpi/download">SourceForge</a> and from <a href="https://addons.mozilla.org/en-US/firefox/addon/46214">AMO</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/881/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/881/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/881/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=881&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/10/29/pluginchecker-v0-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/10/dialog.png" medium="image">
			<media:title type="html">PluginChecker</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET Framework Assistant, automatic plugin installation and PluginChecker</title>
		<link>http://dafizilla.wordpress.com/2009/10/18/net-framework-assistant-automatic-plugin-installation-and-pluginchecker/</link>
		<comments>http://dafizilla.wordpress.com/2009/10/18/net-framework-assistant-automatic-plugin-installation-and-pluginchecker/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 13:21:07 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=849</guid>
		<description><![CDATA[In these days the net is populated by blog posts about the .NET Framework Assistant plugin for Firefox, its disabling and the fact Firefox does not warn user when a plugin installs itself without explicit permission.
Well, this is a old problem at least for me, indeed  I discovered it some time ago when my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=849&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In these days the net is populated by blog posts about the .NET Framework Assistant plugin for Firefox, its disabling and the fact Firefox does not warn user when a plugin installs itself without explicit permission.</p>
<p>Well, this is a old problem at least for me, indeed  I discovered it some time ago when my Firefox crashed (apparently) without reason, discovering after a couple of days that Microsoft Office 2003 plugin fought with Foxit Reader and Google update plugins.</p>
<p>The problem was that I never installed Office plugin!</p>
<p><a rel="attachment wp-att-850" href="http://dafizilla.wordpress.com/2009/10/18/net-framework-assistant-automatic-plugin-installation-and-pluginchecker/plugins/"><img class="aligncenter size-full wp-image-850" title="plugins" src="http://dafizilla.files.wordpress.com/2009/10/plugins.jpg?w=487&#038;h=427" alt="plugins" width="487" height="427" /></a></p>
<p>Disabling Office plugin Firefox stopped to crash.</p>
<p>After that experience I decided to write a simple (very simple) extension that at every Firefox startup checks if there are new plugins installed.</p>
<p><a rel="attachment wp-att-851" href="http://dafizilla.wordpress.com/2009/10/18/net-framework-assistant-automatic-plugin-installation-and-pluginchecker/pluginchecker/"><img class="aligncenter size-full wp-image-851" title="pluginchecker" src="http://dafizilla.files.wordpress.com/2009/10/pluginchecker.jpg?w=391&#038;h=195" alt="pluginchecker" width="391" height="195" /></a>Nothing so cool, only a quick and dirty solution implemented in a few of hours.</p>
<p>Waiting Mozilla implements a better solution than mine you can install PluginChecker.</p>
<p>If you expect to find  PluginChecker  innovative or the &#8220;I-can-live-without-it&#8221; extension you are on the wrong place, if you expect a not intrusive and simple solution to unattended plugins installation than you can take a look at it.</p>
<p>You can download <a href="http://sourceforge.net/projects/dafizilla/files/pluginchecker/v0.1/pluginchecker-0.1.xpi/download">PluginChecker</a> from SourceForge.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/849/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/849/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/849/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=849&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/10/18/net-framework-assistant-automatic-plugin-installation-and-pluginchecker/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/10/plugins.jpg" medium="image">
			<media:title type="html">plugins</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/10/pluginchecker.jpg" medium="image">
			<media:title type="html">pluginchecker</media:title>
		</media:content>
	</item>
		<item>
		<title>You must Disable or Remove Adblock to visit this website, no Thanks!</title>
		<link>http://dafizilla.wordpress.com/2009/10/09/you-must-disable-or-remove-adblock-to-visit-this-website-no-thanks/</link>
		<comments>http://dafizilla.wordpress.com/2009/10/09/you-must-disable-or-remove-adblock-to-visit-this-website-no-thanks/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 15:28:45 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[adblock]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=833</guid>
		<description><![CDATA[Today visiting a website that gives invites for Google Wave I received the message shown below

This is the first time I see a similar &#8220;invite&#8221;
Well, no thanks I prefer to move away from this website, period!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=833&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today visiting a website that gives invites for Google Wave I received the message shown below</p>
<p><a rel="attachment wp-att-832" href="http://dafizilla.wordpress.com/2009/10/09/you-must-disable-or-remove-adblock-to-visit-this-website-no-thanks/disable_adp/"><img class="aligncenter size-full wp-image-832" title="disable_adp" src="http://dafizilla.files.wordpress.com/2009/10/disable_adp.jpg?w=678&#038;h=236" alt="disable_adp" width="678" height="236" /></a></p>
<p>This is the first time I see a similar &#8220;invite&#8221;</p>
<p>Well, no thanks I prefer to move away from this website, period!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/833/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/833/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/833/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/833/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/833/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/833/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/833/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/833/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/833/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/833/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=833&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/10/09/you-must-disable-or-remove-adblock-to-visit-this-website-no-thanks/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/10/disable_adp.jpg" medium="image">
			<media:title type="html">disable_adp</media:title>
		</media:content>
	</item>
		<item>
		<title>Table2Clipboard 1.0 now preserves styles</title>
		<link>http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/</link>
		<comments>http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 17:49:15 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[excel]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[table2clipboard]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=750</guid>
		<description><![CDATA[Finally after almost a year I release a new version of Table2Clipboard, one of twelve extensions that won in 2008 the Firefox 2 Contest in the section Runners Up.
What&#8217;s new
Until now Table2Clipboard has pasted to clipboard the structure of HTML tables without the styles (colors, borders, fonts) but many users have asked me that the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=750&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally after almost a year I release a new version of <a href="http://dafizilla.sourceforge.net/table2clip/index.php">Table2Clipboard</a>, one of twelve extensions that won in 2008 the <a href="http://labs.mozilla.com/blog/2008/02/announcing-the-extend-firefox-2-winners/">Firefox 2 Contest</a> in the section Runners Up.</p>
<h3>What&#8217;s new</h3>
<p>Until now <a href="http://dafizilla.sourceforge.net/table2clip/index.php">Table2Clipboard</a> has pasted to clipboard the structure of HTML tables without the styles (colors, borders, fonts) but many users have asked me that the behavior was much more similar to that of Internet Explorer (IE) which indeed maintains many details.</p>
<p>Well, the version 1.0 preserves the styles and in certain cases the result is better than that obtained with IE.</p>
<p>IE inserts also the DOM elements declared &#8220;not visible&#8221;, for example the table shown in Figure 1  is pasted in Excel as shown in Figure 2.</p>
<p style="text-align:center;"><a rel="attachment wp-att-757" href="http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/ie-2/" target="_blank"><img class="aligncenter size-full wp-image-757" title="Table selection on Internet Explorer" src="http://dafizilla.files.wordpress.com/2009/09/ie1.png?w=290&#038;h=194" alt="ie" width="290" height="194" /></a></p>
<p style="text-align:center;"><strong>Figure 1</strong></p>
<p style="text-align:center;"><strong>Table selection on Internet Explorer</strong></p>
<p style="text-align:center;"><a rel="attachment wp-att-762" href="http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/excel-from-ie-2/" target="_blank"><img class="aligncenter size-medium wp-image-762" title="Paste from Internet Explorer to Microsoft Excel" src="http://dafizilla.files.wordpress.com/2009/09/excel-from-ie1.png?w=300&#038;h=91" alt="excel-from-ie" width="300" height="91" /></a><strong> </strong></p>
<p style="text-align:center;"><strong>Figure 2</strong></p>
<p style="text-align:center;"><strong>Copy from Internet Explorer paste to Microsoft Excel</strong></p>
<p>Table2Clipboard discards hidden DOM elements as shown in Figure 3, this makes more sense for me.</p>
<p style="text-align:center;"><a rel="attachment wp-att-763" href="http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/excel-from-t2c-2/" target="_blank"><img class="aligncenter size-medium wp-image-763" title="Paste from Firefox with Table2Clipboard to Microsoft Excel" src="http://dafizilla.files.wordpress.com/2009/09/excel-from-t2c1.png?w=300&#038;h=122" alt="Paste from Firefox with Table2Clipboard to Microsoft Excel" width="300" height="122" /></a></p>
<p style="text-align:center;"><strong>Figure 3</strong></p>
<p style="text-align:center;"><strong> Copy from Firefox with Table2Clipboard paste to Microsoft Excel</strong></p>
<h3>Other little improvements</h3>
<p>Now web links are copied and user can choose to copy images (tag IMG), too.<br />
All defaults settings can be modified from configuration dialog.</p>
<p>The copy of styles on OpenOffice doesn&#8217;t work as well as the one on Microsoft products.<br />
The &#8220;Paste Special&#8221; feature available on <a href="http://dafizilla.wordpress.com/2009/08/01/table2clipboard-and-clipboard-application-interoperability/">OpenOffice doesn&#8217;t recognize CSS styles</a> but only deprecated tags like FONT.</p>
<p>I will add support for OpenOffice soon but I prefer the &#8220;release early release often&#8221; (after a year??? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) approach so this version has poor styles support on the popular open source office automation suite.</p>
<p>Compatibility issues with Thunderbird 3.x are now fixed.</p>
<p>Table2Clipboard can be installed from <a href="https://addons.mozilla.org/en/firefox/addon/1852">AMO </a>or from the <a href="http://dafizilla.sourceforge.net/table2clip/index.php">project site on dafizilla</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/750/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/750/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/750/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=750&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/09/14/table2clipboard-1-0-now-preserves-styles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/09/ie1.png" medium="image">
			<media:title type="html">Table selection on Internet Explorer</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/09/excel-from-ie1.png?w=300" medium="image">
			<media:title type="html">Paste from Internet Explorer to Microsoft Excel</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/09/excel-from-t2c1.png?w=300" medium="image">
			<media:title type="html">Paste from Firefox with Table2Clipboard to Microsoft Excel</media:title>
		</media:content>
	</item>
		<item>
		<title>Experimenting with Bespin plugins</title>
		<link>http://dafizilla.wordpress.com/2009/08/17/experimenting-with-bespin-plugins/</link>
		<comments>http://dafizilla.wordpress.com/2009/08/17/experimenting-with-bespin-plugins/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 10:38:29 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[bespin]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=689</guid>
		<description><![CDATA[ I&#8217;ve started to use Bespin intensively, long editing sessions to test how much it fits my needs.
Bespin is very good and I&#8217;m really satisfied to use it as general purpose collaboration editor but I&#8217;m a very lazy developer and I need many little features, not yet present on Bespin, making my coding life easier.
Bespin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=689&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-full wp-image-698" title="code_square" src="http://dafizilla.files.wordpress.com/2009/08/code_square.png?w=128&#038;h=121" alt="code_square" width="128" height="121" /> I&#8217;ve started to use <a href="https://bespin.mozilla.com/">Bespin</a> intensively, long editing sessions to test how much it fits my needs.</p>
<p>Bespin is very good and I&#8217;m really satisfied to use it as general purpose collaboration editor but I&#8217;m a very lazy developer and I need many little features, not yet present on Bespin, making my coding life easier.</p>
<p>Bespin supports plugins allowing users to write Javascript code that is easily &#8220;plugged&#8221; into editor so I started to study its programming model.</p>
<p>There are hundred of APIs but I focused my attention to the specific sections shown below, discovering an excellent support.</p>
<ul>
<li>General text handling (unicode support,  cursor position and so on)</li>
<li>Text selection</li>
<li>Undo/Redo groups of text operations</li>
<li>Clipboard</li>
</ul>
<p>More details about installing and using plugins are available at <a href="https://wiki.mozilla.org/Labs/Bespin/DesignDocs#Extensibility">Bespin wiki</a></p>
<h3>A brief survey of Bespin architecture</h3>
<p>When plugins interact with the editor soon or later they must use some core components.</p>
<ul>
<li>editor itself; It holds reference to all editor structures</li>
<li>edit session; The current file buffer user are editing</li>
<li>model; The most important component, it allows to access to text abstracting internal character representation (eg unicode), you see anything as rows and columns</li>
<li>actions; move cursor, handle history (undo/redo) and many other text actions</li>
</ul>
<p>It is possible to access to components using the Bespin singletons</p>
<pre><span style="font-size:12px;">bespin<span style="color:#781f87;">.</span>get<span style="color:#781f87;">(</span><span style="color:#23238e;">'editor'</span><span style="color:#781f87;">)</span> <span style="color:#696969;font-style:italic;">// access to the editor component</span></span></pre>
<p>or navigating the data structure (ok you must use always a starting singleton <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</p>
<pre><span style="font-size:12px;">bespin<span style="color:#781f87;">.</span>get<span style="color:#781f87;">(</span><span style="color:#23238e;">'editSession'</span><span style="color:#781f87;">).</span>editor <span style="color:#696969;font-style:italic;">// access to the editor component starting from editSession</span>
</span></pre>
<h3>The &#8220;Comment Selection&#8221; plugin</h3>
<p>To understand how Bespin APIs work I&#8217;ve written a stupid but useful (at least for me) plugin used to comment out a text selection based on file language, so CSS selected lines are commented using <span style="color:#ff6600;">/* &#8230; */</span>, HTML using <span style="color:#ff6600;">&lt;!&#8211; &#8230; &#8211;&gt;</span><span style="color:#000000;"> and so on.</span></p>
<p><span style="color:#000000;">The &#8220;comment selection&#8221; is treated as a single text operation, if ten lines are commented and user makes undo all lines are undone, user doesn&#8217;t need to make ten times undo!<br />
Grouping operations for undo/redo it is possible thanks to beginEdit()/endEdit() methods<br />
</span></p>
<pre><span style="font-size:12px;">    editor<span style="color:#781f87;">.</span>ui<span style="color:#781f87;">.</span>actions<span style="color:#781f87;">.</span>beginEdit<span style="color:#781f87;">(</span><span style="color:#23238e;">"commentSelection"</span><span style="color:#781f87;">);</span>
    <span style="color:#781f87;">...</span>
    editor<span style="color:#781f87;">.</span>ui<span style="color:#781f87;">.</span>actions<span style="color:#781f87;">.</span>endEdit<span style="color:#781f87;">();</span>
</span></pre>
<h3>Stop blah blah blah, I want to read code!</h3>
<p>The plugin code is very easy.</p>
<p>We get the selection info (not the text) and then use the model to insert characters, this allows to take benefits of history manager (undo/redo) and character internal representation.</p>
<pre><span style="font-size:12px;"><span>exports</span><span style="color:#781f87;">.</span><span>commentSelection</span><span> </span><span style="color:#781f87;">=</span><span> </span><span style="color:#871f78;">function</span><span style="color:#781f87;">(</span><span>instruction</span><span style="color:#781f87;">)</span><span> </span><span style="color:#781f87;">{</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>currPath</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>bespin</span><span style="color:#781f87;">.</span><span>get</span><span style="color:#781f87;">(</span><span style="color:#23238e;">'editSession'</span><span style="color:#781f87;">).</span><span>path</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>extFile</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>bespin</span><span style="color:#781f87;">.</span><span>util</span><span style="color:#781f87;">.</span><span>path</span><span style="color:#781f87;">.</span><span>fileType</span><span style="color:#781f87;">(</span><span>currPath</span><span style="color:#781f87;">);</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>commentDelimiters</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>exports</span><span style="color:#781f87;">.</span><span>getCommentDelimitersByLang</span><span style="color:#781f87;">(</span><span>extFile</span><span style="color:#781f87;">);</span>

<span>    </span><span style="color:#871f78;">if</span><span> </span><span style="color:#781f87;">(</span><span style="color:#871f78;">typeof</span><span> </span><span style="color:#781f87;">(</span><span>commentDelimiters</span><span style="color:#781f87;">)</span><span> </span><span style="color:#781f87;">==</span><span> </span><span style="color:#23238e;">"undefined"</span><span style="color:#781f87;">)</span><span> </span><span style="color:#781f87;">{</span>
<span>      </span><span style="color:#871f78;">return</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#781f87;">}</span>

<span>    </span><span style="color:#871f78;">var</span><span> </span><span>selection</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>bespin</span><span style="color:#781f87;">.</span><span>get</span><span style="color:#781f87;">(</span><span style="color:#23238e;">'editor'</span><span style="color:#781f87;">).</span><span>getSelection</span><span style="color:#781f87;">();</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>model</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>bespin</span><span style="color:#781f87;">.</span><span>get</span><span style="color:#781f87;">(</span><span style="color:#23238e;">'editSession'</span><span style="color:#781f87;">).</span><span>editor</span><span style="color:#781f87;">.</span><span>model</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>editor</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>bespin</span><span style="color:#781f87;">.</span><span>get</span><span style="color:#781f87;">(</span><span style="color:#23238e;">'editSession'</span><span style="color:#781f87;">).</span><span>editor</span><span style="color:#781f87;">;</span>

<span>    </span><span style="color:#871f78;">var</span><span> </span><span>startRow</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#871f78;">var</span><span> </span><span>endRow</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#871f78;">if</span><span> </span><span style="color:#781f87;">(</span><span>selection</span><span style="color:#781f87;">)</span><span> </span><span style="color:#781f87;">{</span>
<span>      </span><span>startRow</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>selection</span><span style="color:#781f87;">.</span><span>startModelPos</span><span style="color:#781f87;">.</span><span>row</span><span style="color:#781f87;">;</span>
<span>      </span><span>endRow</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>selection</span><span style="color:#781f87;">.</span><span>endModelPos</span><span style="color:#781f87;">.</span><span>row</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#781f87;">}</span><span> </span><span style="color:#871f78;">else</span><span> </span><span style="color:#781f87;">{</span>
<span>      </span><span>startRow</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>endRow</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>editor</span><span style="color:#781f87;">.</span><span>getCursorPos</span><span style="color:#781f87;">().</span><span>row</span><span style="color:#781f87;">;</span>
<span>    </span><span style="color:#781f87;">}</span>
<span>    </span><span>instruction</span><span style="color:#781f87;">.</span><span>addOutput</span><span style="color:#781f87;">(</span><span>startRow</span><span> </span><span style="color:#781f87;">+</span><span> </span><span style="color:#23238e;">","</span><span> </span><span style="color:#781f87;">+</span><span> </span><span>endRow</span><span> </span><span style="color:#781f87;">+</span><span> </span><span style="color:#23238e;">" model"</span><span> </span><span style="color:#781f87;">+</span><span> </span><span>model</span><span style="color:#781f87;">);</span>
<span>    </span><span>editor</span><span style="color:#781f87;">.</span><span>ui</span><span style="color:#781f87;">.</span><span>actions</span><span style="color:#781f87;">.</span><span>beginEdit</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"commentSelection"</span><span style="color:#781f87;">);</span>
<span>    </span><span style="color:#871f78;">for</span><span> </span><span style="color:#781f87;">(</span><span style="color:#871f78;">var</span><span> </span><span>r</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>startRow</span><span style="color:#781f87;">;</span><span> </span><span>r</span><span> </span><span style="color:#781f87;">&lt;=</span><span> </span><span>endRow</span><span style="color:#781f87;">;</span><span> </span><span>r</span><span style="color:#781f87;">++)</span><span> </span><span style="color:#781f87;">{</span>
<span>      </span><span style="color:#871f78;">var</span><span> </span><span>modelPos</span><span> </span><span style="color:#781f87;">=</span><span> </span><span style="color:#781f87;">{</span><span>row</span><span> </span><span style="color:#781f87;">:</span><span> </span><span>r</span><span style="color:#781f87;">,</span><span> </span><span>col</span><span> </span><span style="color:#781f87;">:</span><span> </span><span style="color:#8b0000;">0</span><span style="color:#781f87;">};</span>
<span>      </span><span>model</span><span style="color:#781f87;">.</span><span>insertCharacters</span><span style="color:#781f87;">(</span><span>modelPos</span><span style="color:#781f87;">,</span><span> </span><span>commentDelimiters</span><span style="color:#781f87;">.</span><span>begin</span><span style="color:#781f87;">);</span>
<span>      </span><span>modelPos</span><span style="color:#781f87;">.</span><span>col</span><span> </span><span style="color:#781f87;">=</span><span> </span><span>model</span><span style="color:#781f87;">.</span><span>rows</span><span style="color:#781f87;">[</span><span>r</span><span style="color:#781f87;">].</span><span>length</span><span style="color:#781f87;">;</span>
<span>      </span><span>model</span><span style="color:#781f87;">.</span><span>insertCharacters</span><span style="color:#781f87;">(</span><span>modelPos</span><span style="color:#781f87;">,</span><span> </span><span>commentDelimiters</span><span style="color:#781f87;">.</span><span>end</span><span style="color:#781f87;">);</span>
<span>      </span><span style="color:#781f87;">}</span>
<span>    </span><span>editor</span><span style="color:#781f87;">.</span><span>ui</span><span style="color:#781f87;">.</span><span>actions</span><span style="color:#781f87;">.</span><span>endEdit</span><span style="color:#781f87;">();</span>
<span style="color:#781f87;">}</span></span></pre>
<p>You can view the full plugin code following me at <a href="http://bespin.mozilla.com">bespin.mozilla.com</a>, do login and from command line type</p>
<p>follow dafi</p>
<p>SVN <em>aficionados</em> can browse the code  <a href="http://dafizilla.svn.sourceforge.net/viewvc/dafizilla/trunk/bespin/plugins/commentSelection/">here</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/689/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/689/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/689/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=689&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/08/17/experimenting-with-bespin-plugins/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/08/code_square.png" medium="image">
			<media:title type="html">code_square</media:title>
		</media:content>
	</item>
		<item>
		<title>Table2Clipboard and clipboard application interoperability</title>
		<link>http://dafizilla.wordpress.com/2009/08/01/table2clipboard-and-clipboard-application-interoperability/</link>
		<comments>http://dafizilla.wordpress.com/2009/08/01/table2clipboard-and-clipboard-application-interoperability/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 09:35:18 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[calc]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[table2clipboard]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=657</guid>
		<description><![CDATA[Many users asked to me to add to the extension Table2Clipboard (T2C for friends) the ability to preserve web links and maintain the styles during tables copy.
Preserving links and other HTML tags was a very easy task, I&#8217;ve written the code very quickly and both OpenOffice Calc and Microsoft Excel have handled correctly the pasted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=657&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-full wp-image-675" title="calc_excel_t2c" src="http://dafizilla.files.wordpress.com/2009/08/calc_excel_t2c.png?w=128&#038;h=128" alt="calc_excel_t2c" width="128" height="128" />Many users asked to me to add to the extension <a href="https://addons.mozilla.org/en-US/firefox/addon/1852">Table2Clipboard</a> (T2C for friends) the ability to preserve web links and maintain the styles during tables copy.</p>
<p>Preserving links and other HTML tags was a very easy task, I&#8217;ve written the code very quickly and both OpenOffice Calc and Microsoft Excel have handled correctly the pasted content.</p>
<p>When I started to support <em>style preservation</em> I discovered different and ugly results on the two popular office suites making harder to write cross platform XUL code.</p>
<p>Actually T2C pastes to clipboard inserting data in two different formats (<a href="http://dafizilla.wordpress.com/2007/08/18/put-in-clipboard-same-content-in-multiple-formats-using-xul/">flavors</a>), unicode plain text and HTML format.<br />
When users do &#8220;Paste Special&#8221; the HTML format is pasted and applications (Excel or Calc) render inside the data sheet.</p>
<p>Both Excel and Calc handle only the deprecated <a href="http://www.w3schools.com/tags/tag_FONT.asp">FONT</a> tag and a subset of <a href="http://www.w3schools.com/tags/tag_table.asp">TABLE</a> tag attributes and this represents a great limitation for style preservation from T2C.</p>
<p>If you try to paste from Microsoft Explorer to Microsoft Excel you discover everything is copied, the styles are totally preserved but if you paste from Explorer to OpenOffice Calc all style are lost!!!</p>
<p>Well, Explorer inserts to clipboard <strong>also</strong> <a href="http://en.wikipedia.org/wiki/Rich_Text_Format">RTF</a> formatted text and Excel works very fine with the barely public RTF file format.</p>
<p>Clipboard application interoperability goes to hell, HTML is not fully supported by the &#8220;Paste Special&#8221; feature available on both suites, and as usual Microsoft uses semi proprietary data formats to exchange informations between applications.</p>
<p>I think at least OpenOffice should improve its &#8220;Paste&#8221; feature simply adding support for HTML <a href="https://developer.mozilla.org/En/XUL/Attribute/Style">style</a> attribute.</p>
<p>T2C can preserve correctly styles only implementing platform specific code for OpenOffice and Microsoft Office and I really hate write specific platform.</p>
<p>I&#8217;m considering other alternatives but I see only the darkness of C++, OLE and core dump&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/657/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/657/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/657/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=657&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/08/01/table2clipboard-and-clipboard-application-interoperability/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/08/calc_excel_t2c.png" medium="image">
			<media:title type="html">calc_excel_t2c</media:title>
		</media:content>
	</item>
		<item>
		<title>Discontinue extensions support for some applications</title>
		<link>http://dafizilla.wordpress.com/2009/07/18/discontinue-extensions-support-for-some-applications/</link>
		<comments>http://dafizilla.wordpress.com/2009/07/18/discontinue-extensions-support-for-some-applications/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 15:46:44 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[kompozer]]></category>
		<category><![CDATA[seamonkey]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=635</guid>
		<description><![CDATA[Before publish new updates for my extensions I try to test them on every application declared supported on install.rdf, this is a very expensive activity when a specific extension runs on different kind of applications and versions.
I add support for a new application (e.g browser, email client, multimedia applet)

when I use the application itself and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=635&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Before publish new updates for my extensions I try to test them on every application declared supported on install.rdf, this is a very expensive activity when a specific extension runs on different kind of applications and versions.</p>
<p>I add support for a new application (e.g browser, email client, multimedia applet)</p>
<ul>
<li>when I use the application itself and I need the extension functionality on it</li>
<li>when other users ask to me</li>
</ul>
<p>Now I must decide to drop support for some applications and for specific versions to simplify my release tests cycle.</p>
<p>In some cases it&#8217;s easy to decide, for example <strong>Firefox 2.x</strong> is no longer supported by Mozilla and users continuing to use it are braves or simply fools.</p>
<p>Supporting <strong>SeaMonkey 1.x</strong> is very hard for me, no special technical problems SM is a very good product but I simply don&#8217;t use it.<br />
Instead I&#8217;m a satisfied <strong>SeaMonkey 2.0</strong> user since alpha1 version.</p>
<p>Supporting <strong>Flock</strong>, the &#8220;social&#8221; browser, is easy due to the fact is very compatible with <strong>Firefox 3.x</strong> but sometimes little differences caused me headaches.<br />
I think to drop support for extensions not Flock centric considering the <a href="http://www.binaryturf.com/flock-drops-the-ball-on-extension-hosting/">decision taken from its team last December</a></p>
<p><strong>Komodo 4.x</strong> is no longer upgraded by ActiveState but many people continues to use it, Komodo has a commercial version, KomodoIDE, and not all users purchased the upgrade (me too) so it is very difficult to drop the very old 4.x architecture.</p>
<p><strong>NVU</strong> is dead but many users continue to use it also if its sibling/son <strong>Kompozer</strong> should be strong preferred.</p>
<h3>What specifically means &#8220;discontinue support&#8221;</h3>
<p>I would to remove specific tricky code present in extensions to make them cleaner but this can be a bad solution, regressions are always possible so the cure can be worse than the disease&#8230;</p>
<p>Removing <strong>SeaMonkey 1.x</strong> support will make <strong>my</strong> extension build system cleaner no longer install.js, contents.rdf  and informations present both in install.rdf and chrome.manifest, obviously I don&#8217;t discard support <strong>only</strong> to remove a couple of configuration files but I consider it another complication.</p>
<p>So, &#8220;discontinue support&#8221; for me means moving attention and energies on applications (and versions) I can test easily, on application I daily use,<strong> </strong><span style="text-decoration:underline;"><strong> on applications I receive feedback from other users</strong></span>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/635/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=635&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/07/18/discontinue-extensions-support-for-some-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Now users can help me to change my future :P</title>
		<link>http://dafizilla.wordpress.com/2009/07/16/now-users-can-help-me-to-change-my-future-p/</link>
		<comments>http://dafizilla.wordpress.com/2009/07/16/now-users-can-help-me-to-change-my-future-p/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 09:05:34 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[donations]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=627</guid>
		<description><![CDATA[

Firefox Add-ons Contributions Pilot
The importance of donations for indipendent software developers
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=627&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:center;">
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-633" title="computer_money" src="http://dafizilla.files.wordpress.com/2009/07/computer_money.jpg?w=300&#038;h=215" alt="computer_money" width="300" height="215" /></p>
<h3><a href="http://blog.mozilla.com/addons/2009/07/15/firefox-add-ons-contributions-pilot/">Firefox Add-ons Contributions Pilot</a></h3>
<h3><a href="http://dafizilla.wordpress.com/2008/07/27/the-importance-of-donations-for-indipendent-software-developers/">The importance of donations for indipendent software developers</a></h3>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/627/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=627&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2009/07/16/now-users-can-help-me-to-change-my-future-p/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2009/07/computer_money.jpg?w=300" medium="image">
			<media:title type="html">computer_money</media:title>
		</media:content>
	</item>
	</channel>
</rss>
