Re: IDE feature

2013-08-09 Thread Sean Corfield
forward barf C-} after moving the cursor down two lines - convolute leaves it in front of (if ...). Sean On Fri, Aug 9, 2013 at 8:49 AM, Laurent PETIT wrote: > > > Le vendredi 9 août 2013, Sean Corfield a écrit : >> >> Ah, yes... it turns this ( | represents the cursor ): >&g

Re: IDE feature

2013-08-09 Thread Sean Corfield
Ah, yes... it turns this ( | represents the cursor ): (f a b (g c d |e f)) into this: (g c d (f a b e f)) I find I use it most often when moving `let` forms around, but also for other constructs occasionally. Sean On Fri, Aug 9, 2013 at 8:15 AM, Ambrose Bonnaire-Sergeant wrote: > I

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread Sean Corfield
Gmail search is defeating my efforts to locate what my problems with 2.2.0 were so I'll just wait until I can download 2.3.0 and re-run all our tests anyway. Sigh. On Fri, Aug 9, 2013 at 8:12 AM, Sean Corfield wrote: > On Fri, Aug 9, 2013 at 12:14 AM, Phillip Lord > wrote: >&

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread Sean Corfield
remember but I did post notes about them here a while back). I was just hoping to see if those problems were fixed in 2.3.0. I'll search the archives and see if I can find my post (and then I'll look at the 2.3.0 release notes). -- Sean A Corfield -- (904) 302-SEAN An Architect's View

Re: IDE feature

2013-08-09 Thread Sean Corfield
On Fri, Aug 9, 2013 at 6:58 AM, Laurent PETIT wrote: > What does it do? (first time I encounter it) DrRacket? It's the "standard" IDE for the Racket language (and all of its teaching subsets etc). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corf

Re: [ANN] Leiningen 2.3.0 released

2013-08-08 Thread Sean Corfield
; --- > 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/grou

Re: [ANN] Leiningen 2.3.0 released

2013-08-08 Thread Sean Corfield
0 0261 0 --:--:-- --:--:-- --:--:-- 336 100 11353 100 113530 0 11459 0 --:--:-- --:--:-- --:--:-- 101k Manual self-install is deprecated; it will run automatically when necessary. Downloading Leiningen to /Users/sean/.lein/self-installs/leiningen-2.3.0-standalone

Re: IDE feature

2013-08-08 Thread Sean Corfield
where the additional productivity comes from. Assuming you can get past paredit not allowing you to type ill-formed code, of course :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the

Re: IDE feature

2013-08-08 Thread Sean Corfield
w many times I use paredit-convolute-sexpr to help reorganize code - I'm almost at the point of binding it to a key sequence!). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of t

Re: [Proposal] Simplified 'ns' declaration

2013-08-06 Thread Sean Corfield
unified syntax - esp. since it would have to support the legacy syntax for several releases alongside (and then you'd have to consider whether mixed syntax should be supported - ugh!). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http:

Re: [ANN] Immutant 1.0.0 released

2013-08-01 Thread Sean Corfield
right now to do anything that isn't standard / turn key). Sean On Thu, Aug 1, 2013 at 9:48 AM, Jim Crossley wrote: > Nice timing, Sean! :-) > > On Wednesday, I was able to finally get Immutant clustering successfully on > OpenShift. Load-balanced messaging and web, failover for d

Re: [ANN] Immutant 1.0.0 released

2013-08-01 Thread Sean Corfield
Excellent! I look forward to trying this! Any plans for a Clojure / Immutant cartridge for OpenShift? Sean On Wed, Jul 31, 2013 at 1:49 PM, Jim Crossley wrote: > Today we finally released Immutant 1.0.0! > > Read about it here: http://bit.ly/imm100 > > For those unfamiliar,

Re: core.async: throwing an exception into the channel

2013-08-01 Thread Sean Corfield
on value from the channel anyway?" but I quickly realized this was the exact same problem!) Sean On Thu, Aug 1, 2013 at 3:19 AM, Alice wrote: > throw>! is an explicit operation, and there's no special channel states > involved. It's passing an exception like other data that

Re: how to get use clojure.contrib.import-static

2013-07-31 Thread Sean Corfield
th PI sqrt) and code that uses PI and sqrt directly, you can (import java.lang.Math) and use Math/PI and Math/sqrt instead. Sean On Wed, Jul 31, 2013 at 4:40 PM, jayvandal wrote: > I am trying to run the snake program . I don't know how to fin this "use > clojure.contrib.impo

