Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Announce: derail - A simple web framework
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Torbjorn Tornkvist  
View profile  
 More options May 21 2008, 3:54 pm
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Wed, 21 May 2008 12:54:57 -0700 (PDT)
Local: Wed, May 21 2008 3:54 pm
Subject: Announce: derail - A simple web framework
Hi foks,

I just published a first working version of a little web framework of
mine, named: derail.

It is very basic so far but it can already produce a simple
web app that we will put in production at work. It is a
Visitor registration web app., completely generated from
~10 lines of spec (see the docs).

I haven't published a release yet, so one need to
run the generator from the erlang shell at the moment.
It will generate an Erlware ready directory structure with
lots of code, etc, ready to be built by sinan. It is probably
as bug-ridden as a stray dog is full of fleas....

Cheers, Tobbe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 21 2008, 5:18 pm
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Wed, 21 May 2008 15:18:58 -0600
Local: Wed, May 21 2008 5:18 pm
Subject: Re: Announce: derail - A simple web framework
I look forward to seeing it, might I suggest a different name though.
If there is one thing I have seen in my time it is that erlang
engenders a lot of animosity from adherents to other programming
philosophies.  It is quite strange, but I have seen it time and time
again. I would suggest, to avoid being the butt of a bunch of nasty
catty blog entries by rails enthusiasts that you call the project
something bearing no relation to any web framework out there.  After
all, I fully expect yours to be revolutionary and not a clone or
reaction to anything currently on the scene!

My two cents,
Martin

On Wed, May 21, 2008 at 1:54 PM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Peticolas  
View profile  
 More options May 21 2008, 10:58 pm
From: Dave Peticolas <dave.petico...@gmail.com>
Date: Wed, 21 May 2008 19:58:32 -0700
Local: Wed, May 21 2008 10:58 pm
Subject: Re: Announce: derail - A simple web framework
Cool! I'm going to check this out this weekend.

dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 22 2008, 5:14 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Thu, 22 May 2008 02:14:53 -0700 (PDT)
Local: Thurs, May 22 2008 5:14 am
Subject: Re: Announce: derail - A simple web framework

Gee...for once I thought I had come up with a good name...  :-)

Usually I have no fantasy as 'eldap', 'eradius', 'esmb', 'ex11', etc
are good (bad?) examples of. So if you can come up with a better
name then I will happily switch to it.

Cheers, Tobbe

On May 21, 11:18 pm, "Martin Logan" <martinjlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 22 2008, 5:15 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Thu, 22 May 2008 02:15:19 -0700 (PDT)
Local: Thurs, May 22 2008 5:15 am
Subject: Re: Announce: derail - A simple web framework

Nice, I suggest you try to get the visitor example to work first.

1. Put the spec. from the docs into a file, e.g: visitor.derail
2. From an erlang shell, run: derail:gen("...path/visitor.derail",
"/tmp/visitor").
3. cd /tmp/visitor;sinan build;sinan release

Now the easiest way forward would be to install it as a release.
I use my little mk_release script to produce a proper directory
(attached).

4. cd /tmp/visitor; ..../mk_release    (will create a visitor-0.1.0
dir)

Then install it as:

5. faxien install-release visitor-0.1.0

Then initiate the DB:

6. /usr/local/erlware/bin/visitor -visitor init_db "'true'"

Finally, start the thing:

7. /usr/local/erlware/bin/visitor

Point your prowser to:  http://localhost:9899/

DB and logs ends up under the 'root_dir' which per
default is /tmp/visitor. See the visitor.app file.
This can be overridden on the command line as:

 -visitor root_dir "/tmp/visitor_other_dir"

Cheers, Tobbe
(Ps. Lots of work remains to be done, I have ideas on
adding easy-to-use session state handling, authentication,
query support via the dsl_engine, etc....)

On May 22, 4:58 am, Dave Peticolas <dave.petico...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anders Nygren  
View profile  
 More options May 22 2008, 8:10 am
From: "Anders Nygren" <anders.nyg...@gmail.com>
Date: Thu, 22 May 2008 07:10:50 -0500
Local: Thurs, May 22 2008 8:10 am
Subject: Re: Announce: derail - A simple web framework
On Thu, May 22, 2008 at 4:15 AM, Torbjorn Tornkvist

<torbjorn.tornkv...@gmail.com> wrote:

> Nice, I suggest you try to get the visitor example to work first.

> 1. Put the spec. from the docs into a file, e.g: visitor.derail
> 2. From an erlang shell, run: derail:gen("...path/visitor.derail",
> "/tmp/visitor").
> 3. cd /tmp/visitor;sinan build;sinan release

Build fails with

[build] /tmp/derailed/tmp/derailed/lib/visitor/src/visitor_control.erl:167:error:he ad
mismatch
/tmp/derailed/tmp/derailed/lib/visitor/src/visitor_control.erl:143:error:fu nction
to_visitor/2 undefined

Last clause of to_visitor ends with ; instead of .

> Now the easiest way forward would be to install it as a release.
> I use my little mk_release script to produce a proper directory
> (attached).

Actually mk_release was not attached

> 4. cd /tmp/visitor; ..../mk_release    (will create a visitor-0.1.0
> dir)

> Then install it as:

> 5. faxien install-release visitor-0.1.0

> Then initiate the DB:

> 6. /usr/local/erlware/bin/visitor -visitor init_db "'true'"

bin/visitor is not included in the release

adding

dist : {
     include_dirs : ["bin"]

}

in _build.cfg
repeate steps 4-5

retry step 6
no visible result

> Finally, start the thing:

> 7. /usr/local/erlware/bin/visitor

generates erl_crash.dump

I think the sys.config is missing, at least I can not find it.

giving up

/Anders


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 22 2008, 8:55 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Thu, 22 May 2008 05:55:16 -0700 (PDT)
Local: Thurs, May 22 2008 8:55 am
Subject: Re: Announce: derail - A simple web framework
Ok, I have fixed some bugs and published 0.1.1:
Instruction:

