<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Re Dumping currently loaded Firefox URLs</title>
	<atom:link href="http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/</link>
	<description>Mobile developer ranting about mobile stuff</description>
	<lastBuildDate>Mon, 26 Jul 2010 15:24:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jani Monoses: dumping open FF tab URLs using Javascript and shell stuff &#124; Full-Linux.com</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1381</link>
		<dc:creator>Jani Monoses: dumping open FF tab URLs using Javascript and shell stuff &#124; Full-Linux.com</dc:creator>
		<pubDate>Sat, 04 Jul 2009 06:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1381</guid>
		<description>[...] perl and python solutions presented for dumping Firefox current session URLs are not very accurate if you navigate [...]</description>
		<content:encoded><![CDATA[<p>[...] perl and python solutions presented for dumping Firefox current session URLs are not very accurate if you navigate [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szbalint</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1376</link>
		<dc:creator>szbalint</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1376</guid>
		<description>@&lt;a href=&quot;#comment-1375&quot; rel=&quot;nofollow&quot;&gt;drubin&lt;/a&gt;: Ah I see. I&#039;ve just seen your post in the Planet Ubuntu aggregator and I assumed you were serious :)</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-1375" rel="nofollow">drubin</a>: Ah I see. I&#8217;ve just seen your post in the Planet Ubuntu aggregator and I assumed you were serious <img src='http://blog.smartcube.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drubin</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1375</link>
		<dc:creator>drubin</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1375</guid>
		<description>@&lt;a href=&quot;#comment-1371&quot; rel=&quot;nofollow&quot;&gt;szbalint&lt;/a&gt;: That comment &quot;perl is unreadble&quot; should have been qualified as a personal joke we have in #ubuntu-begginers on freenode with ibuclaw &amp; sdennie. 

@&lt;a href=&quot;#comment-1372&quot; rel=&quot;nofollow&quot;&gt;Dom&lt;/a&gt;: Thanks for your patch.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-1371" rel="nofollow">szbalint</a>: That comment &#8220;perl is unreadble&#8221; should have been qualified as a personal joke we have in #ubuntu-begginers on freenode with ibuclaw &#038; sdennie. </p>
<p>@<a href="#comment-1372" rel="nofollow">Dom</a>: Thanks for your patch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szbalint</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1374</link>
		<dc:creator>szbalint</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1374</guid>
		<description>That might have come off as a bit harsh, however comparing your python version with the original Perl implementation, I have to say that the Perl version is a lot more robust and readable.

Even if you don&#039;t like parsing JSON with regular expressions, it would have been a simple fix to &quot;use JSON;&quot;. That is however an implementation detail and I don&#039;t see how that would imply that Perl is unreadable.</description>
		<content:encoded><![CDATA[<p>That might have come off as a bit harsh, however comparing your python version with the original Perl implementation, I have to say that the Perl version is a lot more robust and readable.</p>
<p>Even if you don&#8217;t like parsing JSON with regular expressions, it would have been a simple fix to &#8220;use JSON;&#8221;. That is however an implementation detail and I don&#8217;t see how that would imply that Perl is unreadable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dom</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1373</link>
		<dc:creator>Dom</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1373</guid>
		<description>hmm, looks like your blog dropped the formatting :)

http://paste.ubuntu.com/208082/</description>
		<content:encoded><![CDATA[<p>hmm, looks like your blog dropped the formatting <img src='http://blog.smartcube.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://paste.ubuntu.com/208082/" rel="nofollow">http://paste.ubuntu.com/208082/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dom</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1372</link>
		<dc:creator>Dom</dc:creator>
		<pubDate>Thu, 02 Jul 2009 11:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1372</guid>
		<description>thanks for this! had to tweak it slightly to cope with page titles containing unicode characters and &#039;Untitled&#039; tabs, here&#039;s the patch:

--- old/ff-pages.py	2009-07-02 11:46:23.000000000 +0100
+++ new/ff-pages.py	2009-07-02 12:57:57.546325791 +0100
@@ -8,5 +8,6 @@
     print &#039;Window %s&#039;% (i+1) 
     for tabs in window[&#039;tabs&#039;]:
         entry = tabs[&#039;entries&#039;]
-        if entry[len(entry)-1].has_key(&#039;title&#039;) and entry[len(entry)-1].has_key(&#039;url&#039;):	
-            print &#039;\tTitle: %s Url %s&#039;% (entry[len(entry)-1][&#039;title&#039;], entry[len(entry)-1][&#039;url&#039;])
+        if len(entry) &gt; 0 and entry[len(entry)-1].has_key(&#039;title&#039;) and entry[len(entry)-1].has_key(&#039;url&#039;):	
+            s = &#039;\tTitle: %s Url %s&#039; % (entry[len(entry)-1][&#039;title&#039;], entry[len(entry)-1][&#039;url&#039;])
+            print unicode(s).encode(&#039;utf8&#039;)</description>
		<content:encoded><![CDATA[<p>thanks for this! had to tweak it slightly to cope with page titles containing unicode characters and &#8216;Untitled&#8217; tabs, here&#8217;s the patch:</p>
<p>&#8212; old/ff-pages.py	2009-07-02 11:46:23.000000000 +0100<br />
+++ new/ff-pages.py	2009-07-02 12:57:57.546325791 +0100<br />
@@ -8,5 +8,6 @@<br />
     print &#8216;Window %s&#8217;% (i+1)<br />
     for tabs in window['tabs']:<br />
         entry = tabs['entries']<br />
-        if entry[len(entry)-1].has_key(&#8216;title&#8217;) and entry[len(entry)-1].has_key(&#8216;url&#8217;):<br />
-            print &#8216;\tTitle: %s Url %s&#8217;% (entry[len(entry)-1]['title'], entry[len(entry)-1]['url'])<br />
+        if len(entry) &gt; 0 and entry[len(entry)-1].has_key(&#8216;title&#8217;) and entry[len(entry)-1].has_key(&#8216;url&#8217;):<br />
+            s = &#8216;\tTitle: %s Url %s&#8217; % (entry[len(entry)-1]['title'], entry[len(entry)-1]['url'])<br />
+            print unicode(s).encode(&#8216;utf8&#8242;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szbalint</title>
		<link>http://blog.smartcube.co.za/2009/07/02/re-dumping-currently-loaded-firefox-urls/comment-page-1/#comment-1371</link>
		<dc:creator>szbalint</dc:creator>
		<pubDate>Thu, 02 Jul 2009 11:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.smartcube.co.za/?p=145#comment-1371</guid>
		<description>Perl is not unreadable, you&#039;re just incompetent and never bothered to look properly.</description>
		<content:encoded><![CDATA[<p>Perl is not unreadable, you&#8217;re just incompetent and never bothered to look properly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
