<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>The player of games</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/" />
    <link rel="self" type="application/atom+xml" href="http://damien.krotkine.com/blog/atom.xml" />
    <id>tag:damien.krotkine.com,2008-07-06:/blog//1</id>
    <updated>2008-11-13T14:56:57Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Open Source 4.1</generator>

<entry>
    <title>Deny database listing in postgresql</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/11/deny-database-listing-in-postg.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.31</id>

    <published>2008-11-13T14:07:42Z</published>
    <updated>2008-11-13T14:56:57Z</updated>

    <summary>The questionFew days ago I wanted to configure a postgresql server so that users connecting to their database would not be able to see other databases. Among other things, I wanted to restrict the usage of : psql -l database...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="sqlpostgresqlpostgres" label="sql postgresql postgres" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><b><font style="font-size: 1.25em;">The question</font></b><br /></p><p>Few days ago I wanted to configure a postgresql server so that users connecting to their database would not be able to see other databases. Among other things, I wanted to restrict the usage of :</p>

<pre>psql -l database user</pre>

<p>This command will retrieve the list of database on the server, even if the user has no access right to them. If you issue this command, you'll et something like :</p>

<pre>                   List of databases
              Name               |  Owner   | Encoding  
---------------------------------+----------+-----------
 database_1                      | postgres | UTF8
 database_2                      | user_foo | UTF8
 ...
</pre>

<p><font style="font-size: 1.25em;"><b>The solution</b></font></p>

<p>Well at least one solution : in each database, the special virtual table <code>pg_database</code> (see <a href="http://www.postgresql.org/docs/8.3/static/catalog-pg-database.html">here</a> for the documentation) contains the list of all the databases hosted on the server. So if we remove access rights on this table, users won't be able to list the databases anymore.</p>

<p>But wait, this table is available in every databases. So we need to remove these access rights on all databases. So far so good.</p>

<p>Oh but what if a user creates a new database ? Yes, this new database will have this <code>pg_database</code> table, with default access rights, which allow anybody to list its content, thus getting the list of existing databases on the server.</p>

<p>So what we need is to change the access rights of the <code>pg_database</code> on newly crated databases. How do we do that ? by connecting to the special database <code>template1</code> (see <a href="http://www.postgresql.org/docs/8.3/interactive/manage-ag-templatedbs.html">here</a> for the documentation). This database contains the default content (and their associated rights) that are used to populate newly created databases. So in addition to changing the access rights of <code>pg_database</code> on every databases, we'll need to do the same on <code>template1</code>.</p>

<p>Now how do we change the access right? What we want is deny users the right to get the database list. That is, extracting the database list from pg_database. That is, <code>select</code>'ing the data of this table. So we simply need to <b>revoke</b> the <b>select</b> permission on the table, for everybody. We do that with this command :</p>

<p></p><pre>revoke select on pg_database from public;
</pre>

<p>Execute this query on all the databases of your server, plus on the special <code>template1</code> database. Then, trying to list the databases will return :</p>

<p></p><pre>psql -l database user
ERROR:  permission denied for relation pg_database
</pre>

Problem solved.]]>
        
    </content>
</entry>

<entry>
    <title>iPhone</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/08/iphone.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.29</id>

    <published>2008-08-22T07:45:19Z</published>
    <updated>2008-08-22T14:33:01Z</updated>

    <summary> As some of you may know, I&apos;ve just received my iPhone. Oh sure there is nothing exceptional about that, everybody got one now :) Still I&apos;m happy to have this device in my pocket. Instead of a long post...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="iphone" label="iphone" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/images/l_iphone_3g_a_partir_de_149_euros_chez_orange_photo_du_jour_grand.jpg"><img alt="iphone_3g" src="http://damien.krotkine.com/blog/images/l_iphone_3g_a_partir_de_149_euros_chez_orange_photo_du_jour_grand-thumb-200x135.jpg" width="200" height="135" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>
