On Jul 11, 6:41 am, Aaron Bedra 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 because you are subsc
On Jul 10, 4:52 pm, Wilfred wrote:
> I'm at a bit of a loss. "UPDATE comments SET approved='1' WHERE id =
> '1'" works fine in psql. approved is a boolean field, so is this an
> issue with the SQL library producing incorrect SQL?
I think this is an oddity with the JDBC driver for PostgreSQL. The
On Apr 26, 10:13 am, Sean Corfield wrote:
> On Tue, Apr 26, 2011 at 6:19 AM, David Powell wrote:
> > There is justification for resultset-seq's current behaviour, even if it
> > isn't to everyone's preference.
>
> Agreed. And I would actually want the lowercasing behavior to remain
> the default,
On Sep 24, 1:34 pm, Stuart Sierra 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 "Clojure" group.
To post to t
On Sep 24, 8:09 am, Stuart Sierra 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
> fromhttp://github.com/clojure/clojure-contrib/downloads
>
> If you want
On Sep 22, 2:03 pm, Stuart Sierra wrote:
> On Sep 22, 12:35 pm, Justin Kramer 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.
>
> It's wrong, technically, bu
On Sep 9, 3:13 pm, Stuart Sierra 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 dependencies. Does
On Aug 20, 7:22 am, Stuart Sierra 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 pointed out on IRC to
On Aug 21, 1:04 am, "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 lein, no matter ho
On Aug 17, 7:15 am, Saul Hazledine 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 it be useful?
>
On Aug 13, 11:09 am, Wilson MacGyver 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, due to battery
On Aug 13, 6:51 am, Mike Anderson
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 perspectives.
>
Looks g
On Jul 18, 5:17 pm, defn 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 members are m
On Jul 14, 5:03 pm, Brenton 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 might be causing
On Jul 14, 1:05 pm, Brenton 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 to see
plaintex
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 prope
On Jun 25, 2:57 am, Chas Emerick 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
> (which
On Jun 23, 2:23 pm, James Reeves 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 survey data
for psych research
On Jun 16, 9:24 pm, Phil Hagelberg 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 X and now eve
Given:
(defn foo [x & {:as args}] [x args])
(foo 1 :bar 2 :baz [:quux])
=> [1 {:bar 2, :baz [:quux]}]
If I have those rest-arguments already in a map, what's the most
elegant way to call foo with them?
(def args {:bar 2 :baz [:quux]})
(foo 1 ?)
I feel like I may be missing some simple way o
On May 26, 10:29 am, Fogus 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 don't work in
On May 26, 8:16 am, Stuart Halloway 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 dependency on contrib
On Mar 25, 3:42 pm, Chas Emerick 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 vs. XML or simple i
On Mar 25, 11:55 am, Chas Emerick 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
> existing bui
(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
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 wrote:
> Funding Clojure 2010
>
> Background
> --
>
> I
On Oct 21, 11:48 am, Gorsal 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 what you w
On Aug 19, 2:16 pm, Sean Devlin 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 library to the standard li
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
On May 16, 12:58 am, Glen Stampoultzis 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 any way to set
On Apr 3, 12:42 pm, "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 to do ref updat
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
On Mar 20, 7:15 am, Rich Hickey 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, multi-arg set/union/diff
On Mar 8, 10:53 am, Rich Hickey wrote:>
> In looking at some of the libraries, I am a bit concerned that maps
> are not being used when the logical entity is in fact a map.
One time I find myself abusing vectors where maps would be better is
in a situation where I have to retrieve key/value pair
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 wan
On Jan 20, 10:06 am, "Hugh Winkler" 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 when it's not. Th
On Jan 16, 5:38 pm, levand 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 to use with Clojure.
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
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
tong
On Nov 13, 5:07 pm, Allen Rohner <[EMAIL PROTECTED]> wrote:
> On Nov 7, 3:00 am, [EMAIL PROTECTED] wrote:
>
> > Hey folks,
>
> > Is there a way to get the System.err directed to the slime-repl
> > clojure buffer instead of (or in addition to) inferior-lisp buffer? I
> > looked through the docs, b
On Nov 4, 9:06 am, "Geoffrey Teale" <[EMAIL PROTECTED]> wrote:
> If you teach the general principles of Clojure then using any of them should
> be easy enough. As Graham said, it's better to stick with the out of the
> box GUI layer for a general purpose book. Qt Jambi was actually a little
>
41 matches
Mail list logo