<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>tag:www.local-guru.net,2005:/blog/tag/erlang</id>
  <link type="text/html" href="http://www.local-guru.net" rel="alternate"/>
  <link type="application/atom+xml" href="http://www.local-guru.net/blog/tag/erlang.atom" rel="self"/>
  <title>GuruBlog : Articles about erlang</title>
  <subtitle>local-guru.net</subtitle>
  <updated>2009-03-07T08:51:00+01:00</updated>
  <generator>GuruBlog engine</generator>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/133</id>
    <published>2009-03-07T08:51:00+01:00</published>
    <updated>2009-03-07T08:51:00+01:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2009/3/7/oscdispatch-0-1" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">oscdispatch 0.1</title>
    <category term="osc" scheme="http://www.local-guru.net/blog/tag/osc"/>
    <category term="erlang" scheme="http://www.local-guru.net/blog/tag/erlang"/>
    <category term="oscdispach" scheme="http://www.local-guru.net/blog/tag/oscdispach"/>
    <content type="html">&lt;p&gt;I finished the first version of my &lt;a href="http://www.local-guru.net/blog/pages/oscdispatch"&gt;OSCDispatch&lt;/a&gt; server in erlang.&lt;/p&gt;

&lt;p&gt;The program defines a generic server and uses a callback function for the dispaching rules.&lt;/p&gt;

&lt;p&gt;the oscdispatch.erl looks like this and uses a parameter in the module definition&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;-module(oscdispatch, [Dispatch]).
-export([start_server/0]).
-include("server_config.hrl").

start_server() -&amp;gt;
    spawn( fun() -&amp;gt; server(?server_port) end ).

server(Port) -&amp;gt;
    {ok, Socket} = gen_udp:open( Port, [binary] ),
    io:format( "socked opened ~p~n ", [Socket]),
    loop(Socket).

loop(Socket) -&amp;gt;
    receive
        {udp, Socket, Host, Port, Bin} -&amp;gt;
            Adr = binary_to_list(util:getadr(Bin)),
            io:format( "got: ~p~n", [{Host, Port, Adr}]),
            Dispatch:dispatch( Adr, Bin ),
            loop(Socket)
    end.
&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/67</id>
    <published>2008-09-22T07:45:00+02:00</published>
    <updated>2008-09-22T07:45:00+02:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2008/9/22/disco" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">Disco</title>
    <category term="python" scheme="http://www.local-guru.net/blog/tag/python"/>
    <category term="erlang" scheme="http://www.local-guru.net/blog/tag/erlang"/>
    <category term="mapreduce" scheme="http://www.local-guru.net/blog/tag/mapreduce"/>
    <content type="html">&lt;p&gt;I recently read about &lt;a href="http://discoproject.org/"&gt;disco&lt;/a&gt; a implementation of the map-reduce algorithm using &lt;a href="http://www.erlang.org/"&gt;erlang&lt;/a&gt;
for the master node and the workload management and &lt;a href="http://python.org/"&gt;python&lt;/a&gt; for the map-reduce jobs. Its realy
funny that the nokia research labs implemented an algorithm introduced by google using a
language developed by erricsson :-)&lt;/p&gt;

&lt;p&gt;its a bit complicated to install, but once running its realy fun to code with&lt;/p&gt;
</content>
  </entry>
  <entry>
    <id>tag:www.local-guru.net,2005:Article/52</id>
    <published>2008-07-14T07:10:00+02:00</published>
    <updated>2008-07-14T07:10:00+02:00</updated>
    <link type="text/html" href="http://www.local-guru.net//blog/2008/7/14/erlang-osc-dispatcher" rel="alternate"/>
    <author>
      <name>Nikolaus Gradwohl</name>
    </author>
    <title type="html">Erlang OSC Dispatcher</title>
    <category term="osc" scheme="http://www.local-guru.net/blog/tag/osc"/>
    <category term="erlang" scheme="http://www.local-guru.net/blog/tag/erlang"/>
    <content type="html">&lt;p&gt;I have started a &lt;a href="http://www.local-guru.net/blog/pages/oscdispatch"&gt;Project&lt;/a&gt; to write
and osc message dispatcher in erlang. I want to use it to dispatch the data from my
&lt;a href="http://www.local-guru.net/blog/articles/2008/07/14/chuck-icontrol-projectpage"&gt;icontrol chuck script&lt;/a&gt;
to other soundgenerating scripts or &lt;a href="http://www.local-guru.net/blog/articles/2008/07/04/processing-osc"&gt;visualisation&lt;/a&gt;
programms.&lt;/p&gt;
</content>
  </entry>
</feed>

