Some initial questions

2013-09-24 Thread Luis P. Mendes
Hi, I'm writing for this list hoping to get some good insights on what I'm going to say. I started with BASIC for Timex 2068/ZX Spectrum, then learned Pascal. Had a lot of years when my programming was only some Access databases and Excel macros. After these 'gray' years, I became interested very

Re: Some initial questions

2013-09-29 Thread Luis P. Mendes
2013/9/29 O.Hamann o.ham...@gmx.net: And I remember a very nice interactive tutorial (basics of Lisp in general), looked similar to this, perhaps is the same: http://art2.ph-freiburg.de/art/login-e.html It's available in english, covers the Lisp basics in few lessons and offers

eol characters

2014-05-26 Thread Luis P. Mendes
Hi, I tried to find this, but couldn't. In http://software-lab.de/doc/refL.html#line, it is said that End of line is recognized as linefeed (hex 0A), carriage return (hex 0D), or the combination of both. But sometimes, at least in other text processing languages (eg awk), it's very convenient

Cannot run script from bash

2014-07-09 Thread Luis P. Mendes
Hi again, sorry for these novice questions, but can't figure out why this script doesn't run. Be pil_files.l: #!/usr/bin/picolisp /usr/lib/picolisp/lib.l (de ffiles (dir_list) (cond ((=T (info (car dir_list))) (print is directory)) (print is not directory))) (de main ()

Re: Cannot run script from bash

2014-07-10 Thread Luis P. Mendes
Correct would be (de ffiles (dir_list) (cond ((=T (info (car dir_list))) (print is directory)) (T (print is not directory)) ) ) Note the 'T' in the last line. Ok, I already corrected the code and capitalized the function parameter. $ pil pil_files.l -main + :

Recursive (dir) - some help needed

2014-08-17 Thread Luis P. Mendes
Hi, I'm building a script to print the contents of a directory tree recursively, but I'm facing some problems. The script can be found at http://ideone.com/BuN931 Attached, I also send the script as well as the directory tree I created to test it. The problems: 1) how to print a blank line? 2)

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Luis P. Mendes
Hi, 2015-01-14 12:09 GMT+00:00 Alexander Burger a...@software-lab.de: I see. So Norway has different systematics with telephone numbers. I don't understand them, though. In Germany we have the rule that both 0049 123 456 and +49 123 456 are the same as 0123 456. The 00 to + conversion is of

@lib/scrape.l questions

2015-06-23 Thread Luis P. Mendes
Hi list, When scraping a website: : (scrape Urlbase 80 How) I want to go through every link to perform further parsing in some links, based in the first word of the tile of the link, but ran into some difficulties. Is this the right way to access each of the links? : (for L *Links (cond ((=T

Re: @lib/scrape.l questions

2015-06-25 Thread Luis P. Mendes
Hi Alex, 2015-06-24 12:49 GMT+01:00 Alexander Burger a...@software-lab.de: Hi Luis, These are beginner questions, but why doesn't this work? (in i.html (while (from a href=\) (parseLink (till T)) )) This depends on what 'parseLink' does. (till T) returns a transient

Re: @lib/scrape.l questions

2015-06-24 Thread Luis P. Mendes
2015-06-23 17:44 GMT+01:00 Alexander Burger a...@software-lab.de: Hi Luis, I want to go through every link to perform further parsing in some links, based in the first word of the tile of the link, but ran into some difficulties. Is this the right way to access each of the links? : (for L

pil + interactive mode access lines of previous command

2015-06-17 Thread Luis P. Mendes
Hi, Assume I issue these instructions in `pil +` interactive mode : (setq N 3) : (while (gt0 n) (dec 'n) (prinl n)) It executes. Then I want to access the second command to edit it, for example to change the second line: : (while (gt0 n) (dec 'n 2) (prinl n)) I press the up

Re: https server side

2015-05-27 Thread Luis P. Mendes
Thank you all for your contributions! Luis 2015-05-27 9:03 GMT+01:00 Henrik Sarvell hsarv...@gmail.com: I do WSS via httpGate with a CA signed certificate, see this article under the WSS section: http://picolisp.com/wiki/?Websockets On Wed, May 27, 2015 at 8:13 AM, Alexander Burger

https server side

2015-05-26 Thread Luis P. Mendes
Hi, I couldn't find anything about the support of https in server side in 'Picolisp by Example' and in 'Picolisp Works' books. But, there's a thread http://t8373.lisp-picolisp-general.lispforum.info/picolisp-ssl-problem-t8373-20.html that seems to imply that https/SSL has been implemented. So my