Re: core.async | compojure ... odd error ... help!!

2014-09-28 Thread Max Penet
Jet supports what you were trying to do, it accepts a channel as return value to send the response to the client, and in the :body of the response (no matter the kind of response via a channel or map) to trigger chunked responses. see here https://github.com/mpenet/jet#ring-async On Saturday,

Re: core.async | compojure ... odd error ... help!!

2014-09-28 Thread Max Penet
Jet supports what you were trying to do, it accepts a channel as return value to send the response to the client, and in the :body of the response (no matter the kind of response via a channel or map) to trigger chunked responses. see here https://github.com/mpenet/jet#ring-async On Saturday,

Re: core.async | compojure ... odd error ... help!!

2014-09-28 Thread Ray McDermott
Excellent - thanks. Nice to see core.async getting the ring middleware love :) On 28 Sep 2014 at 10:48:57, Max Penet (m...@qbits.cc) wrote: Jet supports what you were trying to do, it accepts a channel as return value to send the response to the client, and in the :body of the response (no

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread tao.zhou2009
lein repl nREPL server started on port 60264 on host 127.0.0.1 - nrepl://127.0.0.1:60264 REPL-y 0.3.1 Clojure 1.6.0 Docs: (doc function-name-here) (find-doc part-of-name-here) Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or

Acceptance testing with Clojure

2014-09-28 Thread Ruslan Prokopchuk
I've googled around a little bit, but didn't found any relevant info about subject. Please, share your experience about acceptance testing with Clojure! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread Vladimir Bokov
Hi, what terminal, shell (+distro?) are you using? Do colors work well in grep --color or some thing else? Also, see https://github.com/razum2um/aprint/issues/2 - In meanwhile I hardly can reproduce such errors, most likely I need a vagrant box for that from you And file an issue on github,

Re: core.async | compojure ... odd error ... help!!

2014-09-28 Thread Mike Fikes
Hi mond, I've been using HTTPkit with Compojure and core.async (all fronted by Nginx so the entire stack is async FWIW). To glue core.async with HTTPkit when handling inbound requests, I have a utility function (defn handle-async! [handler req] (http-server/with-channel req channel

Re: Acceptance testing with Clojure

2014-09-28 Thread Ashton Kemerling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I can answer this in two ways: 1. Acceptance testing Clojure code. 2. Acceptance testing other code with Clojure. I have significantly more experience with the latter than the former. All in all, I prefer the built in clojure.test library over more

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread tao.zhou2009
Last login: Sun Sep 28 22:30:20 on ttys005 192:test tao$ lein repl nREPL server started on port 60609 on host 127.0.0.1 - nrepl://127.0.0.1:60609 REPL-y 0.3.1 Clojure 1.6.0 Docs: (doc function-name-here) (find-doc part-of-name-here) Source: (source function-name-here) Javadoc:

lein midje :autotest problem - fast re-init?

2014-09-28 Thread Steve Ford
I've really been enjoying using lein midje :autotest to run my tests every time I do an editor save. However, I introduced a bug in my code which it didn't detect. I re-arranged some code and accidentally moved a function reference above the point where the function is defined. When I saved,

[ANN] New release 0.28.1 of Counterclockwise

2014-09-28 Thread Laurent PETIT
Counterclockwise, the Eclipse Clojure development tool. Counterclockwise 0.28.1 has been released. Improvement over 0.28.0 based on user feedback. Thanks to all who helped improve Counterclockwise by their constructive comments! - Drag Drop from Github / Bitbucket / Google Code URLs works in

Re: lein midje :autotest problem - fast re-init?

2014-09-28 Thread Brian Marick
On Sep 28, 2014, at 9:57 AM, Steve Ford fordsfo...@gmail.com wrote: Any suggestions besides killing and restarting lein midje :autotest from time to time? (To be avoided given the long delay starting it.) You can use Stuart Sierra's workflow: description:

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-09-28 Thread Colin Williams
This seems cool, my approach isn't nearly as sophisticated and much more editor dependent. I've using prelude, which include projectile, which binds C-c p P to projectile-test-project. There were a couple customizations I had to make to get it really streamlined, though. The command shows up

Re: [ANN] A guide to setup test driven workflow for Clojure

2014-09-28 Thread tao.zhou2009
just use: https://github.com/weavejester/ns-tracker, (ns xxx.repl) (def modified-namespaces (ns-tracker [src test])) (defn reload [] (doseq [ns-sym (modified-namespaces)] (require ns-sym :reload))) and in project.clj :repl-options {:init-ns xxx.repl} when modified files, just

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread Brandon Bloom
Forgive me if this is unwelcome self-promotion, but I figured I'd take this opportunity to point out some similar projects: My re-usable pretty-printing engine with a simple EDN printer: https://github.com/brandonbloom/fipp A colorizing EDN printer built on Fipp:

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread Michael Wood
As a workaround, see if running stty sane fixes your terminal. -- Michael Wood On 28 Sep 2014 4:43 PM, tao.zhou2009 tao.zhou2...@gmail.com wrote: Last login: Sun Sep 28 22:30:20 on ttys005 192:test tao$ lein repl nREPL server started on port 60609 on host 127.0.0.1 - nrepl://

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread tao.zhou2009
stty sane after execute the above command, the terminal is normal. -- tao.zhou2009 Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, September 29, 2014 at 12:29 PM, Michael Wood wrote: stty sane -- You received this message because you are subscribed to the Google