Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - itistoday

#31
Hi folks, I've released a new module for the Dragonfly framework to handle sending email using the wonderful `msmtp` command, allowing Dragonfly to send SMTPS emails, and it uses the exact same API as the existing smtpx.lsp API:



https://github.com/taoeffect/dragonfly-newlisp/blob/master/example-site/dragonfly-framework/plugins-inactive/msmtp.lsp">https://github.com/taoeffect/dragonfly- ... /msmtp.lsp">https://github.com/taoeffect/dragonfly-newlisp/blob/master/example-site/dragonfly-framework/plugins-inactive/msmtp.lsp



Enjoy!



Also - I'm offering to host newlisp forums if you guys (and Lutz) would like me to. Here's an example of the forums I already host: https://www.taoeffect.com/forum/">https://www.taoeffect.com/forum/



Advantages: no spam (*cross-fingers*) and HTTPS!

Disadvantages: might not contain the history of these forums, as it doesn't make sense to import a polluted forum.
#32
Dragonfly / Dragonfly 0.73
August 05, 2015, 09:52:41 PM
0.73 - fixed a cookie parsing bug



https://github.com/taoeffect/dragonfly-newlisp">https://github.com/taoeffect/dragonfly-newlisp
#33
Quote    [ERROR]: ERR: list or string expected in function find : nil
    called from user function Dragonfly:eval-template
    called from user function Dragonfly:display-file
    called from user function Dragonfly:display-view
    called from user function Dragonfly:display-error
    called from user function $error-event


Sounds like some HTML file that has newLISP in it has an improper call to 'find'.



As for segfaults, I can't help there, those shouldn't happen at all, and if they do that's something Lutz would need to help with.
#34
Quote from: "ghyll"Hi Marc, thanks for the help :)  Unfortunately, the code is proprietary, so I can't take advantage of your offer to check a ZIP.



1. .nhtml is for views containing newLISP code, and .html is for views without -- just an easy way to check at a glance.

2. The .nl script is not RESTful, so I don't think it would properly translate to a resource. (Not fixing the cgi bit would also require re-writing all of the other .nl scripts as resources.)



route_cgi.lsp is loading -- I had it print something on the view (apologies for not thinking of this before I posted). The .nl script still isn't running, but I'll keep troubleshooting.


So dragonfly overrides print and println to send the output as part of the webpage that's returned.



You should use the DF:log-info, DF:log-warn and DF:log-err functions to send debug statements to the dragonfly.log file (which is specified by the LOG_FILE_PATH variable in config.lsp).
#35
Quote from: "Lutz"In newLISP this implementation would get slower when more elements are held in the stream queue.


Actually, it should work just fine. The stream queue shouldn't grow much because of the lazy evaluation.
#36
newLISP in the real world / Re: SSL + SMTP
May 30, 2014, 05:29:27 PM
Hmm. Well thanks, I may or may not take you up on that offer in a couple of weeks... we'll see. I'll reply here if I do!
#37
newLISP in the real world / SSL + SMTP
May 26, 2014, 11:25:21 AM
So... does the smtpx.lsp module work over SSL? I'm guessing that it doesn't... is that right?
#38
Might not be possible. See here for an attempt at this that uses a 5 node doubly-linked list:



https://gist.github.com/taoeffect/6847427">https://gist.github.com/taoeffect/6847427
#39
Original: https://www.taoeffect.com/blog/2010/01/how-newlisp-took-my-breath-and-syntax-away/">https://www.taoeffect.com/blog/2010/01/ ... ntax-away/">https://www.taoeffect.com/blog/2010/01/how-newlisp-took-my-breath-and-syntax-away/



Translation: http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fblog.skydark.info%2Fprogramming%2F2012%2F06%2F28%2Fnewlisp%2F">http://translate.google.com/translate?s ... newlisp%2F">http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fblog.skydark.info%2Fprogramming%2F2012%2F06%2F28%2Fnewlisp%2F



Funny: "newLISP is a true diamond in the rough" -> Chinese -> English -> "newLISP is a genuine natural diamonds" ^_^
#40
Whither newLISP? / Re: How to get newLISP popular?
June 25, 2013, 12:52:07 PM
I tried to use newLISP once from a C program, and it didn't go too well. newLISP is great in going from newLISP -> C, but not in the opposite direction, so until it has support for that, which is at least as good as Lua's, it won't be popular for using as a scripting language for games, or other places where Lua is used.
#41
newLISP in the real world / Re: newLISP on Rockets
June 24, 2013, 08:23:49 AM
Quote from: "conan"Even the simplest code, no matter how mature, needs some maintenance now and then. Wouldn't need even more maintenance something that attempts to work in a field that never stays still, that's constantly changing, like the web?



