Dragonfly 0.51 Released!

A web framework in newLISP

Dragonfly 0.51 Released!

Postby itistoday » Mon Nov 16, 2009 8:35 pm

The latest version includes these changes:

Code: Select all
  * added redirection script when running the built-in newLISP server
  * changed recommendations to run ./newlispServer
  * added newlispServerWin.bat file provided by m35
  * support for PHP-like multi-params by appending [] to the var name
  * added documentation for $GET/$POST/$FILES and multiparams to guide
  * updated the RSS feed on the example-site for 0.50


You can grab the latest version from Google Code:

http://code.google.com/p/dragonfly-newlisp/downloads/list

http://www.rundragonfly.com has been updated too.

Thanks to m35 and Kirill for providing contributions to this release!
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.51 Released!

Postby cormullion » Tue Nov 17, 2009 8:13 pm

All went well and the general awesomeness continues! Thanks again.

I'm still thinking about the business of upgrading from older releases of the framework. When a new release comes along, such as 0.51, I want to incorporate all the new things and fixes that you guys have produced, without overwriting any of the work that I've done on the code and customizations on this side. I'd be tempted to copy over the /dragonfly-framework folder in its entirety, but that's not a good idea because the disposition of the plugins-(in)active folders are different in the example-site folder. Also, there are two plugins in my version which I don't want to be overwritten, one because you don't have it, and the other because I have a later version.

Similarly: I've modified /include/css/screen.css. Perhaps I should have renamed it first?

I wrote a script that compared the two directories (the example-site and my site) to produce a list of files that are both newer and different in the new release. (Some 'newer' files in the release are actually identical just more recently stamped).
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Dragonfly 0.51 Released!

Postby itistoday » Wed Nov 18, 2009 12:50 am

I wouldn't recommend trying to rename your own files to something else, leave them as they are.

The important stuff that you want are the 3 files mentioned in the Getting Started guide.

If you don't want to manually drag & drop files you can use a tool like 'rsync' to update your copy of the dragonfly-framework folder with the one from the zip file without overriding any your plugins. For that however I'll refer you to rsync's man page.
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.51 Released!

Postby xytroxon » Thu Nov 19, 2009 11:16 pm

Running the example-site on Windows and clicking on the code link gives an error...

We're sorry, but something went wrong.

ERR: invalid function in function set : (parse-date (lookup 'updated entry) "%Y-%m-%dT%H:%M:%SZ")
called from user defined function Dragonfly:read-atom-feed
called from user defined function Dragonfly:eval-template
called from user defined function Route.Static:run
called from user defined function Dragonfly:listener
called from user defined function run


From the newLISP manual, parse-date:
http://www.newlisp.org/downloads/newlis ... parse-date

This function is not available on Win32 platforms.

-- xytroxon
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976
xytroxon
 
Posts: 295
Joined: Tue Nov 06, 2007 3:59 pm

Re: Dragonfly 0.51 Released!

Postby itistoday » Fri Nov 20, 2009 1:40 am

Interesting, thanks for pointing that out. I think the parsing of the atom feed should be done on the client side via javascript/ajax anyway, but 'parse-date' is a pretty useful function, odd that it's not supported for windows. Any chance of that Lutz?
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Dragonfly 0.51 Released!

Postby Lutz » Fri Nov 20, 2009 1:43 pm

The underlying POSIX function strptime() is not available on MS Windows. Strangely the complement strftime() function is available and used in 'date' formatting. Both are rather complex locale sensitive functions.

Use something like the following and extend it to hours/minutes/seconds:

Code: Select all
(find {(\d\d\d\d)-(\d\d)-(\d\d)} "2009-11-20" 0)
(apply date-value (map int (list $1 $2 $3))) => 1258675200

(parse-date "2009-11-20" "%Y-%m-%d") => 1258675200
Lutz
 
Posts: 5230
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: Dragonfly 0.51 Released!

Postby xytroxon » Fri Nov 20, 2009 6:13 pm

PHP also does not support Windows for strptime and related functions:
http://php.net/manual/en/function.strptime.php

-- xytroxon
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976
xytroxon
 
Posts: 295
Joined: Tue Nov 06, 2007 3:59 pm

Re: Dragonfly 0.51 Released!

Postby hilti » Wed Nov 25, 2009 12:28 pm

Counting 98 downloads today! :-)

I've just checked the stats and there are already some other sites running Dragonfly, although I don't know what to do with women clothes ;-)

http://www.womensclothing.im/
http://unbalanced-parentheses.nfshost.com/
http://daycaster.org/

Other interesting stats:

58% use of Macintosh
29% use of Windows
10% use of Linux

96% are using resolutions wider than 1280px


Cheers
Hilti
--()o Dragonfly web framework for newLISP
http://dragonfly.uberberg.com
hilti
 
Posts: 138
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Re: Dragonfly 0.51 Released!

Postby cormullion » Thu Nov 26, 2009 5:53 pm

hilti wrote:[although I don't know what to do with women clothes ;-)


Haven't tested this code yet, but it might get you going:

Code: Select all
(cond
    ((and (= wearer-of-clothes you)
          (in-public? no))
               
                    (amb (take-them-off) (keep-them-on)))
               
    ((and (= wearer-of-clothes you)
          (in-public? yes))
         
                    (keep-them-on))
             
    ((and (!= wearer-of-clothes you)
          (permission-from? wearer)
          (in-public? no))
   
                    (take-them-off)) 
    (true
   
                    (do-nothing)))


;)

By the way - did you sort out your nldb issues - or have you gone over to sqlite?

cheers!
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest