Search found 58 matches

by statik
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

Why not use /Applications/Utilities/Terminal.app ?

Am I missing something?
by statik
Mon Apr 03, 2006 4:17 am
Forum: Anything else we might add?
Topic: getting absolute pathname from pathname
Replies: 23
Views: 21607

That's fine and all, but how does one handle files that are loaded via (load)? How do those file determine where they are?
by statik
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...
by statik
Sun Apr 02, 2006 3:55 am
Forum: Anything else we might add?
Topic: getting absolute pathname from pathname
Replies: 23
Views: 21607

I didn't realize you had implemented realpath into the latest dev... I'll check it out. Thanks.
by statik
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:

Code: Select all

$ set
Is there a reason why (env) does not utilize ALL available environment variables?
by statik
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...
by statik
Tue Feb 14, 2006 1:33 am
Forum: newLISP newS
Topic: This is ridiculous
Replies: 25
Views: 35549

Proof that people will find anything and everything to complain about.
by statik
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...
by statik
Mon Feb 13, 2006 8:08 pm
Forum: newLISP in the real world
Topic: Contexts and Symbols
Replies: 2
Views: 3930

Yes, you were correct in assuming a typo. Thanks for the help, that clarifies a lot for me.
by statik
Mon Feb 13, 2006 8:03 pm
Forum: Anything else we might add?
Topic: LISP Art
Replies: 4
Views: 5157

That is so awesome :-)
by statik
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 , )...
by statik
Fri Feb 10, 2006 8:31 am
Forum: newLISP in the real world
Topic: (case) evaluation
Replies: 6
Views: 6858

Is there a work around, or can we impliment a change? Does it work this way for a reason?
by statik
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...
by statik
Thu Feb 02, 2006 6:40 am
Forum: newLISP in the real world
Topic: Dealing with binary data...
Replies: 2
Views: 3817

Nah, I actually did this on OBSD. But regardless, your solution was perfect. Thanks :)
by statik
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:

Code: Select all

$ perl -e 'print "\xca\n"' 
Ê
$
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?
by statik
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...

Code: Select all

(set 'msg (pack "<lu" sum)) 
I forgot to repack the data before sending it back. That would do it.

Thanks you guys for the help.
by statik
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...
by statik
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

Thank you sir.

Yes, I'm almost positive that I'm looking at four 32 bit integers :-) I'm pretty surprised I haven't seen pack/unpack used before. I have no idea how I've missed it for so long.

Once again, thanks.
by statik
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...
by statik
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


by statik
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

Is there no way to force net-receive to wait until the entire space of 'buffer has been filled?
by statik
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 ...
by statik
Sun Nov 20, 2005 12:53 am
Forum: Anything else we might add?
Topic: need some help in lisp
Replies: 3
Views: 4733

If I am not mistaken, you want to search that list of numbers, collecting a group, and forming them into various different equations until you've discovered a valid formula that evaluates to your chosen number. Am I right in my assumptions?
by statik
Fri Oct 14, 2005 7:46 pm
Forum: Anything else we might add?
Topic: Documentation Wiki
Replies: 6
Views: 7437

I am not entirely sure that either of us had put a whole lot of detailed thought into the idea, however, I know that in my experience, documentation done with wiki software has only been a good thing. You'll notice that a lot of opensource projects are moving that way, and for good reason.
by statik
Fri Oct 14, 2005 5:36 pm
Forum: Anything else we might add?
Topic: Documentation Wiki
Replies: 6
Views: 7437

I second that notion.