my css and images are on the wrong path? -- NoClassDefFoundError: org/eclipse/jetty/http/MimeTypes

2013-01-18 Thread larry google groups
I searched on Google but found little about this error. I was leaving work, where my app was working, and so I did git push origin master and sent it all to Github, I got home and did git pull origin master to pull everything onto my machine (work is a Mac running OSX 10.8 and at home I've got a

Re: my css and images are on the wrong path? -- NoClassDefFoundError: org/eclipse/jetty/http/MimeTypes

2013-01-18 Thread larry google groups
Hmm, strange. I have had a lot of problems trying to get Friend to work. I have been wrestling with it, on and off, for 2 days, and I have not gotten it to work. I just removed all the paths that had to do anything with Friend, and now the paths to my images and CSS and Javascript are working.

Re: seeking namespace-aware xml lib

2013-01-18 Thread Ben Smith-Mannschott
Not currently, alas, having hacked my primary motivating example (publishing my wife's most recent novel for kindle) by hand. I'd like to return to it, but probably not soon. First I want to get 0.4.0 of edn-java released. Ben On Thursday, January 17, 2013, lewen7er9 wrote: Just wondering if

clojure-jack-in problem with a project using clj and cljs files.

2013-01-18 Thread mmwaikar
Hi, I have a project which uses both Clojure and Clojurescript. Hence in its project.clj file, I have - :source-paths [src/clj] and for Clojurescript - {:builds [{;; CLJS source code path :source-path src/cljs ;; Google Closure (CLS) options

Re: Error on redirect when attempting unauthorized entry to Friend route

2013-01-18 Thread Chas Emerick
If you're being redirected to: http://localhost:4/login?login_failed=Yusername=lawrence Then the problem is that you're not using the credentials for one of the users you've specified (e.g. root or jane). - Chas On Jan 17, 2013, at 1:43 PM, larry google groups wrote: How

Clojure Literature

2013-01-18 Thread Reginald Choudari
I am looking for a new Clojure book to get me started on the language. I've been doing some clojure-koans and reading up on web-development with Clojure and am interested to get down to the knitty-gritty... From what I've seen, it looks like the latest Clojure books are from around March/April

[ANN] java.classpath 0.2.1

2013-01-18 Thread Stuart Sierra
On its way to a Maven repository near you (within 24 hours): [org.clojure/java.classpath 0.2.1] Changes: - Fixed http://dev.clojure.org/jira/browse/CLASSPATH-4 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure Literature

2013-01-18 Thread Brian Marick
On Jan 18, 2013, at 8:46 AM, Reginald Choudari adnanchowdhur...@gmail.com wrote: I am looking for a new Clojure book to get me started on the language. Here's a beginning Clojure reading list, with some discussion: http://regretful.ly/clojure/2013/01/16/beginning-clojure-reading-list/

Re: seeking namespace-aware xml lib

2013-01-18 Thread Roan O'Sullivan
Thanks for the status update. On Fri, Jan 18, 2013 at 4:03 AM, Ben Smith-Mannschott bsmith.o...@gmail.com wrote: Not currently, alas, having hacked my primary motivating example (publishing my wife's most recent novel for kindle) by hand. I'd like to return to it, but probably not soon.

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Paulo Suzart
Hello Adam, I knew about https://github.com/overtone/at-at. Your lib is pretty straight forward and promising. Cheers On 17 January 2013 16:05, Adam Clements adam.cleme...@gmail.com wrote: A URL would probably help: https://github.com/AdamClements/schejulure On Thursday, January 17, 2013

Associative extends Seqable?

2013-01-18 Thread Ben Wolfson
I've got a bit of code implementing Associative, in order to provide a fake map that responds to all calls to valAt with the same object, no matter what the key is. Since it therefore contains every possible key, it doesn't make much sense to call keys or seq on it (and it doesn't make *much*

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Jason Lewis
Adam, This looks great. I was building a couple of applications that run periodic tasks/services on top of quartzite, but I'll definitely play with this. Much nicer scheduling syntax, and the lack of a single stateful scheduler feels much more Clojurian (and cleaner, too). Thanks! Jason Lewis

Re: Associative extends Seqable?

2013-01-18 Thread Kevin Downey
use ILookup instead of Associative On Fri, Jan 18, 2013 at 11:00 AM, Ben Wolfson wolf...@gmail.com wrote: I've got a bit of code implementing Associative, in order to provide a fake map that responds to all calls to valAt with the same object, no matter what the key is. Since it therefore

Unexpected failure (split function)

2013-01-18 Thread Thomas
Hi, When I run this in my REPL I get an exception and the REPL exits: user= (clojure.string/split asdfsa;asdf;asdf #; ) Exception Ambiguous match for ;\ ) by #Object[] [Ljava.lang.Object;@77237723 net.cgrand.parsley.lrplus/array-union/fn--4060 (lrplus.clj:91)

Re: Associative extends Seqable?

2013-01-18 Thread Ben Wolfson
On Fri, Jan 18, 2013 at 11:32 AM, Kevin Downey redc...@gmail.com wrote: use ILookup instead of Associative I could just extend ILookup, which contains only valAt, but I'd also like to be able to implement containsKey and entryAt, which AFAICT are only found in Associative. (If I'm wrong,

Re: Unexpected failure (split function)

2013-01-18 Thread Andy Fingerhut
This issue appears to be unique to using a Leiningen version 2 REPL. It does not occur if using java -cp clojure.jar clojure.main to get a REPL, nor with Leiningen version 1.7.1. CCing nrepl developer Chas Emerick in case this might be an issue with nrepl, but I haven't attempted to localize

Re: Unexpected failure (split function)

2013-01-18 Thread Chas Emerick
Looks like a reply issue. The expression in question evals fine in ccw with the latest nREPL, and in lein 2.0.0-beta10 (which used some beta of reply 0.1.0) with the latest nREPL. Lein 2.0.0-RC2 with reply 0.1.6 is affected, though. - Chas On Jan 18, 2013, at 3:13 PM, Andy Fingerhut wrote:

ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
Hi, When I use the jayq https://github.com/ibdknox/jayq library to wait until the page loads (see following code) I get the error below. If I remove jayq, the code executes correctly. Does anyone know what I'm doing wrong? Thanks. Html: !DOCTYPE html html head/head body script

Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Irakli Gozalishvili
I have being trying to engage community and to contribute to clojurescript for a while already, but so far it's being mostly frustrating and difficult. I hope to start discussion here and maybe get some constructive outcome. ## Rationale I'm primarily interested in clojurescript and not at

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Phil Hagelberg
Irakli Gozalishvili writes: - I do understand that most of the clojurescript audience is probably also interested in clojure, but please don't enforce that. Have a separate mailing list so that people interested in clojurescript and not clojure could follow relevant discussions without

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Jay Fields
I'm not sure I've ever sent an email where the entire content should be +1, but this is the one where it felt most compelling. Please split the list. Sent from my iPhone On Jan 18, 2013, at 4:25 PM, Phil Hagelberg p...@hagelb.org wrote: Irakli Gozalishvili writes: - I do understand that

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Andy Fingerhut
The issue that Clojure, its contrib libraries, and ClojureScript do not accept github pull requests has been brought up several times before on this email list in the past. Feel free to search the Google group for terms like pull request. Short answer: Rich Hickey prefers a workflow of

Re: my css and images are on the wrong path? -- NoClassDefFoundError: org/eclipse/jetty/http/MimeTypes

2013-01-18 Thread larry google groups
This problem keeps happening intermittently, I managed to track it down to a rare combination of restarting the app but not deleting the session cookie, so that I restart the app and there is already some cookie data present that the new app is not expecting. Not sure what goes wrong, but

Re: Unexpected failure (split function)

2013-01-18 Thread Andy Fingerhut
Thanks, Chas. Sorry for the noise. I tested Thomas's bad case against the latest reply (version 0.1.8) standalone, and the problem does not occur there or in version 0.1.7, but it does in reply 0.1.6 standalone. CCing Phil Hagelberg so he is aware of this for possible inclusion in later

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Marko Topolnik
This looks great. I was building a couple of applications that run periodic tasks/services on top of quartzite, but I'll definitely play with this. Much nicer scheduling syntax, and the lack of a single stateful scheduler feels much more Clojurian (and cleaner, too). Behind the apparent

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Frank Siebenlist
One process that could be made a little easier is the contribution of code documentation and suggested improvements of doc-strings. New or improved doc-strings do not change any functionality, impact any tests, require peer review… If we could simply suggest new doc-strings for example in the

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
The error message was cutoff in my previous post; the error returned is: Uncaught TypeError: Cannot call method 'call' of undefined jQuery.ajaxSetup(jayq.core.clj__GT_js.call(null, cljs.core.ObjMap.fromObject([\ufdd0'accepts, \ufdd0'contents, \ufdd0'converters],

Re: Clojure Literature

2013-01-18 Thread Alex Baranosky
http://clojure-doc.org/articles/ecosystem/books.html On Fri, Jan 18, 2013 at 7:04 AM, Brian Marick mar...@exampler.com wrote: On Jan 18, 2013, at 8:46 AM, Reginald Choudari adnanchowdhur...@gmail.com wrote: I am looking for a new Clojure book to get me started on the language. Here's a

Re: Associative extends Seqable?

2013-01-18 Thread Stephen Compall
On Jan 18, 2013 2:36 PM, Ben Wolfson wolf...@gmail.com wrote: I could just extend ILookup, which contains only valAt, but I'd also like to be able to implement containsKey and entryAt, which AFAICT are only found in Associative. Associative also contains Associative assoc(Object key,

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ilia Ablamonov
Hello Ari, I've tried to reproduce your case and it works for me. I use the following project.clj: (defproject playground 0.1.0 :dependencies [[jayq 2.0.0]] :min-lein-version 2.0.0 :source-paths [src] :plugins [[lein-cljsbuild 0.2.10]] :cljsbuild {:builds [{:source-path

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Sean Corfield
On Fri, Jan 18, 2013 at 1:33 PM, Andy Fingerhut andy.finger...@gmail.com wrote: The issue that Clojure, its contrib libraries, and ClojureScript do not accept github pull requests has been brought up several times before on this email list in the past. Feel free to search the Google group

a question about running embedded jetty

2013-01-18 Thread faenvie
dear clojure users, i have learned that for a ring/compojure-app the embedded jetty service can be started like this: (def app (handler/site routes)) (defn start [port] (ring/run-jetty (var app) {:port (or port 8080) :join? false})) can anyone explain,

Re: Clojure Literature

2013-01-18 Thread Sean Corfield
I see that specifically (and correctly) calls out two books written about pre-1.3 Clojure but does not call out Practical Clojure for the same issue. Wasn't that written for Clojure 1.1? (and is there a 2nd Ed in the pipeline? Luke? Stuart?) On Fri, Jan 18, 2013 at 3:36 PM, Alex Baranosky

Re: [ANN] Schejulure 0.1.1

2013-01-18 Thread Adam Clements
Hi Marko, I've addressed some of your concerns by re-using a single thread pool for multiple schedule calls in the current master. The original use case was one set of scheduled tasks running for the lifetime of my application. If you can suggest improvements to cover other use cases with more

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Hugo Duncan
Sean Corfield seancorfi...@gmail.com writes: My understanding is that with pull requests it becomes much harder to provide accountability for Intellectual Property which is a legal concern, and that's why we have a Contributor's Agreement. I wonder if the availability of

Re: Associative extends Seqable?

2013-01-18 Thread Ben Wolfson
On Fri, Jan 18, 2013 at 3:37 PM, Stephen Compall stephen.comp...@gmail.com wrote: On Jan 18, 2013 2:36 PM, Ben Wolfson wolf...@gmail.com wrote: I could just extend ILookup, which contains only valAt, but I'd also like to be able to implement containsKey and entryAt, which AFAICT are only

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Sean Corfield
That will depend on whether it traces the origin of each line in the patch - just relying on the pull request originator is not sufficient (unfortunately). On Fri, Jan 18, 2013 at 4:11 PM, Hugo Duncan duncan.h...@gmail.com wrote: Sean Corfield seancorfi...@gmail.com writes: My understanding is

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Irakli Gozalishvili
At mozilla we also require signing CA but do accept pull requests and there are whole team of legal people that makes sure things like that don't raise any legal concerns. After all it's just .patch to the pull request url gives you an actual change patch so if reviewing patches is desired it's

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Irakli Gozalishvili
One could also copy attach patch with lines that belong to someone else. How is that different ? Pull requests are just a tool for working with patches nothing else Regards -- Irakli Gozalishvili Web: http://www.jeditoolkit.com/ On Friday, 2013-01-18 at 16:18 , Sean Corfield wrote: That

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-18 Thread Sean Corfield
Because by submitting a JIRA patch explicitly, you are taking the legal responsibility for the contents of the patch as being a change that you are authorized to submit under the CA... I'm not sure that you can even attach a patch to a Clojure ticket in JIRA without being given permission to

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
Hi, Below is the project.clj -- anything stand out? Thanks for the help. (defproject sample 0.1.0-SNAPSHOT :description Practice Clojure/Clojurescript app :url :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :source-paths [src/clj]

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
I also noticed that when I compile the cljs code I get: WARNING: Use of undeclared Var jayq.core/clj-js On Friday, January 18, 2013 9:56:22 PM UTC-5, Ari wrote: Hi, Below is the project.clj -- anything stand out? Thanks for the help. (defproject sample 0.1.0-SNAPSHOT :description

Re: Clojure Literature

2013-01-18 Thread Francesco Agozzino
Actually i felt comfortable using The Joy of Clojure AND Programming Clojure... Keep in mind that i never used a Lisp-like language and i had only little knowledge of Java... Il giorno venerdì 18 gennaio 2013 15:46:14 UTC+1, Reginald Choudari ha scritto: I am looking for a new Clojure book

Re: Clojure Literature

2013-01-18 Thread Tim Cross
The books I've found valuable are Clojure Programming. Really liked this book because it just fitted well with my preferred style of book. Really enjoyed it and found that often, just as I was asking myself a question, the answer was in the next paragraph. Joy of Clojure. Excellent book.

Re: Clojure Literature

2013-01-18 Thread Sean Corfield
On Fri, Jan 18, 2013 at 8:55 PM, Tim Cross theophil...@gmail.com wrote: I wouldn't worry too much about differences because a book was written for clojure 1.2 or 1.3 Oh I would worry about that! I see so many people trying to learn Clojure from outdated books (mostly Clojure in Action) and

Re: a question about running embedded jetty

2013-01-18 Thread Feng Shen
Hi: (var app) can be simplified to just app. The detail: app is a function: accept a request map, return a response map. your server's logic is in app. ( see ring spec https://github.com/ring-clojure/ring/blob/master/SPEC for more detail) (var app) or #'app: get the var (clojure.lang.Var) of

Re: Associative extends Seqable?

2013-01-18 Thread Stephen Compall
First, I have a suggestion for your associative: make `seq' return (map vector (iterate inc' 0) (constantly the-const-value)). This would be a correct result, as far as it's possible to observe. On Fri, 2013-01-18 at 16:16 -0800, Ben Wolfson wrote: Right: I basically want (constantly 'foo), but

Re: Clojure Literature

2013-01-18 Thread Alex Baranosky
anything written for Clojure 1.2 that is based on old contrib is next to useless for teaching people basic Clojure these days. So very true. -- 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