<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How much space are eating your thumbnails?</title>
	<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/</link>
	<description>Just another GNOME Blogs weblog</description>
	<pubDate>Sun, 06 Jul 2008 11:29:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Jon Cooper</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-4</link>
		<dc:creator>Jon Cooper</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-4</guid>
		<description>Excellent idea - have tried running it myself, however, being a python noob...&lt;p/&gt;jcooper@m2:~$ python Desktop/thumbnail-checker.py&lt;br/&gt;Traceback (most recent call last):&lt;br/&gt;  File "Desktop/thumbnail-checker.py", line 181, in ?&lt;br/&gt;    locale.setlocale(locale.LC_ALL, lang_code)&lt;br/&gt;  File "/usr/lib/python2.4/locale.py", line 381, in setlocale&lt;br/&gt;    return _setlocale(category, locale)&lt;br/&gt;locale.Error: unsupported locale setting&lt;p/&gt;This is on a Dapper machine that should, in theory, have the python locales configured correctly. Any advice to offer?&lt;p/&gt;Thanks in advance if you do :)&lt;p/&gt;Jon</description>
		<content:encoded><![CDATA[<p>Excellent idea - have tried running it myself, however, being a python noob&#8230;
<p />jcooper@m2:~$ python Desktop/thumbnail-checker.py<br />Traceback (most recent call last):<br />  File &#8220;Desktop/thumbnail-checker.py&#8221;, line 181, in ?<br />    locale.setlocale(locale.LC_ALL, lang_code)<br />  File &#8220;/usr/lib/python2.4/locale.py&#8221;, line 381, in setlocale<br />    return _setlocale(category, locale)<br />locale.Error: unsupported locale setting
<p />This is on a Dapper machine that should, in theory, have the python locales configured correctly. Any advice to offer?
<p />Thanks in advance if you do :)
<p />Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zdzichu</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-5</link>
		<dc:creator>zdzichu</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-5</guid>
		<description>Nice! Some tool for removing thumbnails is lot better than&lt;br/&gt;find ~/.thumbnails/ -mtime +365 -exec rm {} +&lt;br/&gt;run from cron.</description>
		<content:encoded><![CDATA[<p>Nice! Some tool for removing thumbnails is lot better than<br />find ~/.thumbnails/ -mtime +365 -exec rm {} +<br />run from cron.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-6</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-6</guid>
		<description>In fact, using an MD5 sum is here I probably overkill, because the only thing needed is to hash the URI with a low collision, with a thumbnail filename of at most 255 chars. You don't need to make it "hard" to guess the corresponding URI.&lt;p/&gt;Independently of the hash chosen, a nice idea would be to have two files for each thumbnail:&lt;br/&gt;- "[hashed-URI].thumb" containing the thumbnail itself&lt;br/&gt;- "[hashed-URI].URI" containing the URI of the file &lt;p/&gt;That would allow for some background tool that would clean up stale thumbnail files.&lt;br/&gt;The TTL value could depend on the URI type (e.g.: longer for file that exist, shorter for http URL)&lt;p/&gt;Just food for thought...&lt;br/&gt;</description>
		<content:encoded><![CDATA[<p>In fact, using an MD5 sum is here I probably overkill, because the only thing needed is to hash the URI with a low collision, with a thumbnail filename of at most 255 chars. You don&#8217;t need to make it &#8220;hard&#8221; to guess the corresponding URI.
<p />Independently of the hash chosen, a nice idea would be to have two files for each thumbnail:<br />- &#8220;[hashed-URI].thumb&#8221; containing the thumbnail itself<br />- &#8220;[hashed-URI].URI&#8221; containing the URI of the file
<p />That would allow for some background tool that would clean up stale thumbnail files.<br />The TTL value could depend on the URI type (e.g.: longer for file that exist, shorter for http URL)
<p />Just food for thought&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franck</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-7</link>
		<dc:creator>Franck</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-7</guid>
		<description>that's just amazing, according to your script I got 164 Mb Orphans thumbnails! wich is probably true cause I have 315 Mb in my .thumbnails directory...&lt;p/&gt;Could you just add a delete option to your script?&lt;p/&gt;By the way, u made a very good job.&lt;p/&gt;Franck</description>
		<content:encoded><![CDATA[<p>that&#8217;s just amazing, according to your script I got 164 Mb Orphans thumbnails! wich is probably true cause I have 315 Mb in my .thumbnails directory&#8230;
<p />Could you just add a delete option to your script?
<p />By the way, u made a very good job.
<p />Franck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-8</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-8</guid>
		<description>I also ran into the set locale problem and according to &lt;a href="http://docs.python.org/lib/module-locale.html"&gt;http://docs.python.org/lib/module-locale.html&lt;/a&gt; it looks like &lt;br/&gt;locale.setlocale(locale.LC_ALL, lang_code) &lt;br/&gt;should be &lt;br/&gt;locale.setlocale(locale.LC_ALL, (lang_code, encoding))&lt;br/&gt;or just localte.setlocate(localte.LC_ALL, locale.getdefaultlocalte())&lt;br/&gt;both of these worked for me on Dapper. Other than that, nice tool, of course it would be ever better if there was a preview frame and a way to delete the thumbnails from within the app itself, but knowing no python, I'd have no idea how to do this.</description>
		<content:encoded><![CDATA[<p>I also ran into the set locale problem and according to <a href="http://docs.python.org/lib/module-locale.html">http://docs.python.org/lib/module-locale.html</a> it looks like <br />locale.setlocale(locale.LC_ALL, lang_code) <br />should be <br />locale.setlocale(locale.LC_ALL, (lang_code, encoding))<br />or just localte.setlocate(localte.LC_ALL, locale.getdefaultlocalte())<br />both of these worked for me on Dapper. Other than that, nice tool, of course it would be ever better if there was a preview frame and a way to delete the thumbnails from within the app itself, but knowing no python, I&#8217;d have no idea how to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-9</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-9</guid>
		<description>Yeah, and I can't spell the word locale, t's like to slip in there quite a bit...</description>
		<content:encoded><![CDATA[<p>Yeah, and I can&#8217;t spell the word locale, t&#8217;s like to slip in there quite a bit&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-10</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-10</guid>
		<description>There is a dialog in Comix which let's you clean up (part) of your thumbnail cache.  Go to Edit-&#62;Manage Thumbnails.&lt;p/&gt;A package called Gofoto contains a file called thumbcache.py which creates the thumbnails.  It works, but needs a bit of work to adhere to the proposal.</description>
		<content:encoded><![CDATA[<p>There is a dialog in Comix which let&#8217;s you clean up (part) of your thumbnail cache.  Go to Edit-&gt;Manage Thumbnails.
<p />A package called Gofoto contains a file called thumbcache.py which creates the thumbnails.  It works, but needs a bit of work to adhere to the proposal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Gedminas</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-11</link>
		<dc:creator>Marius Gedminas</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-11</guid>
		<description>locale.setlocale(locale.LC_ALL, "") is simpler and does the same thing (and is probably more reliable).&lt;p/&gt;I also would like a button to delete useless thumbnails.</description>
		<content:encoded><![CDATA[<p>locale.setlocale(locale.LC_ALL, &#8220;&#8221;) is simpler and does the same thing (and is probably more reliable).
<p />I also would like a button to delete useless thumbnails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-12</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-12</guid>
		<description>So I went ahead and added in support for viewing and deleting thumbnails. Patch is located here:&lt;br/&gt;&lt;a href="http://alumni.imsa.edu/~eryanv/thumbnail_patch"&gt;http://alumni.imsa.edu/~eryanv/thumbnail_patch&lt;/a&gt;&lt;br/&gt;Be nice, it's the first Python programming I've ever done in my life, so I'm sure it violates lots of Pythong conventions.&lt;br/&gt;For deleting you can either select a row entry and use the delete key or just use the Remove All button.&lt;br/&gt;I've tried to do a moderate amount of testing on this, however I didn't have any "thumbnails" of the External or Invalid type.</description>
		<content:encoded><![CDATA[<p>So I went ahead and added in support for viewing and deleting thumbnails. Patch is located here:<br /><a href="http://alumni.imsa.edu/~eryanv/thumbnail_patch">http://alumni.imsa.edu/~eryanv/thumbnail_patch</a><br />Be nice, it&#8217;s the first Python programming I&#8217;ve ever done in my life, so I&#8217;m sure it violates lots of Pythong conventions.<br />For deleting you can either select a row entry and use the delete key or just use the Remove All button.<br />I&#8217;ve tried to do a moderate amount of testing on this, however I didn&#8217;t have any &#8220;thumbnails&#8221; of the External or Invalid type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Germán Poo-Caamaño</title>
		<link>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-13</link>
		<dc:creator>Germán Poo-Caamaño</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid>http://blogs.gnome.org/gpoo/2006/08/30/how-much-space-are-eating-your-thumbnails/#comment-13</guid>
		<description>Jon,  I'm also using Ubuntu Dapper and it works for me :-P&lt;br/&gt;Anyway, I'll fix it soon.  Thanks,</description>
		<content:encoded><![CDATA[<p>Jon,  I&#8217;m also using Ubuntu Dapper and it works for me :-P<br />Anyway, I&#8217;ll fix it soon.  Thanks,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
