Re: Not using dependency injection - how do I share services around?
Do any of the clojure books cover this topic? -- -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Not using dependency injection - how do I share services around?
Do any of the clojure books cover this topic? -- -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Architecting a large multi-threaded process
>From Mark Volkmann tutorial - http://java.ociweb.com/mark/clojure/article.html "The send function uses a "fixed thread pool" (see the newFixedThreadPool method in java.util.concurrent.Executors) where the number of threads is the number of processors plus two. If all of those threads are busy, the action doesn't run until one becomes available. The send-off function uses a "cached thread pool" (see the newCachedThreadPool method where existing threads in the pool are used if available and new threads are added otherwise." Is it possible to set the size of the cached thread pool? If so, it might solve your problem. --~--~-~--~~~---~--~~ 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Clojure and Comet
Hi all, Is any one aware of a Clojure web framework that has built in support for Comet or BOSH? Thanks, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure on Android
Android 2.2 will have a JIT added to the VM which is reportedly improving performance anywhere between 2x to 5x. Lets hope Clojure get this type of speed improvement on Android. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: State of Clojure web development
Hi James, For me the big missing item is Comet/Websockets support. More and more of the web development I do requires near real time communication and to have that feature integrated in the framework (like lift) would be great. thanks Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Documentation and examples (and where is the documentation on reduce)?
> Uh. Sky is falling again. But your are right. Nice examples would be a > nice addition. It's the first thing I'm looking for, when learning > something new. I'm not sure they should go to the reference docs, > though. Ruby is an example of a language that does have some examples in the reference docs and i think it helps a lot. Regards, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
clj-http and boundary in the POST request
Hi all, The REST endpoint I need to call requires multiple boundaries in the POST request. Does any one know how to do this in clj-http? Lets say my header had the following boundary Content-Type"multipart/form-data; boundary=the_message_boundary" How could i create a body with multiple boundaries such as - --the_message_boundary Content-Type: application/json {"Subject":"this is a subject", "Secure":true} --the_message_boundary Content-Type: application/json {"Recipient": "y...@you.com"]} ..etc etc Thanks, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: clj-http and boundary in the POST request
Hi Lee, Thanks for the suggestion, will try that approach. regards, Jimmy On Tuesday, April 3, 2012 4:30:10 PM UTC+1, Lee Hinman wrote: > > On Apr 3, 12:55 am, Jimmy wrote: > > Hi all, > > > > The REST endpoint I need to call requires multiple boundaries in the > > POST request. Does any one know how to do this in clj-http? Lets say > > my header had the following boundary > > > > Content-Type"multipart/form-data; boundary=the_message_boundary" > > > > How could i create a body with multiple boundaries such as - > > > > --the_message_boundary > > Content-Type: application/json > > {"Subject":"this is a subject", "Secure":true} > > > > --the_message_boundary > > Content-Type: application/json > > {"Recipient": "y...@you.com"]} > > > > ..etc etc > > > > Thanks, > > Jimmy > > Would it be possible for you to create the body, and pass it in as a > regular :body option in the request? Or, do you need clj-http to > create this type of request automatically? > > What about using something like this? > > (defn make-body > [boundary body] > (str boundary "\n" >"Content-Type: application/json\n" >(json/encode body) "\n")) > > (defn create-multi-bodies > [boundry bodies] > (clojure.string/join "\n" (map (partial make-body boundary) > bodies))) > > - Lee -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
JavaScript is Assembly Language for the Web
With clojurescript just launched, I thought there might be some interest in this podcast by Scott Hanselman. JavaScript is Assembly Language for the Web - http://www.hanselminutes.com/default.aspx?showID=294 Some discussion regarding the podcast. http://www.hanselman.com/blog/JavaScriptIsAssemblyLanguageForTheWebPart2MadnessOrJustInsanity.aspx Regards, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Silly Chat: Clojure, ClojureScript and WebSockets
Whats handling the serverside websockets connections? -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Quartz and Clojure
Hi, Is there any know Clojure wrapper for the Quartz scheduling service? thanks, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Quartz and Clojure
Great stuff, thanks. On Dec 8, 6:23 am, Lars Rune Nøstdal wrote: > You've probably found this by now, but > there's:https://github.com/mdpendergrass/quartz-clj -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Creating map from string
Hi, I would like to generate a hashmap from a string. The key portions of the string will have some a prefix such as @ to define that they are a key. So the following string "@key1 this is a value @another-key and another value @test1 and other value" would get converted to. { :@key1 "this is a value", :@another-key "and another value" , :@test1 "and other value"} What's the best way to do this? Thanks, Jimmy -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Creating map from string
Ok, those sugggestions work great. Thanks for the help. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure Course on Coursera
I'm enrolled in example course. This course is attempting to teach functional constructs regardless of language, but the homework and examples are done in Scala. If there were to be a Clojure course available, I would prefer it to be more directly about Clojure than generalizations. Currently, I'm actually also taking discrete math at my college and it's quite fun to see how often the things remind me of the little bit of Haskell with which I've played. On Thursday, September 20, 2012 8:43:52 AM UTC-4, Belun wrote: > > It would be really interesting to see a course about Clojure on > coursera.org, where a Scala and functional programming course just > started https://class.coursera.org/course/progfun -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en