tynet-lichat/shirakumo - IRC Chatlog
Search
10:08:42
Colleen
Shinmera: i wanted to use depot to create a zip archive in memory. i had to make a few changes to get it working. is that expected or am i doing something wrong?
10:08:42
scymtym
Shinmera: i wanted to use depot to create a zip archive in memory. i had to make a few changes to get it working. is that expected or am i doing something wrong?
10:11:31
Colleen
what i do is (let* ((depot (make-instance 'depot.in-memory:depot)) (zip-file (depot:make-entry depot :id "outer.zip")) (zip (make-instance 'depot.zip:zip-archive :depot entry)) (inner (depot:make-entry zip :id "inner.txt"))) (depot:write-to inner "text") (depot:commit zip))
10:11:31
scymtym
what i do is (let* ((depot (make-instance 'depot.in-memory:depot)) (zip-file (depot:make-entry depot :id "outer.zip")) (zip (make-instance 'depot.zip:zip-archive :depot entry)) (inner (depot:make-entry zip :id "inner.txt"))) (depot:write-to inner "text") (depot:commit zip))
10:12:27
Colleen
this failed initially because ZIP-ARCHIVE didn't have a COMMIT method. adding that method, i had to add stream support to the in-memory transactions
10:12:27
scymtym
this failed initially because ZIP-ARCHIVE didn't have a COMMIT method. adding that method, i had to add stream support to the in-memory transactions
10:14:09
shinmera
Aha. I haven't actually used the in-memory depot, it was more a proof-of-concept kinda thing
16:37:38
shinmera
Radiance is not a Javascript framework. It only handles server-side stuff. If you want client-side scripting, you have to do that with Javascript.
16:38:10
shinmera
so aside from what you have there you could emit, say, a script tag which does the updating and whatnot.
16:38:59
shinmera
and/or you could use some JS ui framework like Vue or whatever else is popular these days.
16:59:19
shinmera
alternatively you can store the state on the server side. in that case the button would take you to another link that increases the value and redirects back. then you'd render out a page with the updated value.
16:59:37
shinmera
in that case you don't need any javascript, but, well, you'd be storing the data on the server