Search found 46 matches
- Sat Nov 24, 2018 7:54 pm
- Forum: newLISP in the real world
- Topic: help with a database in newlisp
- Replies: 4
- Views: 3938
Re: help with a database in newlisp
thank you I'll have a look.
- Sat Nov 24, 2018 1:28 pm
- Forum: newLISP in the real world
- Topic: help with a database in newlisp
- Replies: 4
- Views: 3938
help with a database in newlisp
Hi guys, I need a little help with creating a database with newlisp. I'd like to use "lookup" to search for various things, but I'm not sure how to create the database with all the needed elements. here's the result of what I have now: (set 'all-computers '( ((atag "444") (person "yyy") (room "") (r...
- Tue Nov 07, 2017 1:02 am
- Forum: newLISP in the real world
- Topic: Giving nil a value
- Replies: 1
- Views: 2682
Giving nil a value
Hi guys, I would like to replace any and all nils in a list with "none" . If I can see the nil (set 'a '(1 2 nil 4)) I can do (setf (a 2) "none") but (dolist (i a)(when (null? i)(setf i "none"))) returns nil. and (null? (a 2)) returns true. How might I fix this? I don't know where a nil might pop up...
- Sun Oct 29, 2017 1:29 pm
- Forum: newLISP in the real world
- Topic: csv to nested list?
- Replies: 1
- Views: 3152
csv to nested list?
Hi guys, I would like to use lookup and/or assoc to generate html tables. The source data will come from 4 different csv (maybe tsv) files. This bit from the manual seems almost perfect: (set 'persons '( (id001 (name "Anne") (address (country "USA") (city "New York"))) (id002 (name "Jean") (address ...
- Sun Jul 30, 2017 8:49 pm
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 6328
Re: String interpolation
Something like this?
Code: Select all
> (set (sym "foo") "bar")
"bar"
> foo
"bar"
> (set 'a "one :two: three")
"one :two: three"
> a
"one :two: three"
> (replace ":two:" a foo)
"one bar three"
>
- Tue Dec 30, 2014 6:01 pm
- Forum: Anything else we might add?
- Topic: NewLISP GUI using web elements
- Replies: 2
- Views: 6600
- Mon Oct 27, 2014 10:23 pm
- Forum: newLISP in the real world
- Topic: (newbie) Listiness
- Replies: 6
- Views: 5242
Re: (newbie) Listiness
This way also seems to work...
Code: Select all
(set 'a (parse (read-file "foo.tmp") "\n"))
(dolist (item a)
(unless (or (starts-with item "\#")(empty? item))
(push item box -1)))
(dolist (item box)
(set 'z (parse item ":"))
(push (cons (int (first z))(last z)) bag -1))
- Thu Nov 28, 2013 3:29 pm
- Forum: newLISP in the real world
- Topic: how to make newlisp app run in background
- Replies: 6
- Views: 3146
Re: how to make newlisp app run in background
or use screen and detach the session...
- Mon Nov 04, 2013 10:53 pm
- Forum: newLISP in the real world
- Topic: arranging list items
- Replies: 8
- Views: 3672
Re: arranging list items
I'm still not sure of the best way to create a new list by combining sub1 sub2 and sub3. Is this a job for "array?" an example would be appreciated...
- Sun Nov 03, 2013 11:14 am
- Forum: newLISP in the real world
- Topic: arranging list items
- Replies: 8
- Views: 3672
Re: arranging list items
I didn't include all the elements from the op in the diagram. do you mean make three different combined lists, or did you only include the elements in the diagram?
now, how to do it...
now, how to do it...
- Sun Nov 03, 2013 4:43 am
- Forum: newLISP in the real world
- Topic: arranging list items
- Replies: 8
- Views: 3672
Re: arranging list items
I think something like this:jopython wrote:And how would be the final desired list look like for this example?
'((0 (1(2))(3(4 5))(6(7 8 9 10)))(11(12(13))(14)(15(16 17)))(18(19(20)))(21))
- Sun Nov 03, 2013 3:55 am
- Forum: newLISP in the real world
- Topic: arranging list items
- Replies: 8
- Views: 3672
Re: arranging list items
Your intentions are not clear in your example. sorry. I would like to combine these lists so that 1, 3, and 6 would be nested under 0 2 would be nested under 1 4 and 5 would be nested under 3 7 8 9 and 10 would be nested under 6 here's a terrible diagram 0 | / \ 1 3 6__ | | | 2 | | | | | | / \ | 4 ...
- Sat Nov 02, 2013 9:31 pm
- Forum: newLISP in the real world
- Topic: arranging list items
- Replies: 8
- Views: 3672
arranging list items
hi guys, I'm making a directory structure and an outline. I have the index positions of items in lists: > sub1 (0 11 18) > sub2 (1 3 6 12 14 15 19 21) > sub3 (2 4 5 7 8 9 10 13 16 17 20) elements in sub1 are the top-level directories sub2 elements are subdirectorys of sub1 elements sub3 elements are...
- Thu Sep 05, 2013 11:48 pm
- Forum: newLISP and the O.S.
- Topic: newlisp on android build question.
- Replies: 0
- Views: 3193
newlisp on android build question.
Hi guys, I followed the instructions on the android page and got a binary that worked fine on the 2012 nexus 7. It does not work on the 2013 nexus 7. I get this when I tried to run it: cannot link executable: empty/missing DT_Hash in "./newlisp" (built with --hash-style=gnu?) as a shot in the dark I...
- Sat Aug 03, 2013 2:01 pm
- Forum: newLISP in the real world
- Topic: is this a bug?
- Replies: 3
- Views: 2300
is this a bug?
Code: Select all
> (set 'a "0821")
"0821"
> (int a)
0
Code: Select all
> (integer? 0821)
true
- Wed Jan 02, 2013 1:13 am
- Forum: Anything else we might add?
- Topic: old newlisp blog software
- Replies: 3
- Views: 3409
Re: old newlisp blog software
I don't think it was ever used for the main site. you could toggle comments in a sidebar, I think. I'll have to really dig around, but maybe I can find a backup of mine around somewhere...cormullion wrote:Which blog is that ? I think Lutz has always used the wiki for the main newLISP site...
- Tue Jan 01, 2013 9:42 pm
- Forum: Anything else we might add?
- Topic: old newlisp blog software
- Replies: 3
- Views: 3409
old newlisp blog software
howdy guys,
does anybody have a copy of the old blog script(s)? I think it disappeared because it was insecure, or it was depreciated in favor of newlisp wiki--I don't remember. Anyway, I just want to look at it, not necessarily use it.
does anybody have a copy of the old blog script(s)? I think it disappeared because it was insecure, or it was depreciated in favor of newlisp wiki--I don't remember. Anyway, I just want to look at it, not necessarily use it.
- Tue Jan 01, 2013 9:36 pm
- Forum: newLISP in the real world
- Topic: -=((( HAPPY NEW YEAR 2013 )))=-
- Replies: 8
- Views: 4950
Re: -=((( HAPPY NEW YEAR 2013 )))=-
happy new year everybody!
- Thu Nov 03, 2011 1:27 am
- Forum: newLISP in the real world
- Topic: bad code, strange error
- Replies: 2
- Views: 1489
Re: bad code, strange error
I can't reproduce the error. dang.
Still, up 'til now, I've never typed or seen (PLUG) anywhere, ever.
I worked around the problem, so I never saw it again, but I think it's weird too.
Still, up 'til now, I've never typed or seen (PLUG) anywhere, ever.
I worked around the problem, so I never saw it again, but I think it's weird too.
- Wed Nov 02, 2011 2:52 pm
- Forum: newLISP in the real world
- Topic: bad code, strange error
- Replies: 2
- Views: 1489
bad code, strange error
Hey guys, this (set 'agz (main-args 2)) (set 'onetwo (parse agz ".")) (if (= (length onetwo) 1)(append onetwo ".org") (set 'onetwotwo (cons (onetwo 0)(onetwo 1)))) results in this ERR: invalid function : (PLUG) Ok, so the code is probably a terrible perversion, but I'm curious about the error.
- Tue Apr 05, 2011 10:03 pm
- Forum: newLISP and the O.S.
- Topic: file operations by process id
- Replies: 3
- Views: 3362
Re: file operations by process id
Rox is a file manager that you can configure to have panels along your screen's edge displaying directories or binaries or scripts. I know one reason I'm having problems: /usr/bin/rox is itself a shell script, and the pid resulting from running "rox --panel=mypanel" is not the pid of the actual pane...
- Tue Apr 05, 2011 4:00 pm
- Forum: newLISP and the O.S.
- Topic: file operations by process id
- Replies: 3
- Views: 3362
file operations by process id
Hey guys, This is for Linux. I use rox panels along the edges of my screen, and to save space I'd like to toggle them on and off. to open a panel I use, for instance, $ rox --top=panel-name to kill the panel, $ rox --top= I wrote something that calls "ps aux" and it will only kill the process, but n...
- Thu Dec 16, 2010 1:12 pm
- Forum: Whither newLISP?
- Topic: newLisp without collateral effects
- Replies: 23
- Views: 15044
Re: newLisp without collateral effects
Ok, sorry, disregard. I thought I'd take a stab at it.
- Thu Dec 16, 2010 12:22 pm
- Forum: Whither newLISP?
- Topic: newLisp without collateral effects
- Replies: 23
- Views: 15044
Re: newLisp without collateral effects
"silent" suppresses console output, or you could run your code from a script.
- Sun Sep 12, 2010 12:54 pm
- Forum: Anything else we might add?
- Topic: remember the bracket notation thread?
- Replies: 8
- Views: 5109
Re: remember the bracket notation thread?
That's the one. I only just now had a reason to try it.