Search found 92 matches

by jazper
Fri Jan 18, 2013 2:49 pm
Forum: newLISP newS
Topic: sqlite3 module: how to maintain lib paths
Replies: 10
Views: 12173

Re: sqlite3 module: how to maintain lib paths

On Ubuntu 12.10, I have two .so files on /usr/lib/x86_64-linux-gnu/: libsqlite3.so.0 libsqlite3.so.0.8.6 I chose the first, but I confess to have hovered over that: can one assume that 0.8.6 is an advance on the other? I tend to trust cosy integers when it comes to version numbers (if that is what t...
by jazper
Fri Jan 18, 2013 10:01 am
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 3358

Re: Elements: periodic_table sqlite example in User Guide

I ran Cormullion's elements.lsp code under Win XP at work: it ran without a hitch. That's Windows 2, Ubuntu 0. Sigh. I foresee some bloodshot eyes ahead, trying to figure out why it will not work under Ubuntu 12.10. I built newLISP from source for Ubuntu 12.04 64 bit around July 2012, after a prompt...
by jazper
Thu Jan 17, 2013 7:35 pm
Forum: newLISP newS
Topic: sqlite3 module: how to maintain lib paths
Replies: 10
Views: 12173

Re: sqlite3 module: how to maintain lib paths

Thanks, rickyboy, it's good to have that in print so we can search for it. As an Ubuntu user, I have had to do this many times. In fact, the location of the .so file has even changed at least once that I can remember on Ubuntu itself. I did not think of putting it in print here - perhaps I have a lo...
by jazper
Thu Jan 17, 2013 1:56 pm
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 3358

Re: Elements: periodic_table sqlite example in User Guide

Well, thanks for your attentions, Cormullion - your fuller program works straight off on my Win 76 64 bit setup - I commented out the chdir to /tmp line (too impatient to go creating it), but that is the only change I made. All element data was inserted, and all the queries worked. The attempt made ...
by jazper
Thu Jan 17, 2013 12:15 pm
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 3358

Re: Elements: periodic_table sqlite example in User Guide

I ran the fuller example, but it - first it reports this: create table t1 (number INTEGER, atomic_weight FLOAT, element TEXT, symbol TEXT, mp FLOAT, bp FLOAT, density FLOAT, earth_crust FLOAT, discovered INTEGER, egroup INTEGER, ionization FLOAT); created table ... Ok then comes up with this: ERR: d...
by jazper
Thu Jan 17, 2013 12:07 pm
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 3358

Re: Elements: periodic_table sqlite example in User Guide

Thanks, Cormullion. Snap. After closing down, I realised that empty line was probably it, but you got there before me!

I will try your fuller example.
by jazper
Thu Jan 17, 2013 8:21 am
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 3358

Elements: periodic_table sqlite example in User Guide

I have never been able to get this to work. After tweaking the elements string to ensure there are 11 items in each line (I take out the ellipsis in the example, and shorten the list to 5 lines just for testing), it never has yet inserted the elements into sqlite3, yet it also does not report an err...
by jazper
Thu Jan 17, 2013 5:34 am
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 1620

Re: cgi again

Thanks too, to RickyBoy. Popcorn is back in the cupboard, waiting for next time
by jazper
Thu Jan 17, 2013 5:31 am
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 1620

Re: cgi again

Thanks again, Bairui. You did spot some other errors: they were corrected in the code you posted. I had used (single quoted) symbols for arguments when defining the two queries "insrt" and "rslt". The modules had been working the way I loaded them before, but your code looks so much better. It was t...
by jazper
Wed Jan 16, 2013 7:33 pm
Forum: newLISP newS
Topic: newLisp on Android
Replies: 6
Views: 9135

Re: newLisp on Android

This is very exciting. I recently bought my first smartphone, a bottom range model, and invested some money in Basic4Android. I have played with that a bit, but then life intervened ... and then the festive season, and then .... Does this newLISP implementation permit making buttons, views etc in th...
by jazper
Wed Jan 16, 2013 7:20 pm
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 1620

Re: cgi again

Well, Bairui, what can I say? You nailed my funnies there, and it works fine now. Apart from removing the single quote where I had a symbol as an argument, you also used a NULL for the AUTOINCREMENT. In the past, I have successfully used an empty string, but NULLS as well. I just forgot. Did you mak...
by jazper
Wed Jan 16, 2013 2:26 pm
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 1620

Re: cgi again

Thanks for your input. I will give those changes a try, and report back. I too, am making a note to buy some popcorn ...
by jazper
Wed Jan 16, 2013 10:52 am
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 1620

cgi again

I have never got the example in the User Guide to work. I can get it to list a result set if I manually insert rows into the Elements Sqlite3 database, but nothing gets written via code. Lately, I have been basing an attempt to write to a simple user, email database, from a webform. This is what I w...
by jazper
Wed Jan 16, 2013 10:40 am
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 6248

Re: How to get newLISP popular?

Thanks to Lutz in particular and everyone who helped make this such great language. As to making it more popular, it would need to be "ubiquitous". Lua is, python is, in their respective territories, but newLISP hasn't really got a "turf" yet. "Hello World" is SO last century. Why not make the botto...
by jazper
Fri Jul 20, 2012 10:42 am
Forum: newLISP in the real world
Topic: goalseek (as in Excel)
Replies: 3
Views: 1187

Re: goalseek (as in Excel)

Thanks, xytroxon. I will have to roll my own Goal Seek. Perhaps some of these functions will help.
by jazper
Tue Jul 17, 2012 8:52 pm
Forum: newLISP and the O.S.
Topic: Ubuntu 12.04 64 bit
Replies: 4
Views: 2050

Re: Ubuntu 12.04 64 bit

I lied. I did not give up :) Working on the same basis as with libffi-dev to find a .h header file, I took a flying, lucky guess, and tried installing libreadline-dev. That worked - then, both make and sudo make install proceeded without a hitch. After that, the guiserver.jar file was not found. Ins...
by jazper
Tue Jul 17, 2012 7:44 pm
Forum: newLISP and the O.S.
Topic: Ubuntu 12.04 64 bit
Replies: 4
Views: 2050

