erlang
starting erlang application with parameter
Is there a way to pass parameters to root supervisor of an application other than with config file and application:get_env/1? For instance, by command line?[详细]
2023-04-11 19:28 分类:问答webmachine and redirect unauthenticated users
In my new project I want to use webmachine and mochiweb. First thing i want to do is authentication. I edit \"dispatch.conf\" and make some resources, like:[详细]
2023-04-11 14:20 分类:问答Erlang sytax error with 'Or'
I got this very newb and simple function in erlang: function_x(L) -> X = lists:filter((fun(N)-> N =:= 2 end), L),[详细]
2023-04-11 12:30 分类:问答Is it possible to get a list of acceptable values in an Erlang type?
Say I define a type: -ty开发者_Python百科pe yummy_foods() :: ice_cream | cake | cookies | spam. This seems like a great way to do what I would do with an enumeration in C. I can have Erlang check t[详细]
2023-04-11 06:49 分类:问答Erlang Concurrency Model
This could be a very basic question but is Erlang capable of calling a method on another prcoess and wait for it to repond back with some ob开发者_开发百科ject type without sleeping threads?Well, if y[详细]
2023-04-11 06:42 分类:问答List comprehension AND guards
How to implement AND guards in list comprehensions? Separating the guards with comma seems to word as OR:[详细]
2023-04-11 03:38 分类:问答Erlang Code Snippet that shows off its benefits?
I\'m giving a small presentation to a group of C/C++ programmers who have very little experience with functional languages. Part of the presentation mentions Erlang, and I would like to give a specifi[详细]
2023-04-11 01:35 分类:问答Merge and Zip with list comprehension
Want to merge [1,3,4], [2,5] -> [1,2,3,4,5] and zip [1,2,3],[4,5] -> [{1,4},{2,5}]. Its not homew开发者_如何转开发ork, i just want improve my skill in list-comprehensions. If you know any links to tri[详细]
2023-04-10 22:57 分类:问答Adding parameters to the init_per_testcase config parameter
I have a erlang integration test using the common test frame work. The config parameter passed to the init_per_testcase call and all the tests is initialized as:[详细]
2023-04-10 01:01 分类:问答Add a dynamic supervisor to ejabberd
Is it possible to start a supervisor module in ejabberd which I can add a gen_fsm module to, per connection?[详细]
2023-04-09 10:20 分类:问答