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: [ANN] clj-kafka 0.3.1

2015-06-12 Thread Henrik Lundahl
Great stuff! Thanks Paul, Ragnar and others! -- Henrik On Fri, Jun 12, 2015 at 5:35 PM, Paul Ingles wrote: > Hi all, > > > I'm delighted to say 0.3.1 is released and available on Clojars. > > > It's been a long while since we've made any big changes to clj-kafka so > I'm very happy to say we'

Re: lein uberjar with prep tasks of cljx once, garden once and cljsbuild once loops forever

2015-05-26 Thread Henrik Lundahl
Adding :auto-clean false to project.clj *might* do the trick. BR -- Henrik On Tue, May 26, 2015 at 1:54 PM, Colin Yates wrote: > This looks similar to https://github.com/lynaghk/cljx/issues/60 but I am > running 0.6.0. > > I have tried "lein do clean, cljx once, garden once, cljsbuild once,

Re: Advice when running java -jar rather than a managed server like tomcat?

2015-05-26 Thread Henrik Lundahl
Hi For Logback you can set a system property (logback.configurationFile) that points to the location of your logback.xml. See http://logback.qos.ch/manual/configuration.html. BR -- Henrik On Tue, May 26, 2015 at 1:38 PM, Colin Yates wrote: > Hi, > > I am venturing into new territory using h

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-14 Thread Henrik Lundahl
How about this? :-) (defn altsum [n] (/ (if (odd? n) (+ 1 n) (- n)) 2)) -- Henrik On Fri, Nov 14, 2014 at 1:48 PM, Gary Verhaegen wrote: > What about cheating a bit? > > (interleave > (iterate #(+ % 2) 1) > (iterate #(- % 2) -2)) > > Then take n, reduce +, or whatever else you might want

Re: loop problems

2014-11-12 Thread Henrik Lundahl
Your loop seems to work as expected: user=> (def in-queue (java.util.concurrent.LinkedBlockingQueue. (range 1 11))) #'user/in-queue user=> (future (loop [res (.take in-queue)] (prn res) (recur (.take in-queue #1 2 3 4 5 6 7 8 9 10 user=> (.put in-queue 11) nil11 user=> What happens when you

Re: CCW 0.28.1.STABLE001 editor *very* slow when entering docstrings.

2014-11-09 Thread Henrik Lundahl
Forwarding to the CCW mailing list. BR Den 9 nov 2014 09:48 skrev "Fluid Dynamics" : > I may be unusual in this, but I often write several fairly lengthy > docstrings in each namespace. > > CCW 0.28.1.STABLE001's editor seems to get *very* slow when typing in the > latest such docstring if there

Re: where do I think the wrong way

2014-10-29 Thread Henrik Lundahl
The error message means that you gave assoc the wrong number of arguments. In the simplest case assoc takes three arguments - the map, a key and a (new) value, so you need to add another :authors: (defn add-author [book new-author] (assoc book :authors (conj (book :authors) new-author))) I thin

Re: add records in mysql????

2012-01-08 Thread Henrik Lundahl
Hi You're not supposed to specify the insert statement. Try this: (sql/insert-record :books {:BOOK_ID "%", :BOOK_NAME "joe", :BOOK_PRICE 12, :BOOK_AUTHOR "siley"}) ...using the same values as in your insert statement. Don't know about BOOK_ID, though... -- Henrik On Fri, Jan 6, 2012 at 10

Re: Clojure + Java Interop + Gnome Interop -- KeyPressEvent fails

2011-12-03 Thread Henrik Lundahl
Hi Rett There is no such type as org.gnome.gtk.Window$**KeyPressEvents, at least not in 4.1 of the Java Gnome API . org.gnome.gtk.Window$**KeyPressEvent exists though. I'd guess you have a typo somewhere, perhaps in the impo