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

Topics - vetelko

#1
newLISP in the real world / Uploading multiple files.
February 18, 2018, 01:56:40 PM
Hello guys,



I tried upload.cgi example and it works for me, but what if I need to upload multiple files at once? I can't figure out how to do this. Are there multiple file boundaries in POST data than? Also there is no reference to <input type=file /> name in upload.cgi. It is not needed because we are checking for boundary and than it doesn't matter?
#2
newLISP in the real world / VIM indent
October 30, 2017, 01:50:22 PM
Hello guys,



is someone using Vim to edit newlisp code? I can't get it to use 4 spaces autoindent. It uses only single space.

Can someone help me?
#3
Hi guys,



is it possible to get line number which is currently executed in script? Somethin like:



(if error  (println $lineno))
;; something magical like $it :)

Thanks in advance.
#4
Hi guys,

is it possible to set hash items at once in hash definition?



;; this works
(define cities:cities)
(cities "ny" "new york")
(cities "sf" "san francisco")
(println (cities "sf"))

;; this not
(define cities:cities '(
    ("ny" "new york")
    ("sf" "san francisco")))

(println (cities "sf"))
#5
Hello guys,



is there some way how to replace placeholders in string with symbols values?

"value of one is :one: and value of two is :two:"

I want to replace :one: and :two: with values of symbols 'one and 'two if they exists. How to get symbol value if its name is available as string?
#6
Hi guys,



is it possible to achieve something like this in newLISP?
(assign name city age '("john", "new york", 22))
#7
Hello newLISP-ers :)



the following code returns nil for utf-8 character

(regex {w} "č")

and so the following

(regex {w} "č" "u")

while this works

(regex {w} "m")



Is this not implemented or am I doing something wrong?

VT
#8
Hi guys,



how can I map trim command to list members?

say I have list like this:
(set 'lst '("a." "b " "c"))
and I want to trim dot character trying this construct:
(set 'lst2 (map (curry trim {.}) lst))
but it doesn't work, output is:
("." "." ".")
#9
Anything else we might add? / TLS/SSL support
October 13, 2016, 09:51:21 AM
Hi guys,



is there a chance that newlisp will support TLS/SSL in the near future? In my case I need it to fetch content using httpS protocol.



VT