Re: Intro to Live Programming with Overtone

2011-04-25 Thread Sam Aaron
Hi Devin, On 25 Apr 2011, at 00:57, Devin Walters wrote: You can get similar effects with highlight tail mode in emacs. The elisp in there might give you some ideas on how to get some of the glow effects. Oh nice, I hadn't seen highlight tail mode before. I do use eval-sexp-fu.el

Re: Contrib.Logging enhancements: set-log-level!, spy for lazy sequences

2011-04-25 Thread Paul Legato
On Apr 12, 2:46 pm, ataggart alexclojuregr...@gmail.com wrote: Providing a mechanism which is simple, and does what one expects (an open question) consistently across different backing implementations is not as easy as it may seem. Ideally, we can just cover the common base case, and expose

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, On 25 Apr 2011, at 00:14, George Jahad wrote: Technomancy has been kind enough to merge it into the main swank- clojure repo, so it will a part of swank-clojure releases going forward. It's very exciting that CDT is being merged with swank-clojure - great stuff! I just tried the

Re: New contrib releases

2011-04-25 Thread Stuart Halloway
I have moved and released some c.c libraries into their new homes. * c.c.def and c.c.classpath are now combined under clojure.java.classpath and version 0.1.0 is available on maven central correction: c.c.def = c.c.jar * c.c.find-namespaces is now clojure.tools.namespaces. I released

Re: Feedback Request

2011-04-25 Thread Dave Ray
Thanks. cljque looks interesting and might provide a nice abstraction for swing events. I made a little example of hooking a textbox to a ref: https://github.com/daveray/seesaw/blob/master/src/seesaw/examples/text_ref.clj Generalizing it might be tricky since data models (the stuff behind the

Re: Executing Future

