Re: [ANN] The "It starts to look like a real App", 1.2.0 release of the Clojure Namespace Browser (clj-ns-browser)

2012-05-06 Thread Frank Siebenlist
Can you please share your project.clj when you ask a Q like this? Thanks, FrankS. On May 5, 2012, at 5:01 PM, Rostislav Svoboda wrote: > I put > :dev-dependencies [[clj-ns-browser "1.2.0"]] > > to my project.clj and did: > > $ lein deps > Copying 46 files to /home/bost/dev/webcli/lib > [WARN

Re: new with clojure, need help!

2012-05-06 Thread Roberto Mannai
If you're also planning to try Emacs: http://sourceforge.net/apps/wordpress/codesounding/2012/04/14/installing-and-configuring-emacs-24-for-clojure-updated/ Key bindings (under "SLIME commands"): https://github.com/technomancy/swank-clojure On Wed, Apr 25, 2012 at 4:37 PM, omer wrote: > [...] i

Re: [ANN] The "It starts to look like a real App", 1.2.0 release of the Clojure Namespace Browser (clj-ns-browser)

2012-05-06 Thread Rostislav Svoboda
Hi Frank, I cleaned everything and created a new project from scratch. It still does not work but I get another error: $ rm -rf ~/.lein/ $ rm -rf ~/.m2/ $ lein new clj-browser-test $ cd clj-browser-test/ # here I added :dev-dependencies [[clj-ns-browser "1.2.0"]] to the project.clj $ cat project

[ANN] The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-06 Thread Jeffrey Straszheim
The Kiln is an evaluation strategy for insanely complex functions. It was designed based on two things: my experience with managing several large, complex, ever-changing web applications in Clojure, and my experience in dataflow approaches to modelling. I have released version 1.0.0 on Clojar

Re: Clojure alternatives to Esper

2012-05-06 Thread Paul Ingles
Hi, I agree- I think Clojure would be very well suited to solving these problems. I'd used Esper a little in the past so started doing some digging around what would be involved in replicating it. In the end, I started working on a little lib to make working with Esper a bit easier (http://github.

Nonprinting characters in string

2012-05-06 Thread DAemon
This seems like a really silly question, but if I have a string like "abc\000def", how do I print it in such a way that it shows "abc\000def"? I've tried playing around with prn and *print-readably*, but that doesn't seem to do what I want. Thanks! - DAemon -- You received this message because

Re: creating a varargs method with gen-class

2012-05-06 Thread Snuggy
Great patch to allow access to this functionality. However, to my eye it looks kinda messy to do something so 'normal'. How difficult would it be to implement some syntactic sugar to "do the right thing" (add the appropriate metadata and massage the type of the final arg): (ns foo (:

Parse SQL with Clojure?

2012-05-06 Thread dirtyvagabond
Anyone know of a Clojure library to parse SQL statements? If not, would it be sane to build one using parsec? -- 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 membe

Overtone light weight ide GSoC project

2012-05-06 Thread jon rose
Hi all, I am excited to announce that my GSoC proposal to build an Overtone light weight ide was accepted and I will be spending the summer hacking on the Overtone sketchpad application! I am extremely grateful to the Clojure/dev team for the opportunity and psyched to hopefully create

Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Walter Tetzner
I've written a URI library for Clojure, whose functions work on a custom Uri type, java.net.URI, java.net.URL, and java.lang.String. The source and some documentation (in the README) can be found at https://github.com/wtetzner/exploding-fish. Example usage: user> (scheme "http://www.example.com/

Re: ANN: Clojure/dev Google Summer of Code 2012 Proposals Selected!

2012-05-06 Thread jon rose
Please excuse my tardy reply, I have been moving and with out internet for a bit. Like the other accepted students I am extremely grateful to Google Summer of Code but most of all to the Clojure/dev team and David. It is very humbling and exciting to be a part of the first Clojure GSoC class and

Trouble with classpath

2012-05-06 Thread Patrick Martin
Hi everyone, I'm new to clojure and I have been working through Clojure in Action as well as Chas Emerick's webcast. I created my environment in Eclipse and CCW, but I am having trouble using "use" to get the json library in my program namespace. I have the leiningen project.clj use the [org.d

clojure call dom4j has a problem

2012-05-06 Thread 周尧
This code: i use dom4j version 1.6.1 clojure version 1.3 when i write below code: (DocumentHelper/createDocument "accountInfo") cause this error: ClassCastException java.lang.String cannot be cast to org.dom4j.Element > user/eval180 (NO_SOURCE_FILE:34) but if i call this: > > (Documen

Re: Data vs API

2012-05-06 Thread Antonio Shastun
can any one explain to me please "If people don't have the sensibilities to desire to program to abstractions and to be wary of marrying implementation details, then they are never going to be good programmers. " четверг, 3 мая 2012 г., 3:35:04 UTC+3 пользователь Takahiro Hozumi написал: > >

[ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Walter Tetzner
I've written a URI library for Clojure, whose functions work on a custom Uri type, java.net.URI, java.net.URL, and java.lang.String. It's intended to make working with URIs less painful. It makes it easy to get at the pieces of a URI, as well as doing functional updates. In particular, it makes it

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Jeffrey Straszheim
But why "Exploding Fish", Walter? Why? Why? Poor fish. -- 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

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-06 Thread Paul deGrandis
Can you give a better example of insanely complex functions? I actually think that FP is ideal at modeling, representing, and managing data-flow, stream-based, or request/response data. Kiln seems to encourage a sort of imperative style to these operations, where associative data (like hashmaps) w

Re: Trouble with classpath

2012-05-06 Thread Sean Corfield
Sounds like two possibilities: * you may need to run lein deps to pull in the dependencies? (check the project's lib folder) * you may need to restart your REPL in CCW so it loads the newly downloaded libraries? If you're running into CCW-specific issues, you might also try the http://groups.goog

Re: The Kiln, an Evaulation Strategy for Insanely Complex Functions

2012-05-06 Thread Jeffrey Straszheim
I detail what I mean about "insanely complex" here: http://github.com/straszheimjeffrey/The-Kiln/wiki/Why And I would reject any description of the Kiln as "imperative", as such. It does allow for side effects, but that is a matter of design and taste. You could use it without side effects. Ult

Re: Clojure 1.3+ and JRebel

2012-05-06 Thread Anton Arhipov
Tried both: "java -javaagent:... -jar clojure.jar" and "java -javaagent:... - cp ... clojure.main -r" Both seem to work fine. What does "java -version" print? On May 6, 2:17 am, Kurt Harriger wrote: > I'm attempting to start a swank-clojure session within a grails > application.  This part

Re: Clojure 1.3+ and JRebel

2012-05-06 Thread Kurt Harriger
On Sunday, May 6, 2012 5:08:51 PM UTC-6, Anton Arhipov wrote: > > Tried both: > > "java -javaagent:... -jar clojure.jar" and "java -javaagent:... - > cp ... clojure.main -r" > > Both seem to work fine. What does "java -version" print? > > java version "1.6.0_31" > > Java(TM) SE Runtime E

Re: Clojure 1.3+ and JRebel

2012-05-06 Thread Anton Arhipov
yup, totally same. please send /Users/kurtharriger/var/jrebel.log to support(at)zeroturnaround.com On Monday, May 7, 2012 2:16:05 AM UTC+3, Kurt Harriger wrote: > > > > On Sunday, May 6, 2012 5:08:51 PM UTC-6, Anton Arhipov wrote: >> >> Tried both: >> >> "java -javaagent:... -jar clojure.jar"

Re: Clojure 1.3+ and JRebel

2012-05-06 Thread Kurt Harriger
Done. 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

Accessing collections from Datomic datalog queries

2012-05-06 Thread Mark
I've seen hinted (and I'm pretty sure I've seen examples, but I can't remember where) that Datomic can incorporate data from regular Clojure collections. Is there some doc for this or an example? Thanks in advance -- You received this message because you are subscribed to the Google Groups

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Sean Neilan
Perhaps a reference to PHP's explode function which is the java equivalent of String.split? http://php.net/manual/en/function.explode.php And then URI is the fish. Or it could be a reference to an unwritten sequel to Hitchhiker's Guide To The Galaxy where the Dolphins blew up Earth instead of the

Re: Trouble with classpath

2012-05-06 Thread Patrick Martin
Thanks for the tips and the welcome. I have been wanting to learn clojure for over a year, but teaching has been keeping me busy! Summer is here and it's time to learn. It appears that restarting the repl fixed that issue. I then tested the same code in a terminal repl and the CCW repl and I ge

ANN: guzheng 1.1.3 & lein-guzheng 0.2.4

2012-05-06 Thread David Greenberg
Hello Clojurians, I've updated guzheng only print out the branches that were not executed whose parent branches were executed. This means that if you previously saw lots of output due to many cond and if statements inside of an untested fn, you'll only be informed that the fn was never executed (un

Re: clojure call dom4j has a problem

2012-05-06 Thread Aaron Cohen
On Sun, May 6, 2012 at 8:36 AM, 周尧 wrote: > why call DocumentHelper.createDocument(string name) error? > > According to http://dom4j.sourceforge.net/dom4j-1.6.1/apidocs/, there is no such overload. I have no idea what you're wanting to do, but maybe: (DocumentHelper/createDocument (DocumentHel

Re: Trouble with classpath

2012-05-06 Thread Phil Hagelberg
On Sun, May 6, 2012 at 4:01 AM, Patrick Martin wrote: > Hi everyone, > > I'm new to clojure and I have been working through Clojure in Action as well > as Chas Emerick's webcast. I created my environment in Eclipse and CCW, but > I am having trouble using "use" to get the json library in my progra

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Frank Siebenlist
… but dolphins are no fish… On May 6, 2012, at 5:25 PM, Sean Neilan wrote: > Perhaps a reference to PHP's explode function which is the java equivalent of > String.split? > http://php.net/manual/en/function.explode.php > And then URI is the fish. > > Or it could be a reference to an unwritten s

Re: [ANN] Exploding Fish: A URI Library for Clojure

2012-05-06 Thread Sean Neilan
Whoops. You're right. On Sun, May 6, 2012 at 11:42 PM, Frank Siebenlist < frank.siebenl...@gmail.com> wrote: > … but dolphins are no fish… > > On May 6, 2012, at 5:25 PM, Sean Neilan wrote: > > > Perhaps a reference to PHP's explode function which is the java > equivalent of String.split? > > htt

Re: Trouble with classpath

2012-05-06 Thread Sean Corfield
On Sun, May 6, 2012 at 8:19 PM, Phil Hagelberg wrote: > The clojure-json library has been deprecated for years; I heartily > recommend Cheshire instead. This is one of the big problems with Clojure in Action - Manning did not update it for Clojure 1.3 so it was out of date by the time it was publ