Re: in keyword withing where claus java-jdbc

2012-12-05 Thread Amir Wasim
aha, thanks Sean I tried alternate and did the following => (sql/with-connection (db-connection) (sql/do-commands (str "update TASK_T_MSGIDS set status='T' where msg_id in (" (apply str (interpose \, acks)) " )" )) ) => (sql/with-connection (db-connection) (transaction

Latest JOGL with Clojure in Eclipse?

2012-12-05 Thread Andrew P. Lentvorski, Jr.
Anybody have some advice for me about the latest JOGL(2.0 rc11) with Clojure on Eclipse? I'm running Eclipse Juno SR1 with Counterclockwise on OS X 10.6.8. The JOGL tutorial sets up by creating a JOGL project that you then make new Java projects depend upon. This works fine for Java and seems

Re: Latest JOGL with Clojure in Eclipse?

2012-12-05 Thread Karsten Schmidt
Hi Andrew, in summer I've uploaded a lein compatible re-packaged version of JOGL & JOCL to Clojars: https://clojars.org/org.clojars.toxi/jogl https://clojars.org/org.clojars.toxi/jocl Both will also require Gluegen of course, but can't remember if I've included a dependency for it in their POM o

Re: Latest JOGL with Clojure in Eclipse?

2012-12-05 Thread Frank Wilson
Hi Andrew, I have been working on a maven build that installs jogl 2.0 jars into .m2 repo. Its not complete yet as it only installs dependencies for win32/amd64. But adding other platforms should be easy. You will need to install the 7z plugin and the 7z binding project on my github to make it wor

Re: Latest JOGL with Clojure in Eclipse?

2012-12-05 Thread Frank Wilson
Hi Andrew, I have been working on a maven build that installs jogl 2.0 jars into .m2 repo. Its not complete yet as it only installs dependencies for win32/amd64. But adding other platforms should be easy. You will need to install the 7z plugin and the 7z binding project on my github to make it wor

Re: A Working nrepl-ritz Setup?

2012-12-05 Thread terjesb
Did you update your ~/.lein/profiles? https://github.com/pallet/ritz/tree/develop/nrepl kl. 06:49:49 UTC+1 onsdag 5. desember 2012 skrev frye følgende: > > Hey all, > > > I like the promise of nrepl-ritz. But I can't get a working setup. > > > 1) I start from an empty "*~/.emacs.d/*" > 2) I th

ANN tools.trace 0.7.5

2012-12-05 Thread Softaddicts
Hi all, a new release of tools.trace made it to Maven: * added traced? and traceable? fns * removed reflection warnings This release fixes tickets ttrace-1 and ttrace-2. Have a nice morning/afternoon/evening/night where ever you might be :) Luc P. -- Softaddicts sent by ibisMail from my ipad!

Re: clojurescript browser repl possible regression

2012-12-05 Thread Herwig Hochleitner
One more strange fact: When you remove third-party, but run with the released closure-library, you don't see the warning, but repl still doesn't work. Thinking of it, I have run into that before. So my theory is, that the build with the plain goog.jar fails because its deps.js refers to ../third_p

Re: clojurescript browser repl possible regression

2012-12-05 Thread Brent Millare
Ah finally, some progress. This is very relieving, I'm not that crazy it seems. It's enough for me to fix my cljs tools for now. Thank you. On Wednesday, December 5, 2012 8:35:26 AM UTC-5, Herwig Hochleitner wrote: > > I can reproduce this. > When I replace lib/goog.jar with google-closure-librar

Re: [ANN] Typed Clojure 0.1.4

2012-12-05 Thread Ambrose Bonnaire-Sergeant
I just pushed Typed Clojure 0.1.5 (and analyze 0.2.5). Here are some of the kinds of errors messages you can expect from Typed Clojure now. I've borrowed the error messages from Typed Racket. https://gist.github.com/4213669 https://www.refheap.com/paste/7313 Thanks, Ambrose On Tue, Dec 4, 2012

Re: A Working nrepl-ritz Setup?

2012-12-05 Thread Timothy Washington
Yes, I updated "*~/.emacs.d/init.el*" and "*~/.lein/profiles*", as outlined on that page. But somehow nrepl server thinks *'ritz-nrepl' is not a task*. Tim On Wed, Dec 5, 2012 at 7:59 AM, terjesb wrote: > Did you update your ~/.lein/profiles? > > https://github.com/pallet/ritz/tree/develop/n

Re: A Working nrepl-ritz Setup?

2012-12-05 Thread Hugo Duncan
Timothy Washington writes: > > 1) I start from an empty "*~/.emacs.d/*" > 2) I then populate init.el from the example in > ritz/nrepl > > 3) I open a lein project and run `*M-x nrepl-ritz-jack-in*` > > **) The error I get back is: > > "*error in

