Re: jdbc and postgresql type problem

2011-07-11 Thread Brian Carper
On Jul 11, 6:41 am, Aaron Bedra aaron.be...@gmail.com wrote: Silly question, but which version of java.jdbc are you using?  Up until 0.0.3 I had no end of troubles with psql because of the batchExecute issue. I tested Wilfred's code with 0.0.3-SNAPSHOT. --Brian -- You received this message

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Brian Carper
On Sep 24, 8:09 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: I have deployed release 1.3.0-alpha1 of clojure-contrib. This is the first public release of the modularized clojure-contrib. If you just want one big JAR file, download it

Re: clojure-contrib 1.3.0-alpha1

2010-09-24 Thread Brian Carper
On Sep 24, 1:34 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: OK, individual modules appear to work now on 1.3.0-alpha1 Yep, it works now. Many thanks for fixing this so quickly. I feel your pain. --Brian -- You received this message because you are subscribed to the Google Groups

Re: clojure-contrib master now in submodules

2010-09-23 Thread Brian Carper
On Sep 22, 2:03 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: On Sep 22, 12:35 pm, Justin Kramer jkkra...@gmail.com wrote: Here's the magic incantation I've been using: [org.clojure.contrib/complete 1.3.1-SNAPSHOT :classifier bin] I don't know how official or future-proof that is.

Re: clojure-contrib master now in submodules

2010-09-09 Thread Brian Carper
On Aug 20, 7:22 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: If you want to use ALL contrib libraries, add a dependency on group org.clojure.contrib, artifact complete, version 1.3.0-SNAPSHOT. This meta-library depends on all other contrib libraries. This doesn't work because as was

Re: clojure-contrib master now in submodules

2010-09-09 Thread Brian Carper
On Sep 9, 3:13 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: Can you clarify?  Maven-aware build tools (e.g. Leiningen) should not be trying to downlaod the clojure-contrib:complete JAR file. Instead, referencing the complete project as a dependency should transitively give you all its

Re: Leiningen 1.2.0 released

2010-08-21 Thread Brian Carper
On Aug 21, 1:04 am, evins.mi...@gmail.com evins.mi...@gmail.com wrote: Up til now, I've avoided using ELPA (it doesn't play nicely with my 25 years' worth of Lisp-oriented emacs customizations). It may be helpful for other hoary old lisp hackers to know that you really want to use ELPA with

Re: Clojure Web Programming group?

2010-08-17 Thread Brian Carper
On Aug 17, 7:15 am, Saul Hazledine shaz...@gmail.com wrote: One idea I had though was to go one step further and start a Clojure web development group so that other developers of small libraries and users of them could go to one place for support and discussion. Would this be uncool or would

Re: Game development in Clojure

2010-08-13 Thread Brian Carper
On Aug 13, 6:51 am, Mike Anderson mike.r.anderson...@gmail.com wrote: Hello all, I've recently been working on a game development project in Clojure which is now starting to bear fruit. I thought people here might be interested, and that it would be worthwhile to share some experiences and

Re: Game development in Clojure

2010-08-13 Thread Brian Carper
On Aug 13, 11:09 am, Wilson MacGyver wmacgy...@gmail.com wrote: I assumed he didn't use OpenGL because it's a 2d tile game? Using OpenGL for 2d or 2.5d (isometric) is really only a good idea if you can assume the target has hardware OpenGL acceleration. Even then you may not want to do that,

Re: Leiningen 1.2.0 released!

2010-07-20 Thread Brian Carper
On Jul 18, 5:17 pm, defn dev...@gmail.com wrote: I think I speak for everyone when I say: thank you. inc --Brian -- 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

defmulti - defonce semantics?

2010-07-14 Thread Brian Carper
I just noticed this in the 1.2 beta release notes: * defmulti - Enhanced to have defonce semantics I've been bitten by this for a couple months now and I never knew the reason. If (during interactive development) you want to change the dispatch function for a multimethod, what is now the

Re: ANN: Deview - Better test results