Re: core.async: async java.jdbc

2013-07-31 Thread Sean Corfield
On Wed, Jul 31, 2013 at 10:58 AM, Alice wrote: > It doesn't produce a compile time error but I think it's not the correct > code because the transaction can be committed while insert-async! is still > executing. Right. I was just showing how to avoid the compile error (because you need http://cor

Re: core.async: async java.jdbc

2013-07-31 Thread Sean Corfield
On Wed, Jul 31, 2013 at 10:29 AM, Alice wrote: > (go > (jdbc/db-transaction [t-con db-spec] > (http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- You received this mess

Re: is intellij idea a good ide for clojure development?

2013-07-25 Thread Sean Corfield
time from ST2 to Emacs. The third does a lot of front end web dev and finds ST2 easier to work with - but I suspect when she starts doing Clojure / ClojureScript work, she'll switch too. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. --

Re: Idiomatic use of records?

2013-07-25 Thread Sean Corfield
a plain ol' map would be more idiomatic for most of the examples I am interested in documenting... although defining protocol-based versions of the functions in those examples would be an interesting diversion as well). Sean On Thu, Jul 25, 2013 at 9:41 AM, Neale Swinnerton wrote: > Chas

Idiomatic use of records?

2013-07-25 Thread Sean Corfield
form is considered more idiomatic (assume pt is a Point record): (.x pt) or (:x pt) Are there (other) things regarding records for which idiomatic usage would not look just like maps? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://wor

Re: clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Sean Corfield
Cool. I'll take a look at that and email you (hopefully tomorrow, depending on workload!). Sean On Wed, Jul 24, 2013 at 10:15 PM, Mark wrote: > Thanks, Sean. Not sure through what channel you want to communicate. > > I have pushed some changes that significantly clean up the cod

Re: clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Sean Corfield
ome refactoring to do... Sean On Wed, Jul 24, 2013 at 6:47 PM, Mark wrote: > re Signing the CA: Definitely. I'll get that sent in ASAP. > > In the meantime, can you take a look at > https://github.com/markaddleman/java.jdbc/commit/27a246dee7c0a06c888d827e0699bc6966725b58 >

Re: clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Sean Corfield
That's great and would be a worthwhile addition but don't forget to get your CA signed and sent in, otherwise your contributions cannot be accepted. See http://clojure.org/contributing for more details. Sean On Wed, Jul 24, 2013 at 4:03 PM, Mark wrote: > I'm pretty intere

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Sean Corfield
the discussion of the utility of adding :refer to :require in the first place. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist nove

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Sean Corfield
On Tue, Jul 23, 2013 at 1:53 PM, Ben Wolfson wrote: > On Tue, Jul 23, 2013 at 1:50 PM, Stefan Kamphausen > wrote: >> It complects require and refer ;-) > How so? Because use = require + refer (essentially). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http:/

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Sean Corfield
ing a solution, but I think :use in the ns macro should be deprecated (i.e., :use should at some point go away but perhaps the use function should stay for REPL-based exploration?). Tightening up the ns macro so it issues warning for undocumented constructs would also be a good idea: (ns

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Sean Corfield
use in earlier blog posts about Clojure (... checking ... yup, three blog posts from early 2012 contain :use, mostly with :only, so those should be updated to use :require / :refer instead). Sean On Tue, Jul 23, 2013 at 11:27 AM, Gary Trakhman wrote: > We should scour clojuresphere for uses of

Re: --> macro proposal

2013-07-17 Thread Sean Corfield
See this discussion: https://groups.google.com/forum/#!topic/clojure/67JQ7xSUOM4 (kinda hard to Google for functions with -> in their name so it took me a bit of digging!) Sean On Wed, Jul 17, 2013 at 10:15 AM, Steven Degutis wrote: > In that case, shouldn't it be named let->

Re: Socket.IO and Clojure?

2013-07-17 Thread Sean Corfield
cketio - but it's outdated and when I reached out to him, he confirmed the first point above - that the server side of Socket.IO is too complex to warrant trying to replicate ourselves (and that Socket.IO had evolved sufficiently that his project wouldn't be a useful starting point eithe

Socket.IO and Clojure?

2013-07-16 Thread Sean Corfield
jure? What approaches have you taken? Obviously, we could run Node.js and have it hit a Clojure-based REST API to do the integration, and that might be less pain long term but... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsin

Re: Request for clojure help

2013-07-16 Thread Sean Corfield
NP. Many of us are only too happy to help folks new to Clojure get over these humps and become productive! :) On Tue, Jul 16, 2013 at 6:57 PM, Keith Maynard wrote: > Wow Awesome Sean, I dropped your code in and it worked immediately > > It's quite a challenge figuring o

Re: Request for clojure help

2013-07-16 Thread Sean Corfield
xs))] (cons x p)) ) > > ) You need something like this: (defn perms [xs] (if (seq xs) (for [x xs p (perms (removeFirst x xs))] (cons x p)) [[]])) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perf

