Re: can't set up Clojure 1.2.1

2011-07-14 Thread Larry Travis
Jonathan: Thanks. When the instructions said "the directory in which you expanded clojure.zip" I took that to mean the directory I was in when I expanded clojure.zip, not the directory that was created to hold the zip-file contents. --Larry On 7/14/11 10:05 PM, Jonathan Cardoso wrote: Wei

Re: can't set up Clojure 1.2.1

2011-07-14 Thread Jonathan Cardoso
Weird =S. That only happens when you're not on the folder containing the clojure.jar or when you try to call clojure from a different folder without setting the classpath. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

can't set up Clojure 1.2.1

2011-07-14 Thread Larry Travis
I need to upgrade from the older version of Clojure I have been using so I downloaded Version 1.2.1 and followed these instructions from http://clojure.org/getting_started: In the directory in which you expanded clojure.zip, run: java -cp clojure.jar clojure.main This will bring up a simple r

Re: Anyone on Google+ yet?

2011-07-14 Thread Allen Johnson
> Yep, you're supposed to add everyone by hand and yes, it is totally unwieldy. > That's the way it is right now. > Circles are private and every user is supposed to make their own. I'm definitely liking it so far. Although I do find myself avoiding public posts to avoid spamming everyone in the C

Re: Anyone on Google+ yet?

2011-07-14 Thread Nick Brown
It looks to me like it will have decent potential once all Google's services get integrated it in. So you can post stories from Google News and Google Reader, share Google Docs with a circle, create a circle based on a Google Group and all its members automatically get added... Oh well, until then

Re: Anyone on Google+ yet?

2011-07-14 Thread Claudia Doppioslash
Yep, you're supposed to add everyone by hand and yes, it is totally unwieldy. That's the way it is right now. Circles are private and every user is supposed to make their own. cla 2011/7/15 Dave Ray : > http://profiles.google.com/daveray > > maybe this is a dumb question, but am I supposed to man

Re: Anyone on Google+ yet?

2011-07-14 Thread Kyle Root
gplus.to/Kylert On Thu, Jul 14, 2011 at 7:00 PM, ianp wrote: > Ian > > Looks like G+ is pretty popular with the Clojure crowd :-) > > -- > 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 >

Re: Anyone on Google+ yet?

2011-07-14 Thread rberger
https://plus.google.com/102970635728322017075/posts -- 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.

Re: Anyone on Google+ yet?

2011-07-14 Thread Neal Jansons
https://plus.google.com/u/0/102817588588027389796/ -- 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.

Re: Anyone on Google+ yet?

2011-07-14 Thread Dave Ray
http://profiles.google.com/daveray maybe this is a dumb question, but am I supposed to manually add everyone on this thread in G+? Seems a little unwieldy. dave On Thu, Jul 14, 2011 at 8:56 PM, Charlie Griefer wrote: > On Thu, Jul 14, 2011 at 4:55 PM, Sean Corfield wrote: >> Is it just a case

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
Well, with my solution, namespace's docstring is shown when the same name exists both in vars and namespaces. So it seems better to remain (doc) and wrap the body of (ns-resolve) by (try ... (catch Exception e nil)) because (ns-resolve) docstring says "else nil", though it actually throws an

Re: Anyone on Google+ yet?

2011-07-14 Thread Charlie Griefer
On Thu, Jul 14, 2011 at 4:55 PM, Sean Corfield wrote: > Is it just a case of "ooh, shiny! Google released a new toy!" or is > there actually some tangible useful benefit to a developer being on > G+? Not to get too far OT here, but I think there's definitely _potential_. I organize my social net

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
Hello. MHOOO, thank you. Sorry, for long time I haven't used 1.2, so I forgot checking 1.2.1! Yes, I use 1.3b1. Sorry for my unkindness. Since I haven't sent a CA yet, maybe it's not time to send a patch. However, IMO it's not an issue of (resolve), because (resolve) throws even if 1.2.1 and (re

Re: Anyone on Google+ yet?

2011-07-14 Thread tonyl
http://tonylara.net/+ On Jul 14, 6:09 pm, Devin Walters wrote: > http://gplus.to/devn > > -- > Devin Walters > > > > > > > > On Thursday, July 14, 2011 at 6:00 PM, ianp wrote: > > Ian (https://plus.google.com/110915919730271680589) > > > Looks like G+ is pretty popular with the Clojure crowd :-)

Re: Anyone on Google+ yet?

2011-07-14 Thread Luc Prefontaine
G+ stands for what ? Gräfenberg zone + ? On Thu, 14 Jul 2011 16:55:21 -0700 Sean Corfield wrote: > On Thu, Jul 14, 2011 at 4:00 PM, ianp wrote: > > Looks like G+ is pretty popular with the Clojure crowd :-) > > I've been using it for a while and I don't see the point. With > Facebook for *fri