2010-07-14 Thread Brian Carper
On Jul 14, 1:05 pm, Brenton bashw...@gmail.com wrote: I have created a new project named lein-difftest. http://github.com/brentonashworth/lein-difftest This is awesome. I've been hurting for this kind of tool for a long time. For peons like myself who still run tests from a REPL and want

Re: ANN: Deview - Better test results

2010-07-14 Thread Brian Carper
On Jul 14, 5:03 pm, Brenton bashw...@gmail.com wrote: I'm not sure what's going on with that error. As you can see from [1], testing-vars-str takes no args. Also, I don't get an error message when running as a Leiningen plugin or from the REPL.  Let me know if you think of anything else that

Re: Hash-map destructuring

2010-06-25 Thread Brian Carper
On Jun 25, 2:57 am, Chas Emerick cemer...@snowtide.com wrote: This is fairly simple: user= (defn foo [ {:as args}] [args]) #'user/foo user= (def m {:a 5 :b 6}) #'user/m user= (apply foo (- m seq flatten)) [{:a 5, :b 6}] I'm not sure if it could be made easier, short of changing apply  

Re: State of Clojure web development

2010-06-23 Thread Brian Carper
On Jun 23, 2:23 pm, James Reeves weavejes...@googlemail.com wrote: 1. Have you written, or are you writing, a web application that uses Clojure? What does it do? My blog and a couple of other blog-like hobby sites. I also wrote a small standalone data-collection app at work. It collects

Re: Leiningen documentation review?

2010-06-18 Thread Brian Carper
On Jun 16, 9:24 pm, Phil Hagelberg p...@hagelb.org wrote: Mostly I'd like feedback on the tutorial:http://github.com/technomancy/leiningen/blob/master/TUTORIAL.md It looks quite good. Maybe some mention of `lein clean` is warranted. It would preclude a lot of the Hey I just upgraded library

Re: promoting contrib.string to clojure, feedback requested

2010-05-26 Thread Brian Carper
On May 26, 8:16 am, Stuart Halloway stuart.hallo...@gmail.com wrote: If you are a user of clojure.contrib.string, please take a look at the   proposed promotion to clojure [1]. Feedback welcome! It is my hope   that this promotion has enough batteries included that many libs can   end their

Re: promoting contrib.string to clojure, feedback requested

2010-05-26 Thread Brian Carper
On May 26, 10:29 am, Fogus mefo...@gmail.com wrote: I have mentioned my gripes in the IRC, but for public view I would love better names for chomp and chop.  In isolation those names are meaningless, so I suggest: Almost every name in a programming language is meaningless in isolation. But we

Re: Choosing a Clojure build tool

2010-03-26 Thread Brian Carper
On Mar 25, 3:42 pm, Chas Emerick cemer...@snowtide.com wrote: I'm not entirely sure what would be required from clojure-maven-plugin   (for example) for maven to achieve greater acceptance in the   community... I think all it takes is getting the word out. Ease of use matters to me, but sexp

Re: Choosing a Clojure build tool

2010-03-25 Thread Brian Carper
On Mar 25, 11:55 am, Chas Emerick cemer...@snowtide.com wrote: I published a blog post earlier today, along with a short screencast   that might be of interest: Like any group of super-smart programmers using a relatively new   language, a lot of folks in the Clojure community have looked at  

clojure.contrib.error-kit bug?

