<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.bibimax.homedns.org/index.php?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>Le Blog de BiBiMax</title>
  <link>http://blog.bibimax.homedns.org/index.php?</link>
  <description>Le blog de BiBiMax : petit florilège de ce que j'ai pu découvrir sur le Net, à l'école au boulot, etc...</description>
  <language>fr</language>
  <pubDate>Mon, 16 Nov 2009 20:11:31 +0100</pubDate>
  <copyright>CopyLeft</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>BiBi fait du VBA avec Word</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/10/13/BiBi-fait-du-VBA-avec-Word</link>
    <guid isPermaLink="false">urn:md5:30ab99ef2068b59e6dfc90c20c4ab2a5</guid>
    <pubDate>Tue, 13 Oct 2009 14:56:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
        <category>Developpement</category><category>Divers</category><category>Windows</category><category>Word</category>    
    <description>    &lt;p&gt;Et oui, je n'aurais jamais cru en arriver là &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Mais il faut reconnaître que ca peut être pratique.&lt;/p&gt;


&lt;p&gt;Cette première fonction n'a pour seul but de supprimer le paragraphe ayant pour titre&amp;nbsp;: &quot;règle de validation serveur de la table&quot; jusqu'au paragraphe ayant pour titre&amp;nbsp;: &quot;nom de contrainte de paramètre de contrôle de la table&quot;&lt;/p&gt;

&lt;pre&gt;
Public Sub eraseParagraph()
 Dim search As String
 Dim searchEnd As String
   
    search = &amp;quot;règle de validation serveur de la table&amp;quot;
    searchEnd = &amp;quot;nom de contrainte de paramètre de contrôle de la table&amp;quot;

    Dim para As Paragraph
    Dim flag As Boolean
    
    flag = False
    
    For Each para In ActiveDocument.Paragraphs
        Dim txt As String
        txt = para.Range.Text
        
        If (flag = True) Then
          If InStr(LCase(txt), searchEnd) Then
                flag = False
          Else
            para.Range.Delete
          End If
        End If
        
        If InStr(LCase(txt), search) Then
            para.Range.Delete
                  flag = True
        End If

    Next
End Sub
&lt;/pre&gt;



&lt;p&gt;Cette fonction a pour but de supprimer dans tous les tableaux de 5 colonnes du document, les deux dernières colonnes&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Public Sub eraseColumnInTable()

 Dim tablea As Table
 
 For Each tablea In ActiveDocument.Tables
    If tablea.Columns.Count = 6 Then
        tablea.Columns(5).Delete
        tablea.Columns(5).Delete
    End If
    
 Next

End Sub
&lt;/pre&gt;



&lt;p&gt;Cette fonction a pour but de définir la taille de tous les tableaux du document avec une largeur de 100 %&lt;/p&gt;

&lt;pre&gt;
Public Sub modiifyWidthTable()
Dim tablea As Table
 
 For Each tablea In ActiveDocument.Tables
    If tablea.Columns.Count = 4 Then

    tablea.PreferredWidthType = wdPreferredWidthPercent
    tablea.PreferredWidth = 100

    End If
    
 Next

End Sub
&lt;/pre&gt;


&lt;p&gt;Comme quoi, il arrive qu'un truc aussi &quot;moisi&quot; puisse servir &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/10/13/BiBi-fait-du-VBA-avec-Word#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/10/13/BiBi-fait-du-VBA-avec-Word#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/82</wfw:commentRss>
      </item>
    
  <item>
    <title>Trouver un login / mot de passe pour à peu près tous les sites</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/09/21/Trouver-un-login-/-mot-de-passe-pour-a-peu-pres-tous-les-sites</link>
    <guid isPermaLink="false">urn:md5:436a9aff36812bbe4bd4f3acce561490</guid>
    <pubDate>Mon, 21 Sep 2009 09:08:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
        <category>Developpement</category><category>Divers</category><category>Web</category>    
    <description>    &lt;p&gt;Il arrive régulièrement que pour accéder à une information, un site vous demande un couple&amp;nbsp;: login / mot de passe que vous pouvez obtenir gratuitement en vous inscrivant sur le site.&lt;/p&gt;


&lt;p&gt;Voici une solution, pour évitez l'étape&amp;nbsp;: inscription.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.bugmenot.com/&quot; hreflang=&quot;fr&quot;&gt;http://www.bugmenot.com/&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Avec ce site, vous pourrez rechercher des couples login / password pour à peu près tout et n'importe quoi.&lt;/p&gt;


