Fork me on GitHub
#planck
<
2019-06-17
>
bherrmann01:06:13

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.

bherrmann01:06:38

$ cat /etc/issue.net 
Ubuntu 19.04

mfikes01:06:43

Thanks @bherrmann, will take a look...

mfikes02:06:34

@bherrmann Fixed

sudo apt-get update
sudo apt-get install planck
and you should be good to go

bherrmann23:06:47

There is much rejoicing!!!!

manutter5115:06:30

Can planck handle reading in binary files into a buffer? My attempt at google-fu is returning results that start with (require '[ :as io])

mfikes15:06:47

@manutter51 Yes. has input stream and output stream abstractions just like (as contrasted with reader and writer abstractions)

manutter5115:06:50

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.

mfikes15:06:46

@manutter51 You would like a single array that looks like #js [7 1 32 ...] ?

manutter5115:06:37

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.

manutter5115:06:05

I can just slurp and go with a text-only file, but as soon as I include binary data the POST request times out

manutter5115:06:24

which I assume is because you can’t safely use slurp with binary data.

manutter5115:06:02

Ooo, that looks promising, thanks!

mfikes15:06:30

I suspect it is a trivial change to make to the code, but not supported yet.

manutter5115:06:15

Ok, I can try lumo instead, I’m sure node supports that sort of thing

mfikes15:06:26

Yeah, it must

manutter5115:06:12

Good enough, that’s what I needed to know, thanks.