Search found 173 matches
- Tue Jun 05, 2012 10:30 pm
- Forum: newLISP in the real world
- Topic: Geany editor newLISP definition file
- Replies: 4
- Views: 3251
Geany editor newLISP definition file
Hi, the Geany [0] editor comes with a LISP filetype definition file [1]. I would like to modify this to make it newLISP friendly. I would like any additional suggestion over what I am here asking if is the logical approach to modifying this LISP definition file to make a newLISP definition file. Fro...
- Tue Jun 05, 2012 7:09 pm
- Forum: newLISP in the real world
- Topic: getting nL symbols into the find-all regex?
- Replies: 5
- Views: 2888
Re: getting nL symbols into the find-all regex?
xytroxon,
You got me in business! :0)
I will combine the find-all w/ nL symbols technique cormullion taught above with your process-tags, [a.k.a. the laundromat :]
Big kickin! :D
You got me in business! :0)
I will combine the find-all w/ nL symbols technique cormullion taught above with your process-tags, [a.k.a. the laundromat :]
Big kickin! :D
- Tue Jun 05, 2012 6:04 pm
- Forum: newLISP in the real world
- Topic: getting nL symbols into the find-all regex?
- Replies: 5
- Views: 2888
Re: getting nL symbols into the find-all regex?
string - !!! I see, yes. Super! Thank you cormullion ! I am using the Geany text editor, and it has a LISP document filetype, which I use. I attached what it looks like on my screen. I do not see it highlighting symbols. These were already defined further up the page, enclosure-tag-open and enclosu...
- Tue Jun 05, 2012 3:16 am
- Forum: newLISP in the real world
- Topic: getting nL symbols into the find-all regex?
- Replies: 5
- Views: 2888
getting nL symbols into the find-all regex?
Hi - This is my working code to grab titles from my page: (set 'titles (find-all {<h2>.*</h2>} page $0)) Sometimes they are not <h2> tags that I have to look into to find my titles. Sometimes they are <a href=...> tags that are inside of <h2> tags. Tough! :0) I have definied two symbols, enclosure-t...
- Thu May 31, 2012 10:23 pm
- Forum: newLISP in the real world
- Topic: basic list understanding
- Replies: 4
- Views: 2501
Re: basic list understanding
Thanks very much, Patrick - I see now why the list wasnt working now. I will read the manual entries more carefully now. Beautiful and elegant solution. Awesome! :0) xytroxon - I go forward w/ your sage advice as my new mantra. The dolist / if / begin /etc template in now in me! Thanks for that! It ...
- Thu May 31, 2012 12:20 am
- Forum: newLISP in the real world
- Topic: basic list understanding
- Replies: 4
- Views: 2501
basic list understanding
Hi, I seem to be missing a basic understanding of what a list is. I am following cormullion 's "Building a list" example here: http://en.wikibooks.org/wiki/Introduction_to_newLISP/print#Building_lists where he says: (set 'vowels '("a" "e" "i" "o" "u")) ;-> ("a" "e" "i" "o" "u") ; an unevaluated list...
- Wed May 30, 2012 11:40 pm
- Forum: newLISP in the real world
- Topic: Getting higher frequency elements out of a list
- Replies: 3
- Views: 2042
Re: Getting higher frequency elements out of a list
Kickin!
Thanks Patrick and cormullion! Im on the move again!
Both are superb examples and really teach a lot! Much appreciated again! :0)
Thanks Patrick and cormullion! Im on the move again!
Both are superb examples and really teach a lot! Much appreciated again! :0)
- Tue May 29, 2012 6:59 am
- Forum: newLISP in the real world
- Topic: Getting higher frequency elements out of a list
- Replies: 3
- Views: 2042
Getting higher frequency elements out of a list
I have almost gotten this on my own, but am stumped. I am after a list of the words occurring two or more times in 'title-words, that are "good", sorted by frequency (high to low). Here I try: #/usr/local/bin/newlisp ; my list of words: (set 'title-words '("one" "two" "two" "three" "three" "three" "...
- Fri May 25, 2012 7:55 pm
- Forum: newLISP in the real world
- Topic: Simple nL Web Page in http mode
- Replies: 5
- Views: 2631
Re: Simple nL Web Page in http mode
doh!Does #!/usr/bin/newlisp refer to the correct path in your newLISP installation?
I changed it to /usr/local/bin/newlisp and corrected my module loading to this:
Code: Select all
(module "web.lsp")
- Wed May 23, 2012 11:23 pm
- Forum: newLISP in the real world
- Topic: Simple nL Web Page in http mode
- Replies: 5
- Views: 2631
Re: Simple nL Web Page in http mode
No longer cookin, newLISP v.10.3.3 on Linux IPv4/6 UTF-8 on Debian Squeeze i686 GNU/Linux. I launched the newLISP server with this: newlisp -http -d 8088 -w /home/joe/nl Inside my /home/joe/nl directory I have this file: -rwxr-xr-x 1 joe joe 334 May 23 18:15 index.cgi with this code: #!/usr/bin/newl...
- Thu May 17, 2012 2:31 am
- Forum: newLISP in the real world
- Topic: cleaning strings
- Replies: 8
- Views: 3652
Re: cleaning strings
Most excellent!
That is the magic regex of 4+ characters! :0)
Thanks very much Lutz and I will study the slight differences in your regexes.
Very much appreciated and thanks again!
That is the magic regex of 4+ characters! :0)
Thanks very much Lutz and I will study the slight differences in your regexes.
Very much appreciated and thanks again!
- Wed May 16, 2012 1:43 am
- Forum: newLISP in the real world
- Topic: cleaning strings
- Replies: 8
- Views: 3652
Re: cleaning strings
xytroxon, major thanks on using set, setq and setf properly! got it!
cormullion, thanks for the parse guidance because i will be using that a lot! ;0)
cormullion, thanks for the parse guidance because i will be using that a lot! ;0)
- Mon May 14, 2012 8:46 pm
- Forum: newLISP in the real world
- Topic: cleaning strings
- Replies: 8
- Views: 3652
Re: cleaning strings
Thanks xytroxon and bairui ! I appreciate the examples and now understand how to use them. Two things - I tried both examples with this string (containing random non letter/number characters): (setq input (parse "! @ # $$$ *- a bb ccc dddd eeeee ffffff")) (println input) (define (small? x) (< (lengt...
- Mon May 14, 2012 4:37 am
- Forum: newLISP in the real world
- Topic: cleaning strings
- Replies: 8
- Views: 3652
cleaning strings
Hi - I would like to know how to do one thing, please. I would like to know how to remove string elements which are less than 4 characters long from my string. (By characters, i mean letters, numbers, !/#/$//,/'/;/:/etc). For example: If my string is this: ("a bb ccc dddd eeeee ffffff") I would like...
- Mon Apr 23, 2012 10:25 pm
- Forum: newLISP in the real world
- Topic: regex help
- Replies: 5
- Views: 2964
Re: regex help
cormullion,
To the rescue, in character, thank you!
I see now how to get data out of a dolist loop and similarly now know how to wield the incredibly useful format function.
Many big thanks for that!
To the rescue, in character, thank you!
I see now how to get data out of a dolist loop and similarly now know how to wield the incredibly useful format function.
Many big thanks for that!
- Fri Apr 20, 2012 11:54 pm
- Forum: newLISP in the real world
- Topic: regex help
- Replies: 5
- Views: 2964
Re: regex help
On further request on this, if I may: I have a list which contains a lot of texts like the large one above, all similar. What is my best approach on extracting the same item information out of each item in the list, but keeping it associated with the same item? I want to create an xpath file, so tha...
- Fri Apr 20, 2012 7:06 pm
- Forum: newLISP in the real world
- Topic: regex help
- Replies: 5
- Views: 2964
Re: regex help
m i c h a e l -
it sure does! i gotta remember KISS when i tackle regexes. :0)
thanks big friend!
joejoe
it sure does! i gotta remember KISS when i tackle regexes. :0)
thanks big friend!
joejoe
- Fri Apr 20, 2012 4:27 am
- Forum: newLISP in the real world
- Topic: regex help
- Replies: 5
- Views: 2964
regex help
Ive tried for last three hours to get this one. :0) I *am* able to get a regex to work with this: find-all {<title>([^.]+)<\/title>} on the xml code below, but I tried this (and about 60 other iterations): find-all {<item>([^.]+)<\/item>} to get the entire value of the text between the <item> and </...
- Sun Mar 04, 2012 10:10 pm
- Forum: newLISP in the real world
- Topic: Authentication and Authorization
- Replies: 2
- Views: 1645
Re: Authentication and Authorization
I am not sure if your interests are covered here:
http://static.artfulcode.net/newlisp/web.lsp.html
http://static.artfulcode.net/newlisp/index.html
I think it covers sessions, which might help your auth's.
Other people know much more than I and will probably chime in too. ;0)
http://static.artfulcode.net/newlisp/web.lsp.html
http://static.artfulcode.net/newlisp/index.html
I think it covers sessions, which might help your auth's.
Other people know much more than I and will probably chime in too. ;0)
- Tue Nov 08, 2011 11:37 pm
- Forum: newLISP in the real world
- Topic: scrape url and replace to make new list
- Replies: 5
- Views: 2184
Re: scrape url and replace to make new list
Thanks again Cormullion!
I appreciate the guidance, always.
I appreciate the guidance, always.
- Tue Nov 08, 2011 8:53 pm
- Forum: newLISP in the real world
- Topic: scrape url and replace to make new list
- Replies: 5
- Views: 2184
Re: scrape url and replace to make new list
cormullion, thanks! With your notes, I managed to get at what I was after with this: (set 'the-source (get-url "http://nukene.ws/headlines")) (replace {<h2>(.+)<\/h2>} the-source (push $1 images-list -1) 0) (println images-list) Im getting strange characters, that I guess are complex text character...
- Tue Nov 08, 2011 4:31 am
- Forum: newLISP in the real world
- Topic: scrape url and replace to make new list
- Replies: 5
- Views: 2184
Re: scrape url and replace to make new list
Tried this too:
Code: Select all
(set 'the-source (get-url "http://nukene.ws/headlines"))
(replace {(<h2>\S*?</h2>)} the-source (push $1 images-list -1) 0)
(println images-list)
- Tue Nov 08, 2011 4:27 am
- Forum: newLISP in the real world
- Topic: scrape url and replace to make new list
- Replies: 5
- Views: 2184
scrape url and replace to make new list
Hi - I am using Cormullion's beautiful Intro to nL example: http://en.wikibooks.org/wiki/Introduction_to_newLISP/The_Internet#Accessing_web_pages He shows: (set 'the-source (get-url "http://www.apple.com")) (replace {src="(http\S*?jpg)"} the-source (push $1 images-list -1) 0) (println images-list) a...
- Thu Oct 06, 2011 7:08 pm
- Forum: Anything else we might add?
- Topic: newLISP paid code request - video capture upload script
- Replies: 2
- Views: 2934
Re: newLISP paid code request - video capture upload script
I forgot to mention the YouTube api documentation:
http://code.google.com/apis/youtube/2.0 ... ience.html
Cormullion, I can cover the video conversion settings if you can orchestrate the script. Thanks!
http://code.google.com/apis/youtube/2.0 ... ience.html
Cormullion, I can cover the video conversion settings if you can orchestrate the script. Thanks!
- Wed Oct 05, 2011 9:05 pm
- Forum: Anything else we might add?
- Topic: newLISP paid code request - video capture upload script
- Replies: 2
- Views: 2934
newLISP paid code request - video capture upload script
Hi - If there were a separate forum for requesting paid coding service, I would use it for this post. I would like to receive bids on a newLISP script described here: Essentially, the script would load a web page periodically in firefox, begin a video caputure of the web page (without any toolbars o...