Search found 90 matches
- Fri Jan 28, 2011 8:53 am
- Forum: newLISP and the O.S.
- Topic: HTTP POST processing
- Replies: 6
- Views: 4405
Re: HTTP POST processing
Lutz - will you also update cgi.lsp accordingly, so it uses CONTENT_LENGTH correctly?
- Fri Jan 28, 2011 7:59 am
- Forum: newLISP and the O.S.
- Topic: HTTP POST processing
- Replies: 6
- Views: 4405
Re: HTTP POST processing
Rather than trusting client's headers, would not it be better to let newLISP calculate contect length itself? It's just I don't want to let the client decide how much data I'll need to read(). How about other CGI environment variables, Lutz? In particular, I'm thinking of HTTP_AUTHORIZATION, which b...
- Mon Jan 17, 2011 9:08 am
- Forum: newLISP newS
- Topic: YubiKey OTP verification library
- Replies: 4
- Views: 7427
- Sun Jan 16, 2011 9:50 pm
- Forum: newLISP newS
- Topic: YubiKey OTP verification library
- Replies: 4
- Views: 7427
Re: YubiKey OTP verification library
Thank you. Yes, I will be adding appropriately formatted documentation. The priority was, however, to have the code done and some documentation.
I'm thinking about the name for the library - maybe call the file yubi.lsp, as the context being used is called yubi?
Kirill
I'm thinking about the name for the library - maybe call the file yubi.lsp, as the context being used is called yubi?
Kirill
- Sat Jan 15, 2011 11:24 pm
- Forum: newLISP newS
- Topic: YubiKey OTP verification library
- Replies: 4
- Views: 7427
YubiKey OTP verification library
Folks, I have a module to verify YubiKey one time passwords in newLISP: http://km.krot.org/code/yubi-verify.lsp Version 2 of the validation protocol is supported, i.e. the passwords will be verified against multiple servers. By the way, it was delightly easy to deal with multiple server validation u...
- Thu Jan 13, 2011 12:43 pm
- Forum: newLISP and the O.S.
- Topic: HTTP POST processing
- Replies: 6
- Views: 4405
HTTP POST processing
Hi there, cgi.lsp processes POST parameters using read-line: ; get stdin POST method parameters if present ; (set 'inline (read-line)) (if inline (set 'params (get-vars inline))) (if (not params) (set 'params '())) Today I tried this when CGI ran under Mathopd and it did not work (or actually I was ...
- Wed Jan 12, 2011 8:01 am
- Forum: newLISP in the real world
- Topic: Alternative JSON -> newLISP conversion
- Replies: 11
- Views: 3887
- Mon Dec 20, 2010 10:19 pm
- Forum: newLISP newS
- Topic: Created newLISP IRC Channel - irc.freenode.net
- Replies: 5
- Views: 5008
Re: Created newLISP IRC Channel - irc.freenode.net
Is the channel disappeared?
- Sat Nov 14, 2009 8:42 pm
- Forum: Dragonfly
- Topic: How to Dragonfly on nearlyfreespeech.net ?
- Replies: 9
- Views: 8038
Re: How to Dragonfly on nearlyfreespeech.net ?
Don't forget about .htaccess...
- Sat Nov 14, 2009 1:19 am
- Forum: Dragonfly
- Topic: How to Dragonfly on nearlyfreespeech.net ?
- Replies: 9
- Views: 8038
Re: How to Dragonfly on nearlyfreespeech.net ?
You can't use newLISP http server, you have to use Apache. Place the contents of the example-site directory into your /home/public. Then go to <whatever>.nfshost.com.
- Fri Nov 13, 2009 4:33 pm
- Forum: newLISP in the real world
- Topic: Alternative JSON -> newLISP conversion
- Replies: 11
- Views: 3887
Re: Alternative JSON -> newLISP conversion
Ps: Jeff's json.lsp module is well written and usable for small to medium JSON files. Only parts of the 'tokenize' function would have to be converted from a recursive to an iterative pattern to handle bigger JSON databases. The other functions can stay recursive. I second that. It's a pleasure to ...
- Fri Nov 13, 2009 1:05 am
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
It is: http://www.newlisp.org/environment.cgi/hello-lutzLutz wrote:Although PATH_INFO is in the CGI standard it is not supported (or configured?) by even the Apache web-server (see: http://www.newlisp.org/environment.cgi on nfshost.net).
Note PATH_INFO and PATH_TRANSLATED.
- Fri Nov 13, 2009 12:49 am
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
I can wait. :) Those comments where just something I noticed when giving DF a first try. Thanks for fixing it right away.
Also note that not all systems have /bin/bash (none of mine have in fact). /bin/sh is a safe choice.
-- Kirill
Also note that not all systems have /bin/bash (none of mine have in fact). /bin/sh is a safe choice.
-- Kirill
- Thu Nov 12, 2009 8:59 pm
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
Thanks again Kirill, the example shows a legitimate use for that, so I'll go ahead and add this functionality (and I'll probably add a chapter on it to the User Guide). Did you see my edit regarding PATH_INFO btw? PATH_INFO is a standard variable defined in the CGI spec . All servers saying to supp...
- Thu Nov 12, 2009 5:08 pm
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
Regarding PHP, here's how they deal with it:
This was from the FAQ
Each option will overwrite the contents of the previous $var variable. The solution is to use PHP's "array from form element" feature. The following should be used:
Code: Select all
<select name="var[]" multiple="yes">
- Thu Nov 12, 2009 4:55 pm
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
Thanks for your comments! there's a long explanation about nested resources in our user guide. http://www.rundragonfly.com/dragonfly_routes I was not going to use any nested resources - I just wanted to add query parameters to pages, so that they could e.g. display another language or what not. That...
- Thu Nov 12, 2009 4:35 pm
- Forum: newLISP in the real world
- Topic: Alternative JSON -> newLISP conversion
- Replies: 11
- Views: 3887
Re: Alternative JSON -> newLISP conversion
I forgot one thing. Those []{},: might be inside strings as well. That's why I wanted to scan the string character by character. But then something disturbed me and I ended up with what you see :)
In any case - this was just a proposal for an alternative way to handle JSON data.
In any case - this was just a proposal for an alternative way to handle JSON data.
- Thu Nov 12, 2009 3:01 pm
- Forum: newLISP in the real world
- Topic: Alternative JSON -> newLISP conversion
- Replies: 11
- Views: 3887
Alternative JSON -> newLISP conversion
Hello! There is a good module for converting between JSON and newLISP data structures. It's clean and very elegant. But it is unfortunately not usable for converting bigger JSON structures to newLISP because it takes a lot of time and just crashes. My thought was: hey, JSON looks very much like LISP...
- Thu Nov 12, 2009 12:34 pm
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
Actually I found the answer to my second question. Dragonfly does not support multiple parameters with the same name. Look: http://www.rundragonfly.com/index.cgi?dragonfly_debug?foo=bar&bar=foo&bar=baz&bar=zoo $GET (("bar" "zoo") ("dragonfly_debug?foo" "bar")) Here only the last value "zoo" is kept....
- Thu Nov 12, 2009 12:09 pm
- Forum: Dragonfly
- Topic: Dragonfly 0.50 Released!
- Replies: 19
- Views: 16470
Re: Dragonfly 0.50 Released!
Hello and congratulations on the new release! I fetched it from the repo and set up on my server to play a bit first. Looks promising! I have a couple of questions. 1. How do I pass extra query parameters to a page? Say I want to add "?foo=bar" to the debug page. Going to http://www.rundragonfly.com...
- Tue Nov 10, 2009 9:58 pm
- Forum: newLISP in the real world
- Topic: SQLite API - access column names for a query
- Replies: 3
- Views: 1601
Re: SQLite API - access column names for a query
Lutz, col-names is now not consistent with the rest of the functions. Could you please add a wrapper as for rowid. It's only three lines.
Thank you.
Thank you.
- Tue Nov 10, 2009 11:10 am
- Forum: newLISP in the real world
- Topic: SQLite API - access column names for a query
- Replies: 3
- Views: 1601
Re: SQLite API - access column names for a query
Now that it's documented, it is a part of the API and it's safe to use it - it won't just seddenly disappear.
Thank you!
Thank you!
- Mon Nov 09, 2009 10:42 pm
- Forum: newLISP in the real world
- Topic: SQLite API - access column names for a query
- Replies: 3
- Views: 1601
SQLite API - access column names for a query
sql3:col-names and sql3:col-types are not mentioned in the documentation of the module for accessing an SQLite database. Still, especially sql3:col-names is useful in situations where one wants to know what columns are returned after doing, e.g. a select * from <table> In this particular case the c...
- Sun Nov 08, 2009 8:23 pm
- Forum: newLISP newS
- Topic: Jiminator, Newlisp (ARC4 Encryption, blogpost)
- Replies: 1
- Views: 2863
Re: Jiminator, Newlisp (ARC4 Encryption, blogpost)
I liked this one a lot:
KirillLisp beats sudoku while on the train anyway :)
- Thu Nov 05, 2009 2:15 pm
- Forum: newLISP in the real world
- Topic: Checking/reading/working with IMAP
- Replies: 6
- Views: 2896
Re: Checking/reading/working with IMAP
Building an interface to UW's c-client library and using it rather than creating an IMAP client in newLISP could be a way to go.
Just a thought.
-- Kirill
Just a thought.
-- Kirill