Why not use /Applications/Utilities/Terminal.app ?
Am I missing something?
Search found 58 matches
- Mon May 01, 2006 7:22 am
- Forum: newLISP and the O.S.
- Topic: Another Cool Mac OS X Hack from newlisper
- Replies: 5
- Views: 7012
- Mon Apr 03, 2006 4:17 am
- Forum: Anything else we might add?
- Topic: getting absolute pathname from pathname
- Replies: 23
- Views: 21607
- Sun Apr 02, 2006 6:25 am
- Forum: Anything else we might add?
- Topic: getting absolute pathname from pathname
- Replies: 23
- Views: 21607
Does anyone know how I can get the cwd of the file being executed, or a way to get the cwd of any given process? My problem is that realpath shows the working directory from where newlisp was started. Example: $ pwd /home/statik/ $ cat code/test.lsp (println (real-path)) (exit) $ newlisp code/test.l...
- Sun Apr 02, 2006 3:55 am
- Forum: Anything else we might add?
- Topic: getting absolute pathname from pathname
- Replies: 23
- Views: 21607
- Sat Apr 01, 2006 10:46 am
- Forum: Anything else we might add?
- Topic: getting absolute pathname from pathname
- Replies: 23
- Views: 21607
Any idea when (cwd) is gonna make into newlisp? Next release? Release after that? Eventually?
Also, PWD is an environtment variable, and you can clearly see that by doing the following at the command line:
Is there a reason why (env) does not utilize ALL available environment variables?
Also, PWD is an environtment variable, and you can clearly see that by doing the following at the command line:
Code: Select all
$ set
- Tue Mar 07, 2006 7:32 am
- Forum: Anything else we might add?
- Topic: newLISP + FCGI
- Replies: 2
- Views: 5764
newLISP + FCGI
I read a few older threads here and while newlisp + fcgi was mentioned as being used or toyed with, I never could find anything that hinted at it's success... If someone here has successfully gotten newlisp to work with fastcgi (and lighttpd would be nice too) please let me know how you managed to d...
- Tue Feb 14, 2006 1:33 am
- Forum: newLISP newS
- Topic: This is ridiculous
- Replies: 25
- Views: 35549
- Tue Feb 14, 2006 12:57 am
- Forum: Anything else we might add?
- Topic: Searching a string for content, while populating a list.
- Replies: 1
- Views: 3023
Searching a string for content, while populating a list.
I am wondering what the easiest, or most efficient way is to search a string for all occurances of X and populating a list with each occurance. I've come up with a few solutions to this, but I am not sure that they are as fast or easy as they could be. I'd like to do a (find) with some regex on a st...
- Mon Feb 13, 2006 8:08 pm
- Forum: newLISP in the real world
- Topic: Contexts and Symbols
- Replies: 2
- Views: 3930
- Mon Feb 13, 2006 8:03 pm
- Forum: Anything else we might add?
- Topic: LISP Art
- Replies: 4
- Views: 5157
- Sun Feb 12, 2006 12:48 am
- Forum: newLISP in the real world
- Topic: Contexts and Symbols
- Replies: 2
- Views: 3930
Contexts and Symbols
What would you suggest I mold into a habit? Using a context prefix: (context 'MYCONTEXT) (define (myfunc , ) (println MAIN:a) ) (context 'MAIN) (setq a 10) (MYCONTEXT:myfunc) or passing the value of a symbol when calling a function from another context: (context 'MYCONTEXT) (define (myfunc value , )...
- Fri Feb 10, 2006 8:31 am
- Forum: newLISP in the real world
- Topic: (case) evaluation
- Replies: 6
- Views: 6858
- Thu Feb 09, 2006 11:12 pm
- Forum: newLISP in the real world
- Topic: (case) evaluation
- Replies: 6
- Views: 6858
(case) evaluation
Can anyone tell me why the following is true: (setq a 1) (setq b 2) (setq c 3) (setq d 1) (case d (a (do-this)) (b (do-that)) (c (do-something)) (true) ) => nil I understand that the comparative values in my case are unevaluated. When switched out for an (eval) the case still doesn't work. (setq a 1...
- Thu Feb 02, 2006 6:40 am
- Forum: newLISP in the real world
- Topic: Dealing with binary data...
- Replies: 2
- Views: 3817
- Wed Feb 01, 2006 1:33 am
- Forum: newLISP in the real world
- Topic: Dealing with binary data...
- Replies: 2
- Views: 3817
Dealing with binary data...
I can do the following in perl:
And as you can see the \xca result is the Ê character. If I wanted to duplicate this very thing in newlisp, how would I do it?
Code: Select all
$ perl -e 'print "\xca\n"'
Ê
$
- Sun Jan 29, 2006 3:21 am
- Forum: newLISP in the real world
- Topic: Determining the integeral value of a data.
- Replies: 5
- Views: 6943
What an embarassment haha. Well I think I tracked down the flaw/bug...
I forgot to repack the data before sending it back. That would do it.
Thanks you guys for the help.
Code: Select all
(set 'msg (pack "<lu" sum))
Thanks you guys for the help.
- Sun Jan 29, 2006 2:21 am
- Forum: newLISP in the real world
- Topic: Determining the integeral value of a data.
- Replies: 5
- Views: 6943
#!/usr/bin/newlisp (context 'MAIN) (setq host "69.55.233.82") (setq port 5842) (setq socket (net-connect host port)) (if socket (begin (println "Connected successfully!") (print "Receiving data: ") (setq final "") (while (and (net-select socket "r" 1000000) (> (net-peek socket) 0)) (net-receive soc...
- Sun Jan 29, 2006 1:12 am
- Forum: newLISP in the real world
- Topic: Determining the integeral value of a data.
- Replies: 5
- Views: 6943
- Sun Jan 29, 2006 12:37 am
- Forum: newLISP in the real world
- Topic: Determining the integeral value of a data.
- Replies: 5
- Views: 6943
Determining the integeral value of a data.
I have an unsigned integer that is four bytes long that is sent to me via a network connection. When the server sends the integer, newlisp sees it as various characters ()&!@#*)}{":>?^`á–ó<Ф,Ù¸í.!ƒ/,á–ó< so on and so forth. What I need to do is take those four bytes and 'convert' them into an integ...
- Sat Jan 28, 2006 6:20 pm
- Forum: newLISP in the real world
- Topic: (net-receive) or (net-only-partially-receive)?
- Replies: 5
- Views: 6278
- Sat Jan 28, 2006 5:41 pm
- Forum: newLISP in the real world
- Topic: (net-receive) or (net-only-partially-receive)?
- Replies: 5
- Views: 6278
- Sat Jan 28, 2006 4:01 pm
- Forum: newLISP in the real world
- Topic: (net-receive) or (net-only-partially-receive)?
- Replies: 5
- Views: 6278
(net-receive) or (net-only-partially-receive)?
I'm confused as to why the following occurs: netcat (nc): # nc server 5842 %œŽ00ü›nßæ"ûO-^[[?1;2c telnet: # telnet server 5842 Connected to server. Escape character is '^]'. .m’Ww¢½MºÏŸjù©3 Now as you can see here, the content that is received is always different upon every connection. I could use ...
- Sun Nov 20, 2005 12:53 am
- Forum: Anything else we might add?
- Topic: need some help in lisp
- Replies: 3
- Views: 4733
- Fri Oct 14, 2005 7:46 pm
- Forum: Anything else we might add?
- Topic: Documentation Wiki
- Replies: 6
- Views: 7437
- Fri Oct 14, 2005 5:36 pm
- Forum: Anything else we might add?
- Topic: Documentation Wiki
- Replies: 6
- Views: 7437