You complain that the author of Newlisp on Rockets didn't fork your work. However he states that he learned and used a lot from Dragonfly, so he did base on your work, he just didn't use the fork path. Maybe because he's learning, maybe because he preferred to pick stuff by hand. Who knows!


I generally agree with you, although I feel the word "complaining" is a bit harsh (personally). It's alright if you see it that way, but I see it as simply being dismayed at what you point out yourself, that Dragonfly needs maintenance, and it would have been nice if he helped us improve and maintain it.


QuoteAnyway, I didn't mean to be harsh at you before, and I don't now. I was just trying to point that a software that claims maturity should work out of the box. Because if after following instructions you have to hunt a bug, or try this and that to make it work, then software isn't mature, isn't ready for production.


Yes, I agree, please feel free to file an issue in Github. This the first time I've seen this issue though, so I hope you don't ding us too hard. Lots of other people have tried Dragonfly and it seems to have worked fine for them.
#42
newLISP in the real world / Re: newLISP on Rockets
June 23, 2013, 07:45:24 PM
I assume that you didn't visit the page after hitting ^C... Did you try Cmd/Ctrl-Shift-R (or a different browser)?



Also, try following these instructions to get it running under Apache instead:



http://rundragonfly.com/dragonfly_welcome">http://rundragonfly.com/dragonfly_welcome
#43
newLISP in the real world / Re: newLISP on Rockets
June 22, 2013, 06:31:59 PM
Quote from: "conan"Well it surely looks like your framework is unmaintained. Now you post there's a new version, so I wanted to give it a try, followed README indications and this is what I got for the example:

ERR: invalid function : (load-files-in-dir (string DRAGONFLY_ROOT "/lib") ".lsp$")

I don't want to diminish your work, but it surely needs a face washing.



You must agree with me that a software that claims to be stable and shows an error just by following stated instructions is kind of disappointing.


Hmm... I'm not seeing that. I just did the whole thing from scratch, here's the proof:


Last login: Sat Jun 22 15:18:46 on ttys004
taoeffect:~ gslepak$ git clone git@github.com:taoeffect/dragonfly-newlisp.git
Cloning into 'dragonfly-newlisp'...
remote: Counting objects: 2293, done.
remote: Compressing objects: 100% (1391/1391), done.
remote: Total 2293 (delta 874), reused 2273 (delta 860)
Receiving objects: 100% (2293/2293), 2.55 MiB | 2.05 MiB/s, done.
Resolving deltas: 100% (874/874), done.
taoeffect:~ gslepak$ cd dragonfly-newlisp/
taoeffect:dragonfly-newlisp gslepak$ git submodule init
Submodule 'example-site/dragonfly-framework/plugins-inactive/db' (git://github.com/taoeffect/dragonfly-db.git) registered for path 'example-site/dragonfly-framework/plugins-inactive/db'
taoeffect:dragonfly-newlisp gslepak$ git submodule update
Cloning into 'example-site/dragonfly-framework/plugins-inactive/db'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 6 (delta 0)
Receiving objects: 100% (6/6), 15.33 KiB, done.
Submodule path 'example-site/dragonfly-framework/plugins-inactive/db': checked out 'f9e56a033a7da860427340a7b1cbf0eb3e5bb749'
taoeffect:dragonfly-newlisp gslepak$ cd example-site/
taoeffect:example-site gslepak$ ./newlispServer
If all goes well visit http://localhost:8080 in your browser


The site loaded fine. Did you do the same thing I did there?
#44
newLISP in the real world / Re: newLISP on Rockets
June 22, 2013, 12:41:01 PM
I don't understand the reasons he gave for starting his own framework from scratch, but w/e.



I just updated Dragonfly to 0.71 btw.



http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=17&t=4360">http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=17&t=4360
#45
Dragonfly / Dragonfly 0.71
June 22, 2013, 12:39:43 PM
made utf8-urlencode behave more like php. no longer escaping dashes

https://github.com/taoeffect/dragonfly-newlisp/commit/2891dfd7843237feeb775f512d0e68baebb2f2d2">https://github.com/taoeffect/dragonfly- ... baebb2f2d2">https://github.com/taoeffect/dragonfly-newlisp/commit/2891dfd7843237feeb775f512d0e68baebb2f2d2