Re: An example app using core.async and tools.namespace

2013-07-15 Thread Sean Corfield
This is a great example of both Stuart Sierra's suggested workflow (from his talk at Clojure/West) and of using core.async to simplify concurrent, collaborating processes! Thanks for sharing! Sean On Mon, Jul 15, 2013 at 11:10 AM, mybuddymichael wrote: > I recently rewrote my team'

Re: [ANN]: Introducing lein-try

2013-07-14 Thread Sean Corfield
https://github.com/rkneufeld/lein-try/issues/3 Let me know if I can help with testing or provide any additional information. Sean On Sun, Jul 14, 2013 at 7:42 AM, Ryan Neufeld wrote: > Can you pop that in an issue on the project. In the mean time I'll see if I > reproduce that prob

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Sean Corfield
It doesn't work when I spell it correctly either (and I had done several tests - but of course the results of misspelling it look the same as it not working - and it's indicative of my day that I pasted the result of a bad test! :) C:\Users\Sean\clojure>lein new five ... C:\Users\Se

Re: [ANN]: Introducing lein-try

2013-07-13 Thread Sean Corfield
T.java:443) user=> Inside a project, it only seems to pick up the project's deps, not add to them. Am I doing something wrong? Sean On Sat, Jul 13, 2013 at 6:56 AM, Ryan Neufeld wrote: > Hey folks, > > Don't you hate it when someone releases a cool new library and you have to

Re: Multiple REPLs in Emacs? (was: test run startup time

2013-07-11 Thread Sean Corfield
Thanx Jay. For whatever reason, multiple nREPL buffers has never worked for me before but on reading that I suspect I may just have had incorrect assumptions about how it was actually supposed to work... Sean On Thu, Jul 11, 2013 at 3:10 PM, Jay Fields wrote: > > > > On Thu, Jul 1

Re: ClassCastException in APersistentVector.doEquiv with custom implementation of IPersistentVector

2013-07-11 Thread Sean Corfield
Vector, I would expect you to need to provide several more method definitions? https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/IPersistentVector.java -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://wo

Multiple REPLs in Emacs? (was: test run startup time

2013-07-11 Thread Sean Corfield
ctive REPLs (usually for working with multiple projects) but have never figured out how to get it working... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustav

Re: java.jdbc - (sql/where ...) with multiple values (i.e. 'x in (1,2,3')

2013-07-09 Thread Sean Corfield
clojure.java.jdbc.sql is a deliberately minimal DSL - Justin Kramer's HoneySQL is what I recommend for more expressive SQL construction (that's the "official" recommendation based on discussions Justin and I had about java.jdbc and HoneySQL at Clojure/conj 2012). Sean On Mon,

Re: how to create in-memory hsqldb database via java.jdbc

2013-07-09 Thread Sean Corfield
oogle.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,

[ANN] java.jdbc documentation has moved!

2013-07-09 Thread Sean Corfield
github.com/java.jdbc that would seem preferable. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- Yo

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-07-05 Thread Sean Corfield
ities and :identifiers to deal with quoting. Sounds like a reasonable enhancement to extend that functionality to third-party libraries as well... feel free to create issues in JIRA. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://wor

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-07-05 Thread Sean Corfield
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 s

Sharing result of macro's calculation with the body

2013-07-01 Thread Sean Johnson
le to find anything about how to best do this. It case it helps, the real macro is with-collection and it takes a collection name, does a lookup and some validation in a DB, then needs to share the collection's id with the body. Cheers, Sean -- -- You received this message because yo

Re: Offline Clojure docs

2013-06-30 Thread Sean Corfield
been updated in a year, no idea about this one Sean On Sun, Jun 30, 2013 at 4:44 PM, David Pollak wrote: > Folks, > > Is there an offline package of Clojure docs (the full core.* api docs, cheat > sheets, etc.)? > > I'm traveling with intermittent Internet connectivity (I

Re: core.async

2013-06-30 Thread Sean Corfield
xample.com/FIXME"; :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"} :dependencies [[org.clojure/clojure "1

Re: putting 2-element colls into a map: works with vectors, but not with lists?

2013-06-24 Thread Sean Corfield
hat have slightly different map implementations... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) --

Re: database wrapper lib

2013-06-21 Thread Sean Corfield
dbc, I highly recommend HoneySQL. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- You received thi

Re: Clojure in production

2013-06-18 Thread Sean Corfield
It's the dog's b*ll*cks! :) (since we're doing cultural slang, let's get some Britishness in there!) Sean On Tue, Jun 18, 2013 at 9:04 PM, Russell Whitaker wrote: > But... is it also the bee's knees? > > Russell Whitaker > Sent from my iPhone > >

