Re: How do you configure your Ring apps?

2013-09-07 Thread Gordon Stratton
I'm only starting out with Clojure/Ring, but I was thinking about this recently too. I had something like the following in mind, borrowing some concepts from other projects/frameworks/strategies that I've had success with. The project could contain something like 'config/global.clj' which

Re: How do you configure your Ring apps?

2013-09-08 Thread Gordon Stratton
James, Plug much appreciated - Nomad looks great! On Sun, Sep 8, 2013 at 7:09 PM, James Henderson james.hender...@likely.co wrote: Hi Gordon/all, Hope you'll forgive the plug, but it sounds like Nomad does what you want here. In particular, it allows you to store configuration for multiple

Re: Unsupported major.minor version 49.0

2013-11-11 Thread Gordon Stratton
More information on the version mismatch in this case: http://www-01.ibm.com/support/docview.wss?uid=swg21496820 On Mon, Nov 11, 2013 at 7:19 AM, hpw...@googlemail.com wrote: Hello, I just download latest clojure zip and start it as described: C:\clojure-1.5.1java -cp clojure-1.5.1.jar

Re: better way to group consecutive numbers in a vector?

2014-11-06 Thread Gordon Stratton
On Thu, Nov 6, 2014 at 10:22 PM, John Gabriele jmg3...@gmail.com wrote: Hi all, I've got this: `[1 3 4 5 7 9 10 11 12]` and I'd like to turn it into this: `[[1] [3 4 5] [7] [9 10 11 12]]`. That is, I'd like to group consecutive numbers together (the final goal being to produce something

clojure.spec/keys question

2016-05-29 Thread Gordon Stratton
Hi all, clojure.spec/keys is documented to accept vectors for :req, :req-un, etc. Shouldn't that also work if such a vector is previously bound? Clojure 1.9.0-alpha3 user=> (require '[clojure.spec :as s]) nil user=> (def ks [::foo ::bar]) #'user/ks user=> (s/def ::foospec (s/keys