2009-12-19 Thread Brian Carper
(defn- special-form [form] (and (list form) (symbol? (first form)) (#{#'handle #'bind-continue} (resolve (first form) I think the second line should say (list? form). (list form) is always true. --Brian -- You received this message because you are subscribed to the Google

Re: Funding Clojure 2010

2009-12-14 Thread Brian Carper
I sent my contribution. Thanks for your work on Clojure. It's brought me many weekends of joyful hacking. Please continue to let the community know what's necessary to sustain Clojure's development. On Dec 14, 6:33 am, Rich Hickey richhic...@gmail.com wrote: Funding Clojure 2010 Background

Re: Uninterning a function

2009-10-21 Thread Brian Carper
On Oct 21, 11:48 am, Gorsal s...@tewebs.com wrote: I'm trying to unintern a function i accidently defined in a namespace which collides with another function i'm importing . i can't seem to find an unintern, or undef, or anything to do this? How do i achieve this? Thanks~~ I think this is

Re: New string utilities library ready

2009-08-20 Thread Brian Carper
On Aug 19, 2:16 pm, Sean Devlin francoisdev...@gmail.com wrote: First, I would change the names of functions functions that collide with core to str-take, str-drop, etc.  It's just as much to type, and it is safe to use these names.  Also, it would make it easier for Rich to promote the

Literal hash-maps with duplicate keys?

2009-05-29 Thread Brian Carper
Can anyone explain this? user (def x {:foo :bar :foo :baz :foo :quux}) #'user/x user x {:foo :bar, :foo :baz, :foo :quux} user (count (keys x)) 3 user (map x (keys x)) (:bar :bar :bar) It's understandable that a literal map which includes the same key twice with different values could return

Re: Best practices for Slime with Clojure

2009-05-18 Thread Brian Carper
On May 16, 12:58 am, Glen Stampoultzis gst...@gmail.com wrote: The other problem I have is with the current working directory.  The swank process seems to use my home directory as the current working directory regardless of what the current working directory of emacs currently is.  Is there

Re: Keeping a ref and a DB in sync

2009-04-06 Thread Brian Carper
On Apr 3, 12:42 pm, rzeze...@gmail.com rzeze...@gmail.com wrote: Brian, I imagine you are asking this in relation to your blog engine? Yep. Thanks everyone for the help and ideas. Unfortunately I do have a ton of data in a DB already so Terracotta would be a lot of work. I rewrote everything

Keeping a ref and a DB in sync

2009-04-03 Thread Brian Carper
Is there a safe way to keep the data in a Clojure ref and the data in a table in an external (e.g. mysql) database in sync, given concurrent creates/updates/deletes from within Clojure? I can't do a DB update from within a dosync because of retries. If I send-off an agent for the DB update from

Re: New release 20090320

2009-03-20 Thread Brian Carper
On Mar 20, 7:15 am, Rich Hickey richhic...@gmail.com wrote: New release 20090320 -http://clojure.googlecode.com/files/clojure_20090320.zip Incorporates all the recent additions - fully lazy seqs, :let option for doseq/for, letfn for mutually recursive local fns, synchronous watches,

Importing lots of Java classes at once

2009-02-20 Thread Brian Carper
One could argue that wildcard imports in Java (import package.*) are evil, pollute your namespaces, create potential naming conflicts, etc. One would probably be correct. One could also argue that having to manually type a list of dozens of classnames is pretty tedious, especially if all you

Re: Unexpected binding behavior

2009-01-20 Thread Brian Carper
On Jan 20, 10:06 am, Hugh Winkler hwink...@gmail.com wrote: Inside FP, outside FP, all I want is no surprises. I agree, this is confusing for new users. Especially given the counter-intuitive (for a new person) way the REPL forces evaluation of everything, making everything seem to be eager

Re: QT Jambi and the Repl

2009-01-16 Thread Brian Carper
On Jan 16, 5:38 pm, levand luke.vanderh...@gmail.com wrote: Has anyone here had success in using Clojure with QT Jambi? I'm currently experimenting with porting my app from Swing to QT, and although Jambi might well be the theoretically superior framework, it seems like Swing is a lot easier

Re: Not understanding the proper use of map

2008-12-10 Thread Brian Carper
On Dec 10, 12:07 pm, Michael Wood [EMAIL PROTECTED] wrote: OK, I think I know why this happens. It's treating the '+ as the key for a map, and using the second integer as the default value. I'm not sure why it treats an integer as a map, though: Wow, that's a bit of a gotcha. It's not

Re: POLL: Domain name for project hosting site.

2008-11-17 Thread Brian Carper
On Nov 17, 11:52 am, Drew Crampsie [EMAIL PROTECTED] wrote: Here are some suggestions so far, but please feel free to chime in with your own as well. What about something made of whole words, like clojureforge? It has the benefit of discoverability and being pronounceable by the human tongue.