Re: Contrib for Clojure 1.3

2012-01-31 Thread Sean Corfield
On Tue, Jan 31, 2012 at 11:59 AM, Mark Engelberg mark.engelb...@gmail.com wrote: I  know there's some documentation about the migration out there, but I do sympathize with the original poster -- it can still be surprisingly difficult to figure out exactly what lines to put in the lein project

Re: Contrib for Clojure 1.3

2012-01-31 Thread Sean Corfield
On Tue, Jan 31, 2012 at 7:11 AM, kohyama yykohy...@gmail.com wrote: O.K. Now I see that what we should do is depend on the namespace in contrib 1.2. Some parts of the 1.2 contrib are not compatible with Clojure 1.3 so your success will depend on exactly which parts you use... It really would be

Re: Unable to bootstrap ClojureScript

2012-01-31 Thread Sean Corfield
I just tried the git clone and bootstrap on a Mac and on a Ubuntu machine and it worked. I suspect you got a bad download during the bootstrap or hit some sort of network? Sean On Tue, Jan 31, 2012 at 3:11 PM, HB hubaghd...@gmail.com wrote: Hi, Would you please have a look at this thread:

Re: Clojure Community Values

2012-01-27 Thread Sean Corfield
On Fri, Jan 27, 2012 at 1:40 PM, Stuart Sierra the.stuart.sie...@gmail.com wrote: *I* value most of these things, but I'm not going to try to speak for anyone else. I've learned that lesson the hard way. And I think the questions are deliberately loaded :) -- Sean A Corfield -- (904) 302-SEAN

Re: Setting up Emacs to edit Clojure for Windows folks

2012-01-25 Thread Sean Corfield
On Wed, Jan 25, 2012 at 11:59 AM, Rick Hall rickhall2...@hotmail.com wrote: For anyone who needs the help, the post is here: http://onbeyondlambda.blogspot.com/2012/01/setting-up-clojure-emacs-on-windows.html Thanx Rick. I started down a similar path and got these instruction pulled together:

Re: Setting up Emacs to edit Clojure for Windows folks

2012-01-25 Thread Sean Corfield
On Wed, Jan 25, 2012 at 4:55 PM, Cedric Greevey cgree...@gmail.com wrote: This isn't, by the way, to say that emacs sucks!. It's more emacs setup sucks! with perhaps a dash of ported software sucks! Well, it's certainly a truism that *nix-based software is harder to setup on Windows than on

Re: Setting up Emacs to edit Clojure for Windows folks

2012-01-25 Thread Sean Corfield
On Wed, Jan 25, 2012 at 9:18 PM, Cedric Greevey cgree...@gmail.com wrote: In other words, ported software setup sucks!? :) That's not the conclusion I would have drawn... ;) Rather ironic, when the tendency, at least historically, has been for Windows (and Mac) to have superior usability when

Re: Setting up Emacs to edit Clojure for Windows folks

2012-01-25 Thread Sean Corfield
On Wed, Jan 25, 2012 at 10:21 PM, Cedric Greevey cgree...@gmail.com wrote: I guess you're talking about a different kind of usability than I am. Like I said: I'm sure we'll just agree to disagree on this one... On the other hand, there's setup for the typical configuration is point, click,

Re: Best IDE

