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 - jazper

#1
Quote from: "cormullion"I've been trying out the new Node.js-based editor, Atom.io. There's a lot to like about it, but the central problem is that it's slowish - it struggles with loading new documents, for example. Perhaps we all spend so much time waiting in web browsers anyway, it's not a problem... :)


I also tried it.  I don't mind its speed, but could not find a way to run a newLISP script from it.
#2
newLISP and the O.S. / Re: Guiserver on Win10
August 11, 2016, 02:39:12 AM
Try running guiserver.jar from java
#3
newLISP and the O.S. / Re: Guiserver on Win10
August 09, 2016, 03:35:44 AM
Do you have Java installed?  I had no problem with newLISP installer on win 10 (64 bit) a few days ago
#4
newLISP Graphics & Sound / Re: Guiserver again
July 10, 2016, 01:44:16 PM
This problem sorted itself out somehow.  I'm on Ubuntu 16.04.  I installed newLISP from the download.  After not getting the GuiServer to work, I left things for these few months, & had my newLISP fun on windows.  Then, I found a post on how to install Oracle Java on Ubuntu 16.04.  I followed that, & the guiserver just worked.  It was not necessary to create a symlink.



See https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04">//https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
#5
newLISP Graphics & Sound / Re: Guiserver again
April 20, 2016, 10:20:49 PM
I was wrong about one thing:  the version.  I am on Ubuntu 15.10
#6
newLISP Graphics & Sound / Re: Guiserver again
April 20, 2016, 08:00:35 AM
NEWLISPDIR does not persist.   I set it and restart, and it's not there using
Quoteprintenv
or
Quoteprintenv NEWLISPDIR


There are a confusing number of totally different posts on askbuntu on how to set it on startup, (~/.profile, ~/.local.rc, ~/.pam_environment, and some files in /etc) all of which I have tried, and none work.  



Anyhow, even after setting it for a terminal session and checking that it still there, it doesn't change things
#7
newLISP Graphics & Sound / Re: Guiserver again
April 20, 2016, 07:14:48 AM
Setting NEWLISPDIR does not help:
QuoteNEWLISPDIR=/usr/local/share/newlisp

export NEWLISPDIR
is what I do.



The java problem remains.
#8
newLISP Graphics & Sound / Re: Guiserver again
April 19, 2016, 12:36:52 PM
Thanks for the NEWLISPDIR tip.  I will try setting that. However, this java response has dogged me for days:  any attempt to call java results in this response in the terminal:
QuoteThe program 'java' can be found in the following packages:

* default-jre

* gcj-4.9-jre-headless

* gcj-5-jre-headless

* openjdk-7-jre-headless

* gcj-4.8-jre-headless

* openjdk-6-jre-headless

* openjdk-8-jre-headless

Try: sudo apt-get install <selected package>


I even tried it with these installed, with the same result.
#9
newLISP Graphics & Sound / Scite editor
April 17, 2016, 12:09:43 PM
I also installed Scite, replacing lisp.properties with Kazmir's file. Running a one line "Hello World" file named "hello.lsp" returns bash exit code 127
Quotecmd /K "newlisp -c /home/myname/Desktop/hello.lsp"

is what is being sent to bash.



Can anyone throw any light on why this is happening and newlisp is not being called, please?
#10
newLISP Graphics & Sound / Guiserver again
April 17, 2016, 11:54:09 AM
Hi all.  With a new installation of Ubuntu 15.04, I installed java (not the jre that comes with ubuntu) from Oracle, as shown in the downloads page.  The result is that the java executable is found at
Quote/usr/bin/java/jre1.8.0_77/bin/java


I then created a link, with
Quotesudo ln -s /usr/bin/java/jre1.8.0_77/bin/java /usr/bin/java


This however does not find guiserver.jar when
Quotenewlisp-edit
is typed.  Am I linking incorrectly?  The newlisp executable is in /usr/local/bin
#11
newLISP Graphics & Sound / Re: HTML Tag functions?
December 23, 2013, 01:17:41 PM
I tried the changes suggested by xytotron (replacing 26 with 01), without success.



It still runs fine directly from newLISP or in Scite, which calls newLISP switched as follows:newlisp -n -c -s 400000
Since it runs fine from newLISP without setting a stack size, I haven't tried to find or fiddle with defaults called from the IDE.  For my next trick, a hex editor will be used to see if there are line end problems.  I remember fixing something like this in the past.
#12
newLISP Graphics & Sound / Re: HTML Tag functions?
December 19, 2013, 03:20:36 PM
After testing, the code works when called from newLISP, so I'm not bothered about IDE problems.
#13
newLISP Graphics & Sound / Re: HTML Tag functions?
December 17, 2013, 08:57:19 PM
Interesting.  Just gets curiouser and curiouser.  On my Win 7 Dell at home, ran sxmlhtml.lsp in Scite: it ran perfectly, and produced test.html without a hitch. But newLISP GS editor produced exactly the error found on my Crunchbang 64 bit box.
#14
newLISP Graphics & Sound / Re: HTML Tag functions?
December 17, 2013, 12:34:08 PM
Much appreciated, thanks xytotron.  I very much admire that code.  



The .lsp file ran straight off in Win 7, but returned
ERR: list or string expected : nil
called from user defined function page1:pre
called from user defined function page1:b
called from user defined function page1:p
called from user defined function page1:body
called from user defined function page1:html
called from user defined function page1:xml-document
on my 64 bit Crunchbang box.  I guess that's line endings when unzipping or something.  Will have a look tomorrow when I'm fresh.
#15
newLISP Graphics & Sound / HTML Tag functions?
December 13, 2013, 09:14:01 AM
Some time ago, one of the frequent contributors posted some code showing how to do HTML tags.  I think it was in a context for each tag.  Since bookmarking that, my hard disk died, and some bookmarks with it, though I had copies of all the main stuff.



Please can someone point me to this post, or the code in it?  For example, a function called as (h1 string) would produce<h1>string</h1>.  



It was better than this, though, because it included args, allowing for classes etc.