mkdir /home/tobbe/xxx
erl
derail:gen("/home/tobbe/git/visitor/visitor.derail", "/home/tobbe/
xxx").
%exit erl
cd  /home/tobbe/xxx
sinan build; sinan release
%run the mk_release script (included below)
sudo /usr/local/erlware/bin/faxien install-release visitor-0.1.0
mkdir /home/tobbe/xxx_dir
/usr/local/erlware/bin/visitor -visitor root_dir \"/home/tobbe/xxx_dir
\" -visitor init_db "'true'"
ls /home/tobbe/xxx_dir/db     % should see files here!
/usr/local/erlware/bin/visitor -visitor root_dir \"/home/tobbe/xxx_dir
\" -visitor init_db "'false'"

Point browser to localhost:9899

--Tobbe
(Ps. mk_release script follows:

#!/bin/sh
#
# Prepare an Erlware  release directory
#

NAME=`grep name _build.cfg | awk -F: '{print $2}' | sed -e 's/"//g' -e
's/ //g'`
VSN=`grep vsn _build.cfg | awk -F: '{print $2}' | sed -e 's/"//g' -e
's/ //g'`
REL="${NAME}-${VSN}"

mkdir ${REL}
cp -Pr bin ${REL}
cp -Pr cmds ${REL}
cp -Pr _build/development/releases ${REL}
mkdir ${REL}/lib
cp -Pr _build/development/apps/${REL} ${REL}/lib

CMD=`which faxien`

echo
echo "Now run: sudo ${CMD} install-release ${REL}"
echo
echo "To publish: sudo ${CMD} publish ${REL}/lib/${REL}"
echo "            sudo ${CMD} publish ${REL}"
echo

On May 22, 2:10 pm, "Anders Nygren" <anders.nyg...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Parish  
View profile  
 More options May 22 2008, 9:31 am
From: Scott Parish <s...@srparish.net>
Date: Thu, 22 May 2008 06:31:48 -0700
Local: Thurs, May 22 2008 9:31 am
Subject: Re: Announce: derail - A simple web framework
I loved the name, but i can see where it might not be great  
politically. <g>

sRp

On May 22, 2008, at 2:14 AM, Torbjorn Tornkvist wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 22 2008, 10:41 am
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Thu, 22 May 2008 09:41:54 -0500
Local: Thurs, May 22 2008 10:41 am
Subject: Re: Announce: derail - A simple web framework
Sure, I can come up with some names.  Can you give me some idea as to
the "personality" of the project?  What are the design principles it
rests on?  I will use that to help me come up with a name.

On Thu, May 22, 2008 at 4:14 AM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 22 2008, 5:34 pm
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Thu, 22 May 2008 14:34:49 -0700 (PDT)
Local: Thurs, May 22 2008 5:34 pm
Subject: Re: Announce: derail - A simple web framework
Hm...tough questions.
I guess the whole idea is to:

1. Based on an initial DB table design. Quickly produce
a web- and DB-interface to be able to manipulate those tables.

2. Make it easy to hook into the generated code base to
extend and replace the functionality as needed.

The generated code assumes the use of Mnesia and preferably
(but not necessarily) jQuery. The code is organized in a MVC fashion,
and with Sgte as the template engine of choice. The code is structured
according to the OTP principles and is tailored for the Erlware
framework.

Not sure if that was a good answer... :-)

--Tobbe

On May 22, 4:41 pm, "Martin Logan" <martinjlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 22 2008, 5:55 pm
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Thu, 22 May 2008 16:55:34 -0500
Local: Thurs, May 22 2008 5:55 pm
Subject: Re: Announce: derail - A simple web framework
That is good, I will iterate on this

On Thu, May 22, 2008 at 4:34 PM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 22 2008, 6:23 pm
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Thu, 22 May 2008 17:23:19 -0500
Local: Thurs, May 22 2008 6:23 pm
Subject: Re: Announce: derail - A simple web framework
Ok, this just popped into my head

Mannequin because it is "model" driven.

On Thu, May 22, 2008 at 4:34 PM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roberto Saccon  
View profile  
 More options May 23 2008, 2:35 pm
From: Roberto Saccon <rsac...@gmail.com>
Date: Fri, 23 May 2008 11:35:07 -0700 (PDT)
Local: Fri, May 23 2008 2:35 pm
Subject: Re: Announce: derail - A simple web framework
about the name, there is already a different project with nearly
identical name:

http://code.google.com/p/d-rails/

where the 'd' is for dojo replacing prototype

(and I don't have a better name suggestion, only an even worse one:
erails)

regards
Roberto

On May 22, 7:23 pm, "Martin Logan" <martinjlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 24 2008, 12:48 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Fri, 23 May 2008 21:48:41 -0700 (PDT)
Local: Sat, May 24 2008 12:48 am
Subject: Re: Announce: derail - A simple web framework

Thanx, I'll consider it. I don't like long names though
so perhaps you can come up with a shorter alternative?

Cheers, Tobbe

On May 23, 12:23 am, "Martin Logan" <martinjlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 24 2008, 1:20 am
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Sat, 24 May 2008 00:20:19 -0500
Local: Sat, May 24 2008 1:20 am
Subject: Re: Announce: derail - A simple web framework
How about "Dart" after Joseph Dart the inventor of the grain elevator.
 Grain elevators are all about taking raw grain (data) storing it, and
efficiently presenting to the mechanisms that will render it useable
for a consumer.  It is kind of like a grain mvc framework ;-)

from wiki pedia:

Grain elevators are buildings or complexes of buildings for storage
and shipment of grain. They were invented in 1842 in Buffalo, New York
by Joseph Dart, who first developed a steam-powered mechanism, called
a marine leg, for scooping grain out of the hulls of ships directly
into storage silos. Older grain elevators and bins often were
constructed of framed or cribbed wood and were prone to fire. Grain
elevator bins, tanks and silos are now usually constructed of steel or
reinforced concrete. Bucket elevators are used to lift grain to a
distributor or consignor where it flows by gravity through spouts or
conveyors and into one of a number of bins, silos or tanks in a
facility. When desired, the elevator's silos, bins and tanks are then
emptied by gravity flow, sweep augers and conveyors. As grain is
emptied from the elevator's bins, tanks and silos it is conveyed,
blended and weighted into trucks, railroad cars, or barges and shipped
to end users of grains (mills, ethanol plants, etc.)