Re: Multiple args: opts map vs inline arguments

2013-06-18 Thread Sean Corfield
ons call whichever version is easiest to use. The arglists metadata on foo assists users of the library: user=> (doc foo) - user/foo ([a b :c 1 :d "two"]) Do something Sean On Tue, Jun 18, 2013 at 3:52 AM, James Reeves wrote: > I somewhat disagree with th

Re: Newbie dependency loading issue

2013-06-17 Thread Sean Corfield
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

Re: [pre-ANN] test2, the last Clojure testing framework

2013-06-11 Thread Sean Corfield
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/groups/opt_out. > > -- Sean A Corfi

Re: expectations documentation

2013-06-11 Thread Sean Corfield
This is very helpful Jay, thank you! We switched from clojure.test to Expectations after Clojure/West 2012 and we've been very happy with the framework. Centralized documentation will certainly make life easier for my team! Sean On Tue, Jun 11, 2013 at 11:39 AM, Jay Fields

Re: Clojure in production

2013-06-11 Thread Sean Corfield
each version as it is released. Sean On Mon, Jun 10, 2013 at 3:17 PM, Plínio Balduino wrote: > Thanks. I went there before ask here =) > > Plínio > > On Jun 10, 2013 6:58 PM, "Softaddicts" wrote: >> >> Look at this: >> >> http://dev.clojure.o

Re: Best IDE

2013-06-10 Thread Sean Corfield
eceived 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

Re: [pre-ANN] test2, the last Clojure testing framework

2013-06-09 Thread Sean Corfield
No. Read http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go On Sun, Jun 9, 2013 at 6:41 PM, Steven Degutis wrote: > Is this still current? http://clojure.github.io/clojure-contrib/ > > On Sunday, June 9, 2013 8:19:15 PM UTC-5, Sean Corfield wrote: >> >> On

Re: [pre-ANN] test2, the last Clojure testing framework

2013-06-09 Thread Sean Corfield
t > clojure.test, but in the discussion there were many more complaints. Yes, people tend to complain but don't actually do anything about it - they don't open tickets - so nothing gets done :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Si

Re: [pre-ANN] test2, the last Clojure testing framework

2013-06-09 Thread Sean Corfield
x27;s not even worth writing a macro to standardize the boilerplate (at least, it hasn't annoyed me sufficiently to make it worth doing yet). Sean On Sun, Jun 9, 2013 at 4:57 PM, Steven Degutis wrote: > I agree, we should survey users of existing tools. The thing is, we *are* >

Re: [pre-ANN] test2, the last Clojure testing framework

2013-06-09 Thread Sean Corfield
gs - but not much based on how few JIRA tickets exist) or they switch to a third party framework they prefer - but across the board tooling is the weak spot (IMO). So I wouldn't spend much time on the test machinery itself and the API that test2 exposes since that's all very s

Re: [ANN] core.rrb-vector -- RRB-Tree-based confluently persistent vectors

2013-06-01 Thread Sean Corfield
roup and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingl

Re: Use of io!

2013-05-30 Thread Sean Corfield
- clojure.core * await-for - clojure.core * transaction - java.jdbc (deprecated) * db-transaction - java.jdbc It sounds like all inserts and updates in java.jdbc should also be wrapped in io! and I would expect io! to be needed in a lot of other places in Clojure libraries across the board...? -- Sean A

Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-05-28 Thread Sean Corfield
lts" - then breaking on an exception won't help you anyway, and you're back to painstakingly tracking thru code to find where data went bad. Hammock time, careful human analysis, and selective logging and tracing is more likely to yield results quicker for less effort, in my opinion. A

Re: realizing a lazy line-seq inside with-open

2013-05-27 Thread Sean Corfield
On Mon, May 27, 2013 at 9:50 PM, Kevin Downey wrote: > doall doesn't recurse, so you are not realizing the lazy-seq, you want > something like [msg (doall sig-strs)] Thank you Kevin! When Elango said my suggestion didn't work, I was puzzled. Now it makes sense! -- Sean A Corfi

Re: realizing a lazy line-seq inside with-open

2013-05-27 Thread Sean Corfield
ost. > 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" g

Re: How to: reduce boolean operations?

2013-05-22 Thread Sean Corfield
On Wed, May 22, 2013 at 9:32 AM, Peter Mancini wrote: > (defn all-true? > [coll] > (every? (fn [x] (= x true)) coll)) (defn all-true? [coll] (every? true? coll)) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles

Re: ClassNotfound Exception while loading JAR files in Clojure 1.2

2013-05-22 Thread Sean Corfield
ib that actually had maintainers were moved into new libraries, updated individually. Many of them are still compatible with Clojure 1.2 but a lot of the parts of the original contrib were abandoned for a number of reasons. Sean On Tue, May 21, 2013 at 11:25 PM, wrote: > > Hi, > >

Re: seancorfield /clj-soap

2013-05-20 Thread Sean Corfield
I had to revert to Axis 1.x for compatibility with some 3rd party code I don't control that has to run in the same servlet container as our Clojure code. The Axis 2.x wrapper looked much nicer but we couldn't use it. Sean On Sat, May 18, 2013 at 5:32 PM, Marc Boschma wrote: > We

Re: seancorfield /clj-soap

2013-05-18 Thread Sean Corfield
to test it for a problem I was working on - it didn't really do what I needed so I took a different approach (using Axis 1.x libraries at a much lower level for one specific web service)." Sean On Fri, May 17, 2013 at 11:29 PM, marc wrote: > Hoping someone has already explored this. H

Re: [ANN] clojure.java.jdbc 0.3.0 alpha 4

2013-05-13 Thread Sean Corfield
on above from the contrib repo to the clojure-doc repo? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -

[ANN] clojure.java.jdbc 0.3.0 alpha 4

2013-05-13 Thread Sean Corfield
Latest alpha build of the upcoming 0.3.0 release of Clojure's JDBC wrapper contrib library. TL;DR: Extensive code changes around connection handling that I'd like to see get tested in the "real world"... http://corfield.org/blog/post.cfm/clojure-java-jdbc-0-3-0-alpha-4 -- Sea

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-13 Thread Sean Corfield
in sequences. (In fact > I believe that count should be O(1).) So you think (count (map inc [1 2 3])) should be illegal? (I'm just trying to understand your logic here) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsin

Re: unusual question: how do you get morale?(or moral support)

2013-05-12 Thread Sean Corfield
ho', I know a lot of "programmers" who are not like that. For them, it's a job. When they go home, they don't think about it, they don't read technical books for "fun", they don't write OSS. I'm just glad people are willing to pay me for something I'd have

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-11 Thread Sean Corfield
But then instead of (if (not (empty? foo)) (do-something-to foo) base-expr) you could just write (if (empty? foo) base-expr (do-something-to foo)) which maintains the "idiomatic" approach but is still "more obvious code", yes? Sean On Sat, May 11, 2013 at 2:20

Re: Not using dependency injection - how do I share services around?

2013-05-11 Thread Sean Corfield
#x27;t have to think about it, you can work around problems that crop up. Does that help Colin? Sean On Fri, May 10, 2013 at 4:04 AM, Colin Yates wrote: > (newbie, getting better each day!) > > I assume we all know DI. Through the use of a central registry I can > register a service

Re: why clojure.lang.Compiler.LOADER is null in clojure 1.5.1

2013-05-09 Thread Sean Corfield
h has indicated that pretty much only clojure.lang.RT.var() is really "supported" and everything else should be considered off-limits. That doesn't help you with changing the classloader so maybe someone from Clojure/core can weigh in on whether that's even considered safe...? Sea

Re: [ANN] java.jdbc 0.3.0-alpha2

2013-05-07 Thread Sean Corfield
time? Seems to basically duplicate what Connection.setAutoCommit > already does? You would never need :transaction? unless you had some very specific, strange edge case so you can just ignore it. The implementation uses it and there have been some specific edge cases people have

Re: [ANN] java.jdbc 0.3.0-alpha2

2013-05-04 Thread Sean Corfield
Thanx for the detailed feedback. I'm not sure why that didn't show up in testing. Update made to create alpha3. I'll have it released to Maven shortly. On Sat, May 4, 2013 at 3:51 AM, r0man wrote: > Hi Sean, > > I just tested java.jdbc 0.3.0-alpha2 against my code base

[ANN] java.jdbc 0.3.0-alpha2

2013-05-03 Thread Sean Corfield
ns JDBC-52 Reverted specialized handling of NULL values (reopens JDBC-40) Rename :as-arrays to :as-arrays? since it is boolean Add curried version of clojure.java.jdbc.sql/as-quoted-str Officially deprecate resultset-seq For more details about past releases: https://github.com/clojure/java.jdbc -- Sean

Re: Question about destructuring with :keys :or and :as

2013-05-03 Thread Sean Corfield
Just merge the new, known values back in since they've already been bound to their (possibly defaulted) values: (let [params (assoc params :my-key my-key)] ...) Sean On Fri, May 3, 2013 at 12:38 PM, Ryan wrote: > Well, I need to do something more "clever" because I am passi

Re: Question about destructuring with :keys :or and :as

2013-05-03 Thread Sean Corfield
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

Re: testing for nil may not be enough

2013-04-29 Thread Sean Corfield
Try this: user=> (def a) #'user/a user=> (bound? (var a)) false user=> (def a nil) #'user/a user=> (bound? (var a)) true Sean On Mon, Apr 29, 2013 at 8:32 AM, AtKaaZ wrote: > How do you guys handle the cases when the var is unbound? I mean > specifically in the case

Re: clojure dependencies

2013-04-26 Thread Sean Corfield
l of the necessary JARs from the cache. > My question is where do the dependencies locate? I would put the files in > the c:\clojure-1.4.0 You don't need to install Clojure when you use Leiningen. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Single

Re: noob question about try/catch

2013-04-26 Thread Sean Corfield
r 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 > em

Re: Multiple replacements in string using a map

2013-04-22 Thread Sean Corfield
quote will not accept a keyword (which is what the exception is telling you). In the code you posted before, which did work, you had (name %) instead which would yield a String from either a keyword or a string - which is clearly what you want here. -- Sean A Corfield -- (904) 302-SEAN An Architect&

Re: can congomongo connect to mongos?

2013-04-20 Thread Sean Corfield
Can you open a ticket here with as much detail as possible? https://github.com/aboekhoff/congomongo/issues I don't know how many CongoMongo users are currently working with shared collections. Sean On Fri, Apr 19, 2013 at 7:51 PM, Zhi Yang wrote: > yes, it works for single instance,

Re: Multiple replacements in string using a map

2013-04-19 Thread Sean Corfield
as `s`? Sean On Fri, Apr 19, 2013 at 5:17 PM, Mond Ray wrote: > Old thread but what the heck... it doesn't work in my REPL > > user=> (defn key-pattern > #_=> "Create a regex Pattern of the form '|', the key > names > #_=> will be

Re: can congomongo connect to mongos?

2013-04-19 Thread Sean Corfield
e 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/groups/opt_out. > > -- Sean A Corfield -- (904) 302-SEAN A

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-19 Thread Sean Corfield
7;m still looking at is the multi-row insert (returning counts instead of keys) that is possible with the original API. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good.&qu

Re: docs for clojure.java.jdbc 0.3.x

2013-04-15 Thread Sean Corfield
todoc task for us to update everything? Sean On Mon, Apr 15, 2013 at 8:03 AM, wrote: > Hello, Josh > > http://clojure.github.io/java.jdbc/ > Actually described about 0.3.x APIs. > > 2013年4月15日月曜日 20時53分24秒 UTC+9 Josh Kamau: >> >> Hello ; >> >> Where can i

Re: Good Clojure style?

2013-04-10 Thread Sean Corfield
t this on my team members yet, as they are newer to Clojure, but I don't think it's particularly unreadable or complicated either. It's certainly the sort of thing you have to get used to with Clojure (and Lisp in general)... Sean On Wed, Apr 10, 2013 at 11:34 AM, Alex Baranosky wr

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-09 Thread Sean Corfield
rowse/JDBC (although some discussion about things would be welcome first) I have created a mailing list specific to clojure.java.jdbc in case folks want to get into deep discussions and don't want to clog up this main Clojure mailing list (since I understand the user base for java.jdbc is re

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-08 Thread Sean Corfield
uery is introduced and before db-spec is looked at. True, you could still have a default for identifiers on db-spec which was used for result-set-seq but that seems asymmetric. If folks think that's worthwhile despite the asymmetry, can someone create a ticket in JIRA so I don't forget to loo

Re: java.jdbc delta update examples

2013-04-08 Thread Sean Corfield
If you're using 0.3.0-alpha1, I think I'd recommend using native SQL and the execute! function: (j/execute! my-db "UPDATE employee SET SALARY = SALARY + 1000 WHERE department = ?" [dept]) Sean On Mon, Apr 8, 2013 at 1:31 PM, Craig wrote: > > I am looking for e

Re: how to create dependncies for mysql in clojure

2013-04-07 Thread Sean Corfield
and start working against your database: (require '[clojure.java.jdbc :as j] '[clojure.java.jdbc.sql :as s]) Use the examples in the java.jdbc documentation to help you along: https://github.com/clojure/java.jdbc/tree/master/doc/clojure/java/jdbc Sean On Sun, Apr 7, 2013 at 4:03 PM

[ANN] java.jdbc 0.3.0-alpha1

2013-04-07 Thread Sean Corfield
explicitly pass in the naming strategy -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- You receiv

Re: Opinion on testing strategies?

2013-04-06 Thread Sean Corfield
his stuff traditionally? How would you deal with these problems traditionally? And if you think they're specific to FP, why? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the

Re: Function recurring regardless of condition

2013-04-06 Thread Sean Corfield
ojure. Sean On Sat, Apr 6, 2013 at 5:16 PM, Michał Marczyk wrote: > Not sure why you're using (- end-index 2) in the printed message. > Also, you can use (dec end-index) in your termination condition. > > As for the main problem, I haven't studied your program very closely, >

Re: why can I re-use local variables if Clojure is immutable?

2013-04-02 Thread Sean Corfield
arams)] ...) Now we're on 1.5.1, I'll probably rewrite code like this to use cond-> (let [params (cond-> [x y] some-arg? (conj z))] ...) (once I've convinced myself that is correct!) Sean On Tue, Apr 2, 2013 at 12:09 PM, larry google groups

Re: clojure.java.jdbc turning into a DSL/ORM?

2013-04-01 Thread Sean Corfield
bscribe 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 u

[ANN] clj-time 0.5.0 and repo/org change

2013-03-31 Thread Sean Corfield
st for users of clj-time on Google Groups: http://groups.google.com/group/clj-time -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, Fren

<    5   6   7   8   9   10   11   12   13   14   >