<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.bonz.org/tech/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>ZenTech - truc</title>
  <link>http://www.bonz.org/tech/</link>
  <description>Om Mani Padme Hum</description>
  <language>fr</language>
  <pubDate>Mon, 10 Nov 2008 00:41:06 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Et si je voulais devenir cuisinier moi aussi ?</title>
    <link>http://www.bonz.org/tech/post/2008/10/13/Et-si-je-voulais-devenir-cuisinier-moi-aussi</link>
    <guid isPermaLink="false">urn:md5:c327653a6a1f983dc368c0b071e74d81</guid>
    <pubDate>Mon, 13 Oct 2008 14:37:00 +0200</pubDate>
    <dc:creator>hr</dc:creator>
        <category>truc</category>
        <category>build</category><category>debian</category><category>etch</category><category>gcc</category><category>libc</category>    
    <description>    &lt;p&gt;Si l'envie vous prenait de cuisiner sur votre système Debian, il y a un package à installer&amp;nbsp;: &lt;code&gt;build-essential&lt;/code&gt;. Ce paquet va, par dépendance, installer les outils principalement utilisés pour la compilation de sources comme un compilateur ou les librairies c standard.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.bonz.org/tech/post/2008/10/13/Et-si-je-voulais-devenir-cuisinier-moi-aussi#comment-form</comments>
      <wfw:comment>http://www.bonz.org/tech/post/2008/10/13/Et-si-je-voulais-devenir-cuisinier-moi-aussi#comment-form</wfw:comment>
      <wfw:commentRss>http://www.bonz.org/tech/feed/rss2/comments/307</wfw:commentRss>
      </item>
    
  <item>
    <title>La tu me vois, là tu me vois plus</title>
    <link>http://www.bonz.org/tech/post/2008/06/25/La-tu-me-vois-la-tu-me-vois-plus</link>
    <guid isPermaLink="false">urn:md5:a819fb937a60911f35bea2f4ba785181</guid>
    <pubDate>Wed, 25 Jun 2008 14:38:00 +0200</pubDate>
    <dc:creator>hr</dc:creator>
        <category>truc</category>
            
    <description>    &lt;p&gt;Depuis quelques temps j'avais un petit problème avec mon pavé numérique sur ma hardy, plus rien ne fonctionnait correctement. Le problème est simple à rêgler, dans le menu &lt;code&gt;Système &amp;gt; Préférences &amp;gt; Clavier&lt;/code&gt;, onglet &lt;code&gt;Touches de la souris&lt;/code&gt; il suffit de désactiver &lt;code&gt;Permettre le contrôle du pointeur par le clavier&lt;/code&gt;. Cette option est également contrôlée par la combinaison de touches &lt;code&gt;Shift + Verr Num&lt;/code&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.bonz.org/tech/post/2008/06/25/La-tu-me-vois-la-tu-me-vois-plus#comment-form</comments>
      <wfw:comment>http://www.bonz.org/tech/post/2008/06/25/La-tu-me-vois-la-tu-me-vois-plus#comment-form</wfw:comment>
      <wfw:commentRss>http://www.bonz.org/tech/feed/rss2/comments/201</wfw:commentRss>
      </item>
    
  <item>
    <title>Un robot en date et heure</title>
    <link>http://www.bonz.org/tech/post/2008/06/14/Un-robot-en-date-et-heure</link>
    <guid isPermaLink="false">urn:md5:a3cd68f99363089a4d407d5c0f47dc5a</guid>
    <pubDate>Sat, 14 Jun 2008 20:30:00 +0200</pubDate>
    <dc:creator>hr</dc:creator>
        <category>truc</category>
            
    <description>&lt;p&gt;C'est un classique et je veux vous en faire profiter, il n'y a pas de raison. Une petite tâche dans &lt;code&gt;crontab&lt;/code&gt; qui a besoin de la date courante et &lt;strong&gt;*pouf*&lt;/strong&gt; des messages d'erreur incompréhensibles&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