As some of you may know, I've just received my iPhone. Oh sure there is nothing exceptional about that, <strong>everybody</strong> got one now :) Still I'm happy to have this device in my pocket.</p>

<p>Instead of a long post explaining why I think it's great and what I use it for, I'm going to write some blog entries that each describe one important use case.</p>

<p>But generally speaking, the main reasons I bought an iPhone are :</p>


<ul>
<li>I already have a macbook Pro, and the iPhone is the easiest way to synchronize to it, carry my important stuff in my pocket.</li>
<li>iPhone is really the internet in you pocket. I didn't believe the great advertizing, but yes it is true, internet is always with me. And Because it has numerous users, quite a lot of websites are iPhone oriented.</li>
<li>Using my public linux server, my Mac and the iPhone, I can create some scripts, bridges and other things to have everything deeply interconnected. Alarms, events, <span class="caps">IM, </span>etc... More about that in a later post.</li>
<li>The AppStore is full of Applications, and some of them are really useful for system administration on the go.</li>
</ul>

]]>
        
    </content>
</entry>

<entry>
    <title>Paris.pm meeting</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/08/parispm-meeting.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.27</id>

    <published>2008-08-07T22:39:56Z</published>
    <updated>2008-08-07T23:25:47Z</updated>

    <summary> Yesterday evening, Paris Perl Mongers Meeting, at the Maldoror bar, near République. Adam Kennedy was spending few days in Paris, so he joined us, and had brought some Perl USB keys that were quite successful. The pictures here :...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="perl" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mongers" label="mongers" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="paris" label="paris" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="perl" label="perl" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/images/P1020341.JPG"><img alt="P1020341.JPG" src="http://damien.krotkine.com/blog/images/P1020341-thumb-100x133.jpg" width="100" height="133" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>
Yesterday evening, Paris Perl Mongers Meeting, at the Maldoror bar, near République. <span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/images/P1020330.JPG"><img alt="P1020330.JPG" src="http://damien.krotkine.com/blog/images/P1020330-thumb-100x75.jpg" width="100" height="75" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span><br />
Adam Kennedy was spending few days in Paris, so he joined us, and had brought some Perl <span class="caps">USB </span>keys that were quite successful.</p>

<p>The pictures here : <a href="http://www.flickr.com/photos/damsieboy/sets/72157606586756116/">Paris.pm 07/08/08 [flickr]</a> </p>]]>
        
    </content>
</entry>

<entry>
    <title>Ice Climbing</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/ice-climbing.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.26</id>

    <published>2008-07-28T11:15:28Z</published>
    <updated>2008-07-28T11:28:34Z</updated>

    <summary> 2 days ago I went doing some indoor ice climbing at the London Ice Wall in Covent Garden That was part of the preparation for our upcoming trip in Chamonix (mainly rock climbing, and maybe a bit of easy...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="climbing" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="chamonix" label="chamonix" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="iceclimbing" label="ice climbing" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rockclimbing" label="rock climbing" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/images/scarpa-freney-xt.jpg"><img alt="scarpa-freney-xt.jpg" src="http://damien.krotkine.com/blog/images/scarpa-freney-xt-thumb-200x165.jpg" width="200" height="165" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>
2 days ago I went doing some indoor ice climbing at the <a href="http://www.vertical-chill.com/vertical-chill-london.htm">London Ice Wall in Covent Garden</a></p>

<p>That was part of the preparation for our upcoming trip in Chamonix (mainly rock climbing, and maybe a bit of easy ice climbing). That was the first time I ever did ice climbing, and it is really great <img src="Scary," alt="" /> Ice climbing is all about holding yourself to an ice wall that could break at any moment, with very very sharp tools in your hands and on your feet. Falling is basically not an option. I think the first rule of ice climbing is humility.</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/images/grivel_airtec_gsb.jpg"><img alt="grivel_airtec_gsb.jpg" src="http://damien.krotkine.com/blog/images/grivel_airtec_gsb-thumb-200x150.jpg" width="200" height="150" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>
As part of the trip preparation, I also got new shoes and crampons, as pictured. These scarpa shoes are really nice. They are considered as the "classic" shoes for summer mountaineering. My last shoes were very old, bulky and pretty "old school". These new shoes are lighter, smarter, and hurt less. Plus they have an incredible style :)</p>]]>
        
    </content>
