how to send SSL certificate in POST request?

2017-02-21 Thread Pierre Masci
Hi, I am new to Clojure and using clj-http for the first time, to implement a REST client. I don't find anywhere how to indicate where my SSL certificate is located. Here is what I did: (ns my-client.core (:require [clj-http.client :as client] [clojure.pprint :refer :all])) (def

clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
Hi, I'm learning about tools to help me debug from the REPL, and I found these two with the same name: clojure.stacktrace/root-cause clojure.repl/root-cause For a very simple case (wrong arity), they give pretty similar output: user= (char 0 0 0) CompilerException

Re: clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
:3846) nil The top part of their output is the same, but not the bottom. If no-one comes up with an explanation, I'll use both until I understand which one is more useful to me, and report back here if I remember (hopefully!) On Monday, 21 July 2014 12:30:17 UTC+1, Pierre Masci wrote: Hi, I'm

A few String functions we could implement in Clojure?

2014-07-19 Thread Pierre Masci
Hi all, just nit picking about Clojure's String API. I've been comparing it with Java's http://www.tutorialspoint.com/java/java_strings.htm, and I noticed that (not surprisingly) they are very similar. There are just 2-3 functions that exist in Java but don't have an equivalent in Clojure. I

Re: How to use functions from clojure.contrib?

2014-07-13 Thread Pierre Masci
Haha, I've randomly come accross this exact same function in Prismatic/plumbing https://github.com/Prismatic/plumbing, plus a bunch of other interesting ones. I'll use that version from now. On Wednesday, 9 July 2014 13:26:21 UTC+1, Pierre Masci wrote: Thank you Andy, that's exactly

How to use functions from clojure.contrib?

2014-07-09 Thread Pierre Masci
Hi, I am new to Clojure (about a week) so I might be missing something. I want to use the (positions) http://clojuredocs.org/clojure_contrib/clojure.contrib.seq/positions function from clojure.contrib.seq. I could simply copy its source, but I would prefer a more generic way of using functions

Re: How to use functions from clojure.contrib?

2014-07-09 Thread Pierre Masci
Thank you Andy, that's exactly the answer I needed. I thought I might be missing the right place where to look, because I'm new to the ecosystem. http://crossclj.info http://www.google.com/url?q=http%3A%2F%2Fcrossclj.infosa=Dsntz=1usg=AFQjCNG-DyQUTVfpaTQKl0M8glmTtO-tMQ is a very good resource