Re: clojure-contrib.jar file

2011-06-11 Thread octopusgrabbus
Thanks. These are the links I've used, and it's worked just fine on
two systems now. I probably got the deprecated version.

On Jun 10, 1:09 am, Sean Corfield  wrote:
> On Thu, Jun 9, 2011 at 3:15 PM, Benny Tsai  wrote:
> > I've never built contrib from source, but I believe the repository you'll
> > want to clone from is this one:
>
> > git://github.com/clojure/clojure-contrib.git
>
> The monolithic contrib library has been deprecated (and I'm not sure
> you'll get it to build).
>
> If you're on Clojure 1.2.x, just download the 1.2.0 contrib 
> fromhttp://clojure.org/downloads
>
> If you're on Clojure 1.3.0 (either an alpha or a snapshot), you'll
> either want the last monolithic build: 1.3.0-alpha4 (I *think* the id
> is org.clojure.contrib/standalone?). Or you'll want to start using the
> new modular contrib 
> libraries:http://dev.clojure.org/display/design/Contrib+Library+Names(see 
> alsohttp://corfield.org/clj/index.cfm).
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View --http://corfield.org/
> World Singles, LLC. --http://worldsingles.com/
> Railo Technologies, Inc. --http://www.getrailo.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)

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


Recursive var definition

2011-06-11 Thread Shoeb Bhinderwala
Fairly new to clojure. When I was browsing a solution to one of the
problems in project Euler, I came across a solution that used a
recursive var definition.

;By considering the terms in the Fibonacci sequence whose values do
not
;exceed four million, find the sum of the even-valued terms.
(def fibs
  (lazy-cat '(0 1) (map + fibs (drop 1 fibs

(def result
  (reduce +
(take-while (partial >= 400) (filter even? fibs

I have never seen a recursive var definition such as fibs above and
fail to understand how it works. When I read the fibs definition
above, it looks like to define fibs it already should know about fibs
since it is used in the map function. How does this work? And is this
a good/idiomatic practice?

Thanks
Shoeb

PS: Message to owner of this google group: Could you remove my other
email address "shua...@gmail.com" from the banned list? Thanks.

-- 
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: Namespace bug?

2011-06-11 Thread Brent Millare
I see now, thanks.

On Jun 11, 2:29 am, Meikel Brandmeyer  wrote:
> Hi,
>
> Am 11.06.2011 um 08:01 schrieb Brent Millare:
>
> > Using Clojure 1.3.0-alpha8 can anyone else confirm this?
>
> > user=> (require '[clojure.repl :as r])
> > nil
> > user=> (ns-aliases (the-ns 'clojure.repl))
> > {}
> > user=> (map #(ns-aliases (ns-name %)) (all-ns))
> > ({} {} {} {} {} {} {} {} {r #} {} {} {} {} {}
> > {} {} {})
>
> user=> (require '[clojure.repl :as r])
> nil
> user=> (ns-aliases (the-ns 'clojure.repl))
> {}
> user=> (ns-aliases (the-ns 'user))
> {r #}
>
> The alias is added on the “local” namespace, not the “remote” one.
>
> Sincerely
> Meikel

-- 
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: hammock driven development...

2011-06-11 Thread Pedro Teixeira

You might also enjoy the talk 'Where Good Ideas Come From'  ;)
http://www.youtube.com/watch?v=NugRZGDbPFU&feature=share

On Jun 9, 2:09 pm, Brian Marick  wrote:
> On Jun 9, 2011, at 3:27 PM, Jules wrote:
>
> > I'd also like to say this - TAKE THE HAMMOCK BIT SERIOUSLY - there is a 
> > growing body or research that indicates that you can problem solve better 
> > lying down. This may stem from the release of certain hormones, increased 
> > blood supply, maybe simply the fact that you are not wasting cycles and 
> > bandwidth trying to stay upright etc...
>
> I heard Guy Steele say he gets his best ideas in the shower. Since he has 
> more brilliant ideas than any ten impressive people, he must take a lot of 
> showers.
>
> I too get my best ideas in the shower. Or on long walks.
>
> Mileage varies.
>
> -
> Brian Marick, Artisanal Labrador
> Contract programming in Ruby and Clojure
> Occasional consulting on Agilewww.exampler.com,www.twitter.com/marick

-- 
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: hammock driven development...

2011-06-11 Thread Nick Brown
Going for walks also helps me.  Having some form a mild physical
activity that I don't have to concentrate on seems to help me think.
It can be a walk around the block, a hike through the park, or just
walking around the office.  You also get the added benefits of it
being good for your health, and you can get away with it easier at
work.
And while I like my hammock, lying down it in often results in me
falling asleep (and waking up covered in mosquito bites).  Though I
seem to remember Rich suggesting much of your thinking goes on while
you are asleep (but in your bed will probably result in fewer mosquito
bites, especially in North Carolina summers).

I think my notes from that talk read something like this:
Bring hammock to work.  :)
Go to sleep sober.  :(

Nick Brown
http://standardout.wordpress.com/

On Jun 9, 1:09 pm, Brian Marick  wrote:
> On Jun 9, 2011, at 3:27 PM, Jules wrote:
>
> > I'd also like to say this - TAKE THE HAMMOCK BIT SERIOUSLY - there is a 
> > growing body or research that indicates that you can problem solve better 
> > lying down. This may stem from the release of certain hormones, increased 
> > blood supply, maybe simply the fact that you are not wasting cycles and 
> > bandwidth trying to stay upright etc...
>
> I heard Guy Steele say he gets his best ideas in the shower. Since he has 
> more brilliant ideas than any ten impressive people, he must take a lot of 
> showers.
>
> I too get my best ideas in the shower. Or on long walks.
>
> Mileage varies.
>
> -
> Brian Marick, Artisanal Labrador
> Contract programming in Ruby and Clojure
> Occasional consulting on Agilewww.exampler.com,www.twitter.com/marick

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