<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: An introduction to gen_event: Account Notifications</title>
	<atom:link href="http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/feed/" rel="self" type="application/rss+xml" />
	<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/</link>
	<description>Linking You to Erlang</description>
	<pubDate>Wed, 10 Mar 2010 07:21:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: jimmyrr</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-9718</link>
		<dc:creator>jimmyrr</dc:creator>
		<pubDate>Fri, 10 Jul 2009 23:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-9718</guid>
		<description>I think there's a bug in your skeleton file - the handle_call function should return a tuple with a first value of 'reply' - and not 'ok'. Btw - thanks - awesome blog.</description>
		<content:encoded><![CDATA[<p>I think there&#8217;s a bug in your skeleton file - the handle_call function should return a tuple with a first value of &#8216;reply&#8217; - and not &#8216;ok&#8217;. Btw - thanks - awesome blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arek</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-606</link>
		<dc:creator>Arek</dc:creator>
		<pubDate>Tue, 04 Nov 2008 10:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-606</guid>
		<description>Mitchell,
Thank you for this effort, you have unique style in conveying your idea...
I wish you write a book about OTP in the same writing style</description>
		<content:encoded><![CDATA[<p>Mitchell,<br />
Thank you for this effort, you have unique style in conveying your idea&#8230;<br />
I wish you write a book about OTP in the same writing style</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-157</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Tue, 30 Sep 2008 19:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-157</guid>
		<description>Matt,

Indeed, in my case, the handler did never work until I called it explicitly in the server init:

init(_Args) -&#62;
  eb_event_manager:start_link(),
  eb_event_manager:add_handler(eb_withdrawal_handler),
  {ok, dict:new()}.</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>Indeed, in my case, the handler did never work until I called it explicitly in the server init:</p>
<p>init(_Args) -&gt;<br />
  eb_event_manager:start_link(),<br />
  eb_event_manager:add_handler(eb_withdrawal_handler),<br />
  {ok, dict:new()}.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-133</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Sun, 28 Sep 2008 11:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-133</guid>
		<description>Thanks Mitchell for this great series.

I've noticed that the skeleton does not include "-behaviour(gen_event)." as the other previos ones. Is that correct?

Also, a great topic for future articles could be the interaction between an Erlang program with another application via sockets. Why? many times there are some applications that can be controlled via its own API using sockets but fail when the number of open connections is too high. I think that an Erlang broker could be put in the middle; open one connection to the application and receive the request from the application to forward them to the app; and to react to the application responses.</description>
		<content:encoded><![CDATA[<p>Thanks Mitchell for this great series.</p>
<p>I&#8217;ve noticed that the skeleton does not include &#8220;-behaviour(gen_event).&#8221; as the other previos ones. Is that correct?</p>
<p>Also, a great topic for future articles could be the interaction between an Erlang program with another application via sockets. Why? many times there are some applications that can be controlled via its own API using sockets but fail when the number of open connections is too high. I think that an Erlang broker could be put in the middle; open one connection to the application and receive the request from the application to forward them to the app; and to react to the application responses.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitchell</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-78</link>
		<dc:creator>Mitchell</dc:creator>
		<pubDate>Mon, 15 Sep 2008 02:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-78</guid>
		<description>Alain,

This would definitely be a great use for gen_event. :) The basic premise for gen_event is to send everything that could potentially be loggable to it, and let the handlers handle the logic and figuring out what to do with all this data. 

Mitchell</description>
		<content:encoded><![CDATA[<p>Alain,</p>
<p>This would definitely be a great use for gen_event. <img src='http://spawnlink.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> The basic premise for gen_event is to send everything that could potentially be loggable to it, and let the handlers handle the logic and figuring out what to do with all this data. </p>
<p>Mitchell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain O'Dea</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-77</link>
		<dc:creator>Alain O'Dea</dc:creator>
		<pubDate>Mon, 15 Sep 2008 01:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-77</guid>
		<description>Would it make sense to use gen_event to capture a log of transactions for ErlyBank with something like mnesia? My first impression is that it would work really nicely.</description>
		<content:encoded><![CDATA[<p>Would it make sense to use gen_event to capture a log of transactions for ErlyBank with something like mnesia? My first impression is that it would work really nicely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitchell</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-52</link>
		<dc:creator>Mitchell</dc:creator>
		<pubDate>Wed, 10 Sep 2008 20:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-52</guid>
		<description>It doesn't! Good catch! I was just testing this in the shell and always did it manually. 

I suppose a logical place to put this, at this point in the code, would be in eb_server after it initializes the the event manager. :-\ 

But, in a future article, I will decouple most of these components and have a general startup script which will do this. :)</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t! Good catch! I was just testing this in the shell and always did it manually. </p>
<p>I suppose a logical place to put this, at this point in the code, would be in eb_server after it initializes the the event manager. :-\ </p>
<p>But, in a future article, I will decouple most of these components and have a general startup script which will do this. <img src='http://spawnlink.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-51</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 10 Sep 2008 20:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-51</guid>
		<description>Where does eb_event_manager:add_handler get called?</description>
		<content:encoded><![CDATA[<p>Where does eb_event_manager:add_handler get called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Greene</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-50</link>
		<dc:creator>Michael Greene</dc:creator>
		<pubDate>Wed, 10 Sep 2008 18:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-50</guid>
		<description>Thanks for these articles, they are really filling a huge void.</description>
		<content:encoded><![CDATA[<p>Thanks for these articles, they are really filling a huge void.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zamous</title>
		<link>http://spawnlink.com/articles/an-introduction-to-gen_event-account-notifications/#comment-49</link>
		<dc:creator>zamous</dc:creator>
		<pubDate>Wed, 10 Sep 2008 16:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://spawnlink.com/?p=66#comment-49</guid>
		<description>Wow, you are so prolific.  This is great stuff.  You should write a book on OTP.  Can't wait for supervisors.</description>
		<content:encoded><![CDATA[<p>Wow, you are so prolific.  This is great stuff.  You should write a book on OTP.  Can&#8217;t wait for supervisors.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
