Re: Clojure Sticker

2012-07-29 Thread eniotna
Thanks On Jul 29, 2012 3:38 AM, "Benjamin Kircher" wrote: > On Sat, Jul 28, 2012 at 2:05 PM, Rich Hickey wrote: > > You can now get official Clojure stickers here: > > > > http://clojure.org/swag > > > > I'll be adding T-shirts etc soon. > > > > Rich > > > > On Jul 19, 2012, at 3:13 PM, charlie

Re: Why is EMPTY.withMeta(meta()) used instead of just EMPTY in clojure.lang.*?

2012-07-29 Thread Per Mildner
Thanks, but the question was not about the empty() methods. On Sunday, July 29, 2012 4:14:09 AM UTC+2, tbc++ wrote: > > > > On Sat, Jul 28, 2012 at 7:47 AM, Per Mildner wrote: > >> Looking at the persistent types in clojure.lang.* (PersistentVector.java >> et al.) I see several occurrences of th

Re: Why is EMPTY.withMeta(meta()) used instead of just EMPTY in clojure.lang.*?

2012-07-29 Thread Per Mildner
I am sorry, You are correct. I see what you mean. I mis-interpreted meta() as returning an empty meta-map. On Sunday, July 29, 2012 10:26:46 AM UTC+2, Per Mildner wrote: > > Thanks, but the question was not about the empty() methods. > > On Sunday, July 29, 2012 4:14:09 AM UTC+2, tbc++ wrote: >>

help with lein-localrepo

