erlangweb-users Mailing List for Erlang Web (Page 9)
Brought to you by:
etcerlangweb,
paulgray
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(40) |
Dec
(25) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(7) |
Feb
(17) |
Mar
(10) |
Apr
(3) |
May
(10) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
(7) |
| 2010 |
Jan
(3) |
Feb
(10) |
Mar
(18) |
Apr
(20) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
|
From: Michal P. <mic...@er...> - 2008-11-24 14:14:16
|
>> Hello >> >> I found that erlangweb-1.1.1 does not works with yaws-1.77 due to chages in yaws.hrl (mnesia_dir added). >> Some files in eptic includes headers of yaws version 1.73, which differs. >> When I fix it manually - all works fine. >> Can you fix it in mainstream? >> >> Thank you. >> >> -- >> Maxim Treskin Hello, Yes, the next 1.2 release of Erlang Web won't depend on the exact Yaws version: the includes in the eptic modules will be changed. Thank you for your support, -- Michal Ptaszek www.erlang-consulting.com |
|
From: Maxim T. <zer...@gm...> - 2008-11-24 13:54:03
|
Hello I found that erlangweb-1.1.1 does not works with yaws-1.77 due to chages in yaws.hrl (mnesia_dir added). Some files in eptic includes headers of yaws version 1.73, which differs. When I fix it manually - all works fine. Can you fix it in mainstream? Thank you. -- Maxim Treskin |
|
From: Michal Z. <mic...@er...> - 2008-11-18 08:20:10
|
Ad. 1.
As I suggested, to build form with already set values we need new function in controller. For now there is, in example, static call to 'add' function and dynamic to 'create'. We need to change add (which displays empty form) into dynamic in dispatcher. In that case, before building form we will go to controller to function 'add' and there we will set initial values for form.
Code could look like that:
add_person(_) ->
Default = prepare_defaults(),
wpart:fset("__edit", Deafault),
{template, "add_person.html"}.
prepare_defaults() ->
wpart_db:build_record_structure(person, initial, #person{name="", sex = "true"}).
%% wpart_db is generic module which builds long names (build by wpart_form)
Now when we have dynamically build form we can handle errors here as well. Try to experiment with validate_tool and request dictionary variable "__not_validated". On validation error there is set of posted values ready to render in form.
Ad 2.
Again, example was supposed to be very simple. For now I didn't have time to check it correctness. Sorry for troubles, again;) and thanks for feedback!
I can say how it works in real projects. For pagination is responsible wpart_paginate. It is in specific slot in View template. There is big chance that generic paginator will be added to version 1.2. It talks to Model and thanks to that knows specification of content of each page to render.
What was over-simplified in example is:
- mixed up functionality.
- html build in erlang function (separate wpart would use mechanism of loading .tpl and handling just arguments)
|
|
From: Michal S. <mi...@er...> - 2008-11-17 15:11:55
|
Hi, The pdf with slides can be found here: http://www.erlang-consulting.com/erlang/presentations.html Michal -- Michal Slaski http://www.erlang-consulting.com On 17 Nov 2008, at 13:46, Mazen Harake wrote: > Hi, > > Where can I get them? > > /Mazen |
|
From: Mazen H. <maz...@er...> - 2008-11-17 12:46:32
|
Hi, Where can I get them? /Mazen |
|
From: <pr...@do...> - 2008-11-17 01:38:25
|
"Michal Zajda" <mic...@gm...> writes:
> To achieve functionality You are talking about we need to clarify
> several issues. 'wparts' are responsible for building HTML. 'optional'
> field is checked -- but in 'wtypes' during validation.
My patch has broken the abstraction a bit. What I thought was going on
with __edit appeared to break it as well. I was confused.
> But going back to exact problem. {optional, ...} works as You
> wish. When empty field is submitted validator checks if there is
> declared {optional, default_value}.
Yes, {optional,...} works as described. I personally verified that it
did exactly what I expected.
I don't think I've been clear. Sorry, I'll try again.
I wanted the form as delivered to the client browser to have one of the
radio buttons pre-selected with a default value. In some circumstances
it bothers me to have a set of radio buttons that have a default value
that will be applied after form submission and not have that value
displayed to the client browser before the form is submitted.
> Sorry for bad example -- I will try to fix it shortly. More
> interesting stuff about CRUD functionality You can find in tutorial on
> erlang-web.org. Some more complicated examples to intorduce Erlang Web
> will be published soon.
I hope you're not misunderstanding me. I am not even slightly trying to
be critical. The example is not bad. It gave a very good idea of how
erlang web is supposed to work. It is an infinitely better example than
one that worked out of the box because it drove me to grub around in the
source learning how to make it work.
Now it works, with only two problems. 1) The default radio button is
not displayed selected and 2) the prev/next buttons on the listing page
display the HTML and are not actual links. I've looked and it's not
going to ever work the way it is. Again I see a way to do it but it is
not the *correct* way to do it.
I've abandoned the patch I posted earlier and I'll wait for the
examples.
Thank you,
- paul
|
|
From: Michal Z. <mic...@er...> - 2008-11-17 00:08:11
|
hi,
first thing is that example was very simple application to show general idea about Erlang Web.
To achieve functionality You are talking about we need to clarify several issues. 'wparts' are responsible for building HTML. 'optional' field is checked -- but in 'wtypes' during validation.
If You would like to build form with default values already in input fields, we need new function which prepares form e.g. before_add and there is place to set
wpart:fset(__edit, {name_of_field_in form, default_value}). It will require new entry in dispatcher file.
But going back to exact problem. {optional, ...} works as You wish. When empty field is submitted validator checks if there is declared {optional, default_value}. If it is, instead of {error, undefined} -- {ok, default_value} is passed to controller (not directly). This value will be set to DB. On the other hand if this cannot be specified by default (lets say Age) do not set {optional, ..} and on error go again to form with wrong fields (here empty) surrounded with red frame (any frame - ccs). Of course previous values set by user should be retrieved (it is mostly done by validate_tool) and here we use Default variable in wparts.
One of reasons why this way of handling default values is useful is that, it is hard to escape some of the HTML tags. And it gives more flexibility.
Sorry for bad example -- I will try to fix it shortly. More interesting stuff about CRUD functionality You can find in tutorial on erlang-web.org. Some more complicated examples to intorduce Erlang Web will be published soon.
br
Michal Zajda
|
|
From: <pr...@do...> - 2008-11-16 22:10:43
|
I've been working on a form that contains radio buttons. It's more or less based upon the example application at: http://www.erlang-web.org/code2.htm It doesn't matter (I'm learning much more about the inner working than I otherwise would have if the example did work) but as supplied the example appears to be written for an entirely different version of erlangweb. I have radio buttons for sex. It makes no sense to me to not have one set by default when adding a person to the database, so I wanted one checked rather than having someone miss the setting and generating an error on submission. wpart_enum indeed has code in it to set a "checked" attribute in the radio button HTML tag. I don't however understand the intent or understand how to use it. The "Default" setting from the code is ultimately coming from wpart:fget("__edit") and unless there's a trick involved that I've missed, is set nowhere in the codebase. I'm guessing this is either unfinished code or code that hasn't been removed or I'm confused. It makes sense to me that any {optional, <value>} tuple set on the field type should probably be the value that's checked by default. The following patch does this. It works but I don't know if it's the correct thing to do. It calls the original code and if that fails to find a value it looks up the 'optional' value and uses that for the default instead. --------------------------------------------------------------------------- diff --git a/lib/wparts-1.1/src/wpart_enum.erl b/lib/wparts-1.1/src/wpart_enum.erl index 076dcdf..c6452e5 100644 --- a/lib/wparts-1.1/src/wpart_enum.erl +++ b/lib/wparts-1.1/src/wpart_enum.erl @@ -40,7 +40,13 @@ build_html_tag(Name, Prefix, Params, Default) -> false -> []; {value, {choices, List}} -> List end, - D = wpart_derived:find(N, Default), + D = case wpart_derived:find(N, Default) of + "" -> case lists:keysearch(optional, 1, Params) of + false -> ""; + {value, {optional, D1}} -> D1 + end; + D1 -> D1 + end, wpart_derived:surround_with_table(N, get_html_tag(N, Choices, D), Description). --------------------------------------------------------------------------- - paul |
|
From: <pr...@do...> - 2008-11-16 21:38:19
|
Michal Ptaszek <mic...@er...> writes:
> It seems to be a known bug (discovered by Paul Bernard) with building the project only from the current working directory.
> The workaround (for now) is to run all the bin/start commands from the directory where you have the sources.
>
> In your case you should download the Erlang Web tarball and then:
> tar -xzf erlangweb-1.1.1.tar.gz
> cd erlangweb-1.1.1
> erl -make
> bin/start.erl
> bin/start interactive
There is an easy workaround so you can start with an empty directory.
I'm quoting from memory and not tested the following exactly so watch
for typos and oversights on my part. I've done it a few times now. A
patch is included below:
mkdir <originaldir>
tar -xzf erlangweb-1.1.1.tar.gz
cd erlangweb-1.1.1
patch -p 1 <patchfile
erl -make
mkdir <otherdir>
cd <otherdir>
export ERL_LIBS=<originaldir>/erlangweb-1.1.1/lib
<originaldir>/erlangweb-1.1.1/bin/start.erl
cp -a <originaldir>/erlangweb-1.1.1/lib/yaws-1.73/include <otherdir>/lib/yaws-1.73
Now it *should* start. I've not personally used the "bin/start
interactive" version. I just "bin/start;sleep 2;bin/start connect", I
have no reason other than habit.
Patch:
---------------------------------------------------------------------------
diff --git a/bin/start.erl b/bin/start.erl
index 74e8b45..a493002 100755
--- a/bin/start.erl
+++ b/bin/start.erl
@@ -186,7 +186,7 @@ create_start_scripts({Version, Path}) ->
"export PROGNAME\n"
"export RELDIR\n\n"
- "exec $BINDIR/erlexec -boot $RELDIR/$VSN/start -config $RELDIR/$VSN/sys -heart -env HEART_BEAT_TIMEOUT 30 -pa patches +K true -sname $HOSTNAME -smp enable +P 262140 ${1+\"$@\"}\n",
+ "exec $BINDIR/erlexec -boot $RELDIR/$VSN/start -config $RELDIR/$VSN/sys -heart -env HEART_BEAT_TIMEOUT 30 -pa patches +K true -sname $HOSTNAME -smp auto +P 262140 ${1+\"$@\"}\n",
FileName2 = filename:join("bin", "start_erl"),
create_script(FileName2, FileContent2).
@@ -343,7 +343,7 @@ generate_boot_file() ->
erl_tar:extract("releases/0.1/start.tar.gz", [keep_old_files, compressed]).
create_sys_config_file() ->
- YawsConfig = "config/yaws.config",
+ YawsConfig = "config/yaws.conf",
file:copy(code:priv_dir(yaws) ++ "/yaws.conf", YawsConfig),
confirm_created(YawsConfig),
---------------------------------------------------------------------------
I have to do the first one because my erlang has been compiled with SMP
disabled. The second one fixes a typo. The script should almost
certainly copy yaws' include directory. I did so and then backed off
and lost it. I just do it by hand for now.
- paul
|
|
From: Michal P. <mic...@er...> - 2008-11-16 09:40:57
|
Hi,
It seems to be a known bug (discovered by Paul Bernard) with building the project only from the current working directory.
The workaround (for now) is to run all the bin/start commands from the directory where you have the sources.
In your case you should download the Erlang Web tarball and then:
tar -xzf erlangweb-1.1.1.tar.gz
cd erlangweb-1.1.1
erl -make
bin/start.erl
bin/start interactive
The error you are getting has nothing to do with Yaws ports - "bin/start interactive" command simply calls
erl -pa lib/*/ebin -s e_mod_yaws [other options], so when you are outside the root directory of your application, the beam files are not in your path anymore (the command should look like: erl -pa erlangweb-1.1.1/lib/*/ebin -s e_mod_yaws [other options]).
bin/start script will be corrected shortly.
Best regards,
Michal Ptaszek
----- Oryginalna wiadomość -----
Od: "gqwu" <gq...@ya...>
Do: erl...@li...
Wysłane: niedziela, 16 listopad 2008 2:20:56 GMT +01:00 Amsterdam / Berlin / Berno / Rzym / Sztokholm / Wiedeń
Temat: [Erlangweb-users] getting erlang-web running on ubuntu-server
Hi everyone. I'm trying to follow the tutorial.pdf to get erlang-web running in ubuntu-server.
I used a brand new ubuntu-server 8.10 VM, did apt-get erlang & yaws, and opened up port 8080 in iptables. Erlang shell works and ubuntu's yaws localhost:8080 default successful page shows up.
I downloaded and extracted erlangweb-1.1.1.tar.gz. I run 'erl -make' and a bunch of 'Recompile: lib/...' msgs fly by.
Then I create an empty directory and run
erlangweb-1.1.1/bin/start.erl and see a bunch of 'Element created:...'.
Next I try running 'bin/start interactive' but get the following error:
--------------------
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false]
{"init terminating in do_boot",{undef,[{e_mod_yaws,start,[]},{init,start_it,1},{init,start_em,1}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
--------------------
I also tried making en Emakefile in the project directory with:
{"lib/<my_app_name>/src/*",[{outdir, "lib/<my_app_name>/ebin"},
{i, "lib/<my_app_name>/include"}, debug_info, strict_record_tests, netload]}.
and then compile it with 'erl -make' or 'erl'&'make:all()' but nothing happens.
Anyone know what I'm doing wrong? I'm guessing it has something to do with yaws.
Thanks!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Erlangweb-users mailing list
Erl...@li...
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
|
|
From: Michael M. <erl...@au...> - 2008-11-16 04:07:49
|
Here is what I did per INSTALL file (on ubuntu 8.04) and it worked
$ cd /to/where/I/want/to/install/erlangweb-1.1.1
$ tar -xzf erlangweb-1.1.1.tar.gz
$ cd erlangweb-1.1.1
$ erl -make
$ bin/start.erl
$ bin/start interactive
and then http://localhost:8080 returns page
Your error looks unrelated but do make sure other yaws instance is not
running on port 8080 when doing the 'bin/start interactive' above
~Michael
On Sat, Nov 15, 2008 at 05:20:56PM -0800, gqwu wrote:
> Hi everyone. I'm trying to follow the tutorial.pdf to get erlang-web running in ubuntu-server.
>
> I used a brand new ubuntu-server 8.10 VM, did apt-get erlang & yaws, and opened up port 8080 in iptables. Erlang shell works and ubuntu's yaws localhost:8080 default successful page shows up.
>
> I downloaded and extracted erlangweb-1.1.1.tar.gz. I run 'erl -make' and a bunch of 'Recompile: lib/...' msgs fly by.
>
> Then I create an empty directory and run
> erlangweb-1.1.1/bin/start.erl and see a bunch of 'Element created:...'.
>
> Next I try running 'bin/start interactive' but get the following error:
> --------------------
> Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false]
>
> {"init terminating in do_boot",{undef,[{e_mod_yaws,start,[]},{init,start_it,1},{init,start_em,1}]}}
>
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> --------------------
>
> I also tried making en Emakefile in the project directory with:
>
> {"lib/<my_app_name>/src/*",[{outdir, "lib/<my_app_name>/ebin"},
> {i, "lib/<my_app_name>/include"}, debug_info, strict_record_tests, netload]}.
>
> and then compile it with 'erl -make' or 'erl'&'make:all()' but nothing happens.
>
> Anyone know what I'm doing wrong? I'm guessing it has something to do with yaws.
>
> Thanks!
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
--
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
|
|
From: gqwu <gq...@ya...> - 2008-11-16 01:21:01
|
Hi everyone. I'm trying to follow the tutorial.pdf to get erlang-web running in ubuntu-server.
I used a brand new ubuntu-server 8.10 VM, did apt-get erlang & yaws, and opened up port 8080 in iptables. Erlang shell works and ubuntu's yaws localhost:8080 default successful page shows up.
I downloaded and extracted erlangweb-1.1.1.tar.gz. I run 'erl -make' and a bunch of 'Recompile: lib/...' msgs fly by.
Then I create an empty directory and run
erlangweb-1.1.1/bin/start.erl and see a bunch of 'Element created:...'.
Next I try running 'bin/start interactive' but get the following error:
--------------------
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false]
{"init terminating in do_boot",{undef,[{e_mod_yaws,start,[]},{init,start_it,1},{init,start_em,1}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
--------------------
I also tried making en Emakefile in the project directory with:
{"lib/<my_app_name>/src/*",[{outdir, "lib/<my_app_name>/ebin"},
{i, "lib/<my_app_name>/include"}, debug_info, strict_record_tests, netload]}.
and then compile it with 'erl -make' or 'erl'&'make:all()' but nothing happens.
Anyone know what I'm doing wrong? I'm guessing it has something to do with yaws.
Thanks!
|
|
From: ferrety f. <yfe...@gm...> - 2008-11-12 23:42:40
|
Hi guys,
As you may know, I'm playing with Erlang Web these days.
I've updated my apps to 1.1.1 today without any problem.
But I noticed that Paul's warning on building from outside the release
itself is still failing in v1.1.1.
$ cd erlangweb-1.1.1
$ erl -make
$ ./bin/start.erl <=== this works perfectly
$ cd ..
$ mkdir foo
$ cd foo
Now, the following failed:
$ ../erlangweb-1.1.1/bin/start.erl
[...]
Element created: releases/0.1/start.rel
Element created: releases/0.1/start.script
Element created: releases/0.1/start.boot
escript: exception error: bad argument
in operator ++/2
called as {error,bad_name} ++ "/yaws.conf"
Or with full path:
$ /home/ferret/erlangweb-1.1.1/bin/start.erl
[...]
Element created: releases/0.1/start.rel
Element created: releases/0.1/start.script
Element created: releases/0.1/start.boot
escript: exception error: bad argument
in operator ++/2
called as {error,bad_name} ++ "/yaws.conf"
Anyway, thanks for the new release.
Regards
Ferret
On Fri, Nov 7, 2008 at 9:34 AM, Michal Ptaszek <pau...@gm...> wrote:
> Hello!
>
> 2008/11/7 Paul R. Bernard <pr...@do...>:
>> I've been playing with erlangweb-1.1 and I had a bit of trouble
>> getting it started. I'm using Erlang R12B-4 on a stable up to date
>> Gentoo system. I'm using the supplied yaws 1.73 rather than my own.
>>
>> I've read the tutorial. It's not clear to me if the initial
>> bin/start.erl escript is *supposed* to be run in an empty directory of
>> my choosing or whether it can only be run where I chose to unpack and
>> make the erlang-web distribution.
>
> Thanks for that remark - we will correct the tutorial so everything
> will be cleaner.
>
>> I may be having erlang environment troubles or I might be having PEBKAC
>> troubles. If I run the escript inside the erlangweb distribution
>> directory everything works just fine. (Well almost just fine, there are
>> some non-portable nits in the various scripts (and the already known
>> en.conf problem) but once fixed it goes ok.)
>>
>> If I run the escript inside an empty directory *with* ERL_LIBS set to an
>> appropriate ".../erlangweb-1.1/lib" value it seems to be fine. (with
>> the exception that there's a mixup between the yaws.conf file and
>> yaws.config pre-configured in the skeleton). Once the problems are
>> fixed it still won't go. Here's why.
>>
>> The following files and directories are NOT copied by the escript
>>
>> yaws-1.73/include/*
>>
>> lib/wpart-1.1/ebin/utf8.beam
>> lib/wpart-1.1/ebin/utf8_api.beam
>> lib/wpart-1.1/ebin/validate_tool.beam
>> lib/wpart-1.1/ebin/wpart_utils.beam
>>
>> and
>>
>> lib/wparts-1.1/ebin/wpart_gen.beam
>>
>> Once these are copies it works great.
>>
>> I don't have any experience (beyond this one) working with erlang
>> releases or huge or elaborate erlang setups. I've not looked further
>> into trying to figure out why these particular beam files are not
>> copied, every other beam file is copied.
>
> I have checked the .app files and noticed, that we have missed those
> files in modules section. So once again - thank you for pointing out
> that bug :)
>
> Best regards,
> Michal Ptaszek
>
>>
>> - paul
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>
|
|
From: Michal P. <mic...@er...> - 2008-11-12 16:11:54
|
The Erlang Web 1.1.1 release After receiving the feedback from the community, we fixed the known errors and decided to release Erlang Web 1.1.1. Changelog: Release 1.1.1 (12.11.2008) * Corrected bug with e_lang en.conf file loading by default * Fixed the .app files * Corrected the dialyzer warnings The package can be found on www.erlang-web.org Thank you for your support, Michal Ptaszek |
|
From: ferrety f. <yfe...@gm...> - 2008-11-07 20:34:55
|
Hi Michal,
Many thanks ...
Regards
Ferret
On Fri, Nov 7, 2008 at 9:29 AM, Michal Ptaszek <pau...@gm...> wrote:
> Hi!
> Yes, AJAX support is in our plans as well.
> At this point, there is e_json module (and you can return a tuple of
> {json, Data}) from the controller - Data will be encoded and send back
> to the browser with the proper headers).
> Having some framework-specific modules will be surely conveninet - it
> is a good idea to have them in 1.2 release :)
>
> Best regards,
> Michal Ptaszek
>
> 2008/11/7 ferrety ferrety <yfe...@gm...>:
>> Hi List,
>>
>> In the way of learning "Erlang Web", I was wondering if there's a plan
>> support for AJAX (Dojo, Scriptalicious ...)?
>>
>> Regards
>> Ferret
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>
|
|
From: Michal P. <pau...@gm...> - 2008-11-07 08:34:51
|
Hello! 2008/11/7 Paul R. Bernard <pr...@do...>: > I've been playing with erlangweb-1.1 and I had a bit of trouble > getting it started. I'm using Erlang R12B-4 on a stable up to date > Gentoo system. I'm using the supplied yaws 1.73 rather than my own. > > I've read the tutorial. It's not clear to me if the initial > bin/start.erl escript is *supposed* to be run in an empty directory of > my choosing or whether it can only be run where I chose to unpack and > make the erlang-web distribution. Thanks for that remark - we will correct the tutorial so everything will be cleaner. > I may be having erlang environment troubles or I might be having PEBKAC > troubles. If I run the escript inside the erlangweb distribution > directory everything works just fine. (Well almost just fine, there are > some non-portable nits in the various scripts (and the already known > en.conf problem) but once fixed it goes ok.) > > If I run the escript inside an empty directory *with* ERL_LIBS set to an > appropriate ".../erlangweb-1.1/lib" value it seems to be fine. (with > the exception that there's a mixup between the yaws.conf file and > yaws.config pre-configured in the skeleton). Once the problems are > fixed it still won't go. Here's why. > > The following files and directories are NOT copied by the escript > > yaws-1.73/include/* > > lib/wpart-1.1/ebin/utf8.beam > lib/wpart-1.1/ebin/utf8_api.beam > lib/wpart-1.1/ebin/validate_tool.beam > lib/wpart-1.1/ebin/wpart_utils.beam > > and > > lib/wparts-1.1/ebin/wpart_gen.beam > > Once these are copies it works great. > > I don't have any experience (beyond this one) working with erlang > releases or huge or elaborate erlang setups. I've not looked further > into trying to figure out why these particular beam files are not > copied, every other beam file is copied. I have checked the .app files and noticed, that we have missed those files in modules section. So once again - thank you for pointing out that bug :) Best regards, Michal Ptaszek > > - paul |
|
From: Michal P. <pau...@gm...> - 2008-11-07 08:29:16
|
Hi!
Yes, AJAX support is in our plans as well.
At this point, there is e_json module (and you can return a tuple of
{json, Data}) from the controller - Data will be encoded and send back
to the browser with the proper headers).
Having some framework-specific modules will be surely conveninet - it
is a good idea to have them in 1.2 release :)
Best regards,
Michal Ptaszek
2008/11/7 ferrety ferrety <yfe...@gm...>:
> Hi List,
>
> In the way of learning "Erlang Web", I was wondering if there's a plan
> support for AJAX (Dojo, Scriptalicious ...)?
>
> Regards
> Ferret
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Erlangweb-users mailing list
> Erl...@li...
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>
|
|
From: <pr...@do...> - 2008-11-07 04:04:41
|
I've been playing with erlangweb-1.1 and I had a bit of trouble getting it started. I'm using Erlang R12B-4 on a stable up to date Gentoo system. I'm using the supplied yaws 1.73 rather than my own. I've read the tutorial. It's not clear to me if the initial bin/start.erl escript is *supposed* to be run in an empty directory of my choosing or whether it can only be run where I chose to unpack and make the erlang-web distribution. I may be having erlang environment troubles or I might be having PEBKAC troubles. If I run the escript inside the erlangweb distribution directory everything works just fine. (Well almost just fine, there are some non-portable nits in the various scripts (and the already known en.conf problem) but once fixed it goes ok.) If I run the escript inside an empty directory *with* ERL_LIBS set to an appropriate ".../erlangweb-1.1/lib" value it seems to be fine. (with the exception that there's a mixup between the yaws.conf file and yaws.config pre-configured in the skeleton). Once the problems are fixed it still won't go. Here's why. The following files and directories are NOT copied by the escript yaws-1.73/include/* lib/wpart-1.1/ebin/utf8.beam lib/wpart-1.1/ebin/utf8_api.beam lib/wpart-1.1/ebin/validate_tool.beam lib/wpart-1.1/ebin/wpart_utils.beam and lib/wparts-1.1/ebin/wpart_gen.beam Once these are copies it works great. I don't have any experience (beyond this one) working with erlang releases or huge or elaborate erlang setups. I've not looked further into trying to figure out why these particular beam files are not copied, every other beam file is copied. - paul |
|
From: ferrety f. <yfe...@gm...> - 2008-11-06 23:41:39
|
Hi List, In the way of learning "Erlang Web", I was wondering if there's a plan support for AJAX (Dojo, Scriptalicious ...)? Regards Ferret |
|
From: ferrety f. <yfe...@gm...> - 2008-11-05 19:35:09
|
Hi all, Wow, looks very promising !!! Thanks for your reactivity guys. Regards Ferret On Wed, Nov 5, 2008 at 3:56 PM, Michal Slaski <mi...@er...> wrote: > Hi, > I agree that the ERROR report could be changed into WARNING or INFO one. > > At this point the tutorial covers all the Erlang Web features separately. We > were planning on releasing also a package that would combine a variety of > examples into one bigger application. It would be released together with the > components described by Xingdong. > > Michal > > -- > Michal Slaski > http://www.erlang-consulting.com > > On 5 Nov 2008, at 00:07, ferrety ferrety wrote: > >> Hi List, >> >> After quickly reading the doc and the presentation, I've downloaded >> version 1.1 from: >> http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz >> >> Everything compiled just fine and the "welcome" demo worked s expected. >> I've noticed that something was missing (see ERROR_REPORT below) on >> startup: >> >> erlangweb-1.1 $ bin/start interactive >> .... >> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === >> application: eptic >> started_at: nonode@nohost >> >> =ERROR REPORT==== 4-Nov-2008::23:59:59 === >> e_lang module: error during loading file: >> ["config/","languages/","en.conf"], reason:enoent >> >> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === >> application: wpart >> started_at: nonode@nohost >> .... >> >> So could you fix that guys? >> >> Moreover, I'm looking for concrete examples I can test and learn from? >> It's eaasy to start from something really working. So this will >> minimize the learning curve >> for new comers. An example, where to put your stuffs, how they'll be >> compiled (which file to update for that) ... >> >> Any advices or plan for that? >> >> Regards >> Ferret >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Erlangweb-users mailing list >> Erl...@li... >> https://lists.sourceforge.net/lists/listinfo/erlangweb-users > > |
|
From: Francesco C. (E. T. a. Consulting)
<fra...@er...> - 2008-11-05 15:13:23
|
One of our hopes in releasing the Erlang Web as Open Source is that others will soon start making their components available as well. We will provide facilities on the erlang-web site for others to upload their contributions in the near future. Regards, Francesco -- http://www.erlang-consulting.com Xingdong Bian wrote: > Hi Ferrety, > > Based on page 24 the 4.4 Internationalization, you will need to > createthe conf files by yourself, also i have to make a correction > for the email i send earlier, en.conf should specify English, and you > can create similar files for other languages e.g. se.conf for > Swedish. In project.conf should have two entries: {language_files, > [{en, PathToEnTranslationFile}, {se, PathToOtherTransFile}]} and > second one {default_language, en}, it will enable translation for two > languages en and se. You can find example on page 27 of the > translation conf file's definition. > > For the components of Erlang Web, some of them already made and being > used -- mailing list, ebackup (mnesia database backup & restore), RSS > aggregator, but we are working on documentation and examples on those, > and more components are in the pipline -- CMS, Paypal integration etc. > > The available date for those components would be around December > and/or next January, there will be a new section on the Erlang Web > website -- www.erlang-web.org for components, new components with > documentation and examples will be announced there. > > Best regards > Xingdong > > ferrety ferrety wrote: >> Hi Xingdong, >> >> >>> Thank you for pointing the error out, but it won't affect the main >>> functionalities of Erlang Web, just if you want to use other language >>> rather than default English, you will need to place the translation file >>> in config/languages/en.conf, to define the translation from English to >>> other language, you can find more info about this in the tutorial, and >>> we will fix the error reporting for the next release. >>> >> >> Yep. Where can I find such a conf file so I can sustomize it for other >> languages? >> >> >>> I am currently developing several components for the Erlang Web, once >>> they are finished, they will be available to download with examples. >>> >> >> Excellent. Is this planned for the near or far futur? >> >> >> Thanks >> >> Regards >> Ferret >> >> >>> Best regards >>> Xingdong >>> >>> ----- Original Message ----- >>> From: "ferrety ferrety" <yfe...@gm...> >>> To: erl...@li... >>> Sent: Tuesday, 4 November, 2008 11:07:00 PM GMT +00:00 GMT Britain, Ireland, Portugal >>> Subject: [Erlangweb-users] Erlang Web examples >>> >>> Hi List, >>> >>> After quickly reading the doc and the presentation, I've downloaded >>> version 1.1 from: >>> http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz >>> >>> Everything compiled just fine and the "welcome" demo worked s expected. >>> I've noticed that something was missing (see ERROR_REPORT below) on startup: >>> >>> erlangweb-1.1 $ bin/start interactive >>> .... >>> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === >>> application: eptic >>> started_at: nonode@nohost >>> >>> =ERROR REPORT==== 4-Nov-2008::23:59:59 === >>> e_lang module: error during loading file: >>> ["config/","languages/","en.conf"], reason:enoent >>> >>> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === >>> application: wpart >>> started_at: nonode@nohost >>> .... >>> >>> So could you fix that guys? >>> >>> Moreover, I'm looking for concrete examples I can test and learn from? >>> It's eaasy to start from something really working. So this will >>> minimize the learning curve >>> for new comers. An example, where to put your stuffs, how they'll be >>> compiled (which file to update for that) ... >>> >>> Any advices or plan for that? >>> >>> Regards >>> Ferret >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Erlangweb-users mailing list >>> Erl...@li... >>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Erlangweb-users mailing list >>> Erl...@li... >>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users >>> >>> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > |
|
From: Michal S. <mi...@er...> - 2008-11-05 14:56:58
|
Hi, I agree that the ERROR report could be changed into WARNING or INFO one. At this point the tutorial covers all the Erlang Web features separately. We were planning on releasing also a package that would combine a variety of examples into one bigger application. It would be released together with the components described by Xingdong. Michal -- Michal Slaski http://www.erlang-consulting.com On 5 Nov 2008, at 00:07, ferrety ferrety wrote: > Hi List, > > After quickly reading the doc and the presentation, I've downloaded > version 1.1 from: > http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz > > Everything compiled just fine and the "welcome" demo worked s > expected. > I've noticed that something was missing (see ERROR_REPORT below) on > startup: > > erlangweb-1.1 $ bin/start interactive > .... > =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === > application: eptic > started_at: nonode@nohost > > =ERROR REPORT==== 4-Nov-2008::23:59:59 === > e_lang module: error during loading file: > ["config/","languages/","en.conf"], reason:enoent > > =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === > application: wpart > started_at: nonode@nohost > .... > > So could you fix that guys? > > Moreover, I'm looking for concrete examples I can test and learn from? > It's eaasy to start from something really working. So this will > minimize the learning curve > for new comers. An example, where to put your stuffs, how they'll be > compiled (which file to update for that) ... > > Any advices or plan for that? > > Regards > Ferret > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users |
|
From: Xingdong B. <xin...@er...> - 2008-11-05 14:48:24
|
Hi Ferrety,
Based on page 24 the 4.4 Internationalization, you will need to
createthe conf files by yourself, also i have to make a correction for
the email i send earlier, en.conf should specify English, and you can
create similar files for other languages e.g. se.conf for Swedish. In
project.conf should have two entries: {language_files, [{en,
PathToEnTranslationFile}, {se, PathToOtherTransFile}]} and second one
{default_language, en}, it will enable translation for two languages en
and se. You can find example on page 27 of the translation conf file's
definition.
For the components of Erlang Web, some of them already made and being
used -- mailing list, ebackup (mnesia database backup & restore), RSS
aggregator, but we are working on documentation and examples on those,
and more components are in the pipline -- CMS, Paypal integration etc.
The available date for those components would be around December and/or
next January, there will be a new section on the Erlang Web website --
www.erlang-web.org for components, new components with documentation and
examples will be announced there.
Best regards
Xingdong
ferrety ferrety wrote:
> Hi Xingdong,
>
>
>> Thank you for pointing the error out, but it won't affect the main
>> functionalities of Erlang Web, just if you want to use other language
>> rather than default English, you will need to place the translation file
>> in config/languages/en.conf, to define the translation from English to
>> other language, you can find more info about this in the tutorial, and
>> we will fix the error reporting for the next release.
>>
>
> Yep. Where can I find such a conf file so I can sustomize it for other
> languages?
>
>
>> I am currently developing several components for the Erlang Web, once
>> they are finished, they will be available to download with examples.
>>
>
> Excellent. Is this planned for the near or far futur?
>
>
> Thanks
>
> Regards
> Ferret
>
>
>> Best regards
>> Xingdong
>>
>> ----- Original Message -----
>> From: "ferrety ferrety" <yfe...@gm...>
>> To: erl...@li...
>> Sent: Tuesday, 4 November, 2008 11:07:00 PM GMT +00:00 GMT Britain, Ireland, Portugal
>> Subject: [Erlangweb-users] Erlang Web examples
>>
>> Hi List,
>>
>> After quickly reading the doc and the presentation, I've downloaded
>> version 1.1 from:
>> http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz
>>
>> Everything compiled just fine and the "welcome" demo worked s expected.
>> I've noticed that something was missing (see ERROR_REPORT below) on startup:
>>
>> erlangweb-1.1 $ bin/start interactive
>> ....
>> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 ===
>> application: eptic
>> started_at: nonode@nohost
>>
>> =ERROR REPORT==== 4-Nov-2008::23:59:59 ===
>> e_lang module: error during loading file:
>> ["config/","languages/","en.conf"], reason:enoent
>>
>> =PROGRESS REPORT==== 4-Nov-2008::23:59:59 ===
>> application: wpart
>> started_at: nonode@nohost
>> ....
>>
>> So could you fix that guys?
>>
>> Moreover, I'm looking for concrete examples I can test and learn from?
>> It's eaasy to start from something really working. So this will
>> minimize the learning curve
>> for new comers. An example, where to put your stuffs, how they'll be
>> compiled (which file to update for that) ...
>>
>> Any advices or plan for that?
>>
>> Regards
>> Ferret
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Erlangweb-users mailing list
>> Erl...@li...
>> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
>>
>>
|
|
From: ferrety f. <yfe...@gm...> - 2008-11-05 14:26:55
|
Hi Xingdong, > Thank you for pointing the error out, but it won't affect the main > functionalities of Erlang Web, just if you want to use other language > rather than default English, you will need to place the translation file > in config/languages/en.conf, to define the translation from English to > other language, you can find more info about this in the tutorial, and > we will fix the error reporting for the next release. Yep. Where can I find such a conf file so I can sustomize it for other languages? > > I am currently developing several components for the Erlang Web, once > they are finished, they will be available to download with examples. Excellent. Is this planned for the near or far futur? Thanks Regards Ferret > Best regards > Xingdong > > ----- Original Message ----- > From: "ferrety ferrety" <yfe...@gm...> > To: erl...@li... > Sent: Tuesday, 4 November, 2008 11:07:00 PM GMT +00:00 GMT Britain, Ireland, Portugal > Subject: [Erlangweb-users] Erlang Web examples > > Hi List, > > After quickly reading the doc and the presentation, I've downloaded > version 1.1 from: > http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz > > Everything compiled just fine and the "welcome" demo worked s expected. > I've noticed that something was missing (see ERROR_REPORT below) on startup: > > erlangweb-1.1 $ bin/start interactive > .... > =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === > application: eptic > started_at: nonode@nohost > > =ERROR REPORT==== 4-Nov-2008::23:59:59 === > e_lang module: error during loading file: > ["config/","languages/","en.conf"], reason:enoent > > =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === > application: wpart > started_at: nonode@nohost > .... > > So could you fix that guys? > > Moreover, I'm looking for concrete examples I can test and learn from? > It's eaasy to start from something really working. So this will > minimize the learning curve > for new comers. An example, where to put your stuffs, how they'll be > compiled (which file to update for that) ... > > Any advices or plan for that? > > Regards > Ferret > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Erlangweb-users mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlangweb-users > |
|
From: Xingdong B. <xin...@er...> - 2008-11-05 11:03:17
|
Hi Ferrety, Thank you for pointing the error out, but it won't affect the main functionalities of Erlang Web, just if you want to use other language rather than default English, you will need to place the translation file in config/languages/en.conf, to define the translation from English to other language, you can find more info about this in the tutorial, and we will fix the error reporting for the next release. I am currently developing several components for the Erlang Web, once they are finished, they will be available to download with examples. Best regards Xingdong ----- Original Message ----- From: "ferrety ferrety" <yfe...@gm...> To: erl...@li... Sent: Tuesday, 4 November, 2008 11:07:00 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Erlangweb-users] Erlang Web examples Hi List, After quickly reading the doc and the presentation, I've downloaded version 1.1 from: http://downloads.sourceforge.net/erlangweb/erlangweb-1.1.tar.gz Everything compiled just fine and the "welcome" demo worked s expected. I've noticed that something was missing (see ERROR_REPORT below) on startup: erlangweb-1.1 $ bin/start interactive .... =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === application: eptic started_at: nonode@nohost =ERROR REPORT==== 4-Nov-2008::23:59:59 === e_lang module: error during loading file: ["config/","languages/","en.conf"], reason:enoent =PROGRESS REPORT==== 4-Nov-2008::23:59:59 === application: wpart started_at: nonode@nohost .... So could you fix that guys? Moreover, I'm looking for concrete examples I can test and learn from? It's eaasy to start from something really working. So this will minimize the learning curve for new comers. An example, where to put your stuffs, how they'll be compiled (which file to update for that) ... Any advices or plan for that? Regards Ferret ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Erlangweb-users mailing list Erl...@li... https://lists.sourceforge.net/lists/listinfo/erlangweb-users |