Erlang Events


Erlang Newsletter


Subscribe to our Erlang news letter to receive the latest information from the Erlang world, up to date news on our services and events and our special offers. Click here to subscribe or browse the Newsletter Archive.


Google Group

Working on exercises? Exchange questions, suggestions and solutions with other readers from the Erlang Programming Google Group

Subscribe to Erlang Programming
Email:


Title: Chapter 6: A Supervisor Example
Date/Time: Thu, 28 Feb 2013 22:33:24 UT
Description: Hello *Erlang* users
I was testing the Supervisor Example and I could not make it to work
perfectly as it is shown ending the chapter. Namely, the following lines
are in order to depict that the examples works well.
*1>* *my_supervisor*:*start_link(*m y_supervisor, *[*{add_two, start, []}*])*
.
*ok*

Title: Re: Exercise 5-3: atomic operation
Date/Time: Thu, 21 Feb 2013 16:12:43 UT
Description: Hello Ivan,
I'm trying to solve this exercise: Swapping Handlers and reading your code
and taking into account the exercise literally, what happens if you try to
swap the log_handler?. In the log_handler code, the terminate/1 function
closes the file and returns an 'ok' atom, now in your code, if you pass

Title: Re: [Erlang Programming Book] Exercise 4-1: An Echo Server
Date/Time: Wed, 28 Nov 2012 04:17:10 UT
Description: Thank you for your answer. I found an error. I renamed the module
-module(echo3), but forgot to change the string register(echo, spawn(echo,
loop, [])).

вторник, 27 ноября 2012 г., 20:13:04 UTC+4 пользователь Simon Thompson
написал:

Title: Re: Exercise 4-1: An Echo Server
Date/Time: Tue, 27 Nov 2012 12:37:37 UT
Description: An error occurs during the execution this code.
=ERROR REPORT==== 27-Nov-2012::16:23:39 ===
Error in process <0.44.0> with exit value: {undef,[{echo,loop,[],[]}]}
I don't understand why. Could you please help me.

Title: Re: [Erlang Programming Book] chapter 12
Date/Time: Fri, 22 Jul 2011 16:35:01 UT
Description: than you sir
-----Original Message-----
Sent: Friday, July 22, 2011 12:06 PM
To: erlang-programming-book@google groups.com
This looks like its add_user/1 not 2 or 3, add_user takes a record as
an argument.
In the function definition you are pattern-matching the record, and
defining Phone as the msisdn attribute of the record and CustId as the

Title: chapter 12
Date/Time: Fri, 22 Jul 2011 15:56:28 UT
Description: usr calls usr_db:add_usr/3 while usr_db is add_usr/2

add_usr arity 2 and arity 3 mismatch
what am I missing?

--(module usr)--
handle_call({add_usr, PhoneNo, CustId, Plan}, _From, LoopData) ->
Reply = usr_db:add_usr(#usr{msisdn=Pho neNo,
id=CustId,
plan=Plan}),

Title: Re: [Erlang Programming Book] excersise 2-3, what is the meaning of nand?
Date/Time: Thu, 23 Jun 2011 07:19:47 UT
Description: "nand" stands for "not and", like the nand gates from the olden days.
nand(a,b) = not(and(a,b))
Best wishes
Ivan

Title: excersise 2-3, what is the meaning of nand?
Date/Time: Thu, 23 Jun 2011 03:58:11 UT
Description: b_not or b_and are just like "not" and "and".

But what is the meaning of nand?

thx

Title: Re: [Erlang Programming Book] What can I get the codes
Date/Time: Thu, 09 Jun 2011 06:31:13 UT
Description: Hi,
Glad you like the book. We decided not to include solutions to the
exercises, allowing lecturers to use them as assignments in university
courses. But if you ask, I am sure someone on the list will (offline :-)
) point you in the right direction.
Happy programming,
Francesco

Title: What can I get the codes
Date/Time: Thu, 09 Jun 2011 05:41:42 UT
Description: I'm fond of the "Erlang Programming" very much.But I don't know where
I can get codes which is the answer to the exercise attached to the
end of every chapter.I have already downloaded some codes from the
[link] only to found that what I need were
not Incorporated.Could you help me with my problem?Thanks a lot!