Re: Anyone on Google+ yet?

2011-07-14 Thread Islon Scherer
http://gplus.to/islonscherer On Jul 14, 8:55 pm, Sean Corfield wrote: > On Thu, Jul 14, 2011 at 4:00 PM, ianp wrote: > > Looks like G+ is pretty popular with the Clojure crowd :-) > > I've been using it for a while and I don't see the point. With > Facebook for *friends* and Twitter for tech tal

Re: Anyone on Google+ yet?

2011-07-14 Thread Sean Corfield
On Thu, Jul 14, 2011 at 4:00 PM, ianp wrote: > Looks like G+ is pretty popular with the Clojure crowd :-) I've been using it for a while and I don't see the point. With Facebook for *friends* and Twitter for tech talk (and LinkedIn for professional networking), what purpose does G+ have? I just

Re: Anyone on Google+ yet?

2011-07-14 Thread Devin Walters
http://gplus.to/devn -- Devin Walters On Thursday, July 14, 2011 at 6:00 PM, ianp wrote: > Ian (https://plus.google.com/110915919730271680589) > > Looks like G+ is pretty popular with the Clojure crowd :-) > > -- > You received this message because you are subscribed to the Google > Gro

Re: Anyone on Google+ yet?

2011-07-14 Thread ianp
Ian Looks like G+ is pretty popular with the Clojure crowd :-) -- 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 memb

Re: Anyone on Google+ yet?

2011-07-14 Thread Justin Lilly
http://gplus.to/justinlilly On Jul 14, 10:12 am, Claudia Doppioslash wrote: > My Clojure circle is all set up but empty. > My g+ is:http://gplus.to/gattoclaudia > > Please add link to your profile below. -- You received this message because you are subscribed to the Google Groups "Clojure" grou

Re: Anyone on Google+ yet?

2011-07-14 Thread Sergey Didenko
I wrote on Google+, but I feel it can left unnoticed with the current message pace. Let's not post our common messages to the Clojure Circle to make it more useful. P.S. Posting to "Public" also posts to "Clojure". -- You received this message because you are subscribed to the Google Groups "Cl

Re: Anyone on Google+ yet?

2011-07-14 Thread Sergey Didenko
IMHO, it's worth to add "Clojure" to your Sparks. Mine: https://profiles.google.com/109116565377929735698 -- 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 a

Re: How to add jar files to leiningen projects?

2011-07-14 Thread Mark Rathwell
Looks good to me ;) On Thu, Jul 14, 2011 at 4:31 PM, Shantanu Kumar wrote: > > > On Jul 14, 7:55 am, Mark Rathwell wrote: > > The listing is nice...maybe would be nice to be able to limit the listing > to > > one artifact, or a match of artifacts with wildcards, not sure if the > > feature would

Re: Unable to resolve var: subset? in this context (NO_SOURCE_FILE:1)

