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

Messages - tom

#1
Whither newLISP? /
October 12, 2009, 01:29:00 PM
There is already a git repository up somewhere, I think.



Git is awesome, btw--phooey on those pretenders... :-)
#2
newLISP newS /
August 25, 2009, 06:10:50 PM
(never mind)
#3
newLISP in the real world /
August 22, 2009, 06:14:10 PM
Quote
before they start charging you for advice... :)


too late...
#4
newLISP in the real world /
August 21, 2009, 02:37:54 PM
How are you running the wiki?  with a server like apache or with newlisp?  With apache I think you have to change the ownership of files as well as the permission.  Running locally with newlisp, I haven't had to mess with either.
#5
newLISP in the real world /
August 21, 2009, 09:38:37 AM
I should probably keep all of my blathering about this to one topic--I just noticed I've started four of them so far for just simple questions.  Sorry about that.  In an effort to consolidate, I'll revisit a question from one of those other topics here:  Why won't my modified  newlisp wiki work in Internet Explorer in Windows?  It works in Firefox in Windows.  I solved the problem once, and it worked, but now I've gone and forgotten what I did.  It was something simple.  Any ideas?
#6
newLISP in the real world /
August 19, 2009, 06:34:12 AM
Ok, I have my famous web app working, more or less, but I've still got questions to assail you guys with.  a generated web page displays newlisp errors that are expected but harmless.  I tried to use some error handling functions to keep it from displaying, but with no luck.  the page tries to display parts of a list that doesn't exist yet; click the submit button and the error goes away.  What can I do about that?
#7
newLISP in the real world /
August 11, 2009, 07:48:39 AM
Those are great improvements and I'll see where I can use them.  thanks!  I may get this working yet.
#8
newLISP in the real world /
August 09, 2009, 09:01:39 PM
I probably don't have to pop anything, but the better solution is evading me.



Shield your eyes, here is a bit of code. stu is the list.



(dotimes (x 5)(if (empty? stu)(push "Nobody" stu))(print (append "<td>"(string(inc w 1)) ". [["(set 'blap (pop stu))"]][image:" blap".gif ]</td>")))


If you stare at that too long, insanity may result.  You have been warned.

:-)
#9
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?
#10
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!
#11
newLISP in the real world /
August 04, 2009, 10:49:11 AM
its strings, and I want to keep specified duplicates.



("name" "name" "name" "nobody" "nobody" "nobody")



to



("name" "nobody" "nobody" "nobody")
#12
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...
#13
newLISP in the real world /
August 03, 2009, 01:42:39 PM
Yep, that fixed it.  



If I hit submit after editing a wiki page, I get "internet explorer cannot display this web page".  in IE seven.  Firefox works just fine.



Is it an IE setting or something like that?



--edit--



never mind...  I fixed that part of it.
#14
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?
#15
newLISP newS /
July 03, 2009, 01:51:41 PM
I just emailed the newlisp maintainer at the freebsd ports repository, or whatever it's called, and asked him to update to 10.1.0 so that I could in turn ask the nearlyfreespeech guys to update (they only use what's in the ports collection).



the maintainer said he could not build 10.1.0, but he did not elaborate.  Just thought I'd mention it.