[Tool] Nlist - remote content/code-browsing -

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

hahah yes sorry....
download the new one or remove the proxy setting inside
the nlist.lsp... (setenv PROXY..) I forgot to remove it befor uploading...

Norman.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

just released version 0.8
(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

see help for changes to v0.8.


PS: cormullion, does it show correctly on OsX?
(now its with Java gui default)


Norman.
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

It looks - different! I much prefer the native look to the Java look, though. The fonts aren't smoothed in the Java interface, I think...

Tthe big browser window at the right doesn't seem to update to show the file contents, although the status readout reflects the selection...

Image

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

It looks - different! I much prefer the native look to the Java look, though. The fonts aren't smoothed in the Java interface, I think...

Tthe big browser window at the right doesn't seem to update to show the file contents, although the status readout reflects the selection...

Thanks for the screen dump. and feedback. ;-)

If you remove the (gs:set-look-and-feel "javax.swing.plaf.metal.MetalLookAndFeel") I dont know what it now will do on the Mac ?? (If you test this remove the nlist.cfg too and restart nlist.lsp)


Well yes the output window has default now "Monospaced fonts" this is perhpas an ugly font but it seems the only font that equals Graphics to Console text conversion (now the Tabs and spaces are correct in size and
the text is outlined better)

*Correction added*
You are using V0.9 If you downloaded the latest GS 1.10 from lutz you should
see with 1 Click the Info of the Link/File at the bottom and with 2 clicks it loads the content..If you did not download the G1.10 then only 2 clicks work..

I like the 1 click direct load also, but to be able to scroll through the info
of nlist.idx the 1 click now shows the info without loading.



Norman.
-- (define? (Cornflakes))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

You are using V0.9 If you downloaded the latest GS 1.10 from lutz ...
I might have known! All you have to do is look away for a few minutes and there's an upgrade available! Wonderful stuff...

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

latest version v0.10 minor updates + color scheme

future/announcements updates can be found here
http://newlisp.nodep.nl/

Enjoy..;-)
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

For all those newLISPers out there who think that GUIs are for sissies: a new version of the old command line utility -> get-normans ;-)

Code: Select all

#!/usr/bin/newlisp
#
# get all of Norman's utilities at once
# upated 2007-12-23 to new format on Norman's site

(set 'page (get-url "http://www.nodep.nl/downloads/newlisp/nlist.idx"))
(set 'files (find-all "\{(.*lsp)\}" page $1))

(dolist (file files)
  (write-file file 
      (get-url (string "http://www.nodep.nl/downloads/newlisp/" file)))
  (println "->" file))

(exit)
Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

I just found out that some hosting providers only count statistics on web-traffic
based on html ssh/sftp of ftp traffic. Using nlist keeps the statistics/web-traffic
pretty empty.. ..So if you pay per Kb at your Hosting provider this could be nice
workarround..I hope this can be confirmed by others.. ;-)

btw v0.14 just released...enjoy and please feedback if you have
troubles or an itch regarding nlist..

Norman.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

aaaaaaaa I cant stop ;-)
version v0.18 released... enjoy!
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

v0.23 released.

2 new links for within nlist ->

(pjot) http://www.turtle.dds.nl/newlisp/
(cormullion) http://unbalanced-parentheses.nfshost.com/downloads/
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

version 0.24 released... Includes direct "script execution"

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")


(-; HAPPY 2008 ;-)
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

version v0.25

- window resize works 100% now
- SplitPane added
- small layout change

enjoy ! ;-)

tested on Linux and XP not on MacOs...

PS feature request for Lutz: On/off line wrapping in "text/plain" mode..
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Pjot requested Syntax Highlighting in nlist..

Well Thanks pjot ... I had to rebuild the Color configuration..
(was about time someone requested it..;-)


Here its is -> version 0.28..
load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

- Syntax Highlighting for .lsp files
- new color config menu

enjoy..
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

please download v0.29 there was a big bug in v0.28 ;-)
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Version v0.36 released

- with personal execute menu (still in beta)


i.e.
you can now edit your programs using newlisp-edit by launching
newlisp-edit, doing a copy to clipboard on nlist and paste in newlisp-edit.
(because newlisp-edit does nto yet allow arguments)
or start any other handy i.e. newlisp tool

load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")


PS:

Just tested "Attic" feaute on windows:
Using this "Attic" feature does crash nlist on windows! (2 out of 3 times)
Linux is a little more stable (only 2 crashed out of 10 times but very
random) (This is due to multiple blocking text-area using gs:get-text
behavior, cant get it working properly)
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Okido here is version v0.37

Working fine , no crashes on the "Attic" menu Maintance!
See source code for the solution.

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")

And dont forget... Enjoy!
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

v0.39

- Font selection and color changes.

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

v0.43 released

- Added update checking for new nlist version
- ieks.. ;-) A fix for the Idx entry on win32 and OSX

(load "http://www.nodep.nl/downloads/newlisp/nlist.lsp")
-- (define? (Cornflakes))

Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

Post by Cyril »

I have tried to run nlist 0.48 on my WinXP box. In general it works fine, but a list of imperfections follows (yes, I am a bit scrupulous):

* When nlist runs a first time, and ./nlist/ directory is not created yet, it doesn't display icons ('go' and 'hist'). When I was reading the help, I was confused a lot: about which icons this guy talks?