On Fri, May 23, 2008 at 11:48 PM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options May 24 2008, 1:49 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Fri, 23 May 2008 22:49:30 -0700 (PDT)
Local: Sat, May 24 2008 1:49 am
Subject: Re: Announce: derail - A simple web framework
Excellent!
I will rename derail and publish it with the new name: dart

Thanx a lot!
--Tobbe

On May 24, 7:20 am, "Martin Logan" <martinjlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
walrus  
View profile  
 More options May 24 2008, 9:32 am
From: walrus <aleksey.kish...@gmail.com>
Date: Sat, 24 May 2008 06:32:53 -0700 (PDT)
Local: Sat, May 24 2008 9:32 am
Subject: Re: Announce: derail - A simple web framework
Sounds like Darth Vader from startwars

On 24 май, 07:49, Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Logan  
View profile  
 More options May 24 2008, 10:46 am
From: "Martin Logan" <martinjlo...@gmail.com>
Date: Sat, 24 May 2008 09:46:21 -0500
Local: Sat, May 24 2008 10:46 am
Subject: Re: Announce: derail - A simple web framework
Glad to be of help :)

On Sat, May 24, 2008 at 12:49 AM, Torbjorn Tornkvist


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Peticolas  
View profile  
 More options Jun 21 2008, 12:46 pm
From: Dave Peticolas <dave.petico...@gmail.com>
Date: Sat, 21 Jun 2008 09:46:39 -0700
Local: Sat, Jun 21 2008 12:46 pm
Subject: Re: Announce: derail - A simple web framework
Hey Tobbe, I'm just now trying to check this out,
finally got some free time. Where can I find the
source for the visitor.derail (now visitor.dart?)
example?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options Jun 23 2008, 4:21 am
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Mon, 23 Jun 2008 01:21:36 -0700 (PDT)
Local: Mon, Jun 23 2008 4:21 am
Subject: Re: Announce: derail - A simple web framework
Hi,

Here is the content of my visitor.dart file:

{appname, visitor}.
{appdesc, "A visitor registration tool."}. % optional
{vsn, "0.1.0"}.                            % optional
{cbmod, visitor}.                          % optional
{tabdef,
 {visitor, "Table that store information about visitors.",
  [{key, int, [key, auto], "Auto generated key"},
   {company, string, [index], "Company name"},
   {fname, string, [index], "First name"},
   {lname, string, [index], "Last name"},
   {arrival, gsec, [auto], "Arrival time"},
   {departure, gsec, [optional], "Departure time"},
   {ref, string, [{short, "Contact"}], "Contact person or other
reference."}
  ]}

}.

I'm in the progress of releasing 0.2.0 of dart where I have reworked
the
internals of dart to make use of 'ewgi' . There will also be a nice
bash
script to make it easy to generate the visitor example.

Cheers, Tobbe

On Jun 21, 6:46 pm, Dave Peticolas <dave.petico...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torbjorn Tornkvist  
View profile  
 More options Jun 27 2008, 3:42 pm
From: Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
Date: Fri, 27 Jun 2008 12:42:06 -0700 (PDT)
Local: Fri, Jun 27 2008 3:42 pm
Subject: Re: Announce: derail - A simple web framework
Hi,

dart 0.2.0 is released and I'm off on vacation...

--Tobbe

On Jun 23, 10:21 am, Torbjorn Tornkvist <torbjorn.tornkv...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Peticolas  
View profile  
 More options Aug 8 2008, 10:20 pm
From: Dave Peticolas <dave.petico...@gmail.com>
Date: Fri, 08 Aug 2008 19:20:04 -0700
Local: Fri, Aug 8 2008 10:20 pm
Subject: Re: Announce: derail - A simple web framework
Hey Tobbe, could you publish dart for 5.6.3?

thanks,
dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »