Search found 112 matches

by CaveGuy
Fri Jan 09, 2015 6:45 pm
Forum: newLISP in the real world
Topic: newlisp -x does not play well with -m or -s
Replies: 9
Views: 6793

Re: newlisp -x does not play well with -m or -s

I like Ralph idea "In any case, it would be nice if -m and -s options also could be provided in the source; e.g. as some variant of reset." The ability to provide a "modified" (main-args) to the (reset) function just might do the trick. either as a modified main-args list (reset '("-s10240" "-m10"))...
by CaveGuy
Fri Jan 09, 2015 5:40 pm
Forum: newLISP in the real world
Topic: (fix-args) for (main-args) offset with -x linked programs
Replies: 0
Views: 3477

(fix-args) for (main-args) offset with -x linked programs

In the following example (fix-args) fixes the main-arg offset problem with using input args with -x linked programs. Using the offset of 2 from the original example: ;; uppercase.lsp - Link example (println (upper-case ((main-args) 2))) (println "main-args " (main-args)) (exit) ~# newlisp uppercase....
by CaveGuy
Thu Jan 08, 2015 11:39 pm
Forum: newLISP in the real world
Topic: newlisp -x does not play well with -m or -s
Replies: 9
Views: 6793

newlisp -x does not play well with -m or -s

problem: newlisp -x linked programs can eat all available memory, blow their stack and DOS a system unless they are constrained. With -m and -s not playing nice with -x, constraint is hard to achieve. test.lsp (println "maxheap " (sys-info 1) " maxstack " (sys-info 5)) (exit) newlisp -x test.lsp tes...
by CaveGuy
Thu Jan 08, 2015 6:59 pm
Forum: newLISP and the O.S.
Topic: Comp/Install/Test newLISP on 64bit Ubuntu 14.04.01
Replies: 0
Views: 5011

Comp/Install/Test newLISP on 64bit Ubuntu 14.04.01

upon discovering the 10.6.0 32 bit newlisp is not happy on a 64 bit system. I set about googling errors until the following cookbook Install of newLISP 10.6.2 worked clean on several 64bit Ubuntu 64bit 14.04.01 systems. # Install newLISP 10.6.2 on amd64 ubuntu 14.04.01 sudo su cd ~ apt-get install l...
by CaveGuy
Thu Oct 02, 2014 4:46 pm
Forum: newLISP in the real world
Topic: help needed accessing a password protected samba shares
Replies: 1
Views: 2053

Re: help needed accessing a password protected samba shares

solved my problem on windows side with:

(define (login-share sharepath username password)
(exec (string "net use " sharepath " /user:" username " " password)))

for the UNIX equivalent ... I expect I will use smbclient to do the same sort of thing.
by CaveGuy
Wed Oct 01, 2014 7:54 pm
Forum: newLISP in the real world
Topic: help needed accessing a password protected samba shares
Replies: 1
Views: 2053

help needed accessing a password protected samba shares

I need help accessing a password protected samba share from windows. If I log in to the share with my username/password from explorer before starting newlisp (directory "//server/share") works just fine as does (open "//server/share/file .... but when windows decides to reboot, I loose the share and...
by CaveGuy
Wed Jul 06, 2011 8:22 pm
Forum: newLISP newS
Topic: SMTP module improved
Replies: 2
Views: 7512

Re: SMTP module improved

To reduce the SpamAssassin score on newLISP generated e-mails to Zero! I made the following changes: ;; @module smtpx.lsp ;; @description Send mail using SMTP protocol ;; @version 3.1 - "\'"real name\" <mail@domain.com>" now supported in <str-from> ;; - added Date to (send-mail-header) using a getti...
by CaveGuy
Sun Mar 14, 2010 9:02 pm
Forum: newLISP newS
Topic: Ubuntu and Debian package repository now available
Replies: 7
Views: 5225

Re: Ubuntu and Debian package repository now available

[quote="TedWalther"]Now there is a Debian and Ubuntu repository available. Once you set it up, you will get your newlisp upgrades automatically and the package management system will take care of getting the right deb file for your architecture. This scares the hell out of me, just one not so little...
by CaveGuy
Sun Mar 14, 2010 3:17 pm
Forum: newLISP and the O.S.
Topic: Help needed with Win7-64bit install
Replies: 1
Views: 2365

Help needed with Win7-64bit install

I am running Win7 V6.1. 64 bit version on an intel quadcore, I have newlisp 10.1.10 installed in the C:\Program Files (x86) directory and newlisp.exe runs fine if I click on a .lsp file on the desktop. I have installed both 32 & 64 bit java (Version 6 Update 18) and all the Java tests pass on both 3...
by CaveGuy
Mon Jul 06, 2009 5:11 pm
Forum: newLISP and the O.S.
Topic: (copy-file "I/O error #63" on file with 0x8000 at
Replies: 1
Views: 2198

(copy-file "I/O error #63" on file with 0x8000 at

In debugging a backup utility, I have come across a small number of of files on my system that cause (copy-file to "fail" with an error code of 63. My 2 platforms are windows server 2003 and XP pro, it happens with 10.x Here is what I know so far: On the XP system all the files that errored were eit...
by CaveGuy
Thu Jun 25, 2009 12:10 am
Forum: newLISP and the O.S.
Topic: (copy-file FileTime info - (FixFileTime workaround
Replies: 6
Views: 4383

_utime, _wutime are also possabilities

My first reaction to using _utime, _wutime was that they did update all three time stamps. In this case my goal was to duplicate/preserve all three timestamps on the coppied file. I was already using several other (import "kernel32.DLL" ....'s and did not want to have to worry if the target system h...
by CaveGuy
Wed Jun 24, 2009 1:29 am
Forum: newLISP and the O.S.
Topic: (copy-file FileTime info - (FixFileTime workaround
Replies: 6
Views: 4383

I fixed my typo in the last line, and you are always welcome to my PUDDERings. (Programing Under Deliberately Difficult Environmental Restrictions :) I just looked and you missed (_lclose hFileD) on that last line. Here is a second example. (reset-archive-flag... will reset the Archive Flag on the f...
by CaveGuy
Tue Jun 23, 2009 6:59 pm
Forum: newLISP and the O.S.
Topic: (copy-file FileTime info - (FixFileTime workaround
Replies: 6
Views: 4383

(FixFileTime update FileTime workaround example

Given a full path to the source and destination file, FixFileTime will copy the FileTime info from the src file to the dest file. While this is far from an elegant solution it solved my problem and hopefully someone elses along the way. I am open to suggestions. (define (FixFileTime src dest) (if (n...
by CaveGuy
Mon Jun 22, 2009 1:04 am
Forum: newLISP and the O.S.
Topic: (copy-file FileTime info - (FixFileTime workaround
Replies: 6
Views: 4383

(copy-file FileTime info - (FixFileTime workaround

I am using (copy-file to make a backup file and it is putting the current date- time in the (file-info of the new copy. I need to be able to preserve the FileTime info on the copy or find a way to put it back to what it was.
.......
by CaveGuy
Sat Jun 20, 2009 10:37 pm
Forum: newLISP and the O.S.
Topic: Adding an Icon to Newlisp.exe
Replies: 2
Views: 2829

Success ! Thanks

I dl'ed and ran resourcehacker

http://www.users.on.net/johnson/resourcehacker/

and it did the trick just fine :)

Thanks again....
by CaveGuy
Sat Jun 20, 2009 7:33 pm
Forum: newLISP and the O.S.
Topic: Adding an Icon to Newlisp.exe
Replies: 2
Views: 2829

Adding an Icon to Newlisp.exe

I want to add and/or change the icon for newlisp.exe, well more importantly a myhack.exe produced using the (link) function. My first thought was to use Icon Changer, but it reports there is no icon to change :( Can anyone give me a clue how to add an icon, or provide me with a newlisp.exe that has ...
by CaveGuy
Fri Jun 19, 2009 4:23 pm
Forum: newLISP and the O.S.
Topic: Text from clipboard
Replies: 4
Views: 4518

(get-put-text [new_text]) New ClipBoard example

Got it ! - It works even on a 2003 application server ... ; If new_text is present and not nil, it replaces the current contents of the Clipboard. (constant 'CF_TEXT 1) ; (import "user32.DLL" "GetClipboardData") (import "user32.DLL" "EmptyClipboard") (import "user32.DLL" "OpenClipboard") (import "us...
by CaveGuy
Thu Jun 18, 2009 11:29 pm
Forum: newLISP and the O.S.
Topic: Text from clipboard
Replies: 4
Views: 4518

(get-text example using SetClipboardData wanted.

#(import "user32.DLL" "SetClipboardData") was conveniently commented out in the (get-text example and I am beginning to understand why. I need to be able to put modified text back to the clipboard and I am not sure how to setup the result string to make the SetClipboardData function happy. # If resu...
by CaveGuy
Mon Jun 18, 2007 5:43 pm
Forum: Anything else we might add?
Topic: (context 'CGI) ; get cookies feature
Replies: 2
Views: 2145

(context 'CGI) ; get cookies feature

The "get cookies" code that builds CGI:cookies from "HTTP_COOKIE" in cgi.lsp tears up cookies with embeded or tailing "=". The following, fixed the problem, nicely for me. (if (env "HTTP_COOKIE") (dolist (elmnt (parse (env "HTTP_COOKIE") ";")) (set 'var (trim (first (parse elmnt "=")))) ### (set 'va...
by CaveGuy
Thu May 31, 2007 7:58 pm
Forum: Anything else we might add?
Topic: Standard Deviation ?
Replies: 6
Views: 3883

Thanks a lot, as it turns out it looks like I will be needing both. in one case I have the entire sample and in the other case I find I only have a representive sample. So here for the archives is the short sweet mininum overhead flavors of each. (define (sdev X) (sqrt (div (sub (apply add (map mul ...
by CaveGuy
Thu May 31, 2007 1:42 am
Forum: Anything else we might add?
Topic: Standard Deviation ?
Replies: 6
Views: 3883

Sure Hope I got the right one :)

In my case I am dealing with:

2) the population data, itself?

These are finite samples to be averaged and compaired over time.

Sure Hope I got the right one !

Heck, it will make a nice looking chart either way :)
by CaveGuy
Thu May 31, 2007 12:50 am
Forum: Anything else we might add?
Topic: Standard Deviation ?
Replies: 6
Views: 3883

Thanks Guy: I was sure I has seen it somewhere :) As it was the only function I needed, I packed it a bit into a oneliner: (define (sdev X) (sqrt (div (sub (apply add (map mul X X)) (div (mul (apply add X) (apply add X)) (length X))) (sub (length X) 1)) I was interested how this would affect perform...
by CaveGuy
Wed May 30, 2007 10:16 pm
Forum: Anything else we might add?
Topic: Standard Deviation ?
Replies: 6
Views: 3883

Standard Deviation ?

I am at the limits of my understanding of math here, and am looking for an example or lib function, that can preform a Standard Deviation on a list of values and give me back the magic number, so I can move on with my life :) Lutz: I do like how the language has evolved, Its been a few years, but I ...
by CaveGuy
Tue Sep 14, 2004 1:08 am
Forum: Anything else we might add?
Topic: File upload from browser
Replies: 2
Views: 3101

File upload from browser

I have a function that I need in newlisp. And I am at a loss :( given the following form action: <form action="/upload.cgi" enctype="multipart/form-data" method=post> <input type=file name=stonehenge> <input type=submit value=Upload> </form> Using upload.exe (dos-cgi) or upload.php see below the spe...
by CaveGuy
Mon Sep 13, 2004 6:38 pm
Forum: Anything else we might add?
Topic: Depreciateds and syntactical traps to image blogs and wiki's
Replies: 2
Views: 3081

That was (slice not (chop that needed to be chopped, toung tied again :)

BTW I found put-url that takes care of the upload problem.
Can anyone recomend a good graphics tool for makeing thumbnails on the fly in newlisp :)

later dudes :)