* Lisp sources pane is scrolled by PgUp/PgDn, but not by up/down arrows. This is very confusing.

* If the current file extension is neither .lsp nor .html, the decision of how to display the file content is based on last displayed .lsp or .html file. If I came to .txt file from .lsp, it is text, if I came there from .html, it is html.

* If a html file has been selected and displayed, the next selected file will be displayed without colors. Even if I have re-read the same html file, it is displayed without colors.

* html files generated by Vim are not displayed at all. Probably this is not nlist fault but fault of GS, but nevertheless it is not good.

* Design issue: the width of all five information fields at the bottom is the same and cannot be resized. But in practice the description text is long, but class, type and platform are short.

* Message '* created: ./nlist/' is displayed always and is not informative at all.

* It Would Be Nice to accept URL as a command line argument. Also it would be nice to accept "." (and "..") as URL and treat it as "./" (and "../").

By the way, I have created a nlist.idx file on my newLISP page. Point your nlist browser at:

http://wagner.pp.ru/~slobin/newlisp/
With newLISP you can grow your lists from the right side!

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Hello Cyril,

Thanks for the feedback, your are right on all issues.. the help needs corrections..The text-Fields are on my list too and this ..nlist created.. issue i found also on XP..They are all on my todo list ;-)

Thanks for creating the nlist.idx (ill put it in the Shelf of the next nlist release) .. Looks nice and I found some issues for nlist too ill need to look at ;-)

Norman.
-- (define? (Cornflakes))

Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

Post by Cyril »

I have done a little hacking with nlist, trying to fix some most annoying issues (mad adventure while not understanding nlist internal logic and not even knowing GS API). My modifications:

* Existence of ./nlist/ is tested with directory? instead of file?

* First directory in history is loaded from root, not hardcoded

* text/html vs text/plain logic is fixed by brute force

* Last but not least, interface is redesigned. Decent web browsers users habitually expect green left and right arrows at the west of address bar to be history navigation, and a pair of twisted arrows at the east of address bar to be a reload button. Default nlist design does it upside-down and backwards, so I have fixed this. But don't fear: old interface is still available. More than, it is enabled by default. To switch to my improved ;-) interface, manually add line (set 'cs-mode true) to nlist.cfg (it cannot be set from normal interface). I hope this will be useful...

Oh, I forgot: http://wagner.pp.ru/~slobin/newlisp/ using nlist
With newLISP you can grow your lists from the right side!

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Hello Cyril,

Good to see you hacked your way into nlist..
I was already working on a "plugin" option for nlist.
(thats why the Tabs are now there).. Im on my way
of releasing v0.50 but im a little bussy..meanwhile enjoy the tool ;-)

Norman.
-- (define? (Cornflakes))

Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Post by Dmi »

Hi, Norman!

Just have browsing using your nlist. Nice work!

Is there a nlist.idx autogenerator (from the contents of lsp-files)?

Some ideas (I know all we have a lot of them ;-)

- Having a list of all nlist-supporting sites we can have a search engine.

- Probably, you can extend the idea directly to the scripting area:
Recently I have playing with such code:

Code: Select all

; usage for directly load:
; (module:load-store "http://en.feautec.pp.ru/store/libs/funlib.lsp"
;                    "http://en.feautec.pp.ru/store/libs/xmlstream.lsp"
;                    .....)
;
; usage for once time loading - one file may be requested from many modules
:  and it will be loaded only once:
; (module:depend "http://en.feautec.pp.ru/store/libs/funlib.lsp")
;
(context 'module)

; configuration of cache path relative to HOME
(set 'libpath "newlisp/cache")

; prepare the local cache 
(define (prepare-space)
  (set 'libdir (env "HOME"))
  (dolist (l (parse libpath "/"))
    (write-buffer libdir (string "/" l))
    (unless (directory? libdir)
      (begin
        (print "creating local folder: " libdir "...")
        (if (make-dir libdir) (println "done.")
          (begin
            (println "error.")
            (throw-error (string "cant't create: " libdir))))))))

; if module doesn't exists in the local cache, then download it
; finally, load module from the local cache
(define (load-store)
  (prepare-space)
  (doargs (l)
    (let (f (string libdir "/" (last (parse l "/"))))
      (unless (file? f)
        (begin
          (println "downloading " l " into " libdir)
          (if (starts-with "ERR: " (set 's (get-url l)))
            (throw-error s)
            (write-file f s))))
      (load f))))

(set 'loaded '())

; load module once through (load-store)
; remember module in 'loaded runtime list
(define (depend path)
  (unless (find path loaded)  
    (begin
      (load-store path)
      (push path loaded))))

(context 'MAIN)
This is the working prototype. If Lutz will accept to include similar into newlisp distro, then all we got simple module deploing scheme.
I also thinking about gpg signatures here, versioning and, possible, referencing a libs by a name from idx files.
If there will be an interest, the comments are welcome.
WBR, Dmi

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

I like the idea's indeed... Though im realy realy bussy currently
and I cant get my fingers to hit the newlisp prompt... But feel free
to update nlist.lsp if you wish ofcourse ;-) If you want me to add
the features you have to wait a little..
-- (define? (Cornflakes))

Locked