&lt;p&gt;Enjoy&amp;nbsp;! &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/09/21/Trouver-un-login-/-mot-de-passe-pour-a-peu-pres-tous-les-sites#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/09/21/Trouver-un-login-/-mot-de-passe-pour-a-peu-pres-tous-les-sites#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/81</wfw:commentRss>
      </item>
    
  <item>
    <title>Faire un graphe de dépendances d'un paquet Debian</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/09/17/Faire-un-graphe-de-dependance-dun-paquet-Debian</link>
    <guid isPermaLink="false">urn:md5:df7a22f54656acd690a709bb9dee7933</guid>
    <pubDate>Thu, 17 Sep 2009 15:33:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
        <category>Debian</category><category>Divers</category><category>Gate</category><category>Linux</category><category>Logiciel libre</category><category>Shell</category><category>Ubuntu</category>    
    <description>    &lt;p&gt;Si vous désirez obtenir une représentation graphique d'un paquet Debian, rien de plus simple&lt;/p&gt;

&lt;pre&gt;
 apt-cache dotty zsh | dot -Tpng &amp;gt; zsh_dep.png
&lt;/pre&gt;


&lt;p&gt;et voici le résultat&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/.zsh_dep_m.jpg&quot; alt=&quot;Dépendances ZSH&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;PS&amp;nbsp;: merci au chef des &quot;tapettes&quot; de Smile, Nicolas B. &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;PS2&amp;nbsp;: apt-get install graphwiz pour récupérer dot&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/09/17/Faire-un-graphe-de-dependance-dun-paquet-Debian#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/09/17/Faire-un-graphe-de-dependance-dun-paquet-Debian#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/80</wfw:commentRss>
      </item>
    
  <item>
    <title>Interface WEB pour télécharger sur les newsgroup</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/07/14/Interface-WEB-pour-telecharger-sur-les-newsgroup</link>
    <guid isPermaLink="false">urn:md5:48d5939359679d863f4f38c9c62490c8</guid>
    <pubDate>Tue, 14 Jul 2009 14:57:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>General</category>
            
    <description>    &lt;p&gt;Le logiciel s'appelle &lt;a href=&quot;http://www.sabnzbd.org/&quot; hreflang=&quot;fr&quot;&gt;Sabnzbd&lt;/a&gt; et est écrit en python.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.bastardgeek.com/2009/05/automate-nzb-downloads-part-1/&quot; hreflang=&quot;fr&quot;&gt;Un petit lien vaut mieux qu'un gros plagiat&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Un petit&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
apt-get install python-pyopenssl
&lt;/pre&gt;


&lt;p&gt;pour avoir le SSL &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/07/14/Interface-WEB-pour-telecharger-sur-les-newsgroup#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/07/14/Interface-WEB-pour-telecharger-sur-les-newsgroup#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/79</wfw:commentRss>
      </item>
    
  <item>
    <title>Eclipse : ajouter un dossier généré par un plugin maven en tant que source folder</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/06/25/Eclipse-%3A-ajouter-un-dossier-genere-par-un-plugin-maven-en-tant-que-source-folder</link>
    <guid isPermaLink="false">urn:md5:3d3a576649104f04493f78d760c34c73</guid>
    <pubDate>Thu, 25 Jun 2009 12:02:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
            
    <description>    &lt;p&gt;Par défaut, le plugin axis génère les sources à partir d'une wsdl dans target/generated-sources/axis2/wsdl2code.&lt;/p&gt;


&lt;p&gt;Ceci ne pose pas de soucis si on compile en ligne de commande. Mais lors de l'intégration avec Eclipse, les classes générées ne sont pas dans le classpath et ne sont pas compilées.&lt;/p&gt;


&lt;p&gt;Il faut donc ajouter un source folder. Voici les lignes à ajouter dans votre pom pour que cet ajout de source folder soit automatique lors de l'utilisation du plugin m2eclipse et de la fonctionnalité&amp;nbsp;: Update Project Configuration&lt;/p&gt;

