Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Ray Miller
Hi, I ran into a problem reading a private key from a file using buddy-core version 1.1.1. I created a private key using: openssl genrsa -aes256 -out resources/auth_privkey.pem 2048 Here's the code: (ns tryme-buddy.core (:require [buddy.core.keys :as ks] [clojure.java.io :as io])

`partition-all` issue

2016-12-21 Thread Punit Naik
Hi Guys Recently I came across this issue i.e. when the user passes 0 as the `n` parameter to the `partition` or `partition-all` function, the code hangs indefinitely without throwing an error or anything. I was using this function inside my Elasticsearch back-end API and when this condition us

`partition-all` issue

2016-12-21 Thread Alex Miller
This has come up before (http://dev.clojure.org/jira/browse/CLJ-764) and we decided this was the desired behavior, so no plans to change it. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com

Re: `partition-all` issue

2016-12-21 Thread Punit Naik
Okay Alex, thanks. On Wednesday, December 21, 2016 at 6:23:34 PM UTC+5:30, Alex Miller wrote: > > This has come up before (http://dev.clojure.org/jira/browse/CLJ-764) and > we decided this was the desired behavior, so no plans to change it. -- You received this message because you are subscribe

Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
I found an issue with Clojure's behavior on iterators that somewhat relates to what was discussed the comment thread of http://dev.clojure.org/jira/browse/CLJ-1738. I'm posting it here to raise awareness and to see if anyone thinks it is a legitimate concern or "behaving as expected". Fortuna

Implementing algorithms in Clojure

2016-12-21 Thread Przemysław Wojnowski
Hello everybody, Recently I was implementing Insertion Sort in Clojure and did that using transients: --- cut --- (defn- insert "Insert element from `idx` into correct position in transient vector `tv`." [tv idx] (let [current-value (get tv idx)] (loop [i idx v tv] (let [left-val

Re: Implementing algorithms in Clojure

2016-12-21 Thread Alex Miller
On Wednesday, December 21, 2016 at 8:05:49 AM UTC-6, Przemysław Wojnowski wrote: > > Hello everybody, > > Recently I was implementing Insertion Sort in Clojure and did that using > transients: > --- cut --- > (defn- insert > "Insert element from `idx` into correct position in transient vector

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Alex Miller
On Wednesday, December 21, 2016 at 7:24:17 AM UTC-6, Mike Rodriguez wrote: > > > Also, since `reduce` doesn't work like I'd expect here, it makes me > question if I could rely on the fact that `sequence` and `eduction` do > happen to work out right now. > I think that's an artifact of the impl

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
On Wednesday, December 21, 2016 at 9:02:36 AM UTC-6, Alex Miller wrote: > > > > On Wednesday, December 21, 2016 at 7:24:17 AM UTC-6, Mike Rodriguez wrote: >> >> That sounds like a good idea to me. I think the major potential issue is >> that it creates ambiguity and non-deterministic dispatch fo

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Nicola Mometto
Something like what I proposed in http://dev.clojure.org/jira/browse/CLJ-1807 would help solve this ambiguity On 21/12/16 15:22, Mike Rodriguez wrote: On Wednesday, December 21, 2016 at 9:02:36 AM UTC-6, Alex Miller wrote: On Wednesday, December 21, 2016 at 7:24:17 AM UTC-6, Mike R

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Alex Miller
>From prior conversations, Rich is not in favor of the preference approach for protocols. I'm not sure what he has in mind as an alternative though. On Wednesday, December 21, 2016 at 9:29:14 AM UTC-6, Nicola Mometto wrote: > > Something like what I proposed in > http://dev.clojure.org/jira/brow

Re: Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Henrik Lundahl
Hi Which JRE are you using? Perhaps it's not the same as for lein run? This seems very relevant: https://github.com/funcool/buddy-core/issues/43 BR -- Henrik On Wed, Dec 21, 2016 at 11:54 AM, Ray Miller wrote: > Hi, > > I ran into a problem reading a private key from a file using buddy-cor

Re: Reducing non-Clojure maps may not behave as expected

2016-12-21 Thread Mike Rodriguez
Thanks, both of you, for the extra background there. On Wednesday, December 21, 2016 at 9:44:34 AM UTC-6, Alex Miller wrote: > > From prior conversations, Rich is not in favor of the preference approach > for protocols. I'm not sure what he has in mind as an alternative though. > > On Wednesday,

Specter 0.13.2 released

2016-12-21 Thread Nathan Marz
Specter 0.13.2 has been released, available from Clojars https://clojars.org/com.rpl/specter Specter supercharges your ability to work with regular data structures. This release contains a few bug fixes and is likely the last release before 1.0. Changes: * Bug fix: Fix race condition relating

Re: [ANN] data.xml 0.2.0-alpha1

2016-12-21 Thread Francis Hitchens
Hi Herwig, Thanks for the quick response. So I upgraded to the latest version and now I see my tags represented not as QName Java objects but as horribly long keywords like so... xmlns.http%3A%2F%2Fintegration.sprint.com %2Fv2%2Fcommon%2FCanonicalDataModel.xsd/mqMessageHeader Is there a way I ca

Boot 2.7.1 (and 2.7.0) released

2016-12-21 Thread Alan Dipert
Hi all, In the past week we released versions 2.7.0 and 2.7.1 of Boot. Boot is "build tooling for Clojure" and you can learn more about it at http://boot-clj.com/ 2.7.0 has a lot of stuff in it. 2.7.1 just fixes a Windows regression introduced by 2.7.0. For the full list of changes, see https

Re: [ANN] data.xml 0.2.0-alpha1

2016-12-21 Thread Herwig Hochleitner
2016-12-22 5:23 GMT+01:00 Francis Hitchens : > > Hi Herwig, > > Thanks for the quick response. So I upgraded to the latest version and now > I see my tags represented not as QName Java objects but as horribly long > keywords like so... > > xmlns.http%3A%2F%2Fintegration.sprint.com%2Fv2%2Fcommon% >

Re: Problem with buddy.core.keys/private-key in uberjar

2016-12-21 Thread Ralf Schmitt
Ray Miller writes: > This works as expected when invoked with `lein run`, but if I create an > uberjar with `lein do clean, uberjar` and invoke with `java -jar ...` I get > the following exception: > > Exception in thread "main" org.bouncycastle.openssl.PEMException: Unable to > create OpenSSL PB