2011-04-25 Thread gaz jones
the easiest way (i find) to test if something occurring on another thread has completed is using a latch: (deftest mohanr (let [latch (CountDownLatch. 1) service (Executors/newFixedThreadPool 10)] (doseq [x (range 1) :let [f (.submit service

Strange error

2011-04-25 Thread WoodHacker
Can anyone help me with this? I get the following error: Exception in thread main java.lang.IllegalArgumentException: Parameter declaration dosync should be a vector (jjJack.clj:22) Line 22 is the ns statement - no other error line in my program is listed. I've used dosync many times. Every

Re: Clojure group in DFW area

2011-04-25 Thread ch...@rubedoinc.com
I am interested as well and have office space in Addison near beltline and the tollway we can use. How about meeting next Monday may 2nd @ 630 pm? We can fo an organizational meeting about goals of the group, etc. On Mar 10, 8:28 am, Alex Robbins alexander.j.robb...@gmail.com wrote: Anyone else

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Jeff Palmucci
I get the same thing with just plain leiningen. It's not cake. On Apr 25, 2011, at 5:22 AM, Sam Aaron wrote: Hi George, On 25 Apr 2011, at 00:14, George Jahad wrote: Technomancy has been kind enough to merge it into the main swank- clojure repo, so it will a part of swank-clojure releases

Re: Strange error

2011-04-25 Thread Mark Rathwell
It's probably a paren off, but it would be easier to tell for sure if you posted the code to a github gist, or here. On Mon, Apr 25, 2011 at 10:02 AM, WoodHacker ramsa...@comcast.net wrote: Can anyone help me with this? I get the following error: Exception in thread main

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread George Jahad
strange. haven't seen that one before. can you and jeff send me your project.clj file, and a directory listing of your lib and lib/dev directories? also what operating system/version/java vm are you using? i'll have to set up a place for bug reports. haven't done so yet. On Apr 25, 2:22 am,

Re: Clojure group in DFW area

2011-04-25 Thread Alex Robbins
That sounds good to me. On Mon, Apr 25, 2011 at 9:24 AM, ch...@rubedoinc.com ch...@rubedoinc.com wrote: I am interested as well and have office space in Addison near beltline and the tollway we can use. How about meeting next Monday may 2nd @ 630 pm? We can fo an organizational meeting about

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, I'm a bit further forward than I was before :-) On 25 Apr 2011, at 15:41, George Jahad wrote: strange. haven't seen that one before. can you and jeff send me your project.clj file, and a directory listing of your lib and lib/dev directories? also what operating

Re: clojure.contrib.sql = clojure.java.jdbc - looking for feedback!

2011-04-25 Thread Michael
We've been using iBatis (http://ibatis.apache.org/) to compose sql fragments and map to java objects. iBatis has since forked from Apache to become mybatis (http://www.mybatis.org/). With iBatis, you can use XML to attach an identifier to sql fragments. You can build up sql expressions by

Re: clojure.contrib.sql = clojure.java.jdbc - looking for feedback!

2011-04-25 Thread Nicolas Buduroi
On Mon, Apr 25, 2011 at 12:23 PM, Michael michael-a...@db.com wrote: I was wondering if c.j.jdbc could provide some help in composing sql fragments, but I'm not sure what form it should take or if core clojure would suffice. We would have looked into ClojureQL, but it doesn't directly support

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread George Jahad
On Apr 25, 8:38 am, Sam Aaron samaa...@gmail.com wrote: user (use 'swank.cdt) warning: unabled to add tools.jar to classpath. This may cause CDT initialization to fail. Clearing CDT event requests and continuing. Swank CDT release 1.4.0a started Notice how this time I'm getting the CDT

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Jeff Palmucci
My problem was that I was including incanter, which depends on swank-clojure 1.3.0-snapshot, which was conflicting with 1.4. I deleted the swank-clojure 1.3 jar from 'lib' and it worked. On Apr 25, 2011, at 10:41 AM, George Jahad wrote: strange. haven't seen that one before. can you and

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi George, On 25 Apr 2011, at 17:35, George Jahad wrote: Can you set breakpoints and catch exceptions per the test drive in the doc? Sort of. I'm not sure if I'm just doing the wrong things, but when execute (difference #{1 2} #{2 3}) after setting: (set-bp clojure.set/difference) I

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Devin Walters
It looks like you've got things pretty well figured out. If you're curious about the general case, #cake.clj on freenode may be of some help. On Apr 25, 2011, at 12:12 PM, Sam Aaron samaa...@gmail.com wrote: Hi George, On 25 Apr 2011, at 17:35, George Jahad wrote: Can you set

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Phil Hagelberg
On Apr 25, 7:26 am, Jeff Palmucci jpalmu...@gmail.com wrote: I get the same thing with just plain leiningen. It's not cake. I get this with Leiningen when using a JRE rather than a JDK. You need to be sure lib/tools.jar exists inside your Java home. -Phil -- You received this message because

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread George Jahad
When I press e the mini buffer prompts me to Eval in frame: and I propmpty type s1 to see the following error in the minibuffer: Unexpected exception generated: java.lang.IllegalArgumentException: Invalid method This stuff is all new to me, so I'm likely to be doing something silly. I doubt

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
Hi Phil, On 25 Apr 2011, at 19:21, Phil Hagelberg wrote: On Apr 25, 7:26 am, Jeff Palmucci jpalmu...@gmail.com wrote: I get the same thing with just plain leiningen. It's not cake. I get this with Leiningen when using a JRE rather than a JDK. You need to be sure lib/tools.jar exists inside

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Sam Aaron
On 25 Apr 2011, at 19:34, George Jahad wrote: When I press e the mini buffer prompts me to Eval in frame: and I propmpty type s1 to see the following error in the minibuffer: Unexpected exception generated: java.lang.IllegalArgumentException: Invalid method This stuff is all new to me, so

Re: Clojure group in DFW area

2011-04-25 Thread Brett
I'd be interested as well. Thanks, Brett Bim On Apr 25, 11:29 am, Alex Robbins alexander.j.robb...@gmail.com wrote: That sounds good to me. On Mon, Apr 25, 2011 at 9:24 AM, ch...@rubedoinc.com ch...@rubedoinc.com wrote: I am interested as well and have office space in Addison near

ANN: Slamhound (for reconstructing ns forms)

2011-04-25 Thread Phil Hagelberg
So I just threw together a little tool to help with ns forms. I find often they accumulate a bunch of cruft over time where you no longer need a given :use or :require form. And sometimes you don't feel like finding exactly where on the classpath a given class is. Or maybe you're too lazy to type

Re: Clojure group in DFW area

2011-04-25 Thread Christopher Redinger
ch...@rubedoinc.com wrote: Rubedo, inc. 14580 Beltwood Pkwy E Suite 103 Farmers Branch, TX 75244 When: 630PM Monday May 2nd What: Clojure Interest Group Topic: 1st meeting, what our goals are, and how to take over the world with Clojure Hi Chris! Thanks for offering to host the group.

Error with eval syntax-quote PersistentArrayMap

2011-04-25 Thread Timothy Washington
Hey all, I'm not quite understanding why an eval call is not working in this instance. A) works, but B) fails with an *java.lang.IllegalArgumentException *. A) Pretty straightforward ... user= `(+ 1 ~@[2 3]) (clojure.core/+ 1 2 3) … user= (eval `(+ 1 ~@[2 3])) 6 B) I just want to call

Re: Error with eval syntax-quote PersistentArrayMap

2011-04-25 Thread Kevin Downey
your map is being spliced in to the output, but your output contains lists (...) which are interpreted as functions, and the first thing in the list is a map, makes take 1-2 args, your list forms with maps as the operator have more that 2 args. please use macroexpand. On Mon, Apr 25, 2011 at 7:29

Re: Error with eval syntax-quote PersistentArrayMap

2011-04-25 Thread Timothy Washington
Hey Kevin, thanks for getting back to me. The splice is 'etal' (which is null). I should have excluded it for clarity. What you're actually seeing is the map being unquoted: user= `(commands/add *~processed* ~@etal) (commands/add {:tag :user, :username stub ... }) ;; 'etal' does not show up in

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread lance bradley
Hey guys- I spent some time trying to get this working today. My experiences mirror Sam's. I'm on a mac, running the jdk that ships with xcode4. According to http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html , tools.jar does

Re: Error with eval syntax-quote PersistentArrayMap

2011-04-25 Thread Kevin Downey
sorry I cannot read your email On Mon, Apr 25, 2011 at 8:24 PM, Timothy Washington twash...@gmail.com wrote: Hey Kevin, thanks for getting back to me. The splice is 'etal' (which is null). I should have excluded it for clarity. What you're actually seeing is the map being unquoted: user=

Merging two maps based on ids

2011-04-25 Thread Bhinderwala, Shoeb
Can someone help me write a merge function between two maps? My problem is as follows: I have original data in a map: (def data-orig '({:id 2 :a2 34 :a3 76 :a4 87}, {:id 3 :a2 30 :a3 38 :a4 39}, {:id 5 :a2 67 :a3 32 :a4 38}, {:id 4 :a2 10 :a3 73

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread George Jahad
not using openjdk. and the tools.jar issue is probably a red herring. i'll try installing cake and see if i can notice anything. definitely want to keep cake users happy! On Apr 25, 8:33 pm, lance bradley lancebrad...@gmail.com wrote: Hey guys- I spent some time trying to get this working

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread lance bradley
I'll keep at it too. Make sure you do a manual checkout and use the develop branch. I suspected this would be the fix, but I was wrong- it could still be necessary though: https://github.com/ninjudd/cake/commit/8d70cb88fd83e6aec17a0dac05e97f5473380e92 On Apr 25, 9:30 pm, George Jahad

Re: Error with eval syntax-quote PersistentArrayMap

2011-04-25 Thread Timothy Washington
Oh sorry, were the colors off? Let's try this. The map was actually unquoted. 'etal' (which was null) was unquote-spliced. I excluded it for clarity: * user= `(commands/add ~processed) * * result= (my-function my-map) ;; ** first in this list is a function * Now, if I try to eval that, I

Re: Merging two maps based on ids

2011-04-25 Thread Baishampayan Ghose
Can someone help me write a merge function between two maps? My problem is as follows: I have original data in a map:  (def data-orig   '({:id 2 :a2 34 :a3 76 :a4 87},     {:id 3 :a2 30 :a3 38 :a4 39},     {:id 5 :a2 67 :a3 32 :a4 38},     {:id 4 :a2

Re: swank-cdt: Using Slime with the Clojure Debugging Toolkit

2011-04-25 Thread Phil Hagelberg
On Apr 25, 12:12 pm, Sam Aaron samaa...@gmail.com wrote: I like lein, but cake has better native dependency support which I find extremely useful for my projects. I'm curious, what are your requirements for native dependencies? I have never needed them, so I've relied on contributors and