Re: Ubuntu 12.04 64 bit

Finally had time to try to build on 64-bit. It did indeed choke on ffi. After installing libffi, it then choked on readline/readline.h. In the past, I have often installed libreadline5, but that didn't help, because it is no longer used. I then followed some googled instructions about libreadline5-d...
by jazper
Wed May 30, 2012 8:54 pm
Forum: newLISP in the real world
Topic: goalseek (as in Excel)
Replies: 3
Views: 1187

goalseek (as in Excel)

I use GoalSeek a fair amount in spreadsheets. It's fast enough, but I confess I don't understand how it works. Googling produced discussions about Newton Rhapson, something that Computer Science and Math students seem to know about. Having last looked at math a half century ago on finishing my schoo...
by jazper
Thu May 10, 2012 2:33 pm
Forum: newLISP and the O.S.
Topic: Ubuntu 12.04 64 bit
Replies: 4
Views: 2050

Re: Ubuntu 12.04 64 bit

Thanks. I have just bought a new 64 bit system. Will try the suggestion when I have some spare time.
by jazper
Wed May 09, 2012 6:23 pm
Forum: newLISP and the O.S.
Topic: Ubuntu 12.04 64 bit
Replies: 4
Views: 2050

Ubuntu 12.04 64 bit

I couldn't get a good install of newLISP on Precise Pangolin 64 bit. I can see newlisp and its files on /usr/bin/newlisp, but when trying

Code: Select all

newlisp-edit
I get

Code: Select all

/usr/bin/newlisp - bad interpreter: No such file or directory
I assume one uses the 32 bit installer under Ubuntu 64 bit, right?
by jazper
Wed May 02, 2012 2:10 pm
Forum: So, what can you actually DO with newLISP?
Topic: Nikhil Marathe, Newlisp Bindings for Redis Database
Replies: 4
Views: 3788

Re: Nikhil Marathe, Newlisp Bindings for Redis Database

Thanks once again, Lutz.

I have not done any FOOP. Seems like I am about to start! Because it appears a few tweaks of redis.lsp will be needed.
by jazper
Tue May 01, 2012 8:22 pm
Forum: So, what can you actually DO with newLISP?
Topic: Nikhil Marathe, Newlisp Bindings for Redis Database
Replies: 4
Views: 3788

Re: Nikhil Marathe, Newlisp Bindings for Redis Database

I was really pleased to find this, and I am very keen to use it. However, to quote the old song "I can't get started". I have started redis-server, and have redis-cli running. Then I try to run the little sample from redis.lsp: (load "/home/myname/newlisp-redis/redis.lsp") (setf 'conn (redis)) (:pin...
by jazper
Tue May 01, 2012 1:32 pm
Forum: newLISP Graphics & Sound
Topic: java message on GS load
Replies: 6
Views: 5801

Midi demos on Ubuntu 12.04

Without making any changes since upgrading, both newLISP midi demos at least now do something . midi-demo.lsp brings up a message box gs:midi-patch - instrument not known When I press OK, it then plays the programmed scale sequence, on a piano. But maybe the piano is a default. midi2-demo.lsp does t...
by jazper
Mon Apr 30, 2012 5:32 pm
Forum: newLISP Graphics & Sound
Topic: java message on GS load
Replies: 6
Views: 5801

Re: java message on GS load

Thanks to you too. I had not noticed a problem, but checked now to find I had already switched to "radiance".

As to sound, I have always struggled with both midi demo programs, and in fact with sound on Ubuntu, throughout the years. I will give them a try, and report back.
by jazper
Sun Apr 29, 2012 8:46 pm
Forum: newLISP Graphics & Sound
Topic: java message on GS load
Replies: 6
Views: 5801

solved java errors - Ubuntu Precise Pangolin

After Ubuntu Precise Pangolin solved the java GTK message problem, it was otherwise a very pleasant upgrade for me. The Unity loader works without problems now, but what's really great is the new Heads Up Display replacing menus. I click the Windows key, and the HUD overlays the desktop in transpare...