<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Snippets code from my daily experience &#187; mozilla</title>
	<atom:link href="http://dafizilla.wordpress.com/category/mozilla/feed/" rel="self" type="application/rss+xml" />
	<link>http://dafizilla.wordpress.com</link>
	<description>Just another unnecessary code resource blog</description>
	<lastBuildDate>Sun, 20 Dec 2009 10:00:19 +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&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Snippets code from my daily experience &#187; mozilla</title>
		<link>http://dafizilla.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dafizilla.wordpress.com/osd.xml" title="Snippets code from my daily experience" />
		<item>
		<title>Komodo ViewAbout</title>
		<link>http://dafizilla.wordpress.com/2008/11/21/komodo-viewabout/</link>
		<comments>http://dafizilla.wordpress.com/2008/11/21/komodo-viewabout/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 17:42:53 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=341</guid>
		<description><![CDATA[After reading ViewAbout post written by Gary Kwong I was curious to see what Komodo should have shown.
Komodo doesn&#8217;t require to write an extension to implement a similar feature, it is sufficient to write a macro  
So I&#8217;ve written the code that adds a popup menu inside Help menu and amazing it worked immediately [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=341&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After reading <a href="http://www.rumblingedge.com/2008/11/21/viewabout/">ViewAbout</a> post written by <a href="http://www.rumblingedge.com/">Gary Kwong</a> I was curious to see what Komodo should have shown.</p>
<p>Komodo doesn&#8217;t require to write an extension to implement a similar feature, it is sufficient to write a macro <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So I&#8217;ve written the code that adds a popup menu inside Help menu and amazing it worked immediately <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>The macro can be triggered at startup but the menu will be added only on first open window because Komodo doesn&#8217;t have a &#8220;on open new window&#8221; macro event but it can be easily simulated adding a listener.</p>
<p>The code shown below is the complete Komodo Javascript macro, nothing else is necessary. (<span style="color:#ff0000;">EDIT</span> Thanks to Mook to point me how to remove the hardcoded <em>abouts</em> list)</p>
<p><span style="color:#781f87;"><a href="http://dafizilla.files.wordpress.com/2008/11/aboutview.jpg"><img class="aligncenter size-full wp-image-345" title="aboutview" src="http://dafizilla.files.wordpress.com/2008/11/aboutview.jpg?w=500&#038;h=305" alt="aboutview" width="500" height="305" /></a></span></p>
<pre><span style="font-size:12px;">
<span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">abouts</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span style="color:#781f87;">[];</span>
<span style="color:#871f78;">for</span><span class="default">&nbsp;</span><span style="color:#781f87;">(</span><span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">c</span><span class="default">&nbsp;</span><span style="color:#871f78;">in</span><span class="default">&nbsp;</span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">classes</span><span style="color:#781f87;">)</span><span class="default">&nbsp;</span><span style="color:#781f87;">{</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">m</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">c</span><span style="color:#781f87;">.</span><span class="identifiers">split</span><span style="color:#781f87;">(</span><span style="color:#c86400;">/=/</span><span style="color:#781f87;">);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">if</span><span class="default">&nbsp;</span><span style="color:#781f87;">(</span><span class="identifiers">m</span><span style="color:#781f87;">[</span><span style="color:#8b0000;">0</span><span style="color:#781f87;">]</span><span class="default">&nbsp;</span><span style="color:#781f87;">==</span><span class="default">&nbsp;</span><span style="color:#23238e;">"@mozilla.org/network/protocol/about;1?what"</span><span style="color:#781f87;">)</span><span class="default">&nbsp;</span><span style="color:#781f87;">{</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">if</span><span class="default">&nbsp;</span><span style="color:#781f87;">(</span><span class="identifiers">m</span><span style="color:#781f87;">[</span><span style="color:#8b0000;">1</span><span style="color:#781f87;">])</span><span class="default">&nbsp;</span><span style="color:#781f87;">{</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">abouts</span><span style="color:#781f87;">.</span><span class="identifiers">push</span><span style="color:#781f87;">(</span><span class="identifiers">m</span><span style="color:#781f87;">[</span><span style="color:#8b0000;">1</span><span style="color:#781f87;">]);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#781f87;">}</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#781f87;">}</span>
<span style="color:#781f87;">}</span>

<span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">menuAbouts</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">createElement</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"menu"</span><span style="color:#781f87;">);</span>
<span class="identifiers">menuAbouts</span><span style="color:#781f87;">.</span><span class="identifiers">setAttribute</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"label"</span><span style="color:#781f87;">,</span><span class="default">&nbsp;</span><span style="color:#23238e;">"All&nbsp;abouts:"</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">menuAboutsPopup</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">createElement</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"menupopup"</span><span style="color:#781f87;">);</span>
<span class="identifiers">menuAbouts</span><span style="color:#781f87;">.</span><span class="identifiers">appendChild</span><span style="color:#781f87;">(</span><span class="identifiers">menuAboutsPopup</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">helpMenuSeparator</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">getElementById</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"menu_helpShowKeybindings"</span><span style="color:#781f87;">).</span><span class="identifiers">nextSibling</span><span style="color:#781f87;">;</span>
<span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">helpMenu</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">helpMenuSeparator</span><span style="color:#781f87;">.</span><span class="identifiers">parentNode</span><span style="color:#781f87;">;</span>
<span class="identifiers">helpMenu</span><span style="color:#781f87;">.</span><span class="identifiers">insertBefore</span><span style="color:#781f87;">(</span><span class="identifiers">menuAbouts</span><span style="color:#781f87;">,</span><span class="default">&nbsp;</span><span class="identifiers">helpMenuSeparator</span><span style="color:#781f87;">);</span>

