Boo...
$ sudo add-apt-repository ppa:mfikes/planck
$ sudo apt-get update
$ sudo apt-get install planck
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
planck : Depends: libzip4 but it is not installable
E: Unable to correct problems, you have held broken packages.
$ cat /etc/issue.net
Ubuntu 19.04
Thanks @bherrmann, will take a look...
:thumbsup:
@bherrmann Fixed
sudo apt-get update
sudo apt-get install planck
and you should be good to goThere is much rejoicing!!!!
Can planck handle reading in binary files into a buffer? My attempt at google-fu is returning results that start with (require '[<http://clojure.java.io|clojure.java.io> :as io])
…
@manutter51 Yes. <http://planck.io|planck.io>
has input stream and output stream abstractions just like <http://clojure.java.io|clojure.java.io>
(as contrasted with reader and writer abstractions)
Ok, I got that far, but I’m drawing a blank on how to move data from the input stream into a byte array. I need to load a 22K file.
@manutter51 You would like a single array that looks like #js [7 1 32 ...]
?
Maybe? I need to post a file to a web server for some code I’m testing. The file I’m loading is the multipart form data, including some file attachments in binary.
I can just slurp and go with a text-only file, but as soon as I include binary data the POST request times out
which I assume is because you can’t safely use slurp with binary data.
Ahh, @manutter51 https://github.com/planck-repl/planck/issues/651
Ooo, that looks promising, thanks!
I suspect it is a trivial change to make to the code, but not supported yet.
Ok, I can try lumo instead, I’m sure node supports that sort of thing
Yeah, it must
Good enough, that’s what I needed to know, thanks.
Cool