Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - tom

#1
newLISP in the real world / popping thngs
August 09, 2009, 06:17:47 AM
here's another one:



I'm popping elements of a list into table cells, but I need a better way of progressing through the list.  I know there is one but I can't remember what it is.  I want to use each popped element twice, but once I pop the element it's gone!



or not.  any ideas?
#2
newLISP in the real world / saving things
August 09, 2009, 06:12:12 AM
Hey guys,



I have a list I want to either empty or add to depending on whether a checkbox is checked.  How do I save so that the list state survives running  the script?  I can



(save "list.lsp" 'list)



but list.lsp gets rewritten every time I access the page. (I'm mangling newlisp wiki for a specific task)



how do I do that?  Thanks!
#3
newLISP in the real world / partial unique?
August 04, 2009, 05:44:31 AM
How can I remove all duplicates from a list except one?



(111222333)  becomes (12333) or whatever...
#4
newLISP in the real world / mangling newlisp wiki
August 03, 2009, 10:03:22 AM
Hey guys,



I'm writing a little thing to run locally with the newlisp webserver.  I'm going to try to avoid showing you the actual code because it's ugly, but it consists of modifications to newlisp-wiki.



I have two problems.



I have a text file with 30 lines from which a 5x6 table is built.  it works fine in linux.  I tested it in windows and IE 7 and the 30th cell is empty and the 29th has garbage in it.  Also trying to submit edits results in a browser error message.



Also,  I need to think of situations where there are less than 30 lines in my text file.  It would also be nice to generate more table cells to accomodate more.



Any ideas?
#5
newLISP newS / 10.1.0 compile problems
June 22, 2009, 06:24:22 AM
Howdy guys.



I'm not able to build 10.1.0; I get gobs of undefined reference errors.



newlisp.o: In function `expand':
undefined reference to...
...


I'm using makefile_linuxLP64_utf8



I'll be happy to paste all the error lines if it will help.
#6
newLISP newS / 10.1.0 compile problems
June 22, 2009, 05:57:45 AM
Howdy guys.



I'm not able to build 10.1.0; I get gobs of undefined reference errors.



newlisp.o: In function `expand':
undefined reference to...
...


I'm using makefile_linuxLP64_utf8



I'll be happy to paste all the error lines if it will help.
#7
newLISP and the O.S. / couple simple windows questions
October 15, 2008, 10:11:37 AM
Hey guys,



what's the easiest, most direct way to start newlisp as a webserver on windows?  I got it working, but it wasn't so easy or direct.



also, what does a path to somewhere look lilke?  is "C:pathtosomewhere"

right?



I just can't stand windows.  I'm not sure how anybody can use it.



Thanks!
#8
newLISP newS / an inconsistency?
October 03, 2008, 05:03:28 AM

newLISP v.9.9.5 on Linux

> (rest (rest (directory "test")))
("one" "two" "three")



newLISP v.9.9.5  64-bit on Linux

> (rest (rest (directory "test")))
("three" ".." "two")
#9
newLISP and the O.S. / scripts in windows
October 02, 2008, 07:09:19 AM
Hey guys,



I wrote a script potentially useful to some windows-using friends.  I just tried to test it on a windows machine and I discovered that I have no idea how to start it.



I changed the bang path to



#!C:pathtonewlisp.exe



then made a shortcut on the desktop to the script.  nothing.



Once I get all the wrinkles ironed out I might make an exe, but first things first.  What am I not doing?
#10
Anything else we might add? / newlisp plus php
September 27, 2008, 10:10:53 AM
Hi Guys,



I wonder if it's possible for something like my fantastic illustration to be

implemented.  It would be handy to be able to run "real" web apps, like

blogs, forums, and wikis in, say, php, wrapped in newlisp. php could do

it's job and  newlisp could handle the presentation or other things.



http://neverlost.org/whatever/newlamp.gif">

The webserver I would probably use is lighttpd with php/fastcgi.  If I

understand correctly the newlisp process running as a regular cgi would not

be able to keep up with (some lamp app) as a fastcgi.



Am I dreaming or is this possible?  I'm pretty sure that the php I use with

lighttpd has to have fastcgi capabilities compiled in.  In order to work

like I'm hoping, would newlisp too?  I don't mean to make this yet another

 fascgi post, by the way.  fcgi just seems to be "the" way to do it.
#11
newLISP in the real world / nil?
September 20, 2008, 09:39:07 PM
How do you remove a nil from a list?
#12
newLISP and the O.S. / running in an xterm
September 07, 2008, 11:41:10 AM
hey guys,



most Terminal Emulators can be given an "-e" option to run programs.  If I type "xterm -e /path-to-my-script"  an xterm fires up and runs the script.



is there a way to open an xterm in a script which then executes the script that opens it? (yes, convoluted..)



I want to click a button to run a script in an xterm.  the way I do it now is to write a shell script that starts the xterm that starts the script, and I'd like to reduce it down to one step.



I just confused myself.

:-)
#13
newLISP and the O.S. / environment variables
September 01, 2008, 06:36:54 PM
Howdy guys,



I just wanted to point something out.

(bash)
$ echo $USER
me

$ echo $HOSTNAME
the-name

(newlisp)
(env "USER")
me

(env "HOSTNAME")
nothing

And the hostname is not "nothing" :-)   ("env" doesn't return anything) Why is this?
#14
newLISP and the O.S. / enabling readline support
June 16, 2008, 12:41:47 PM
Hi guys,



I have a 64 bit amd processor, and I build newlisp with "make linux64LP64."

"make linux64" does not work...



I used to use "make linux_readline" but I don't think I can do that now that I'm 64 bit.  



What, oh what ever shall I do?
#15
I got an internal server error page when I tried to access it.

...

It's back.
#16
Howdy guys,



I'd like to use newlisp to serve cgi webpages on a public server.  Can anyone offer any advise as to how to make it as secure as possible?  The -http option won't work because it doesn't allow cgi.  I compiled and tested a binary with NOCMD but it had the same effect.  Restricting access to a single directory would be great.  How would I go about that, any ideas?



thag bew berry butch.

:)
#17
hey guys,