2012-07-29 Thread Samrat Man Singh
I want to use goose(https://github.com/jiminoc/goose) in a Clojure project and found a StackOverflow answer that pointed me to lein-localrepo. However, I couldn't figure out how to use it. I did: lein localrepo install ../goose/target/goose-2.1.19.jar goose/goose 2.1.19 And lein locallrepo list

[no subject]

2012-07-29 Thread John Holland
I'm doing some exercises in coding that are meant for Java but I'm doing them in Clojure. I'm stuck on this one. The goal is to return true if an array of ints contains two consecutive 2s. I figured I'd use Stuart Halloway's by-pairs function to turn the sequence into pairs of numbers and check for

Re:

2012-07-29 Thread Mark Rathwell
In your has22 definition, (by-pairs [a]) should be (by-pairs a) On Sun, Jul 29, 2012 at 9:07 AM, John Holland wrote: > I'm doing some exercises in coding that are meant for Java but I'm doing > them in Clojure. I'm stuck on this one. The goal is > to return true if an array of ints contains two c

Re:

2012-07-29 Thread Moritz Ulrich
Also, take a look at `partition'. On Sun, Jul 29, 2012 at 3:19 PM, Mark Rathwell wrote: > In your has22 definition, (by-pairs [a]) should be (by-pairs a) > > On Sun, Jul 29, 2012 at 9:07 AM, John Holland wrote: >> I'm doing some exercises in coding that are meant for Java but I'm doing >> them i

Re:

2012-07-29 Thread John Holland
Thanks! On Sun, Jul 29, 2012 at 9:22 AM, Moritz Ulrich wrote: > Also, take a look at `partition'. > > On Sun, Jul 29, 2012 at 3:19 PM, Mark Rathwell > wrote: > > In your has22 definition, (by-pairs [a]) should be (by-pairs a) > > > > On Sun, Jul 29, 2012 at 9:07 AM, John Holland > wrote: > >> I

Re: Clojure Sticker

2012-07-29 Thread Tom Maynard
On 07/28/2012 07:05 AM, Rich Hickey wrote: You can now get official Clojure stickers here: http://clojure.org/swag I've already ordered enough for myself and all my coworkers. I'll paste one on my laptop lid (as will they all), and -- let's see -- one for the car, one for the front window a

Re: community interest in machine learning (?)

2012-07-29 Thread Timothy Washington
Hey Ben, It's the same problem. user> (incanter/exp (incanter/minus 3254604.9658621363)) 0.0 But it's not the functions. It's the math. Euler's number 2.71828... raised to the power of 3254604.9658621363, gives Infinity. So for my neural net's activation func, either i) I shouldn't used a sigmo

Re: community interest in machine learning (?)

2012-07-29 Thread Dimitrios Jim Piliouras
Hi Tim, According to : http://www.heatonresearch.com/content/encog-30-article-2-design-goals-overview encog 3 should have descent support for any temporal (time-series) based prediction support in particular for financial predictions...I'm afraid however that the only example that I've ported to

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread John Gabriele
On Thursday, July 26, 2012 3:59:46 PM UTC-4, Aaron Lebo wrote: > > {snip} The JVM really does have a wide swath of functionality already available. > Some of the things that I ended up using were email libraries, date > formatting libraries, and an rss feed generator. There never was a point

Re: How to add an URL into the classpath?

2012-07-29 Thread Yoshinori Kohyama
Hello programmers, Hi, Sierra. Thank you replying. O.K. I can not always contol the classloader of the whole JVM. Then, how can I get the dynamic classloader for my current code/thread? Or can't I? Regards, Yoshinori Kohyama -- You received this message because you are subscribed to the Goog

doc strings for both interfaces and concrete implementations

2012-07-29 Thread Warren Lynn
Is there a way to create doc strings on both interfaces (procotols, multi functions) and concrete implementations (protocol implementation, multi-methods)? For now it seems to me I can only have doc strings for the interfaces. If that is the case, I feel it is something worth fixing, because in

Re:

2012-07-29 Thread Ulises
Here's an edge case for you: (has22 [1 2 2 1]) ; false :) U -- 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

Re: doc strings for both interfaces and concrete implementations

2012-07-29 Thread Tassilo Horn
Warren Lynn writes: > Is there a way to create doc strings on both interfaces (procotols, > multi functions) and concrete implementations (protocol > implementation, multi-methods)? No, I don't think so. > Assuming we don't have it yet, what I am hoping for is, when I do (doc > symbol), or use

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread Andrew Kondratovich
getting http 500 after registration =( On Thursday, July 26, 2012 10:59:46 PM UTC+3, Aaron Lebo wrote: > > Hello! > > Sometime around 2 and a half months ago, I started to work on a new > project using Clojure. I've been using Python heavily for about 6 six years > working for a small direct mai

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread Aaron Lebo
Hi Samrat. Could you explain how you are trying to access the site (address) and what is happening? I started out in noir, and ended up using a lot of the design patterns and validation library. I stopped using noir for two reasons: I like being able to see the routes of all of my urls on a singl

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread Aaron Lebo
> > Curious: If you didn't find what you needed in Java's standard class > library, where else did you go looking for Java libraries? > Usually it was just a matter of Googling something like "java rss" if I was in need of an rss library. Once I found a library which seemed useful and supported, i

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread Aaron Lebo
What would we do without bugs? :) :( I've noticed that several people have gotten in using regular registration as well as even logging in through github or Facebook. What method are you using? On Sun, Jul 29, 2012 at 2:15 PM, Andrew Kondratovich < andrew.kondratov...@gmail.com> wrote: > getting

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread Aaron Lebo
Just saw that you are actually in the system here: http://www.kodefund.com/users/8/ The 500 error probably was in sending off the validation email, which you dont need to login. Sorry, some of these little things pop up from time to time. On Sun, Jul 29, 2012 at 2:47 PM, Aaron Lebo wrote: > Wh

Re: doc strings for both interfaces and concrete implementations

2012-07-29 Thread Warren Lynn
> In general, all different versions of a function should somehow do the > same thing, so with separate docstrings you'd need to repeat yourself. > A good guideline is to write the "big picture" first, followed by the > meaning of the different parameters. > > I agree the design should keep a

Re: help with lein-localrepo

2012-07-29 Thread Shantanu Kumar
On Sunday, 29 July 2012 17:37:40 UTC+5:30, Samrat Man Singh wrote: > > I want to use goose(https://github.com/jiminoc/goose) in a Clojure > project and found a StackOverflow answer that pointed me to lein-localrepo. > However, I couldn't figure out how to use it. > > I did: > lein localrepo ins

Re: how can "a" become *agent* in this code?

2012-07-29 Thread larry google groups
I'll ask this differently. I do not see "a" used anywhere inside of that function. So why is it being given to that function? On Tuesday, July 24, 2012 1:36:27 AM UTC-4, Philip Potter wrote: > > "a" is the current value of the agent. *agent* is the agent itself. > > Remember the universal up

Re: how can "a" become *agent* in this code?

2012-07-29 Thread Michael Wood
On 30 July 2012 01:34, larry google groups wrote: > > I'll ask this differently. I do not see "a" used anywhere inside of that > function. So why is it being given to that function? I have not used send-off, but I think the answer is as follows: When you call (send-off the-agent the-function), "

Re: how can "a" become *agent* in this code?

2012-07-29 Thread Evan Mezeske
> > When you call (send-off the-agent the-function), "the-function" gets > called with a single argument (which is the current value of the > agent). That is why log-dumper has an argument. Of course, > log-dumper does not use its argument, but it must still be there. > Perhaps it should hav

Re: How to add an URL into the classpath?

2012-07-29 Thread Stuart Sierra
You can't. The dynamic classloader is an internal implementation detail of Clojure; you can't rely on it being available anywhere. If you're interested in runtime control over the the Java classpath, look at https://github.com/cemerick/pomegranate -S On Sunday, July 29, 2012 2:05:00 PM UTC-4,

Re:

2012-07-29 Thread Yoshinori Kohyama
Hi John, 'partition' will be useful for you, as Moritz pointed out. (partition 2 1 [1 2 3 4]) -> ((1 2) (2 3) (3 4)) (partition 2 1 [1 2 2 4]) -> ((1 2) (2 2) (2 4)) (partition 2 1 [1 2 2 2]) -> ((1 2) (2 2) (2 2)) (some #(= % [2 2]) (partition 2 1 [1 2 3 4])) -> nil (some #(= % [2 2]) (partitio

Re: How to add an URL into the classpath?

2012-07-29 Thread Yoshinori Kohyama
Hi Sierra, Thank you for your kind and quick answers to my questions. I see. I'll read the page you referred. Regards, Yoshinori Kohyama -- 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 No

Re: How to add an URL into the classpath?

2012-07-29 Thread Yoshinori Kohyama
Hello clojurians, It seems not to be able to control the whole classpath of my runtime. But my aim, compiling with a path given at runtime and execute it, has been achieved, with (.setContextClassLoader (Thread/currentThread) (DynamicClassLoader. (.getContextClassLoader (Thread/currentThrea

Re: How to add an URL into the classpath?

2012-07-29 Thread Yoshinori Kohyama
I forgot to show foo/core.clj $ cat samples/src/foo/core.clj (ns foo.core) (defn -main [& args] (loop [] (println "Foo: " (apply str (interpose " " args))) (Thread/sleep 1000) (recur))) -- You received this message because you are subscribed to the Google Groups "Clojure" group.