Search found 294 matches

by eddier
Fri Aug 15, 2003 7:45 pm
Forum: newLISP in the real world
Topic: replace
Replies: 10
Views: 8528

replace

What variable does replace return the regular expression in "()" in. I want to do something like the following (replace {(%[0-9A-F][0-9A-F])} request (char (integer (append "0x" (trim $1) "%")))) where $1 is the match inside the {()}. Or if you know a real neat way of converting the %hex values in a...
by eddier
Tue Aug 12, 2003 9:53 pm
Forum: newLISP in the real world
Topic: string
Replies: 0
Views: 3198

string

Sometimes it would be nice if the \n \t and so forth worked like "" within { }.

Or, maybe have some new type of string like ''' works in python or
print <<HTML;

HTML
does in perl?

What do you think?

Eddie
by eddier
Tue Aug 12, 2003 9:38 pm
Forum: newLISP in the real world
Topic: post method
Replies: 4
Views: 4526

Sorry I haven't posted in a long while. Busy with Institutional Research and other Projects. You are right! I feel so stupid! When using REQEST_METHOD it works as it should. Oh by the way, when I'm on Windoze, there is a nice editor called SciTe. You can copy the keywords from your keyword file and ...
by eddier
Mon Aug 11, 2003 6:22 pm
Forum: newLISP in the real world
Topic: post method
Replies: 4
Views: 4526

post method

I'm trying to use the post cgi method

I use <form action="blah.cgi" method="post"> in my cgi

Netscape says the method is post when I view the cgi

However in my cgi program

(getenv "CONTENT_TYPE")

returns "GET"

We have apache running on a Linux server.

eddier
by eddier
Fri Dec 20, 2002 6:39 pm
Forum: Anything else we might add?
Topic: file locking
Replies: 5
Views: 5808

file locking

Any way to do file locking?

Eddie
by eddier
Fri Nov 22, 2002 2:33 pm
Forum: newLISP and the O.S.
Topic: non functioning on Windows 2000
Replies: 25
Views: 23690

I used to have trouble with newLISP-tk until I made a "temp" folder in c:\.
Do you have a folder c:\temp?

Eddie
by eddier
Wed Oct 23, 2002 8:37 pm
Forum: Anything else we might add?
Topic: setq
Replies: 11
Views: 10169

I agree Lutz, I see no reason to use starts-with or ends-with. However, some users might not want to learn regular expression syntax. How about sublist and substring? Very similar operations except one is list and the other is a string. How about a poly morph function called slice or partition, ...?...
by eddier
Wed Oct 23, 2002 2:48 pm
Forum: Anything else we might add?
Topic: setq
Replies: 11
Views: 10169

I think I used member one time but I could have used find just as easily. Yep. Tradeoffs are a pain. I thought about asking for find to return regex output on regular expression matches and doing away with regex but then find returns a position and it might be confusing for find to return an integer...
by eddier
Wed Oct 23, 2002 2:27 pm
Forum: newLISP in the real world
Topic: NAN revisited, a crossover from old to new.
Replies: 23
Views: 21105

While we are at it what about infinity (both the + and the -). Although I admit, in Complex Analysis +inf and -inf are the same thing. The rules for using inf are in every college calculus book. About GUIs. I had to write a database front-end for NSLDS (financial aid stuff). I gave up on newlisp-tk,...
by eddier
Tue Oct 22, 2002 2:33 pm
Forum: Anything else we might add?
Topic: setq
Replies: 11
Views: 10169

setq

Lutz,

I know this is picking fluff but, why have a setq? You have two different functions doing the same thing.

The multiple args for set is nice :)

Eddie
by eddier
Mon Oct 14, 2002 2:24 pm
Forum: Anything else we might add?
Topic: Win version
Replies: 2
Views: 4090

Win version

Lutz: Since I write newlisp programs on Linux and run them on windows. The Nan and Inf discussion and differences between Win32 and Linux versions caught my attention. Refresh my memory. Why did you start a separate Windoze version of NewLisp again? By the way, the GUI stuff in the old Win versions ...
by eddier
Thu Oct 10, 2002 2:39 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

Ryon: Are you using Windows 2000 or XP? If so, are you logged in as an Administrator or a User? This may be far fetched as I'm not that good with Windows stuff, but I think that you have to have rights set to write to some directories in those OSs. If you log in as Administrator you should be able t...
by eddier
Wed Oct 09, 2002 8:00 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

I made a mistake.

change

(set 'procStr (append "newlisp ./" fileName " > /tmp/pcgi"))

to

(set 'procStr (append "newlisp " fileName " > pcgi"))

kill the "./" and the "/tmp/"

Eddie
by eddier
Wed Oct 09, 2002 7:56 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

I had a similar problem on the win2000 machine in the business office. In (define (execute-file fileName data) Try changing (set 'procStr (append "newlisp ." fileName "> /tmp/pcgi")) to (set 'procStr (append "newlisp " fileName " > pcgi")) and change (set 'buffer (read-file "/tmp/pcgi")) to (set 'bu...
by eddier
Tue Oct 08, 2002 6:10 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

I've finally got it working on Windows! I made a directory called "tmp" under the directory "test" that I was using as the root directory in the httpd call newlisp httpd 80 /test No avail! Then I changed where output from the program is redirected from "/tmp/pcgi" to the file "pcgi" in the current d...
by eddier
Tue Oct 08, 2002 2:46 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

Thanks!

Will try.

Eddie
by eddier
Tue Oct 08, 2002 2:28 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

httpd

Lutz,

httpd will show html pages in netscape but not in IE and won't run cgi programs in either. Can you help me?

Eddie
by eddier
Mon Oct 07, 2002 10:51 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

httpd

Emacs has the line

(define (log-request request)

Don't see anything to change here.

The only code I can see a change to is line 127 that starts with a comment.

I changed this to Linux line for the Linux box because it was defaulted to Win32.
by eddier
Mon Oct 07, 2002 2:52 pm
Forum: newLISP in the real world
Topic: httpd
Replies: 22
Views: 21477

httpd

I can get httpd.lsp to run cgi programs on Linux but not on Win32.
I can get httpd.lsp to show html files but that's all. What am I doing wrong?

Eddie