</entry>

<entry>
    <title>Geek diagram</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/geek-diagram.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.24</id>

    <published>2008-07-27T10:53:39Z</published>
    <updated>2008-07-27T11:04:51Z</updated>

    <summary> Some time ago I played with Omnigraffle because they were offering free beta licenses. I draw the electronic installation diagram of my living room, check it out....</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="fun" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/fun/home.png"><img alt="home.png" src="http://damien.krotkine.com/blog/fun/home-thumb-200x136.png" width="200" height="136" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>
Some time ago I played with <a href="http://www.omnigroup.com/applications/OmniGraffle/">Omnigraffle</a> because they were offering free beta licenses. I draw the electronic installation diagram of my living room, check it out.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Multiple identity with Mail</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/multiple-identity-with-mail.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.22</id>

    <published>2008-07-19T12:10:57Z</published>
    <updated>2008-07-19T12:23:52Z</updated>

    <summary> I just discovered that it is possible to have multiple identity on one account in Mail. Just add more than one email adress seperated by comas, in the personal email field : I&apos;m sure all of you Mac users...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="account" label="account" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="identity" label="identity" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mail" label="Mail" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/claws/Mail_multiple_identity.html" onclick="window.open('http://damien.krotkine.com/blog/claws/Mail_multiple_identity.html','popup','width=822,height=609,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://damien.krotkine.com/blog/claws/Mail_multiple_identity-thumb-200x148.png" width="200" height="148" alt="Mail_multiple_identity.png" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span>
I just discovered that it is possible to have multiple identity on one account in Mail. Just add more than one email adress seperated by comas, in the personal email field :</p>

<p>I'm sure all of you Mac users know that, but I just found that out and I'm really happy about it :)</p>]]>
        
    </content>
</entry>

