@Lutz: is it a new function? I didn't notice it before!
@HPW: Thank you, but I found that solution. I was thinking that a proper function could be a "commodity". Thank you!
Search found 297 matches
- Thu Jul 30, 2009 3:15 pm
- Forum: newLISP newS
- Topic: (append) and/or (string) including spaces (wish-list)
- Replies: 3
- Views: 3094
- Thu Jul 30, 2009 1:03 pm
- Forum: newLISP newS
- Topic: (append) and/or (string) including spaces (wish-list)
- Replies: 3
- Views: 3094
(append) and/or (string) including spaces (wish-list)
Hello, I think it could be useful adding an option (or creating a new function) to append some strings by automatically adding spaces. For example: (append "my" "name" "is" "ale") --> "my name is ale" Second request: A function to perform more sophisticated upper-case/lower-case activities: 1) only ...
- Wed Jul 29, 2009 12:07 pm
- Forum: newLISP in the real world
- Topic: How to update a list managed with "lookup"?
- Replies: 3
- Views: 1455
- Wed Jul 29, 2009 10:10 am
- Forum: newLISP in the real world
- Topic: How to update a list managed with "lookup"?
- Replies: 3
- Views: 1455
How to update a list managed with "lookup"?
Hello, I have this list: (setq myScheduler '( (at ( (days 1 7 14 21) ;; Scheduler per i giorni 1, 7, 14, 21 (times "11:00" "23:00") ;; Alle ore 11:00 e ore 12:00 ) ) (client-nodes ( ("10.100.2.12" 3322) ("10.100.3.198" 1234) ) ) )) I use (lookup) to check data in that list. For example: (lookup 'cli...
- Sun Jul 26, 2009 1:20 pm
- Forum: newLISP in the real world
- Topic: Curious behaviour using $
- Replies: 5
- Views: 2102
- Sun Jul 26, 2009 10:43 am
- Forum: newLISP in the real world
- Topic: Curious behaviour using $
- Replies: 5
- Views: 2102
- Sat Jul 25, 2009 3:14 pm
- Forum: newLISP in the real world
- Topic: Curious behaviour using $
- Replies: 5
- Views: 2102
Curious behaviour using $
Hello,
true this code:
As you can see, using a variable with the prefix "$", makes the variable "global".
Is it an implicit context binding?
true this code:
Code: Select all
(context 'NEWCTX)
(setq $myvar 123)
(context MAIN)
$myvar
Is it an implicit context binding?
- Sat Jul 25, 2009 1:51 pm
- Forum: Dragonfly
- Topic: Dragonfly - a web framework for newLISP
- Replies: 74
- Views: 51437
- Sat Jul 25, 2009 9:45 am
- Forum: Dragonfly
- Topic: Dragonfly - a web framework for newLISP
- Replies: 74
- Views: 51437
In these days I'm starting to work with Dojo framework, a language-independent AJAX client (one of the most famous). It is open source. See here: http://www.dojotoolkit.org/ Since it is language independent, it means it can be used even from newLisp... So I think you could start to introduce such fr...
- Tue Jul 21, 2009 9:07 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
:-)
http://en.wikipedia.org/wiki/MIME_type
(see RFC: it was born on 1993!!!)
But you are right: mime-type was used for the first time to exchange emails! (I discovered it now). Thank you for your hint!
http://en.wikipedia.org/wiki/MIME_type
(see RFC: it was born on 1993!!!)
But you are right: mime-type was used for the first time to exchange emails! (I discovered it now). Thank you for your hint!
- Tue Jul 21, 2009 8:45 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
Not exactly: mime-types is a convention, standard description format, to define "which kind of file we are talking about". In this way a program can decide how to manage it. It is a required information in order to exchange data from different operating systems (which they manage data in different w...
- Mon Jul 20, 2009 8:52 am
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
You might want to make a module for the UUDeview library code... http://fpx.de/fp/Software/UUDeview/ UUDeview is a program that helps you transmit and receive binary files over the Internet, using electronic mail or newsgroups The UUDeview package includes both an encoder and a decoder. The decoder...
- Mon Jul 20, 2009 7:51 am
- Forum: newLISP in the real world
- Topic: newLisp as a CGI server
- Replies: 1
- Views: 1108
- Mon Jul 20, 2009 7:45 am
- Forum: newLISP in the real world
- Topic: newLisp as a CGI server
- Replies: 1
- Views: 1108
newLisp as a CGI server
Hello, I successfully used newLisp to make cgi applications using Apache 2 as server web. Now I'm trying to use newLisp as web server self (Linux Mint 6). I created "/tmp" directory, but, even if newLisp works, it does not process the cgi (simply return the script content in the browser, like a norm...
- Mon Jul 20, 2009 7:40 am
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
Sorry, but I cannot understand one point: in order to use the correct mime-type, you need to know the "file-type" (pdf, jpg, etc...). To do this, you have two ways: 1) Use file extension. 2) use the famous "magic number". Can you better explain me your concept. Can you make me a small example? Thank...
- Fri Jul 17, 2009 3:34 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
Hello, I updated SMTP version with attachments. This new update includes: 1) debugging information 2) A new function to get a complete list of the files currently attached (SMTP: list-attachments) 3) In order to use this module via console, in a comfortable way, I added an online help. Every functio...
- Thu Jul 16, 2009 8:34 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
- Thu Jul 16, 2009 6:28 pm
- Forum: Dragonfly
- Topic: Dragonfly - a web framework for newLISP
- Replies: 74
- Views: 51437
- Thu Jul 16, 2009 2:34 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
Thank you. About tests (successfully completed): Client (newLisp): tested using Linux Mint 6. Email client (received emails): Microsoft Outlook ("normal", not express edition) over Windows XP. Linux Evolution Mail+exchange plugin. Server: Microsoft Exchange (I used it by using direct IP access: "10....
- Thu Jul 16, 2009 10:01 am
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
Hello, I successfully modified original smtp.lsp module to send attachments too. Since I don't know where I can post it, I will publish source code here: ;; @module smtp.lsp ;; @description Send mail using SMTP protocol ;; @version 2.0 - March 2008, Cormullion added AUTH PLAIN authentication ;; @ver...
- Wed Jul 15, 2009 8:54 pm
- Forum: newLISP newS
- Topic: Module SMTP and Attachments
- Replies: 21
- Views: 15724
UPDATE... solved! I modified original smtp module, and now it can be used to send attachments! I'm completing (eliminating bad code and tests!), then I will upload it. Lutz, how can I send you updated module (I still need some days)so you could test it and, if you want, you could put in the standard...
- Wed Jul 15, 2009 8:43 pm
- Forum: Dragonfly
- Topic: Dragonfly - a web framework for newLISP
- Replies: 74
- Views: 51437
A note: carefully check the name of your framework, since Opera Browser has a debugger called "Dragonfly". See here: http://www.opera.com/dragonfly/ You could have problems from Opera company... since because they are in a similar working area: web... I think the name "Dragonfly web framework" shou...
- Wed Jul 15, 2009 3:35 pm
- Forum: newLISP newS
- Topic: Error found in smtp.lsp Module
- Replies: 1
- Views: 2334
I found another error...
Previous function should be (net-send-get-result)
(sent --> send).
Regards.
Code: Select all
(net-sent-get-result (append "." lne))
(sent --> send).
Regards.
- Wed Jul 15, 2009 3:23 pm
- Forum: newLISP newS
- Topic: Error found in smtp.lsp Module
- Replies: 1
- Views: 2334
Error found in smtp.lsp Module
Hello, smtp.lsp module contains a small but blocking bug in the code. Look for the following code: (define (send-mail mail-from mail-to mail-subje`ct mail-body SMTP-server (user-name "") (password "")) As you can see mail-subject contains an apex (wrong!). Please correct it, since it appears in any ...
- Tue Jul 14, 2009 11:31 pm
- Forum: newLISP newS
- Topic: Small "problems" in the docs
- Replies: 0
- Views: 2737
Small "problems" in the docs
Hello, I found two small errors in the docs. 1) This is trivial, but could be confusing for a new user. In the reference area for (setf) there is the example: (push 'b (setf (assoc 'b l) '(b 4))) 'b) It is wrong, in fact "l" letter must be in upper case - see (assoc 'b l): (push 'b (setf (assoc 'b L...