<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>use Human::Brain</title>
    <link>http://blog.shimaore.net/</link>
    <description>Technology and OpenSource Notes</description>
    <language>en</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>blosxom/2.1.2</generator>

  <item>
    <title>Routage des appels d&apos;urgence</title>
    <pubDate>Wed, 30 Jun 2010 21:47:00 +0200</pubDate>
    <link>http://blog.shimaore.net/2010/06/30#urgences</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/urgences</guid>
    <description>
Version mise à jour d&apos;un document que j&apos;avais préparé dans le cadre &lt;a href=&quot;http://blog.fdn.fr/trackback/13&quot;&gt;d&apos;améliorer le routage des appels d&apos;urgence en France&lt;/a&gt;, proposant le concept d&apos;une &lt;a href=&quot;http://stephane.shimaore.net/code/asso_urgences.odt&quot;&gt;association dédiée&lt;/a&gt;.

posted: 6/30/2010 11:47:00 PM
tags: emergency</description>
  </item>
  <item>
    <title>Title: CouchDB shared calendar</title>
    <pubDate>Mon, 07 Jun 2010 12:14:00 +0000</pubDate>
    <link>http://blog.shimaore.net/2010/06/07#couchdb-calendar</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/couchdb-calendar</guid>
    <description>
&lt;p&gt;I&apos;ve &lt;a href=&quot;http://stephane.shimaore.net/git/cal2.git&quot;&gt;posted&lt;/a&gt; my version of &lt;a href=&quot;http://jchrisa.net/cal/&quot;&gt;jchrisa&apos;s&lt;/a&gt; Calendar CouchApp. It uses the new couchapp framework (evently, CouchDB sessions), CouchDB 0.11.0, and supports timezones, repeat events. &lt;/p&gt;

&lt;p&gt;To get it: &lt;pre&gt; git clone git://shimaore.net/git/cal2.git &lt;/pre&gt; &lt;/p&gt;

&lt;p&gt;You&apos;ll need to download and install CouchApp to use it.&lt;/p&gt;

posted: 6/07/2010 14:14:00
tags: couchdb, couchapp, calendar</description>
  </item>
  <item>
    <title>Title: ejabberd configuration for dual-stack (IPv4, IPv6) host</title>
    <pubDate>Fri, 28 May 2010 10:52:00 +0000</pubDate>
    <link>http://blog.shimaore.net/2010/05/28#ejabberd-ipv6</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/ejabberd-ipv6</guid>
    <description>
&lt;pre&gt;
%% Accept connections on the same port on IPv4 and IPv6:
{listen,
 [
  {{5222, &quot;::&quot;}, ejabberd_c2s, [ inet6,
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 524288},
                        starttls, {certfile, &quot;/etc/ejabberd/ejabberd.pem&quot;}
                       ]},
  {{5222, &quot;0.0.0.0&quot;}, ejabberd_c2s, [
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 524288},
                        starttls, {certfile, &quot;/etc/ejabberd/ejabberd.pem&quot;}
                       ]},
  {{5269, &quot;::&quot;}, ejabberd_s2s_in, [ inet6,
                           {shaper, s2s_shaper},
                           {max_stanza_size, 524288}
                          ]},
  {{5269, &quot;0.0.0.0&quot;}, ejabberd_s2s_in, [
                           {shaper, s2s_shaper},
                           {max_stanza_size, 524288}
                          ]},
  %% etc.
]}.

%% Try IPv6 first when doing s2s attempts:
{outgoing_s2s_options, [ipv6, ipv4], 10000}.

&lt;/pre&gt;

posted: 5/28/2010 12:52:00 PM
tags: ejabberd</description>
  </item>
  <item>
    <title>French for FreeSwitch</title>
    <pubDate>Sat, 20 Feb 2010 21:14:00 +0000</pubDate>
    <link>http://blog.shimaore.net/2010/02/20#freeswitch-french</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/freeswitch-french</guid>
    <description>
&lt;p&gt;After &lt;a href=&quot;neuronnexion.coop&quot;&gt;Neuronnexion&lt;/a&gt; paid for Philippe Leroy and Sibylle Luperce to record &lt;a href=&quot;http://www.archive.org/details/FrenchAudioFilesForFreeswitch&quot;&gt;french audio prompts for FreeSwitch&lt;/a&gt;, I &lt;a href=&quot;http://jira.freeswitch.org/browse/FSCORE-528&quot;&gt;updated mod_say_fr&lt;/a&gt; to match them.&lt;/p&gt;

&lt;p&gt;There are more audio files to come, but I need to come up with proper filenames for them. I&apos;ll add them to the Archive.org repository at &lt;a href=&quot;http://www.archive.org/details/FrenchAudioFilesForFreeswitch&quot;&gt;http://www.archive.org/details/FrenchAudioFilesForFreeswitch&lt;/a&gt; once this is ready.&lt;/p&gt;