Syntax error: end of file unexpected (expecting &amp;quot;)&amp;quot;)
&lt;/pre&gt;

&lt;p&gt;C'est parti pour une petite investigation.&lt;/p&gt;    &lt;p&gt;Ma ligne &lt;code&gt;crontab&lt;/code&gt; ressemble à quelque chose comme ce qui suit&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
59 23 * * *     /home/hr/codaz/script.py $(date +%Y%m%d)
&lt;/pre&gt;

&lt;p&gt;Rien de bien sorcier pourtant, je fournis simplement la date courante à un script qui est lancé à 23h59 tous les jours. Et pourtant la source du problème est abordée dans la page de man de &lt;code&gt;crontab(5)&lt;/code&gt;&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
     The ``sixth'' field (the rest of the line) specifies the command to be
     run.  The entire command portion of the line, up to a newline or % char-
     acter, will be executed by /bin/sh or by the shell specified in the SHELL
     variable of the cronfile.  Percent-signs (%) in the command, unless
     escaped with backslash (\), will be changed into newline characters, and
     all data after the first % will be sent to the command as standard input.
&lt;/pre&gt;

&lt;p&gt;Il faut donc toujours penser à échapper les caractères '%' dans une ligne de &lt;code&gt;crontab&lt;/code&gt; pour éviter ce type de soucis, ma ligne devient donc&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
59 23 * * *     /home/hr/codaz/script.py $(date +\%Y\%m\%d)
&lt;/pre&gt;

&lt;p&gt;Je ne devrais plus oublier cette fois-ci!&lt;/p&gt;</description>
    
    
    
          <comments>http://www.bonz.org/tech/post/2008/06/14/Un-robot-en-date-et-heure#comment-form</comments>
      <wfw:comment>http://www.bonz.org/tech/post/2008/06/14/Un-robot-en-date-et-heure#comment-form</wfw:comment>
      <wfw:commentRss>http://www.bonz.org/tech/feed/rss2/comments/194</wfw:commentRss>
      </item>
    
  <item>
    <title>Sauvez du papier, mangez OpenOffice.org</title>
    <link>http://www.bonz.org/tech/post/2008/04/09/Sauvez-du-papier-mangez-OpenOfficeorg</link>
    <guid isPermaLink="false">urn:md5:c1073334099b40f255d1e2bf2c80aa76</guid>
    <pubDate>Wed, 09 Apr 2008 18:48:00 +0200</pubDate>
    <dc:creator>hr</dc:creator>
        <category>truc</category>
        <category>impression</category><category>openoffice</category><category>openoffice 2.3</category><category>openoffice 2.4</category><category>écologie</category>    
    <description>&lt;p&gt;En réponse à une préoccupation sur la consommation de papier lors de l'impression de documents, je me demande souvent comment imprimer 2 pages par feuille dans OpenOffice.org.&lt;/p&gt;    &lt;p&gt;Il faut de tout évidence commencer par ouvrir le document à imprimer. Ensuite, accéder à l'aperçu avant impression via &lt;code&gt;Fichier &amp;gt; Aperçu&lt;/code&gt;. Dans l'aperçu il y a un bouton nommé &quot;Options d'impression; aperçu&quot; à gauche du bouton &quot;Fermer l'aperçu&quot;. Ce bouton donne accès à une interface de préférences d'impression pour l'aperçu, en choisissant simplement &lt;code&gt;Format &amp;gt; Paysage&lt;/code&gt; et en conservant le nombre de colonnes à 2 on obtient le résultat recherché.
&lt;a href=&quot;http://www.bonz.org/tech/public/tech/2pages1feuille.png&quot;&gt;&lt;img src=&quot;http://www.bonz.org/tech/public/tech/.2pages1feuille_s.jpg&quot; alt=&quot;2 pages sur 1 feuille&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;
Il suffit maintenant d'imprimer l'aperçu en utilisant le bouton à gauche de &quot;Options d'impression: aperçu&quot; utilisé précédemment.&lt;/p&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>