Search found 10 matches

by anaumov
Mon Dec 12, 2016 2:55 am
Forum: Homework
Topic: How to disable libraries' "welcome" messages?
Replies: 2
Views: 5118

Re: How to disable libraries' "welcome" messages?

Thank you! Yes, it fix my problem.
by anaumov
Sun Dec 11, 2016 2:12 pm
Forum: Homework
Topic: How to disable libraries' "welcome" messages?
Replies: 2
Views: 5118

How to disable libraries' "welcome" messages?

Hello, I would like to know how to disable output of libraries' messages that SBCL shows in time of including/require these. For example, after I (require :snmp), I get this message: ;;; ------------------------------------------------------------------------ ;;; Portable Threads Interface 2.3 ;;; ;...
by anaumov
Sat Dec 10, 2016 5:22 pm
Forum: Homework
Topic: The value GETHASH is not of type (UNSIGNED-BYTE 8)
Replies: 2
Views: 3863

Re: The value GETHASH is not of type (UNSIGNED-BYTE 8)

Thank you, you're right. I fixed it and this code works fine now! (defun get-info (hash) (format t "~A~%" (snmp:with-open-session (s (gethash "HOST" hash) :user (gethash "USERNAME" hash) :auth (list ':md5 (gethash "PASSWORD" hash))) (snmp:snmp-walk s (gethash "OPTION" hash)))))
by anaumov
Sat Dec 10, 2016 3:24 am
Forum: Homework
Topic: The value GETHASH is not of type (UNSIGNED-BYTE 8)
Replies: 2
Views: 3863

The value GETHASH is not of type (UNSIGNED-BYTE 8)

Hello, I try to use SNMP module (QuickLisp installation). I have a problem with data type for :md5 parameter: (defun get-info (hash) (format t "~A~%" (type-of (gethash "PASSWORD" hash))) (format t "~A~%" (snmp:with-open-session (s (gethash "HOST" hash) :user (gethash "USERNAME" hash) :auth '(:md5 (g...
by anaumov
Tue Sep 01, 2015 1:33 am
Forum: Common Lisp
Topic: long line output
Replies: 3
Views: 5756

Re: long line output

Often it helps to set *PRINT-PRETTY* to NIL Thank you very much! This solved my problem. Can I ask what the goal is here? Your initial example implies you are doing something strange, that may have a better method. I generate CSV file. The CSV format is pretty easy any I don't want to download/load...
by anaumov
Fri Aug 28, 2015 8:41 am
Forum: Common Lisp
Topic: long line output
Replies: 3
Views: 5756

long line output

Hello, does anybody know why the fomat's output adds a new line symbol after F-string? (setq L '("AAAAAAAAA#")) (nconc L '("BBBBBBBBB#")) (nconc L '("CCCCCCCCC#")) (nconc L '("DDDDDDDDD#")) (nconc L '("EEEEEEEEE#")) (nconc L '("FFFFFFFFF#")) (nconc L '("GGGGGGGGGG#")) (format t "L = ~A~%" L) That's ...
by anaumov
Fri Aug 14, 2015 10:20 am
Forum: Common Lisp
Topic: how use libraries without QL
Replies: 3
Views: 5022

how use libraries without QL

Hello, does anybody know how use/include libraries (which was installed with Quicklisp), but without Quicklisp? For example, I installed the library X with QL (ql:quickload "X"), after that I close my sbcl/clisp and start it again. In this moment the system still does not know about QL. How to inclu...
by anaumov
Thu Jul 30, 2015 2:12 am
Forum: Common Lisp
Topic: Send the new file over HTTP (server part)
Replies: 3
Views: 5901

Re: Send the new file over HTTP (server part)

The answer is (format t "Content-Type:application/vnd.ms-excel~%") (format t "Content-Disposition:attachment;filename=file.xls~%~%") (princ "Test. Ok!") But now I have another question: what's wrong with this code? #!/usr/bin/sbcl --script (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp...
by anaumov
Wed Jul 29, 2015 1:54 am
Forum: Common Lisp
Topic: Send the new file over HTTP (server part)
Replies: 3
Views: 5901

Re: Send the new file over HTTP (server part)

I don't need to make http requests or web-servers...

I just want to save a file (on client side, via browser) that will be created on the server side (standard output).
The question is how to send the output-stream (in my case it's a file) to standard-output?
by anaumov
Tue Jul 28, 2015 5:56 am
Forum: Common Lisp
Topic: Send the new file over HTTP (server part)
Replies: 3
Views: 5901

Send the new file over HTTP (server part)

Hello everyone,

does anybody know how to send the new created file over the web?
I have one script that creates new file. It works fine, but now I need to run this script on the web-server and download generated file via browser.

Thanks for your help and time,
Alex