Erlang Web is an MVC web framework written in Erlang.
Questions tagged [erlangweb]
37 questions
2
votes
1 answer
How to handle multiple requests to out(A) in yaws?
Recently, I have startet working on a REST api in erlang & Yaws.
I don't understand how yaws & my module handle multiple requests.
I do have api module gathering all requests :
appmods = , api>
and my test module :
-module(api).
out(_Arg) ->
…

Ginaf
- 23
- 2
1
vote
0 answers
erlang gen_tcp:connect/3 not working with rpc:call/4, anyone knows why?
Could not solve this by myself
launched a new node A with ssh command
started a new node B
gen_tcp:connect/3 works on B, but rpc:call(B,gen_tcp,connect,Params) not works.
Both nodes are running on local laptop
and one node returns ok and the other…

allenhwkim
- 27,270
- 18
- 89
- 122
1
vote
3 answers
Erlang read post request
I'm trying to build a simple web server based on Erlang, so far I'm able to start a server with below code. tutorial ref
-module(helloworld).
-export([
main/1,
run_server/0,
start/0,
service/3,
]).
main(_) ->
start(),
receive
stop…

piyush singh
- 395
- 8
- 24
1
vote
1 answer
Designing a chat server design pattern with erlang
I am trying to build a chat server for my social network and this is the design pattern currently I came up with.
look at the user_handler it is a worker process who creates several linked user process and save those process ids to ets table based…

Akash Bose
- 82
- 1
- 8
1
vote
2 answers
How to generate cowboy SSL certificates?
In cowboy's ssl directory I see 3 files
cowboy-ca.crt, server.crt and server.key.
Probably somewhere the directory they have the cowboy-ca.key which is not needed.
I can guess that cowboy-ca.crt is the public key of some default CA, and that is…

Edik Mkoyan
- 309
- 2
- 17
1
vote
1 answer
erlang google oauth2 protocol for google calling apis
Hello I am writing oauth 2 library to access google api's and my code is as follows
jwt_create() ->
{ok,PemBin} = file:read_file("your-key-file.pem"),
PemEntry = public_key:pem_decode(PemBin),
[A,B] = PemEntry,
io:format("A:: ~p…

Krishna
- 41
- 4
1
vote
0 answers
Support in Erlang for right to left languages
I am facing a problem in Erlang for right to left languages.If i change my profile name in right to left language(ex hebru) then the notification received on production build has name in junk characters whereas on local build it is working perfectly

alisha
- 11
- 1
1
vote
1 answer
Sync crash when using with ErlyDTL Erlang
Anyone have an idea or can fix the crash problem of Sync with ErlyDTL?
Once I try to use page rendered from template by using ErlyDTL, Sync will crash and shut down the application. Here is the log below:
=ERROR REPORT==== 30-Jul-2015::09:01:26…

Yarin Nim
- 3,607
- 3
- 14
- 15
1
vote
0 answers
How to connect Cassandra database with Chicago Boss Application?
My cassandra database is on a VMware server. The problem is that I don't find any database adapter which can help me in connecting my cassandra database with my chicago boss(a web framework in Erlang) application. I tried Cqerl on GitHub but I am…

Shubham Abrol
- 613
- 6
- 10
1
vote
3 answers
How To equal <<"xxxasdew">> , and '<<"xxxasdew">>' in erlang
I am having Data like the below:
Data = [{<<"status">>,<<"success">>},
{<<"META">>,
{struct,[{<<"createdat">>,1406895903.0},
{<<"user_email">>,<<"gopikrishnajonnada@gmail.com">>},
…

Krish gopi
- 155
- 4
- 12
1
vote
1 answer
Yaws Cyrillic output
Can you help me please?
At the web-page, I need print this:
team 1 vs team 2
team 3 vs team 4
team 5 vs team 6
team 7 vs team 8
My code:
first_team_write(Head) ->
{ehtml,
%[{text,[], f("~p vs ", [Head])}]}. % try
[{p,[], [Val,…

compasses
- 99
- 1
- 7
1
vote
0 answers
How to continue last session, after network disconnect?
I am working in android application using ejabberd as a server.I make call to user using VOIP. I disconnected from server when my internet connection goes down.After internet connection come, I need to continue last session,before timeout occurs.I…

BABU K
- 917
- 13
- 35
0
votes
1 answer
Webmachine: How can I retrieve multiple values from URL via wrq:get_qs_value?
I get this:
T = wrq:get_qs_value("name",ReqData)
But suppose I want to retrieve "fname", "lname", "gnder", "age", etc. from a form submission. Do I need to repeat variations on the line above for every variable? Or is there a more elegant…

Lloyd R. Prentice
- 4,329
- 3
- 21
- 31
0
votes
2 answers
How to maintain stateful in yaws
I have some process (spawned) with state.
How to maintain simple stateful service in yaws?
How to implement communication to process in "appmods" erl source file?
update:
let's we have simple process
start() -> loop(0).
loop(C) ->
receive
…

Pavel Ajtkulov
- 515
- 7
- 21
0
votes
1 answer
How to get the content or title of a wikipedia page using erlang?
-module(wikipedia).
-export([main/0]).
-define(Url, "http://en.wikipedia.org/w/api.php?format=xml&action=parse&prop=sections&page=Chicago").
-define(Match, "^[A-Za-z]+[A-Za-z0-9]*$").
main() ->
inets:start(),
%% Start ssl application
…

hithard
- 123
- 2
- 8