<?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>jpdemory</title>
	<atom:link href="http://www.jpdemory.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jpdemory.com/blog</link>
	<description>Ressources informatiques</description>
	<lastBuildDate>Mon, 01 Feb 2010 10:50:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse : Sélectionner en colonne</title>
		<link>http://www.jpdemory.com/blog/253</link>
		<comments>http://www.jpdemory.com/blog/253#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:52:14 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[eclipse selection bloc colonne]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=253</guid>
		<description><![CDATA[Sous Eclipse pour sélectionner en bloc ou en colonne, on peut utiliser le raccourcis clavier Maj+Alt+A. Ou alors, en cliquant sur l&#8217;îcone :



No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Sous Eclipse pour sélectionner en bloc ou en colonne, on peut utiliser le raccourcis clavier <strong>Maj+Alt+A</strong>. Ou alors, en cliquant sur l&#8217;îcone :</p>
<p><a href="http://www.jpdemory.com/blog/wp-content/uploads/2009/12/clip01.png" rel="lightbox[253]"><img class="aligncenter size-full wp-image-254" title="clip01" src="http://www.jpdemory.com/blog/wp-content/uploads/2009/12/clip01.png" alt="" width="154" height="50" /></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/253/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server : Eteindre la machine en appuyant sur le bouton marche/arr&#234;t</title>
		<link>http://www.jpdemory.com/blog/248</link>
		<comments>http://www.jpdemory.com/blog/248#comments</comments>
		<pubDate>Sat, 21 Nov 2009 22:15:42 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Debian / Ubuntu]]></category>
		<category><![CDATA[arrêt]]></category>
		<category><![CDATA[bouton]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/248</guid>
		<description><![CDATA[Par défaut, sur la version serveur d&#8217;Ubuntu, le bouton marche/arrêt ne permet pas d&#8217;éteindre la machine. Heureusement, si par mégarde quelqu&#8217;un venait à effleurer le bouton sur une machine en production, les conséquences pourraient être fâcheuse.
Par contre, cette fonctionnalité est bien pratique sur un serveur de test que l&#8217;on laisse traîner dans un coin sans [...]


Related posts:<ol><li><a href='http://www.jpdemory.com/blog/92' rel='bookmark' title='Permanent Link: Ubuntu : les paquets à installer pour un environnement rudimentaire mais confortable'>Ubuntu : les paquets à installer pour un environnement rudimentaire mais confortable</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Par défaut, sur la version serveur d&#8217;Ubuntu, le bouton marche/arrêt ne permet pas d&#8217;éteindre la machine. Heureusement, si par mégarde quelqu&#8217;un venait à effleurer le bouton sur une machine en production, les conséquences pourraient être fâcheuse.</p>
<p>Par contre, cette fonctionnalité est bien pratique sur un serveur de test que l&#8217;on laisse traîner dans un coin sans écran et sans clavier. Avoir la possibilité d&#8217;éteindre la machine proprement sans avoir à se connecter dessus peut-être bien pratique.</p>
<p>Pour installer cette fonctionnalité, il suffit d&#8217;installer le paquet &quot;acpid&quot;</p>
<p>
<pre class="brush: plain; light: true"># aptitude install acpid
</pre>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/92' rel='bookmark' title='Permanent Link: Ubuntu : les paquets à installer pour un environnement rudimentaire mais confortable'>Ubuntu : les paquets à installer pour un environnement rudimentaire mais confortable</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/248/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP : préparer une requête avec MySQL</title>
		<link>http://www.jpdemory.com/blog/231</link>
		<comments>http://www.jpdemory.com/blog/231#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:04:06 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=231</guid>
		<description><![CDATA[Sous PHP, l&#8217;utilisation de paramètres dans SQL peut rendre la tâche fastidieuse avec les multiples concaténations.
La fonction sprintf peut simplifier les choses&#8230;

Création de la requête SQL en utilisant la fonction sprintf. Cela permet d&#8217;éviter des concaténations fastidieuses.

$sql = sprintf("SELECT *
FROM clients JOIN commandes ON clients.numclient = commandes.numclient
WHERE numclient=%s AND date=%s",
GetSQLValueString($client,"text"),
GetSQLValueString($dateCmd,"date")
);

$rs = mysql_query($sql) or die ("Erreur [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Sous PHP, l&#8217;utilisation de paramètres dans SQL peut rendre la tâche fastidieuse avec les multiples concaténations.<br />
La fonction <code>sprintf</code> peut simplifier les choses&#8230;<br />
<span id="more-231"></span><br />
Création de la requête SQL en utilisant la fonction <code>sprintf</code>. Cela permet d&#8217;éviter des concaténations fastidieuses.</p>
<p><pre class="brush:php">
$sql = sprintf("SELECT *
FROM clients JOIN commandes ON clients.numclient = commandes.numclient
WHERE numclient=%s AND date=%s",
GetSQLValueString($client,"text"),
GetSQLValueString($dateCmd,"date")
);

$rs = mysql_query($sql) or die ("Erreur : <br/><code>" . $sql . "<code><br/>--<br/>"
. "<span class='alert'>" . mysql_error() . "</span>");
</pre>
</p>
<p>Une fonction très pratique dont je ne connais pas l'auteur. Cette fonction permet de protéger les paramètres passés à la requête SQL.</p>
<p><pre class="brush:php">
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
</pre></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/231/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: Sauvegarder et restaurer la table des partitions</title>
		<link>http://www.jpdemory.com/blog/223</link>
		<comments>http://www.jpdemory.com/blog/223#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:43:45 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sfdisk]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/223</guid>
		<description><![CDATA[Pour sauvegarder et restaurer la table des partitions, il est possible d’utiliser la commande sfdisk sous Linux :
Pour sauvegarder la table des partitions du disque /dev/sda dans le fichier sda.part

sfdisk -d /dev/sda &#62; sda.part

Pour la restaurer

sfdisk --force /dev/sda &#60; sda.part


Related posts:Linux : Supprimer les commentaires d&#8217;un script



Related posts:<ol><li><a href='http://www.jpdemory.com/blog/201' rel='bookmark' title='Permanent Link: Linux : Supprimer les commentaires d&#8217;un script'>Linux : Supprimer les commentaires d&#8217;un script</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Pour sauvegarder et restaurer la table des partitions, il est possible d’utiliser la commande sfdisk sous Linux :</p>
<p>Pour sauvegarder la table des partitions du disque /dev/sda dans le fichier sda.part</p>
<p>
<pre class="brush: plain; light: true">sfdisk -d /dev/sda &gt; sda.part</pre>
</p>
<p>Pour la restaurer</p>
<p>
<pre class="brush: plain; light: true">sfdisk --force /dev/sda &lt; sda.part</pre></p>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/201' rel='bookmark' title='Permanent Link: Linux : Supprimer les commentaires d&#8217;un script'>Linux : Supprimer les commentaires d&#8217;un script</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/223/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageMagick : Convertir un fichier svg en png</title>
		<link>http://www.jpdemory.com/blog/221</link>
		<comments>http://www.jpdemory.com/blog/221#comments</comments>
		<pubDate>Mon, 24 Aug 2009 06:15:27 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[ImageMagick]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=221</guid>
		<description><![CDATA[
convert.exe -background white Basic_disk_displaying_CHS.svg Basic_disk_displaying_CHS.png


Related posts:ImageMagick : Convertir un fond transparent en blanc



Related posts:<ol><li><a href='http://www.jpdemory.com/blog/104' rel='bookmark' title='Permanent Link: ImageMagick : Convertir un fond transparent en blanc'>ImageMagick : Convertir un fond transparent en blanc</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>
<pre class="brush: plain; light: true">convert.exe -background white Basic_disk_displaying_CHS.svg Basic_disk_displaying_CHS.png</pre></p>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/104' rel='bookmark' title='Permanent Link: ImageMagick : Convertir un fond transparent en blanc'>ImageMagick : Convertir un fond transparent en blanc</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/221/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim : convertir l’encodage d’un fichier</title>
		<link>http://www.jpdemory.com/blog/210</link>
		<comments>http://www.jpdemory.com/blog/210#comments</comments>
		<pubDate>Sun, 19 Apr 2009 20:57:10 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[convertir]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=210</guid>
		<description><![CDATA[Comment convertir un fichier latin1 (iso-8859-1) en utf-8 ou vice-versa ?

Convertir pendant l&#8217;&#233;dition

:set fileencoding=utf-8
ou

:set fenc=latin1
Remarque : l&#8217;option fileencoding peut-&#234;tre abr&#233;g&#233; en fenc
Convertir pendant l&#8217;ouverture du fichier

:edit ++enc=koi8-r russe.txt
Convertir lors de l&#8217;&#233;criture du fichier

:write ++enc=utf-8 russe.txt
Les types d&#8217;encodage



latin1
caract&#232;res 8-bits (ISO-8859-1)


iso-8859-N
variante ISO-8859 (N = 2 &#224; 15)


koi8-r
russe


koi8-u
ukrainien


8bit-{nom}
n&#8217;importe quel encodage 8-bits (nom sp&#233;cifique de Vim)


cp{nombre}
MS-Windows : n&#8217;importe quelle [...]


Related posts:<ol><li><a href='http://www.jpdemory.com/blog/204' rel='bookmark' title='Permanent Link: vim : convertir un fichier Windows en fichier Unix'>vim : convertir un fichier Windows en fichier Unix</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Comment convertir un fichier latin1 (iso-8859-1) en utf-8 ou vice-versa ?</p>
<p><span id="more-210"></span></p>
<h2>Convertir pendant l&rsquo;&eacute;dition</h2>
<pre class="brush: plain; light: true">
:set fileencoding=utf-8</pre>
<p>ou</p>
<pre class="brush: plain; light: true">
:set fenc=latin1</pre>
<p><strong>Remarque</strong> : l&rsquo;option <code>fileencoding</code> peut-&ecirc;tre abr&eacute;g&eacute; en <code>fenc</code></p>
<h2>Convertir pendant l&#8217;ouverture du fichier</h2>
<pre class="brush: plain; light: true">
:edit ++enc=koi8-r russe.txt</pre>
<h2>Convertir lors de l&#8217;&eacute;criture du fichier</h2>
<pre class="brush: plain; light: true">
:write ++enc=utf-8 russe.txt</pre>
<h2>Les types d&#8217;encodage</h2>
<table width="504" cellspacing="0" cellpadding="2" border="1">
<tbody>
<tr>
<td width="117" valign="top">latin1</td>
<td width="385" valign="top">caract&egrave;res 8-bits (ISO-8859-1)</td>
</tr>
<tr>
<td width="117" valign="top">iso-8859-N</td>
<td width="385" valign="top">variante ISO-8859 (N = 2 &agrave; 15)</td>
</tr>
<tr>
<td width="117" valign="top">koi8-r</td>
<td width="385" valign="top">russe</td>
</tr>
<tr>
<td width="117" valign="top">koi8-u</td>
<td width="385" valign="top">ukrainien</td>
</tr>
<tr>
<td width="117" valign="top">8bit-{nom}</td>
<td width="385" valign="top">n&#8217;importe quel encodage 8-bits (nom sp&eacute;cifique de Vim)</td>
</tr>
<tr>
<td width="117" valign="top">cp{nombre}</td>
<td width="385" valign="top">MS-Windows : n&#8217;importe quelle page de codes mono-octet install&eacute;e</td>
</tr>
<tr>
<td width="117" valign="top">cp932</td>
<td width="385" valign="top">japonais (Windows uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">euc-jp</td>
<td width="385" valign="top">japonais (Unix uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">sjis</td>
<td width="385" valign="top">japonais (Unix uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">cp949</td>
<td width="385" valign="top">cor&eacute;en (Unix et Windows)</td>
</tr>
<tr>
<td width="117" valign="top">euc-kr</td>
<td width="385" valign="top">cor&eacute;en (Unix uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">cp936</td>
<td width="385" valign="top">chinois simplifi&eacute; (Windows uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">euc-cn</td>
<td width="385" valign="top">chinois simplifi&eacute; (Unix uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">cp950</td>
<td width="385" valign="top">chinois classique (sur Unix, alias pour big5)</td>
</tr>
<tr>
<td width="117" valign="top">big5</td>
<td width="385" valign="top">chinois classique (sur Windows, alias pour cp950)</td>
</tr>
<tr>
<td width="117" valign="top">euc-tw</td>
<td width="385" valign="top">chinois classique (Unix uniquement)</td>
</tr>
<tr>
<td width="117" valign="top">2byte-{nom}</td>
<td width="385" valign="top">Unix : n&#8217;importe quel encodage sur deux octets (nom sp&eacute;cifique de Vim)</td>
</tr>
<tr>
<td width="117" valign="top">cp{nombre}</td>
<td width="385" valign="top">MS-Windows : n&#8217;importe quelle page de codes sur deux octets install&eacute;e</td>
</tr>
<tr>
<td width="117" valign="top">utf-8</td>
<td width="385" valign="top">Unicode UTF-8 encod&eacute; sur 32 bits (ISO/IEC 10646-1)</td>
</tr>
<tr>
<td width="117" valign="top">ucs-2</td>
<td width="385" valign="top">Unicode UCS-2 encod&eacute; sur 16 bits (ISO/IEC 10646-1)</td>
</tr>
<tr>
<td width="117" valign="top">ucs-2le</td>
<td width="385" valign="top">comme ucs-2, en petit boutiste</td>
</tr>
<tr>
<td width="117" valign="top">utf-16</td>
<td width="385" valign="top">ucs-2 &eacute;tendu avec des mots doubles pour plus de caract&egrave;res</td>
</tr>
<tr>
<td width="117" valign="top">utf-16le</td>
<td width="385" valign="top">comme utf-16, en petit boutiste</td>
</tr>
<tr>
<td width="117" valign="top">ucs-4</td>
<td width="385" valign="top">Unicode UCS-4 encod&eacute; sur 32 bits (ISO/IEC 10646-1)</td>
</tr>
<tr>
<td width="117" valign="top">ucs-4le</td>
<td width="385" valign="top">comme ucs-4, en petit boutiste</td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/204' rel='bookmark' title='Permanent Link: vim : convertir un fichier Windows en fichier Unix'>vim : convertir un fichier Windows en fichier Unix</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/210/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux : Supprimer les commentaires d&#8217;un script</title>
		<link>http://www.jpdemory.com/blog/201</link>
		<comments>http://www.jpdemory.com/blog/201#comments</comments>
		<pubDate>Tue, 14 Apr 2009 10:59:07 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=201</guid>
		<description><![CDATA[Pour supprimer les commentaires et les lignes vides d&#8217;un fichier (avec Perl) :
cat monFichier.txt &#124; perl -p -e 's/^\s*#.*$//;s/^\s*$//'
ou pour faire une sauvegarde du fichier :
perl -pi.bak -e 's/^\s*#.*$//;s/^\s*$//' monFichier.txt


Related posts:Linux: Sauvegarder et restaurer la table des partitions



Related posts:<ol><li><a href='http://www.jpdemory.com/blog/223' rel='bookmark' title='Permanent Link: Linux: Sauvegarder et restaurer la table des partitions'>Linux: Sauvegarder et restaurer la table des partitions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Pour supprimer les commentaires et les lignes vides d&#8217;un fichier (avec Perl) :</p>
<pre lang="bash">cat monFichier.txt | perl -p -e 's/^\s*#.*$//;s/^\s*$//'</pre>
<p>ou pour faire une sauvegarde du fichier :</p>
<pre lang="bash">perl -pi.bak -e 's/^\s*#.*$//;s/^\s*$//' monFichier.txt</pre>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/223' rel='bookmark' title='Permanent Link: Linux: Sauvegarder et restaurer la table des partitions'>Linux: Sauvegarder et restaurer la table des partitions</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/201/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Les enveloppes</title>
		<link>http://www.jpdemory.com/blog/119</link>
		<comments>http://www.jpdemory.com/blog/119#comments</comments>
		<pubDate>Sun, 12 Apr 2009 07:46:56 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[enveloppe]]></category>
		<category><![CDATA[taille]]></category>

		<guid isPermaLink="false">http://www.jpdemory.org/blog/?p=119</guid>
		<description><![CDATA[Tailles des enveloppes normalisées (en millimètre) :



DL
110*220
(Longue)


C6
114*162
(Petite)


C5
162*229
(A4/2)





No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Tailles des enveloppes normalisées (en millimètre) :</p>
<table border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td>DL</td>
<td>110*220</td>
<td>(Longue)</td>
</tr>
<tr>
<td>C6</td>
<td>114*162</td>
<td>(Petite)</td>
</tr>
<tr>
<td>C5</td>
<td>162*229</td>
<td>(A4/2)</td>
</tr>
</tbody>
</table>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/119/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim : convertir un fichier Windows en fichier Unix</title>
		<link>http://www.jpdemory.com/blog/204</link>
		<comments>http://www.jpdemory.com/blog/204#comments</comments>
		<pubDate>Sat, 11 Apr 2009 14:46:15 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[convertir]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=204</guid>
		<description><![CDATA[Il existe au moins deux possibilités pour convertir un fichier Windows en fichier Unix :

Première méthode, on demande à vim de faire le travail :
:set fileformat=unix ou :set ff=unix
Seconde méthode, on retire tous les caractères &#8216;^M&#8217; à la main :
:%s/^M//g
Le caractère &#8216;^M&#8217; s&#8217;obtient avec les touches [ctrl-v] et [enter]


Related posts:vim : convertir l’encodage d’un fichier



Related posts:<ol><li><a href='http://www.jpdemory.com/blog/210' rel='bookmark' title='Permanent Link: vim : convertir l’encodage d’un fichier'>vim : convertir l’encodage d’un fichier</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Il existe au moins deux possibilités pour convertir un fichier Windows en fichier Unix :<br />
<span id="more-204"></span><br />
Première méthode, on demande à vim de faire le travail :<br />
<code>:set fileformat=unix</code> ou <code>:set ff=unix</code></p>
<p>Seconde méthode, on retire tous les caractères &#8216;^M&#8217; à la main :<br />
<code>:%s/^M//g</code><br />
Le caractère &#8216;^M&#8217; s&#8217;obtient avec les touches [ctrl-v] et [enter]</p>


<p>Related posts:<ol><li><a href='http://www.jpdemory.com/blog/210' rel='bookmark' title='Permanent Link: vim : convertir l’encodage d’un fichier'>vim : convertir l’encodage d’un fichier</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/204/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taille des CDs et des DVDs</title>
		<link>http://www.jpdemory.com/blog/191</link>
		<comments>http://www.jpdemory.com/blog/191#comments</comments>
		<pubDate>Wed, 25 Mar 2009 17:53:21 +0000</pubDate>
		<dc:creator>Jean-Philippe DEMORY</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[dvd]]></category>

		<guid isPermaLink="false">http://www.jpdemory.com/blog/?p=191</guid>
		<description><![CDATA[Taille des médias :



Média
Secteurs
Octets
Kilo Octets
Mega Octets
Giga Octets


CD-R de 74 minutes
333.000
681.984.000
666.000
650,39



CD-R de 80 minutes
360.000
737.280.000
720.000
703,13



DVD-R de 12 cm
2.298.496
4.707.319.808
4.596.992
4.489,25
4,38


DVD+R de 12 cm
2.295.104
4.700.372.992
4.590.208
4.482,63
4,38



1 secteur = 2.048 octets
Diviser un ficher en 229.460&#160;Ko permet de créer 20 fichiers sur un DVD+R et de laisser 1&#160;Mo de libre pour des sommes de contrôle MD5 par exemple.


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Taille des médias :</p>
<table border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<th>Média</th>
<th>Secteurs</th>
<th>Octets</th>
<th>Kilo Octets</th>
<th>Mega Octets</th>
<th>Giga Octets</th>
</tr>
<tr>
<td>CD-R de 74 minutes</td>
<td>333.000</td>
<td>681.984.000</td>
<td>666.000</td>
<td>650,39</td>
<td></td>
</tr>
<tr>
<td>CD-R de 80 minutes</td>
<td>360.000</td>
<td>737.280.000</td>
<td>720.000</td>
<td>703,13</td>
<td></td>
</tr>
<tr>
<td>DVD-R de 12 cm</td>
<td>2.298.496</td>
<td>4.707.319.808</td>
<td>4.596.992</td>
<td>4.489,25</td>
<td>4,38</td>
</tr>
<tr>
<td>DVD+R de 12 cm</td>
<td>2.295.104</td>
<td>4.700.372.992</td>
<td>4.590.208</td>
<td>4.482,63</td>
<td>4,38</td>
</tr>
</tbody>
</table>
<p><em>1 secteur = 2.048 octets</em></p>
<p>Diviser un ficher en 229.460&nbsp;Ko permet de créer 20 fichiers sur un DVD+R et de laisser 1&nbsp;Mo de libre pour des sommes de contrôle MD5 par exemple.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jpdemory.com/blog/191/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
