Re: newbie struggling with Clooj and jars

2013-08-11 Thread Jason Turner
I'm also having this problem. I just started playing with Clojure, Lein and Clooj and am working with the Halloway Programming Clojure book next to me. I'm was just trying to do some file reading using clojure-contrib.duck-streams and is working in Lein but somehow not in Clooj. I can see the

Re: apply inc

2013-08-11 Thread drclj
Thanks everyone, in the apply function source code I see ([^clojure.lang.IFn f args] (. f (applyTo (seq args Seems the (applyTo (seq args)) returns arg parameters, And the f is invoked only once: (. f args) -- -- You received this message because you are subscribed to the

Re: apply inc

2013-08-11 Thread Devin Walters
Is there an implicit question there? If so, does this (https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/IFn.java) help? '(Devin Walters) On Aug 10, 2013, at 10:55 PM, drclj deepikaro...@gmail.com wrote: Thanks everyone, in the apply function source code I see

Re: Leiningen 2.3.0 and uberjar

2013-08-11 Thread Jean Niklas L'orange
On Sunday, August 11, 2013 1:18:52 AM UTC+2, Nelson Morris wrote: I believe this is https://github.com/technomancy/leiningen/issues/1283. Yes. As Nelson says, this is 1283. As a workaround until 2.3.1 is out, downgrade by calling `lein upgrade 2.2.0` and then use uberjar from there. -- JN

Re: apply inc

2013-08-11 Thread Marshall Bockrath-Vandegrift
drclj deepikaro...@gmail.com writes: Thanks everyone, in the apply function source code I see ([^clojure.lang.IFn f args] (. f (applyTo (seq args Seems the (applyTo (seq args)) returns arg parameters, And the f is invoked only once: (. f args) I think you’re missing that `.` is a

Re: Data Profiling

2013-08-11 Thread Adrian Mowat
Hi Alex, I think I'll do that as a starter for 10, but most of my users don't know SQL so it's only going to get us so far Cheers Adrian On 10 Aug 2013, at 23:21, Alex Baranosky wrote: You could possibly batch import it all into MySQL, and let people SQL query over it. On Sat, Aug 10,

Re: Data Profiling

2013-08-11 Thread Adrian Mowat
Looks like a great tool. Thanks for the link On 11 Aug 2013, at 02:13, Ignacio Thayer wrote: Doesn't exactly fit the bill, but for doing this type of stuff at the repl, we use babbage. ignacio cto/co-founder ReadyForZero.com On Saturday, August 10, 2013 9:21:46 AM UTC-7, Adrian Mowat

Clojure 1.5.1 and Sockets

2013-08-11 Thread Christian Sperandio
Hi, Is there a socket management with Clojure 1.5.1? I found the create-server function in the clojure.contrib but (except any error) the clojure.contrib is outdated with the last version of Clojure. And I didn't find any clue about client socket management. Should I wrap Java classes?

Re: Leiningen 2.3.0 and uberjar

2013-08-11 Thread Christian Sperandio
The workaround works fine, thanks for your help :) I give below the workaround, thus everybody can get it: $ lein clean lein compile lein uberjar -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure 1.5.1 and Sockets

2013-08-11 Thread Plínio Balduino
Hi, Christian If you look the sources of create-server, you will see it's using Java sockets wrapped as Clojure functions. The same thing about Java threads. It's not a bad thing and soon or later you will find some Java object wrapped somewhere. IMHO, I don't think Clojure need something

Re: Clojure 1.5.1 and Sockets

2013-08-11 Thread Christian Sperandio
Thanks for your answer. I'm wrapping the Java methods so. Without regret or remorse :) -- -- 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 -

Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Tim Visher
Should `nbsp;` be trimmed using `clojure.string/trim`? EOM -- -- 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: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Shantanu Kumar
On Monday, 12 August 2013 02:24:30 UTC+5:30, Tim Visher wrote: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM `nbsp;` is the representation of an HTML entity, which is technically not whitespace. I guess `trim` should not remove it. Shantanu -- -- You received this message

Re: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Christian Sperandio
nbsp; is closer an expression than a single character. A regexp replace should be more suitable. Le 11 août 2013 22:55, Tim Visher tim.vis...@gmail.com a écrit : Should `nbsp;` be trimmed using `clojure.string/trim`? EOM -- -- You received this message because you are subscribed to the

Question on `cljx` and `lein-dalap`

2013-08-11 Thread Shantanu Kumar
Hi, I am thinking about how to use Cljx correctly in my projects (for portability); I have few questions: 1. I understand the Cljx plugin generates .clj and .cljs source code in target/classes destination. Does that mean, when I generate a JAR for distribution it again must be processed by

Re: Lisp newbie seeks (macro?) wisdom - instrumentation and app metadata

2013-08-11 Thread Bruno Kim Medeiros Cesar
Thanks for that link, I loved this tutorial! On Saturday, August 10, 2013 3:13:52 PM UTC-3, Jacob Goodson wrote: Here is where I started... http://www.lisperati.com/clojure-spels/casting.html I personally disagree about being so timid with macros, however, I do not code Clojure with a

Re: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread yair
I think the expectation most people would have (I certainly do) is that it behave identically to java.lang.String.trim() as described here: http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#trim(), so no, it most certainly should not. Besides, HTML is just one format, there are

Re: newbie struggling with Clooj and jars

2013-08-11 Thread yair
The problem is that clooj depends on leiningen 1 which used to have the dependencies in the /lib directory of the project. Leiningen 2 use the maven repo directory (typically ~/.m2) for dependencies and builds the classpath directly to those jars, which you can check by running 'lein

Re: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Tim Visher
Sorry, I should have been more clear. In the following the space at the end of the string is a no break space and the first execution is under clojurescript, the second under clojure. user (clojure.string/trim 54 ) 54 bible-plan.mcheyne :cljs/quit :cljs/quit

Re: Should `nbsp;` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Andy Fingerhut
Clojure's clojure.string/trim uses Java's String/trim, but clojure.string/triml and trimr use Java's Character/isWhitespace to determine which characters are white space to remove. CLJ-935 has a suggested patch to make them all use Character/isWhitespace:

Re: apply inc

2013-08-11 Thread drclj
Looking at it as (. f applyTo (seq args)) The object instance of IFn 'f' calls the method 'applyTo' with sequence 'args'. From http://clojure.org/java_interop (*.* instance-expr member-symbol)(*.* instance-expr (method-symbol args*)) or(*.* instance-expr method-symbol args*) That makes

ANN - ribol 0.2.1 - conditional restart library for clojure

2013-08-11 Thread zcaudate
Hi All, I've updated the library from 0.1.5 version with new features: - handlers now can branch depending on exception data (on :error [data] (if ( data 5) (escalate :too-big) (continue data))) - a additional `fail` handler for