Hey Creighton,
I think this seems really, really interesting! Actually, I'm a little
surprised that no one else has commented yet. I wouldn't take it as a
bad sign if I were you: I suspect this is just a case of everyone
waiting for someone else to take the first look: social proof in
action ;)
I
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can
On Sun, 2012-01-08 at 10:01 -0800, Narvius wrote:
> lein compile/jar/uberjar fails, yelling NullPointerException at
> game.clj:1.
Source and exact error message would be helpful here.
> (slime-compile-and-load-file) works on every single file without any
> exceptions.
This doesn't tell you that
Thanks for report. Please open a ticket. I'll look into this later this
week.
David
On Saturday, January 7, 2012, jim wrote:
> Hey David,
>
> From the readme the failing disequality example:
>
> (run* [q]
> (fresh [x y]
>(!= [x 2] [1 y])
>(== x 1)
>(== y 2)
>(== q [x y])))
>
> g
On Sun, Jan 8, 2012 at 10:30 AM, Samuel Lê wrote:
> Hi and Happy New Year to all the Clojure mailing list,
>
> I am am having some trouble with the two classes Cons and PersistentList:
>
> user> (class (conj (map #(+ % 1) '(1 2 3)) 4))
> clojure.lang.Cons
> user> (class '(1 2 3 4))
> clojure.lang
See my answer in the other, seemingly identical thread.
--
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 p
The names in the first let only exist at compile time and do not exist when
the expanded form eventually runs.
--
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
On Fri, Jan 6, 2012 at 9:25 AM, Matthew wrote:
> (defn id3-encode
> ([] (id3-encode test-out))
> ([file]
> (with-open [out (-> (File. file) (FileOutputStream.)
> (BufferedOutputStream.) (DataOutputStream.))]
> (binding [*out* out]
> (map #(write-a :byte %) [\I \D \3])
>
> When
It looks like you're trying to take from the function fibseq2 itself rather
than the result of the function call. Try taking fron the invocation of it
instead (I.e. put parens around it):
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to thi
In the compiled code it looks like the call to keyword? Is happening in
both cases. Wires are definitely crossed, but it's unclear where. Are you
certain that the ClojureScript shown is the same code that gets compiled?
--
You received this message because you are subscribed to the Google
Group
Trying to get experience working with lazy-seq, after several earlier
successful attempts, I was implementing a lazy infinite Fibonacci
sequence as a lazy-seq (having already implemented it in a greedy way
before), and it wasn't working. I remembered that I had seen a
working example somewhere, Go
Hello.
I'm currently hacking away at a small project (turn-based game) that
as of now spans over 7 namespaces/files.
I'm working in an emacs/lein/swank environment.
lein run works without problems.
lein compile/jar/uberjar fails, yelling NullPointerException at
game.clj:1.
(slime-compile-and-load
Hello,
I'm reading /Clojure in Action/, and I'm confused by one of the
examples. I'm hoping someone can clarify it for me. :-)
The author gives an example of an assertion macro:
(defmacro assert-true [test-expr]
(let [[operator lhs rhs] test-expr]
`(let [lhsv# ~lhs rhsv# ~rhs ret# ~test-e
Hi and Happy New Year to all the Clojure mailing list,
I am am having some trouble with the two classes Cons and PersistentList:
user> (class (conj (map #(+ % 1) '(1 2 3)) 4))
clojure.lang.Cons
user> (class '(1 2 3 4))
clojure.lang.PersistentList
My problem is that list? returns false for a Con
I was implementing a lazy infinite Fibonacci sequence as an exercise,
and it wasn't working. I remembered that I had seen a working example
somewhere, Googled it, and up it came. And it works, but mine, while
similar (and I've modified the two versions to make them even more
similar except for th
Hi
You're not supposed to specify the insert statement. Try this:
(sql/insert-record :books
{:BOOK_ID "%", :BOOK_NAME "joe", :BOOK_PRICE 12, :BOOK_AUTHOR "siley"})
...using the same values as in your insert statement. Don't know about
BOOK_ID, though...
--
Henrik
On Fri, Jan 6, 2012 at 10
Isn't domina a good library for dom manipulation ?
https://github.com/levand/domina
On 6 jan, 19:37, Chris Granger wrote:
> So there's pinot, but I've come to a relatively similar conclusion to
> Kovas that wrapping the goog libs aren't really the way to go. For
> one, I was basically replicatin
I have the following code (very simple) for writing some binary data
to a file
(def ^{:dynamic true} *out*)
;; writers
(defmulti write-a
(fn [spec val]
(cond
(keyword? spec) spec)))
(defmethod write-a :byte [_ val]
(.writeByte *out* (int val)))
And this code to write to the dynami
There is Luke VanderHart's excellent library, domina [https://
github.com/levand/domina]. I'm using it in a project now with great
success.
On Jan 6, 3:16 am, Shantanu Kumar wrote:
> Is anybody working on a DOM-manipulation library for ClojureScript?
>
> There are several JavaScript libraries th
Hi,
Is this a bug with ClojureScript's keyword? function? On the REPL, the
return value of the function is fine.
ClojureScript:cljs.user> (keyword? :foobar)
true
ClojureScript:cljs.user> (string? :foobar)
false
However, when the following is compiled to JavaScript, the output is
not as expected:
It sounds like maybe you've already solved your problem, Shoeb, but
just in case:
The book _Clojure in Action_ has a section on data mapping and data
persistence using Redis. You can download the source code here:
http://www.manning.com/rathore/source-code.zip
(The relevant files are chapter12_re
And there was much rejoicing.
Tom: Thanks for the work on a great tool. It tends to be thankless work
but its greatly appreciated.
On Thu, Jan 5, 2012 at 4:07 AM, Tom Faulhaber wrote:
> A new version of Autodoc (0.9.0) is now available from clojars. This
> version should work with all versions
"Joy of Clojure" adds a second reason for this:
"The second reason is because it allows us to conjure up other
destructuring features by using forms that would otherwise make no sense.
Because the item on the left of each pair will be a new local name, it must
be a symbol or possibly a nested dest
Is anyone currently working on any of these action items for
ClojureCLR?
These items are from the blog post:
http://clojureclr.blogspot.com/2011/11/survey-says-be-eco-friendly.html
1. Action item: Develop a version of Leiningen supporting ClojureCLR
projects (nlein?)
2. Action item: Develop a Nu
Goran Jovic writes:
> P.S. Is it ok to use Clojure logo in the extension icon? Do I need a
> permission to use and if so, do I have it?
I believe the logo's trademark means you need permission.
-Phil
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
Interesting plugin.
I've been pondering for a while about whether it'd be interesting to
write clojure (or language X) blog posts in a literate fashion, i.e.
with weave and tangle that knew how to download the post and then
extract and execute the code.
This would come in rather handy since more
Hi everyone,
I recently wrote a Chrome browser extension for Clojure. Basically, it
allows users to select a code snippet, right click it and choose Eval
as Clojure from the context menu. Code would then be evaluated in the
backend and the result shown in a message.
I found the lack of ability to
FWIW, autodoc looks for something like {:deprecated "1.3"}. See
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L201
which results in
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/agent-errors.
On Jan 6, 8:19 pm, Phil Hagelberg wrote:
> Dave Sann w
I ran into few issues with compiling ClojureScript sources:
1. ns macro doesn't support docstring; found
http://dev.clojure.org/jira/browse/CLJS-86
2. ns macro doesn't support :import (required for defprotocol, defrecord)
3. `binding` doesn't seem to work with vars in :require'd namespaces
I ca
Hello dear Clojure users!
New version of ProtegeClojureTab published on this link:
http://oogis.ru/clojuretab
In this version 1.5 added the digital maps of OpenMap and several
application examples that uses GeoNames, Wikipedia and DBpedia's
spatial data for displaying on the map. ProtegeClojureT
Ryan,
JQuery cannot be compiled by the closure compiler.
If you use advanced mode compilation - you must include the minified jquery
lib in your pages and an externs file when compiling clojurescript.
If you are using simple optimisations you can include jquery as a "foreign
lib" as documented
Thanks Phil, I'll take a look
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 fro
33 matches
Mail list logo