2011-07-14 Thread Tuba Lambanog
Thank you! Tuba On Thu, Jul 14, 2011 at 2:24 PM, Daniel Janus wrote: > subset? is in the clojure.set namespace, so you must (use 'clojure.set) > before you can > use subset? unqualified. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To po

Re: How to add jar files to leiningen projects?

2011-07-14 Thread Shantanu Kumar
On Jul 14, 7:55 am, Mark Rathwell wrote: > The listing is nice...maybe would be nice to be able to limit the listing to > one artifact, or a match of artifacts with wildcards, not sure if the > feature would be used enough to justify the work though, but something like: > > lein localrepo list "

Odp: Unable to resolve var: subset? in this context (NO_SOURCE_FILE:1)

2011-07-14 Thread Daniel Janus
subset? is in the clojure.set namespace, so you must (use 'clojure.set) before you can use subset? unqualified. -- 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 mem

Unable to resolve var: subset? in this context (NO_SOURCE_FILE:1)

2011-07-14 Thread Tuba Lambanog
Hello, I'm getting an unresolved var error when I do (doc subset?), thus: Interactive Clojure console. Starting... Clojure 1.2.0 user=> (doc subset?) java.lang.Exception: Unable to resolve var: subset? in this context (NO_SOURCE_FILE:1) I'm able to do doc on other forms. My clojure and clojure

Re: Anyone on Google+ yet?

2011-07-14 Thread Charlie Griefer
On Thu, Jul 14, 2011 at 10:12 AM, Claudia Doppioslash wrote: > My Clojure circle is all set up but empty. > My g+ is: http://gplus.to/gattoclaudia > > Please add link to your profile below. https://plus.google.com/115906367193916269897/ -- Charlie Griefer http://charlie.griefer.com/ I have fai

Re: Anyone on Google+ yet?

2011-07-14 Thread Brian
https://plus.google.com/100763770877733610336/posts On Thu, Jul 14, 2011 at 3:15 PM, Jonathan Cardoso wrote: > https://plus.google.com/115729535012467854741 > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email

Re: Anyone on Google+ yet?

2011-07-14 Thread .Bill Smith
https://plus.google.com/118394169108343238158 -- 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 un

Re: Anyone on Google+ yet?

2011-07-14 Thread Jonathan Cardoso
https://plus.google.com/115729535012467854741 -- 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 un

Re: Anyone on Google+ yet?

2011-07-14 Thread Adam
https://plus.google.com/u/0/115627632525564353062/posts ~Adam~ On Thu, Jul 14, 2011 at 13:42, Tuba Lambanog wrote: > http://profiles.google.com/tuba.lambanog > > > On Thu, Jul 14, 2011 at 11:12 AM, Claudia Doppioslash < > claudia.doppiosl...@gmail.com> wrote: > >> My Clojure circle is all set u

Re: Anyone on Google+ yet?

2011-07-14 Thread Tuba Lambanog
http://profiles.google.com/tuba.lambanog On Thu, Jul 14, 2011 at 11:12 AM, Claudia Doppioslash < claudia.doppiosl...@gmail.com> wrote: > My Clojure circle is all set up but empty. > My g+ is: http://gplus.to/gattoclaudia > > Please add link to your profile below. > > -- > You received this messag

Re: Anyone on Google+ yet?

2011-07-14 Thread Vivek Khurana
On Thu, Jul 14, 2011 at 10:42 PM, Claudia Doppioslash wrote: > My Clojure circle is all set up but empty. > My g+ is: http://gplus.to/gattoclaudia > > Please add link to your profile below. gplus.to/vivekk regards Vivek -- The hidden harmony is better than the obvious!! -- You received this

Re: Anyone on Google+ yet?

2011-07-14 Thread Allen Johnson
> Please add link to your profile below. https://plus.google.com/101461247790324463561/posts > > -- > 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

Re: Anyone on Google+ yet?

2011-07-14 Thread Adam Burry
The man himself: https://plus.google.com/101598622654270873929/posts On Jul 14, 3:12 pm, Claudia Doppioslash wrote: > My Clojure circle is all set up but empty. > My g+ is:http://gplus.to/gattoclaudia > > Please add link to your profile below. -- You received this message because you are subscr

Re: Anyone on Google+ yet?

2011-07-14 Thread Joop Kiefte
http://profiles.google.com/ikojba 2011/7/14 Claudia Doppioslash > My Clojure circle is all set up but empty. > My g+ is: http://gplus.to/gattoclaudia > > Please add link to your profile below. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. >

Anyone on Google+ yet?

2011-07-14 Thread Claudia Doppioslash
My Clojure circle is all set up but empty. My g+ is: http://gplus.to/gattoclaudia Please add link to your profile below. -- 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 fro

Re: Noobie needs help

2011-07-14 Thread Alan Malloy
For what it's worth, Giancarlo makes a good (though vague) point when recommending maps. You rarely (but not never!) want to def something programmatically: defs are for things you as the programmer want to give names to and have access to directly in source code. Often, this sort of "define a bunc

Re: Noobie needs help

2011-07-14 Thread Resty Cena
That works! Awesome! On Thu, Jul 14, 2011 at 5:17 AM, Jonathan Fischer Friberg < odysso...@gmail.com> wrote: > I see I misunderstood the question, sorry about that. > > What you want is a macro: > > (defmacro string-maker [string-name the-string] > `(def ~(symbol string-name) ~the-string)) > >

Re: Namespace Docstrings?

2011-07-14 Thread MHOOO
I'd say that is a bug. On clojure 1.3 "resolve" throws an error when passed a symbol naming a namespace. That is why clojure.repl/doc throws an exception already during macro invocation & the last cond within it, which checks for namespaces, never gets evaluated. So your work-around is what I'd use

Re: Noobie needs help

2011-07-14 Thread Jonathan Fischer Friberg
I see I misunderstood the question, sorry about that. What you want is a macro: (defmacro string-maker [string-name the-string] `(def ~(symbol string-name) ~the-string)) Jonathan On Thu, Jul 14, 2011 at 1:13 PM, Giancarlo Angulo wrote: > Please look at this: > http://clojure.org/data_structu

Re: Noobie needs help

2011-07-14 Thread Jonathan Fischer Friberg
def defines a global binding (i.e. you can reach the symbol from everywhere). defn does the same thing, but always binds the symbol to a function. Therefore, you only need either def OR defn. (defn string-maker [the-string] (str the-string)) OR (def string-maker (fn [the-string] (str the-stri

Re: Noobie needs help

2011-07-14 Thread Giancarlo Angulo
Please look at this: http://clojure.org/data_structures see maps. Giancarlo Angulo -|-^_^X@^_^,=|+^_^X~_~@- On Thu, Jul 14, 2011 at 2:41 PM, Tuba Lambanog wrote: > H

Noobie needs help

2011-07-14 Thread Tuba Lambanog
Hello, Total noobie here. I'm trying to create a sort of a string maker function. Something like: (defn string-maker [string-name the-string] (def string-name (str the-string))) so that I can call the function like so: (string-maker "friend" "Peter") which I expect to give me the variable:

Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
Hello. What is the right way to display namespace docstrings? One day, as usual, I typed: (doc 'clojure.core) ; or other namespace Then the REPL said "clojure.lang.Cons cannot be cast to clojure.lang.Symbol." I thought "Ah, I know, the message means "(quote clojure.core) cannot be cast to the s

Re: BDD - Given When Then

2011-07-14 Thread Max Weber
Thank you for your responses. I wrote a prototype for a BDD / "Given When Then" extension for Lazytest yesterday. Today I'm going to write some integration tests with it. Along the way I'm going to try to improve the API. If the extension is useful afterwards, I'm going to make this stuff available

Re: setting a xml value and save the root to a file

2011-07-14 Thread Marco Wulf
Hay, sorry for the late reply. I was on vacation the last 2 weeks. But now I' ll test your "easy looking" code snippet. Thanks for this On 26 Jun., 17:30, Ken Wesson wrote: > On Sat, Jun 25, 2011 at 3:23 AM, dive_mw wrote: > > Hi all, > > can anybody help me, how to fix the following problem? I

Re: Using Clojure To Debug Java Apps

2011-07-14 Thread Johan Wirde
Yet another way you can get a repl into an existing process running on the JVM: https://github.com/wirde/swank-inject Disclaimer: It's a hack It uses JDI to connect to the process (requires remote debugging on the target, but no other modifications) Won't work well for some classloader