Re: A Working nrepl-ritz Setup?

2012-12-05 Thread Hugo Duncan
Timothy Washington writes: > Yes, I updated "*~/.emacs.d/init.el*" and "*~/.lein/profiles*", as outlined > on that page. But somehow nrepl server thinks *'ritz-nrepl' is not a task*. Does running `lein ritz-nrepl` from a shell within your project directory work? Hugo -- You received this mess

[ANN] Clojure Meetup in Cape Town, South Africa

2012-12-05 Thread Robert Stuttaford
I am hosting a Clojure meetup in Cape Town on the 15th of December. If there are any Cloders down here that want to attend, please contact me off list for details! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Default random in Clojure doesn't seem to fit fp paradigm

2012-12-05 Thread JonC
Ok: first of all, Clojure has outstandingly the best core library I've seen. I am awed by how wonderfully the protocol approach makes data structures, and the good taste applied to getting an API that's reasonably minimal and wonderfully complete. I've not posted before because I've had nothing

Re: in keyword withing where claus java-jdbc

2012-12-05 Thread Sean Corfield
do-commands is intended for DDL, not SQL. You just want do-prepared: (sql/with-connection (db-connection) (sql/do-prepared (str "update TASK_T_MSGIDS set status='T' where msg_id in (" (apply str (interpose \, acks)) " )" )) ) On Wed, Dec 5, 2012 at 1:13 AM, Amir Wasim wrote: >

How to apply max to a list of values given a predefined value order?

2012-12-05 Thread scabbage
I need to apply a "max" operator to a list like this: [Tier20 Tier10 Tier30] It should give me "Tier30" as the max. My predefined order list (from low to high) is: [Tier5 Tier10 Tier20 Tier30 Tier40 Tier50] What's the best way to achieve this in clojure? -- You received this message because

Re: Default random in Clojure doesn't seem to fit fp paradigm

2012-12-05 Thread Steve Miner
You should treat rand and friends like i/o. Don't bury them deep in your code. Write your pure functions so that they take a seed value (or sequence). Generate the random values from outside of the important functions, maybe providing a convenience wrapper function around your main logic. (

Re: How to apply max to a list of values given a predefined value order?

2012-12-05 Thread Mark Engelberg
(def order-list [Tier5 Tier10 Tier20 Tier30 Tier40 Tier50]) (def rank (into {} (map-indexed (fn [i x] [x i]) orders))) (apply max-key rank [Tier20 Tier10 Tier30]) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: ANN: Clojure/West 2013 registration, CFP, sponsorships, training

2012-12-05 Thread Alex Miller
Based on a very quick response, the early bird is now sold out! Plenty of tickets left at the regular rate though of $350 though. On Tuesday, December 4, 2012 11:43:46 PM UTC-6, Alex Miller wrote: > > Clojure/West returns in 2013 to one of my > favorite cities: Portland

Re: Default random in Clojure doesn't seem to fit fp paradigm

