Search found 158 matches

by joejoe
Mon Oct 28, 2019 11:33 am
Forum: newLISP in the real world
Topic: nL cron script
Replies: 6
Views: 802

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: 802

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: 802

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: 716

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: 802

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: 572

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: 572

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: 575

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: 575

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: 887

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: 1049

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: 752

Re: loading html templates

Wow, that did the trick!

Thank you for the insight Ralph! :9)
by joejoe
Mon Jun 17, 2019 3:10 pm
Forum: newLISP in the real world
Topic: loading html templates
Replies: 2
Views: 752

loading html templates

Hi, I think I should load html templates with set command, however when I surround the html with the [text][/text] tags and use println to display the html, it omits the header. For example, this code: (set 'template [text]<!DOCTYPE html> <html lang="en"> <title>W3.CSS Template</title> <meta charset...
by joejoe
Sun Jun 16, 2019 7:02 am
Forum: newLISP in the real world
Topic: format json-parse data into html
Replies: 7
Views: 1269

Re: format json-parse data into html

Blingo!

Raisins have been picked Ralph! Woo hoo! :D

What a treasure it is to have such support!

I learned more than I was looking for and am such happier!

Kind thanks for your suggestion and guidance, again.

It's a happy json raisin pickin from the cake kinda day today! :P
by joejoe
Sat Jun 15, 2019 9:48 pm
Forum: newLISP in the real world
Topic: format json-parse data into html
Replies: 7
Views: 1269

Re: format json-parse data into html

Ralph Gotcha on the x y term form finding they y data if it is there. Also on the error prevention by returning an empty value instead of getting a nil value from the ref statement. It's brilliant and certainly makes using json data more friendly. I am getting the ERR: data type and format don't mat...
by joejoe
Fri Jun 14, 2019 8:07 pm
Forum: newLISP in the real world
Topic: format json-parse data into html
Replies: 7
Views: 1269

Re: format json-parse data into html

Thanks to both Ralph and Hans-Peter! I am trying Ralph's and am getting nil response. If I am understanding correctly, Ralph intended that I do something like this: (set 'ali (get-url ali-link)) (set 'alie (json-parse ali)) (set 'jsondata (lookup "products" (lookup "result" alie))) (define (raisins ...
by joejoe
Mon Jun 10, 2019 5:58 am
Forum: newLISP in the real world
Topic: format json-parse data into html
Replies: 7
Views: 1269

format json-parse data into html

Hi, I would like to format json data into html. I have attempted this for a few days, and success looms. :0) The json-parse return data is this: (("result" (("totalResults" 19) ("products" ((("productTitle" "GILDAN EMACS GNU XEMACS LISP programmers wildebeest short-sleeved T-shirt") ("imageUrl" "htt...
by joejoe
Thu Mar 14, 2019 3:42 am
Forum: newLISP newS
Topic: Book about Fuzzy Logic in newLISP
Replies: 9
Views: 7843

Re: Book about Fuzzy Logic in newLISP

Argüelles,

Thank you for the meta extension facility! Looks stellar!

Quick question, do you have a license associated w the code?

nL is GPL which allows us to modify contribute it without letting others close source it.

I'm getting a grasp of the idea of fuzzy logic on top of nL! Kudos! :D
by joejoe
Sat Jul 14, 2018 3:14 am
Forum: newLISP in the real world
Topic: Sorting a list or string
Replies: 4
Views: 1520

Re: Sorting a list or string

You might have meant the third line be (set 'worder (map lower-case words)) Ralph, you always bat cleanup around here. Thank you! It's hard to admit you know what I want to do before I even thought to do it! ;0) Thanks for this very much and learned going forward. Big thanks for this and all many p...
by joejoe
Wed Jul 11, 2018 9:16 am
Forum: newLISP in the real world
Topic: Sorting a list or string
Replies: 4
Views: 1520

Sorting a list or string

Hi and thanks! (set 'word (join titles " ")) (set 'words (find-all {\w{5,}} word)) (set 'worder (lower-case (string words))) (println (sort worder)) ERR: list or array expected in function sort : worder worder looks similar to this: ("one" "two" "three") How would I best sort this? Thanks very much ...
by joejoe
Mon May 07, 2018 1:15 am
Forum: newLISP in the real world
Topic: json-parse string expected
Replies: 2
Views: 1207

Re: json-parse string expected

Thanks again Ted,! I was able to do it with get-url here. (json-parse (get-url "https://pastebin.com/raw/brx7F2vA")) (("ID" ("1" "2" "3" "4" "5" "6" "7" "8")) ("Name" ("Rick" "Dan" "Michelle" "Ryan" "Gary" "Nina" "Simon" "Guru")) ("Salary" ("623.3" "515.2" "611" "729" "843.25" "578" "632.8" "722.5")...
by joejoe
Sun May 06, 2018 9:49 am
Forum: newLISP in the real world
Topic: json-parse string expected
Replies: 2
Views: 1207

json-parse string expected

Hi, (json-parse (exec "curl https://www.asdf.com/asdf.json")) I am getting the message that a string is expected. The result of the exec has [text]......[/text] at the beginning and end of what is returned. Is this why json-parse thinks it is not a string? I tried (json-parse (string (exec "curl.......
by joejoe
Sat Feb 03, 2018 2:14 am
Forum: Anything else we might add?
Topic: Newlisp vs Lua
Replies: 11
Views: 4772

Re: Newlisp vs Lua

TedWalther, I have long appreciated your advice and direction. On multiple occasions you have guided me in the proper direction. Thank you. Your responses I regard as true mentorship. That is absolute. You need to look at it from both sides. [...] The choice I have is, [...] [contribute to closed or...
by joejoe
Fri Feb 02, 2018 8:39 am
Forum: Anything else we might add?
Topic: Newlisp vs Lua
Replies: 11
Views: 4772

Re: Newlisp vs Lua

newLisp vs Lua. These are two differently licensed projects, which make them incomparable. I always try to be mindful of what the licensing is for the tools that I use, and I consider MIT/BSD/ISC and the like to be superior (namely, more free) than any GPL. If you contributed code that your grand-ki...
by joejoe
Wed Dec 21, 2016 9:47 pm
Forum: newLISP in the real world
Topic: generating aws signature
Replies: 13
Views: 4804

Re: generating aws signature

Ok gotcha thanks.

I got the signatures generating correctly with your message help, Ralph.

Code: Select all

(string (chop (base64-enc (crypto:hmac ....)) "%3D")
This did it and a few tweaks to finalize the url formatting got successful api calls.

Thanks all for the help!