Search found 112 matches

by CaveGuy
Sat Nov 02, 2002 3:02 pm
Forum: newLISP in the real world
Topic: (link'ing and (!'ing Example
Replies: 5
Views: 3295

That is a problem, I am linking stand-alone EXE's using newLISP.exe and newLISP-TK is not running. These EXEs are created by the hundreds and stored in USER space with no access to newLISP. A command line parameter would be just OK. A first line in the source that was loaded into the EXE would be mu...
by CaveGuy
Sat Nov 02, 2002 3:06 am
Forum: newLISP in the real world
Topic: (link'ing and (!'ing Example
Replies: 5
Views: 3295

(link'ing and (!'ing Example

The following example should provide some clue to building and (!'ing newLISP executables. We will use the link.lsp example from the source distribution set to link DoTest-p and SoTest-c into standalone EXEs. DoTest-p is a parent task that (!s' DoTest-c.exe as a child task. DoTest-c (loads' DoTest-0...
by CaveGuy
Sat Nov 02, 2002 2:09 am
Forum: newLISP in the real world
Topic: formCGI "POST" example
Replies: 2
Views: 2338

formCGI "POST" example

;; cgi-post-test.lsp ;; modified formcgi.lsp from GET Method ;; to use POST method. ;; (define (cgiexpand instr mode , test temp) (set 'temp "") (dolist (tmp (parse instr "%")) (set 'test (substring tmp 0 2)) (set 'temp (concat temp (concat (cond ((= "0D" test) (if mode "\r" "")) ((= "0A" test) (if ...
by CaveGuy
Sun Oct 27, 2002 6:31 am
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

My problem is a string incompatibility.

I understand what you are saying about contexts. My problem is not with the context games I am playing it is a more basic problem in the fact that (!= (write-line (encrypt string key) file) (encrypt (current-line) key) => true when (read-line file) is used. For some reason the string read is not the...
by CaveGuy
Sun Oct 27, 2002 3:36 am
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

mysave and myload revisited.

;; This is driving me nuts, it should work !!! ;; (context 'TEST) (set 'a '("string" 1.1)) (set 'b '("string" 2.2)) (set 'c '("string" 3.3)) (context 'MAIN) (define (run) (mysave 'TEST) (myload 'NEW) (context 'NEW) (symbols) ) (define (mysave mc , fn fh) (context mc) (set 'fn "test.lsp") (set 'fh (o...
by CaveGuy
Sat Oct 26, 2002 11:23 pm
Forum: So, what can you actually DO with newLISP?
Topic: Part 2 of the MailEditir example "ME2.lsp"
Replies: 3
Views: 2530

Wishlist and additions.

I would like to see a pull down user interface that looks very much like the newLISP-tk edit window. I never got the horizontal scroll bar working with the message area text box. I need an example of dual scroll bars on one text box. Feel free to hack at these examples, I hope to continue learning f...
by CaveGuy
Sat Oct 26, 2002 8:11 pm
Forum: So, what can you actually DO with newLISP?
Topic: Part 2 of the MailEditir example "ME2.lsp"
Replies: 3
Views: 2530

Part 2 of the MailEditir example "ME2.lsp"

This is the second installment in the ME example application. This example expects that (ME:getpop) be executed first to load the 'mail-dir with "*.pop3" messages to process. <pre> ;; Expanded E-Mail examples ;; ;; to run: (ME:run) ;; ;; Version 0.1 (CaveGuy) ;; ;; (ME:show-next-message uses 'ME:mai...
by CaveGuy
Sat Oct 26, 2002 7:01 pm
Forum: So, what can you actually DO with newLISP?
Topic: ME:getpop example aka (ME1.lsp)
Replies: 1
Views: 1842

ME:getpop example aka (ME1.lsp)

This is the first very small piece of the Mail Editor application example, it preloads the 'mail-dir with ".pop3" message files for processing by the functions to be found in the "ME2.lsp" set. <pre> ;; Expanded E-Mail examples ;; ;; Version 1.0 (CaveGuy) ;; (load "pop3.lsp") ; Requires pop3.lsp V.1...
by CaveGuy
Thu Oct 24, 2002 10:08 pm
Forum: newLISP in the real world
Topic: POP3 v 1.5: an updated example
Replies: 2
Views: 2318

POP3 v 1.5: an updated example

v 1.5: Fixes a missing 'mail-dir reference in both the (get-all-mail and (get-new-mail functions. The (get-messagesfunction now attempts to make 'mail-dir, if not found. Changeing the message file type to ".pop3" now reflects the context it was created by. (CaveGuy). Previously, I modified the filen...
by CaveGuy
Wed Oct 23, 2002 8:21 pm
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

Thanks for the hints. I'l be back :)
by CaveGuy
Wed Oct 23, 2002 1:39 am
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

Got two fresh stumbling block this time :) (directory 'mydir) subber reaily needs to accept a file mask. Unless of course you already have a directory to list box widget example :) Now that I can build and fill text widgets nicely, how do I "clear" one ? My next task is to work out the callbacks, I ...
by CaveGuy
Tue Oct 22, 2002 11:19 pm
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

(setq a '(1 2 3)) (setq fh (open "test.file" "w")) (write-line (append "(set '" (string 'a) " '" (string a))) (close fh) an open readline of test.file retuens => "(setq 'a '" a second read-line returns => "(1 2 3))" myload has to doo a double read-line for each symbol. Thanks for the fix, it about d...
by CaveGuy
Tue Oct 22, 2002 10:25 pm
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

Thanks for the clues, they help ... I think it may be a mental block, but I do still have a problem. (set 'line "My address is [66.35.72.10]") in the previous example results in an invalid command 66.35.72.10 error :( also what is with (string '(1 2 3)) => "\r\n(1 2 3)" it makes creating "(setq a '(...
by CaveGuy
Tue Oct 22, 2002 9:12 pm
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

In my case, the native file compression provided by NT/W2k is sufficient for my needs short term needs, good idea though. My order of importance is, security, speed, then file size. I understand the desire to optimize based on size and speed, I do not feel they have to be compromised. Security throu...
by CaveGuy
Tue Oct 22, 2002 7:49 pm
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

ok, that kinda works :) Now how do I force line seperation.
\n does not seem to work as I think it should.

(tk ".meow1.fr2.text insert end {" tl "\n}") ???
(tk ".meow1.fr2.text insert end {" tl "\\n}") ???
by CaveGuy
Tue Oct 22, 2002 7:38 pm
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

That will work, provided I can get a unique tempfile name from the system. As this application is CGI triggered, I can and will have numerous overlapping iterations. I do think, Open file, read 500K, close file, decrypt data, open file, write 500k, close file, now we can begin loading the 500k file ...
by CaveGuy
Tue Oct 22, 2002 4:56 pm
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

I would be happy to discuss the application in more detail in a more personal communication, but I am limited in what I am willing to say at this time in an open public forum. Even if it is only about 6 of us here at this time, I expect that number to creep up as application info slips out and more ...
by CaveGuy
Tue Oct 22, 2002 3:55 am
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

lets look at an example where NewLISP is fired off with an input file to evaluate and a context file that contains a corpus of knowledge, dynamically updated based on information gleamed from parsing the input file, using modification rules that are also personalized to and saved in the same context...
by CaveGuy
Mon Oct 21, 2002 9:05 pm
Forum: newLISP in the real world
Topic: Load and Save of contexts using encrypt
Replies: 12
Views: 5982

Load and Save of contexts using encrypt

Is there any possibility of getting an encrypt srt-pad, wedged into the load and save subbers. That way application sensitive data can be easily stored on disk as a loadable context file, without compromising the privacy of the individual the context represents. want a killer feature deserving of a ...
by CaveGuy
Mon Oct 21, 2002 8:23 pm
Forum: newLISP in the real world
Topic: Passing unconditioned text to a TK Text widget
Replies: 11
Views: 6202

Passing unconditioned text to a TK Text widget

I am caught in a string problem with TK. Here is the snipit I am having problems with. (set 'fh (open ns "read")) (while (read-line fh) (set 'tl (current-line)) (tk ".meow1.fr2.text insert end " tl) ) (tk "pack .meow1.fr2.text") (close fh) I want to put the contents of an unconditioned text file 'ns...
by CaveGuy
Sat Oct 19, 2002 5:16 pm
Forum: newLISP in the real world
Topic: newLISP-TK examples
Replies: 15
Views: 8746

But I hope that you do not mean that a command like setq, foreach and repeat is under copyright protection of the 400 pound gorilla? ;-) (setq (foreach .... were all based on Dave Betz's(sp?) original code ,that is what JohnW started with. Dave created xLISP on a National Science Foundation Grant w...
by CaveGuy
Sat Oct 19, 2002 4:33 pm
Forum: newLISP in the real world
Topic: newLISP-TK examples
Replies: 15
Views: 8746

And to your point with the alisp-clone: I do not mean a clone, because a clone would have to run in autocad as the enviroment. I mean something which is near enough to general alisp-logik, but has no intention to the grafik/cad-related commands. Just my 2 cents ;-) There have been, several OtherCAD...
by CaveGuy
Fri Oct 18, 2002 8:42 pm
Forum: newLISP in the real world
Topic: newLISP-TK examples
Replies: 15
Views: 8746

I agree there are a number of "nice" functions to be Riped from AutoLISP/Xlisp. I miss (setq a 1 b 2 c 3 ...) the most. As for the Dog Chow Language last I looked it was a propriatory extension to AutoCAD and AutoLISP. That reminds me we had better begin using AutoCAD(R) and AutoLISP(R) before the a...
by CaveGuy
Fri Oct 18, 2002 5:13 pm
Forum: newLISP in the real world
Topic: newLISP-TK examples
Replies: 15
Views: 8746

What people want are usefull working examples and good Doc

Having contributed heavily to the early days of the AutoCAD variables and expressions feature through the birth of AutoLISP, believe me when I tell you that the best examples are simple solutions to real world problems. In 1984 "Programming AutoCAD" had to be self publishing because no real publishe...
by CaveGuy
Fri Oct 18, 2002 1:50 pm
Forum: newLISP in the real world
Topic: newLISP-TK examples
Replies: 15
Views: 8746

Your call as where to park it/them

That is a great idea, we could put a new section "source code" or "examples" in http://newlisp.org/news/ like there is a "Tips&Tricks" section right now, where we could put all that stuff, or we could put a "contributions" directory in http://newlisp.org/download/ or both. Or we could publish stuff...