Search found 171 matches

by joejoe
Sat Oct 17, 2020 7:51 am
Forum: newLISP in the real world
Topic: ×tamp formatting
Replies: 2
Views: 137

Re: ×tamp formatting

Thank you Kirill,

Code: Select all

&timestamp=
made

Code: Select all

&timestamp=
Thanks for the magic direction!
by joejoe
Sat Oct 17, 2020 5:33 am
Forum: newLISP in the real world
Topic: ×tamp formatting
Replies: 2
Views: 137

×tamp formatting

Hi, When I do this from the nL command line interpreter: > (println "×tamp") ×tamp "×tamp" 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 ×tamp if I am making a string, say to...
by joejoe
Sat Sep 26, 2020 6:47 pm
Forum: newLISP newS
Topic: Forum is back again
Replies: 2
Views: 1328

Re: Forum is back again

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
by joejoe
Sun Sep 13, 2020 9:38 pm
Forum: newLISP in the real world
Topic: get-url works on some sites
Replies: 4
Views: 540

Re: get-url works on some sites

Ok thanks Lutz and TedWalther!

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

Code: Select all

(json-parse (join (exec "curl 'https://www.mysite.com/my.json'")))
Much appreciated to both! :o)
by joejoe
Fri Sep 11, 2020 6:12 am
Forum: newLISP in the real world
Topic: get-url works on some sites
Replies: 4
Views: 540

get-url works on some sites

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") -- wo...
by joejoe
Fri Sep 11, 2020 5:30 am
Forum: newLISP in the real world
Topic: using ref data
Replies: 5
Views: 371

Re: using ref data

Thanks very much for all the exemplars!

ref and map seem to carry things out quite well!

Much appreciated!
by joejoe
Sun Aug 30, 2020 10:07 am
Forum: newLISP in the real world
Topic: using ref data
Replies: 5
Views: 371

using ref data

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, ...
by joejoe
Thu Aug 27, 2020 4:18 am
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

Thank you Lutz!

I replaced the old with the new binary

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

I also am using your

Code: Select all

#!/home/public/cgi-bin/newlisp
Everything worked immediately, and will keep note of your recompile without readline in mind too!

Much appreciated, Lutz!
by joejoe
Wed Aug 26, 2020 4:22 am
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

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/readl...
by joejoe
Tue Aug 25, 2020 2:32 pm
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

Any known hosts out of box nL friendly?

Thanks and for all!
by joejoe
Tue Aug 25, 2020 2:22 pm
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

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&high...
by joejoe
Tue Aug 25, 2020 2:03 pm
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

Re: running a nL on nearlyfreespeech

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?

Code: Select all

whereis newlisp
newlisp:
by joejoe
Tue Aug 25, 2020 10:06 am
Forum: newLISP in the real world
Topic: running a nL on nearlyfreespeech
Replies: 8
Views: 455

running a nL on nearlyfreespeech

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 ...
by joejoe
Mon Oct 28, 2019 11:33 am
Forum: newLISP in the real world
Topic: nL cron script
Replies: 6
Views: 1096

Re: nL cron script

Working!

Moving the txt file and script to the home directory made cron all go!

You always share the best secrets ralph, thanks very much again for this!
by joejoe
Mon Oct 28, 2019 3:06 am
Forum: newLISP in the real world
Topic: nL cron script
Replies: 6
Views: 1096

Re: nL cron script

ralph,

thanks for the help!

my nL script file has this already at top:

Code: Select all

#!/usr/bin/env newlisp
I can run it from the command line fine and it does it all.

I am almost ready to leave a nL process hanging just to make it done.?
by joejoe
Sun Oct 27, 2019 11:38 pm
Forum: newLISP in the real world
Topic: nL cron script
Replies: 6
Views: 1096

Re: nL cron script

Hi and thanks ralph,

I had tried that as well but it still doesn't append the file.

Any way to check for why it might not be working? Thanks!
by joejoe
Sat Oct 26, 2019 7:59 am
Forum: newLISP in the real world
Topic: newLISP at the University of Utah
Replies: 2
Views: 914

Re: newLISP at the University of Utah

Thanks for link!
by joejoe
Sat Oct 26, 2019 7:56 am
Forum: newLISP in the real world
Topic: nL cron script
Replies: 6
Views: 1096

nL cron script

Hi, I have a script I am trying to run from cron on Debian/Ubuntu. * * * * * joe /home/joe/winny/winny.lsp The permissions of winny.lsp are 755. Syslog looks like it is executing: Oct 26 01:49:01 jsfccfow CRON[6574]: (joe) CMD (joe /home/joe/winny/winny.lsp) The winny.lsp script contains: (append-fi...
by joejoe
Sun Oct 13, 2019 5:35 am
Forum: newLISP in the real world
Topic: translating big numbers
Replies: 2
Views: 752

Re: translating big numbers

Ok super, thanks Ralph! format always seals the deal. I see it now. Out of curiousity, where are all the numbers coming from after the 0's in the following? > (format "%0.100f" -2.000000000000049e-07) "-0.00000020000000000000488785884867910108697586224479891825467348098754882812500000000000000000000...
by joejoe
Sun Oct 13, 2019 1:22 am
Forum: newLISP in the real world
Topic: translating big numbers
Replies: 2
Views: 752

translating big numbers

Hi, I often get this sort of number: -2.000000000000049e-07 I would like number to just display itself, without the "e-" exponent thing. I don't mind zeros and I have a big screen and it would love to see the real number. Would there be an easy way to convert the e number back into normal digits? Th...
by joejoe
Fri Oct 11, 2019 11:46 pm
Forum: newLISP in the real world
Topic: values into mul
Replies: 2
Views: 754

Re: values into mul

rickyboy,

You're the man, thanks big!

I hadn't gotten so far as the read-expr, much appreciated! =)
by joejoe
Fri Oct 11, 2019 11:08 pm
Forum: newLISP in the real world
Topic: values into mul
Replies: 2
Views: 754

values into mul

Hi,

I am trying this:

Code: Select all

(set 'abc "8888")
(println abc)
(println (mul 2 abc))
and getting this:

Code: Select all

8888

ERR: value expected in function mul : abc
What would be the way to get values into the mul function?

Thanks!
by joejoe
Fri Oct 11, 2019 12:46 am
Forum: Anything else we might add?
Topic: dragonfly artwork
Replies: 0
Views: 1316

dragonfly artwork

Cool dragonfly art.

Came from the back cover of a magazine Birdy.
by joejoe
Wed Jul 31, 2019 10:33 am
Forum: newLISP in the real world
Topic: ccxt with nL
Replies: 0
Views: 1488

ccxt with nL

Hi, ccxt has 'support' for php, python and js. https://github.com/ccxt/ccxt https://github.com/ccxt/ccxt/wiki/Manual#api-methods--endpoints I would like to skip those languages and simply access its api endpoints from nL. Would anyone have a thought on how this might be done? Thank you for any tip o...
by joejoe
Mon Jun 17, 2019 10:56 pm
Forum: newLISP in the real world
Topic: loading html templates
Replies: 2
Views: 940

Re: loading html templates

Wow, that did the trick!

Thank you for the insight Ralph! :9)