<?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>Romano Giannetti&#039;s blog</title>
	<atom:link href="http://rlog.rgtti.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rlog.rgtti.com</link>
	<description>rlog: computer, cooking, thinking</description>
	<lastBuildDate>Thu, 09 Feb 2012 08:37:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Recreating bokeh (just an idea)</title>
		<link>http://rlog.rgtti.com/2012/02/08/recreating-bokeh-just-an-idea/</link>
		<comments>http://rlog.rgtti.com/2012/02/08/recreating-bokeh-just-an-idea/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 13:57:38 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=422</guid>
		<description><![CDATA[<p>Bokeh is that nice off-focus effect that good lenses can give you on portraits or photos of details, helping centering your attention on your subject and not on the background of the photo.</p> <p>Unfortunately, &#8220;nice&#8221; bokeh is well-tied to &#8220;nice&#8221; (==expensive) lenses. And sometime simply you just have a photo shot with too much depth [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Bokeh">Bokeh</a> is that nice off-focus effect that good lenses can give you on portraits or photos of details, helping centering your attention on your subject and not on the background of the photo.</p>
<p>Unfortunately, &#8220;nice&#8221; bokeh is well-tied to &#8220;nice&#8221; (==expensive) lenses. And sometime simply you just have a photo shot with too much depth of field (maybe because there was too much light, or the photographer, for example my 6-years old daughter, just know to point and shot). So I thought&#8230; it&#8217;s possible to reproduce it on a photo after the fact?</p>
<p>The poor man solution is easy: select your foreground in GIMP or Photoshop or whatever you use to edit your photo, invert the selection, blur. But this does not look like bokeh at all. The problem is that with real bokeh, distant point of light are transformed in big disks, and nearer one (although off focus) on smaller ones. So I though&#8230; well, let&#8217;s try to play a bit.</p>
<p><a href="http://rlog.rgtti.com/wp-content/uploads/2012/02/bk_big.jpg"><img class="size-full wp-image-425    alignleft" style="margin-left: 10px; margin-right: 10px;" title="bk_big" src="http://rlog.rgtti.com/wp-content/uploads/2012/02/bk_big.jpg" alt="" width="33" height="33" /></a></p>
<p><a href="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/bk_med.jpg"><img class="size-full wp-image-427   alignleft" style="margin-left: 10px; margin-right: 10px;" title="bk_med" src="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/bk_med.jpg" alt="" width="33" height="33" /></a></p>
<p><a href="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/bk_lit.jpg"><img class="size-full wp-image-426    alignleft" style="margin-left: 10px; margin-right: 10px;" title="bk_lit" src="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/bk_lit.jpg" alt="" width="33" height="33" /></a></p>
<p>So I prepared three &#8220;bokeh masks&#8221; that would represent how a point of light can be transformed at high, medium and low distances. See the example at the left.</p>
<p>Now the trick is to select one photo and to prepare a mask for it. Paint black the foreground, which will be left as-is, and in different shade of gray the other parts of the photo, from near (dark gray) to far (light gray) to very far (white). See the photo and the mask below.</p>
<p><a href="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/little.jpg"><img class="alignnone size-large wp-image-446" title="uffa" src="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/uffa-1024x385.jpg" alt="" width="640" height="240" /></a></p>
<p>(click on the photo to see the original photo, full size). now I have written a little program that apply the &#8220;blur&#8221; or, technically speaking, convolute the correct bokeh image on the photo.Here is the result:</p>
<div>
<dl id="attachment_447" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/output.jpg"><img class="size-medium wp-image-447" title="output" src="http://rlog.rgtti.com/wp-content/uploads/2012/02/08/recreating-bokeh-just-an-idea/output-300x200.jpg" alt="" width="300" height="200" /></a></dt>
<dd class="wp-caption-dd">(click for full size)</dd>
</dl>
</div>
<p>The program is written in python, it&#8217;s dog slow, it can be done better, the mask has been done with the electronic equivalent of a hammer, etc. etc. But this post is just to show the idea. In principle, a general program would interpolate among the bokeh images, to accept more than three levels of &#8220;distance&#8221;&#8230; but think the experiment you can do with it! Would you try an octagonal bokeh effect? Or a doughnut one?</p>
<p>If you like I can share the program under GPLv3 license, for free inclusion in free software. For other kind of licenses, contact <a href="mailto:romano@rgtti.com">me</a> <img src='http://rlog.rgtti.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>BTW, it seems that I effectively reinvented the weel.<a href="http://forums.dpreview.com/forums/readflat.asp?forum=1006&amp;message=40545596&amp;changemode=1"> See here&#8230;</a></p>
<p>Have a nice day!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2012/02/08/recreating-bokeh-just-an-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to modify a gnome shell theme</title>
		<link>http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/</link>
		<comments>http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 10:26:39 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[gnome shell]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=402</guid>
		<description><![CDATA[<p>This is (I think) the correct way of doing what I tried to do with an extension. My objective was to reduce a bit the size of the gnome shell top bar, and especially the font size.</p> <p style="text-align: center;"></p> <p>The correct way is to use a &#8220;user&#8221; theme. What I did is to create [...]]]></description>
			<content:encoded><![CDATA[<p>This is (I think) the correct way of doing what <a title="A Gnome shell extension to change the top panel look" href="http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/">I tried to do with an extension</a>. My objective was to reduce a bit the size of the gnome shell top bar, and especially the font size.</p>
<p style="text-align: center;"><a href="http://rlog.rgtti.com/wp-content/uploads/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/compare.png"><img class="size-full wp-image-349 aligncenter" title="compare the top panel look" src="http://rlog.rgtti.com/wp-content/uploads/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/compare.png" alt="comparison of the top bar, before and after" width="412" height="62" /></a></p>
<p>The correct way is to use a &#8220;user&#8221; theme. What I did is to create a directory in the <code>$HOME/.themes</code> called &#8220;Romano&#8221; (guess why). You can find attached the files in the directory, but basically, the important file is the <code>$HOME/.themes/Romano/gnome-shell/gnome-shell.css</code>, which looks like that:</p>
<div style="background: #f8f8f8;">
<pre style="line-height: 125%;"><span style="color: #008000; font-weight: bold;">@import</span> <span style="color: #008000; font-weight: bold;">url</span><span style="color: #666666;">(</span><span style="color: #ba2121;">"/usr/share/gnome-shell/theme/gnome-shell.css"</span><span style="color: #666666;">)</span>;

<span style="color: #0000ff;">#panel</span> {
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #666666;">#ffffff</span>;
    <span style="color: #008000; font-weight: bold;">font-family</span><span style="color: #666666;">:</span> ubuntu<span style="color: #666666;">,</span> cantarell;
    <span style="color: #008000; font-weight: bold;">font-size</span><span style="color: #666666;">:</span> <span style="color: #666666;">0.9em</span>;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">normal</span>;
    <span style="color: #008000; font-weight: bold;">height</span><span style="color: #666666;">:</span> <span style="color: #666666;">1.55em</span>;
}

<span style="color: #0000ff; font-weight: bold;">.panel-button</span> {
    <span style="color: #666666;">-</span>natural<span style="color: #666666;">-</span>hpadding<span style="color: #666666;">:</span> <span style="color: #666666;">6px</span>;
    <span style="color: #666666;">-</span>minimum<span style="color: #666666;">-</span>hpadding<span style="color: #666666;">:</span> <span style="color: #666666;">4px</span>;
    <span style="color: #008000; font-weight: bold;">font-family</span><span style="color: #666666;">:</span> MintSpirit<span style="color: #666666;">,</span> ubuntu<span style="color: #666666;">,</span> cantarrell;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">bold</span>;
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #666666;">#ccc</span>;
    transition<span style="color: #666666;">-</span>duration<span style="color: #666666;">:</span> <span style="color: #666666;">100</span>;
}
<span style="color: #0000ff; font-weight: bold;">.panel-button</span><span style="color: #aa22ff;">:hover</span> {
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #008000;">cyan</span>;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">bold</span>;

}</pre>
</div>
<p>The important line is the first, which loads the standard gnome-shell theme, and then the theme proceeds with modifying the font sizes and attributes. In this case, it set the font smaller, it reduces the space between buttons and indicators, and then changes the color when hovering atop the buttons with the mouse.</p>
<p>Obviously to use it you need the user-theme extension and then you have to activate it with the &#8220;advanced settings&#8221; (aka gnome-tweaks-tools; see for example <a href="http://www.techdrivein.com/2011/10/how-to-install-and-manage-gnome-shell.html">here</a>). And you need to restart gnome-shell to make the new theme &#8220;visible&#8221;:</p>
<p><a href="http://rlog.rgtti.com/wp-content/uploads/2012/01/29/how-to-modify-a-gnome-shell-theme/adv-settings-theme.png"><img class="aligncenter size-full wp-image-411" title="adv-settings-theme" src="http://rlog.rgtti.com/wp-content/uploads/2012/01/29/how-to-modify-a-gnome-shell-theme/adv-settings-theme.png" alt="" width="480" height="379" /></a></p>
<p>Here you have the files, just to get started. Ah, yes, if you change the name of the theme, you have to modify the json file too&#8230;</p>
<div class="attachments"><h2>download the mini-theme</h2><dl class="attachments attachments-large"><dt class="icon"><a title="romano-theme.tar.gz" href="http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/?aid=406&amp;sa=0"><img src="http://rlog.rgtti.com/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="romano-theme.tar.gz" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="romano-theme.tar.gz" href="http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/?aid=406&amp;sa=0">romano-theme.tar.gz</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : romano-theme.tar.gz<br /><strong>Size</strong> : 571 B</dd></dl></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Randomly change the background of your Gnome desktop</title>
		<link>http://rlog.rgtti.com/2011/12/15/randomly-change-the-background-of-your-gnome-desktop/</link>
		<comments>http://rlog.rgtti.com/2011/12/15/randomly-change-the-background-of-your-gnome-desktop/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 20:53:33 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome 3.2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=395</guid>
		<description><![CDATA[<p>One of the thing I never got to understand is why the Gnome desktop do not have the option (present in KDE) to use the content of a directory to randomly pick an image for the &#8220;wallpaper&#8221; of the desktop.</p> <p>There are a lot of solution outside, but I would like to share with you [...]]]></description>
			<content:encoded><![CDATA[<p>One of the thing I never got to understand is why the Gnome desktop do not have the option (present in KDE) to use the content of a directory to randomly pick an image for the &#8220;wallpaper&#8221; of the desktop.</p>
<p>There are a lot of solution outside, but I would like to share with you mine:<a title="Wallpaper slideshow for Gnome3" href="http://rlog.rgtti.com/software/linux/wallpaper-slideshow-for-gnome3/"> a simple python program, easily customizable and hackable</a>, to do this task.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2011/12/15/randomly-change-the-background-of-your-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Gnome shell extension to change the top panel look</title>
		<link>http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/</link>
		<comments>http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 19:09:24 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome 3.2]]></category>
		<category><![CDATA[gnome shell]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=347</guid>
		<description><![CDATA[<p>Notice: this is NOT the best way to achieve this. I have posted a much better way&#8230;</p> <p>This is my first Gnome Shell extension&#8230; so that will not be a coding style gem, but it works for me and I think it&#8217;s quite useful, so&#8230;</p> <p style="text-align: center;"></p> <p>The idea is to change the look [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Notice: this is NOT the best way to achieve this</strong></span>. I have posted a <a title="How to modify a gnome shell theme" href="http://rlog.rgtti.com/2012/01/29/how-to-modify-a-gnome-shell-theme/">much better way</a>&#8230;</p>
<p>This is my first Gnome Shell extension&#8230; so that will not be a coding style gem, but it works for me and I think it&#8217;s quite useful, so&#8230;</p>
<p style="text-align: center;"><a href="http://rlog.rgtti.com/wp-content/uploads/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/compare.png"><img class="size-full wp-image-349 aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="compare" src="http://rlog.rgtti.com/wp-content/uploads/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/compare.png" alt="comparison of the top bar, before and after" width="412" height="62" /></a></p>
<p>The idea is to change the look of the top panel in Gnome Shell. The problem, with a netbook like my Asus EeePC, is that the font used is way too big, and (especially if you enable the classic tray) you get out of space for indicators icons very fast. In the image, you can see &#8220;after&#8221; and &#8220;before&#8221; my top panel bar.</p>
<p>So I made a bit of research and found not so much info on writing extensions, with a notable exception: the <a href="http://blog.fpmurphy.com/">Finnbar P. Murphy blog</a>, especially <a href="http://blog.fpmurphy.com/2011/06/patching-a-gnome-shell-theme.html">here</a> and <a href="http://blog.fpmurphy.com/2011/11/updating-gnome-shell-extensions-to-work-with-gnome-3-2.html">here</a>.</p>
<p>I will explain here how to make that extension &#8212; this post will be not a step by step instruction, you need a bit of &#8220;hands on&#8221; to follow it. I hope to learn how to package it and made it available in simple terms.</p>
<p>The good thing is this is a general method to modify the &#8220;css&#8221; (style sheets) of the current theme, and has a lot of application more than changing the font size. Let&#8217;s go.</p>
<p>First of all you need the extension. I used <code>gnome-shell-extension-tool</code> to start, working around the <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/894184">known bug</a> it has now. What you have in the end is a directory in your <code>~/.local/share/gnome-shell/extensions</code> directory named <code>ChangeTopFont@romano.rgtti.com</code> with three files &#8212; <code>extension.js</code>, <code>metadata.json</code>, and <code>stylesheet.css</code>. You can download all of them from the archive at the end of this post.</p>
<p>The most important part is the <code>extension.js</code> code, which I have shamelessly copied from the aforementioned blog (this is my first JavaScript code ever!). It uses the file <code>stylesheet.css</code> to &#8220;patch&#8221; the style of the top panel (and you can use to modify whatever you want in the theme you have chosen: simply look at the <code>/usr/share/gnome-shell/theme/gnome-shell.css</code> file for hints.</p>
<p>I have concocted the extension so that you can modify the stylesheet.css file and see the changes by simply disable/enable the extension in gnome-tweak-tool, without any need to restart the shell.</p>
<p>NEWS: thanks to <a href="http://ubuntuforums.org/showpost.php?p=11518498&amp;postcount=64">cbowman57</a> I have uploaded a second version of the extension, which  sports a better stylesheet. Thanks!</p>
<p>A last word: you have to enable the extension by add its UUID (the full name, in this case <code>ChangeTopFont@romano.rgtti.com</code>, to the org.gnome.shell &#8220;enabled-extensions&#8221; key (you can use <code>dconf-editor</code> for this).</p>
<h4>extension.js code:</h4>
<div style="background: #f8f8f8;">
<pre style="line-height: 125%; background: #f8f8f8;"><span style="color: #408080; font-style: italic;">//</span>
<span style="color: #408080; font-style: italic;">// Edited by Romano Giannetti &lt;romano@rgtti.com&gt;</span>
<span style="color: #408080; font-style: italic;">// Copyright (c) 2011 Romano Giannetti</span>
<span style="color: #408080; font-style: italic;">// </span>
<span style="color: #408080; font-style: italic;">// Original code by: http://blog.fpmurphy.com/2011/06/patching-a-gnome-shell-theme.html</span>
<span style="color: #408080; font-style: italic;">//</span>
<span style="color: #408080; font-style: italic;">// Copyright (c) 2011 Finnbarr P. Murphy</span>
<span style="color: #408080; font-style: italic;">//</span>

<span style="color: #008000; font-weight: bold;">const</span> St <span style="color: #666666;">=</span> imports.gi.St;
<span style="color: #008000; font-weight: bold;">const</span> Shell <span style="color: #666666;">=</span> imports.gi.Shell;
<span style="color: #008000; font-weight: bold;">const</span> Main <span style="color: #666666;">=</span> imports.ui.main;

let  defaultStylesheet, patchStylesheet;

<span style="color: #008000; font-weight: bold;">function</span> init(extensionMeta) {

    defaultStylesheet <span style="color: #666666;">=</span> Main._defaultCssStylesheet;
    patchStylesheet <span style="color: #666666;">=</span> extensionMeta.path <span style="color: #666666;">+</span> <span style="color: #ba2121;">'/stylesheet.css'</span>;
}

<span style="color: #008000; font-weight: bold;">function</span> enable() {

    let themeContext <span style="color: #666666;">=</span> St.ThemeContext.get_for_stage(global.stage);
    let theme <span style="color: #666666;">=</span> <span style="color: #008000; font-weight: bold;">new</span> St.Theme ({ application_stylesheet<span style="color: #666666;">:</span> patchStylesheet,
                                theme_stylesheet<span style="color: #666666;">:</span> defaultStylesheet });
    <span style="color: #008000; font-weight: bold;">try</span> {
        themeContext.set_theme(theme);
    } <span style="color: #008000; font-weight: bold;">catch</span> (e) {
        global.logError(<span style="color: #ba2121;">'Stylesheet parse error: '</span> <span style="color: #666666;">+</span> e);
    }

}

<span style="color: #008000; font-weight: bold;">function</span> disable() {

 let themeContext <span style="color: #666666;">=</span> St.ThemeContext.get_for_stage(global.stage);
    let theme <span style="color: #666666;">=</span> <span style="color: #008000; font-weight: bold;">new</span> St.Theme ({ theme_stylesheet<span style="color: #666666;">:</span> defaultStylesheet });
    <span style="color: #008000; font-weight: bold;">try</span> {
        themeContext.set_theme(theme);
    } <span style="color: #008000; font-weight: bold;">catch</span> (e) {
        global.logError(<span style="color: #ba2121;">'Stylesheet parse error: '</span> <span style="color: #666666;">+</span> e);
    }
}</pre>
</div>
<h4>stylesheet.css code: (play with this!)</h4>
<div style="background: #f8f8f8;">
<pre style="line-height: 125%;"><span style="color: #0000ff;">#panel</span> {
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #666666;">#ffffff</span>;
    <span style="color: #008000; font-weight: bold;">font-family</span><span style="color: #666666;">:</span> MintSpirit<span style="color: #666666;">,</span> ubuntu<span style="color: #666666;">,</span> cantarell;
    <span style="color: #008000; font-weight: bold;">font-size</span><span style="color: #666666;">:</span> <span style="color: #666666;">.80em</span>;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">normal</span>;
    <span style="color: #008000; font-weight: bold;">height</span><span style="color: #666666;">:</span> <span style="color: #666666;">1.55em</span>;
}

<span style="color: #0000ff; font-weight: bold;">.panel-button</span> {
    <span style="color: #666666;">-</span>natural<span style="color: #666666;">-</span>hpadding<span style="color: #666666;">:</span> <span style="color: #666666;">4px</span>;
    <span style="color: #666666;">-</span>minimum<span style="color: #666666;">-</span>hpadding<span style="color: #666666;">:</span> <span style="color: #666666;">4px</span>;
    <span style="color: #008000; font-weight: bold;">font-family</span><span style="color: #666666;">:</span> MintSpirit<span style="color: #666666;">,</span> ubuntu<span style="color: #666666;">,</span> cantarrell;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">bold</span>;
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #666666;">#ccc</span>;
    transition<span style="color: #666666;">-</span>duration<span style="color: #666666;">:</span> <span style="color: #666666;">100</span>;
}
<span style="color: #0000ff; font-weight: bold;">.panel-button</span><span style="color: #aa22ff;">:hover</span> {
    <span style="color: #008000; font-weight: bold;">color</span><span style="color: #666666;">:</span> <span style="color: #008000;">white</span>;
    <span style="color: #008000; font-weight: bold;">font-weight</span><span style="color: #666666;">:</span> <span style="color: #008000; font-weight: bold;">bold</span>;

}</pre>
</div>
<p>Files to download: (at your risk!)</p>
<div class="attachments"><h2>extension code</h2><dl class="attachments attachments-large"><dt class="icon"><a title="change-top-font.tar.gz" href="http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/?aid=364&amp;sa=0"><img src="http://rlog.rgtti.com/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="change-top-font.tar.gz" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="change-top-font.tar.gz" href="http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/?aid=364&amp;sa=0">change-top-font.tar.gz</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : change-top-font.tar.gz<br /><strong>Size</strong> : 937 B</dd></dl><dl class="attachments attachments-large"><dt class="icon"><a title="ChangeTopFont@romano.rgtti.com.tar.gz (v2)" href="http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/?aid=375&amp;sa=0"><img src="http://rlog.rgtti.com/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="ChangeTopFont@romano.rgtti.com.tar.gz (v2)" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="ChangeTopFont@romano.rgtti.com.tar.gz (v2)" href="http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/?aid=375&amp;sa=0">ChangeTopFont@romano.rgtti.com.tar.gz (v2)</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : ChangeTopFont@romano.rgtti_.com_.tar.gz<br /><strong>Size</strong> : 1,011 B</dd></dl></div>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2011/12/06/a-gnome-shell-extension-to-change-the-top-panel-look/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Xfig thumbnailers with Gnome3/Nautilus3</title>
		<link>http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/</link>
		<comments>http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 16:16:28 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=329</guid>
		<description><![CDATA[<p>Ok, after the upgrade to Ubuntu 11.10 and the switch to Gnome 3, I discovered that my nice xfig thumbnailers stopped working. After a bit of struggle, I discovered why. The &#8220;gconf&#8221;  mechanism of  Gnome2 is being phased out, so now there is another way (simpler, when you know it) of doing the same thing.</p> [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, after the upgrade to Ubuntu 11.10 and the switch to Gnome 3, I discovered that my nice <a title="Adding a gnome/nautilus thumbnailer" href="http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/">xfig thumbnailers</a> stopped working. After a bit of struggle, I discovered why. The &#8220;gconf&#8221;  mechanism of  Gnome2 is being phased out, so now there is another way (simpler, when you know it) of doing the same thing.</p>
<p>Basically, you have to drop into <code>/usr/share/thumbnailers</code> (I tested with the <code>$HOME/.local/share/thumbnailers</code> to make the thing user-installable, but to no avail) a file of this kind:</p>
<pre>[Thumbnailer Entry]
Exec=/usr/bin/xfig-thumb -s %s %i %o
MimeType=image/x-xfig;</pre>
<p>with extension <code>.thumbnailer</code> &#8230; and it&#8217;s all.</p>
<p>I prepared a new package that should work in Gnome 2 and Gnome 3, but I have tested it only in Gnome 3. The main difference now is that you need to install/deinstall it using &#8220;sudo&#8221;. Please read the <code>README.txt</code> file in the package&#8230;</p>
<div class="attachments"><h2>Download XFig thumbnailer package for Gnome3</h2><dl class="attachments attachments-large"><dt class="icon"><a title="xfig-thumbnailer3.tar.gz" href="http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/?aid=335&amp;sa=0"><img src="http://rlog.rgtti.com/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="xfig-thumbnailer3.tar.gz" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="xfig-thumbnailer3.tar.gz" href="http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/?aid=335&amp;sa=0">xfig-thumbnailer3.tar.gz</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : xfig-thumbnailer3.tar.gz<br /><strong>Size</strong> : 3 kB</dd></dl></div>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast copy of photos &#8212; a solution!</title>
		<link>http://rlog.rgtti.com/2011/07/31/fast-copy-of-photos-a-solution/</link>
		<comments>http://rlog.rgtti.com/2011/07/31/fast-copy-of-photos-a-solution/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 18:11:38 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=302</guid>
		<description><![CDATA[<p>So, you have a (big) collection of photo, and you want to rapidly browse trough them and select a subset for further consideration for, for example, printing or editing them. What I would like was that,  while in the image viewer, with a simple key press I could copy the file to another, pre-chosen directory. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rlog.rgtti.com/wp-content/uploads/2011/07/31/fast-copy-of-photos-a-solution/gthumb_script.png"><img class="alignleft size-medium wp-image-303" style="margin: 10px;" title="gthumb_script" src="http://rlog.rgtti.com/wp-content/uploads/2011/07/31/fast-copy-of-photos-a-solution/gthumb_script-300x206.png" alt="configuring gthumb to run a script after a key press" width="300" height="206" /></a>So, you have a (big) collection of photo, and you want to rapidly browse trough them and select a subset for further consideration for, for example, printing or editing them. What I would like was that,  while in the image viewer, with a simple key press I could copy the file to another, pre-chosen directory. No asking nor clicking, just a fast  keypress.</p>
<p>I know you can do it with <a href="http://www.digikam.org/">digiKam</a>, my preferred photo manager, by tagging or starring photo, then select and copy them, etc&#8230; but the problem is that I have my photos synchronized on different computers, and tags and stars are often specific of just one of them &#8212; so just physically copy the photos would be the better solution.</p>
<p>Firstly I tried to write a plugin for Eye of Gnome, the default viewer in my Ubuntu Natty. Unfortunately, following the <a href="http://live.gnome.org/EyeOfGnome/Plugins">instruction here</a> did not show anything; I was not able to find instructions on how to create a plugin that really worked, and nothing on how to manage keyboard input. So I tried <a href="http://tuxarena.blogspot.com/2009/04/8-image-viewers-for-ubuntu.html">various other viewers</a> and finally I decided for <a href="http://live.gnome.org/gthumb">gThumb</a>. It can add actions associated with key (only the numeric keypad ones, unfortunately) by selecting tools -&gt; personalize&#8230; and adding a script there.</p>
<p>I saved the following script in my <code>$HOME/bin/</code> directory, with name <code>gthumb_copy_script.sh:<br />
</code></p>
<pre>#! /bin/bash
#  arguments: &lt;full path of the file&gt; &lt;just the file name&gt;
finaldir=/home/multimedia/pictures/selected
if [[ -f $finaldir/$2 ]];
then
    zenity --warning --timeout=3 --title="failed COPY  to $finaldir" --text="$2 exists, skipped"
else
    cp $1 $finaldir
    zenity --info --timeout=1 --title="COPY to $finaldir" --text="$2 copied to $finaldir"
fi</pre>
<p>Now you simply add this script to a the &#8220;tools -&gt; personalize&#8221; widget and associate the command &#8220;<code>gthumb_copy_script %F %B</code>&#8220;(*) to a key, for example, key &#8220;2&#8243; on the keypad &#8212; which in my laptop correspond to the key K for <em>K</em>opy. A fast confirmation dialog is shown &#8212; I&#8217;d really preferred to use <a href="http://www.commandlinefu.com/commands/view/2041/send-pop-up-notifications-on-gnome">notify-send</a> but Ubuntu developer, in their infinite wisdom, decided to ignore the -t argument, cause evidently no one wants notifications for less than 10 seconds&#8230;</p>
<p>Now I have a working solution. But the sad end of the story is that, while we have a better desktop in Linux, we are slowly but constantly losing the configurability that it was, once, its main selling point. Sigh&#8230;</p>
<p>(*) %F is the full path of the photo, %B just the file name.</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2011/07/31/fast-copy-of-photos-a-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inherit the Stars: re-reading an old book</title>
		<link>http://rlog.rgtti.com/2011/03/11/inherit-the-stars-re-reading-an-old-book/</link>
		<comments>http://rlog.rgtti.com/2011/03/11/inherit-the-stars-re-reading-an-old-book/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:41:48 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=293</guid>
		<description><![CDATA[<p>Thanks to my new kindle, I was re-reading Inherit the Stars by James P. Hogan, which is available for free at Baen. I was especially fond of this book when I was a teenager, for the crisp image of how the scientific thinking works towards the finding of solutions to apparently impossible problems.</p> <p>Well, obviously [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rlog.rgtti.com/wp-content/uploads/2011/03/11/inherit-the-stars-re-reading-an-old-book/03453010721.jpg"><img class="alignright size-full wp-image-300" style="margin: 10px;" title="Lo scheletro impossibile" src="http://rlog.rgtti.com/wp-content/uploads/2011/03/11/inherit-the-stars-re-reading-an-old-book/03453010721.jpg" alt="Cover of the italian translation of the book" width="100" height="144" /></a>Thanks to my <a title="Giving up: I bought an ebook" href="http://rlog.rgtti.com/2010/11/20/giving-up-i-bought-an-ebook/">new kindle</a>, I was re-reading Inherit the Stars by James P. Hogan, which is <a href="http://www.webscription.net/p-584-inherit-the-stars.aspx" target="_blank">available for free at Baen</a>. I was especially fond of this book when I was a teenager, for the crisp image of how the scientific thinking works towards the finding of solutions to apparently impossible problems.</p>
<p>Well, obviously a lot of things have changed since 1977, oneself for a start. So I do not find the book so good as when I was 14, but it can be still read.</p>
<p>The real good thing that I noticed is that the thing that most surprise you reading it is not the fact that URSS is still there, that  we should have personal jets available for renting at popular prices, or that the concept of personal computer is at least strange. No, the real things that makes the book sound dated is the fact that the scientists and the bosses are practically all male, and that all of them keep smoking as hell&#8230; even in the moon-to-jupiter starship.</p>
<p>The fact that this surprised me so much say a lot on how and much things are changing. This is, I think, a good news.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2011/03/11/inherit-the-stars-re-reading-an-old-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a gnome/nautilus thumbnailer</title>
		<link>http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/</link>
		<comments>http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 10:01:53 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[xfig]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=271</guid>
		<description><![CDATA[ NOTE: this only works for Gnome 2. For Gnome 3, see an update here&#8230; What it is: <p>a thumbnail is the little image that Nautilus (the file manager of Gnome) shows to represent the file. Most of file types has a standard thumbnailer, and you see a representation of the file such as a [...]]]></description>
			<content:encoded><![CDATA[<h3><strong><a href="http://rlog.rgtti.com/wp-content/uploads/2010/11/28/adding-a-gnomenautilus-thumbnailer/xfig-thumbnail.png"><img class="alignleft size-medium wp-image-275" style="margin: 10px;" title="xfig-thumbnail" src="http://rlog.rgtti.com/wp-content/uploads/2010/11/28/adding-a-gnomenautilus-thumbnailer/xfig-thumbnail-300x291.png" alt="thumbnails for xfig files" width="300" height="291" /></a></strong></h3>
<h3><em><span style="color: #993300;">NOTE: this only works for Gnome 2. <a title="Xfig thumbnailers with Gnome3/Nautilus3" href="http://rlog.rgtti.com/2011/11/24/xfig-thumbnailers-with-gnome3nautilus3/">For Gnome 3, see an update here</a>&#8230;</span></em></h3>
<h3><strong>What it is:</strong></h3>
<p>a thumbnail is the little image that Nautilus (the file manager of Gnome) shows to represent the file. Most of file types has a standard thumbnailer, and you see a representation of the file such as a little image or a preview of the contents. This is quite useful, but less common filetypes do not have a preview, you just see a standard icon, the same for all of them.</p>
<p>I will explain how to add a thumbnailer for a new or unsupported file type. In that case we will add a script to prepare the preview of <a href="http://www.xfig.org/">Xfig</a> files (.fig).<br />
<strong></strong></p>
<h3><strong>How it works: </strong></h3>
<p>When trying to prepare the preview, Nautilus do the following (at least, I think&#8230;):<br />
<strong>First step</strong>: it tries to find a preview computed before. To do this, it generate a hash for the file and looks into the directories under your <code>$HOME/.thumbnails</code> dir. If it find it, or find an entry that said the generation of the thumbnail failed before, it uses it (or a defualt icon) and stop searching. That means that, if you want to change the thumbnail generation and see the effects, you have to delete this &#8220;cache&#8221; under <code>$HOME/.thumbnails</code>.<br />
<strong>Second step</strong>: if the type of the file is known, it generates (and saves in the cache) the preview. To see which is the type of a file, run</p>
<p><code>xdg-mime query filetype &lt;file&gt;</code></p>
<p>For example:</p>
<pre>% xdg-mime query filetype xfig-thumbnailer.tar.gz
application/x-compressed-tar</pre>
<p>If the application type do not exist (blank or wrong answer), you can <a href="http://rlog.rgtti.com/2010/11/22/integrating-a-new-application-in-gnome/">easily add your own filetype</a> to the system.</p>
<p><strong>Third step:</strong> if all this fail, it searches the &#8220;registry&#8221; (gconf database) for a couple of  entries called after the type; for example:</p>
<p><code>/desktop/gnome/thumbnailers/application@x-compressed-tar/command</code></p>
<p><code>/desktop/gnome/thumbnailers/application@x-compressed-tar/enable</code></p>
<p>with a <code>@</code> char in the place of the <code>"/"</code>. If &#8220;enable&#8221; is true, it then call the command to generate the thumbnail. &#8220;command&#8221; is in the form</p>
<p><code>my_thumbnailer -s %s %u %o</code></p>
<p>and when calling it <code>%s</code> is substituted for the vertical size of the preview image, <code>%u</code> for the URL of the file (if it&#8217;s a local file, in the form of <code>file:///path/to/file</code>), and <code>%o</code> the output file where the preview (in PNG format) has to be stored.</p>
<h3>The practical case: adding a thumbnailer for <code>Xfig</code> files.</h3>
<p><strong>Acknowlegment</strong>: this is mostly extracted/reworked from  <a href="http://quirkygba.blogspot.com/2009/11/nds-thumbnail-preview-in-nautilus.html">here</a>.</p>
<p>In the &lt;package&gt; file, you have all you need to add the thumbnails for your xfig file. Move it in a directory and uncompress it.</p>
<p>You will see 4 files:</p>
<p><code>xfig-thumb-setup.sh</code> : this script moves the script to your $HOME/bin directory and enables the gconf entry that will run it.</p>
<p><code>xfig-thumb-remove.sh</code>: this script undoes what the previous did. Run it if you want to get rid of the thumbnailer.</p>
<p><code>xfig-thumb</code>: this is the script that create the thumbnailer. It will need that you have <code>xfig</code>, <code>fig2dev</code> and <code>imagemagick</code> packages installed, otherwise it will fail (and you can see error messages in your <code>$HOME/.xsession-errors</code> file).</p>
<p>If you look at it, you will see that it creates a temporary file (there are some nice tricks there to safely delete it afterward), generate a PNG version of the file and then resizes it to the requested dimension and adds a little watermark text.<br />
Enjoy!</p>
<div class="attachments"><h3>Download it!</h3><dl class="attachments attachments-large"><dt class="icon"><a title="xfig-thumbnailer.tar.gz" href="http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/?aid=272&amp;sa=0"><img src="http://rlog.rgtti.com/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="xfig-thumbnailer.tar.gz" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="xfig-thumbnailer.tar.gz" href="http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/?aid=272&amp;sa=0">xfig-thumbnailer.tar.gz</a><br /><strong>Caption</strong> : thumbnailer for Xfig files<br /><strong>File name</strong> : xfig-thumbnailer.tar.gz<br /><strong>Size</strong> : 2 kB</dd></dl></div>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2010/11/28/adding-a-gnomenautilus-thumbnailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating a new application in Gnome</title>
		<link>http://rlog.rgtti.com/2010/11/22/integrating-a-new-application-in-gnome/</link>
		<comments>http://rlog.rgtti.com/2010/11/22/integrating-a-new-application-in-gnome/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 11:00:31 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=251</guid>
		<description><![CDATA[<p>Just found out that the task of adding a new application for a new file-type on gnome (so that I can run it by double click, or from the mail client on an attachment, is easier than I suspected.</p> <p>The problem: my bank send me my account information in files that are managed by an [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rlog.rgtti.com/wp-content/uploads/2010/11/22/integrating-a-new-application-in-gnome/define_new_app.jpg"><img class="alignleft size-medium wp-image-253" style="margin: 10px;" title="define_new_app" src="http://rlog.rgtti.com/wp-content/uploads/2010/11/22/integrating-a-new-application-in-gnome/define_new_app-253x300.jpg" alt="part of the screenshot defining the new application as default" width="253" height="300" /></a>Just found out that the task of adding a new application for a new file-type on gnome (so that I can run it by double click, or from the mail client on an attachment, is easier than I suspected.</p>
<p>The problem: my bank send me my account information in files that are managed by an application that they supply. It&#8217;s a MS Windows application, but fortunately most of it runs ok under wine. The files are zip files, with a custom extension <code>*.fm6</code>.</p>
<p>The first step is to make gnome aware that <code>.fm6</code> files are different from zip files, and are to be treated differently. That is called &#8220;adding a MIME type&#8221; to the system. To do so, I added a file, called <code>fastm6.xml</code>, in <code>$HOME/.local/share/mime/packages/</code>, and then issued the command</p>
<p><code>update-mime-database $HOME/.local/share/mime</code></p>
<p clear=all>
Content of the <code>$HOME/.local/share/mime/packages/fastm6.xml</code> file:</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"&gt;
&lt;mime-type type="application/x-fastm6"&gt;
&lt;glob pattern="*.fm6"/&gt;
&lt;comment&gt;Caja de Ingenieros files&lt;/comment&gt;
&lt;/mime-type&gt;
&lt;/mime-info&gt;
</pre>
<p>To add an icon for the new mime type, simply drop a png file (size 48&#215;48) into <code>$HOME/.local/share/icons called application-x-fastm6.png</code>. Refresh your nautilus windows and voilà, you have them.</p>
<p>Now you can right click on the icons can choose the application you want to run for them (&#8220;open with another application&#8221; and the enter it as a default). In my case it was a shell script like that:</p>
<pre>#!/bin/bash
#
fastdir=$HOME/.wine/dosdevices/c:/FAST/FASTM6
cp $1 $fastdir
cd $fastdir
wine c:/FAST/FASTM6/fastm6.exe $(basename $1)</pre>
<p>but you mileage may, obviously, vary.</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2010/11/22/integrating-a-new-application-in-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Giving up: I bought an ebook</title>
		<link>http://rlog.rgtti.com/2010/11/20/giving-up-i-bought-an-ebook/</link>
		<comments>http://rlog.rgtti.com/2010/11/20/giving-up-i-bought-an-ebook/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 22:30:27 +0000</pubDate>
		<dc:creator>romano</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[e-book]]></category>
		<category><![CDATA[kindle]]></category>

		<guid isPermaLink="false">http://rlog.rgtti.com/?p=245</guid>
		<description><![CDATA[<p>I am quite a geek in a lot of thing, but I resisted, till now, to leave my papery books and do the jump at the new technology.</p> <p>I have tons of book on the shelves of my home (and in my mother&#8217;s house, and in the office, and in boxes rotting away&#8230; they&#8217;re just [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rlog.rgtti.com/wp-content/uploads/2010/11/20/giving-up-i-bought-an-ebook/kindle.jpeg"><img class="alignleft size-full wp-image-246" title="kindle" src="http://rlog.rgtti.com/wp-content/uploads/2010/11/20/giving-up-i-bought-an-ebook/kindle.jpeg" alt="the new kindle with a red lace" width="141" height="203" /></a>I am quite a geek in a lot of thing, but I resisted, till now, to leave my papery books and do the jump at the new technology.</p>
<p>I have tons of book on the shelves of my home (and in my mother&#8217;s house, and in the office, and in boxes rotting away&#8230; they&#8217;re just too much to keep them all at hand).</p>
<p>So when the last book of the Void trilogy by <a href="http://www.peterfhamilton.co.uk/">Peter F. Hamilton</a> come out, and I saw that it was quite a big book as ever, I decided that my back (and my pockets) would be pleased at the change. At the same time, Amazon.com sent out the new version of its Kindle ebook, and after a bit of thinking, comparison and googling, I went for it. Why it and not another one (like the very nice Nook) was a decision based on the fact that this was the only one that gave me a simple way to buy books even from outside the U.S. &#8212; hint for the competition.</p>
<p>After three weeks with it, I can draw some initial conclusions about the product. Globally, I am very pleased with it.</p>
<p>On the plus side, the readability, which is really excellent. It is really at they say, the same as a (good) sheet of paper. The management of the books, very nice and easy to use and understand, not intrusive at all. You can rapidly forget about the gadget and think only to the book. And it works very well in conjunction with <a href="http://calibre-ebook.com/">Calibre </a>in Linux, which is definitely a plus.</p>
<p>On the minus side, the PDF viewing could be better (the kindle can only zoom at fixed values, as 100%, 150%, etc), which makes reading sometime difficult. And on the experimental features, like web browsing and background audio playing, things could be better, but they are definitely usable.</p>
<p>In the end, I am quite happy. If only the flying authority would not force to shut it off during take-off and landing (I doubt that the kindle, with WiFi off, can emit much more RF than my digital wrist clock), I would say that about the reading experience, there are no downsides with respect to a paper book. I am so satisfied that if there were a way to (cheaply and legally) &#8220;move&#8221; my physical book to the kindle, and recycle the paper, I would do it with 90% of my books &#8212; basically all the paperback and one half of the hardcover.</p>
]]></content:encoded>
			<wfw:commentRss>http://rlog.rgtti.com/2010/11/20/giving-up-i-bought-an-ebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

