Search found 19 matches

by Jeremy Reimer
Thu Jan 27, 2011 11:22 pm
Forum: So, what can you actually DO with newLISP?
Topic: Monarch: A blogging/forum/content management system
Replies: 1
Views: 4743

Re: Monarch: A blogging/forum/content management system

Hey cool, I was about to come here and post that I had made this, but someone did it for me! I'm testing it as a replacement for my old Drupal/PHPBB setup. Obviously there are far fewer features (no search for example) but this is just a 0.2 product.. I've only put in 4-6 weeks of part-time work on ...
by Jeremy Reimer
Tue Nov 16, 2010 11:15 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Sorry, I had left this issue for a long time while I was working on other projects, but now I'm revisiting it and I'm still having the problem. (In the meantime I did learn how to use ref to extract $POST data, heh) I've filed an issue on github about it: https://github.com/taoeffect/dragonfly-newli...
by Jeremy Reimer
Tue Nov 16, 2010 10:27 pm
Forum: Dragonfly
Topic: How do I retain a list in memory in Dragonfly between pages?
Replies: 5
Views: 5937

Re: How do I retain a list in memory in Dragonfly between pages?

Just a quick revisit to this topic: I put the giant list in a SQLite database for the project I was working on, and it works great. SQLite is just as awesome as everyone says it is, and it works really really well with newLISP. Also, it has a feature where it can store the database in-memory if real...
by Jeremy Reimer
Wed Nov 10, 2010 10:26 pm
Forum: Dragonfly
Topic: Problems deleting cookie with newLISP and Dragonfly
Replies: 3
Views: 5400

Re: Problems deleting cookie with newLISP and Dragonfly

I figured it out! I had to Google some PHP solutions to get the answer. Apparently, you have to specify a few things: 1. The cookie should be set originally with the right domain, so (Response:cookie "monarch" username (date-value 2011 12 12) "/" "jeremyreimer.com") ; open a cookie to say we are sig...
by Jeremy Reimer
Tue Nov 09, 2010 11:28 pm
Forum: Dragonfly
Topic: Problems deleting cookie with newLISP and Dragonfly
Replies: 3
Views: 5400

Problems deleting cookie with newLISP and Dragonfly