&lt;pre&gt;
&amp;lt;plugin&amp;gt;
	&amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;build-helper-maven-plugin&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
	&amp;lt;executions&amp;gt;
        	&amp;lt;execution&amp;gt;
	        	&amp;lt;id&amp;gt;add-source&amp;lt;/id&amp;gt;
		        &amp;lt;phase&amp;gt;generate-sources&amp;lt;/phase&amp;gt;
         		&amp;lt;goals&amp;gt;
		        	&amp;lt;goal&amp;gt;add-source&amp;lt;/goal&amp;gt;
	        	&amp;lt;/goals&amp;gt;
        		&amp;lt;configuration&amp;gt;
	        		&amp;lt;sources&amp;gt;
		        		&amp;lt;source&amp;gt;target/generated-sources/axis2/wsdl2code/src&amp;lt;/source&amp;gt;
			        &amp;lt;/sources&amp;gt;
        		&amp;lt;/configuration&amp;gt;
		&amp;lt;/execution&amp;gt;
	&amp;lt;/executions&amp;gt;
&amp;lt;/plugin&amp;gt;
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/06/25/Eclipse-%3A-ajouter-un-dossier-genere-par-un-plugin-maven-en-tant-que-source-folder#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/06/25/Eclipse-%3A-ajouter-un-dossier-genere-par-un-plugin-maven-en-tant-que-source-folder#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/78</wfw:commentRss>
      </item>
    
  <item>
    <title>Maven : ajout d'un source folder pour les classes générées</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/06/05/Maven-%3A-ajout-dun-source-folder-pour-les-classes-generees</link>
    <guid isPermaLink="false">urn:md5:30be3c16ecbfbb977fad5c5ed5a5cb88</guid>
    <pubDate>Fri, 05 Jun 2009 11:15:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
            
    <description>    &lt;p&gt;Voilà, j'ai voulu mettre les classes générées par différent plugins maven (jaxws par exemple) dans un autre source folder. Ceci permettant de bien séparer le code généré du code développé.&lt;/p&gt;


&lt;p&gt;Pour cela, il faut utiliser le plugin&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;plugin&amp;gt;
	&amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;
	&amp;lt;artifactId&amp;gt;build-helper-maven-plugin&amp;lt;/artifactId&amp;gt;
	&amp;lt;version&amp;gt;1.1&amp;lt;/version&amp;gt;
	&amp;lt;executions&amp;gt;
		&amp;lt;execution&amp;gt;
			&amp;lt;id&amp;gt;add-source&amp;lt;/id&amp;gt;
			&amp;lt;phase&amp;gt;generate-sources&amp;lt;/phase&amp;gt;
			&amp;lt;goals&amp;gt;
				&amp;lt;goal&amp;gt;add-source&amp;lt;/goal&amp;gt;
			&amp;lt;/goals&amp;gt;
			&amp;lt;configuration&amp;gt;
				&amp;lt;sources&amp;gt;
					&amp;lt;source&amp;gt;src/generated/java&amp;lt;/source&amp;gt;
				&amp;lt;/sources&amp;gt;
			&amp;lt;/configuration&amp;gt;
		&amp;lt;/execution&amp;gt;
	&amp;lt;/executions&amp;gt;
&amp;lt;/plugin&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Il ne reste plus qu'à faire un petit &quot;Update Project Configuration&quot; via m2Eclipse pour que le source folder src/generated/java soit ajouté au Build Path.&lt;/p&gt;


&lt;p&gt;Vous pouvez, ainsi ajouter le répertoire src/generated/java au .cvsignore ou au .svnignore.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/06/05/Maven-%3A-ajout-dun-source-folder-pour-les-classes-generees#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/06/05/Maven-%3A-ajout-dun-source-folder-pour-les-classes-generees#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/77</wfw:commentRss>
      </item>
    
  <item>
    <title>Freebox HD, UPnP et mode routeur non actif sont dans un bateau</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/05/19/Freebox-HD-UPnP-et-mode-routeur-non-actif-sont-dans-un-bateau</link>
    <guid isPermaLink="false">urn:md5:518b8f4cbe1772e4ff62488e0d5b7fb5</guid>
    <pubDate>Tue, 19 May 2009 08:52:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>General</category>
            
    <description>    &lt;p&gt;Free vient de sortir une nouvelle fonctionnalité pour la Freebox HD&amp;nbsp;: l'UPnP. Tout se passe bien si l'on est dans une configuration standard, à savoir&amp;nbsp;:
- Freebox en mode routeur
- PCs branchés sur le switch de la Freebox&lt;/p&gt;



&lt;p&gt;Dans ce cas, il suffit d'installer un serveur UPnP (Mediatomb par exemple) et on a accès aux vidéos stockées sur le PC directement depuis la Freebox.&lt;/p&gt;



&lt;p&gt;Je vais vous présenter la solution que j'ai mise en place pour obtenir la même chose mais avec la Freebox pas en mode routeur.&lt;/p&gt;



