Hi,
We have built a web application using grails framework and we use
Groovy, Java and Clojure programming languages. We use
Clojure 1.2. The clojure files include classes from HTMLUnit. Recently
HTMLUnit released a new version of JAR file and we were
trying to migrate the web app to
Using eval should be a rarity.
I'd use (every? identity [false false true]) to do a reduce-and, and I'd
use (some identity [false false true]) to do a reduce-or (keeping in mind
the latter actually returns nil rather than false).
--
--
You received this message because you are subscribed to the
Using a lambda seems to be a sane approach -
(reduce #(and %1 %2) '(false false true))
;=> false
On Wed, May 22, 2013 at 5:36 AM, Peter Mancini wrote:
> OK long time lurker here. I've been growing in my Clojure strength for a
> while now. For the most part I think I get it and I have no problem
OK long time lurker here. I've been growing in my Clojure strength for a
while now. For the most part I think I get it and I have no problem getting
programs to do what I want. However, sometimes I get stumped.
I have one function that produces a list of booleans like '(false false
true). It se
Hello,
I use Maven to build the Clojure/Android port, so I don't know whethter
the Ant build instructions work or how to adapt them to Windows. Is
there a reason you need to build from source? If not, then using
lein-droid or getting the JAR directly from Clojars is probably an
easier way to go.
Thanks all. D
--
--
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, s
What's wrong with the lein-droid plugin? https://github.com/clojure-android/lein-droid 22.05.2013, 05:21, "Alex Fowler" :Nope, I am on Windows :D.. I guess I could re-write this one into a *.bat file... looking inside the file, however, does not give me a clue on how it will help me aside from th
Nope, I am on Windows :D.. I guess I could re-write this one into a *.bat
file... looking inside the file, however, does not give me a clue on how
it will help me aside from that maybe maven will somehow manage to reolve
the deps...
On Wed, May 22, 2013 at 12:18 AM, Kelker Ryan wrote:
> Did you
I never used that lein plugin but the output is quite clear:
> Warning: JRuby home "/Users/timothyw/Tools/jruby-1.4.0" does not exist:
It seems like your jruby home is not properly configured, my favourite
way to achieve this is to use
https://github.com/sstephenson/ruby-build
> LoadError: no su
Did you run ./antsetup.sh before trying to build with ant? 22.05.2013, 05:01, "Alex Fowler" :Nope, the installation instruction in the readme of the project says nothing about this one (i'm a newb to android development). So if I download it, where I put it?On Tue, May 21, 2013 at 11:59 PM, Kelker
Elastisch [1] is a small, easy to use, feature complete Clojure client for
ElasticSearch.
1.1 introduces a few minor feature and one major one: a new native client
with the same API as the existing HTTP client. Switching between the two
won't be hard!
Release notes:
http://blog.clojurewerkz.org/b
Nope, the installation instruction in the readme of the project says
nothing about this one (i'm a newb to android development). So if I
download it, where I put it?
On Tue, May 21, 2013 at 11:59 PM, Kelker Ryan wrote:
> Did you download the Android JAR?
> http://www.java2s.com/Code/Jar/a/Downlo
Did you download the Android JAR?
http://www.java2s.com/Code/Jar/a/Downloadandroid32jar.htm
22.05.2013, 04:52, "Alex Fowler" :
> I'm trying to build this project: https://github.com/clojure-android/clojure
> with "ant" command. It sarts working, but I get this output with errors:
>
> Buildfile:
I'm trying to build this project: https://github.com/clojure-android/clojure
with
"ant" command. It sarts working, but I get this output with errors:
Buildfile:
C:\Users\Admin\Downloads\clojure-android\clojure-android\build.xml
clean:
[delete] Deleting directory
C:\Users\Admin\Downloads\cl
I tend to have macros for different types of setup/teardowns. Mostly
because clojure.test fixtures always want to wrap *every* test in a file.
On Tue, May 21, 2013 at 9:41 AM, Colin Yates wrote:
> No worries ;)
>
>
> On 21 May 2013 17:18, Ulises wrote:
>
>> Hey Colin,
>>
>> Apologies, I missed
No worries ;)
On 21 May 2013 17:18, Ulises wrote:
> Hey Colin,
>
> Apologies, I missed your "First - I know about fixtures..." line :)
>
> I'd probably +1 Gaz's macro (I've not tested it either but it looks
> reasonable.)
>
>
> On 21 May 2013 16:05, Colin Yates wrote:
>
>> Hi Ulises,
>>
>> I d
Hey Colin,
Apologies, I missed your "First - I know about fixtures..." line :)
I'd probably +1 Gaz's macro (I've not tested it either but it looks
reasonable.)
On 21 May 2013 16:05, Colin Yates wrote:
> Hi Ulises,
>
> I don't think I am as that would require essentially a fixture per
> distin
Thanks Gaz,
I was expecting a macro to be the answer, and seeing how you have used a
macro to glue together two functions is really helpful, so thanks a bunch!
On 21 May 2013 16:21, gaz jones wrote:
> I think I would use a macro:
>
> (defn with-bloomy-fn [bloomy body]
> (try
>(body)
>
I think I would use a macro:
(defn with-bloomy-fn [bloomy body]
(try
(body)
(finally
(shut-down bloomy
(defmacro with-bloomy [bloomy & body]
`(with-bloomy-fn ~bloomy (fn [] ~@body)))
(deftest my-test
(with-bloomy (create-a-bloomy)
(...))
FYI code is untested, typing str
Hi Ulises,
I don't think I am as that would require essentially a fixture per distinct
combinations of test state, which is almost the same number of tests.
Have I missed something?
On 21 May 2013 15:51, Ulises wrote:
> Perhaps you're looking for fixtures?
> http://thornydev.blogspot.co.uk/20
Perhaps you're looking for fixtures?
http://thornydev.blogspot.co.uk/2012/09/before-and-after-logic-in-clojuretest.html
U
On 21 May 2013 15:17, Colin Yates wrote:
> Howdy,
>
> I am using clojure.test and have some questions of how to write idiomatic
> Clojure. This really isn't about testing
=> (future (swap! atom inc 0))
#
=> @(future (swap! atom inc 0))
ClassCastException clojure.core$atom cannot be cast to clojure.lang.Atom
clojure.core/swap! (core.clj:2161)
(both in ccw, but i notice that the first statement does throw in lein repl)
guessing the error is actually thrown in that
Howdy,
I am using clojure.test and have some questions of how to write idiomatic
Clojure. This really isn't about testing at all per-se.
First - I know about fixtures to get (at least) the same as JUnit's
before/after behaviour.
My code is a bloomy. You can configure the bloomy and it does d
The following idea came to me in the shower, sort of out of the blue, and I
don't know why I didn't think of it before(I'm disappointed with myself)
so, why not use the same thing as clojure does? even though it does it in
java, you can do it in clojure, the only thing is that you have to do it
onc
Looks like a bug, please open a ticket in JIRA with the example code.
Thanks!
David
On Tue, May 21, 2013 at 1:16 AM, Praki wrote:
> Hi,
>
> For reasons I cant quite fathom, "lein cljsbuild" generates "Symbol X is
> not a protocol" warning. I am using clojure 1.5.1 and cljsbuild 0.3.2. The
> fo
That's helpful for both clj and non-clj work, thanks.
Cygwin Sublime users might be interested in a quick little rc file I wrote
to let you use Unix paths with ST2 on the command line:
https://gist.github.com/manutter51/5608004
Just a bit OT, but I thought it might be of use to some ST/Clojure f
https://github.com/technomancy/clojure-mode/issues/146#issuecomment-15447065
provides one solution - navigate to the source code and then start nrepl.
On Tuesday, 21 May 2013 11:37:19 UTC+1, Colin Yates wrote:
>
> Hi,
>
> I am trying to get clojure-test-mode working in emacs from
> https://gith
Hi,
I am trying to get clojure-test-mode working in emacs
from https://github.com/technomancy/clojure-mode.
I have the nrepl working great, the problem is if I C-c, C-, in a test file
then I get the
"clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException:
clojure.test.mode,
Hi all,
If the function executed in a future throws an error it is printed out in
the repl immediately. If that function is executed in a future which
itself is executed in a future then it isn't.
For example, imagine somebody wrote the following code (please, suspend
belief and just accept p
Hey guys,
Given some recent work I've been doing with RxJS [1], I ended up writing a
small Clojurescript wrapper for it.
The idea of being familiar with a common API in multiple environments
(Java, Javascript and Clojurescript) is what triggered this approach.
The README contains sample snippets
Helluw.
I currently got two packages for Sublime aimed for Clojure.
Enhanched Clojure
https://github.com/Foxboron/SublimeClojure
ClojureDoc-Search
https://github.com/Foxboron/ClojureDoc-Search
Looking at the files you have made, it thought it could be a good idea to
try incorporate all this int
31 matches
Mail list logo