Hi again, I'm building a simple web application in newlisp using the Dragonfly framework, which I really like using. However I can't seem to delete cookies using the (Response:cookie) command. I can set the cookie easily using this code: (Response:cookie "monarch" username (date-value 2011 12 12) "/...
by Jeremy Reimer
Thu Jul 15, 2010 10:59 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Thanks for your quick reply. I'm running under Apache on Linux. I took the size attribute out but the same issue still exists. I'll fiddle around with it a bit and try it on another Linux server I have and see if I can get it to work.
by Jeremy Reimer
Thu Jul 15, 2010 10:19 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Hey, that's great! I'm a bit unsure on what to do with ($FILES), however. When I try to see what's in it with (println ($FILES)), it just comes back "()". (length ($FILES)) returns 0. There's lots of data in ($POST) but nothing in ($FILES). Am I doing something wrong? I'm using the same upload HTML ...
by Jeremy Reimer
Thu Jul 15, 2010 6:27 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Okay, I am having some problems parsing the $POST data. Basically, I can extract the raw text inside the [text] brackets using this code: (setq posted (rest (rest (rest (rest (rest (rest (rest (chop (string (rest (last ($POST)))) 8))))))))) But the main problem is that as soon as it gets converted t...
by Jeremy Reimer
Tue Jul 13, 2010 8:12 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Something must be draining the stdin pipe, because (read-buffer (device) buffer 1024) returns nil. :( I suppose I could parse the data in $POST, but it looks like this: (("submit" "Upload") ("uploaded_data" [text] ----binary data here--- [/text])) Which might work for saving a file if I could parse ...
by Jeremy Reimer
Mon Jul 12, 2010 8:32 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Re: Problems with upload.cgi on newLISP 10.2.8

Hmm.. I tried using your exact scripts, with the same permissions, and got the same problem. I'm running under Dragonfly, and both files live under the /views/ sub-directory, could this be causing the problem? EDIT: I checked by changing the code to: (set 'infile (open "./upload-file" "write")) (pri...
by Jeremy Reimer
Mon Jul 12, 2010 6:25 pm
Forum: newLISP in the real world
Topic: Problems with upload.cgi on newLISP 10.2.8
Replies: 15
Views: 10770

Problems with upload.cgi on newLISP 10.2.8

Hi folks, I'm trying to get the upload.cgi script to work from this thread: http://newlispfanclub.alh.net/forum/viewtopic.php?f=2&t=2585 I'm running Apache 2 on Ubuntu Linux. I've used the version of the script for newLISP 10 but no matter what I do I get the error "wrong upload format" when the cod...
by Jeremy Reimer
Thu Jun 24, 2010 8:57 pm
Forum: Dragonfly
Topic: How do I retain a list in memory in Dragonfly between pages?
Replies: 5
Views: 5937

Re: How do I retain a list in memory in Dragonfly between pages?

Well, that isn't really possible in this case, as the text the user would most want to see comes from the list itself. Also, without using AJAX it isn't possible to delay loading of any part of the page until the list has loaded. Doesn't Dragonfly itself have to keep all of its context in memory whe...
by Jeremy Reimer
Thu Jun 24, 2010 5:37 pm
Forum: Dragonfly
Topic: How do I retain a list in memory in Dragonfly between pages?
Replies: 5
Views: 5937

How do I retain a list in memory in Dragonfly between pages?

Hi folks, Say I have a large list (say, 40,000 records) that takes about five seconds to load with the load("40klist.lsp") command. I'd like to keep this list in memory when the user navigates to another web page on the same site, so that each page that needs to reference the list won't have the sam...
by Jeremy Reimer
Thu May 27, 2010 5:18 pm
Forum: newLISP in the real world
Topic: Strange problem with contexts and xml-parse
Replies: 2
Views: 1374

Re: Strange problem with contexts and xml-parse

Thanks, I upgraded to 10.2.8 and the problem went away. Sweet!
by Jeremy Reimer
Wed May 26, 2010 5:34 pm
Forum: newLISP in the real world
Topic: Strange problem with contexts and xml-parse
Replies: 2
Views: 1374

Strange problem with contexts and xml-parse

Hi all! Thanks for your incredible help so far. I've come across a puzzler: I am using xml-parse to extract data from an XML feed and into a newLISP list. This is the function I'm using: (define (parse-xml-data str) (xml-type-tags nil nil nil nil) (let ((xml (xml-parse str 15 'Yamato))) (or xml (thr...
by Jeremy Reimer
Wed May 19, 2010 8:15 pm
Forum: newLISP in the real world
Topic: What is the best way to get the URL generated by a <FORM>?
Replies: 3
Views: 1815

Re: What is the best way to get the URL generated by a <FORM>?

Thanks, it was ($GET) that I was looking for. I wanted to make a multi-select box and return all elements the user checked. You were exactly right, I needed to add "[]" to each "input" element, so that I could get back the whole thing as a list. So now I have (define (multi-select-box inputlist) (le...
by Jeremy Reimer
Wed May 19, 2010 5:39 pm
Forum: newLISP in the real world
Topic: What is the best way to get the URL generated by a <FORM>?
Replies: 3
Views: 1815

What is the best way to get the URL generated by a <FORM>?

Hi folks, I'm trying to build a field selector in newLISP. Right now I have the code: (define (multi-select-box inputlist) (let (a "") (extend a "<form action='multi-select-submit.cgi'") (dolist (x inputlist) (extend a "<input type='checkbox' name='input' value='" (string x) "'>" (string x) "<br>"))...
by Jeremy Reimer
Thu May 13, 2010 8:11 pm
Forum: newLISP in the real world
Topic: How can I list all field names in a parsed S-XML list?
Replies: 5
Views: 1931

Re: How can I list all field names in a parsed S-XML list?

This totally worked! Thanks so much for your quick reply!
by Jeremy Reimer
Thu May 13, 2010 5:47 pm
Forum: newLISP in the real world
Topic: How can I list all field names in a parsed S-XML list?
Replies: 5
Views: 1931

How can I list all field names in a parsed S-XML list?

Hello! I'm just getting started with newLISP, and I really like it a lot. Forgive the newbie questions. I have a test XML file called dingy.xml that looks like this: <document> <element name="First" date="4/23/2010"> <data>This is the first element</data> </element> <element name="Second" date="4/23...