Search found 12 matches
- Thu Sep 16, 2010 10:16 am
- Forum: Common Lisp
- Topic: Low-Level File Access
- Replies: 8
- Views: 6977
Re: Low-Level File Access
Just to clarify for my learning, with :element-type of 'unsigned-byte in place, would I make-array something the size of the file and then read-sequence that block size for the fastest I/O for this kind of binary file?
- Wed Sep 08, 2010 2:28 pm
- Forum: The Lounge
- Topic: Anyone working on neat hobby projects?
- Replies: 3
- Views: 8551
Re: Anyone working on neat hobby projects?
Define neat. ;) Time to dust off the marketing boots. :) Thank you for posting these. I checked out the projects you listed, and most do not indicate what kinds of help they need or where they plan to go in the future. I could not quickly find bug reports or feature requests. I suppose I would need...
- Wed Sep 08, 2010 9:20 am
- Forum: The Lounge
- Topic: Anyone working on neat hobby projects?
- Replies: 3
- Views: 8551
Anyone working on neat hobby projects?
What Lisp-based projects are you working on that you would not mind having some help with? I would not mind cutting my teeth on something that seems interesting in my after-job-hours spare time, and I could benefit from having my code reviewed.
- Mon Sep 06, 2010 4:56 pm
- Forum: Emacs
- Topic: Remoting, emacs, and copy-pasting
- Replies: 2
- Views: 9469
Re: Remoting, emacs, and copy-pasting
Thank you! I did some further research and found this helper module: http://www.emacswiki.org/emacs-en/xclip.el I was able to get it to work locally and remotely with -nw and without by installing xclip and then adding this to my .emacs file: (require 'xclip) (turn-on-xclip) ; the detection hook is ...
- Mon Sep 06, 2010 1:44 pm
- Forum: Emacs
- Topic: Remoting, emacs, and copy-pasting
- Replies: 2
- Views: 9469
Remoting, emacs, and copy-pasting
Is there a solution that gives the best of all worlds for copying text from emacs on a remote server and pasting it to other apps on my local machine? Here is what I am trying to do. On my local machine, I ssh to a remote server with -X -Y. The remote xcalc shows its pretty graphics. "emacs&quo...
- Mon Sep 06, 2010 9:04 am
- Forum: Common Lisp
- Topic: New to LISP could use some help...thanks.
- Replies: 5
- Views: 5021
Re: New to LISP could use some help...thanks.
jiptohej: That works, but it makes alst useless and forces use of a global variable, which may have just been used here to help the example. How would you solve the problem if he did it like this? (let ((products nil)) (add-product products "boot" 3) (add-product products "umbrella&qu...
- Sun Sep 05, 2010 7:56 pm
- Forum: Common Lisp
- Topic: New to LISP could use some help...thanks.
- Replies: 5
- Views: 5021
Re: New to LISP could use some help...thanks.
You are modifying the local variable alst with your setf, which effectively rebinds alst to a totally new value but does not rebind the thing you passed in. The reason the other setf works is because you are modifying elements alst is pointing to.
- Sun Sep 05, 2010 5:25 pm
- Forum: Common Lisp
- Topic: examine
- Replies: 4
- Views: 4411
Re: examine
I think I know where you are coming from with this question. Here is another way to phrase it: You have a tree. If any of the leaf nodes is not a number, return nil. Otherwise, return t. Use recursion to navigate to the leaves of the tree to test for numberness. Regarding the code you posted, you ar...
- Fri Sep 03, 2010 1:32 pm
- Forum: Common Lisp
- Topic: Lazy Mapping
- Replies: 1
- Views: 2646
Lazy Mapping
Suppose I define a few functions for handling a poor man's lazy list like this: (defun fcar (o) (car o)) (defun fcdr (o) (if (null (cdr o)) nil (funcall (cdr o)))) (defun range (first last) (cons first (if (= first last) nil #'(lambda () (range (1+ first) last))))) (range 1 10) => (1 . #<CLOSURE (la...
- Fri Sep 03, 2010 9:04 am
- Forum: Emacs
- Topic: SLIME and security
- Replies: 1
- Views: 7551
SLIME and security
Is there a way now to limit who can access the Lisp image with emacs? I want only a subset of people with access to my system to be able to connect to a running Lisp with SLIME. I remember reading a while back that this was an issue, but maybe there is some kind of ACL trick for blocking port connec...