<span style="color:#871f78;">for</span><span class="default">&nbsp;</span><span style="color:#781f87;">(</span><span class="identifiers">i</span><span class="default">&nbsp;</span><span style="color:#871f78;">in</span><span class="default">&nbsp;</span><span class="identifiers">abouts</span><span style="color:#781f87;">)</span><span class="default">&nbsp;</span><span style="color:#781f87;">{</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">menuitem</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">document</span><span style="color:#781f87;">.</span><span class="identifiers">createElement</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"menuitem"</span><span style="color:#781f87;">);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">menuitem</span><span style="color:#781f87;">.</span><span class="identifiers">id</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">abouts</span><span style="color:#781f87;">[</span><span class="identifiers">i</span><span style="color:#781f87;">];</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">menuitem</span><span style="color:#781f87;">.</span><span class="identifiers">openAbout</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">openAbout</span><span style="color:#781f87;">;</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">menuitem</span><span style="color:#781f87;">.</span><span class="identifiers">setAttribute</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"label"</span><span style="color:#781f87;">,</span><span class="default">&nbsp;</span><span class="identifiers">abouts</span><span style="color:#781f87;">[</span><span class="identifiers">i</span><span style="color:#781f87;">]);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">menuitem</span><span style="color:#781f87;">.</span><span class="identifiers">setAttribute</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"oncommand"</span><span style="color:#781f87;">,</span><span class="default">&nbsp;</span><span style="color:#23238e;">"this.openAbout('"</span><span class="default">&nbsp;</span><span style="color:#781f87;">+</span><span class="default">&nbsp;</span><span class="identifiers">abouts</span><span style="color:#781f87;">[</span><span class="identifiers">i</span><span style="color:#781f87;">]</span><span class="default">&nbsp;</span><span style="color:#781f87;">+</span><span class="default">&nbsp;</span><span style="color:#23238e;">"')"</span><span style="color:#781f87;">);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">menuAboutsPopup</span><span style="color:#781f87;">.</span><span class="identifiers">appendChild</span><span style="color:#781f87;">(</span><span class="identifiers">menuitem</span><span style="color:#781f87;">);</span>
<span style="color:#781f87;">}</span>

