Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - joejoe

#1
Thank you for porting the forum!

This is fantastic, and your work greatly appreciated itistoday!
#2
Thanks itistoday!



This would be a great contribution to nL!!
#3
newLISP in the real world / Re: ×tamp formatting
October 17, 2020, 12:51:50 AM
Thank you Kirill,


&timestamp=

made &timestamp=

Thanks for the magic direction!
#4
newLISP in the real world / ×tamp formatting
October 16, 2020, 10:33:16 PM
Hi,



When I do this from the nL command line interpreter:


> (println "&timestamp")
&timestamp
"&timestamp"


All good as expected.



When I am running it on a web server cgi script looking at it from my browser, I end up with this result:


×tamp

How do I preserve &timestamp if I am making a string, say to include in a url?



When the result is ×tamp instead of &timestamp in the url, things break.



It seems like when seen "&times", something is changing that to show × instead?



I have this at top of the cgi script:


(print "Content-Type: text/htmlrnrn")

Thanks very much!
#5
newLISP newS / Re: Forum is back again
September 26, 2020, 11:47:44 AM
Super big thanks to the forum admin!



The forum really propels the adoption of newLISP.



Would there be chance to re-add the Forum link to the nL home page?



It is such a resource, it seems more than worthy. Thanks again admin! :D
#6
Ok thanks Lutz and TedWalther!



I got json-parse to work just great w Lutz's suggestion to use exec and curl:


(json-parse (join (exec "curl 'https://www.mysite.com/my.json'")))

Much appreciated to both! :o)
#7
newLISP in the real world / get-url works on some sites
September 10, 2020, 11:12:54 PM
Hi,



I love get-url and what it makes available for coding!



It seems to work on some sites and others not so much.



I have never had any issue before with using get-url for http calls.



For example, on both nearlyfreespeech.net and my laptop, it hangs on some sites.



(get-url "http://newlisp.org">http://newlisp.org") -- works!

(get-url "http://nearlyfreespeech.net">http://nearlyfreespeech.net") -- doesnt't work!

(get-url "http://amazon.com">http://amazon.com") -- doesn't work!

(get-url "http://google.com">http://google.com") -- works!



When it doesn't work, it just hangs.



I am guessing this is a server blocking issue for get-url requests?



On my nearlyfreespeech server, the logs say:

[Fri Sep 11 05:52:46.179236 2020] [cgi:warn] [pid 6060:tid 34480497408] [client 174.16.51.59:0] AH01220: Timeout waiting for output from CGI script /fs6b/abc/public/go.cgi
[Fri Sep 11 05:52:46.179516 2020] [core:error] [pid 6060:tid 34480497408] (70007)The timeout specified has expired: [client 174.16.51.59:0] AH00574: ap_content_length_filter: apr_bucket_read() failed


newLISP v.10.7.1 32-bit on Linux IPv4/6 UTF-8 libffi

newLISP v.10.7.5 64-bit on BSD IPv4/6 UTF-8



Thank you much for any quick tips on this! :D
#8
newLISP in the real world / Re: using ref data
September 10, 2020, 10:30:50 PM
Thanks very much for all the exemplars!



ref and map seem to carry things out quite well!



Much appreciated!
#9
newLISP in the real world / using ref data
August 30, 2020, 03:07:07 AM
The ref and ref-all functions bring back an address or list of addresses.



As cormullion wrote in the nL wikibook:


(ref-all "Brian Eno" itunes-data)
;-> ((0 2 14 528 6 1) (0 2 16 3186 6 1) (0 2 16 3226 6 1))


What would be the best way to get that data instead of the numerical addresses?



Essentially, once I find the address is (0 2 14 528 6 1), how best would I get what it actually is, not the address?



So how best to get (0 2 16 3186 6 1) data?



Thank you!
#10
Thank you Lutz!



I replaced the old with the new binary



http://www.newlisp.org/cgi-bin/newlisp">http://www.newlisp.org/cgi-bin/newlisp



I also am using your


#!/home/public/cgi-bin/newlisp

Everything worked immediately, and will keep note of your recompile without readline in mind too!



Much appreciated, Lutz!
#11
Thank you Lutz!



I ran these and got pretty much there if it helps anyone. Will figure the rest.


mkdir cgi-bin
cd cgi-bin
wget http://www.newlisp.org/cgi-bin/newlisp
chmod 755 newlisp

./newlisp
Shared object "libreadline.so.7" not found, required by "newlisp"

wget ftp://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz
tar zxvf readline-8.0.tar.gz
cd readline-8.0
./configure
make

make install
install: /usr/local/include/readline/readline.h: Read-only file system
*** Error code 71


Thanks for allow so much support for all distros and hosting options!
#12
Any known hosts out of box nL friendly?



Thanks and for all!
#13
Think they may have lost support?



$ newlisp

-bash: newlisp: command not found



Just submitted a request w NFS to know if it is still supported.



Found that as its been dropped from the bs d port, so no go, only compile from source.



https://members.nearlyfreespeech.net/forums/viewtopic.php?t=10566&highlight=newlisp">https://members.nearlyfreespeech.net/fo ... ht=newlisp">https://members.nearlyfreespeech.net/forums/viewtopic.php?t=10566&highlight=newlisp


QuoteNewlisp has been dropped from the FreeeBSD ports collection due to lack of support from the developer, so we are unable to offer it preinstalled.



We contacted the developer about this to see if we could facilitate a solution, but we were not successful. The developer recommends that anyone who wants to use newlisp compile it from source.
#14
No doubt,



I have tried a few -



#/usr/local/env/bin newlisp

!#/usr/local/bin/env newlisp

#!/usr/local/bin/env newlisp

#!/usr/bin/env newlisp

#!/usr/local/bin/newlisp



If whereis doesnt work, how best to find the right path?


whereis newlisp
newlisp:
#15
I am using


#/usr/local/env/bin newlisp
(println "hihi")
(exit)


saved as an index.cgi w 755 chmod.



w only a 500 error on nearlyfreespeech.



When I type whereis newlisp, it shows:


$ whereis newlisp
newlisp:


I have done this before easily.



Now get:


$ newlisp
-bash: newlisp: command not found


Any tip on how to execute an index.cgi nL script w NFS?



Or if an easier place to up and run nL, please direct. Thought NFS was pretty straight.



Thank you!