Search found 173 matches

by joejoe
Sat Nov 14, 2009 4:25 pm
Forum: newLISP in the real world
Topic: building html list from a newLISP list and then to nL list
Replies: 14
Views: 4071

Re: building html list from a newLISP list

The system variables like $it are set as the result of some function running, so you use them 'after' rather than 'before'. "During executions of the replacement expression, the system variable $0 and the anaphoric system variable $it are set to the expression to be replaced." I like the format app...
by joejoe
Sat Nov 14, 2009 4:21 pm
Forum: newLISP in the real world
Topic: building html list from a newLISP list and then to nL list
Replies: 14
Views: 4071

Re: building html list from a newLISP list

Use format function, doing string %s replacement(s)... ; format list items using %s (twice), push to output list (dolist (item (parse input)) (push (format "<li><a href=\"http://xyz.com/%s\">%s</a></li>" item item) output -1) ) (exit) -- xytroxon !! awesome thanks xytroxon -- im really diggin the f...
by joejoe
Sat Nov 14, 2009 1:14 am
Forum: Dragonfly
Topic: How to Dragonfly on nearlyfreespeech.net ?
Replies: 9
Views: 8259

How to Dragonfly on nearlyfreespeech.net ?

Hi - Ive set up a domain w/ nearlyfreespeech.net, and ssh'd in and retreived the dragonfly code w/ the hg command, changed directory to the example-site as indicated in the Getting Started docs, and then ran: ./newlispServer When I go to mysite.com:8080 the site just hangs. If I navigate to the exam...
by joejoe
Sat Nov 14, 2009 12:26 am
Forum: newLISP in the real world
Topic: building html list from a newLISP list and then to nL list
Replies: 14
Views: 4071

building html list from a newLISP list and then to nL list