<entry>
    <title>Claws Mail 3.5.0 on Mac OS X</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/claws-mail-350-on-mac-os-x.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.21</id>

    <published>2008-07-16T22:38:25Z</published>
    <updated>2008-07-17T00:22:33Z</updated>

    <summary> I have just released a new build of Claws Mail for Mac OS X Leopard (10.5). Despite the fact that this release is to be considered beta, I&apos;m quite excited about it. Why? Up to now, the builds required...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="claws" label="claws" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/claws/sc_claws_3_5_0.html" onclick="window.open('http://damien.krotkine.com/blog/claws/sc_claws_3_5_0.html','popup','width=1440,height=900,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://damien.krotkine.com/blog/assets_c/2008/07/sc_claws_3_5_0-thumb-200x125.png" width="200" height="125" alt="sc_claws_3_5_0.png" class="mt-image-right" style="float: right; margin: 0 0 20px 20px;" /></a></span></p>

<p>I have just released a new build of <a href="http://damien.krotkine.com/blog/claws.html">Claws Mail for Mac OS X</a> Leopard (10.5). Despite the fact that this release is to be considered <em>beta</em>, I'm quite excited about it. Why?</p>

<p>Up to now, the builds required an <span class="caps">X11 </span>server to be installed (usually Apple's <a href="http://developer.apple.com/opensource/tools/X11.html"><span class="caps">X11.A</span>pp</a> ). Indeed, Claws Mail is a Gtk+ software, originally built for Linux. And until recently, running Gtk+ on Mac OS X required to compile and link against <span class="caps">X11.</span></p>

<p>However, a project finally achieved to port Gtk+ to Mac OS X natively. I'm talking about <a href="http://developer.imendio.com/projects/gtk-macosx/">Imendio's project</a> .</p>

<p>Although I had played with this Gtk+ port in the past (the default demo application ran quite well), I waited for the Port to be a bit more mature.</p>

<p>When I decided to try to build Claws Mail on top of this native Gtk+ port, it took me only one night to do it. The Gtk+ port compiled flawlessly, all I got to do is resolve the usual Mac / Claws compilation issues, as well as the packaging.</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/screenshot12.html" onclick="window.open('http://damien.krotkine.com/blog/screenshot12.html','popup','width=1215,height=793,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://damien.krotkine.com/blog/assets_c/2008/04/screenshot1-thumb-200x130.png" width="200" height="130" alt="screenshot1.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span></p>

<p>So anyway, I'm proud to present the first native Mac OS X version of Claws Mail, available as a nice dmg image <a href="http://damien.krotkine.com/claws/download/Native/macintel/10.5/3.5.0/0.1/Claws_Mail.dmg">here</a> .</p>

<p>Beware, although it works quite well (I'm using it currently), this is to be considere <em>beta</em>. Some bugs and glitches will be addressed soon.</p>

<p>Enjoy.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Claws Mail on Mac OS X</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/claws-mail-on-mac-os-x.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.20</id>

    <published>2008-07-15T21:42:34Z</published>
    <updated>2008-07-15T21:45:06Z</updated>

    <summary>As some of you may know, I built some versions of Claws Mail for Mac OS X. However I didn&apos;t keep them up-to-date with the latest Claws version, nor the latest Mac OS X versions, shame on me ! However...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="clawsmail" label="claws mail" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>As some of you may know, I built some versions of Claws Mail for Mac OS X. However I didn't keep them up-to-date with the latest Claws version, nor the latest Mac OS X versions, shame on me !</p>

<p>However I had good reasons, and when you'll see the next version that I'm currently trying to build, you'll see why...</p>

<p>So stay tuned !</p>]]>
        
    </content>
</entry>

<entry>
    <title>RSS / Atom feeds per category in Movable Type</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/rss-atom-feeds-per-category-in.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.19</id>

    <published>2008-07-15T10:04:07Z</published>
    <updated>2008-07-15T10:38:00Z</updated>

    <summary>At last ! I found a nice and easy howto describing how to enable RSS feed per category in Movable Type version 4.x. Here it is This blog entry describes how to create a new template (RSS category), map it...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="atom" label="atom" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="feed" label="feed" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="movabletype" label="movable type" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mt" label="mt" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rss" label="rss" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>At last !</p>

<p>I found a nice and easy howto describing how to enable <span class="caps">RSS </span>feed per category in Movable Type version 4.x. <br />
<a href="http://www.tildemark.com/blogging/category-rss-with-movable-type-4.html">Here it is</a></p>

<p>This blog entry describes how to create a new template (RSS category), map it to the categories, and change the main category widget to link to it. I did the similar steps to create an atom feed for each categories.</p>

<p>So now you can see a small feed icon near each category name, on the main page of my blog index page.</p>]]>
        
    </content>
</entry>

<entry>
    <title>booh 0.9.1 ebuild</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/booh-091-ebuild.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.17</id>

    <published>2008-07-07T12:52:23Z</published>
    <updated>2008-07-06T22:20:38Z</updated>

    <summary>It&apos;s been a long time since my last commit in the gentoo tree ! I had lost motivation and interest. But now I&apos;m back with one simple goal for now : just maintain my ebuilds, don&apos;t get involved in any...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="gentoo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>It's been a long time since my last commit in the gentoo tree ! I had lost motivation and interest. But now I'm back with one simple goal for now : just maintain my ebuilds, don't get involved in any discussion, and take it easy :)</p>

<p>So I'm happy to celebrate my comeback with the much awaited ebuild for the new version of <a href="http://booh.org/">booh</a> : <a href="http://www.gentoo-portage.com/app-misc/booh">0.9.1</a>. </p>

<p>This new version (well actually 0.9.0) brings a lot of new features and programs : album2booh booh-classifier booh-fix-whitebalance booh-gamma-correction webalbum2booh</p>

<p>Enjoy!</p>]]>
        
    </content>
</entry>

<entry>
    <title>server reinstallation</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/07/server-reinstallation.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.16</id>

    <published>2008-07-03T23:09:07Z</published>
    <updated>2008-07-03T23:10:03Z</updated>

    <summary>The server I&apos;m paying for (dedibox) crashed for unknown reason, I had to reinstall it. Luckilly enough I could boot in rescue mode and archive my important data, it helped to get everything up and running again, or at least...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="gentoo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mt" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>The server I'm paying for (dedibox) crashed for unknown reason, I had to reinstall it. Luckilly enough I could boot in rescue mode and archive my important data, it helped to get everything up and running again, or at least the important bits (gentoo, apache, this blog, postgresql)</p>

<p>The newest addition on this server :</p>


<ul>
<li>squid to act as proxy</li>
<li>backup-manager as a backup solution</li>
</ul>



<p>backup-manager is not very powerful, but it's small, light and simple to install and configure. All you need is Perl and gettext :) It'll do until I migrate to bacula.</p>]]>
        
    </content>
</entry>

<entry>
    <title>ssh, keychain</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/05/ssh-keychain.html" />
    <id>tag:damien.krotkine.com,2008:/blog//1.15</id>

    <published>2008-05-16T10:07:28Z</published>
    <updated>2008-07-15T09:56:22Z</updated>

    <summary>On our way back from FOSDEM, I had a quick discussion about ssh with Chris, and it motivated me to clean up all my ssh keys, passphrases, agents. So now I use different keys for work and home, and ssh...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="gentoo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="keychain" label="keychain" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ssh" label="ssh" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>On our way back from <span class="caps">FOSDEM,</span> I had a quick discussion about ssh with Chris, and it motivated me to clean up all my ssh keys, passphrases, agents.</p>

<p>So now I use different keys for work and home, and ssh keychain on both.</p>

<p>Next move is to add my work identity to my home session to be able to connect directly to servers at work without having to go through my workstation at work. Without putting my home private id on my machine at work, nor copying my home public id on all servers at work. It should be possible I've heard :)</p>

