<?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; songbird</title>
	<atom:link href="http://dafizilla.wordpress.com/category/songbird/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; songbird</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>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>Central extensions repositories</title>
		<link>http://dafizilla.wordpress.com/2008/03/23/central-extensions-repositories/</link>
		<comments>http://dafizilla.wordpress.com/2008/03/23/central-extensions-repositories/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 20:21:00 +0000</pubDate>
		<dc:creator>dafi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flock]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[songbird]]></category>

		<guid isPermaLink="false">http://dafizilla.wordpress.com/?p=46</guid>
		<description><![CDATA[I spend my time to created extensions based on Gecko expecially for

Firefox, Thunderbird and SeaMonkey (all under Mozilla umbrella)
Songbird
Flock
KomodoEdit/KomodoIDE

Every product has its own developer website where you can upload your extensions (Komodo hasn&#8217;t a dedicated upload zone).
From a visitor/user feedback&#8217;s point of view Flock is the best.
Flock addons site is cool I love it, extension [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=46&subd=dafizilla&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I spend my time to created extensions based on Gecko expecially for</p>
<ul>
<li>Firefox, Thunderbird and SeaMonkey (all under Mozilla umbrella)</li>
<li>Songbird</li>
<li>Flock</li>
<li>KomodoEdit/KomodoIDE</li>
</ul>
<p>Every product has its own developer website where you can upload your extensions (Komodo hasn&#8217;t a dedicated upload zone).</p>
<p><i>From a visitor/user feedback&#8217;s point of view Flock is the best.</i></p>
<p>Flock <a href="https://extensions.flock.com/addons">addons</a> site is cool I love it, extension informations are very complete, you can see also the locales supported by extensions.</p>
<p>Songbird has a cool <a href="http://addons.songbirdnest.com/">addons</a> site simple and very quick, extension informations are complete.</p>
<p>Mozilla with <a href="https://addons.mozilla.org/it/firefox/">AMO</a> is the most important but is also the worst.</p>
<p>The outsider KomodoEdit <a href="http://community.activestate.com/addons">addons</a> site not yet really exists, registered users can&#8217;t upload their extensions.<br />
I hope Komodo guys take a look at Flock addons site if they decide to create a similar place.</p>
<p><i>From a <b>developer</b> feedback&#8217;s point of view Songbird is the best.</i><br />
After signup you can immediately upload and publish extension on Songbird site, the upload process is easy and publication policy very developer friendly.</p>
<p>AMO upload mechanism is simple but publication mechanism is awful. I don&#8217;t like its approval mechanism based on sandbox, my <a href="http://dafizilla.sourceforge.net/richfeedbutton/index.php">RichFeedButton</a> waits approval for an year.</p>
<p>Flock allows to upload extensions immediately after signup but publication waits approval, after a couple of days I&#8217;m yet waiting <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The most mature and important addons site AMO, has IMHO the worst user/developer experience.</p>
<p>I don&#8217;t like so much Flock but it has a great develope/user website</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dafizilla.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dafizilla.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dafizilla.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dafizilla.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dafizilla.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dafizilla.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dafizilla.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dafizilla.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dafizilla.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dafizilla.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dafizilla.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dafizilla.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dafizilla.wordpress.com&blog=887576&post=46&subd=dafizilla&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dafizilla.wordpress.com/2008/03/23/central-extensions-repositories/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>
	</channel>
</rss>