<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewInstance &#187; Firefox</title>
	<atom:link href="http://en.newinstance.it/category/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://en.newinstance.it</link>
	<description>A tech blog by Luigi R. Viggiano</description>
	<lastBuildDate>Tue, 07 Sep 2010 20:44:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Google Browser Sync plugin for Firefox</title>
		<link>http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/</link>
		<comments>http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 23:10:50 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Lifehacks]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/</guid>
		<description><![CDATA[I just discovered a Firefox plugin that promises to be fantastic. I&#8217;ve not tried it for enough time to say that it really rocks as it seems, but I&#8217;ve never been disappointed by google stuff. Google Browser Sync is able to synchronize your browser bookmarks, cookies, passwords, etc. between multiple browsers. It&#8217;s much useful if [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.google.com/tools/firefox/browsersync/browsersyncmini.gif" alt="Google Browser Sync plugin for Firefox" /></p>
<p>I just discovered a Firefox plugin that promises to be fantastic. I&#8217;ve not tried it for enough time to say that it really rocks as it seems, but I&#8217;ve never been disappointed by google stuff. <a href="http://www.google.com/tools/firefox/browsersync/index.html">Google Browser Sync</a> is able to synchronize your browser bookmarks, cookies, passwords, etc. between multiple browsers. It&#8217;s much useful if you use different computers at office and at home.<br />
Yes, you can keep in synch your security information&#8230; <em>if you trust google</em>. By the way you can choose to only keep bookmarks, that I think it is the most needed feature. </p>
<p>Since now I used <a href="https://addons.mozilla.org/firefox/2410/">Foxmarks Bookmark Synchronizer</a>, and it works very well. A nice thing about it is that you can access your bookmarks also from a website; so that if you go in an internet point you still can browse your bookmarks without any plugin or firefox too. </p>
<p>What Google Browser Sync is missing:</p>
<ol>
<li>As far as I know it doesn&#8217;t have a website for accessing this information online without firefox.
<li>Social bookmarking, in the <a href="http://del.icio.us/">del.icio.us</a> way also has to come. </li>
</li>
<li>It does not synchronizes plugins. I cannot wonder why: it should not be much different than syncing other stuff, and it can be useful too.</li>
<li>Knowing your passwords virtually lets google able to provide a universal single sign-on mechanism for the web. It won&#8217;t be bad, and it could worth the pain to share (some) passwords with google. I trust them enough to keep all my emails on gmail, so won&#8217;t be much different to store also passwords on it. A universal single sign-on would be great for the web.</li>
</ol>
<p>Other Google plugins for Firefox can be download from <a href="http://www.google.com/tools/firefox/index.html">here</a>. I recommend you also Google Notebook and the toolbar. They work perfectly with Firefox 2.0
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/" rel="bookmark" class="crp_title">Eclipse workaround to firefox missing feature</a></li>
<li><a href="http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/" rel="bookmark" class="crp_title">Customizing websites with Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/" rel="bookmark" class="crp_title">Mostly Crystal Firefox Theme</a></li>
<li><a href="http://en.newinstance.it/2005/12/07/aboutabout/" rel="bookmark" class="crp_title">About:About</a></li>
<li><a href="http://en.newinstance.it/2008/07/17/secure-storage-in-ganymede-is-forced-paranoia/" rel="bookmark" class="crp_title">&#8220;Secure Storage&#8221; in Ganymede is forced paranoia</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portable apps to the rescue!</title>
		<link>http://en.newinstance.it/2006/08/11/portable-apps-to-the-rescue/</link>
		<comments>http://en.newinstance.it/2006/08/11/portable-apps-to-the-rescue/#comments</comments>
		<pubDate>Thu, 10 Aug 2006 23:26:58 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Lifehacks]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/2006/08/11/portable-apps-to-the-rescue/</guid>
		<description><![CDATA[Are you tired to install applications that weaken stability of your OS? Or you just want to bring in a USB Pen Drive all your desktop applications to run them at work, at home and everywhere? The solution for both problems is &#8220;portable apps&#8221;. A &#8220;portable app&#8221; is an application that does not need to [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image107" src="http://it.newinstance.it/wp-content/uploads/2006/08/portable_apps_suite.png" alt="Portable Apps" align="left" /></p>
<p>Are you tired to install applications that weaken stability of your OS?  Or you just want to bring in a USB Pen Drive all your desktop applications to run them at work, at home and everywhere? The solution for both problems is &#8220;portable apps&#8221;.<br />
A &#8220;portable app&#8221; is an application that does not need to be installed, and it&#8217;s just able to run from any folder and any media; for example a Pen Drive or Memory Cards. This makes the application less intrusive/dangerous for the host Operating System and, virtually, you could leave your laptop at home and bring a PenDrive in your pocket with all the necessary software, documents, and data everywhere. I found a couple of sites that distribute some portable version of most successful free software.</p>
<p><a href="http://portableapps.com/">PortableApps.com</a> distributes some modified version of Firefox, ThunderBird, SunBird, AbiWord, OpenOffice, etc. Notice that on my laptop the portable OpenOffice supplied didn&#8217;t work.</p>
<p><a href="http://winpenpack.com">WinPenPack.com</a> collects some portable applications and makes use of a launcher called <a href="http://sourceforge.net/projects/x-launcher">X-Launcher</a> that can run almost any application modifying environment settings to make the application portable. Think it as a sandbox or a runtime environment. So, WinPenPack makes available a huge collection of applications for any need. On WinPenPack there are packaged downloads of 256Mb or 512Mb, that fills in appropriate sized pen drives; but the nice thing is that you can choice to make your own a selection of portable software to best fit your needs, with WinPenPack Personal. There&#8217;s also a nice launcher called &#8220;WinPenPack Launcher&#8221; that can run from the traybar and it&#8217;s a sort of start menu for portable apps.</p>
<p>There are also some concerns: using portable apps &#8220;everywhere&#8221; brings the problem of security. You could run your apps in an Internet Cafe or other untrusted environments and contract some virus. It would be nice to use a &#8220;read-only&#8221; partition that hosts portable applications and a separate writeable partition hosting saved data with no executables. Tweaking a little with X-Launcher should do the work, and, also there are some security applications that can handle separate partitions (also encrypted) to avoid the problem. And, of course, there are some portable antivirus.
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2007/06/20/disk-corrupted/" rel="bookmark" class="crp_title">Disk corrupted!</a></li>
<li><a href="http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/" rel="bookmark" class="crp_title">How to create launchers in OSX</a></li>
<li><a href="http://en.newinstance.it/2009/11/26/karmic-and-luks-usb-drive-encryption-made-almost-easy/" rel="bookmark" class="crp_title">Karmic and Luks: USB drive encryption made (almost) easy</a></li>
<li><a href="http://en.newinstance.it/2010/04/21/uninstalling-pkg-files-on-osx/" rel="bookmark" class="crp_title">Uninstalling .pkg files on OSX</a></li>
<li><a href="http://en.newinstance.it/2006/02/01/font-size-problem-with-gnome-using-motif-applications/" rel="bookmark" class="crp_title">Font size problem with Gnome using Motif applications</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2006/08/11/portable-apps-to-the-rescue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse workaround to firefox missing feature</title>
		<link>http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/</link>
		<comments>http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/#comments</comments>
		<pubDate>Tue, 10 Jan 2006 14:50:50 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/</guid>
		<description><![CDATA[A thing I usually do with firefox is to read documentation. Usually also BIG documentation. An example of that is the JDK javadocs or other libraries documentation. I think that this is quite common to any kind of developer. So a thing that I would like that any browser to do is the ability to [...]]]></description>
			<content:encoded><![CDATA[<p>A thing I usually do with firefox is to read documentation. Usually also BIG documentation. An example of that is the JDK javadocs or other libraries documentation. I think that this is quite common to any kind of developer.<br />
So a thing that I would like that any browser to do is the ability to serve html from inside a standard archive, such as a tar.gz/jar/zip/rar/7z file&#8230; I don&#8217;t think it would be difficult to do.</p>
<p>Actually I am using eclipse help server to do that (Preferences->Help->Help Server): Eclipse (3.2M4) uses an internal web server to read from a zip file and serve its content: I fixed the port (that by default is get randomly), so, after I started eclipse and pressed CTRL+F1, the help server is available and accessible thru firefox using an url like this: <tt>http://127.0.0.1:6789/help/nftopic/jar:file:/usr/lib/j2sdk1.4-sun/doc.zip!/docs/api/index.html</tt>. This is just a workaround that prevents you to unpack a >30MB zip file to read its content. You see that in the URL the file path is an absolute path, so you can access any zip file content in the filesystem without unpacking it. </p>
<p><a target="_new" href="http://it.newinstance.it/wp-content/uploads/2006/09/ff-browse-zip-content.png"><br />
<img id="image115" src="http://it.newinstance.it/wp-content/uploads/2006/09/ff-browse-zip-content.png" alt="Using Firefox to Browse Zip Content" border="0" height="312" width="400" /><br />
</a></p>
<p>But&#8230; I think that this should be a feature of (an intelligent) web browser. Web browsers are not only useful for online content today ;-)</p>
<p>For more discussion in this topic, see also: <a href="http://jroller.com/page/rajvissa?entry=starting_eclipse_help_server_w">Starting Eclipse Help Server w/o launching Eclipse</a>
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/" rel="bookmark" class="crp_title">Customizing websites with Firefox</a></li>
<li><a href="http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/" rel="bookmark" class="crp_title">Google Browser Sync plugin for Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/10/04/remote-debugging-tomcat-with-eclipse/" rel="bookmark" class="crp_title">Remote debugging Tomcat with Eclipse</a></li>
<li><a href="http://en.newinstance.it/2008/06/19/setting-up-javahl-jni-support-in-eclipse-on-linux/" rel="bookmark" class="crp_title">Setting up JavaHL (JNI) support in Eclipse on Linux</a></li>
<li><a href="http://en.newinstance.it/2005/06/17/my-new-net-server/" rel="bookmark" class="crp_title">My New Net Server</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing websites with Firefox</title>
		<link>http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/</link>
		<comments>http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/#comments</comments>
		<pubDate>Tue, 20 Dec 2005 23:59:59 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/1970/01/01/customizing-websites-with-firefox/</guid>
		<description><![CDATA[With Firefox you can define your preferences on how Firefox should display the web sites you visit. To do that, there&#8217;s a file called userContent.css in user home directory (in windows it&#8217;s placed on &#8220;C:\Documents and Settings\[user]\Application Data\Mozilla\Firefox\Profiles\[8digits].default\chrome&#8221;); modifying this file you can, for example, modify default font style and size, to make website more [...]]]></description>
			<content:encoded><![CDATA[<p>With Firefox you can define your preferences on how Firefox should display the web sites you visit. To do that, there&#8217;s a file called userContent.css in user home directory (in windows it&#8217;s placed on &#8220;C:\Documents and Settings\[user]\Application Data\Mozilla\Firefox\Profiles\[8digits].default\chrome&#8221;); modifying this file you can, for example, modify default font style and size, to make website more readable.</p>
<p>With Firefox 1.5 there&#8217;s a new selector that makes it possible to define in userContent.css web site specific style. So you can add some style definition that will be applied for specific sites. The syntax is the following: </p>
<pre style="height: 150px"><span style="color: red">@-moz-document url-prefix(http://www.mysite.com/)</span>
{
   /* define here specific css for http://www.mysite.com/ */

   /* example:
   div.rightbox {
      display: none !important;
   }
   */
}
</pre>
<p>I think that this is a cool feature. For example, I use Adblock plugin to remove ads from my favourite web sites. Combining new css feature in userContent.css with Adblock plugin, it&#8217;s possible to filter any ad from your favourite web sites, despite they use images, flash, javascripts or simple html:</p>
<p><a href="http://it.newinstance.it/wp-content/uploads/2006/09/WindowsLiveWriter/CustomizingwebsiteswithFirefox_ED8/before-and-after-the-cure%5B6%5D1.jpg" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="305" alt="Before and after the cure" src="http://it.newinstance.it/wp-content/uploads/2006/09/WindowsLiveWriter/CustomizingwebsiteswithFirefox_ED8/before-and-after-the-cure_thumb%5B2%5D1.jpg" width="490" border="0"></a> <br />Before and After the cure: at left, in internet explorer with all ads (in red circles); at right, the same site in Firefox using custom CSS and Adblock</p>
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/" rel="bookmark" class="crp_title">Eclipse workaround to firefox missing feature</a></li>
<li><a href="http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/" rel="bookmark" class="crp_title">Mostly Crystal Firefox Theme</a></li>
<li><a href="http://en.newinstance.it/2005/06/17/adding-hidden-fields-to-a-form/" rel="bookmark" class="crp_title">Adding hidden fields to a Form</a></li>
<li><a href="http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/" rel="bookmark" class="crp_title">Google Browser Sync plugin for Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/09/21/better-html-buttons-with-images/" rel="bookmark" class="crp_title">Better HTML Buttons&#8230; with images</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About:About</title>
		<link>http://en.newinstance.it/2005/12/07/aboutabout/</link>
		<comments>http://en.newinstance.it/2005/12/07/aboutabout/#comments</comments>
		<pubDate>Wed, 07 Dec 2005 00:22:59 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Lifehacks]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/1970/01/01/aboutabout/</guid>
		<description><![CDATA[Using firefox? Try those links (when not linked, copy and paste in your address bar): about: about:config about:plugins about:buildconfig about:cache about:cache?device=disk about:cache?device=memory about:credits about:license about:mozilla About plugin: Mr Tech&#8217;s About:About plugin Related Posts: Google Browser Sync plugin for Firefox Mostly Crystal Firefox Theme Customizing websites with Firefox Debian Package Managing Survival Guide Linux RAM Disks]]></description>
			<content:encoded><![CDATA[<p>Using firefox? Try those links (when not linked, copy and paste in your address bar):</p>
<p><u>about:<br />
about:config<br />
about:plugins<br />
about:buildconfig<br />
about:cache<br />
about:cache?device=disk<br />
about:cache?device=memory</u><br />
<a href="about:credits">about:credits</a><br />
<a href="about:license">about:license</a><br />
<a href="about:mozilla">about:mozilla</a></p>
<p>About plugin: <a href="http://www.mrtech.com/extensions/">Mr Tech&#8217;s About:About plugin</a>
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/" rel="bookmark" class="crp_title">Google Browser Sync plugin for Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/" rel="bookmark" class="crp_title">Mostly Crystal Firefox Theme</a></li>
<li><a href="http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/" rel="bookmark" class="crp_title">Customizing websites with Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/08/03/debian-package-managing-survival-guide/" rel="bookmark" class="crp_title">Debian Package Managing Survival Guide</a></li>
<li><a href="http://en.newinstance.it/2009/08/28/linux-ram-disks/" rel="bookmark" class="crp_title">Linux RAM Disks</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2005/12/07/aboutabout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mostly Crystal Firefox Theme</title>
		<link>http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/</link>
		<comments>http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/#comments</comments>
		<pubDate>Mon, 26 Sep 2005 21:06:04 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/2005/09/26/149/</guid>
		<description><![CDATA[I&#8217;ve recently discovered the Mostly Crystal Firefox theme, based on Crystal icons by Everaldo. Crystal icons are the most beatiful icons ever seen, and Firefox looks great with this theme. It is possible also to extend the theme to Menuitems and Program-Window icons. Really nice the spinning Penguin :-) Crystal Icons are licensed under LGPL [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently discovered the <a href="http://www.tom-cat.com/mozilla/firefox.html">Mostly Crystal</a> Firefox theme, based on Crystal icons by <a href="http://everaldo.com/crystal/">Everaldo</a>.<br />
Crystal icons are the most beatiful icons ever seen, and Firefox looks great with this theme. It is possible also to extend the theme to Menuitems and Program-Window icons. Really nice the spinning Penguin :-)</p>
<p><a href="http://it.newinstance.it/wp-content/uploads/2006/10/mostly-crystal.png" target="_new"><img id="image148" width="490" height="424" border="0" src="http://it.newinstance.it/wp-content/uploads/2006/10/mostly-crystal.png" alt="Mostly Crystal theme snapshot" /></a></p>
<p>Crystal Icons are licensed under LGPL license. Sometime ago I asked the author to understand how this license applies to icons, and I got in response &#8220;you can use it freely in non commercial (free/opensource) products; if you want to use them in a commercial product you have to buy them&#8221;. For anyone looking for good icons for an opensource product, Crystal set is a 1st class look and feel.
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2005/12/21/customizing-websites-with-firefox/" rel="bookmark" class="crp_title">Customizing websites with Firefox</a></li>
<li><a href="http://en.newinstance.it/2006/01/10/eclipse-workaround-to-firefox-missing-feature/" rel="bookmark" class="crp_title">Eclipse workaround to firefox missing feature</a></li>
<li><a href="http://en.newinstance.it/2006/11/18/google-browser-sync-plugin-for-firefox/" rel="bookmark" class="crp_title">Google Browser Sync plugin for Firefox</a></li>
<li><a href="http://en.newinstance.it/2005/12/07/aboutabout/" rel="bookmark" class="crp_title">About:About</a></li>
<li><a href="http://en.newinstance.it/2005/10/31/another-one-bites-the-dust/" rel="bookmark" class="crp_title">Another One Bites The Dust!</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2005/09/26/mostly-crystal-firefox-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatic Proxy Switching</title>
		<link>http://en.newinstance.it/2005/06/11/automatic-proxy-switching/</link>
		<comments>http://en.newinstance.it/2005/06/11/automatic-proxy-switching/#comments</comments>
		<pubDate>Sat, 11 Jun 2005 15:18:48 +0000</pubDate>
		<dc:creator>Luigi</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Lifehacks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://it.newinstance.it/2005/06/11/automatic-proxy-switching/</guid>
		<description><![CDATA[Working with my laptop on different places I often have to configure network settings. Fortunately I always work on places using DHCP, so this isn&#8217;t an issue. But I&#8217;ve still to waste time switching the proxy settings in browsers (IE, Firefox, Opera, Maxthon&#8230;). Of course there are plugins that handle proxy switching with less effort, [...]]]></description>
			<content:encoded><![CDATA[<p>Working with my laptop on different places I often have to configure network settings. Fortunately I always work on places using DHCP, so this isn&#8217;t an issue. But I&#8217;ve still to waste time switching the proxy settings in browsers (IE, Firefox, Opera, Maxthon&#8230;). Of course there are plugins that handle proxy switching with less effort, but you have to do it manually, and instead it would be great to do it automatically. Every browser do this, automatically, without needing a plugin.</p>
<p>To do that, you have to create a file called proxy.pac in your filesystem, like this one:</p>
<pre class="code"><span class="line_number"> 1</span><span class="code">function FindProxyForURL<span class="parenthesis">(</span>url, host<span class="parenthesis">)</span>
<span class="line_number"> 2</span><span class="parenthesis">{</span>
<span class="line_number"> 3</span>    <span class="java_keyword">if</span> <span class="parenthesis">(</span> dnsDomainIs<span class="parenthesis">(</span>host, <span class="string_constant">&quot;localhost&quot;</span><span class="parenthesis">)</span> ||
<span class="line_number"> 4</span>         isPlainHostName<span class="parenthesis">(</span>host<span class="parenthesis">)</span> ||
<span class="line_number"> 5</span>         isInNet<span class="parenthesis">(</span>host, <span class="string_constant">&quot;127.0.0.1&quot;</span>, <span class="string_constant">&quot;255.255.255.255&quot;</span><span class="parenthesis">)</span> <span class="parenthesis">)</span>
<span class="line_number"> 6</span>        <span class="java_keyword">return</span> <span class="string_constant">&quot;DIRECT&quot;</span>;
<span class="line_number"> 7</span>
<span class="line_number"> 8</span>    <span class="java_keyword">if</span> <span class="parenthesis">(</span>isInNet<span class="parenthesis">(</span>myIpAddress<span class="parenthesis">()</span>, <span class="string_constant">&quot;192.168.0.0&quot;</span>, <span class="string_constant">&quot;255.255.0.0&quot;</span><span class="parenthesis">))</span>  <span class="comment_line">// HOME</span>
<span class="line_number"> 9</span>        <span class="java_keyword">return</span> <span class="string_constant">&quot;DIRECT&quot;</span>;
<span class="line_number">10</span>
<span class="line_number">11</span>    <span class="java_keyword">if</span> <span class="parenthesis">(</span>isInNet<span class="parenthesis">(</span>myIpAddress<span class="parenthesis">()</span>, <span class="string_constant">&quot;10.1.0.0&quot;</span>, <span class="string_constant">&quot;255.255.0.0&quot;</span><span class="parenthesis">))</span>  <span class="comment_line">// CLIENT 1</span>
<span class="line_number">12</span>        <span class="java_keyword">return</span> <span class="string_constant">&quot;PROXY web-proxy:8080&quot;</span>;
<span class="line_number">13</span><span class="parenthesis">}</span></span>
</pre>
<p>This means: when I connect to localhost or to 127.0.0.1 the browser will not have to use any proxy, going DIRECT.<br />
When myIp is in 192.168.*.* don&#8217;t use any proxy (as I am @ home). When my ip is 10.1.*.* use &#8220;web-proxy:8080&#8243;, and so on&#8230;<br />
The 255.255.0.0 is the net mask. 255 means perfect match, 0 means &#8216;anything&#8217; matches (like &#8220;*&#8221; wildcard).</p>
<p>Once you created this file you go on &#8220;Firefox->Connection Settings->Automatic Proxy Configuration URL&#8221; and set the path of the proxy.pac file as in this sample: file:///C:/Windows/proxy.pac<br />
Notice that (for mozilla) you have 3 slash.<br />
Using IE, you set it on connection settings as this file://C:\Windows\proxy.pac.<br />
For Opera you set automatic proxy configuration with something like file://C:/Windows/proxy.pac</p>
<p>Then and for the next, when browsing the javascript will be executed and the correct proxy will be automatically selected.</p>
<p>Many apps also get internet settings by IE, so this works well for many apps (MSN messenger, for example). Some others don&#8217;t (i.e. gaim, eclipse&#8230;). So you still have to do something manually.<br />
Warning: Google Web Accelerator, overwrites proxy settings in IE,using its own proxy.pac file. I won&#8217;t use it until they fix this.</p>
<p>There are several tools like <a href="http://www.netswitcher.com/">NetSwitcher</a> that handle this issue, but they can&#8217;t handle any rebellious apps (like gaim and eclipse&#8230;).
<div id="crp_related">
<h4>Related Posts:</h4>
<ul>
<li><a href="http://en.newinstance.it/2008/10/24/always-on-getter-and-setters/" rel="bookmark" class="crp_title">Always on getter and setters</a></li>
<li><a href="http://en.newinstance.it/2008/11/04/dynamic-tests-with-junit-3/" rel="bookmark" class="crp_title">Dynamic tests with JUnit 3</a></li>
<li><a href="http://en.newinstance.it/2008/10/24/the-repetita-juvant-principle/" rel="bookmark" class="crp_title">The Repetita Juvant Principle</a></li>
<li><a href="http://en.newinstance.it/2006/11/19/reading-javadocs-from-inside-the-original-zip-file/" rel="bookmark" class="crp_title">Reading Javadocs from inside the original zip file</a></li>
<li><a href="http://en.newinstance.it/2008/11/22/random-thoughts-about-unchecked-exceptions/" rel="bookmark" class="crp_title">Random thoughts about unchecked exceptions</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://en.newinstance.it/2005/06/11/automatic-proxy-switching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
