SQLRat 0.2 is released to Clojars. Highlights of the release:
- DSL for SQL clauses, Sub-query support
- Support for :groupby and :other attributes in entity/find-xxx
functions
- Support large sized query result-sets (with-query-results style)
- *assert-args* flag for development mode (can be turn
Sure. BigInteger.doubleValue() casts to infinity if the value is too
large to be represented:
user> (double (fact 1000))
Infinity
You could try this using BigDecimals instead of doubles:
user> (+ 0.5M (fact 1000))
-Per
On Sat, Oct 9, 2010 at 11:08 AM, Miki wrote:
> If the following intentiona
If the following intentional?
user=> (defn fact [n] (reduce * 1 (range 1 (inc n
#'user/fact
user=> (fact 1000)
402387260077093773543702433923003985719374864210714632543799910...
user=> (+ 0.5 (fact 1000))
Infinity
--
You received this message because you are subscribed to the Google
Grou
On Wed, Oct 6, 2010 at 12:50 PM, David Sletten wrote:
> I have also incorporated some suggestions made in the comments at the site
> (thanks Sean, matti, and tebeka) without asking permission. Presumably these
> readers added their thoughts for the purpose of improving the examples.
I consider
I use "java -
agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021 -
client -cp h:/clojure/libs/clojure-contrib-1.2.0.jar;h:/clojure/libs/
clojure-1.2.0.jar clojure.main --repl" to invoke java, and there is
not any jars in the classpath.
The user namespace is there after I invoke java
Note that apart from the answers above, you'll probably need to encode
the parameters, something like:
(import 'java.net.URLEncoder)
(defn encode [s]
(URLEncoder/encode s))
(defn urlencode [s]
(apply str (interpose "&" (for [[k v] d] (str (encode (name k))
"=" (encode v)
--
You receive
Mono 2.8 just came out yesterday. You don't have to wait for your
distro to package it up. Building official source releases are as
easy as ./configure && make && make install. I just did it last night.
On Oct 8, 7:23 am, Sampo Vuori wrote:
> Hello,
> I would be very interested in getting cloju
I believe this is not caused by any problems with the debugging environment.
Instead you appear to not have the clojure jar on your classpath.
I would recommend you explicitly launch java with
java -cp "H:\path\to\clojure.jar"
plus any additional arguments of course.
if this is still not worki
On Oct 8, 2010, at 5:09 PM, Paul wrote:
> I'm trying to parse a map unto a URI string, e.g:
>
> {:apple "green", :cherry "red", :banana "yellow"} into
> "apple=green&cherry=red&banana=yellow"
(use 'clojure.string)
(def kvs {:apple "green", :cherry "red", :banana "yellow"})
(join "&"
(map
If your asking this as an exercise for manipulating clojure datastructure,
then a solution could be :
(def d {:apple "green", :cherry "red", :banana "yellow"})
(apply str (interpose "&" (map (fn [[k v]] (str (name k) "=" v)) d)))
Of course, there's more to URI than that, e.g. name and values shou
user=> (use 'clojure.string)
WARNING: replace already refers to: #'clojure.core/replace in
namespace: user, being replaced by: #'clojure.string/replace
WARNING: reverse already refers to: #'clojure.core/reverse in
namespace: user, being replaced by: #'clojure.string/reverse
nil
user=> (join "&" (m
Hi all,
I'm trying to parse a map unto a URI string, e.g:
{:apple "green", :cherry "red", :banana "yellow"} into
"apple=green&cherry=red&banana=yellow"
I've almost got there by several routes, but is there a 'preferred'
idiomatically correct way to perform this?
What are the advantages of, say,
out of box CLI ready I only know of
http://code.google.com/p/stomppy/
but that would be you'd have to introduce python dep, which would
increase complexity.
or write the c hook yourself to use libstomp
http://svn.stomp.codehaus.org/browse/stomp/trunk/c/src/main.c?r=31
On Fri, Oct 8, 2010 at 3:
I do a full source install of clojure follow by the article "Emacs
Front End to the Clojure Debugging Toolkit", I started the java vm
with all the necesory arguments, and M-x cdt, then there will be some
error messages as below:
Current directory is H:\heoxsoft\emacs\emacs-23.2\bin/
java.lang.NoC
On Oct 8, 5:47 am, Sunil S Nandihalli
wrote:
> Hello everybody,
> I am trying to use cake .. was just exploring it with a very simple default
>
> >> cake new expcake
> >> cake deps
>
> but cake deps gives me the following error
>
> http://gist.github.com/616564
This is mostly a guess, but take a
Hello,
I would be very interested in getting clojure-clr to work on mono. To
me, mono would be a nice platform as it has access to many libraries I
would like to use (and jvm doesn't) but there is not a single good
lisp implementation which would work on top of mono! So I would really
like to get c
sa-jdi.jar is supposed to come with the jdk. The code I use for
finding it should work for sun's 1.6 jdk on linux and osx.
Which java are you using? What os are you running it on?
Also, what problem are you running into without it? (I think I only
use it for some advanced features which you ma
I had a similar error last time I tried.
Didn't manage to solve it.
On Fri, Oct 8, 2010 at 10:49 AM, Sunil S Nandihalli
wrote:
> I forgot to mention the versions...
> My cake version is "0.4.18"
> and ruby version is "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]"
> On Fri, Oct 8, 2010 at 3
I forgot to mention the versions...
My cake version is "0.4.18"
and ruby version is "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]"
On Fri, Oct 8, 2010 at 3:17 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:
> Hello everybody,
> I am trying to use cake .. was just exploring it
Hello everybody,
I am trying to use cake .. was just exploring it with a very simple default
>> cake new expcake
>> cake deps
but cake deps gives me the following error
http://gist.github.com/616564
can anybody suggest as to what could be going wrong?
Thanks,
Sunil.
--
You received this mess
Hi,
On 6 Okt., 17:31, Wilson MacGyver wrote:
> If the STOMP support happens with nREPL as Rich was pushing for,
> you'd have the windows solution. There are plenty of STOMP client
> that works on windows.
Do you have some pointers? Googling didn't turn up useful stuff.
Important requirement: mu
21 matches
Mail list logo