Thank you very much Herwig! The (.join jetty) did the trick :D
---
Wilker Lúcio
http://about.me/wilkerlucio/bio
Woboinc Consultant
+55 81 82556600
On Mon, Sep 15, 2014 at 8:50 PM, Herwig Hochleitner
wrote:
> Feel free to steal from my jetty component:
> https://github.com/webnf/webnf/blob/maste
Thanks Matt for the response. Like you said, I don't really need to be
using 1.7.0 I am doing quiet ok with 1.6.0
Thanks,
Sunil.
On Tue, Sep 16, 2014 at 9:28 AM, 'Matt Bossenbroek' via Clojure <
clojure@googlegroups.com> wrote:
> Sunil,
>
> I tried upgrading PigPen to Instaparse 1.3.4, but that p
Sunil,
I tried upgrading PigPen to Instaparse 1.3.4, but that pulled in Clojure 1.6.0
& now I'm running into some build/jar/versioning issues. I don't think I'll be
able to get the update out as soon as promised, but it sounds like not using
1.7.0 will work for you in the meantime.
-Matt
On
Hi Yang,
'\0x09' is the same with '\t' , they get the same byte value 9. '\0x09'
and '\t' are just different human readable format display.
So for java "*Wind ows NT*".equals("*Wind\tows NT*") .
By the way nginx-clojure won't do any converting about this case it just
keep the original value.
Feel free to steal from my jetty component:
https://github.com/webnf/webnf/blob/master/server/src/clj/webnf/server/component.clj
2014-09-15 10:42 GMT+02:00 Sven Richter :
>
>
> Am Montag, 15. September 2014 00:20:21 UTC+2 schrieb Wilker:
>>
>> I felt that was too much for me, but I'm digging into
FYI, I added a nice "Getting Started" page to the Om-Bootstrap
documentation site that should help users get past the initial pain of
cobbling together the proper leiningen dependencies, Bootstrap CDN
header links and lein-cljsbuild settings:
http://om-bootstrap.herokuapp.com/getting-started
You are right. As you pointed out, my java interface design is not good.
I've changed java interface into java.util.Map and I could pass Clojure's
map to the java interface.
I've also tested clojure.walk/postwork. The clojure.walk library is fine !
Thanks,
Makoto
--
You received this message
I have some nice debug tools that I want automatically read in when I start
a REPL (I most-often use cider in emacs). I sort-of managed it with the
following "~/.lein/profiles.clj" file:
{:user {:plugins [[lein-midje "3.1.3"]]
:dependencies [[org.clojure/tools.trace "0.7.8"]]
Clojure's keyword is using a soft reference cache, they would be garbage
collected when used memory reaches threshold.
2014-09-15 18:36 GMT+08:00 Paweł Sabat :
> Hi.
>
> How many :keywords can I create in Clojure? Is there any limited
> number of them? I know of such limitation of Erlang's atom
*you're
On Monday, September 15, 2014 4:23:46 PM UTC-4, adrian...@mail.yu.edu wrote:
>
> There is no hard limit beyond available memory and JVM class size
> limitations (which is really only relevant if your creating a ton of
> keywords statically I think).
>
> On Monday, September 15, 2014 3:3
There is no hard limit beyond available memory and JVM class size
limitations (which is really only relevant if your creating a ton of
keywords statically I think).
On Monday, September 15, 2014 3:32:40 PM UTC-4, Paweł Sabat wrote:
>
> Hi.
>
> How many :keywords can I create in Clojure? Is the
metrics-clojure [1] is a Clojure interface to the Metrics library [2],
originally by Steve Losh [3].
Release notes:
http://blog.clojurewerkz.org/blog/2014/09/13/metrics-clojure-2-dot-3-0-is-released/
If you're new to metrics and not sure why collecting them is a good idea,
take a moment
Cassaforte [1] is a Clojure Cassandra client built around CQL 3.
Release notes:
http://blog.clojurewerkz.org/blog/2014/09/13/cassaforte-2-dot-0-0-beta3-is-released/
1. http://clojurecassandra.info
--
MK
--
You received this message because you are subscribed to the Google
Groups "Clojure" gr
Elastisch [1] is a minimalistic feature rich Clojure client for
ElasticSearch.
Release notes:
http://blog.clojurewerkz.org/blog/2014/09/13/elastisch-2-dot-1-0-beta6-is-released/
1. http://clojureelasticsearch.info
--
@michaelklishin, github.com/michaelklishin
--
You received this mes
Hi.
How many :keywords can I create in Clojure? Is there any limited
number of them? I know of such limitation of Erlang's atoms, which are
just like Clojure's keywords.
noniwoo
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group,
No marco is returned.
=> (type (> 2))
java.lang.Boolean
And from here
https://github.com/clojure/clojure/blob/028af0e0b271aa558ea44780e5d951f4932c7842/src/clj/clojure/core.clj#L1029
you can see, that with one parameter, there is always returned true.
noniwoo
2014-09-15 9:46 GMT+02:00 Jeremy Vu
Duh! RTFM Thanks
On Monday, September 15, 2014 12:10:21 PM UTC-7, Ben wrote:
>
> "These maps support transient/persistent semantics, and also provide
> special merge, merge-with, update, and update! methods that provide
> significantly faster performance than their normal Clojure counterparts
"These maps support transient/persistent semantics, and also provide
special merge, merge-with, update, and update! methods that provide
significantly faster performance than their normal Clojure counterparts.
The keys must be in the range of [0, Long/MAX_VALUE]."
On Mon, Sep 15, 2014 at 12:07 PM,
This looks interesting because of how my app manipulates data from Datomic
but it brings up the question, does "int" mean Java primitive 32-bit int or
64-bit long?
On Monday, September 15, 2014 11:51:47 AM UTC-7, Zach Tellman wrote:
>
> https://github.com/clojure/data.int-map
>
> This contrib li
https://github.com/clojure/data.int-map
This contrib library represents the union of two other libraries [1] [2],
which are now both deprecated. There's nothing too surprising here, but
I'm happy to answer any questions.
Zach
[1] https://github.com/ztellman/immutable-int-map
[2] https://githu
I don't have any experience configuring Clojure apps on the JVM, yet, but
it may be that increasing the RAM on the server does not increase the RAM
allocated to the JVM instance Clojure is running on.
Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland
+41 (0)91 600 9601
+41 (0)76 303 4477
Jeremy Vuillermet writes:
> Thanks, that' clearer.
> Also I didn't take time to read the docstring
> "Returns non-nil if nums are in monotonically decreasing order,
> otherwise false."
>
> so I guess [2] is monotonically decreasing and increasing at the same
> time.
Yeah, so the same list
On 15/09/14 14:26, Gomzee wrote:
Thanks, for your reply. Is there any other possibility of getting this
error. As I have checked for the situation mentioned by you.
Can you get a stacktrace?
http://tech.puredanger.com/2010/02/17/clojure-stack-trace-repl/
--
You received this message because y
never mind
its
:identifiers identity
i mixed up, it was working already :D
On Monday, 15 September 2014 13:51:13 UTC+2, Amir wrote:
>
> Hi,
>
> We are migrating from old deprecated library to new interface. I have a
> select statement as follows
>
> select
> CONT_ID as 'contId
Thanks, that' clearer.
Also I didn't take time to read the docstring
"Returns non-nil if nums are in monotonically decreasing order,
otherwise false."
so I guess [2] is monotonically decreasing and increasing at the same time.
Maybe I just read too much about transducers and now I try -1 ari
Hi all.
Just a reminder:
Clojure/conj is offering Opportunity Grants to help community members who
cannot otherwise afford to attend the conference. More info is here:
http://clojure-conj.org/grants
Bridget
--
You received this message because you are subscribed to the Google
Groups "Clojur
Hi Tim.
There was some talk a while back about an organized Clojure office hours
effort, but it seems to have gone quiet for now. I don't have time right
now, but I am still interested in helping move something like that forward.
I hope someone is able to help you out.
Bridget
On Sunday, Septe
Well first I'd say that the Java api you're calling into isn't very good if
it expects specifically java.util.HashMap. Clojure's map data structures
implement java.util.Map so generally they can be passed into Java api
methods that take the interface (good practice).
However, HashMap has a cons
Okay, I will dig into jvisualvm. Thanks.
On Monday, September 15, 2014 5:53:34 AM UTC-4, David Powell wrote:
>
> Use the jvisualvm tool that comes with the jdk- you should be able to
> connect to the clojure process.
>
> Looking at the memory usage graphs, and if the heap size is banging
> aga
> If this somehow started a new JVM per apache thread things would go
strange. What
> does $ps ax --forest say?
That is a good thought, but I only see it once.
On Monday, September 15, 2014 2:45:13 AM UTC-4, Linus Ericsson wrote:
>
> If you turn on verbose gc for the JVM you could at least
> Hmm, exactly how do you route the requests through the apache server? It
> almost sounds like your applikation is restarted every now and then, iirc
> Apache only servers a limited amount of requests per server thread.
Interesting if true, but I assume there would be an error if 2 instances of
> 1. Which API calls pause? If only certain calls pause, then probably you
have something
> specific to suspect. Try adding a dummy REST call - see if that call
pauses
> while others do.
I will add a dummy REST call, although this pause does not seem specific to
a particular API call.
> 2.
On 15 September 2014 13:44, Kalina Todorova wrote:
> On Mon, Sep 15, 2014 at 2:34 PM, Phillip Lord
> wrote:
>>
>>
>>
>> Jeremy Vuillermet writes:
>>
>> > Could it return a (partial > 2) ?
>>
>>
>> Because > works with n args and not just two.
>>
>> (> 2) => (partial > 2)
>>
>> then why not
>>
>
Consensus seems to be:
(progress-state model old-state) -> new-state
and use currying to create a closure around the model. Thanks!
On Mon, Sep 15, 2014 at 5:18 AM, Quzanti wrote:
> Is there a limited number of models?
>
> The model should stay decoupled from the state as they are totally dis
I didn't actually think that they have actually hard-coded it to true.
It makes sense from logical stand point to return true but hard-coding it I
am not sure that is the best approach here.
Best regards | Med venlig hilsen,
KALINA TODOROVA
T: 0045 52 64 93 73
E: ad...@ki6i.com
Frederikssunds
Jeremy Vuillermet writes:
> Could it return a (partial > 2) ?
Because > works with n args and not just two.
(> 2) => (partial > 2)
then why not
(> 2 3) =? (partial > 2 3)
when is the sensible place to stop?
Now, if > took at most two args, this would be a sensible thing.
As far as I ca
jvanderhyde writes:
> Another random thought: What to you call this?
> [(+ 2 3) (+ 4 5)]
> It is an expression, but it is not a literal--I cannot say it "evaluates to
> itself."
So, only symbols and keywords really evaluate to themselves. All you are
showing is that vectors and lists are eval
Thanks, for your reply. Is there any other possibility of getting this
error. As I have checked for the situation mentioned by you.
On Monday, September 15, 2014 5:40:06 PM UTC+5:30, Gomzee wrote:
>
> Hello All,
>
> I am getting ClassCastException java.lang.String cannot be cast to
> java.util.c
jvanderhyde writes:
> Thanks for the help, everyone. You managed to pin down my problem. I was
> using "Clojure from the ground up" and a Scheme book, and the two together
> got me confused. So, I can say it like this:
>
> Every expression is evaluated (meaning converted to a value), unless it
On 15/09/14 14:10, Gomzee wrote:
Hello All,
I am getting ClassCastException
java.lang.String cannot be cast to
java.util.concurrent.Future clojure.core/deref-future
(core.clj:2180) while loading my file on REPL.
Hello All,
I am getting ClassCastException java.lang.String cannot be cast to
java.util.concurrent.Future clojure.core/deref-future (core.clj:2180)
while loading my file on REPL.
Can any one suggest how to debug this error.
--
You received this message because you are subscribed to the Googl
Hi,
We are migrating from old deprecated library to new interface. I have a
select statement as follows
select
CONT_ID as 'contId',
PARENT_CONT_ID as 'parentContId',
>From tablename
before we were using (sql/with-naming-strategy {:keyword str} .) to
select column name as keywords
Use the jvisualvm tool that comes with the jdk- you should be able to
connect to the clojure process.
Looking at the memory usage graphs, and if the heap size is banging against
the max heap size, then you might just be using too small a heap size - try
upping it.
You can also install the visualg
The same tip can be used in vim-fireplace with "c!!" (minus the quotes).
I find it especially useful when creating tests (as in OP).
Lucas
> On 15 Sep 2014, at 13:11, Mayank Jain wrote:
>
> Nice! Thanks for sharing!
>
>> On Mon, Sep 15, 2014 at 1:40 AM, Jony Hudson wrote:
>> Why did I ne
Is there a limited number of models?
The model should stay decoupled from the state as they are totally distinct
so general-fn[model old-state] -> new-state
then either you (if you know the model) or the user if they can choose any
model should define a partial fn
partial specific-model-fn ge
Am Montag, 15. September 2014 00:20:21 UTC+2 schrieb Wilker:
>
> I felt that was too much for me, but I'm digging into his source codes to
> learn more, and he seems to do a more robust way to shut down the server:
> https://github.com/juxt/modular/blob/master/modules/netty/src/modular/netty.cl
On 15 September 2014 08:46, Jeremy Vuillermet
wrote:
> Could it return a (partial > 2) ?
http://clojuredocs.org/clojure_core/clojure.core/%3E
If you look at the source code near the bottom of the page, you will
find that it specifies that when you give > a single argument it
always returns true.
Could it return a (partial > 2) ?
--
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 fr
понедељак, 15. септембар 2014. 04.23.41 UTC+2, Tobias Kortkamp је
написао/ла:
> Hi,
>
> you need to syntax-quote the list you return from your macro.
>
>(defmacro some-record
> [some-name]
> `(defrecord ~some-name ['in 'out]))
>
> Note the backtick `. You then also have to expl
49 matches
Mail list logo