Fork me on GitHub
#beginners
<
2016-10-08
>
michaelmrose02:10:01

hey regarding puget I thought that I would put something like

michaelmrose02:10:05

:puget {:color-scheme {:delimiter [:bold :blue]
                        :string [:blue]}}}

michaelmrose02:10:23

directly in profiles.clj at the same level as :user

michaelmrose02:10:55

also tried it as part of :user and in the project.clj without success didn't know if I was doing it wrong or where it was supposed to go

jeremykirkham10:10:46

Hi guys, first time post! I'm trying to send a map directly to S3 using the amazonica library

`
(put-object config.core/aws-creds
              :bucket-name "bucket1"
              :key "some-key.json"
              :file {:key1 "val1" :key2 "val2"}))
` But :file expects a filename from the local filesystem I think. put-object can also take a :stream parameter which may be better, my question is how do I turn a map into that?

donaldball15:10:10

pr-str will transform a clojure data structure as an edn string

donaldball15:10:42

(.getBytes s) will get the byte array for a string

donaldball15:10:05

( x) can coerce many things into an input-stream, including a byte array

swizzard18:10:32

i’m getting ssl errors with http-kit and i’m not quite sure what to do

val_waeselynck19:10:38

@swizzard what errors ? And are you using it as a client or server

swizzard19:10:51

#<javax.net.ssl.SSLHandshakeException@378df6bb javax.net.ssl.SSLHandshakeException: General SSLEngine problem>

val_waeselynck19:10:48

@swizzard can you print the whole stack trace ?

val_waeselynck19:10:06

e.g using clojure.repl/pst

swizzard19:10:27

i’ve already switch to clj-http, honestly

swizzard19:10:33

but i’m still getting ssl errors with that

val_waeselynck19:10:18

can't help you much wo more details about the errors

swizzard19:10:48

fair enoguh

swizzard19:10:52

i can get to the site i’m trying to scrape fine in chrome

swizzard19:10:02

and it seems like it has a legit/non-expired cert

val_waeselynck19:10:54

@swizzard have you tried fetching the page with a non-jvm client e.g cUrl ?

swizzard19:10:07

requests works

swizzard19:10:33

as does curl

swizzard19:10:19

heh i was just looking at that

swizzard19:10:20

fair enough!

swizzard19:10:23

thanks anyway

swizzard20:10:18

is it possible to set system properties with leiningen?

swizzard20:10:29

my googling has been inconclusive