i am trying to take a list of words and transform it into an html list. the list: one two three what I am trying to construct is this: <li><a href="/one">one</a></li> <li><a href="/two">two</a></li> <li><a href="/three">three</a></li> what i am trying is this: (set 'l (read-file "./list")) (parse l)...
by joejoe
Mon Oct 12, 2009 10:14 pm
Forum: Dragonfly
Topic: Dragonfly - a web framework for newLISP
Replies: 74
Views: 56249

thanks for the user guide

the user guide really helped me get up and running in less than a minute. thanks!
by joejoe
Thu Oct 01, 2009 6:48 pm
Forum: Dragonfly
Topic: Dragonfly - a web framework for newLISP
Replies: 74
Views: 56249

Re: dragonfly web framework license

hi hilti - looks like really cool code you've released. im curious to know why you chose the mit license instead of the license that newlisp uses, the gpl? any chance you might consider the gpl for future releases? thanks in any case! - :0) i either misread or youve updated the license to gplv3 (li...
by joejoe
Thu Oct 01, 2009 6:09 pm
Forum: newLISP in the real world
Topic: randomize only randomizing once --- SOLVED, thanks!
Replies: 2
Views: 1532

Keep youre eyes on the 'seed's his sister said when they walked through the forest... Got it!! Thanks newdep!!! :D #/usr/bin/newlisp ; read the input file (set 'l (read-file "./list")) ; parse and print the inputed, randomized file (seed (date-value)) (set 'r (randomize (parse l))) (println r) (exi...
by joejoe
Thu Oct 01, 2009 5:49 pm
Forum: newLISP in the real world
Topic: randomize only randomizing once --- SOLVED, thanks!
Replies: 2
Views: 1532

randomize only randomizing once --- SOLVED, thanks!

Hi - When I run my go.lsp file repeatedly from the command line, I am getting the same output every time. Here is the go.lsp: #/usr/bin/newlisp ; read the input file (set 'l (read-file "./list")) ; parse and print the inputed, randomized file (set 'r (randomize (parse l))) (println r) (exit) $ newli...
by joejoe
Sat Sep 19, 2009 2:51 pm
Forum: newLISP in the real world
Topic: Allowing HTML into the newLISP wiki pages
Replies: 0
Views: 2086

Allowing HTML into the newLISP wiki pages

Hi - At the bottom of the Advanced Features Help page for the nL wiki http://newlisp.nfshost.com/wiki/index.cgi?page=How_To_Use_Advanced_Features it says: HTML tags The following HTML tags can be used, but without any attributes or options. To change the appearance of how these tags work, use the st...
by joejoe
Fri Sep 18, 2009 2:52 pm
Forum: newLISP in the real world
Topic: using external modules
Replies: 7
Views: 2896

Hi Joejoe check out my attempt of "auto-loading" modules. Download Dragonfly framework. It's in the file dragonfly.lsp Just a few lines of code. Cheers Hilti thanks for the help Hilti. im refraining from using bsd/mit/non-copyleft code, so i am sticking to the core modules. i appreciate the insight...
by joejoe
Wed Sep 16, 2009 6:48 pm
Forum: newLISP in the real world
Topic: parsing an xml to separate local files
Replies: 3
Views: 1449

cormullion! thanks for this help!! (dolist (el (println (lookup 'title (sxml You've got a dolist but aren't you're supplying the result of a println function rather than a list? Yes - I thought that was how I was going to get the filename to the save, but what you've suggested is beautiful. I am stu...
by joejoe
Tue Sep 15, 2009 11:41 pm
Forum: newLISP in the real world
Topic: parsing an xml to separate local files
Replies: 3
Views: 1449

parsing an xml to separate local files

Hi - I am trying to put together a few bits of code from cormullion's superb introduction here: http://www.newlisp.org/dokuwiki/doku.php?id=introduction:introduction_part_2#working_with_xml but am ending up with: ERR: value expected : (0 2 9 0) The two bits Im trying to merge are commented in the co...
by joejoe
Fri Sep 11, 2009 7:07 pm
Forum: newLISP newS
Topic: Artful Code modules
Replies: 20
Views: 10654

I'm assuming that people don't want to modify newLISP itself, but want to write some application running on top of newLISP that they want to sell, to make a living from their own programming efforts. I know that this is already done by some developers. [...] I realise that I hijacked this thread, a...
by joejoe
Fri Sep 11, 2009 5:13 pm
Forum: newLISP newS
Topic: Artful Code modules
Replies: 20
Views: 10654

Lutz: it seems that the GPL is holding back the adoption of newLISP by people. What are the benefits that outweigh this (to my mind) major disadvantage? i would say that, in the long run, Lutz has been smartest and most helpful to release newLISP under the gplv3. the gpl *is* the benefit of nL, as ...
by joejoe
Thu Sep 10, 2009 12:04 pm
Forum: newLISP in the real world
Topic: using external modules
Replies: 7
Views: 2896

xytroxon wrote:I think you are getting confused by how the load and module functions work...

From the newLISP manual:

[...]

-- xytroxon
understood. thank you xytroxon.

i appreciate you taking the time to point this out.
by joejoe
Wed Sep 09, 2009 3:15 pm
Forum: newLISP newS
Topic: Artful Code modules
Replies: 20
Views: 10654

The GPL imposes many restraints on what code may be used for. I am unconcerned about the possibility of someone "stealing" my code for a proprietary product and not releasing their changes. I am more interested in the code being, to my own mind, truly free. i understand you, though i dont discount ...
by joejoe
Wed Sep 09, 2009 1:30 pm
Forum: newLISP newS
Topic: Artful Code modules
Replies: 20
Views: 10654

It is GPL-compatible, and is more permissive. for the distributor, of course, but not end users, of the larger group which we all are a part. The MIT license hits less resistance at proprietary companies, as it makes no demands on the license of derivative code. im guessing this is a concern of you...
by joejoe
Wed Sep 09, 2009 1:12 pm
Forum: newLISP in the real world
Topic: using external modules
Replies: 7
Views: 2896

thanks cormullion! i thought that by re-installing newlisp w/ the module in place, this would let me not have to load the web.lsp module manually. am i correct about this? i even put it in the nL unpacked modules directory before i re-ran the config/make/make install. this is what i get when i try t...
by joejoe
Tue Sep 08, 2009 6:48 pm
Forum: newLISP newS
Topic: Artful Code modules
Replies: 20
Views: 10654

why use the mit license for the artfulcode nL modules?

hi -

i see the modules you are contributing are under the mit license? as you know, newLISP uses the gpl license and i am curious as to why you would not want to release these modules under the gpl? thanks!
by joejoe
Tue Sep 08, 2009 6:40 pm
Forum: newLISP in the real world
Topic: using external modules
Replies: 7
Views: 2896

using external modules

hi - im trying to use the web.lsp module: http://static.artfulcode.net/newlisp/web.lsp.html i added the file http://static.artfulcode.net/newlisp/web.lsp.src.html as web.lsp to the /usr/share/newlisp/modules directory on my debian squeeze i386 machine and went through the ./configure, make and make ...
by joejoe
Mon Sep 07, 2009 6:34 pm
Forum: Dragonfly
Topic: Dragonfly - a web framework for newLISP
Replies: 74
Views: 56249

dragonfly web framework license

hi hilti - looks like really cool code you've released.

im curious to know why you chose the mit license instead of the license that newlisp uses, the gpl? any chance you might consider the gpl for future releases?

thanks in any case! - :0)
by joejoe
Sat Aug 22, 2009 3:57 pm
Forum: newLISP in the real world
Topic: Wiki software: Saving pages and running setup utility
Replies: 8
Views: 2835

Thanks for the replies! cormullion: It was permissions. I chmodded 777 setup.lsp and it saves fine. tom: Im running it w/ apache and the ownerships/permissions created through the wiki are different, as you mentioned. Im now guessing that running the wiki w/ newlisp as the server would be faster and...
by joejoe
Fri Aug 21, 2009 7:49 pm
Forum: newLISP in the real world
Topic: Wiki software: Saving pages and running setup utility
Replies: 8
Views: 2835

Wiki software: Saving pages and running setup utility

Hi - I chmodded 777 the pages and backup folders in the newlisp wiki software but any changes I make with the Edit button at page bottom are not having effect. If I manually edit the pages from the command line, the page shows the changes. I havent changed anything other than chmodding these folders...