<?xml version="1.0" encoding="UTF-8"?><feed
  xmlns="http://www.w3.org/2005/Atom"
  xmlns:thr="http://purl.org/syndication/thread/1.0"
  xml:lang="en-US"
  xml:base="http://samuel.happycoders.org/wp-atom.php"
   >
	<title type="text">Samuel&#8217;s HQ</title>
	<subtitle type="text">A french/american blog with some hungarian spices...</subtitle>

	<updated>2014-08-26T02:54:23Z</updated>

	<link rel="alternate" type="text/html" href="http://samuel.happycoders.org" />
	<id>http://samuel.happycoders.org/feed/atom/</id>
	<link rel="self" type="application/atom+xml" href="http://samuel.happycoders.org/feed/atom/" />

	<generator uri="https://wordpress.org/" version="4.5.3">WordPress</generator>
	<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[14.6% explored&#8230;]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2014/04/09/14-6-explored/" />
		<id>http://samuel.happycoders.org/?p=489</id>
		<updated>2014-04-09T04:41:24Z</updated>
		<published>2014-04-09T04:41:24Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="general" />		<summary type="html"><![CDATA[Work in progress&#8230; visited 33 states (14.6%)Create your own visited map of The World]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2014/04/09/14-6-explored/"><![CDATA[<p>Work in progress&#8230;<br />
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-70,-180,80,180&#038;chs=450x300&#038;chf=bg,s,336699&#038;chco=d0d0d0,cc0000&#038;chd=s:999999999999999999999999999999999&#038;chld=FR|AT|BE|CZ|DK|FI|DE|HU|IE|IT|NL|NO|PL|PT|SK|SI|ES|SE|CH|GB|CA|CL|JM|MX|PE|US|CN|IN|SG|AE|AU|NZ|DZ" width="450" height="300" ><br />visited 33 states (14.6%)<br /><a href="http://douweosinga.com/projects/visited?region=world">Create your own visited map of The World</a> </p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2014/04/09/14-6-explored/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2014/04/09/14-6-explored/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Ubuntu 11.10 avec KVM sur dedibox]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2011/11/27/ubuntu-11-10-avec-kvm-sur-dedibox/" />
		<id>http://samuel.happycoders.org/?p=194</id>
		<updated>2013-12-19T03:42:39Z</updated>
		<published>2011-11-27T02:13:14Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="Francais" /><category scheme="http://samuel.happycoders.org" term="geeky" /><category scheme="http://samuel.happycoders.org" term="Geeky Linux fr" /><category scheme="http://samuel.happycoders.org" term="kvm" /><category scheme="http://samuel.happycoders.org" term="linux" /><category scheme="http://samuel.happycoders.org" term="ubuntu" />		<summary type="html"><![CDATA[La plupart des hebergeurs interdisent d&#8217;utiliser le mode bridge pour hoster des VMs sur un serveur. Les hebergeurs veulent limiter le nombre d&#8217;adresses mac sur leur reseaux car les tables macs des switchs sont limitees en taille (sur un catalyst 6500, 128,000 macs par example). Si les machines hebergees utilisent un mode bridge, le nombre [&#8230;]]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2011/11/27/ubuntu-11-10-avec-kvm-sur-dedibox/"><![CDATA[<p>La plupart des hebergeurs interdisent d&#8217;utiliser le mode bridge pour hoster des VMs sur un serveur. Les hebergeurs veulent limiter le nombre d&#8217;adresses mac sur leur reseaux car les tables macs des switchs sont limitees en taille (sur un catalyst 6500, 128,000 macs par example). Si les machines hebergees utilisent un mode bridge, le nombre de mac peut rapidement exploser&#8230; nb_mac = nb_machines * nb_vms&#8230; Pour se proteger, les hebergeurs utilisent <a href="http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SX/configuration/guide/port_sec.html" target="_blank">port-security</a>, et le switch automatiquement bloque le port si il detecte du traffic en provenance de plusieurs Mac.<br />
Conclusion, il faut faire attention&#8230;</p>
<p><span id="more-194"></span></p>
<p>Voici les etapes a suivre pour configurer une machine HOST avec 2 VMs GUEST en utilisant ubuntu 11.10 et kvm en mode route.</p>
<p><strong>Modifiez votre /etc/network/interfaces</strong></p>
<p>Configurez l&#8217;ip physique de la machine et creez des bridge.  Le plus important est la derniere ligne, vous devez activez le proxy_arp sur votre interface physique. Cela permet a la machine HOST de repondre au ARP request venant du reseau pour les VMs (donc seulement la mac physique est annoncee et ce pour l&#8217;IP HOST et les IPs des VMs).</p>
<pre class="perl"><span style="color: #808080; font-style: italic;"># The loopback network interface</span>
auto lo
iface lo inet loopback
&nbsp;
<span style="color: #808080; font-style: italic;"># The primary network interface</span>
auto eth0
iface eth0 inet static
        address IP_HOST_FIXME
        netmask <span style="color: #cc66cc;">255.255</span><span style="color: #cc66cc;">.255</span><span style="color: #cc66cc;">.0</span>
        network NETWORK_FIXME
        broadcast BROADCAST_FIXME
        gateway GATEWAY_FIXME
        <span style="color: #808080; font-style: italic;"># create dummy interfaces</span>
        up /sbin/ifconfig dummy0 up
        up /sbin/ifconfig dummy1 up
        <span style="color: #808080; font-style: italic;"># create the bridges</span>
        up /sbin/brctl addbr bridge0
        up /sbin/brctl addbr bridge1
        <span style="color: #808080; font-style: italic;"># add the interfaces to the bridges</span>
        up /sbin/brctl addif bridge0 dummy0
        up /sbin/brctl addif bridge1 dummy1
        <span style="color: #808080; font-style: italic;"># bringup the bridges</span>
        up /sbin/ifconfig bridge0 up
        up /sbin/ifconfig bridge1 up
        <span style="color: #808080; font-style: italic;"># add the routes</span>
        up /sbin/route add IP_VM_1_FIXME dev bridge0
        up /sbin/route add IP_VM_2_FIXME dev bridge1
        <span style="color: #808080; font-style: italic;"># the most important!</span>
        up /sbin/sysctl -w net.ipv4.conf.eth0.proxy_arp=<span style="color: #cc66cc;">1</span>
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/interfaces.txt">interfaces.txt</a></p>
<p>Je pense qu&#8217;il doit etre possible de n&#8217;utiliser qu&#8217;un bridge, mais je n&#8217;ai pas tente.</p>
<p><strong>Activez IP forwarding</strong></p>
<p>Editez /etc/sysctl.conf et modifiez la ligne</p>
<blockquote><p># Uncomment the next line to enable packet forwarding for IPv4<br />
net.ipv4.ip_forward=1</p></blockquote>
<p><strong>Creez la configuration virsh pour vos VM</strong></p>
<p>Creez un fichier xml comme le suivant:</p>
<pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;domain</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'kvm'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>ubuntu<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;memory<span style="font-weight: bold; color: black;">&gt;</span></span></span>8388608<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/memory<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;currentMemory<span style="font-weight: bold; color: black;">&gt;</span></span></span>8388608<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/currentMemory<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vcpu<span style="font-weight: bold; color: black;">&gt;</span></span></span>4<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vcpu<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;os<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;type</span> <span style="color: #000066;">arch</span>=<span style="color: #ff0000;">'x86_64'</span> <span style="color: #000066;">machine</span>=<span style="color: #ff0000;">'pc-0.14'</span><span style="font-weight: bold; color: black;">&gt;</span></span>hvm<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/type<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;boot</span> <span style="color: #000066;">dev</span>=<span style="color: #ff0000;">'hd'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/os<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;features<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;acpi</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/features<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;clock</span> <span style="color: #000066;">offset</span>=<span style="color: #ff0000;">'utc'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;on_poweroff<span style="font-weight: bold; color: black;">&gt;</span></span></span>destroy<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/on_poweroff<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;on_reboot<span style="font-weight: bold; color: black;">&gt;</span></span></span>restart<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/on_reboot<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;on_crash<span style="font-weight: bold; color: black;">&gt;</span></span></span>destroy<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/on_crash<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;devices<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;emulator<span style="font-weight: bold; color: black;">&gt;</span></span></span>/usr/bin/kvm<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/emulator<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;disk</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'file'</span> <span style="color: #000066;">device</span>=<span style="color: #ff0000;">'disk'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;driver</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">'qemu'</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'qcow2'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;source</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">'/srv/ubuntu.qcow2'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;target</span> <span style="color: #000066;">dev</span>=<span style="color: #ff0000;">'hda'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'ide'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;address</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'drive'</span> <span style="color: #000066;">controller</span>=<span style="color: #ff0000;">'0'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'0'</span> <span style="color: #000066;">unit</span>=<span style="color: #ff0000;">'0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/disk<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;controller</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'ide'</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">'0'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;address</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pci'</span> <span style="color: #000066;">domain</span>=<span style="color: #ff0000;">'0x0000'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'0x00'</span> <span style="color: #000066;">slot</span>=<span style="color: #ff0000;">'0x01'</span> <span style="color: #000066;">function</span>=<span style="color: #ff0000;">'0x1'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/controller<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;interface</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'bridge'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mac</span> <span style="color: #000066;">address</span>=<span style="color: #ff0000;">'FIXME_MAC_GENERATED'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;source</span> <span style="color: #000066;">bridge</span>=<span style="color: #ff0000;">'bridge0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;model</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'virtio'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;address</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pci'</span> <span style="color: #000066;">domain</span>=<span style="color: #ff0000;">'0x0000'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'0x00'</span> <span style="color: #000066;">slot</span>=<span style="color: #ff0000;">'0x03'</span> <span style="color: #000066;">function</span>=<span style="color: #ff0000;">'0x0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/interface<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;serial</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pty'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;target</span> <span style="color: #000066;">port</span>=<span style="color: #ff0000;">'0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/serial<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;console</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pty'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;target</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'serial'</span> <span style="color: #000066;">port</span>=<span style="color: #ff0000;">'0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/console<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'mouse'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'ps2'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;graphics</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'vnc'</span> <span style="color: #000066;">port</span>=<span style="color: #ff0000;">'-1'</span> <span style="color: #000066;">autoport</span>=<span style="color: #ff0000;">'yes'</span> <span style="color: #000066;">listen</span>=<span style="color: #ff0000;">'127.0.0.1'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;video<span style="font-weight: bold; color: black;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;model</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'cirrus'</span> <span style="color: #000066;">vram</span>=<span style="color: #ff0000;">'9216'</span> <span style="color: #000066;">heads</span>=<span style="color: #ff0000;">'1'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;address</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pci'</span> <span style="color: #000066;">domain</span>=<span style="color: #ff0000;">'0x0000'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'0x00'</span> <span style="color: #000066;">slot</span>=<span style="color: #ff0000;">'0x02'</span> <span style="color: #000066;">function</span>=<span style="color: #ff0000;">'0x0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/video<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;memballoon</span> <span style="color: #000066;">model</span>=<span style="color: #ff0000;">'virtio'</span><span style="font-weight: bold; color: black;">&gt;</span></span>
      <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;address</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">'pci'</span> <span style="color: #000066;">domain</span>=<span style="color: #ff0000;">'0x0000'</span> <span style="color: #000066;">bus</span>=<span style="color: #ff0000;">'0x00'</span> <span style="color: #000066;">slot</span>=<span style="color: #ff0000;">'0x04'</span> <span style="color: #000066;">function</span>=<span style="color: #ff0000;">'0x0'</span><span style="font-weight: bold; color: black;">/&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/memballoon<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/devices<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/domain<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/ubuntu.xml">ubuntu.xml</a></p>
<p><strong> Importez la configuration de votre VM</strong></p>
<blockquote><p># virsh define foo.xml<br />
# virsh start ubuntu</p></blockquote>
<p><strong>  Modifiez le /etc/network/interfaces de vos VMs</strong></p>
<pre class="perl">auto lo
iface lo inet loopback
&nbsp;
auto eth0
iface eth0 inet static
        address IP_VM1_FIXME
        netmask <span style="color: #cc66cc;">255.255</span><span style="color: #cc66cc;">.255</span><span style="color: #cc66cc;">.255</span>
        up /sbin/route add IP_HOST_FIXME dev eth0
        up /sbin/route add default gw IP_HOST_FIXME
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/interfaces-vm.txt">interfaces-vm.txt</a></p>
<p>&nbsp;</p>
<p>Voila les grandes lignes, en esperant que cela aide quelques personnes.</p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2011/11/27/ubuntu-11-10-avec-kvm-sur-dedibox/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2011/11/27/ubuntu-11-10-avec-kvm-sur-dedibox/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[9.33 % explored&#8230;]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2011/08/28/9-33-explored/" />
		<id>http://samuel.happycoders.org/?p=185</id>
		<updated>2013-12-11T12:41:21Z</updated>
		<published>2011-08-28T17:53:29Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="general" />		<summary type="html"><![CDATA[Work in progress&#8230; visited 21 states (9.33%)Create your own visited map of The World or website vertaling duits?]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2011/08/28/9-33-explored/"><![CDATA[<p>Work in progress&#8230;<br />
<img src="http://chart.apis.google.com/chart?cht=map:fixed=-70,-180,80,180&#038;chs=450x300&#038;chf=bg,s,336699&#038;chco=d0d0d0,cc0000&#038;chd=s:999999999999999999999&#038;chld=FR|BE|CZ|DK|DE|HU|IE|IT|NL|NO|PL|SK|ES|CA|CL|JM|PE|US|MX|GB|DZ" width="450" height="300" ><br />visited 21 states (9.33%)<br /><a href="http://douweosinga.com/projects/visited?region=world">Create your own visited map of The World</a> or <a href="http://www.tonjafabritz.com/nederlands/websites">website vertaling duits?</a></p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2011/08/28/9-33-explored/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2011/08/28/9-33-explored/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Convert a week number to a date in perl]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2010/06/11/convert-a-week-number-to-a-date-in-perl/" />
		<id>http://samuel.happycoders.org/?p=177</id>
		<updated>2014-01-11T15:58:23Z</updated>
		<published>2010-06-11T22:42:18Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="geeky" /><category scheme="http://samuel.happycoders.org" term="convert week number to date" /><category scheme="http://samuel.happycoders.org" term="perl" />		<summary type="html"><![CDATA[Today I had to hack a quick script to convert a week number to a date in perl. To my surprise, the answer was not straightforward and I had to test and try a little bit before to get something working. So here it is: #!/usr/bin/perl use strict; use Time::ParseDate; use Time::Local; &#160; sub convert_week_to_date [&#8230;]]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2010/06/11/convert-a-week-number-to-a-date-in-perl/"><![CDATA[<p>Today I had to hack a quick script to convert a week number to a date in perl. To my surprise, the answer was not straightforward and I had to test and try a little bit before to get something working.</p>
<p>So here it is:</p>
<pre class="perl"><span style="color: #808080; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #000000; font-weight: bold;">use</span> strict;
<span style="color: #000000; font-weight: bold;">use</span> Time::<span style="color: #006600;">ParseDate</span>;
<span style="color: #000000; font-weight: bold;">use</span> Time::<span style="color: #006600;">Local</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">sub</span> convert_week_to_date
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$year</span>, <span style="color: #0000ff;">$week</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #0000ff;">@_</span>;
&nbsp;
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$ref</span> = timelocal<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #0000ff;">$year</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">my</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$s</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$h</span>, <span style="color: #0000ff;">$dom</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$y</span>, <span style="color: #0000ff;">$wd</span>, <span style="color: #0000ff;">$yd</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span> =
        <a href="http://perldoc.perl.org/functions/localtime.html"><span style="color: #000066;">localtime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ref</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$time</span> = parsedate<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;+&quot;</span>.<span style="color: #0000ff;">$week</span>.<span style="color: #ff0000;">&quot; weeks&quot;</span>,
                         NOW =&gt; <span style="color: #0000ff;">$ref</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">my</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$s</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$h</span>, <span style="color: #0000ff;">$dom</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$y</span>, <span style="color: #0000ff;">$wd</span>, <span style="color: #0000ff;">$yd</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span> =
        <a href="http://perldoc.perl.org/functions/localtime.html"><span style="color: #000066;">localtime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$time</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$wd</span> -= <span style="color: #cc66cc;">1</span>;
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$time</span> = parsedate<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;-&quot;</span>.<span style="color: #0000ff;">$wd</span>.<span style="color: #ff0000;">&quot; days&quot;</span>,
                         NOW =&gt; <span style="color: #0000ff;">$time</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">my</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$s</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$h</span>, <span style="color: #0000ff;">$dom</span>, <span style="color: #0000ff;">$m</span>, <span style="color: #0000ff;">$y</span>, <span style="color: #0000ff;">$wd</span>, <span style="color: #0000ff;">$yd</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span> =
        <a href="http://perldoc.perl.org/functions/localtime.html"><span style="color: #000066;">localtime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$time</span><span style="color: #66cc66;">&#41;</span>;
    <a href="http://perldoc.perl.org/functions/return.html"><span style="color: #000066;">return</span></a> <span style="color: #66cc66;">&#40;</span><a href="http://perldoc.perl.org/functions/sprintf.html"><span style="color: #000066;">sprintf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;%04d/%02d/%02d&quot;</span>,
            <span style="color: #0000ff;">$y</span> + <span style="color: #cc66cc;">1900</span>, <span style="color: #0000ff;">$m</span> + <span style="color: #cc66cc;">1</span>, <span style="color: #0000ff;">$dom</span> - <span style="color: #0000ff;">$wd</span> + <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2009</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2009</span>, <span style="color: #cc66cc;">52</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2010</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2010</span>, <span style="color: #cc66cc;">22</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2010</span>, <span style="color: #cc66cc;">23</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
<a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> convert_week_to_date<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2010</span>, <span style="color: #cc66cc;">24</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\n</span>&quot;</span>;
&nbsp;</pre>
<p><strong>Download this code: </strong><a href="http://samuel.happycoders.org/code/convert_week_to_date.pl">convert_week_to_date.pl</a></p>
<p>Hopefully it will help someone one day.</p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2010/06/11/convert-a-week-number-to-a-date-in-perl/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2010/06/11/convert-a-week-number-to-a-date-in-perl/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Trying timelapse]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2010/05/18/trying-timelapse/" />
		<id>http://samuel.happycoders.org/?p=175</id>
		<updated>2013-12-25T12:31:56Z</updated>
		<published>2010-05-18T18:28:27Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="general" /><category scheme="http://samuel.happycoders.org" term="perso" /><category scheme="http://samuel.happycoders.org" term="video" /><category scheme="http://samuel.happycoders.org" term="san francisco" /><category scheme="http://samuel.happycoders.org" term="timelapse" />		<summary type="html"><![CDATA[Sunday Morning in San Francisco from Samuel Pasquier on Vimeo. Music: &#8220;U TERU S . Birth of Souls&#8221; by Loveshadow http://ccmixter.org/files/Loveshadow/23570 Video: Samuel Pasquier 2700 images taken from from 9h to 12h 42th floor of the mandarin oriental hotel]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2010/05/18/trying-timelapse/"><![CDATA[<p><object width="450" height="253"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10106441&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=A0BC00&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10106441&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=A0BC00&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="450" height="253"></embed></object>
<p><a href="http://vimeo.com/10106441">Sunday Morning in San Francisco</a> from <a href="http://vimeo.com/nuntiux">Samuel Pasquier</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Music:<br />
&#8220;U TERU S . Birth of Souls&#8221; by Loveshadow<br />
http://ccmixter.org/files/Loveshadow/23570</p>
<p>Video: Samuel Pasquier</p>
<p>2700 images taken from from 9h to 12h<br />
42th floor of the mandarin oriental hotel</p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2010/05/18/trying-timelapse/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2010/05/18/trying-timelapse/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Closing the gap]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2009/11/22/closing-the-gap/" />
		<id>http://samuel.happycoders.org/2009/11/22/closing-the-gap/</id>
		<updated>2014-08-26T02:44:08Z</updated>
		<published>2009-11-22T01:00:17Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="software" />		<summary type="html"><![CDATA[I got to find about Eric Sink&#8217;s blog today&#8230; Better late than never 🙂 He is writing about a lot of interesting topics related to software engineering. My favorite column from his blog: http://www.ericsink.com/bos/Closing_the_Gap_Part_1.html http://www.ericsink.com/bos/Closing_the_Gap_Part_2.html]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2009/11/22/closing-the-gap/"><![CDATA[<p>I got to find about Eric Sink&#8217;s blog today&#8230; Better late than never <img src="https://s.w.org/images/core/emoji/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>He is writing about a lot of interesting topics related to software engineering.</p>
<p>My favorite column from his blog:</p>
<ul>
<li> <a href="http://www.ericsink.com/bos/Closing_the_Gap_Part_1.html" target="_blank">http://www.ericsink.com/bos/Closing_the_Gap_Part_1.html</a></li>
<li> <a href="http://www.ericsink.com/bos/Closing_the_Gap_Part_2.html" target="_blank">http://www.ericsink.com/bos/Closing_the_Gap_Part_2.html</a></li>
</ul>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2009/11/22/closing-the-gap/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2009/11/22/closing-the-gap/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[New photoblog]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2009/06/10/new-photoblog/" />
		<id>http://samuel.happycoders.org/2009/06/10/new-photoblog/</id>
		<updated>2014-01-11T15:58:25Z</updated>
		<published>2009-06-10T16:32:39Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="general" /><category scheme="http://samuel.happycoders.org" term="photos" /><category scheme="http://samuel.happycoders.org" term="photoblog photo" />		<summary type="html"><![CDATA[I finally decided to start my own photoblog to show what I believe are my &#8216;best shots&#8217;. You can access it using the menu at the top of this page, or by clicking on the following URL. http://samuel.happycoders.org/photoblog/]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2009/06/10/new-photoblog/"><![CDATA[<p>I finally decided to start my own photoblog to show what I believe are my &#8216;best shots&#8217;. You can access it using the menu at the top of this page, or by clicking on the following URL.</p>
<p><a href="http://samuel.happycoders.org/photoblog/" target="_blank">http://samuel.happycoders.org/photoblog/</a></p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2009/06/10/new-photoblog/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2009/06/10/new-photoblog/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Water-Fraise]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2009/06/09/water-fraise/" />
		<id>http://samuel.happycoders.org/2009/06/09/water-fraise/</id>
		<updated>2013-12-19T03:42:43Z</updated>
		<published>2009-06-09T15:20:17Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" />		<summary type="html"><![CDATA[Water-Fraise Strawberry&#8217;s experimentation]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2009/06/09/water-fraise/"><![CDATA[<div style="float: left; margin-right: 10px; margin-bottom: 10px;">
 <a href="http://www.flickr.com/photos/samuel-pasquier/3610371551/" title="photo sharing"><img src="http://farm4.static.flickr.com/3369/3610371551_945e80d66b_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br />
 <br />
 <span style="font-size: 0.9em; margin-top: 0px;"><br />
  <a href="http://www.flickr.com/photos/samuel-pasquier/3610371551/">Water-Fraise</a><br />
  <br />
 </span>
</div>
<p>Strawberry&#8217;s experimentation<br />
<br clear="all" /></p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2009/06/09/water-fraise/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2009/06/09/water-fraise/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[It&#8217;s coming&#8230;]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2009/05/22/its-coming/" />
		<id>http://samuel.happycoders.org/?p=167</id>
		<updated>2013-12-25T12:31:53Z</updated>
		<published>2009-05-22T03:20:47Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="fun" /><category scheme="http://samuel.happycoders.org" term="general" /><category scheme="http://samuel.happycoders.org" term="makerfaire" />		<summary type="html"><![CDATA[]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2009/05/22/its-coming/"><![CDATA[<p style="text-align: center;"><a href="http://www.makerfaire.com/" target="_blank"><img class="aligncenter" src="http://samuel.happycoders.org/wp-content/uploads/2009/05/300x250.jpg" alt="" /></a></p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2009/05/22/its-coming/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2009/05/22/its-coming/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
		<entry>
		<author>
			<name>samuel</name>
						<uri>http://samuel.happycoders.org</uri>
					</author>
		<title type="html"><![CDATA[Quotes of the day]]></title>
		<link rel="alternate" type="text/html" href="http://samuel.happycoders.org/2009/04/24/quotes-of-the-day/" />
		<id>http://samuel.happycoders.org/?p=164</id>
		<updated>2014-08-26T02:44:29Z</updated>
		<published>2009-04-24T08:09:55Z</published>
		<category scheme="http://samuel.happycoders.org" term="English" /><category scheme="http://samuel.happycoders.org" term="quote" />		<summary type="html"><![CDATA[To do is to be &#8211; J.-P. Sartre To be is to do &#8211; I. Kant Do be do be do &#8211; F. Sinatra]]></summary>
		<content type="html" xml:base="http://samuel.happycoders.org/2009/04/24/quotes-of-the-day/"><![CDATA[<blockquote><p>To do is to be</p></blockquote>
<p>&#8211; <a href="http://en.wikipedia.org/wiki/Sartre" target="_blank">J.-P. Sartre</a></p>
<blockquote><p>To be is to do</p></blockquote>
<p>&#8211; <a href="http://en.wikipedia.org/wiki/Kant" target="_blank">I. Kant</a></p>
<blockquote><p>Do be do be do</p></blockquote>
<p>&#8211; <a href="http://en.wikipedia.org/wiki/Sinatra" target="_blank">F. Sinatra</a></p>
]]></content>
			<link rel="replies" type="text/html" href="http://samuel.happycoders.org/2009/04/24/quotes-of-the-day/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="http://samuel.happycoders.org/2009/04/24/quotes-of-the-day/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
		</entry>
	</feed>