<p>Anyway, here is briefly how I did it : ssh-keygen (dsa as main key). Then install keychain (see <a href="http://www.gentoo.org/proj/en/keychain/">http://www.gentoo.org/proj/en/keychain/</a> and configure it a bit. I added the following script in /etc/profile.d/keychain.sh (gentoo host), and I use the built in keychain on my mac.</p>

<p>#!/bin/bash<br />
# start keychain, with the private keys to be cached<br />
/usr/bin/keychain ~/.ssh/id_dsa<br />
# then load the generated files<br />
for i in ~/.keychain/*-sh*; do<br />
echo "sourcing $i"<br />
source $i<br />
done</p>

<p>I know, I know, everybody is supposed to know everything about ssh, but I'm happy to admit that I learnt 2 or 3 things while setting up everything properly. Besides, how many of you have no passphrase on your ssh key ? :)</p>]]>
        
    </content>
</entry>

<entry>
    <title>Export Apple address book to gmail</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/04/export-apple-address-book-to-g.html" />
    <id>tag:88.191.63.225,2008:/blog//1.12</id>

    <published>2008-04-08T23:00:24Z</published>
    <updated>2008-07-15T09:53:40Z</updated>

    <summary>I&apos;m trying to solve the hassle of synchronizing and maintaining my contact lists accross different computers, accounts, tools, software, etc... I&apos;m nearly there, I&apos;ll probably write a longer entry about it later. Anyway my solution involves thunderbird, Apple&apos;s Address Book,...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="addressbook" label="address book" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="gmail" label="gmail" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mac" label="mac" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>I'm trying to solve the hassle of synchronizing and maintaining my contact lists accross different computers, accounts, tools, software, etc... I'm nearly there, I'll probably write a longer entry about it later. Anyway my solution involves thunderbird, Apple's Address Book, plaxo, gmail, linkedin, and my mobile phone.</p>

<p>Today I just wanted to briefly mention <a href="http://bborofka.com/atog/">A To G</a>, a small free mac application that simply exports all the adress book data to a csv files that gmail can import.</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://damien.krotkine.com/blog/AtoG.html" onclick="window.open('http://damien.krotkine.com/blog/AtoG.html','popup','width=343,height=221,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="AtoG.png" width="300" height="193" alt="AtoG.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span></p>]]>
        
    </content>
</entry>

<entry>
    <title>New Home</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/04/new-home-page.html" />
    <id>tag:88.191.63.225,2008:/blog//1.10</id>

    <published>2008-04-08T00:38:15Z</published>
    <updated>2008-04-08T00:45:50Z</updated>

    <summary>It&apos;s nearly 2pm and I&apos;m bored. I am halfway through migrating my old home page to this new Movable Type blog - well actually it&apos;s more like a CMS. The features are nice and it looks great, plus the statically...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mt" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[<p>It's nearly 2pm and I'm bored. I am halfway through migrating my old home page to this new Movable Type blog - well actually it's more like a <span class="caps">CMS.</span></p>

<p>The features are nice and it looks great, plus the statically generated content means it's fast to deliver. But it's quite a pain to add and edit all the pages through the web interface. I'm quite new to Movable Type, so it might be that I just missed the powerful editor.</p>

<p>Anyway I kind of like it as a whole, but I ca't wait to use advanced features that made me choose MT in the first place : blogging from an iphone, installing new plugins, and editing my templates.</p>]]>
        
    </content>
</entry>

<entry>
    <title>DragThing</title>
    <link rel="alternate" type="text/html" href="http://damien.krotkine.com/blog/2008/04/dragthing.html" />
    <id>tag:88.191.63.225,2008:/blog//1.5</id>

    <published>2008-04-06T03:21:18Z</published>
    <updated>2008-04-06T03:35:38Z</updated>

    <summary>Right. Back to the time when I got my first mac, it was an ibook G4 800Hz (it&apos;s only 4 years ago) and it was running Linux (gentoo ppc if you want to know). I think it was the good...</summary>
    <author>
        <name>dams</name>
        
    </author>
    
        <category term="en" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mac" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://damien.krotkine.com/blog/">
        <![CDATA[Right. Back to the time when I got my first mac, it was an ibook G4 800Hz (it's only 4 years ago) and it was running Linux (gentoo ppc if you want to know). I think it was the good choice, because OS X was quite slow at that time, and the ibook wasn't particularty powerful.<br /><br />Anyway one thing that didn't make me regret to not be using OS X, was that I didn't have to use the Horrible Dock :) What can I do ? I never liked it, and I never understood why it was supposed to be a so great idea. But now I'm using Mac OS X and althought I like the OS (I might talk about the reasons later), I still had to live with the Dock. Until now :<br /><br /><ul><li><strong>DragThing : </strong> not free, but really an awesome piece of software, get it <a href="http://www.dragthing.com/">here</a>. It allows you to create panes and panels from diffrent shapes, style and content. <a href="http://http//damien.krotkine.com/stuff/hate.png">screenshot here</a>. The icons on the left aren't on the desktop, they are in a transparent panel in the foreground.</li></ul><br /><ul>
<li><strong>Switcheroo : </strong> minimalistic, does less things, but can be useful. Get it from <a href="http://www.versiontracker.com/dyn/moreinfo/macosx/15777">versiontracker</a></li></ul>]]>
        
    </content>
</entry>

</feed>
