Re: I want to get sha1 of a string

2014-03-02 Thread action
ok,think you! 在 2014年3月2日星期日UTC+8上午12时28分25秒,JPH写道: I've had good experiences with https://github.com/xsc/pandect. You can also use Java interop like this: https://gist.github.com/prasincs/827272 JPH On 03/02/2014 12:26 AM, action wrote: do like this: (ns

I want to parse the POST body twice.

2014-03-02 Thread action
I want to parse the POST body twice, but in the second place: org.xml.sax.SAXParseException: Premature end of file. How should I clone the body render for the second parse? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: I want to parse the POST body twice.

2014-03-02 Thread action
, action action...@gmail.com javascript: wrote: I want to parse the POST body twice, but in the second place: org.xml.sax.SAXParseException: Premature end of file. How should I clone the body render for the second parse? -- You received this message because you are subscribed to the Google

I want to get sha1 of a string

2014-03-01 Thread action
do like this: (ns clojurewerkz.support.hashing (:require [clojurewerkz.support.internal :as i]) (:import [com.google.common.hash Hashing HashFunction HashCode])) but: FileNotFoundException Could not locate clojurewerkz/support__init.class or cloju rewerkz/support.clj on classpath:

mongodb driver for clojure?

2014-02-28 Thread action
Monger, and any other popular driver? -- 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe

Re: mongodb driver for clojure?

2014-02-28 Thread action
Think you. 在 2014年3月1日星期六UTC+8上午3时44分19秒,Sean Corfield写道: On Feb 28, 2014, at 7:29 AM, action action...@gmail.com javascript: wrote: Monger, and any other popular driver? CongoMongo -- but see this thread: https://groups.google.com/forum/#!topic/clojure/JOREq-Jl1Ns Sean Corfield

Re: How to override the default port on 3000?

2014-02-26 Thread action
It's ok! Think you for all the answer! 在 2014年2月25日星期二UTC+8下午10时21分05秒,action写道: I do like this: #lein new compojure-app guestbook #cd guestbook #lein ring server The server runs on port 3000 by default. But how to override the default port? Such as runs on port 80? thinks -- You

How to override the default port on 3000?

2014-02-25 Thread action
I do like this: #lein new compojure-app guestbook #cd guestbook #lein ring server The server runs on port 3000 by default. But how to override the default port? Such as runs on port 80? thinks -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Programming clojure second Edition

2014-02-03 Thread action
(defn index-filter [pred coll] (when pred (for [[idx elt] (indexed coll) :when (pred elt)] idx))) (index-filter #{\a \b} abcdef) - (0 1) but I don't know why use when pred in the code, and why (index-filter {\a \b} abcdef) doesn't work? -- You received this message because you are

Re: Programming clojure second Edition

2014-02-03 Thread action
is a function of its elements does this help at all? Jim On 03/02/14 15:29, action wrote: (defn index-filter [pred coll] (when pred (for [[idx elt] (indexed coll) :when (pred elt)] idx))) (index-filter #{\a \b} abcdef) - (0 1) but I don't know why use when pred