Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
In my application I have a quit button which does: (System/exit 0) But when I used 'lein repl' I do not want to exit, but just close the frame. Can this be done? -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
On a editor-pane I use: (.setCaretPosition html-table 0) ​And it does what it should do. But when I run: lein check I get: Reflection warning, quotes/core.clj:98:42 - call to method setCaretPosition can't be resolved (target class is unknown). Is that something to worry about? By th

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread henry w
I had exactly that problem when using an old version of JDAF. The newer version makes it configurable. to get around the problem i used AspectJ like this: @Aspect public class SystemExitEvader { @Pointcut("call(* java.lang.System.exit(..)) && args(status)") public void systemExitCall(in

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 10:01 GMT+01:00 henry w : > I had exactly that problem when using an old version of JDAF. The newer > version makes it configurable. > > to get around the problem i used AspectJ like this: > > @Aspect > public class SystemExitEvader { > > @Pointcut("call(* java.lang.System.exit(..))

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Gary Verhaegen
It means the Clojure compiler cannot emit the efficient bytecode directly, so it emits bytecode that calls the method reflexively. This only impacts performance, so if that code is not used much, it is not a problem. The underlying problem is that jvm bytecode is typed, so ideally the bytecode sh

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread henry w
Well, I dont know if you could. but unless anyone else chimes in with another solution... there's no problem using clojure and java together in a lein project. And just to check ... this system/exit call is library code you have no control over right? I mean, if not of course you can stick a *

Re: should edn recognise defrecord?

2015-02-27 Thread Colin Yates
http://www.compoundtheory.com/clojure-edn-walkthrough/ is a nice read around this as well. On Tuesday, 24 February 2015 21:40:14 UTC, Colin Yates wrote: > > I am sending instances of defrecords from clojurescript via transmit/edn > and getting: > > 2015-Feb-24 19:23:52 + dev-os-mbp.local DEB

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
2015-02-27 11:34 GMT+01:00 Gary Verhaegen : > It means the Clojure compiler cannot emit the efficient bytecode directly, > so it emits bytecode that calls the method reflexively. > > This only impacts performance, so if that code is not used much, it is not > a problem. > ​It is not used much, so

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 11:42 GMT+01:00 henry w : > Well, I dont know if you could. but unless anyone else chimes in with > another solution... there's no problem using clojure and java together in a > lein project. > > And just to check ... this system/exit call is library code you have no > control over righ

XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Henrik Heine
Hi folks, do you know of a lib that let's you navigate around nested Clojure structures like XPATH does on XML? I'm aware of core.match, walk and zippers. But has anyone put those together in order to produce an API that gives you XPATH/XSLT? - Henrik -- You received this message because yo

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Michael Griffiths
Maybe clojure.data.zip.xml (in clojure.data.zip) is close to what you're looking for? http://clojure.github.io/data.zip/#clojure.data.zip.xml On Friday, 27 February 2015 12:53:51 UTC, Henrik Heine wrote: > Hi folks, > > do you know of a lib that let's you navigate around nested Clojure > struct

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Sean Corfield
On Feb 27, 2015, at 12:09 AM, Cecil Westerhof wrote: > In my application I have a quit button which does: > (System/exit 0) > > But when I used 'lein repl' I do not want to exit, but just close the frame. > Can this be done? Here’s how we do it. Add the following to project.clj: :profile

Remember old namespace when using in-ns

2015-02-27 Thread pmf
I have a peculiar problem (due to being used in a scripting context) related to in-ns. I have a file that is executed in a namespace which is provided by the scripting infrastructure (per invocation, i.e. I do not know the namespace statically,it will be something like "prefix.unknown-123"). Th

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Henrik Heine
This seems to work on XML/JDOM - right? I'm looking for something that works on Clojure data structures. And I wouldn't like to go from Clojure data structures->XML/JDOM only to do the transformation on XML/JDOM and then back to Clojure data structures. Any idea? -- You received this message

Re: cascalog and java 1.7

2015-02-27 Thread Sam Ritchie
Hey Sunil, That's probably due for an update. Hadoop 1.x (and 0.21.x, etc) only ran on JDK6. As long as the Hadoop distro you've chosen runs on JDK6 or JDK8 you're going to be fine. Cheers, Sam Sunil S Nandihalli February 26, 2015 at 1:25 PM Hi Everybody,

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 14:29 GMT+01:00 Sean Corfield : > On Feb 27, 2015, at 12:09 AM, Cecil Westerhof > wrote: > > In my application I have a quit button which does: > (System/exit 0) > > But when I used 'lein repl' I do not want to exit, but just close the > frame. Can this be done? > > > Here’s how we

Clojure/West 2015 Speakers

2015-02-27 Thread Alex Miller
Clojure/West will take place Apr 20-22 in Portland, OR. Register here: http://clojurewest2015.eventbrite.com We have now posted the majority of the Clojure/West speakers: http://clojurewest.org/speakers In particular, I want to highlight our keynote speaker, Melanie Mitchell, who worked for a whi

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 15:56 GMT+01:00 Cecil Westerhof : > 2015-02-27 14:29 GMT+01:00 Sean Corfield : > >> On Feb 27, 2015, at 12:09 AM, Cecil Westerhof >> wrote: >> >> In my application I have a quit button which does: >> (System/exit 0) >> >> But when I used 'lein repl' I do not want to exit, but just

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Michael Griffiths
Sorry, please ignore me. I misread your post entirely :-). I think clojure.zip and clojure.data.zip (not the XML parts) will get you partway to where you want, but I do not know of any XPATH-like API over the top of them. On Friday, 27 February 2015 14:08:19 UTC, Henrik Heine wrote: > This see

Re: Multi-project Set-up

2015-02-27 Thread Timur Sungur
Thanks for the suggestion but I had already tried it and no success. On Fri, Feb 27, 2015 at 7:58 AM, Eldar Gabdullin wrote: > Go to your checked out project and run "lein install" there. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To po

Re: Multi-project Set-up

2015-02-27 Thread Timur Sungur
Okay, just found my mistake: the dependency was not listed in the project which checks out the other project. On Fri, Feb 27, 2015 at 5:12 PM, Timur Sungur wrote: > Thanks for the suggestion but I had already tried it and no success. > > On Fri, Feb 27, 2015 at 7:58 AM, Eldar Gabdullin wrote:

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Dave Ray
(let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or just set the caret position in the create function: (editor-pane :caret-position 0) or use config: (config! editor-pane :caret-position 0) Dave On Fri, Feb 27, 2015 at 4:07 AM, Cecil Westerhof wrote: > 2015-02-27 11:34

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
2015-02-27 17:30 GMT+01:00 Dave Ray : > (let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or > just set the caret position in the create function: > > (editor-pane :caret-position 0) > ​This one I find the the best option. You only need to do it after the :text option. ​ > o

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Cecil Westerhof
2015-02-27 17:30 GMT+01:00 Dave Ray : > (let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or > just set the caret position in the create function: > ​I have removed all my warnings by using: ^JEditorPane, ^JFrame​ ​, … But I always like to check deeper. On one of the places I

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Christopher Small
Interesting idea... Haven't seen anything myself. I think that would be useful though! Someone should build it if it doesn't exist yet. On Friday, February 27, 2015 at 4:53:51 AM UTC-8, Henrik Heine wrote: > > Hi folks, > > do you know of a lib that let's you navigate around nested Clojure > str

Re: XPATH/XSLT like access to Clojure data structures?

2015-02-27 Thread Jeremy Heiler
On Fri, Feb 27, 2015 at 7:53 AM, Henrik Heine wrote: > > do you know of a lib that let's you navigate around nested Clojure > structures like XPATH does on XML? > I'm aware of core.match, walk and zippers. But has anyone put those > together in order to produce an API > that gives you XPATH/XSLT?

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Andy Fingerhut
If (text ...) is an invocation of a macro, not a function, then that type tag is most likely silently ignored by the Clojure compiler, not hurting anything, but not helping anything, either. Eastwood [1] can warn you about such useless type tags in your Clojure code, via the :unused-meta-on-macro

printf does not always generate output

2015-02-27 Thread Cecil Westerhof
My core.clj ends with: (println (format "Started: %s (println)" (java.util.Date.))) (printf "Started: %s (printf)\n" (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do '

Re: printf does not always generate output

2015-02-27 Thread Steve Miner
Try adding (flush) at the end. > On Feb 27, 2015, at 2:12 PM, Cecil Westerhof wrote: > > My core.clj ends with: > (println (format "Started: %s (println)" (java.util.Date.))) > (printf "Started: %s (printf)\n" (java.util.Date.)) > > I do not see the output from the printf when I run 'le

Re: printf does not always generate output

2015-02-27 Thread Andy Fingerhut
Not every function and macro is documented completely or accurately on ClojureDocs.org, but I would recommend checking it out when you run across something that looks amiss, and see if the examples mention what you are seeing. In this case, it does: http://clojuredocs.org/clojure.core/printf And

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Sean Corfield
On Feb 27, 2015, at 6:56 AM, Cecil Westerhof wrote: > Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts in > this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38) Right, as I said: "jvm-opts is a function in project.clj that returns the default JVM option

ANN Langohr 3.1.0 is released

2015-02-27 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2015/02/27/langohr-3-dot-1-0-is-released/ 1. http://clojurerabbitmq.info -- @michaelklishin, github.com/michaelklishin -- You received this message because you are subscribed

Re: Is it possible to determine that I did a 'lein repl'

2015-02-27 Thread Cecil Westerhof
2015-02-27 21:10 GMT+01:00 Sean Corfield : > On Feb 27, 2015, at 6:56 AM, Cecil Westerhof > wrote: > > Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts > in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38) > > > Right, as I said: > ​You are right: I

Re: printf does not always generate output

2015-02-27 Thread Cecil Westerhof
2015-02-27 20:36 GMT+01:00 Andy Fingerhut : > Not every function and macro is documented completely or accurately on > ClojureDocs.org, but I would recommend checking it out when you run across > something that looks amiss, and see if the examples mention what you are > seeing. In this case, it d

Re: printf does not always generate output

2015-02-27 Thread Sam Raker
I have https://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html bookmarked and also like basically always open in a tab forever, fwiw. On Friday, February 27, 2015 at 4:37:38 PM UTC-5, Cecil Westerhof wrote: > > 2015-02-27 20:36 GMT+01:00 Andy Fingerhut >: > >>

Re: printf does not always generate output

2015-02-27 Thread Cecil Westerhof
2015-02-27 22:47 GMT+01:00 Sam Raker : > I have > https://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html > bookmarked and also like basically always open in a tab forever, fwiw. > ​Also good information. ​ -- Cecil Westerhof -- You received this message because

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Fluid Dynamics
On Friday, February 27, 2015 at 12:51:45 PM UTC-5, Cecil Westerhof wrote: > > 2015-02-27 17:30 GMT+01:00 Dave Ray >: > >> (let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or >> just set the caret position in the create function: >> > > ​I have removed all my warnings by usin

Re: cascalog and java 1.7

2015-02-27 Thread Sunil S Nandihalli
Thank you Sam for the response. I am up and running with cascalog on java-1.7 cascalog 2.1.1 Regards, Sunil. On Fri, Feb 27, 2015 at 8:08 PM, Sam Ritchie wrote: > Hey Sunil, > > That's probably due for an update. Hadoop 1.x (and 0.21.x, etc) only ran > on JDK6. As long as the Hadoop distro you'v

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-27 Thread Michael Griffiths
Sean, thanks - but does it still work for you if you remove ~/.m2/ (or just remove 1.7.0-master-SNAPSHOT from here)? I've tried with the trailing slash and am still having no luck (both locally and on Travis CI). Andy, having this as a dependency was working previously but I will clone and buil

Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?

2015-02-27 Thread Sean Corfield
On Feb 27, 2015, at 3:30 PM, Michael Griffiths wrote: > Sean, thanks - but does it still work for you if you remove ~/.m2/ (or just > remove 1.7.0-master-SNAPSHOT from here)? I've tried with the trailing slash > and am still having no luck (both locally and on Travis CI). Yes — just to test I b

[JOB] Clojure Selenium Load Testing Consultant

2015-02-27 Thread Alexander Hudek
Here at DiligenceEngine we’re building out a load testing system for our Om-based ClojureScript and Clojure web application. We need to scale out test scenarios to 500+ concurrent users are looking for someone experienced in writing selenium tests in Clojure to give us a hand. Required skill