&lt;p&gt;Petit schéma&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Freebox &lt;del&gt;&lt;/del&gt;&amp;gt; Gate (81.x.x.x) &lt;del&gt;&lt;/del&gt;&amp;gt; Switch &lt;del&gt;&lt;/del&gt;&amp;gt; PC&lt;/p&gt;



&lt;p&gt;Lors de mes premiers tests, j'ai installé Mediatomb sur la Gate mais la Freebox HD ne voyait pas le serveur UPnP. Je me suis rappelé des problèmes avec le Freeplayer et j'ai modifié mes règles sur mon parefeu.&lt;/p&gt;


&lt;pre&gt;
# On accepte tout ce qui vient de la Freebox
iptables -N FREE2ME
iptables -A FREE2ME -s 81.x.x.x -j ACCEPT
iptables -A FREE2ME -s 212.27.38.253 -j ACCEPT
# On ferme les ports de Mediatomb à tout le reste du monde
iptables -A FREE2ME -p TCP --dport 49152 -j REJECT --reject-with tcp-reset
iptables -A FREE2ME -p UDP --dport 1900 -j REJECT

# On accepte tout ce qui vient de la freebox (freeplayer.freebox.fr = 212.27.38.253)
iptables -t filter -A INPUT -i eth1 -s 212.27.38.253 -j ACCEPT
# On refuse tout le reste du monde qui voudrait accéder à mediatomb
iptables -t filter -A INPUT -i eth1 -p TCP --dport 49152 -j REJECT --reject-with tcp-reset
iptables -t filter -A INPUT -i eth1 -p UDP --dport 1900 -j REJECT
# On autorise la gate à communiquer avec la freebox
iptables -t filter -A OUTPUT -s 212.27.38.253 -j ACCEPT
&lt;/pre&gt;


&lt;p&gt;Une fois le pare feu redémarré, je voyais mon serveur UPnP Mediatomb depuis la Freebox HD.&lt;/p&gt;


&lt;p&gt;Il reste maintenant à régler le problème de sous-titres avec Mediatomb mais cela fera sûrement l'objet d'un autre billet.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/05/19/Freebox-HD-UPnP-et-mode-routeur-non-actif-sont-dans-un-bateau#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/05/19/Freebox-HD-UPnP-et-mode-routeur-non-actif-sont-dans-un-bateau#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/76</wfw:commentRss>
      </item>
    
  <item>
    <title>Mettre à jour Ubuntu en mode console</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/05/11/Mettre-a-jour-Ubuntu-en-mode-console</link>
    <guid isPermaLink="false">urn:md5:67f602637eb194c0c1a67108b745192f</guid>
    <pubDate>Mon, 11 May 2009 13:52:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
        <category>Divers</category><category>Linux</category><category>Logiciel libre</category><category>Ubuntu</category>    
    <description>    &lt;p&gt;J'ai voulu mettre à jour une Ubuntu (8.10 -&amp;gt; 9.04) à distance via une connection SSH et je ne voulais pas m'embêter à passer par VNC pour effectuer cette opération.&lt;/p&gt;


&lt;p&gt;Une fois la connection SSH effectuée&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Mise à jour de la liste des paquets&lt;/p&gt;
&lt;pre&gt;
sudo apt-get update
&lt;/pre&gt;


&lt;p&gt;Installation du paquet responsable de la mise à jour&lt;/p&gt;
&lt;pre&gt;
sudo apt-get install update-manager-core
&lt;/pre&gt;



&lt;p&gt;Vérification de la configuration d'update-manager&amp;nbsp;: Prompt=normal&lt;/p&gt;
&lt;pre&gt;
emacs /etc/update-manager/release-upgrades
&lt;/pre&gt;


&lt;p&gt;Lancement de la migration&lt;/p&gt;
&lt;pre&gt;
sudo do-release-upgrade
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/05/11/Mettre-a-jour-Ubuntu-en-mode-console#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/05/11/Mettre-a-jour-Ubuntu-en-mode-console#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/75</wfw:commentRss>
      </item>
    
  <item>
    <title>Linux : connaître vitesse de transfert sur une carte réseau</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/04/15/Linux-%3A-connaitre-vitesse-de-transfert-sur-une-carte-reseau</link>
    <guid isPermaLink="false">urn:md5:5a4037510ca15448fd6a19596f331a58</guid>
    <pubDate>Wed, 15 Apr 2009 10:48:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
            
    <description>    &lt;p&gt;Si vous cherchez à déterminer l'occupation de votre bande passante en mode console sous linux, voici différents utilitaires bien sympas.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;iftop&lt;/li&gt;
&lt;li&gt;speedometer&lt;/li&gt;
&lt;li&gt;cbm&lt;/li&gt;
&lt;li&gt;nload&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;iftop a besoin des droits root pour s'éxécuter et se présente ainsi&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/iftop.png&quot; alt=&quot;Iftop&quot; /&gt;&lt;/p&gt;


&lt;p&gt;speedometer s'utilise par exemple de cette manière&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
speedometer -rx eth0 -tx eth0
&lt;/pre&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/speedometer.png&quot; alt=&quot;Speedometer&quot; /&gt;&lt;/p&gt;


&lt;p&gt;cbm qui se présente ainsi&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/cbm.png&quot; alt=&quot;Cbm&quot; /&gt;&lt;/p&gt;


&lt;p&gt;nload qui se présente ainsi&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/nload.png&quot; alt=&quot;nload&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/04/15/Linux-%3A-connaitre-vitesse-de-transfert-sur-une-carte-reseau#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/04/15/Linux-%3A-connaitre-vitesse-de-transfert-sur-une-carte-reseau#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/74</wfw:commentRss>
      </item>
    
  <item>
    <title>Maven &amp; Home Directory sont dans un bateau</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/04/14/Maven-Home-Directory-sont-dans-un-bateau</link>
    <guid isPermaLink="false">urn:md5:a9bf5fece225832c8129304145157e15</guid>
    <pubDate>Tue, 14 Apr 2009 15:21:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
        <category>Developpement</category><category>Java</category><category>Logiciel libre</category><category>Maven</category>    
    <description>    &lt;p&gt;Je viens d'être confronté à un bug très gênant et difficile à détecter avec Maven.&lt;/p&gt;


&lt;p&gt;Dans le settings.xml, celui-ci ne comprend pas&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;localRepository&amp;gt;~/.m2/repository&amp;lt;/localRepository&amp;gt;
&lt;/pre&gt;


&lt;p&gt;il faut mettre le chemin complet&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;localRepository&amp;gt;/home/bibi/.m2/repository&amp;lt;/localRepository&amp;gt;
&lt;/pre&gt;


&lt;p&gt;sinon maven crée un répertoire tilde à la racine du home directory&amp;nbsp;: /home/bibi/~/ et ne retrouve donc pas ses petits.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/04/14/Maven-Home-Directory-sont-dans-un-bateau#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/04/14/Maven-Home-Directory-sont-dans-un-bateau#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/73</wfw:commentRss>
      </item>
    
  <item>
    <title>Java mail, CXF sont dans un bateau</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2009/02/18/Java-mail-CXF-sont-dans-un-bateau</link>
    <guid isPermaLink="false">urn:md5:62c3145eec128d4f856f8d61bc4aac94</guid>
    <pubDate>Wed, 18 Feb 2009 12:08:00 +0100</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
            
    <description>    &lt;p&gt;Si vous désirez faire de l'envoi de mail en Java, assurez-vous que Geronimo n'est pas inclus dans les dépendances car il surcharge les classes standards et votre message sera corrompu (multipart non géré, problème d'encoding).&lt;/p&gt;



&lt;p&gt;Il faut donc ajouter une exclusion dans votre pom.xml&lt;/p&gt;

&lt;pre&gt;
&amp;lt;exclusions&amp;gt;
	&amp;lt;!-- Imported by common mail --&amp;gt;
	&amp;lt;exclusion&amp;gt;
		&amp;lt;groupId&amp;gt;javax.mail&amp;lt;/groupId&amp;gt;
		&amp;lt;artifactId&amp;gt;mail&amp;lt;/artifactId&amp;gt;
	&amp;lt;/exclusion&amp;gt;
	&amp;lt;!-- Conflicts with javax.mail from Sun --&amp;gt;
	&amp;lt;exclusion&amp;gt;
		&amp;lt;groupId&amp;gt;org.apache.geronimo.specs&amp;lt;/groupId&amp;gt;
		&amp;lt;artifactId&amp;gt;geronimo-javamail_1.4_spec&amp;lt;/artifactId&amp;gt;
	&amp;lt;/exclusion&amp;gt;
&amp;lt;/exclusions&amp;gt;
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2009/02/18/Java-mail-CXF-sont-dans-un-bateau#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2009/02/18/Java-mail-CXF-sont-dans-un-bateau#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/72</wfw:commentRss>
      </item>
    
  <item>
    <title>Mise à jour Ubuntu 8.10 : Firefox</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/10/31/Mise-a-jour-Ubuntu-810-%3A-Firefox</link>
    <guid isPermaLink="false">urn:md5:70f5077dc208deb3f54ed09b139b67d1</guid>
    <pubDate>Fri, 31 Oct 2008 13:58:00 +0100</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
            
    <description>    &lt;p&gt;Je viens de mettre à jour mon Ubuntu 8.04 à la version 8.10. Tout s'est bien passé mais Firefox me demandait s'en cesse de redémarrer car le navigateur était mis à jour.&lt;/p&gt;


&lt;p&gt;J'ai résolu le problème en supprimant le fichier compatibility.ini de $USER/.mozilla/firefox/XXXX.XXX.&lt;/p&gt;


&lt;p&gt;Et voilà c'est reparti &lt;img src=&quot;/themes/knoo_red/smilies/smile.png&quot; alt=&quot;:-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/10/31/Mise-a-jour-Ubuntu-810-%3A-Firefox#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/10/31/Mise-a-jour-Ubuntu-810-%3A-Firefox#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/71</wfw:commentRss>
      </item>
    
  <item>
    <title>Accélérer le parsing XML STAX en ne téléchargeant pas les TLDs</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/10/14/Accelerer-le-parsing-XML-STAX-en-ne-telechargeant-pas-les-TLDs</link>
    <guid isPermaLink="false">urn:md5:b1525b2814184a70c8b9d33bf0fd7d99</guid>
    <pubDate>Tue, 14 Oct 2008 10:11:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
        <category>Developpement</category><category>Java</category><category>Web</category>    
    <description>    &lt;p&gt;Et bien tout est dans le titre &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;



&lt;p&gt;Pour accélérer le parsing d'un document XML, il est parfois utile de ne pas télécharger les TLDs.&lt;/p&gt;


&lt;pre&gt;
XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty(&amp;quot;javax.xml.stream.supportDTD&amp;quot;, false); // ne télécharge pas les TLDs
XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
InputStream reader = new FileInputStream(file);
XMLEventReader parser = factory.createXMLEventReader(reader);
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/10/14/Accelerer-le-parsing-XML-STAX-en-ne-telechargeant-pas-les-TLDs#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/10/14/Accelerer-le-parsing-XML-STAX-en-ne-telechargeant-pas-les-TLDs#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/70</wfw:commentRss>
      </item>
    
  <item>
    <title>Implémenter rapidement : hashCode et equals</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/09/29/Implementer-rapidement-%3A-hashCode-et-equals</link>
    <guid isPermaLink="false">urn:md5:0a15f7f27459e8f6a2e8181eea34e5d8</guid>
    <pubDate>Mon, 29 Sep 2008 12:34:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
            
    <description>    &lt;p&gt;En java, il arrive que l'on veuille rapidement surcharger la méthode hashCode ou equals.&lt;/p&gt;


&lt;p&gt;Pour cela, il suffit d'utiliser les classes EqualsBuilder et HashCodeBuilder de commons-lang&lt;/p&gt;


&lt;p&gt;Voici un exemple d'utilisation.&lt;/p&gt;

&lt;pre&gt;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

public class Pair&amp;lt;A, B&amp;gt; {
    private final A first;
    private final B second;

    public Pair(A first, B second) {
        this.first = first;
        this.second = second;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof Pair)) {
            return false;
        }
        Pair inst = (Pair) obj;
        return new EqualsBuilder().append(this.getFirst(), inst.getFirst()).append(this.getSecond(), inst.getSecond())
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(first).append(second).toHashCode();
    }

    public A getFirst() {
        return first;
    }

    public B getSecond() {
        return second;
    }
}
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/09/29/Implementer-rapidement-%3A-hashCode-et-equals#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/09/29/Implementer-rapidement-%3A-hashCode-et-equals#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/69</wfw:commentRss>
      </item>
    
  <item>
    <title>Monter le disque de la Freebox et le partager via Samba</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/09/17/Monter-le-disque-de-la-Freebox-et-le-partager-via-Samba</link>
    <guid isPermaLink="false">urn:md5:889f4fd93eb69921bb1d47baf2924986</guid>
    <pubDate>Wed, 17 Sep 2008 23:24:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
            
    <description>    &lt;p&gt;Voila, je viens de recevoir ma Freebox et j'ai decouvert la presence d'un disque dur sur le boitier HD. (Oui j'avais une simple V3 avant :-p )&lt;/p&gt;


&lt;p&gt;Je me suis donc interroge sur la maniere de partager ce disque de maniere simple et utile car la connection via FTP ce n'est pas des plus sexy.&lt;/p&gt;


&lt;p&gt;Et bien c'est simple il faut monter le disque en utlisant curlftpfs et partager le dossier monte via samba&lt;/p&gt;



&lt;p&gt;/etc/fstab&lt;/p&gt;
&lt;pre&gt;
curlftpfs#freebox:PASSWORD@hd1.freebox.fr/Disque%20dur   /media/data/FTP_Freebox fuse rw,user,noauto,umask=002,uid=1000,gid=100,allow_other 0 0
&lt;/pre&gt;


&lt;p&gt;uid represente l'id de mon utilisateur (ici bibi) et gid le group (ici users). Enfin le allow_other est important car il permettra au serveur samba d'acceder au montage. (Sans cette option cela ne marche pas)&lt;/p&gt;


&lt;p&gt;/etc/samba/smb.conf&lt;/p&gt;
&lt;pre&gt;[Freebox]
        path = /media/data/FTP_Freebox
        public = yes
        browseable = yes
        writeable = yes
        create mask = 0644
        directory mask = 0755
        force user = bibi
        force group = users
&lt;/pre&gt;


&lt;p&gt;un petit&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
mkdir /media/data/FTP_Freebox
mount -a
/etc/init.d/samba restart
&lt;/pre&gt;


&lt;p&gt;et le tour est joue &lt;img src=&quot;/themes/knoo_red/smilies/smile.png&quot; alt=&quot;:-)&quot; class=&quot;smiley&quot; /&gt; .&lt;/p&gt;


&lt;p&gt;Le disque de la Freebox est maintenant accessible via partage Windows sur toutes les machines du reseau et cela quelque soit leur OS.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/09/17/Monter-le-disque-de-la-Freebox-et-le-partager-via-Samba#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/09/17/Monter-le-disque-de-la-Freebox-et-le-partager-via-Samba#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/68</wfw:commentRss>
      </item>
    
  <item>
    <title>MysqlDump et encoding</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/MysqlDump-et-encoding</link>
    <guid isPermaLink="false">urn:md5:ba790ca807f8f82ea54b93c4778221d5</guid>
    <pubDate>Mon, 07 Jul 2008 21:11:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
            
    <description>    &lt;p&gt;J'ai voulu reimporter un dump effectue a l'aide de Mysql sur mon nouvel environnement.
Malheureusement, celui-ci ne s'est pas passe correctement&amp;nbsp;: j'avais des problemes d'accent &lt;img src=&quot;/themes/knoo_red/smilies/sad.png&quot; alt=&quot;:-(&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;



&lt;p&gt;J'ai eu beau essaye de m'en sortir avec iconv mas cela n'a pas marche.&lt;/p&gt;


&lt;p&gt;Resultat un vieux script shell a base de sed&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
 cat databases.sql | sed s/Ã©/é/g | sed s/Ãš/è/g | sed s/Ãª/ê/g | sed &amp;quot;s/Ã /à/g&amp;quot; | sed s/Â²/~/g | sed s/Ã¶/o/g | sed s/Ã»/û/g | sed s/Ã¹/ù/g | sed s/Ã§/ç/g | sed s/ÃŽ/ô/g | sed s/Ã¯/ï/g | sed s/Ã¢/â/g &amp;gt; databases_clean.sql
&lt;/pre&gt;


&lt;p&gt;Il doit surement manque des caracteres mais c'est deja une base.&lt;/p&gt;


&lt;p&gt;Qui a dit que j'etais bourrin&amp;nbsp;? &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/MysqlDump-et-encoding#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/MysqlDump-et-encoding#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/67</wfw:commentRss>
      </item>
    
  <item>
    <title>Gate de nouveau Up</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/Gate-de-nouveau-Up</link>
    <guid isPermaLink="false">urn:md5:7cb6e52f3cb8c9e7553eeeccbcde7c57</guid>
    <pubDate>Mon, 07 Jul 2008 21:04:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
        <category>Gate</category><category>Humeur</category>    
    <description>    &lt;p&gt;Voili voilou, la gate est de nouveau up et a subit quelques modifications&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;ma Gate est maintenant passee de&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
