This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-17
Channels
- # announcements (4)
- # beginners (82)
- # boot (1)
- # calva (26)
- # cider (13)
- # clj-kondo (41)
- # cljs-dev (25)
- # cljsrn (7)
- # clojure (82)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dev (13)
- # clojure-europe (11)
- # clojure-italy (27)
- # clojure-nl (8)
- # clojure-russia (6)
- # clojure-spec (32)
- # clojure-uk (15)
- # clojurescript (61)
- # core-async (1)
- # cursive (9)
- # data-science (1)
- # datomic (18)
- # duct (1)
- # emacs (2)
- # events (7)
- # fulcro (13)
- # graalvm (5)
- # immutant (1)
- # jobs-discuss (63)
- # leiningen (3)
- # off-topic (48)
- # om (3)
- # pathom (13)
- # planck (20)
- # prelude (3)
- # re-frame (55)
- # reagent (13)
- # reitit (5)
- # rewrite-clj (12)
- # shadow-cljs (67)
- # spacemacs (14)
- # sql (5)
- # tools-deps (4)
- # vim (23)
- # yada (2)
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.
Thanks @bherrmann, will take a look...
@bherrmann Fixed
sudo apt-get update
sudo apt-get install planck
and you should be good to goCan planck handle reading in binary files into a buffer? My attempt at google-fu is returning results that start with (require '[
…
@manutter51 Yes.
has input stream and output stream abstractions just like
(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.
Ooo, that looks promising, thanks!
Ok, I can try lumo instead, I’m sure node supports that sort of thing
Good enough, that’s what I needed to know, thanks.