<span style="color:#871f78;">function</span><span class="default">&nbsp;</span><span class="identifiers">openAbout</span><span style="color:#781f87;">(</span><span class="identifiers">about</span><span style="color:#781f87;">)</span><span class="default">&nbsp;</span><span style="color:#781f87;">{</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">docSvc</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">classes</span><span style="color:#781f87;">[</span><span style="color:#23238e;">'@activestate.com/koDocumentService;1'</span><span style="color:#781f87;">]</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#781f87;">.</span><span class="identifiers">getService</span><span style="color:#781f87;">(</span><span class="identifiers">Components</span><span style="color:#781f87;">.</span><span class="identifiers">interfaces</span><span style="color:#781f87;">.</span><span class="identifiers">koIDocumentService</span><span style="color:#781f87;">);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#871f78;">var</span><span class="default">&nbsp;</span><span class="identifiers">doc</span><span class="default">&nbsp;</span><span style="color:#781f87;">=</span><span class="default">&nbsp;</span><span class="identifiers">docSvc</span><span style="color:#781f87;">.</span><span class="identifiers">createDocumentFromURI</span><span style="color:#781f87;">(</span><span style="color:#23238e;">"about:"</span><span class="default">&nbsp;</span><span style="color:#781f87;">+</span><span class="default">&nbsp;</span><span class="identifiers">about</span><span style="color:#781f87;">);</span>
<span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="identifiers">ko</span><span style="color:#781f87;">.</span><span class="identifiers">views</span><span style="color:#781f87;">.</span><span class="identifiers">manager</span><span style="color:#781f87;">.</span><span class="identifiers">topView</span><span style="color:#781f87;">.</span><span class="identifiers">createViewFromDocument</span><span style="color:#781f87;">(</span><span class="identifiers">doc</span><span style="color:#781f87;">,</span><span class="default">&nbsp;</span><span style="color:#23238e;">"browser"</span><span style="color:#781f87;">);</span>
<span style="color:#781f87;">}</span>