AMD Duron 700 Mhz
512 Mo de RAM
Maxtor 80G
Matrox Mystique 2M
&lt;/pre&gt;


&lt;p&gt;a&lt;/p&gt;

&lt;pre&gt;
AMD Athlon 64 Processor 3200+
1G de RAM
2 Maxtor 80G
nVidia GeForce FX 5700LE
&lt;/pre&gt;


&lt;p&gt;Pour de plus amples &lt;a href=&quot;http://phpsysinfo.bibimax.homedns.org/&quot; hreflang=&quot;fr&quot;&gt;informations&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/Gate-de-nouveau-Up#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/07/07/Gate-de-nouveau-Up#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/66</wfw:commentRss>
      </item>
    
  <item>
    <title>Installer sa clé SSH sur un serveur distant</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/05/19/Installer-sa-cle-SSH-sur-un-serveur-distant</link>
    <guid isPermaLink="false">urn:md5:0eaee91e497d667fa6fa6f81c5ec7ba2</guid>
    <pubDate>Mon, 19 May 2008 10:21:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
        <category>Linux</category><category>Logiciel libre</category><category>Shell</category>    
    <description>    &lt;p&gt;Juste un petit aide mémoire car je suis obligé de rechercher à chaque fois sur le Nain Ternet&lt;/p&gt;


&lt;p&gt;Générer vos clés publiques et privées&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
ssh-keygen -t dsa -b 1024
&lt;/pre&gt;


&lt;p&gt;Copier la clé sur le serveur distant&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
ssh-copy-id -i ~/.ssh/id_dsa.pub bibi@bibimax.homedns.org
&lt;/pre&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/05/19/Installer-sa-cle-SSH-sur-un-serveur-distant#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/05/19/Installer-sa-cle-SSH-sur-un-serveur-distant#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/65</wfw:commentRss>
      </item>
    
  <item>
    <title>Exécuter une commande sur plusieurs machines distantes</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/04/23/Executer-une-commande-sur-plusieurs-machines-distantes</link>
    <guid isPermaLink="false">urn:md5:1062f7dfe6aa9aa2f875f1441e32a7b3</guid>
    <pubDate>Wed, 23 Apr 2008 15:56:00 +0200</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Linux</category>
            
    <description>    &lt;p&gt;2 solutions&amp;nbsp;: Cluster SSH (nécessite un serveur X)&lt;/p&gt;

&lt;pre&gt;
apt-get install cssh
&lt;/pre&gt;


&lt;p&gt;ou &lt;a href=&quot;http://www.netfort.gr.jp/~dancer/software/dsh.html.en&quot; hreflang=&quot;fr&quot;&gt;dsh&lt;/a&gt;&lt;/p&gt;

&lt;pre&gt;
apt-get install dsh
&lt;/pre&gt;


&lt;p&gt;Quand vous avez plusieurs serveurs d'intégration et que vous devez effectuer les mêmes manipulations, ces 2 outils sont très pratiques.&lt;/p&gt;


&lt;p&gt;Enjoy &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/04/23/Executer-une-commande-sur-plusieurs-machines-distantes#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/04/23/Executer-une-commande-sur-plusieurs-machines-distantes#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/64</wfw:commentRss>
      </item>
    
  <item>
    <title>SaveTheDeveloppers</title>
    <link>http://blog.bibimax.homedns.org/index.php?post/2008/03/27/SaveTheDeveloppers</link>
    <guid isPermaLink="false">urn:md5:a23c38fdfc5a86004f5fb916d47e6e6b</guid>
    <pubDate>Thu, 27 Mar 2008 14:48:00 +0100</pubDate>
    <dc:creator>bibi</dc:creator>
        <category>Programmation</category>
        <category>Developpement</category><category>Web</category>    
    <description>    &lt;p&gt;Tout est dans le titre &lt;img src=&quot;/themes/knoo_red/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.savethedevelopers.org/&quot; hreflang=&quot;fr&quot;&gt;&lt;img src=&quot;http://blog.bibimax.homedns.org/public/images/savethedevelopers.gif&quot; alt=&quot;SaveTheDeveloppers&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.bibimax.homedns.org/index.php?post/2008/03/27/SaveTheDeveloppers#comment-form</comments>
      <wfw:comment>http://blog.bibimax.homedns.org/index.php?post/2008/03/27/SaveTheDeveloppers#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.bibimax.homedns.org/index.php?feed/rss2/comments/63</wfw:commentRss>
      </item>
    
</channel>
</rss>