2012-12-05 Thread JonC
On Wednesday, December 5, 2012 8:45:00 PM UTC, miner wrote: > > You should treat rand and friends like i/o. Don't bury them deep in your > code. Write your pure functions so that they take a seed value (or > sequence). This is one approach to by-passing clojure's randoms, yes. (To be hone

Re: Default random in Clojure doesn't seem to fit fp paradigm

2012-12-05 Thread Karsten Schmidt
FWIW dynvars are quite a common solution to these kind of scenarios: e.g. In my own library I've defined a default Random instance which is used by all related library fns, e.g.: (def ^:dynamic ^java.util.Random *rnd* (java.util.Random. 23)) (defn random ([x] (* x (.nextDouble *rnd*))) ([x y]

Re: ANN: Clojure/West 2013 registration, CFP, sponsorships, training

2012-12-05 Thread Sean Corfield
How long did it actually take to sell all 50 early bird tickets? On Wed, Dec 5, 2012 at 1:34 PM, Alex Miller wrote: > Based on a very quick response, the early bird is now sold out! Plenty of > tickets left at the regular rate though of $350 though. > > > On Tuesday, December 4, 2012 11:43:46

Re: ANN: Clojure/West 2013 registration, CFP, sponsorships, training

2012-12-05 Thread Alex Miller
Less than a day... I expected it to take longer! We have room for at least 400 so there are still plenty of tickets available (last year was about 300). On Wed, Dec 5, 2012 at 4:33 PM, Sean Corfield wrote: > How long did it actually take to sell all 50 early bird tickets? > > > On Wed, Dec 5, 2

A bearded person, Clojure and JavaFX

2012-12-05 Thread Christian Sperandio
Hi, I'm one of those bearded (Lin)Unixians person who love the black screen. I'm closer to back-office than front-office (it's may be my (too) pragmatic mind). But sometimes, for some programs, a GUI is a good thing for users. In particular when the sofware is not for barbed person :) First, I

Re: A bearded person, Clojure and JavaFX

2012-12-05 Thread charlie
What is the GUI for ? I'm not sure I'm happy about it, but I think most UI's are done in a browser now, and if you haven't checked out clojurescriptone.com yet I'd take a look. On Wed, Dec 5, 2012 at 5:38 PM, Christian Sperandio < christian.speran...@gmail.com> wrote: > Hi, > > I'm one of thos

Re: A bearded person, Clojure and JavaFX

2012-12-05 Thread Christian Sperandio
It's for a little application. It's for manage foods and their expiration date (thus, we avoid forget items in the cupboard). I thought about browser. I just wanted to chang :) Le jeudi 6 décembre 2012 00:43:15 UTC+1, charlie a écrit : > > What is the GUI for ? I'm not sure I'm happy about it,

Re: A bearded person, Clojure and JavaFX

2012-12-05 Thread Stephen Compall
On Dec 5, 2012 6:38 PM, "Christian Sperandio" wrote: > And I find that the Clojure code is damaged by the JavaFX inheritance. You must write :gen-class extends to just display a window. There are many things in JavaFX for which documentation suggests subclassing, but it is entirely reasonable to

Re: Default random in Clojure doesn't seem to fit fp paradigm

2012-12-05 Thread JonC
On Wednesday, December 5, 2012 10:30:26 PM UTC, Karsten Schmidt wrote: > > FWIW dynvars are quite a common solution to these kind of scenarios: > And that's an excellent solution. However, I still think that it's a problem that shouldn't need solving in the first place - the basic library sho

Re: A bearded person, Clojure and JavaFX

2012-12-05 Thread Dave Ray
Although it's not obvious from the JavaFX docs since they're written for a Java audience, it is very possible to create apps in an interactive style without inheritance. Two caveats: * Ignore the Application class. Just create your scene, etc directly. * Most execution has to run on the JavaFX thr

Re: A Working nrepl-ritz Setup?

2012-12-05 Thread Timothy Washington
Ahh yes, `*lein ritz-nrepl*` wasn't working. I got it working by changing the file name to profiles.clj . So Hugo, in the ritz/nrepl page, you'll want to change the instruction text from *A)* to *B)*. *A)* Add this to your ~/.lein/profiles file (r