Re: I want to parse the POST body twice.

2014-03-02 Thread action
gt; > On 2 March 2014 16:18, action > 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? >> >> -- >

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 em

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

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: clojure.la

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 > > wrote: > > Monger, and any other popular driver? > > > CongoMongo -- but see this thread: > https://groups.google.com/forum/#!topic/clojure/JOREq-Jl1Ns > >

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 unsubscrib

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? > Suc

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 pos

Re: Programming clojure second Edition

2014-02-03 Thread action
n of its indices >> a map is a function of its keys >> a set 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] >&

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