&lt;p&gt;We recorded non-France prompts in the archive, like &lt;em&gt;septante&lt;/em&gt;, &lt;em&gt;octante&lt;/em&gt;, &lt;em&gt;nonante&lt;/em&gt;. I don&apos;t know the different locales (Belgium, Canada, ...) well enough to be able to do anything useful with them; but if someone does I&apos;ll be happy to update mod_say_fr to match. We could for example use a LOCALE channel variable to track the actual locale; this would also allow to use the proper monetary units by default.&lt;/p&gt;

posted: 2/20/2010 10:14:00 PM
tags: freeswitch, french</description>
  </item>
  <item>
    <title>ejabberd clustering</title>
    <pubDate>Tue, 20 Oct 2009 09:40:00 +0000</pubDate>
    <link>http://blog.shimaore.net/2009/10/20#ejabberd-clustering</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/ejabberd-clustering</guid>
    <description>
I used the excellent notes at &lt;a href=&quot;http://tdewolf.blogspot.com/2009/07/clustering-ejabberd-nodes-using-mnesia.html&quot;&gt;the reference article&lt;/a&gt;. Here are additional notes for Debian:
&lt;ul&gt;
&lt;li&gt;There&apos;s no need to modify &lt;tt&gt;/usr/sbin/ejabberd&lt;/tt&gt; or &lt;tt&gt;/usr/sbin/ejabberdctl&lt;/tt&gt;; the only changes should be in &lt;tt&gt;/etc/ejabberd/ejabberd.cfg&lt;/tt&gt; and &lt;tt&gt;/etc/default/ejabberd&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;I did &quot;su ejabberd&quot; instead of doing the testing under root (probably better, this way the database gets created with the proper userid). Also I only had to copy the .erlang.cookie file to &lt;tt&gt;/var/lib/ejabberd&lt;/tt&gt;, no need to copy it under /root this way.&lt;/li&gt;
&lt;li&gt;The proper command to start erl (at step 4 on the second server) is then:
&lt;pre&gt;
erl -sname ejabberd@jabber2 -mnesia dir \&quot;$HOME\&quot; \
    -mnesia extra_db_nodes &quot;[&apos;ejabberd@jabber1&apos;]&quot; \
    -s mnesia
&lt;/pre&gt; (assuming jabber1 and jabber2 are the servers&apos; short names)&lt;/li&gt;
&lt;li&gt;In /etc/default/ejabberd, the proper syntax is:
&lt;pre&gt;
ERL_OPTIONS=&quot;-mnesia extra_db_nodes [&apos;ejabberd@jabber1&apos;] -s mnesia&quot;
&lt;/pre&gt;
Extra double-quotes kept me busy for a while.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also the primary server is the one where the web UI should be used; the other one(s) replicate the database.&lt;/p&gt;

&lt;p&gt;Here&apos;s my complete /etc/default/ejabberd on jabber1:&lt;/p&gt;
&lt;pre&gt;
SMP=auto
ERLANG_NODE=ejabberd
&lt;/pre&gt;

&lt;p&gt;Here&apos;s my complete /etc/default/ejabberd on jabber2:&lt;/p&gt;
&lt;pre&gt;
SMP=auto
ERL_OPTIONS=&quot; -mnesia extra_db_nodes [&apos;ejabberd@jabber1&apos;] -s mnesia &quot;
ERLANG_NODE=ejabberd
&lt;/pre&gt;

&lt;p&gt;(If I get time I might rewrite this article into complete instructions using the reference article as a basis.)&lt;/p&gt;

posted: 10/20/2009 11:40:00 AM</description>
  </item>
  <item>
    <title>Bad Robot</title>
    <pubDate>Tue, 29 Sep 2009 01:17:00 +0000</pubDate>
    <link>http://blog.shimaore.net/2009/09/29#bad-robot</link>
    <category></category>
    <guid isPermaLink="false">http://blog.shimaore.net/bad-robot</guid>
    <description>
&lt;p&gt;Building on the example script in AnyEvent::XMPP I built &lt;a href=&quot;http://stephane.shimaore.net/code/sendmsg.pl&quot;&gt;a small robot&lt;/a&gt; which can send messages to either an individual user or a jabber chat room, from either stdin or a fifo. We use this at work to get alerts into a chat room we use for support activities.&lt;/p&gt;

&lt;p&gt;Update: a more complex solution is used as the main driver for xmpp-agent.pl in CCNQ2.0&lt;/p&gt;

posted: 9/29/2009 03:17:00 AM</description>
  </item>
  </channel>
</rss>
