[JOB] Clojure Selenium Load Testing Consultant
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 skills - Clojure Very much desired skills - Selenium WebDriver (clj-webdriver or java selenium APIs) - Coding to AWS EC2 APIs (amazonica or similar Clojure wrapper, or java APIs) - Linux (CentOS in particular) in AWS (cloud-init, similar processes) - Knowledge of Clojure/Selenium based cloud technologies we might use to speed our goals Nice to have skills - Selenium related tools such as Selenium Grid - Traditional load testing tools (and knowledge of their limitations) such as LoadRunner This job would last 1-2 months and can start immediately. Remote is welcome, though we prefer someone in a north american time zone to make communication easier. If you are interested please get in touch at j...@diligenceengine.com -- For those interested, our application is a single-page app using ClojureScript and Om on the client and Clojure on the server. It is a highly dynamic app, every single change to the database results in automatic updates being sent out to all clients watching the relevant resources. We use a combination of REST routes for change requests and browserchannel for async push of data updates to make this happen. Unfortunately, these technologies have also made it quite challenging to load test. In particular, we’ve found that it is difficult to get most traditional load testing tools to work well with browserchannel. For this reason we’ve settle on Selenium to simulate load. We’re using AWS to host and build our testing environment. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Remember old namespace when using in-ns
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). This namespace contains a var, say, x. Now I can switch to a known namespace (I'll call it prefix.known): (in-ns 'prefix.known) but I can no longer use x, because x dose not exist, but prefix.unknown-123/x exists, but I don't know the name of the generated namespace. Now, I could remember the namespace at the time of script invocation with *ns*, but where can I store this reference in a way that is accessible later after switching to the namespace prefix.known? TL;DR: how can I propagate vars from the current namespace when switching to a new namespace using in-ns? -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: XPATH/XSLT like access to Clojure data structures?
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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: cascalog and java 1.7
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 mailto:sunil.nandiha...@gmail.com February 26, 2015 at 1:25 PM Hi Everybody, I have been meaning to try cascalog for a while now looking at its powerful query language. But today when I was trying to play with it I am getting some errors and when I go back cascalog readme page it says cascalog runs only with java 1.6 . Is it just that the readme is outdated or does it really mean that cascalog cannot run on java 1.7? I thought I need to confirm this before investigating cascalog any further. Thanks, Sunil. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com mailto:clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Sam Ritchie (@sritchie) Paddleguru Co-Founder 703.863.8561 www.paddleguru.com http://www.paddleguru.com/ Twitter http://twitter.com/paddleguru// Facebook http://facebook.com/paddleguru -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
(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 cldwester...@gmail.com wrote: 2015-02-27 11:34 GMT+01:00 Gary Verhaegen gary.verhae...@gmail.com: 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 it should not be a real problem. The underlying problem is that jvm bytecode is typed, so ideally the bytecode should be able to say call method M of type T on object O. Here, the Clojure Compiler cannot infer a type for html-table, so instead the emitted bytecode is more along the lines of ask object O to give a list of all of its types, then look into each of these types to find if one has a method that matches M in terms of name and number of arguments, and then look at that method's signature and check if the arguments can be cast to the types of the formal parameters; if there is a type with such a method, invoke that method. This is not 100% technically accurate (in particular, i have no idea what reflection does about the arguments and their types in this case), but it should be roughly correct and you can easily see why that would be much slower. If you want to remove that warning, you can annotate the html-table variable, but the place where you must do that will depend on a little more context than what you've given here. It is usually done at the level of var declaration or in function argument lists. This is the code: (let [html-table (editor-pane :content-type text/html :text (str html-start html-records html-end)) ] (.setCaretPosition html-table 0) So html-table is a JEditorPane. Should Clojure not be able to determine that? Just to satisfy my curiosity: how can I get rid of the warning? On Friday, 27 February 2015, Cecil Westerhof cldwester...@gmail.com wrote: 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 the way, I get also some on jdbc and seesaw. Strange enough I only get the warnings on my own code now. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
2015-02-27 17:30 GMT+01:00 Dave Ray dave...@gmail.com: (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. or use config: (config! editor-pane :caret-position 0) On Fri, Feb 27, 2015 at 4:07 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2015-02-27 11:34 GMT+01:00 Gary Verhaegen gary.verhae...@gmail.com: 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 it should not be a real problem. The underlying problem is that jvm bytecode is typed, so ideally the bytecode should be able to say call method M of type T on object O. Here, the Clojure Compiler cannot infer a type for html-table, so instead the emitted bytecode is more along the lines of ask object O to give a list of all of its types, then look into each of these types to find if one has a method that matches M in terms of name and number of arguments, and then look at that method's signature and check if the arguments can be cast to the types of the formal parameters; if there is a type with such a method, invoke that method. This is not 100% technically accurate (in particular, i have no idea what reflection does about the arguments and their types in this case), but it should be roughly correct and you can easily see why that would be much slower. If you want to remove that warning, you can annotate the html-table variable, but the place where you must do that will depend on a little more context than what you've given here. It is usually done at the level of var declaration or in function argument lists. This is the code: (let [html-table (editor-pane :content-type text/html :text (str html-start html-records html-end)) ] (.setCaretPosition html-table 0) So html-table is a JEditorPane. Should Clojure not be able to determine that? Just to satisfy my curiosity: how can I get rid of the warning? On Friday, 27 February 2015, Cecil Westerhof cldwester...@gmail.com wrote: 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 the way, I get also some on jdbc and seesaw. Strange enough I only get the warnings on my own code now. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
2015-02-27 17:30 GMT+01:00 Dave Ray dave...@gmail.com: (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 have now: ^JLabel (text … lein check gives no warning, neither does lein compile. And lein run just runs the application. Is that not strange? I say that a JTextField is a JLabel, but the application does not choke on it. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
On Feb 27, 2015, at 12:09 AM, Cecil Westerhof cldwester...@gmail.com 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: :profiles {:repl {:jvm-opts ~(conj (jvm-opts) -Dlein.profile.repl=true)}} jvm-opts is a function in project.clj that returns the default JVM options — we do different things on different platforms — it returns a vector of JVM options. So :jvm-opts [-Dlein.profile.repl=true] might be sufficient for you. Then in our code we test: (System/getProperty lein.profile.repl) This will be true if you’re in a REPL and nil otherwise. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: XPATH/XSLT like access to Clojure data structures?
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 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
2015-02-27 14:29 GMT+01:00 Sean Corfield s...@corfield.org: On Feb 27, 2015, at 12:09 AM, Cecil Westerhof cldwester...@gmail.com 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: :profiles {:repl {:jvm-opts ~(conj (jvm-opts) -Dlein.profile.repl=true)}} That gives: java.lang.Exception: Error loading /home/cecil/Clojure/quotes/project.clj at leiningen.core.project$read$fn__3326.invoke(project.clj:696) at leiningen.core.project$read.invoke(project.clj:693) at leiningen.core.project$read.invoke(project.clj:703) at leiningen.core.main$_main$fn__3092.invoke(main.clj:294) at leiningen.core.main$_main.doInvoke(main.clj:290) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.lang.Var.invoke(Var.java:415) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.Var.applyTo(Var.java:532) at clojure.core$apply.invoke(core.clj:617) at clojure.main$main_opt.invoke(main.clj:335) at clojure.main$main.doInvoke(main.clj:440) at clojure.lang.RestFn.invoke(RestFn.java:436) at clojure.lang.Var.invoke(Var.java:423) at clojure.lang.AFn.applyToHelper(AFn.java:167) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38) -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
XPATH/XSLT like access to Clojure data structures?
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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
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 [2] linter. Some other incorrect type tags are checked for via the :wrong-tag linter [3]. Not all kinds of Eastwood checks are enabled by default, but those two are. Andy [1] https://github.com/jonase/eastwood [2] https://github.com/jonase/eastwood#unused-meta-on-macro [3] https://github.com/jonase/eastwood#wrong-tag On Fri, Feb 27, 2015 at 9:51 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2015-02-27 17:30 GMT+01:00 Dave Ray dave...@gmail.com: (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 have now: ^JLabel (text … lein check gives no warning, neither does lein compile. And lein run just runs the application. Is that not strange? I say that a JTextField is a JLabel, but the application does not choke on it. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: XPATH/XSLT like access to Clojure data structures?
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 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: XPATH/XSLT like access to Clojure data structures?
On Fri, Feb 27, 2015 at 7:53 AM, Henrik Heine h3nr1k.h3...@googlemail.com 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? I have written a library that wraps the built in JDK XPath functionality. It's not complete, because it doesn't deal with namespaces or custom functions. Regardless, it worked for what I needed it for. If you need a certain feature, I'd be happy to work it in or accept patches. https://github.com/jeremyheiler/xenopath -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Multi-project Set-up
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 timurha...@gmail.com 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 eldar...@gmail.com 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Clojure group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/GxJ431OAhkk/unsubscribe. To unsubscribe from this group and all its topics, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Clojure/West 2015 Speakers
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 while with Douglas Hofstadter and has written a number of excellent books. She will talking about her recent research integrating deep networks and analogy-making. Other talks: - Boot Can Build It - Alan Dipert, Micha Niskin - Clojure at Scale - Anthony Marcar - Clojure, Sound, and Wearable Technology - Boris Kourtoukov - Building CircleCI's Frontend With Om - Brandon Bloom - Developing ClojureScript with Figwheel - Bruce Hauman - Strange Coop: How Clojure saved my chickens from the evil racoons - Christopher Small - Debugging Clojure code with Cursive - Colin Fleming - Generating Art in Many Worlds - Dan Lidral-Porter - Exploring Programming Clojure in Other Human Languages - Elango Cheran - Adapting Clojure to an introductory CS classroom. - Elena Machkasova - HoneySQL: SQL Queries as Clojure Data Structures - Fumiko Hanreich - Purely Random - Gary Fredericks - Composing interactive applications with Zelkova - James MacAulay - Design and Prototype a Language in Clojure - Jeanine Adkisson - Life of a Clojure Expression: a quick tour of Clojure internals - John Hume - Clojure Parallelism: Beyond Futures - Leon Barrett - The ReactJS Landscape - Luke VanderHart - Well I wouldn't want to make a *dys*functional game - Morgan Mullaney - Domain Specific Type Systems - Nathan Sorenson - One Binder to Rule Them All: Introduction to Trapperkeeper - Nathaniel Smith, Ruth Linehan - Responsive Grids with Garden Clojurescript - Priyatam Mudivarti - Programming Clojure, Smalltalk-style - Robert Krahn - Staying SAFE: a Foundation for Clojure Applications - Ron Toland - Simulant in anger; an experience report - Ryan Neufeld - Pattern Matching in Clojure: Best Practices - Sean Johnson - Data Science on Clojure - Soren Macbeth - Games and 3D Graphics in Arcadia - Timothy Gardner, Ramsey Nasser - Creating Beautiful Spreadsheets with Data and Templates - Tom Faulhaber - Composable Healthcare - Tyler Tallman - The Joys and Pains to Write a Clojure Curriculum for Beginners - Yoko Harada - Everything Will Flow - Zach Tellman - No-strings mobile app development for Clojure - Zachary Kim Hope to see you there! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: XPATH/XSLT like access to Clojure data structures?
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 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
2015-02-27 15:56 GMT+01:00 Cecil Westerhof cldwester...@gmail.com: 2015-02-27 14:29 GMT+01:00 Sean Corfield s...@corfield.org: On Feb 27, 2015, at 12:09 AM, Cecil Westerhof cldwester...@gmail.com 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: :profiles {:repl {:jvm-opts ~(conj (jvm-opts) -Dlein.profile.repl=true)}} That gives: java.lang.Exception: Error loading /home/cecil/Clojure/quotes/project.clj at leiningen.core.project$read$fn__3326.invoke(project.clj:696) at leiningen.core.project$read.invoke(project.clj:693) at leiningen.core.project$read.invoke(project.clj:703) at leiningen.core.main$_main$fn__3092.invoke(main.clj:294) at leiningen.core.main$_main.doInvoke(main.clj:290) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.lang.Var.invoke(Var.java:415) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.Var.applyTo(Var.java:532) at clojure.core$apply.invoke(core.clj:617) at clojure.main$main_opt.invoke(main.clj:335) at clojure.main$main.doInvoke(main.clj:440) at clojure.lang.RestFn.invoke(RestFn.java:436) at clojure.lang.Var.invoke(Var.java:423) at clojure.lang.AFn.applyToHelper(AFn.java:167) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38) Bit this works: :profiles {:repl {:jvm-opts [-Dlein.profile.repl=true]}} -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Multi-project Set-up
Thanks for the suggestion but I had already tried it and no success. On Fri, Feb 27, 2015 at 7:58 AM, Eldar Gabdullin eldar...@gmail.com 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Clojure group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/GxJ431OAhkk/unsubscribe. To unsubscribe from this group and all its topics, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
printf does not always generate output
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 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
On Feb 27, 2015, at 6:56 AM, Cecil Westerhof cldwester...@gmail.com 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 options — we do different things on different platforms — it returns a vector of JVM options. So :jvm-opts [-Dlein.profile.repl=true] might be sufficient for you. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
Try adding (flush) at the end. On Feb 27, 2015, at 2:12 PM, Cecil Westerhof cldwester...@gmail.com 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 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
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 Andy On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwester...@gmail.com 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 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Is it possible to determine that I did a 'lein repl'
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 group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
2015-02-27 21:10 GMT+01:00 Sean Corfield s...@corfield.org: On Feb 27, 2015, at 6:56 AM, Cecil Westerhof cldwester...@gmail.com 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 did not read good enough. :-( jvm-opts is a function in project.clj that returns the default JVM options — we do different things on different platforms — it returns a vector of JVM options. So :jvm-opts [-Dlein.profile.repl=true] might be sufficient for you. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
2015-02-27 20:36 GMT+01:00 Andy Fingerhut andy.finger...@gmail.com: 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 That is certainly a place I should look more often. :-) A wealth of information. On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwester...@gmail.com 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 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
ANN Langohr 3.1.0 is released
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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[clojure-rabbitmq] ANN Langohr 3.1.0 is released
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 to the Google Groups clojure-rabbitmq group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure-rabbitmq+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
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 andy.fi...@gmail.com javascript:: 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 That is certainly a place I should look more often. :-) A wealth of information. On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwes...@gmail.com javascript: 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 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
2015-02-27 22:47 GMT+01:00 Sam Raker sam.ra...@gmail.com: 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 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
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 dav...@gmail.com javascript:: (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 have now: ^JLabel (text … lein check gives no warning, neither does lein compile. And lein run just runs the application. Is that not strange? I say that a JTextField is a JLabel, but the application does not choke on it. If you are only calling methods on the object that exist in those classes' common superclass JComponent, then nothing is likely to go wrong. If you call a JLabel specific method on an object that's actually a JTextField that Clojure merely *thinks* is a JLabel, you'll get a ClassCastException at runtime. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Reflection warning on setCaretPosition
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 the way, I get also some on jdbc and seesaw. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
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(int status){} @Around(systemExitCall(status)) public void doNothing(ProceedingJoinPoint thisJoinPoint, int status){ System.out.println(Call to System.exit() attempted); // note: there is no call to proceed() } } btw, if you have any java code still, take a look at DCEVM https://dcevm.github.io/ which makes the whole 'develop java gui from repl' experience much better. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
2015-02-27 10:01 GMT+01:00 henry w henryw...@gmail.com: 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(int status){} @Around(systemExitCall(status)) public void doNothing(ProceedingJoinPoint thisJoinPoint, int status){ System.out.println(Call to System.exit() attempted); // note: there is no call to proceed() } } How would I implement this in Clojure? -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?
On Feb 27, 2015, at 3:30 PM, Michael Griffiths mikeygriffi...@gmail.com 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 blew away my ~/.m2/repository/org tree and re-ran my build and Leiningen pulled down the latest snapshot (along with hundreds of other org.* dependencies): [exec] Retrieving org/clojure/clojure/1.7.0-master-SNAPSHOT/clojure-1.7.0-master-20150220.180325-29.pom from sonatype [exec] Retrieving org/clojure/clojure/1.7.0-master-SNAPSHOT/clojure-1.7.0-master-20150220.180325-29.jar from sonatype Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: should edn recognise defrecord?
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 DEBUG [taoensso.sente] - Bad package: [[:client/message #health.shared.domain.PingCommand{}]] (clojure.lang.ExceptionInfo: No reader function for tag health.shared.domain.PingCommand {:type :reader-exception}) The defrecord is defined using cljx and is definitely there on the server. Do I need to write a reader function to recognise instances of defrecord - my assumption was that this should just work? Thanks! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
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 should be able to say call method M of type T on object O. Here, the Clojure Compiler cannot infer a type for html-table, so instead the emitted bytecode is more along the lines of ask object O to give a list of all of its types, then look into each of these types to find if one has a method that matches M in terms of name and number of arguments, and then look at that method's signature and check if the arguments can be cast to the types of the formal parameters; if there is a type with such a method, invoke that method. This is not 100% technically accurate (in particular, i have no idea what reflection does about the arguments and their types in this case), but it should be roughly correct and you can easily see why that would be much slower. If you want to remove that warning, you can annotate the html-table variable, but the place where you must do that will depend on a little more context than what you've given here. It is usually done at the level of var declaration or in function argument lists. On Friday, 27 February 2015, Cecil Westerhof cldwester...@gmail.com wrote: 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 the way, I get also some on jdbc and seesaw. -- Cecil Westerhof -- 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 javascript:_e(%7B%7D,'cvml','clojure@googlegroups.com'); Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com'); For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
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 *when* block around it looking for a system property set from the repl or something along those lines. On Friday, February 27, 2015 at 9:16:04 AM UTC, Cecil Westerhof wrote: 2015-02-27 10:01 GMT+01:00 henry w henr...@gmail.com javascript:: 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(int status){} @Around(systemExitCall(status)) public void doNothing(ProceedingJoinPoint thisJoinPoint, int status){ System.out.println(Call to System.exit() attempted); // note: there is no call to proceed() } } How would I implement this in Clojure? -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How do I depend on clojure 1.7.0-master-SNAPSHOT?
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 build master directly in the meantime - thank you. Michael On Thursday, 26 February 2015 23:11:05 UTC, Sean Corfield wrote: On Feb 26, 2015, at 11:21 AM, Michael Griffiths mikeygr...@gmail.com javascript: wrote: I have the following in my project.clj: :dependencies [[org.clojure/clojure 1.7.0-master-SNAPSHOT]] :repositories [[snapshots https://oss.sonatype.org/content/repositories/snapshots;]] The only difference between my project.clj (which works) and yours is the trailing / on the repository address: :dependencies [[org.clojure/clojure 1.7.0-master-SNAPSHOT]] :repositories [[snapshots https://oss.sonatype.org/content/repositories/snapshots/;]] Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: cascalog and java 1.7
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 sritchi...@gmail.com 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've chosen runs on JDK6 or JDK8 you're going to be fine. Cheers, Sam Sunil S Nandihalli sunil.nandiha...@gmail.com February 26, 2015 at 1:25 PM Hi Everybody, I have been meaning to try cascalog for a while now looking at its powerful query language. But today when I was trying to play with it I am getting some errors and when I go back cascalog readme page it says cascalog runs only with java 1.6 . Is it just that the readme is outdated or does it really mean that cascalog cannot run on java 1.7? I thought I need to confirm this before investigating cascalog any further. Thanks, Sunil. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Sam Ritchie (@sritchie) Paddleguru Co-Founder 703.863.8561 www.paddleguru.com Twitter http://twitter.com/paddleguru // Facebook http://facebook.com/paddleguru -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reflection warning on setCaretPosition
2015-02-27 11:34 GMT+01:00 Gary Verhaegen gary.verhae...@gmail.com: 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 it should not be a real problem. The underlying problem is that jvm bytecode is typed, so ideally the bytecode should be able to say call method M of type T on object O. Here, the Clojure Compiler cannot infer a type for html-table, so instead the emitted bytecode is more along the lines of ask object O to give a list of all of its types, then look into each of these types to find if one has a method that matches M in terms of name and number of arguments, and then look at that method's signature and check if the arguments can be cast to the types of the formal parameters; if there is a type with such a method, invoke that method. This is not 100% technically accurate (in particular, i have no idea what reflection does about the arguments and their types in this case), but it should be roughly correct and you can easily see why that would be much slower. If you want to remove that warning, you can annotate the html-table variable, but the place where you must do that will depend on a little more context than what you've given here. It is usually done at the level of var declaration or in function argument lists. This is the code: (let [html-table (editor-pane :content-type text/html :text (str html-start html-records html-end)) ] (.setCaretPosition html-table 0) So html-table is a JEditorPane. Should Clojure not be able to determine that? Just to satisfy my curiosity: how can I get rid of the warning? On Friday, 27 February 2015, Cecil Westerhof cldwester...@gmail.com wrote: 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 the way, I get also some on jdbc and seesaw. Strange enough I only get the warnings on my own code now. -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Is it possible to determine that I did a 'lein repl'
2015-02-27 11:42 GMT+01:00 henry w henryw...@gmail.com: 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 *when* block around it looking for a system property set from the repl or something along those lines. The system/exit call is in my own code. When closing the main frame, the application should normally terminate, but not when I called it from the REPL, then I should just close the window. So that if I could see it was called from the REPL then I could only close and not exit. I could set a variable before I call -main, but I would prefer it when I did not need to. ;-) -- Cecil Westerhof -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.