>
> I might be able to disprove your scurrilous charge if ...
>
I doubt that since your earlier assertion was factually incorrect.
> > See mvn install:install-file
> >
> > http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
>
> Not relevant. We were discussing use of lein deps.
>
I don't know why, but it seems to have a one second delay getting each
static file even in local host testing.
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]
[compojure "0.6.4"]
[ring-serve "0.1.0"]
There is a JIT in Dalvik since Android 2.2!
On Jul 31, 8:40 pm, Fred Concklin wrote:
> DOH!http://developer.android.com/videos/index.html#v=Ls0tM-c4Vfo
>
> On Jul 31, 2:38 pm, Fred Concklin wrote:
>
>
>
>
>
>
>
> > Thought it might be of interest to some on the list.
>
> >http://developer.androi
On Mon, Aug 1, 2011 at 3:02 AM, pmbauer wrote:
>> I might be able to disprove your scurrilous charge if ...
>
> I doubt that since your earlier assertion was factually incorrect.
If you have a personal problem with me, sort it out in private email
or keep it to yourself rather than badmouthing me
For anyone else with the same problem, I just found the nice way to do it:
(def iframe (. field (getEditableIframe)))
Much better!
Thanks,
Brian McKenna
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojur
I'm seeing a difference of behaviour. I've got a "repl.helper" module
that I pull in using Leiningen's ":repl-init" key in project.clj . If
the last line in my "repl.helper" module tries to switch to the
"repl.helper" (or any other I believe), then it works in a "lein repl"
setup, but does not work
On a production system, I would like to implement less sophisticated
build shell scripts without the benefit of having installed cake or
its dependencies. I am using cake on my Ubuntu development
workstation; it works well.
However, when Cake fetches dependencies, all that detail is hidden.
Theref
Hi All
I just moved to Singapore and I'm looking for a Clojure Group which i can
join. Anyone know any?
--
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 ar
Hi,
I'm new in the community and new to Clojure and both a really great. A
big thanks to Rich Hickey and everyone else involved.
I have a question that refers to an example Stuart Halloway used in
"Programming Clojure". There he defines the whole numbers as fn:
(defn whole-numbers [] (iterate in
I'm seeing non-utf8 characters in my compiled .js even though my .cljs
source file is utf8. Here's a very short example demonstrating the
issue:
https://gist.github.com/1116419
Notice that the colon at the start of :foo is being munged during
compilation.
This causes errors when the .js is execu
As an outcome of this thread, I have decided not to invest in clojure,
so I believe the following to be purely feedback, as I have no agenda
to push.
- it seems from some's point of view that I was "trolling". Fine, from
my point of view though it was akin to "drink the kool aid or gtfo".
Sorry,
As an outcome of this thread, I have decided not to invest in clojure,
so I believe the following to be purely feedback, as I have no agenda
to push.
- it seems from some's point of view that I was "trolling". Fine, from
my point of view though it was akin to "drink the kool aid or gtfo".
Sorry,
On Aug 1, 1:32 pm, Brian McKenna wrote:
> For anyone else with the same problem, I just found the nice way to do it:
>
> (def iframe (. field (getEditableIframe)))
This should be equivalent to (def iframe (.getEditableIframe field))
which is the usual way to do method calls on the host langua
clojure.contrib.profile (which I wrote) is deprecated. It was a half-baked
idea to start with. Use a JVM profiler.
-Stuart Sierra
clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.c
clojure.contrib.json has been continued as clojure.data.json:
https://github.com/clojure/data.json
It should work in 1.3
-Stuart Sierra
clojure.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegr
When I do that, the REPL starts printing the sequence, filling screens
after screens with numbers.
By doing that, it realizes the printed part of the sequence, which
will eventually lead to an OOM error, since it probably holds on to
the reference to the start of the sequence.
Doing (set! clojure.
On Jul 31, 2011, at 11:00 PM, Jack Moffitt wrote:
I'm having some trouble attempting to use interop with ClojureScript.
I'm trying to translate examples from the Closure book into
ClojureScript, and I keep getting stuck on various things.
1) When using goog.testing, it appears that I can't acc
On Mon, Aug 1, 2011 at 8:54 AM, Dmitry Gutov wrote:
> On Aug 1, 1:32 pm, Brian McKenna wrote:
>> For anyone else with the same problem, I just found the nice way to do it:
>>
>> (def iframe (. field (getEditableIframe)))
>
> This should be equivalent to (def iframe (.getEditableIframe field))
Ben writes:
> (defn whole-numbers [] (iterate inc 1))
>
> If I use it like this at the REPL
>
> (take (whole-numbers))
>
> I get:
> Java heap space [Thrown class java.lang.OutOfMemoryError]
>
> This unexpectedly is the same result that I expectedly get when
> binding whole-numbers to a t
Oh, thanks for the explanation.
I looked at the twitterbuzz code before replying, saw the function
calls with arguments written the usual way, and (erroneously) decided
it would be the same for the zero-arity calls. But it's there in the
wiki.
On Aug 1, 5:17 pm, Chouser wrote:
> In Clojure you a
I don't know much about cake other than that it is basically lein with a
persistent JVM and a defines tasks differently, but:
1. lein uses Maven to fetch dependencies. The documentation for Maven can
be found at [1].
2. I'm not sure what type of setup you are looking for in production, but if
yo
Thanks. This information is helpful.
cmn
On Aug 1, 10:16 am, Mark Rathwell wrote:
> I don't know much about cake other than that it is basically lein with a
> persistent JVM and a defines tasks differently, but:
>
> 1. lein uses Maven to fetch dependencies. The documentation for Maven can
> be
We're excited to run our first meetup in Berlin, Germany, on August, 3rd,
2011. Anybody interested is very welcome to join.
Send your RSVP to http://www.meetup.com/Clojure-Berlin/events/27199281/
and join us on
https://groups.google.com/group/Clojure-User-Group-Berlin. You can also
follow us on ht
> One option is (. target :slot), possibly with the not-so-great (.:slot
> target) as well.
Why not simply (target :slot) and (:slot target) as one means of
accessing field values. Then you can still have clojure's traditional
(.x target) execute when x is a function object and return x's value
2011/8/1 Arthur Edelstein
> > One option is (. target :slot), possibly with the not-so-great (.:slot
> > target) as well.
>
> Why not simply (target :slot) and (:slot target) as one means of
>
(:slot target) would do what, when facing an object which implements the
Associative interface ?
> ac
On Sat, Jul 30, 2011 at 2:25 PM, Ben wrote:
> Hi,
>
> I'm new in the community and new to Clojure and both a really great. A
> big thanks to Rich Hickey and everyone else involved.
>
> I have a question that refers to an example Stuart Halloway used in
> "Programming Clojure". There he defines the
This is a known "feature" with Closure templates:
http://code.google.com/p/closure-templates/issues/detail?id=25
The Closure compiler does name replacement on the template parameters,
so that after the compilation the argument names are no longer
"greeting" and "year". The JS object constructed in
> > > One option is (. target :slot), possibly with the not-so-great (.:slot
> > > target) as well.
>
> > Why not simply (target :slot) and (:slot target) as one means of
>
> (:slot target) would do what, when facing an object which implements the
> Associative interface ?
Here's what I was trying
2011/8/1 Arthur Edelstein
> > > > One option is (. target :slot), possibly with the not-so-great
> (.:slot
> > > > target) as well.
> >
> > > Why not simply (target :slot) and (:slot target) as one means of
> >
> > (:slot target) would do what, when facing an object which implements the
> > Assoc
On 1 August 2011 08:24, sailormoo...@gmail.com wrote:
> I don't know why, but it seems to have a one second delay getting each
> static file even in local host testing.
>
> :dependencies [[org.clojure/clojure "1.2.1"]
> [org.clojure/clojure-contrib "1.2.0"]
> [compo
> Wasn't Rich trying to come up with a solution which could be retrofitted
> into Clojure ?
I was trying to see how to avoid having to change anything in Clojure
proper. In the strategy I'm humbly suggesting, the syntax from Clojure
could work as-is. Just use same the dot notation (as in Clojure,
I get back a vector of vectors from clojure-csv/parse-csv. I want to
remove vectors from that sequence based on the out come of certain
tests on individual vector elements.
Below, get-parsed-csv-file is called first and returns clean-csv-rows.
filter-parsed-csv-rows is called with clean-csv=rows,
On Aug 1, 12:45 pm, Arthur Edelstein
wrote:
> > Wasn't Rich trying to come up with a solution which could be retrofitted
> > into Clojure ?
>
> I was trying to see how to avoid having to change anything in Clojure
> proper. In the strategy I'm humbly suggesting, the syntax from Clojure
> could w
Hi,
Am 01.08.2011 um 21:55 schrieb octopusgrabbus:
> I get back a vector of vectors from clojure-csv/parse-csv. I want to
> remove vectors from that sequence based on the out come of certain
> tests on individual vector elements.
You can't easily slice out elements from the middle of a vector. Y
A few more things:
- I don't know if you want to be passing the start val to reduce in this
case ([]), it's not doing anything here
- you have the arguments to > backwards. (> 0 2) in prefix is (0 > 2) in
infix notation, so this will always return false in your code since the
vector count wil
Similar question: where is clojure.contrib.string for 1.3? There are a
lot of useful functions in clojure.contrib.string that aren't in
clojure.string 1.3.
Thanks! :)
Arthur
On Aug 1, 5:57 am, Stuart Sierra wrote:
> clojure.contrib.json has been continued as
> clojure.data.json:https://github.
Thanks. This does help.
On Aug 1, 4:11 pm, Meikel Brandmeyer wrote:
> Hi,
>
> Am 01.08.2011 um 21:55 schrieb octopusgrabbus:
>
> > I get back a vector of vectors from clojure-csv/parse-csv. I want to
> > remove vectors from that sequence based on the out come of certain
> > tests on individual ve
I'm going to give filter a shot.
On Aug 1, 4:27 pm, Mark Rathwell wrote:
> A few more things:
>
> - I don't know if you want to be passing the start val to reduce in this
> case ([]), it's not doing anything here
>
> - you have the arguments to > backwards. (> 0 2) in prefix is (0 > 2) in
> i
Limiting *print-length* keeps the OutOfMemoryError away, but I guess
it would leave me - when testing more complicated and obscure
functions - insecure whether the returned sequence really is a lazy
one or will blow up the memory instead. But good to know anyway ...
I guess the println function is
Are there plans to decrease the amount of js dependencies that ClojureScript
makes compared to the raw Google Closure?
Currently the difference in final js code size is about 28kb (5kb zipped) in
advanced mode for a simple example.
--
You received this message because you are subscribed to the G
> Similar question: where is clojure.contrib.string for 1.3?
+1
http://dev.clojure.org/display/design/Contrib+Library+Names
c.c.string is not included in this list.
Is there any plans to go to modular contrib (string.incubator,
tools.string, etc.)?
--
Name: OGINO Masanori (荻野 雅紀)
E-mail: masano
I like that both its packing and unpacking functions work on either files or
streams. I can imagine building a collection of output documents in memory,
using this library to pack those documents into one in-memory zip archive,
and streaming the result over HTTP without ever touching the file syste
After compilation through the Google compiler ?
On Tue, 2 Aug 2011 01:42:40 +0300
Sergey Didenko wrote:
> Are there plans to decrease the amount of js dependencies that
> ClojureScript makes compared to the raw Google Closure?
>
> Currently the difference in final js code size is about 28kb (5k
I have been working on this library for a little while and I would
like to present it to you:
https://github.com/eduardoejp/clj-orient
I hope this can be of help for the Clojure and OrientDB communities.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
I have this working on emacs. On my slicehost VM it works flawlessly, but at
my work VM, only the first compilation works. Subsequent calls (on change
notification) produces an empty JS file. Just wondering if you or anyone
else has come across this issue.
Thanks, Tunde.
--
You received this
I wanted to take a Map and convert it to a string suitable for use as
parameters in a URL. I have got it working below two different ways
but wondered if there was a better or more idiomatic way to do this.
;; My test input map
(def input {:a 1 :b 2 :c 3 :d 4})
;; What I'd like the input map conv
y I'am tThe main point for me of this whole discussion is that someone
should use clojurescript if he want to use clojure instead of javascript on
the browser.
Like GWT, JWT, ZK or other, you do not longer develop in the client
language. You develop in a different language and compile/generate
how can i test using clooj ide... will lein deps, then run clooj allow me
test in repl window
--
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 moderate
Thank you for all of your help Eduardo!
On Aug 1, 8:17 pm, Eduardo Julian wrote:
> I have been working on this library for a little while and I would
> like to present it to you:https://github.com/eduardoejp/clj-orient
>
> I hope this can be of help for the Clojure and OrientDB communities.
--
Hi Jason,
We have a small and informal Singapore Clojure user group on LinkedIn
but we have yet to gather enough ppl to have a meet up. You might want
to join the LinkedIn group at http://www.linkedin.com/groups?gid=3877912
.
Hope we could meet up soon!
Cheers,
Zehua
On Aug 1, 8:47 pm, Jason
On Mon, Aug 1, 2011 at 3:47 PM, Brad wrote:
> ;; My test input map
> (def input {:a 1 :b 2 :c 3 :d 4})
...
> Is there a simpler, better way to do this?
How about:
(require '[clojure.string :as str])
(defn map-to-query-string [m]
(str/join "&" (map (fn [[k v]] (str (name k) "=" v)) m)))
--
Se
Depending on your input, you might also want to make sure to properly
urlencode the keys and values.
There is a function in hiccup that does what you want (including
urlencoding):
https://github.com/weavejester/hiccup/blob/10c3ebe175edc80eed1a0792ec68036be47940d3/src/hiccup/page_helpers.clj#L117-1
On Aug 1, 7:34 pm, Vincent wrote:
> how can i test using clooj ide... will lein deps, then run clooj allow me
> test in repl window
Yes, please give it a try. Any jar in the lib directory (as typically
deposited by lein or cake) should be available on the classpath. After
calling lein deps, you w
53 matches
Mail list logo