2012-01-19 Thread Sean Corfield
On Thu, Jan 19, 2012 at 9:07 AM, Laurent PETIT laurent.pe...@gmail.com wrote: I've tried paredit in emacs, found it really cool, and ported it to Counterclockwise. I'm now totally sold to it, and I couldn't imagine a working session with Counterclockwise's Strict edition mode (aka paredit for

Re: Best IDE

2012-01-18 Thread Sean Corfield
On Wed, Jan 18, 2012 at 10:42 AM, Dennis Haupt d.haup...@googlemail.com wrote: there is no really good ide (analysis, error highlighting, debugging) Hmm, I have error highlighting and debugging. Not sure what you mean by analysis. -- Sean A Corfield -- (904) 302-SEAN An Architect's View --

Re: Best IDE

2012-01-18 Thread Sean Corfield
On Wed, Jan 18, 2012 at 11:51 AM, Cedric Greevey cgree...@gmail.com wrote: don't see very many S.O.Ses or complaints from CCW, Clooj, or LaClojure, or Enclojure users. Probably because 60-70% of Clojure developers are using Emacs so you'll see more questions from that group. Besides, CCW (and

Re: Best IDE

2012-01-18 Thread Sean Corfield
On Wed, Jan 18, 2012 at 12:27 PM, Dennis Haupt d.haup...@googlemail.com wrote: call hierarchy, find usage, stuff like that. The docs indicate slime / swank can provide some of that but I haven't tried it. what tool do you use? i could neither debug in intellij nor netbeans Emacs. CDT provides

Re: Best IDE

2012-01-18 Thread Sean Corfield
On Wed, Jan 18, 2012 at 12:28 PM, Stan Dyck stan.d...@gmail.com wrote: On 01/18/2012 12:12 PM, Sean Corfield wrote: Probably because 60-70% of Clojure developers are using Emacs so If we're going to start arguing about this (and I've got my popcorn readying in the microwave), can we at least

Re: Best IDE

2012-01-17 Thread Sean Corfield
On Tue, Jan 17, 2012 at 1:38 PM, Josef Frydl josef_fr...@mac.com wrote: Can you please recommend the Best IDE for Clojure? I have Eclipse NetBeans and JetBrain already installed. Two possible answers: * use whichever IDE you're already most familiar with and install the appropriate Clojure

Re: mysql record field formats

2012-01-11 Thread Sean Corfield
On Wed, Jan 11, 2012 at 6:27 AM, jayvandal s...@ida.net wrote: What is the format error? When you post a question, please post the exact error you get, otherwise how are we supposed to know what format error you are getting? As usual, the code you show in the email cannot be the code you are

Re: Enlive reborn in ClojureScript - Enfocus (Dom Manipulation Lib)

2012-01-10 Thread Sean Corfield
On Tue, Jan 10, 2012 at 4:35 AM, ckirkendall ckirkend...@gmail.com wrote: Sean, you sort of help launched this idea.  It was while looking at framework1's use of Enlive, at ClojureConj, that I began thinking about how to use this on the client side. Thanx. For anyone interested, FW/1 is a

Re: Good database for local storage in Clojure

2012-01-10 Thread Sean Corfield
On Tue, Jan 10, 2012 at 7:24 PM, jk john.r.kru...@gmail.com wrote: HSQLDB (http://hsqldb.org/) and Derby (http://db.apache.org/derby/) are both fairly popular databases that are small enough to embed right in your program. Your data is tiny. You might not even need a database at all but in any

Re: Enlive reborn in ClojureScript - Enfocus (Dom Manipulation Lib)

2012-01-09 Thread Sean Corfield
On Sun, Jan 8, 2012 at 10:48 PM, Peter Taoussanis ptaoussa...@gmail.com wrote: I also get the impression that Enlive itself seems to be quite widely misunderstood and consequently underrated. Haven't had a chance to take a serious look at this yet myself (I will!), but just wanted to throw my

Re: mysql and fruit tables

2012-01-09 Thread Sean Corfield
On Sun, Jan 8, 2012 at 8:26 PM, jayvandal s...@ida.net wrote: I have been able to access tables in mysql, but not able to add records. I look at the examples fo fruit  so I created a lein named fruitI made th project file as the mysql project file. I copied the database instructions as in

Re: ANN: core.unify v0.5.2

2012-01-09 Thread Sean Corfield
On Mon, Jan 9, 2012 at 11:00 AM, Cedric Greevey cgree...@gmail.com wrote: On Mon, Jan 9, 2012 at 1:45 PM, Michael Fogus mefo...@gmail.com wrote:  Google also helps too. :-) Not really, not with a single fairly generic word like unification. #1 result: wikipedia, which has a disambiguation page

Re: mysql and fruit tables

2012-01-09 Thread Sean Corfield
On Mon, Jan 9, 2012 at 3:43 PM, s...@ida.net wrote: I run lein repl I enter statement(load /fruit/core) You can just do: (require 'fruit.core) I enter statement (fruit.core/create-fruit) I get error message == user= (fruit.core/insert-rows-fruit) Exception

Re: Need help to translate a simple java program into Clojure program

2012-01-09 Thread Sean Corfield
On Mon, Jan 9, 2012 at 1:56 PM, Linus Ericsson oscarlinuserics...@gmail.com wrote: the last one becomes something like this: (for [option modified-options action modified-actions]    (if (= (:name option) (:name option))       (let [sum (+ (:value action) (:value option))]          [{:name

Re: add records in mysql????

2012-01-07 Thread Sean Corfield
Documentation: http://clojure.github.com/java.jdbc/doc/clojure/java/jdbc/UsingSQL.html On Friday, January 6, 2012, jayvandal s...@ida.net wrote: I tried this code : (defn add-ausers [user] (sql/with-connection db (sql/insert-record :books user [INSERT INTO books(BOOK_ID,

Re: Bug with clojure.contrib.json

2012-01-04 Thread Sean Corfield
On Wed, Jan 4, 2012 at 6:01 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Please check with the more recent clojure.data.json version 0.1.2 and let me know if it displays the same bug: http://search.maven.org/#artifactdetails|org.clojure|data.json|0.1.2|jar user (require

Re: Really loving Clooj but..

2011-12-31 Thread Sean Corfield
On Sat, Dec 31, 2011 at 6:43 AM, jweiss jeffrey.m.we...@gmail.com wrote: I use a modified version of tools.trace (or rather the old version called clojure.contrib.trace, but works with 1.3), you might be interested in some of the additions (sorry not well doc'd at the moment): Those look like

Re: :arglists question

2011-12-29 Thread Sean Corfield
On Thu, Dec 29, 2011 at 11:27 AM, vitalyper vitaly...@yahoo.com wrote: My question is why do we have BOTH :arglists metadata and usual fn args destructuring? As Meikel surmised, it's to improve the docstring (shown by the doc function). We (the CongoMongo team) have not been terribly consistent

Re: clojure.math.combinatorics jar

2011-12-28 Thread Sean Corfield
On Tue, Dec 27, 2011 at 12:47 PM, vitalyper vitaly...@yahoo.com wrote: Do we have this jar in clojars? Clojure Contrib is released to Maven Central. Searched for it under math but could not find it.

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-28 Thread Sean Corfield
On Wed, Dec 28, 2011 at 7:50 AM, jayvandal s...@ida.net wrote: Doesn't this line of your example  run as test? user= (ns jay.test (:require [clojure.contrib.sql :as sql])) It's just declaring a namespace and requiring clojure.contrib.sql (which loads the library). I called it jay.test because

Re: [ANN] swank-clojure 1.3.4 released

2011-12-28 Thread Sean Corfield
On Wed, Dec 28, 2011 at 6:43 PM, Takahiro fat...@googlemail.com wrote: I think ring should specify dependency using version range like below. [clj-stacktrace [0.2.2,)] ;; 0.2.2 = x http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution I didn't know it until

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-27 Thread Sean Corfield
Sorry, I have no idea what you mean... On Tue, Dec 27, 2011 at 9:56 PM, jayvandal s...@ida.net wrote: I have tried the example you provided and it works except I don't see any file printout of the records  when I run not as test but without test. Is test going to show any data? Can I ask for a

Re: Which Clojure libraries with 1.2 dependencies should we upgrade to 1.3?

2011-12-24 Thread Sean Corfield
On Sat, Dec 24, 2011 at 1:29 PM, Robert Levy r.p.l...@gmail.com wrote: In addition to 3rd-party libs there are also more fka-contrib libs that should probably be upgraded (see http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go) and it might be good to discuss those too.  By the

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread Sean Corfield
- From: Sean Corfield seancorfi...@gmail.com The monolithic contrib (1.2.0) has been deprecated. Updated versions of many of the modules are available individually: http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go However, if you have the JAR on your classpath

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-24 Thread Sean Corfield
you and see if that works. On Sat, Dec 24, 2011 at 5:27 PM, s...@ida.net wrote: C:\set classpath CLASSPATH=c:/opt/jars/*;c:/projects/clarity4/src C:\ - Original Message - From: Sean Corfield seancorfi...@gmail.com To: clojure@googlegroups.com Sent: Saturday, December 24, 2011 4:30 PM

Re: (:require [clojure.contrib.sql :as sql]))

2011-12-23 Thread Sean Corfield
The monolithic contrib (1.2.0) has been deprecated. Updated versions of many of the modules are available individually: http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go However, if you have the JAR on your classpath, that namespace should be available. It would help people

Re: How to create an alias of clojure.lang.RT/loadLibrary?

2011-12-20 Thread Sean Corfield
On Tue, Dec 20, 2011 at 10:42 AM, Antonio Recio amdx6...@gmail.com wrote: I would like to use an alias to refer clojure.lang.RT/loadLibrary as lib. You could just call: (System/loadLibrary vtkCommonJava) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World

Re: How to create an alias of clojure.lang.RT/loadLibrary?

2011-12-20 Thread Sean Corfield
On Tue, Dec 20, 2011 at 11:54 AM, Aaron Cohen aa...@assonance.org wrote: You could just call: (System/loadLibrary vtkCommonJava) This doesn't work, the library will be loaded into the wrong classloader. That's the reason for RT.loadLibrary in the first place. The source of RT.loadLibrary: //

Re: How to create an alias of clojure.lang.RT/loadLibrary?

2011-12-20 Thread Sean Corfield
On Tue, Dec 20, 2011 at 1:04 PM, Aaron Cohen aa...@assonance.org wrote: The classloader that loaded RT is the one that is used by the loadLibrary call in RT.loadLibrary. If you call System/loadLibrary from a clojure form, it will be an instance of DynamicClassLoader that loads the library.

Re: Clojure videos no longer downloadable

2011-12-14 Thread Sean Corfield
I don't know if it helps but I subscribe to the Clojure podcast in iTunes and it has downloaded all the episodes: http://itunes.apple.com/us/podcast/clojure/id275488598 I don't know how/if that relates to the blip.tv access point. Sean On Wed, Dec 14, 2011 at 3:30 PM, Phil Hagelberg

Re: No longer able to write a UUID to Postgres with ClojureQL

2011-12-06 Thread Sean Corfield
On Tue, Dec 6, 2011 at 6:12 AM, Herwig Hochleitner hhochleit...@gmail.com wrote: 2011/12/6 Sean Corfield seancorfi...@gmail.com: So the question is probably: why is ClojureQL assuming all generated keys are integers? It shouldn't, and doesn't now: https://github.com/LauJensen/clojureql/commit

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

2011-12-06 Thread Sean Corfield
Did you (require 'clojure.set) ? It's not in the instructions for CDT... On Tue, Dec 6, 2011 at 8:51 AM, Andrew ache...@gmail.com wrote: tried the test drive and when I type v I get this: clojure\set.clj - source not found. -- You received this message because you are subscribed to the Google

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

2011-12-06 Thread Sean Corfield
I just created a new project, replaced project.clj with yours, ran lein deps then lein swank and in Emacs M-x slime-connect. Following your step below I was able to view the source of set.clj (and all the compiler Java files as I walked back up the stack). I know that's not much help but it might

Re: No longer able to write a UUID to Postgres with ClojureQL

2011-12-05 Thread Sean Corfield
If it helps someone debug this for Don (since he and I discussed this off-list): The stack trace from ClojureQL originates in its function to return generated keys and it's calling .getInt on the (generated) key which fails because it's a UUID. So the question is probably: why is ClojureQL

Re: Can't get the debugger cdt run

2011-12-03 Thread Sean Corfield
On Sat, Dec 3, 2011 at 3:29 AM, Chris Perkins chrisperkin...@gmail.com wrote: So I guess you didn't get this error then? I did get that warning on my desktop system but CDT worked just fine. user (require '[swank.cdt :as d]) warning: unabled to add tools.jar to classpath. This may cause CDT

Re: FYI: problem I had with namespace, defrecord, and import, or Hyphen characters in namespaces considered harmful

2011-12-02 Thread Sean Corfield
Given that this seems to bite quite a few people who try to use defrecord / import (even if it only bites them once), perhaps it would be a nice enhancement for import to allow hyphen and automatically translate it to underscore in the package / namespace? It seems very inconsistent given that the

Re: Can't get the debugger cdt run

2011-12-02 Thread Sean Corfield
On Fri, Dec 2, 2011 at 12:37 PM, George Jahad cloj...@blackbirdsystems.net wrote: The easiest way to use cdt is from emacs, as described here: http://georgejahad.com/clojure/swank-cdt.html Could you add a note to clarify that connecting as usual to a swank server is via the Emacs slime-connect

Re: Avout: Distributed State in Clojure

2011-11-30 Thread Sean Corfield
On Wed, Nov 30, 2011 at 2:39 AM, Linus Ericsson oscarlinuserics...@gmail.com wrote: In Clojure in Action (still in MEAP i think) there's a chapter about CiA was officially released at the Conj. Everyone who bought the MEAP should have had a notification by now about downloading the final version

Re: When are you going to upload Conj2011 videos?

2011-11-29 Thread Sean Corfield
On Tue, Nov 29, 2011 at 9:21 PM, Manolis rmanolis1...@hotmail.com wrote: Please upload them !!! Something to keep folks going in the meantime: http://codebassradio.net/2011/11/29/runtime-expectations-episode-13-hot-clojure-conj/ Interviews from the Conj by the Codebass Radio /

Re: Using Clojure on a Mac

2011-11-28 Thread Sean Corfield
On Mon, Nov 28, 2011 at 4:22 AM, Kula kulas...@gmail.com wrote: i recommend the brew tool you can try it on website https://github.com/mxcl/homebrew I see people recommend against brew because the packages are out of date? -- Sean A Corfield -- (904) 302-SEAN An Architect's View --

Re: Using Clojure on a Mac

2011-11-28 Thread Sean Corfield
On Mon, Nov 28, 2011 at 11:16 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: You can run Clojure with:  java -cp clojure.jar clojure.main No, actually you can't. The download does not include clojure.jar. It includes clojure-1.3.0.jar now. Perhaps the Getting Started page on clojure.org

Re: Using Clojure on a Mac

2011-11-27 Thread Sean Corfield
On Sat, Nov 26, 2011 at 10:15 PM, Clojure NewB cappy2...@gmail.com wrote: I've just installed Clojure 1.3 on a MBP, OSX  10.6.8. ... How do I run Clojure? The best way to get Clojure up and running is to use Leiningen so you don't have to deal with classpaths etc.

Re: Error running Clojure 1.3 on OSX 10.6.8

2011-11-27 Thread Sean Corfield
On Sat, Nov 26, 2011 at 10:30 PM, Clojure NewB cappy2...@gmail.com wrote: When I launch Clojure, the following is displayed ... Would someone explain what happened? I've followed the directions here http://clojure.org/getting_started See my other reply: don't worry about the bare Clojure

Re: contrib.duck-streams or contrib.io?

2011-11-25 Thread Sean Corfield
On Thu, Nov 24, 2011 at 9:20 PM, Daniel Glauser danglau...@gmail.com wrote: I starting to do some simple file IO stuff with Clojure and was wondering which namespace was considered the best one to use, contrib.duck-streams on contrib.io? duck-streams was deprecated a while back I believe and

Re: clojure.contrib.repl-utils/show breaks with NoSubMethodError

2011-11-25 Thread Sean Corfield
On Fri, Nov 25, 2011 at 3:00 PM, Curious Fox fra...@gmail.com wrote: I keep running into NoSuchMethodError on any call to clojure.contrib.repl-utils/show in REPL with clojure 1.3.0: The old contrib libraries are, for the most part, deprecated and not guaranteed to work with Clojure 1.3.0. See

Re: clojure.contrib.repl-utils/show breaks with NoSubMethodError

2011-11-25 Thread Sean Corfield
On Fri, Nov 25, 2011 at 5:09 PM, Curious Fox fra...@gmail.com wrote: Do you know by any chance is there any equivalent to clojure.contrib.repl-utils/show in the new set of libraries? I.e. is there a standard and recommended way to inspect all object's properties and methods in REPL? Take a

Lookup on a symbol?

2011-11-23 Thread Sean Corfield
@lloyda2 posted on Twitter: (reduce 'and '(false true)) = true ...Huh? I must admit, it looked odd to me... but I realized (after some REPL experimentation) this seems to be equivalent to ('some-symbol :some-key :some-default) and that attempts (and fails) to somehow lookup :some-key in

Re: Lookup on a symbol?

2011-11-23 Thread Sean Corfield
On Wed, Nov 23, 2011 at 9:48 PM, Alan Malloy a...@malloys.org wrote: Other way round. It behaves like a keyword, looking itself up in a map: ('x '{x 1 y 2}) yields 2. You see the same behavior with (reduce :and [5 10]), yielding 10. Ah... I didn't realize that the lookup could be done without

Re: use namespace locally in a function

2011-11-22 Thread Sean Corfield
On Tue, Nov 22, 2011 at 2:52 PM, Igor TN igor...@gmail.com wrote: Is it possible to require or use a namespace as metadata inside the function definition? Something like Your looking for the (require ..), (use ..) and (refer ..) functions - see http://clojuredocs.org for details and examples.

Re: use namespace locally in a function

2011-11-22 Thread Sean Corfield
On Tue, Nov 22, 2011 at 3:13 PM, Sean Corfield seancorfi...@gmail.com wrote: On Tue, Nov 22, 2011 at 2:52 PM, Igor TN igor...@gmail.com wrote: Is it possible to require or use a namespace as metadata inside the function definition? Something like Your looking for the (require ..), (use

Re: use namespace locally in a function

2011-11-22 Thread Sean Corfield
On Tue, Nov 22, 2011 at 3:18 PM, Kevin Downey redc...@gmail.com wrote: require/use/import etc make global changes to a namespace(compilation environment), best not to hide that inside a function. True. Which is why I went back and re-read the OP's question and realized I'd missed as metadata

Re: noob question about error with tail recursion

2011-11-22 Thread Sean Corfield
On Tue, Nov 22, 2011 at 8:49 PM, coco clasesparticulares...@gmail.com wrote:      ((cons (last col) mem)       (recur (butlast col) mem) ...      ((cons (last col) mem)       (recur col mem) In both of these, you have a function call with (cons (last col) mem) as the function...

Re: noob question about error with tail recursion

2011-11-22 Thread Sean Corfield
On Tue, Nov 22, 2011 at 9:22 PM, coco clasesparticulares...@gmail.com wrote: thanks for the answer, well, I rewrote the function lik this: (defn recursive-reverse [coll]  (loop [col coll mem '()]    (if (empty? col)      mem      (recur (rest col) (cons (first col) mem)) ))) I've a little

Re: Proposal: libraries should have type hints

2011-11-21 Thread Sean Corfield
On Mon, Nov 21, 2011 at 8:12 AM, Tassilo Horn tass...@member.fsf.org wrote: But is that really an issue?  I mean, since you cannot use such duck typing in Java itself (except in terms of reflection), any method defined for more than one class with shared, consistent semantics is declared in

Re: clojure.java.io/reader vs clojure.stacktrace/print-cause-trace call

2011-11-21 Thread Sean Corfield
On Mon, Nov 21, 2011 at 3:17 AM, ru soro...@oogis.ru wrote: (clojure.stacktrace/print-cause-trace e) gives me an error message during compilation: java.lang.RuntimeException: java.lang.ClassNotFoundException: clojure.stacktrace ! You need to require the clojure.stacktrace namespace before

Re: Proposal: libraries should have type hints

2011-11-21 Thread Sean Corfield
On Mon, Nov 21, 2011 at 12:50 PM, Alan Malloy a...@malloys.org wrote: This is way, way faster than using reflection. And all you need in order to remove the duplication is a macro that does the hinting for you: Well, if Clojure/core decide contrib libraries should indeed use conditional code

Re: Where can I inqure about bugs?

2011-11-20 Thread Sean Corfield
On Sat, Nov 19, 2011 at 7:28 PM, Randy Pensinger rspensin...@gmail.com wrote: user= (def stringComparator  (comparator (fn [a b]                (do                  (println (str comparing ' a ' to ' b '))                  (.compareTo a b) #'user/stringComparator The docs indicate

Re: ANN: A new Clojure brush for syntax highlighter

2011-11-19 Thread Sean Corfield
On Sat, Nov 19, 2011 at 1:46 PM, Andrew Brehaut abreh...@gmail.com wrote: You can find the project at https://github.com/brehaut/inc-clojure-brush. It's running on my blog, frinstance http://brehaut.net/blog/2011/ring_introduction and http://brehaut.net/blog/2011/l_systems Very nice! I see

Re: Change var in other namespace

2011-11-18 Thread Sean Corfield
On Fri, Nov 18, 2011 at 6:35 AM, vitalyper vitaly...@yahoo.com wrote: IMO, clojure.tools.logging could of made this easier: log implementation from classpath by default with override by client when needed. I agree but when I brought the issue up, there didn't seem to be much support for making

Re: clj-time and clojure 1.3

2011-11-17 Thread Sean Corfield
On Wed, Nov 16, 2011 at 5:39 PM, Sean Corfield seancorfi...@gmail.com wrote: I have taken over clj-time from Mark McGranahan: https://github.com/seancorfield/clj-time (although github seems to be omitting the navigation bar on that repo - I'll open a support ticket). github fixed

Re: Change var in other namespace

2011-11-17 Thread Sean Corfield
Note: if you just want something that will execute at startup and force _all_ logging to use log4j, instead of wrapping code in (binding ..) then you probably want something like this: (ns your.namespace (:require [clojure.tools.logging :as log]) (:require [clojure.tools.logging.impl :as

Re: swank, clojure.repl and my fading sanity

2011-11-16 Thread Sean Corfield
On Wed, Nov 16, 2011 at 3:57 PM, Matthew Boston matthew.bos...@gmail.com wrote: Hey, that looks eerily similar to my gist! :) https://twitter.com/#!/seancorfield/status/130136793210298368 Yup, again, thank you! -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/

Re: clj-time and clojure 1.3

2011-11-16 Thread Sean Corfield
On Wed, Nov 16, 2011 at 6:47 AM, Brad b...@beaconhill.com wrote: Just curious what happened with getwoven and clj-time. It seems that Sean has updated clj-time over on Clojars and this version works fine under 1.3. I have taken over clj-time from Mark McGranahan:

Re: where is defvar?

2011-11-14 Thread Sean Corfield
I've updated Where Did Clojure Contrib Go to indicate this. Happy to take other suggestions for updates! On Mon, Nov 14, 2011 at 6:36 PM, Brad b...@beaconhill.com wrote: Thanks. I couldn't find this mentioned anywhere so I added a comment on clojuredocs

Re: swank, clojure.repl and my fading sanity

2011-11-14 Thread Sean Corfield
Add the following to your ~/.lein/user.clj: ;; ~/.lein/user.clj (if (= (.compareTo (clojure-version) 1.3.0) 0) (do (use 'clojure.repl) (use 'clojure.java.javadoc))) On Mon, Nov 14, 2011 at 10:57 PM, Yaron ygol...@gmail.com wrote: So when I start a repl from the command line things like

Re: Debugging lazy seqs with log4j

2011-11-11 Thread Sean Corfield
Have you tried clojure.tools.logging to see whether you get the same behavior? On Fri, Nov 11, 2011 at 8:15 AM, finbeu info_pe...@t-online.de wrote: Hello, I'm using log4j and have some a simple wrappers in clojure that work well so far. Actually, I do (def *logger* (Logger/getRootLogger))

Re: Debugging lazy seqs with log4j

2011-11-11 Thread Sean Corfield
On Fri, Nov 11, 2011 at 8:53 AM, finbeu info_pe...@t-online.de wrote: no, not yet. I stick with my own simple logging ns which works nice so far. Just have to fix this ...) I just wondered whether using a well-maintained standard library might be an easier path than rolling your own... (but I

Re: Debugging lazy seqs with log4j

2011-11-11 Thread Sean Corfield
On Fri, Nov 11, 2011 at 9:25 AM, finbeu info_pe...@t-online.de wrote: yes, when starting my project, I was looking at the logging library which resides (resided) in clojure.contrib and I didn't like it at that point in time. I think because it was trying to do too many things at once. If my use

Re: Another newbie question

2011-11-08 Thread Sean Corfield
On Tue, Nov 8, 2011 at 3:14 AM, pron ron.press...@gmail.com wrote: Yeah, sure, but docstrings aren't linkable. It's interesting that Java, with all its faults, has an incredible documentation system. Have you looked at autodoc? It's responsible for generating stuff like this:

Re: Another newbie question

2011-11-08 Thread Sean Corfield
On Tue, Nov 8, 2011 at 4:09 PM, pron ron.press...@gmail.com wrote: Yes, but it lacks cross-referencing and linking from within the docstrings themselves (like Javadoc's @See). You can use :see-also metadata to cause autodoc to generate cross-references with links... I think it would be pretty

Re: ANN framework.one (MVC web application framework)

2011-11-08 Thread Sean Corfield
On Tue, Nov 8, 2011 at 8:11 PM, jaime xiejianm...@gmail.com wrote: Is there any docs describe the principles/concepts (not only for MVC) of this framework?? Yes, the CFML version's wiki should cover that: The original FW/1 documentation is here:https://github.com/seancorfield/fw1/wiki If

Re: problems of a newbie

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 4:20 AM, Dennis Haupt d.haup...@googlemail.com wrote: which is a good thing. type safety is good. Is it? -- 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.

Re: Another newbie question

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 2:19 AM, pron ron.press...@gmail.com wrote: What other team practices do you use? E.g. what do you use for effective documentation? docstrings? I understand my questions could be directed at most dynamic languages, and I'm absolutely not entering the static vs. dynamic

Re: Another newbie question

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 10:23 AM, Dennis Haupt d.haup...@googlemail.com wrote: actually, we avoid dynamically typed languages like the plague. Why? Genuinely curious... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. --

Re: ANN: clojure.java.jdbc 0.0.7

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 3:04 PM, keeds akee...@gmail.com wrote: Some more (blind) delving shows that the only difference between the versions is that clojure1.2 and contrib pass the 14 value as a java.lang.Integer whereas clojure1.3 and java.jdbc pass the value 14 as a java.lang.Long and this

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sunday, November 6, 2011, Dennis Haupt d.haup...@googlemail.com wrote: this is a double edged sword. you *do* get it right *if* you think it through, but reality is often more complex than you assume. if you suddenly see that you forgot to handle special case x, you are punished harder than

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 11:12 AM, Dennis Haupt d.haup...@googlemail.com wrote: let me guess: you had some classes that were used more than they should have been because they were the best match and introducing a better one would have taken more time - and since they could do so much, they were

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 12:15 PM, Dennis Haupt d.haup...@googlemail.com wrote: if by compatible you mean has a specific set of functions and fields, then scala can do that without sacrificing static type safety: Yes, I started working with Scala in 2009 and it's certainly much better than Java

Re: Another newbie question

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 3:56 AM, pron ron.press...@gmail.com wrote: I realize there are always tradeoffs, and perhaps the pros outweigh the cons, but I would like to know how you deal with such problems, that invariably arise in large-team development. Why do you think this sort of problem is

Re: cljr install makes .cjr directory

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 8:51 PM, jayvandal s...@ida.net wrote: Whay does cljr-installer.jar make directories  with .(period) in front of the dir name as .cljr and .lein and m2. .(program-name) is fairly standard for programs to store configuration. .m2 is the local repository cache for Maven 2.

Re: Clojure as scripting language in a Java Application

2011-11-03 Thread Sean Corfield
As Chas says, RT.var() is probably your easier point of entry here. I use Clojure as a scripting language within a JVM-based application (not Java, but it uses Java interop to access Clojure) and the patterns I use are: * clojure.lang.RT.var( the.namespace, some-name ) - get a reference to

Re: 2011 ClojureCLR survey analysis

2011-11-03 Thread Sean Corfield
On Thu, Nov 3, 2011 at 10:35 AM, dmiller dmiller2...@gmail.com wrote: An analysis of the 2011 ClojureCLR survey and a plan of action is now available here: http://clojureclr.blogspot.com/2011/11/survey-says-call-to-action.html Nice set of analyses David - great work! On this one:

Re: Clojure as scripting language in a Java Application

2011-11-03 Thread Sean Corfield
On Thu, Nov 3, 2011 at 4:40 PM, Gary Trakhman gary.trakh...@gmail.com wrote: You can even consider a live scripting facility (while the game's running) with the repl and some api to access your game's state.  All of those functions are available. I'm a bit fuzzy on how to enable an application

ANN clojure.java.jdbc 0.1.1

2011-11-02 Thread Sean Corfield
Should hit Maven Central soon. Changes in 0.1.1: * Fix JDBC-21 by adding support for db-spec as URI (Phil Hagelberg). * Fix JDBC-22 by deducing driver class name from subprotocol (Phil Hagelberg). * Add Postgres dependency so tests can be automated (Phil Hagelberg). * Add ability to specify test

Re: Any reason interleave needs 2 or more collections?

2011-11-02 Thread Sean Corfield
I seem to recall seeing a ticket opened in JIRA for this recently with a patch so maybe it'll get incorporated. On Wed, Nov 2, 2011 at 6:28 PM, Alex Baranosky alexander.barano...@gmail.com wrote: Something interesting I've noticed: I've recently realized I could simplify some application code

Re: Loop performance issue with variable

2011-11-01 Thread Sean Corfield
On Tue, Nov 1, 2011 at 4:29 AM, redraiment redraim...@gmail.com wrote: user= (def n 1) #'user/n user= (time (loop [cnt 1 sum 0] (if (zero? cnt) sum (recur (dec cnt) (+ sum cnt) Elapsed time: 605.564858 msecs 50005000 user= (time (loop [cnt n sum 0] (if (zero?

Re: update to clojure.tools.cli

2011-11-01 Thread Sean Corfield
It's on Maven Central now... On Tue, Nov 1, 2011 at 11:59 AM, Aaron Bedra aaron.be...@gmail.com wrote: It's strange that it hasn't made it to central yet. ... On Tue, Nov 1, 2011 at 1:59 PM, gaz jones gareth.e.jo...@gmail.com wrote: The release has been cut, but the last time I checked it

Re: update to clojure.tools.cli

2011-11-01 Thread Sean Corfield
On Tue, Nov 1, 2011 at 10:59 AM, gaz jones gareth.e.jo...@gmail.com wrote: The update is therefore going to break the existing API which you obviously need to be aware of if you are currently using 0.1.0 and intend to upgrade to 0.2.0. ... Apologies for anyone upset by the timing /

Re: Please try the alphas and betas!

2011-10-31 Thread Sean Corfield
On Mon, Oct 31, 2011 at 8:06 AM, Timothy Baldridge tbaldri...@gmail.com wrote: I'd like to second what Bill said...I don't really have the time to setup a clojure build process to test out the 1.4 Alphas/Betas, but if there was a way for me to get to it via lein...I would just target 1.4 for

Unfuddle API?

2011-10-26 Thread Sean Corfield
Has anyone done any experimentation with the Unfuddle API using Clojure? I'm considering building something because a) World Singles uses Unfuddle and b) World Singles uses Clojure and c) it might possibly be useful (I haven't thought of _how_ yet, it just seems like an interesting exercise...

Re: Clojure Conj extracurricular activities spreadsheet

2011-10-25 Thread Sean Corfield
On Tue, Oct 25, 2011 at 8:26 PM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Please add me to Clojure and the web, Me too please. I already added myself to Clojure Tooling before the document got locked down :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View --

Re: Rich Hickey: Simple Made Easy from Strange Loop 2011

2011-10-24 Thread Sean Corfield
On Fri, Oct 21, 2011 at 10:05 AM, Michael Forster m...@sharedlogic.ca wrote: Yes:  Was that a nil value for the key :foo in my map or did :foo not exist? If you need to distinguish between :foo is missing and :foo's value indicates non-existence, what about: (get my-map :foo ::missing) --

<    9   10   11   12   13   14   15   16   17   18   >