If this is a duplicate I apologize.  I thought I wrote about this last night, but maybe I closed my browser window without hitting submit.  Hmmm.



I have another newlisp wiki template and style ready to go.  I love the ease with which I can modify newlisp wiki! The template I used is the same one I have on my perpetualnewbie site.  I found it http://www.oswd.org/design/preview/id/2728">here. It's a nice simple thing I modified just a little.



I'd like some help getting the breadcrumb navigation bar to correctly follow the current page without having to hard code the link in the source.  I may populate a directory with lots of wikis, so I'd like to know where I am with a glance.



I parsed (real-path) as a start, but I don't think it's a good solution.  Here's a link to the wiki and to the changed files:



link removed. silly kids.



Any other input would be appreciated, too.  Thanks!
#18
This is a just a little "editor" heads-up; not serious fare, just a light distraction.



I know that most of us are all set in the editor department, but I recently rediscovered bluefish.  It doesn't have a syntax file for newlisp, or newlisp's documentation formatted as a ready-to-paste-from sidebar reference, but those are correctable problems.



The sidebar has tabs labeled "File Browser," "Bookmarks," "snippets," and "Info Browser."  If you use the "stable" version (1.0.7), "snippets" is "function reference," and using the spell-checker will crash the editor.  The Bluefish guys apparently fixed the crash problem, because in version 1.1.5 I've been spell-checking like mad.



I've got some favorite little functions that I can never quite remember how to write--now with a click I can wrap them around any highlighted word. And so on.  This isn't a very comprehensive review, since I've only been messing with it for a couple days, but bluefish definitely gets my tentative thumbs up. Your mileage may vary, and all the standard disclaimers apply...:-)



p.s.

the spell checker still has some issues.
#19
http://www.perl.com/pub/a/2007/12/06/soto-11.html">http://www.perl.com/pub/a/2007/12/06/soto-11.html
#20
newLISP Graphics & Sound / guiserver just hangs.
December 11, 2007, 01:21:54 PM
Howdy guys,



I tried to call newlisp-edit, and it never launches--the cursor just hangs there until finally I get the "Could not connect to guiserver" message.



I tried a sample with newlisp 9.2.0, and got


(load "guiserver/font-demo.lsp")
sh: /usr/bin/java: No such file or directory


Any ideas about what I can check to fix this?