<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for afayolle</title>
    <link>http://www.advogato.org/person/afayolle/</link>
    <description>Advogato blog for afayolle</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 10 Feb 2012 18:45:09 GMT</pubDate>
    <item>
      <pubDate>Mon, 8 Mar 2004 15:30:57 GMT</pubDate>
      <title>8 Mar 2004</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=12</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=12</guid>
      <description>This may be old news for most people using &lt;a href="" 'http://numpy.sf.net'&gt;Numeric Python&lt;/a&gt; on a daily basis, but I've just "discovered" that Numeric ufuncs can be applied to class instances, if they implement the right interface, which is a method with the same name as the ufunc. 

&lt;p&gt; One dumb example : 

&lt;p&gt; &lt;pre&gt;
class ZeroAngle:
    def sin(self):
        return 0.
    def tan(self):
        return 0
    def cos(self):
        return 1

&lt;p&gt; a = ZeroAngle()
import Numeric as n
print n.cos(za)
print n.sin(za)
&lt;/pre&gt;

&lt;p&gt; This of course does not work with the functions in math or cmath, which try to coerce there argument to float. 

&lt;p&gt; A very nice usage of this is in Konrad Hinsen's Scientific.Functions.Derivatives (part of the &lt;a href="" 'starship.python.net/crew/hinsen/scientific.html'&gt;Scientific Python&lt;/a&gt; package)</description>
    </item>
    <item>
      <pubDate>Wed, 18 Feb 2004 09:09:31 GMT</pubDate>
      <title>18 Feb 2004</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=11</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=11</guid>
      <description>Logilab managed to push out new releases of some free software projects yesterday:

&lt;p&gt; &lt;p&gt; &lt;a href="http://www.logilab.org/projects/common" &gt;logilab.common 0.4.4&lt;/a&gt;, a set of shared python utilities (the 2 other projects mentionned below depend on this one)

&lt;p&gt; &lt;p&gt; &lt;a href="http://www.logilab.org/projects/pylint" &gt;pylint 0.3.3&lt;/a&gt; a python lint tool, which features an emacs mode integrated with the python mode, and a small gui, mainly to ease use on windows boxes, but can be usefulk on other platforms too

&lt;p&gt; &lt;p&gt; &lt;a href="http://www.logilab.org/projects/pyreverse" &gt;pyreverse 0.5&lt;/a&gt; a tool to reverse engineer python code, which is able to create UML diagrams, visible in ArgoUML or dot
</description>
    </item>
    <item>
      <pubDate>Thu, 8 Jan 2004 12:15:57 GMT</pubDate>
      <title>8 Jan 2004</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=10</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=10</guid>
      <description>Someone on fr.comp.lang.python asked for a way to format a float as a french currency (i.e. with thousands separator). There doesn't seem to be anything available in the standard library and the % operator has no specific format for currency. Here's the code I came up with:

&lt;p&gt; &lt;pre&gt;
def as_currency(amount, thousand_sep=' ', decimal_sep=',', symbol='&#xA4;'):
    num = '%.2f'%amount
    left, right = num.split('.')
    left_digits = list(left)
    spaced_digits = [decimal_sep, right, symbol ]
    while left_digits:
        spaced_digits = [thousand_sep] + left_digits[-3:] + spaced_digits
        del left_digits[-3:]
    return ''.join(spaced_digits[1:])
&lt;/pre&gt;

&lt;p&gt; This could probably be enhanced by using the locale module to get the values. It's rather unfortunate that locale.format has not % substitution for currencies. </description>
    </item>
    <item>
      <pubDate>Thu, 6 Mar 2003 09:03:44 GMT</pubDate>
      <title>6 Mar 2003</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=9</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=9</guid>
      <description>Long time no write.

&lt;p&gt; Kiddanet project is almost over now. I'm struggling with the last configuration and installation problem, namely auto configuring the client machine to run multiple instances of squid in parallel, with different redirector settings. 
</description>
    </item>
    <item>
      <pubDate>Mon, 25 Nov 2002 11:04:40 GMT</pubDate>
      <title>25 Nov 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=8</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=8</guid>
      <description>So, I'm finally back online. Feels good. I almost killed the 'd' key of my keyboard while going through 12K+ mails. 

