Search found 2038 matches

by cormullion
Thu Jan 17, 2013 1:02 pm
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 8147

Re: Elements: periodic_table sqlite example in User Guide

Since it works for me, there could be some platform-dependent issues. The init-table function was just a quick hack to fill a database. If it's causing you problems, you should debug the line and item parsing code until you find the error. Sorry that you're finding issues everywhere today.. :(
by cormullion
Thu Jan 17, 2013 11:25 am
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 8147

Re: Elements: periodic_table sqlite example in User Guide

I think this is your problem:

Code: Select all

5 268 Meitnerium Mt 0 0 0 0 1982 9 0
[/text])
Spot the empty line at the end? If you delete that, it works. Perhaps the parse routines need tightening up... ;)
by cormullion
Thu Jan 17, 2013 11:05 am
Forum: newLISP in the real world
Topic: Elements: periodic_table sqlite example in User Guide
Replies: 22
Views: 8147

Re: Elements: periodic_table sqlite example in User Guide

Coincidentally, I uploaded an old test example this morning, following the forum posts yesterday... http://github.com/cormullion/newlisp-projects/blob/master/sqlite-periodic-table.lsp and it works on my machine. Make sure the directory is writeable before you start - (change-directory "/tmp") for ex...
by cormullion
Wed Jan 16, 2013 11:09 pm
Forum: newLISP in the real world
Topic: cgi again
Replies: 12
Views: 4646

Re: cgi again

You're right, there is a small error in the sqlite example on Wikibooks - the A% near the end should have single quotes... Now fixed. Honestly I know very little about CGI or Sqlite, , other than my clumsy scribblings on the subject ( https://newlisper.wordpress.com/2008/02/12/a-newlisp-cgi-web-page...
by cormullion
Wed Jan 16, 2013 8:39 am
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 12877

Re: How to get newLISP popular?

Some good points there. Apart from the bit about engaging with the mainstream Lisp community.... only a masochist would waste any time doing that... :)
by cormullion
Thu Jan 10, 2013 4:27 pm
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6941

Re: Searching in lists

Once I tried to make it so that an XML file would execute itself. So after converting an xml file to sxml, you'd then evaluate the sxml, having previously defined functions called title , item or status which would evaluate their attributes in turn. I think it all went wrong with the @ signs - can't...
by cormullion
Wed Jan 09, 2013 11:01 pm
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6941

Re: Searching in lists

Thanks! Someone else's turn now, though :)
by cormullion
Wed Jan 09, 2013 10:47 pm
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6941

Re: Searching in lists

You could make this into a blog post... :) Always good to read something by you!
by cormullion
Wed Jan 09, 2013 5:04 pm
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 12877

Re: How to get newLISP popular?

Pixie Scheme III is available under the GNU General Public License, and is on the App store. Gambit Scheme is LGPL, and is on the App store now. And you can use Gambit Scheme to build iOS apps too, which is even cooler, and those apps are also allowed on the App store. Lua is MIT licensed, and iLua ...
by cormullion
Wed Jan 09, 2013 8:39 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6941

Re: Searching in lists

Moon phases ... :)
by cormullion
Wed Jan 09, 2013 8:37 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6941

Re: Searching in lists

Without seeing your file, it's not easy to suggest anything precisely, but for general tips on importing XML, see if any of this Wikibooks chapter is useful.
by cormullion
Tue Jan 08, 2013 7:23 pm
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 12877

Re: How to get newLISP popular?

There are so many ways you can promote a language. But ultimately languages thrive if they're being used, rather than just being talked about. As an embedded scripting language, newLISP would be a good competitor for Lua. Perhaps there are some opportunities there. Interfacing newLISP to some big ap...
by cormullion
Sat Jan 05, 2013 12:37 pm
Forum: newLISP in the real world
Topic: ZZBlogX A static blog generator
Replies: 5
Views: 2763

Re: ZZBlogX A static blog generator

Good job! I actually found some change notes too...

http://newlisper.wordpress.com/category/newlisp/page/2/
by cormullion
Sat Jan 05, 2013 8:47 am
Forum: newLISP newS
Topic: libevent2
Replies: 6
Views: 8599

Re: libevent2

Hi Jeff. It has indeed been a while - glad to see you've not forgotten anything!
by cormullion
Sat Jan 05, 2013 8:39 am
Forum: newLISP in the real world
Topic: accessing deeply nested lists (XPath?)
Replies: 12
Views: 4443

Re: accessing deeply nested lists (XPath?)

I think rickyboy gets to wear the ninja costume this weekend...

Image
by cormullion
Fri Jan 04, 2013 5:16 pm
Forum: newLISP in the real world
Topic: ZZBlogX A static blog generator
Replies: 5
Views: 2763

Re: ZZBlogX A static blog generator

Hey, Didi, this is good work. As ricky said, it's easy enough to run this on MacOS X or Unix, just ignore the .BAT and .EXE files, and run settings.lsp directly using newlisp settings.lsp However, there are some issues with line breaks, since (on Mac) I'm using LFs rather than CRLFs. The line I chan...
by cormullion
Fri Jan 04, 2013 12:40 pm
Forum: newLISP in the real world
Topic: accessing deeply nested lists (XPath?)
Replies: 12
Views: 4443

Re: accessing deeply nested lists (XPath?)

Looks OK - soon you'll be master of the black arts of match!
by cormullion
Fri Jan 04, 2013 9:01 am
Forum: newLISP in the real world
Topic: accessing deeply nested lists (XPath?)
Replies: 12
Views: 4443

Re: accessing deeply nested lists (XPath?)

Can you use wildcards with match?

Code: Select all

(ref-all '(* ("cachePagesTrack" 200) * ) data match)
;->
((0 1 0 1 0 2 1) 
 (0 1 0 1 1 2 1) 
 (0 1 0 1 2 2 1) 
 (0 1 0 1 3 2 1) 
 (0 1 0 1 4 2 1) 
 (0 1 0 1 5 2 1) 
 (0 1 0 1 6 2 1))
by cormullion
Wed Jan 02, 2013 6:13 pm
Forum: Anything else we might add?
Topic: old newlisp blog software
Replies: 3
Views: 3386

Re: old newlisp blog software

I once had a blogging thing that let you toggle between all and recent posts when you clicked on the stacked parentheses in the left column... Seems like a long time ago now, although the files say Feb 2008...
by cormullion
Tue Jan 01, 2013 10:24 pm
Forum: Anything else we might add?
Topic: old newlisp blog software
Replies: 3
Views: 3386

Re: old newlisp blog software

Which blog is that ? I think Lutz has always used the wiki for the main newLISP site...
by cormullion
Sun Dec 30, 2012 9:43 pm
Forum: newLISP in the real world
Topic: Encrypt output transform, help please?
Replies: 8
Views: 5323

Re: Encrypt output transform, help please?

Perhaps Base64 encode/code it while its' travelling ?
by cormullion
Sun Dec 30, 2012 11:08 am
Forum: newLISP and the O.S.
Topic: Benchmarking newLISP
Replies: 28
Views: 26678

Re: Benchmarking newLISP

Haven't got one, but I always thought it was a great idea. However I'd picked up the impression that it was really fast —people talking about HD video and things —but it's obviously not yet up to PC speed yet for general tasks. However, putting a few together might be a different story.
by cormullion
Fri Dec 21, 2012 8:58 am
Forum: newLISP newS
Topic: newLisp on Android
Replies: 6
Views: 13597

Re: newLisp on Android

Good job - well done. Next, how about the iPhone? :)