ANN: clj-sql 0.0.4

2010-10-24 Thread Saul Hazledine
Hello, clj-sql was written by developers who use clojure.contrib.sql but needed to add a few features to support their projects. Most of the functionality and API is inherited from clojure.contrib.sql but the following additions have been made: * Functions to describe tables and schema

Re: Detecting a byte array -- byte[]

2010-10-24 Thread Meikel Brandmeyer
Hi, user= (defn byte-array? [o] (instance? (Class/forName [B) o)) #'user/byte-array? user= (byte-array? abc) false user= (byte-array? (byte-array [(byte 1) (byte 2)])) true Sincerely Meikel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: Detecting a byte array -- byte[]

2010-10-24 Thread Meikel Brandmeyer
Hi, On 24 Okt., 05:53, Shantanu Kumar kumar.shant...@gmail.com wrote: I want to be able to detect arrays of other types too - e.g. char[], Integer[] etc. Other types can be done as [C (char), [Ljava.lang.String;, etc. You can get the types via type or class in the repl. Hope this helps.

Re: Detecting a byte array -- byte[]

2010-10-24 Thread Shantanu Kumar
Thanks Dave and Meikel, This is really useful. Maybe they should have been part of clojure.core; by the way the Class/forName thing completely took me by surprise. :-) Regards, Shantanu On Oct 24, 4:07 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 24 Okt., 05:53, Shantanu Kumar

Re: ANN: clj-sql 0.0.4

2010-10-24 Thread Shantanu Kumar
+1 I notice the project.clj has Clojure and Contrib listed under :dependencies. IMHO listing them in :dev-dependencies may free the user to use any Clojure/contrib version they want. Regards, Shantanu On Oct 24, 3:13 pm, Saul Hazledine shaz...@gmail.com wrote: Hello,   clj-sql was written by

Re: Detecting a byte array -- byte[]

2010-10-24 Thread Meikel Brandmeyer
Hi, On 24 Okt., 14:27, Shantanu Kumar kumar.shant...@gmail.com wrote: by the way the Class/forName thing completely took me by surprise. :-) Also useful for protocols (extend-type (Class/forName ...)) and multimethods (defmethod foo (Class/forName ...)). Sincerely Meikel -- You received

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-24 Thread Meikel Brandmeyer
Hi, On 24 Okt., 04:00, Stefan Rohlfing stefan.rohlf...@gmail.com wrote: This is what I did: - src/active-record/tns.clj (ns active-record.tns) (require '[active-record.user :as user]) (require '[active-record.charge :as

post your feedback on the conj

2010-10-24 Thread Stuart Halloway
If you were at Clojure-conj, you can post your feedback on talks through SpeakerRate at http://speakerrate.com/events/613-clojure-conj. Please do, so we can make (second conj) even better! It was terrific meeting so many of you for the first time. Thanks again to all the attendees, speakers,

Re: post your feedback on the conj

2010-10-24 Thread Saul Hazledine
On Oct 24, 6:03 pm, Stuart Halloway stuart.hallo...@gmail.com wrote: It was terrific meeting so many of you for the first time. Thanks again to all the attendees, speakers, sponsors, and volunteers for making the conj great. Is there any video of the conference available for those of us on

Re: Test-driven development in Clojure

2010-10-24 Thread Felix H. Dahlke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stuart, I just read through this thread again and noticed that I didn't notice you mentioning that I can stub functions within tests. I had a look at the clojure.test documentation, but I didn't find an example of that. How would that apply to my

Re: Test-driven development in Clojure

2010-10-24 Thread Stuart Sierra
In clojure.test, you can use the Clojure `binding` macro to provide local replacements for global functions. In Lazytest, you can use the context objects provided by lazytest.context.stub. -S On Oct 24, 3:03 pm, Felix H. Dahlke f...@ubercode.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash:

Re: Setting Clojure “constants” at runtime (cros sposted to Stackoverflow)

2010-10-24 Thread Stuart Sierra
Here's one way: (def version (delay (... read the JAR ...)) (defn get-version [] (force version)) -S On Oct 22, 11:56 am, Ralph grkunt...@gmail.com wrote: I have a Clojure program that I build as a JAR file using Maven. Embedded in the JAR Manifest is a build-version number,

Re: Improving Contrib

2010-10-24 Thread Stuart Sierra
http://clojure.org/contributing On Oct 22, 6:30 pm, Ulises ulises.cerv...@gmail.com wrote: I know this may be a silly question but: how does one get started helping with contrib/etc.? I'm only starting to learn clojure but I've found the community so helpful and thriving that I cannot help but

Re: ANN: Emacs auto-complete plugin for slime users

2010-10-24 Thread looselytyped
This is awesome! Thank you. After installing auto-complete and following the instructions on your github page, works like a charm. Brilliant work. Regards, Raju On Oct 16, 12:27 am, Jarl Haggerty fictivela...@gmail.com wrote: Should autocomplete work in the swank repl?  It works perfectly in

Re: post your feedback on the conj

2010-10-24 Thread looselytyped
A big shout-out to Relevance, sponsors, speakers and attendees (with my own heartfelt gratitude towards Alan et al.) - Thank you! A great conference. Superb talks, and smooth execution, down right to making sure everyone could get to and from the social outings and to-from the airports. It was

Re: Conj arrivals and Thursday night...

2010-10-24 Thread Andrew Gwozdziewycz
Yeah, this didn't actually happen. There were too many people scattered around getting dinner, eating at the bar, talking at the bar, etc, which worked out fine too. On Thu, Oct 21, 2010 at 12:51 PM, Sean Allen s...@monkeysnatchbanana.com wrote: What hackathon? On Thu, Oct 21, 2010 at 12:00

Re: post your feedback on the conj

2010-10-24 Thread Andrew Gwozdziewycz
All the talks were being taped. It sounded like if the videos came out ok they'd be online at some point in the future. On Sun, Oct 24, 2010 at 2:40 PM, Saul Hazledine shaz...@gmail.com wrote: On Oct 24, 6:03 pm, Stuart Halloway stuart.hallo...@gmail.com wrote: It was terrific meeting so many

More Conduit documentation

2010-10-24 Thread jim
I just posted a tutorial that describes some of the internals of the Conduit library and also gives some direction for writing transports for Conduit. http://intensivesystems.net/tutorials/conduit_internals.html Jim -- You received this message because you are subscribed to the Google Groups

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-24 Thread Stefan Rohlfing
Thanks for pointing this out. Adding the namespace declaration was exactly the reason why loading the file did not work in the first place. Now everything is working like a charm, and thanks to you I learnt yet another piece of the Clojure puzzle! Best regards, Stefan On Oct 24, 10:54 pm,

Re: Type Metadata

2010-10-24 Thread Chris Dow
On Oct 23, 9:44 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: How about using protocols to fetch metadata? SQLRat uses this approach:http://bitbucket.org/kumarshantanu/sqlrat/wiki/tutorial/EntityDefinition Adding extra fields to mapped records is looking like the best solution to what

Re: Improving Contrib

2010-10-24 Thread ataggart
I asked Stu on the booze bus about the purpose of contrib apart from being a stage for libraries which might get included into core. He noted that having a set of libraries for which provenance is assured is a strong selling point for getting clojure into certain types of organizations, ones