&lt;p&gt; I'm back working on the Kiddanet EC-funded project, and doing SVM classifiers. The existing code has to be rethought because of changes in the layout of the database. And I also have to code a Web interface for the validation and training of the classifier.</description>
    </item>
    <item>
      <pubDate>Tue, 22 Oct 2002 11:35:31 GMT</pubDate>
      <title>22 Oct 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=7</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=7</guid>
      <description>Well, it's been a while since my last post. I've finally moved to Annecy and I feeling much better.

&lt;p&gt; My current problem is network connection. I can't seem to be able to get a DSL connection installed, so I'm living on my old 28.8 modem, that I'd normally be using as a fax. sigh... Well, things should get sorted out in the next days, I hope. I'm worried since I have some mail on Logilab's network that I can't reach, especially debian related mail, and I heard there are some problems with the packages I maintain. </description>
    </item>
    <item>
      <pubDate>Mon, 23 Sep 2002 08:39:25 GMT</pubDate>
      <title>23 Sep 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=6</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=6</guid>
      <description>Hi there.

&lt;p&gt; &lt;p&gt; Life has been pretty fast during the past two weeks. 

&lt;p&gt; &lt;p&gt; I'm currently living in the middle of cardboard boxes full of books, and I'm filling up more boxes with dishes, clothes and the like. Yup, I'm moving. Target date is next saturday. 

&lt;p&gt; &lt;p&gt; In the meanwhile, I've been working on &lt;a href="http://www.advogato.org/proj/constraint/" &gt;constraint&lt;/a&gt;, and I've somehow managed to get a 4x speed increase on the 8-queens test problem. I'll be releasing a new version very soon. </description>
    </item>
    <item>
      <pubDate>Mon, 9 Sep 2002 14:50:55 GMT</pubDate>
      <title>9 Sep 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=5</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=5</guid>
      <description>It's been a while since the last entry in this diary. I've felt a bit low lately. I have great hope in my moving back to &lt;a href="http://www.lac-annecy.net/" &gt;Annecy&lt;/a&gt; by the end on the month. I'm really fed up with Paris, and it's time I get back in the mountains. 

&lt;p&gt; I spent the week-end playing music with my brother. We found a rehearsal studio available with a old drumset, and he brought his double bass. That was real nice. It's been years since I could get my hands on a pair of sticks for more than half an hour due to neighbours complaining :o(

&lt;p&gt; We worked on Lincoln Goines and Robby Ameen's &lt;cite&gt;Funkifying the Clave&lt;/cite&gt; book. I had some hard time with hand-leg independence, but finally managed to get an OK groove on the first tune of the method, and this really felt good, playing again. 

&lt;p&gt; We also watched a video tape I had recorded of Michel Camilo live in Marciac this summer. The band featured Antony Jackson on bass, Cliff Almond on drums and Alex Acu&amp;ntilde;a on percussion. They played stuff from the &lt;cite&gt;One more once&lt;/cite&gt; album. Great concert. I'll try to go to Marciac next summer.

&lt;p&gt; Back to work... I have a core dump to hunt down...</description>
    </item>
    <item>
      <pubDate>Fri, 30 Aug 2002 11:55:56 GMT</pubDate>
      <title>30 Aug 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=4</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=4</guid>
      <description>Uninteresting diary entry. Feel free to skip ;o)

&lt;p&gt; Thanks to &lt;a href="http://www.advogato.org/person/vdv/" &gt;vdv&lt;/a&gt; (hello Eric!), I'm rated &lt;i&gt;Master&lt;/i&gt;. I'm not sure I deserve it and I think more of myself as a journeyer than of a master. 'nuf said. I still have some bugs waiting to be squashed...</description>
    </item>
    <item>
      <pubDate>Tue, 27 Aug 2002 13:54:48 GMT</pubDate>
      <title>27 Aug 2002</title>
      <link>http://www.advogato.org/person/afayolle/diary.html?start=3</link>
      <guid>http://www.advogato.org/person/afayolle/diary.html?start=3</guid>
      <description>I finally managed to write the new chapter of the Python course. I used &lt;a href="" 'http://theory.stanford.edu/~amitp/Yapps/'&gt;Yapps2&lt;/a&gt; which generates very readable parsers, and is quite easy to use, and designed a very simple statemachine description language to use as an exerecise (from parsing to C code generation). 

&lt;p&gt; I'll try to find the time to make a debian package for yapps.</description>
    </item>
  </channel>
</rss>