</span></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=341&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/11/21/komodo-viewabout/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2008/11/aboutview.jpg" medium="image">
			<media:title type="html">aboutview</media:title>
		</media:content>
	</item>
		<item>
		<title>Simplify Mozilla profiles usage</title>
		<link>http://dafizilla.wordpress.com/2008/10/27/simplify-mozilla-profiles-usage/</link>
		<comments>http://dafizilla.wordpress.com/2008/10/27/simplify-mozilla-profiles-usage/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 13:00:34 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[songbird]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=33</guid>
		<description><![CDATA[I use many applications written using Mozilla technologies, these applications support the so called profiles allowing users to run multiple instances of same application but using different &#8220;configuration&#8221; environments.
As developer I use profiles to test extensions without compromise the integrity of my main env.
Running multiple profiles is described in million of places so I don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=33&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I use many applications written using Mozilla technologies, these applications support the so called <em>profiles</em> allowing users to run multiple instances of same application but using different &#8220;configuration&#8221; environments.</p>
<p>As developer I use profiles to test extensions without compromise the integrity of my main env.</p>
<p><a href="http://support.mozilla.com/en-US/kb/Profiles">Running multiple profiles is described in million of places</a> so I don&#8217;t annoy you but I describe my own solution based on a <a href="http://www.gnu.org/software/bash/">bash</a> script that hides details.</p>
<p>Creating bash scripts to run separated application profiles requires only a bit of shell programming experience but it is a repetitive task and can be boring when you need to run different version for example firefox 2 and firefox 3, you manually must write the same script modifing only the application path.</p>
<p>My approach allow to configure applications to run in a single file and then create automatically the necessary scripts.</p>
<p>Suppose you want to run a new songbird profile, using my script you can write:</p>
<pre>dave@dafihome:~$ sb</pre>
<p>The sb script creates a new separated profile on a configured directory with a default name, but suppose you need a second (third and so on) songbird profile you can pass your preferred name</p>
<pre>dave@dafihome:~$ sb testVSW</pre>
<p>Now you need to test also Firefox 2.x and Firefox 3.x profiles, simply write</p>
<pre>dave@dafihome:~$ ff20 testVSW
dave@dafihome:~$ ff30 testVSW</pre>
<p>So you have three <strong>separated</strong> profiles with same name testVSW, how they don&#8217;t clash? The real name created by script uses the application prefix so the directories names are</p>
<ul>
<li><span style="color:#ff0000;">sb</span>testVSW</li>
<li><span style="color:#ff0000;">ff20</span>testVSW</li>
<li> <span style="color:#ff0000;">ff30</span>testVSW</li>
</ul>
<p>Do you need Komodo 4.4.x and 5.x profiles? Again</p>
<pre>dave@dafihome:~$ ko4
dave@dafihome:~$ ko5 italian-locale</pre>
<h3>Configuring applications</h3>
<p>The names sb, ff20, ff30, ko4 and ko5 are configured in &#8216;~/.moz_profilerc&#8217;</p>
<p>The file format is very similar to <a href="http://en.wikipedia.org/wiki/Fstab">fstab</a> and contains three columns describing applications.</p>
<p>The first column contains the type of application.</p>
<p>At this time it can be set to mozapp or komodo, this is necessary because mozilla apps uses MOZ_NO_REMOTE env variable to run separated profiles instead komodo uses KOMODO_USERDATADIR.</p>
<p>The second column is the script name user runs from command line (and is also the prefix added to profile directory names)</p>
<p>The third column contains the application absolute path</p>
<p>Below is shown my configuration</p>
<pre>mozapp     ff30          /opt/devel/mozilla/ff30/firefox
mozapp     ff30en        /opt/devel/mozilla/ff30en/firefox
# ff20 refers to installed firefox
mozapp     ff20          /usr/bin/firefox</pre>
<pre>mozapp     flock         /opt/devel/mozilla/flock/flock

mozapp     komp          /opt/devel/mozilla/kompozer/kompozer</pre>
<pre>mozapp     sb            /opt/devel/mozilla/Songbird/songbird
mozapp     mccoy         /opt/devel/mozilla/mccoy/mccoy</pre>
<pre>komodo     ko5           /opt/devel/mozilla/ko5/bin/komodo
komodo     ko4           /opt/devel/mozilla/Komodo-Edit-4/bin/komodo</pre>
<h3>Profile destination directories</h3>
<p>I group profiles by extension, for example inside ViewSourceWith source directory I have a &#8216;profile&#8217; subdirectory where all profiles are written, this is specified in &#8216;~/.moz_profilerc&#8217;</p>
<pre># Directory where profiles will be created, inside profile present on current directory
profileDir      $PWD/profile

# If true create profileDir silently, otherwise generate error
profileDirCreateSilently    false</pre>
<p>It is possible to write <strong>all</strong> profiles inside a specific directory setting profileDir</p>
<pre>profileDir      /devel/mozapp/profiles</pre>
<h3>Scripts destination directories</h3>
<p>The scripts sb, ff20, ff30, ko4, ko5 are symbolic links, they are generally created inside a directory present on $PATH env variable.</p>
<p>I prefer to add them inside /usr/local/bin (this should require to be root)</p>
<pre># Directory where links will be created, generally resides in env PATH
linkDestDir     /usr/local/bin</pre>
<h3>The script moz_profile.sh</h3>
<p>All operations are done using the script moz_profile.sh that allows to edit configuration file and create applications scripts.</p>
<p>Editing configuration (it opens the editor set on $VISUAL or $EDITOR env)</p>
<pre>dave@dafihome:~$ moz_profile.sh -e</pre>
<p>Creating scripts</p>
<pre>dave@dafihome:~$ moz_profile.sh -c</pre>
<p>This script greatly simplifies switching from profiles, obviously occupied disk space grows but after a profile is no more needed you can delete it without risks</p>
<p>The script, that works also on <a href="http://www.cygwin.com/">Cygwin</a>, is present on SVN repo at <a href="http://dafizilla.svn.sourceforge.net/viewvc/dafizilla/trunk/common/moz_profile_switcher/moz_profile.sh?revision=114&amp;view=markup">moz_profile.sh</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=33&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/10/27/simplify-mozilla-profiles-usage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>XPCOM components, extensions and Visual C++ Express</title>
		<link>http://dafizilla.wordpress.com/2008/10/04/xpcom-components-extensions-and-visual-c-express/</link>
		<comments>http://dafizilla.wordpress.com/2008/10/04/xpcom-components-extensions-and-visual-c-express/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 13:01:46 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[vc++]]></category>
		<category><![CDATA[xpcom]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=167</guid>
		<description><![CDATA[I&#8217;ve written a little XPCOM component that worked immediately thanks to the good tutorial written by Mark Finkle.
The extension stopped to work when I&#8217;ve installed it on computer different from my development environment, the error in console was
Failed to load XPCOM component: c:\Documents and Settings\&#8230;
The solution was to statically link the C/C++ runtime and add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=167&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve written a little XPCOM component that worked immediately thanks to the good <a href="http://starkravingfinkle.org/blog/2006/10/mozilla-platform-xpcom-in-c/">tutorial</a> written by Mark Finkle.</p>
<p>The extension stopped to work when I&#8217;ve installed it on computer different from my development environment, the error in console was</p>
<blockquote><p>Failed to load XPCOM component: c:\Documents and Settings\&#8230;</p></blockquote>
<p>The solution was to statically link the C/C++ runtime and add msvcrt to nodefaultlib switch.</p>
<p><a href="http://www.microsoft.com/express/vc/">VC++ Express 2008</a> (or above??) users must set from Configuration Properties</p>
<ul>
<li>C/C++ -&gt; Code Generation -&gt; Runtime Library = Multi-threaded (/MT)</li>
<li>Linker -&gt; Input -&gt; Ignore Specific Library = MSVCRT.LIB</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=167&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/10/04/xpcom-components-extensions-and-visual-c-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Open a tab using FUEL on Firefox 3</title>
		<link>http://dafizilla.wordpress.com/2008/06/29/open-a-tab-using-fuel-on-firefox-3/</link>
		<comments>http://dafizilla.wordpress.com/2008/06/29/open-a-tab-using-fuel-on-firefox-3/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 15:41:15 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fuel]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[nsIIOService]]></category>
		<category><![CDATA[xpcom]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=61</guid>
		<description><![CDATA[I want to migrate to Firefox 3 and stop compatibility with FF2.x so I&#8217;m starting to use intensively FUEL.
Today I&#8217;ve replaced the old &#8220;open new tab&#8221; code shown below
newTab : function (url) {
const newTab = getBrowser().addTab(url);
getBrowser().selectedTab = newTab;
}
With the FUEL version
newTab : function (url) {
var uri = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService)
.newURI(url, null, null);
Application.activeWindow.open(uri);
}
Onestly I found so complicated the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=61&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I want to migrate to Firefox 3 and stop compatibility with FF2.x so I&#8217;m starting to use intensively <a href="http://developer.mozilla.org/en/docs/FUEL">FUEL</a>.</p>
<p>Today I&#8217;ve replaced the old &#8220;open new tab&#8221; code shown below</p>
<p>newTab : function (url) {<br />
const newTab = getBrowser().addTab(url);<br />
getBrowser().selectedTab = newTab;<br />
}</p>
<p>With the FUEL version</p>
<p>newTab : function (url) {<br />
var uri = Components.classes["@mozilla.org/network/io-service;1"]<br />
.getService(Components.interfaces.nsIIOService)<br />
.newURI(url, null, null);<br />
Application.activeWindow.open(uri);<br />
}</p>
<p>Onestly I found so complicated the FUEL approach.</p>
<p>Why I need to create an URI?</p>
<p>Why <a href="http://developer.mozilla.org/en/docs/FUEL:Window#open.28.29">open</a> doesn&#8217;t work with a simple string?</p>
<p>BTW FUEL is great</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=61&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/06/29/open-a-tab-using-fuel-on-firefox-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Komodo and readonly behavior</title>
		<link>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/</link>
		<comments>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 10:30:03 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[morekomodo]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[scintilla]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=44</guid>
		<description><![CDATA[Komodo editor handles read-only in a incomplete manner, at least for me.
The truly question is &#8220;what read-only means?&#8221; A file can be read-only but also an editor buffer can be read-only.
Komodo handles read-only files is a smart way, it opens file and shows a little lock on editor tab but user can edit the text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=44&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Komodo editor handles <i>read-only</i> in a incomplete manner, at least for me.</p>
<p>The truly question is &#8220;what <i>read-only</i> means?&#8221; A file can be read-only but also an editor buffer can be read-only.</p>
<p>Komodo handles read-only files is a smart way, it opens file and shows a little lock on editor tab but user can edit the text buffer, it isn&#8217;t marked as read-only.</p>
<p>If user tries to save a warning message pops up allowing to choose if saving must be forced or cancelled.</p>
<p>Cool sure but I want to mark editor buffer as temporary read-only irrespective to file flag, this feature is missing on Komodo but scintilla has a readonly property.</p>
<p>I&#8217;ve added to <a href="http://dafizilla.sourceforge.net/morekomodo/">MoreKomodo</a> the ability to mark editor buffers as &#8220;edit locked&#8221;.</p>
<p>I think &#8220;edit locked&#8221; sounds good then &#8220;buffer read-only&#8221;.</p>
<p>The code is straightforward, simply sent the scintilla readonly property as shown below</p>
<pre>     onToogleLockEdit : function() {
        var view = ko.views.manager.currentView;
        view.scintilla.scimoz.readOnly = !view.scintilla.scimoz.readOnly;
    }</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=44&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/03/15/komodo-and-readonly-behavior/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>XBL, CSS selectors priority and Firefox 3</title>
		<link>http://dafizilla.wordpress.com/2008/03/11/xbl-css-selectors-priority-and-firefox-3/</link>
		<comments>http://dafizilla.wordpress.com/2008/03/11/xbl-css-selectors-priority-and-firefox-3/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 18:58:43 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[xbl]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=42</guid>
		<description><![CDATA[I wrote a little XBL component to allow menuitems to have images centered, I added it to Firefox 2 browser context menu and worked fine immediately, after a while I installed component on Firefox 3 beta 4 and surprisingly the menuitem didn&#8217;t show the image  
I&#8217;ve asked help on Mozilla IRC and after about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=42&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wrote a little XBL component to allow menuitems to have images centered, I added it to Firefox 2 browser context menu and worked fine immediately, after a while I installed component on Firefox 3 beta 4 and surprisingly the menuitem didn&#8217;t show the image <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I&#8217;ve asked help on <a href="irc://irc.mozilla.org/extdev">Mozilla IRC</a> and after about an hour the mistery was revealed.</p>
<p>The innocent CSS declaration shown below works fine on Firefox 2</p>
<p>.<font color="#008b8b">menuitem-image-center</font> <font color="#871f78">{</font><br />
-moz-binding<font color="#871f78">: url(</font><font color="#23238e">&#8216;chrome://morekomodo/content/bindings/menu.xml#menuitemImageCenterBinding&#8217;</font><font color="#871f78">);</font><br />
<font color="#871f78">}</font></p>
<p>but requires a little modification on Firefox 3 beta 5pre (at this time the latest available)</p>
<p>.<font color="#008b8b">menuitem-image-center</font> {<br />
-moz-binding<font color="#871f78">: url(</font><font color="#23238e">&#8216;chrome://morekomodo/content/bindings/menu.xml#menuitemImageCenterBinding&#8217;</font><font color="#871f78">)</font><br />
<font color="#ff0000">!important</font>;<br />
<font color="#871f78">}</font></p>
<p>You must notice the selector without <font color="#ff0000">!important</font> attribute works on Firefox 3 when applied on menus different from browser context menu.</p>
<p>I suspect the browser context menu should have some special treatment on new Firefox&#8230;</p>
<p><a href="http://dafizilla.files.wordpress.com/2008/03/aa.jpg" title="Context menu"></a></p>
<div style="text-align:center;"><a href="http://dafizilla.files.wordpress.com/2008/03/aa.jpg" title="Context menu"><img src="http://dafizilla.files.wordpress.com/2008/03/aa.jpg" alt="Context menu" /></a></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=42&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/03/11/xbl-css-selectors-priority-and-firefox-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>

		<media:content url="http://dafizilla.files.wordpress.com/2008/03/aa.jpg" medium="image">
			<media:title type="html">Context menu</media:title>
		</media:content>
	</item>
		<item>
		<title>Extend Firefox 2 Contest and other surprises</title>
		<link>http://dafizilla.wordpress.com/2008/02/14/extend-firefox-2-contest-and-other-surprises/</link>
		<comments>http://dafizilla.wordpress.com/2008/02/14/extend-firefox-2-contest-and-other-surprises/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 19:06:18 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[openkomodo]]></category>
		<category><![CDATA[table2clipboard]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=40</guid>
		<description><![CDATA[January and February are very important months for my programming activites.
In January ActiveState guys gave me a KomodoIDE license for my contribution to their OpenKomodo wiki, a great unexpected surprise, the first one.
A couple of days ago Mozilla published the Extend Firefox 2 Contest and I discovered my name on &#8220;Runners up&#8221; list, a great
unexpected [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=40&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>January and February are very important months for my programming activites.</p>
<p>In January <a href="http://www.activestate.com/">ActiveState</a> guys gave me a <a href="http://www.activestate.com/Products/komodo_ide/">KomodoIDE</a> license for my contribution to their <a href="http://wiki.openkomodo.com/index.php/Main_Page">OpenKomodo wiki</a>, a great unexpected surprise, the first one.</p>
<p>A couple of days ago Mozilla published the <a href="http://blog.mozilla.com/extendfirefox/2008/02/12/announcing-the-extend-firefox-2-winners/">Extend Firefox 2 Contest</a> and I discovered my name on &#8220;Runners up&#8221; list, a great<br />
unexpected surprise, the second one.<br />
I can figure out <a href="http://dafizilla.sourceforge.net/viewsourcewith/index.php">ViewSourceWith</a> is the winner, no! The winner is <a href="http://dafizilla.sourceforge.net/table2clip/index.php">Table2Clipboard</a> my outsider extension,  a great unexpected surprise, the third one.</p>
<p>I&#8217;m happy that other people appreciates my work.</p>
<p>My feed reader alerts me, LifeHacker has new contents, I take a look and found <a href="http://lifehacker.com/356467/copy-tables-and-keep-their-formatting-with-table2clipboard">they speak</a> about Table2Clipboard,  a great unexpected surprise, the fourth one.</p>
<p>ActivateState gave me a KomodoIDE license, EF2 prices contain a KomodoIDE license, now I have two KomodoIDE license, another surprise the fifth <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Mumble mumble&#8230; may I sell the unused license?</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=40&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/02/14/extend-firefox-2-contest-and-other-surprises/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox 3 and broken extensions</title>
		<link>http://dafizilla.wordpress.com/2007/12/20/firefox-3-and-broken-extensions/</link>
		<comments>http://dafizilla.wordpress.com/2007/12/20/firefox-3-and-broken-extensions/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 17:10:51 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[nsIStyleSheetService]]></category>
		<category><![CDATA[xbl]]></category>
		<category><![CDATA[richscrollbar extension]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/2007/12/20/firefox-3-and-broken-extensions/</guid>
		<description><![CDATA[When I started Richscrollbar (RSB for friends) development I could not figure out a so difficult programming life cycle.
After all its task is simple, add extra buttons to browser scrollbars to speedup movements inside web page.
Gecko is affect by a bug that reduces RSB productivity dramatically but I&#8217;ve created it anyway.
Now I discover RSB totally [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=34&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I started <a href="http://dafizilla.sourceforge.net/richscrollbar/index.php">Richscrollbar</a> (RSB for friends) development I could not figure out a so difficult programming life cycle.</p>
<p>After all its task is simple, add extra buttons to browser scrollbars to speedup movements inside web page.</p>
<p>Gecko is affect by a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=236839">bug</a> that reduces RSB productivity dramatically but I&#8217;ve created it anyway.</p>
<p>Now I discover RSB totally doesn&#8217;t work with Firefox 3 beta 2, Mozilla guys changed API and I suspect introduced some regression.</p>
<p>Obviously it is impossibile to explain the problem to Mozilla, they are so busy to fight against the world.</p>
<p>After some frustrating debug I found the problems and fixed them.</p>
<p>Problem nr 1.</p>
<p>The <a href="http://www.xulplanet.com/references/xpcomref/ifaces/nsIStyleSheetService.html">nsIStyleSheetService.USER_AGENT</a> has changed behaviour without documenting it (at least at this date)</p>
<p>I used USER_SHEET in Firefox 2 but under FF3 the same code simply doesn&#8217;t work.</p>
<p>I&#8217;ve replaced it with the other flag AGENT_SHEET and magically RSB started to work.</p>
<p>Where can I read the new behaviour? Damned Mozilla <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Problem nr 2.</p>
<p>An horizontal useless scrollbar is always visible only on tab window open at browser startup, if user opens new tab and/or windows this dumb doesn&#8217;t appear, sigh!</p>
<p>I found a reasonable workaround hiding the scrollbar inside the notificationbox component.</p>
<p>I hope to publish the fixed RSB on this weekend.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=34&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2007/12/20/firefox-3-and-broken-extensions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox 3, Dr. McCoy and Mr. Spock</title>
		<link>http://dafizilla.wordpress.com/2007/11/02/firefox-3-dr-mccoy-and-mr-spock/</link>
		<comments>http://dafizilla.wordpress.com/2007/11/02/firefox-3-dr-mccoy-and-mr-spock/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 10:31:03 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/2007/11/02/firefox-3-dr-mccoy-and-mr-spock/</guid>
		<description><![CDATA[Firefox 3 will introduce a new mechanism to ensure update urls are safe.
Every update url used into extension&#8217;s manifest must use httpS certified sites.
Due to the fact not all developers can  buy certificate or use httpS site a second mechanism allows to sign extension and server update file.
I host my extensions on Sourceforge but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=31&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Firefox 3 will introduce a new mechanism to ensure update urls are safe.</p>
<p>Every update url used into extension&#8217;s manifest must use httpS certified sites.</p>
<p>Due to the fact not all developers can  buy certificate or use httpS site a second mechanism allows to sign extension and server update file.</p>
<p>I host my extensions on Sourceforge but <a href="http://sourceforge.net/community/forum/topic.php?id=307&amp;page&amp;replies=3#post-765">Sourceforge doens&#8217;t support https</a> so I decided to sign extensions.</p>
<p>Mozilla guys had created <a href="http://developer.mozilla.org/en/docs/McCoy">McCoy</a> an useful UI from which you can generate public keys and sign files.</p>
<p>McCoy UI doesn&#8217;t fit my automated xpi creation process, I prefer a command line approach <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Well, Star Trek&#8217;s Dr. McCoy has a good friend, the vulcanian Mr. Spock <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>From the genius of <a href="http://sameplace.cc/en/blogs/bard">bard</a>, the <a href="http://sameplace.cc/">Sameplace.cc</a>&#8217;s author, borns Spock the McCoy command line missing piece.</p>
<p>Now you can create public keys from cool McCoy UI and complete process from command line with Spock.</p>
<p>Read more at <a href="http://hyperstruct.net/projects/spock">hyperstruct</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=31&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2007/11/02/firefox-3-dr-mccoy-and-mr-spock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome OpenKomodo</title>
		<link>http://dafizilla.wordpress.com/2007/11/01/welcome-openkomodo/</link>
		<comments>http://dafizilla.wordpress.com/2007/11/01/welcome-openkomodo/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 10:15:24 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[xul]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/2007/11/01/welcome-openkomodo/</guid>
		<description><![CDATA[Finally Komodo is open!
More informations at http://www.openkomodo.com/
Komodo isn&#8217;t a promise it is reality.
Open source === Open minds
Why I love  it?
I use shanec words
#It allows you to work the way you want to
Sure, you don&#8217;t need to fit to your editor but your editor fits to you.
 #It&#8217;s built for developers by developers
I&#8217;ve used ActivePerl [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=30&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally Komodo is open!</p>
<p>More informations at <a href="http://www.openkomodo.com/">http://www.openkomodo.com/</a></p>
<p>Komodo isn&#8217;t a promise it is reality.</p>
<p>Open source === Open minds</p>
<p>Why I love  it?</p>
<p>I use <a href="http://blogs.activestate.com/shanec/">shanec</a> <a href="http://community.activestate.com/forum-topic/open-komodo-now-open">words</a></p>
<p><em>#It allows you to work the way you want to</em></p>
<p>Sure, you don&#8217;t need to fit to your editor but your editor fits to you.</p>
<p><em> #It&#8217;s built for developers by developers</em></p>
<p>I&#8217;ve used ActivePerl for years a step ahead over perl language, a tool designed by programmers with my same needs</p>
<p>Now OpenKomodo is the new frontier, the missing piece: THE EDITOR.</p>
<p>D2D is the right definition: Developer2Developer</p>
<p><em># It&#8217;s easily extensible using XML, JavaScript, and if you like, Python, and C++ </em></p>
<p>Ok OpenKomodo isn&#8217;t perfect for my needs but I can reuse my skills to enhance my <strong>programming experience</strong></p>
<p>Use well know technologies to plug new behaviours, I love XUL and you?</p>
<p>The big problems with OpenKomodo are startup-speed and memory usage but these problems are related to Jecko runtime not to ActiveState&#8217;s guys implementation.</p>
<p align="left">Do you think I&#8217;m a ActiveState employee? No! I&#8217;m a programmer that finally founds his programming home.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=30&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2007/11/01/welcome-openkomodo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5759d7f64a710425e4ab730ba7a8311e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dafi</media:title>
		</media:content>
	</item>
	</channel>
</rss>