leiningen plugins and scripting

2009-12-30 Thread Saul
e any views on what the best approach would be? Thanks in advance Saul -- 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 moderated - please be pa

Re: leiningen javac plugin

2009-12-30 Thread Saul
leiningen plugins to depend on each other or has this behaviour been omitted by design? Saul -- 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

Re: leiningen javac plugin

2009-12-30 Thread Saul
On Dec 30, 8:46 pm, Rob Wolfe wrote: > Saul writes: > > Many thanks. This works for me and I find it useful. However, in a > > perfect world: > > > lein compile > > > would also compile my java source code or call compile-java before > > performing a compi

Re: Leiningen uberjar: excluding dev-dependencies; new minus-clojure task

2010-01-07 Thread Saul
other leiningen users solved this? > Have you looked at http://clojars.org ? It seems to have solved the "libraries available in maven repos" problem. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

ANN: leiningen war plugin

2010-01-21 Thread Saul Hazledine
/leiningen-war "0.0.1"]] It meets my needs so far but I'm happy to changes -- however radical they are. Saul -- 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 p

Re: ANN: Fleet — templating system

2010-02-23 Thread Saul Hazledine
s a more conventional way of templating HTML (which still has some nice clojure features) and may suit such groups of people. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co

Re: Clojure syntax highlight for web sites

2010-03-01 Thread Saul Hazledine
o avail. I don't know if it matches your needs but http://gist.github.com/ supports clojure. Saul -- 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 m

Re: Software Training Center and Startup Incubator

2010-03-11 Thread Saul Hazledine
to standardise on Clojure. This will change with time of course, so it may be that starting a Clojure specific incubator at this early stage is a wise move in the long term. However, it may be advisable not to over-promise in the early stages. Saul -- You received this message because you are subscr

Re: Choosing a Clojure build tool

2010-03-26 Thread Saul Hazledine
ll work. I also have a small bit of code using ant/ivy and that would build fine too in a leingingen only world. Saul -- 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

clojure.contrib.sql insert id

2010-04-20 Thread Saul Hazledine
r as I can see, the statement handle is unavailable to the users of clojure.contrib.sql. Has anyone else had this problem? Saul Hazledine -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: clojure.contrib.sql insert id

2010-04-21 Thread Saul Hazledine
On Apr 20, 8:51 pm, Remco van 't Veer wrote: > I am doing the following after an insert for a Derby database: > >   (sql/with-query-results res >     ["VALUES IDENTITY_VAL_LOCAL()"] >     (first (vals (first res > > For MySQL it would be something like: > >   (sql/with-query-results res >    

Re: Clojure web app + js libraries - any suggestions?

2010-05-16 Thread Saul Hazledine
en a full web framework may be more appropriate. Saul -- 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 moderated - please be patient with your

Re: scala

2010-06-24 Thread Saul Hazledine
happier if Scala goes mainstream and Clojure doesn't. The really cool thing though, is that with the JVM, Clojure and Scala can interoperate. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Newbie questions about leiningen

2010-07-03 Thread Saul Hazledine
'd recommend the sample project file as a good place to look for various settings: http://github.com/technomancy/leiningen/blob/master/sample.project.clj Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

ANN: cache dot clj - caching impure functions

2010-07-03 Thread Saul Hazledine
cache-dot-clj Clojure library that caches the results of impure functions. It is almost entirely based on the memoize functions described here: http://kotka.de/blog/2010/03/memoize_done_right.html I have found this useful for caching the results of database calls and for holding HTML snippets.

Re: ANN: cache dot clj - caching impure functions

2010-07-03 Thread Saul Hazledine
is > a good strategy for object for which identity is equality.) > If you have the code in a working state I'd be happy try to add the google/JDK methods as algorithms to the library. Alternatively feel free to fork the code and add them yourself and I'll incorporate your changes. Saul -

Re: Idiomatic Clojure namespace names

2010-07-07 Thread Saul Hazledine
On Jul 7, 5:24 pm, Laurent PETIT wrote: > if you intend to share the library, then use the classical prefix notation: > >   * either of the form net.reeves.james.foo  ( or any reversed tld you "own" ) >   * either of the form com.yourcorp.foo > com.read.to.easy.that.not.its.but -- You received

Re: Idiomatic Clojure namespace names

2010-07-09 Thread Saul Hazledine
Also, to add my opinion on the original question that started this thread, I prefer 'foo.api' to 'foo.core' as it gives a clearer idea of which namespace should be pulled in by the user. Saul -- You received this message because you are subscribed to the Google Groups &qu

Re: Idiomatic Clojure namespace names

2010-07-09 Thread Saul Hazledine
ester.compojure clj.acme-corp.dynamite This separates the clojure namespace from the java one, doesn't tie to a TLD and reduces the chances of collisions at the library level. Also, somebody mentioned dropping api/core from the core namespace in a library. Personally, I'd be happy with

Re: Looking to fit Clojure into my architecture and am in need of your informed advice!

2010-08-01 Thread Saul Hazledine
rite it. > 7. Any other advice or thoughts you have about this? > I wouldn't worry too much about scaling. Making an application scalable is a lot of work (unless you're using something like Google appengine). Computers are much faster than they used to be. A single machine running J

Re: leiningen-war

2010-08-09 Thread Saul Hazledine
ption (either in project.clj or on the command line) 3. write an alternative plugin (e.g lein-webxml) that uses the hooks feature of leiningen to produce a web.xml when lein war is called. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: On retrieving auto-generated IDs after INSERT

2010-08-12 Thread Saul Hazledine
s that I'll contact the author about) I'm keen to include them. Saul -- 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 moderated - pl

ANN: form-dot-clj - HTML form validation and display

2010-08-13 Thread Saul Hazledine
Form-dot-clj is library for handling the display and validation of forms. It Supports HTML5 forms, javascript validation and plain HTML. It should work with most methods of generating HTML. http://github.com/alienscience/form-dot-clj In the last 10 minutes I have also found a library called "pour

Re: Transactions in c.c.sql functions

2010-08-14 Thread Saul Hazledine
rc/main/clojure/clojure/contrib/sql/internal.clj#L144 I don't know if this is an ideal thing to do but my own modest, not mission critical, use of it has not run into any problems. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: A useful function?

2010-08-16 Thread Saul Hazledine
On Aug 16, 8:31 am, Alan wrote: > (defn apply-keys [f ks] >   (zipmap ks (map f ks))) > > Does this seem useful to anyone else? It seems very similar to memoize in that you're mapping function arguments to their results. Saul -- You received this message because you are

Re: Trouble upgrading to clojure 1.2

2010-08-16 Thread Saul Hazledine
  :dev-dependencies [[swank-clojure "1.2.0"]]) You're doing everything right - its just Clojure 1.2 hasn't been released yet. I'm currently using RC3 within Leiningen without any problems: [org.clojure/clojure "1.2.0-RC3"] [org.clojure/clojure-contrib "1.2.0

Clojure Web Programming group?

2010-08-17 Thread Saul Hazledine
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? Saul -- You received this message because you are subscribed to

Re: Installing Clojure on OS X

2010-08-17 Thread Saul Hazledine
elp and time. I used a Mac in the past and I understand your frustration with MacPorts. I've not used Clojure on OSX but if you're bored you could try Homebrew which is an alternative to MacPorts. http://mxcl.github.com/homebrew/ Then: brew install clojure Hopefully you'll get a mo

Re: Installing Clojure on OS X

2010-08-17 Thread Saul Hazledine
ress the broken dependency problem by reducing the number of dependencies (so problems propogate less) and to make fixing dependencies more democratic by using git. But my opinion is pretty worthless because I don't use a Mac and I've never used Homebrew :-) Saul -- You received th

Re: Clojure Web Programming group?

2010-08-17 Thread Saul Hazledine
On Aug 17, 8:21 pm, Brian Carper wrote: > 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 o

Re: FSM

2010-08-19 Thread Saul Hazledine
here is any Java (or > Clojure?) FSM library that works well with Clojure. > > Thanks. I've not used it state machines in Clojure but I just found this thread while searching for something else: http://groups.google.com/group/clojure/browse_thread/thread/ec529d99e1c37de1/19e750580d2

Re: help with native-jar files..

2010-08-25 Thread Saul Hazledine
ay and the error message changed to a FileNotFoundException after the package was used once. Sorry I can't be more helpful. Saul -- 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 post

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
et all the functionality you listed only with nice twists and features. The downside is the learning curve. A good tutorial can be found at: http://github.com/swannodette/enlive-tutorial Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
is an all Clojure solution that seems to follow the approach you are most comfortable with: http://github.com/Flamefork/fleet Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.c

Re: A secretly Clojure web framework?

2010-09-04 Thread Saul Hazledine
On Sep 4, 5:45 am, HB wrote: > Hey, > Since Relevance is heavily investing in Clojure, do you think they are > working on a Clojure web framework? > Personally, I wish. Its also worth looking at Conjure if you're interested in a web framework: http://github.com/macourtney/Conju

Re: A secretly Clojure web framework?

2010-09-04 Thread Saul Hazledine
ngo style user management or admin screens can be done by libraries. Frameworks are also very good for rapid prototyping. You usually pay for such power with inflexibility but Rails and Django seem to hit a sweet spot where you can develop a website fast and still run a business on them. Saul -- You

Re: Simple things should be simple

2010-09-09 Thread Saul Hazledine
he application. This hasn't been > done yet because I don't think many people would find it useful. > This would be really cool. Especially if, after playing around at the repl, you could call something like: (create-war "example.war") and it would produce a deployable

Re: disk-backed memoize?

2010-09-18 Thread Saul Hazledine
I guess you're trying to memoize something much slower. Would JDBC suit your needs as a storage medium? You could use H2, HSQLDB or Derby by adding a dependency in your build tool of choice. If this is of interest I'll add it. Also, if you come up with a solution sooner, I'd be ea

Re: appengine-magic: using Clojure with Google App Engine

2010-09-20 Thread Saul Hazledine
erplate necessary to > deploy an App Engine application. It also enables interactive > development through the REPL. > > http://github.com/gcv/appengine-magic > It took me days to get a working app-engine development environment setup. This is very welcome indeed. Saul -- You re

Re: appengine-magic: using Clojure with Google App Engine

2010-09-21 Thread Saul Hazledine
install: http://groups.google.com/group/leiningen/browse_thread/thread/d889549e445e3711 This would save having to make a lein project, edit project.clj and delete a file. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: disk-backed memoize?

2010-10-01 Thread Saul Hazledine
orcache-dot-cljmight be a good solution. > I've released cache-dot-clj version 0.0.3 and have added an ehcache based plugin. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: relational data aggregation language

2010-10-02 Thread Saul Hazledine
e system such as H2, HSQLDB or Apache Derby and run an in memory database. Incanter (a R like platform for clojure) supports select and group-by on its datasets. With Incanter you can also plot pretty graphs etc. Saul -- You received this message because you are subscribed to the Google Groups &qu

Re: Cross-referencing objects?

2010-10-03 Thread Saul Hazledine
actually meant (objects belong to > sets) with implementation (integers/keywords mapping to groups of > objects, and objects mapping to integers). > 3. Only the mapping, object => set, is needed and, as you say, this is an implementation detail that should be hidden. So memoize s

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
On Mar 15, 11:14 am, Paul Dorman wrote: > Hi Saul, > > I'm happy to wait until Friday, but check your request queue before > you make the change yourself as I may submit one. I've made the change > on my own fork, but I've only changed the function definition from

Re: clj-ldap - Clojure LDAP client

2011-03-20 Thread Saul Hazledine
On Mar 16, 9:30 am, Ray Miller wrote: > On 15 March 2011 08:46, Saul Hazledine wrote: > > > On Mar 15, 1:30 am, Paul Dorman wrote: > > One thought though is that it may be quicker simply do a lookup on the > > directory server, obtain the password and then do a

Re: Announcement: flutter - hiccup-based form field generation

2011-03-28 Thread Saul Hazledine
ntangled, in most web applications. I feel you would get more early feedback on your approach if you documented the API. Personally, I struggle to get an overview of a library from the unittests. Good luck. Saul -- You received this message because you are subscribed to the Google Groups "Cloj

Re: using clojure for (java) code generation; advice sought

2011-03-29 Thread Saul Hazledine
g a separate text templating system such as: clojure.contrib.strint [1] Velocity [2] StringTemplate [3] That way you write the Java as Java but replace occasional things with markup e.g $varname$ and then pump data from Clojure into the template. Incidently, I've also used a similar

Re: using clojure for (java) code generation; advice sought

2011-03-29 Thread Saul Hazledine
hem. I haven't done this within Clojure but below is small example of a C++ Cheetah template: https://gist.github.com/892415 Although it looks a bit of a mess the general structure of the C++ is clear and the templating code is not too intrusive. Saul -- You received this message be

Re: using clojure for (java) code generation; advice sought

2011-03-29 Thread Saul Hazledine
; (formal-params cfg) ") {\n" >   (statement-list >    (for [f fields] >      ["        this." f " = " f ])) >   "    }\n"]) > Then becomes: (eval-string " public Example(#(format-params cfg)#) { #(foreach [f fields]# this.#f#

Re: clj-ldap

2011-11-04 Thread Saul Hazledine
Hello George, You can use the bind? function in this fork of clj-ldap: https://github.com/pauldorman/clj-ldap Saul On Nov 4, 2:03 am, gtasso wrote: > I am very new in Clojure. I'd like someone to how an example code on > how we can authenticate users on a windows server usi

Clojars SSH key change?

2010-10-12 Thread Saul Hazledine
ought it best to check since I couldn't see a notice of this anywhere. Saul -- 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 moderated - pl

Re: Creating a new library

2010-10-12 Thread Saul Hazledine
ckage won't be picked up by mistake by people who want the official package. Saul -- 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 moderated - p

Re: Creating a new library

2010-10-13 Thread Saul Hazledine
On Oct 13, 1:21 pm, lprefonta...@softaddicts.ca wrote: > Good to know... is this written somewhere ? I looked at Clojars yesterday > but did not find anything... > Its mentioned near the end of the tutorial: http://github.com/ato/clojars-web/wiki/tutorial Saul -- You received thi

Re: sql utilities

2010-10-14 Thread Saul Hazledine
Otherwise, as Shanatu says, a github project of your own would be welcome and is sure to be used by others. Saul -- 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 pos

Re: sql and cursors

2010-10-17 Thread Saul Hazledine
/d8334759f10f3f45 https://www.assembla.com/spaces/clojure-contrib/tickets/88-clojure-contrib-sql-runs-out-of-memory-on-very-large-datasets I have no idea when this will get released though. Saul -- You received this message because you are subscribed to the Google Groups "Clojure"

ANN: clj-sql 0.0.4

2010-10-24 Thread Saul Hazledine
e.com/group/clj-sql Feature requests, changes or new code are very welcome. Saul -- 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 moderated - pl

Re: post your feedback on the conj

2010-10-24 Thread Saul Hazledine
side of the Atlantic? I wanted to go but costs and time prevented me. Many thanks Saul -- 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

Supporting 1.2 and 1.3

2010-11-04 Thread Saul Hazledine
y on contrib changes: [org.clojure.contrib/standalone "1.3.0-alpha2"] Has anyone hit this problem? What is the best way of dealing with it? Thanks in advance for any help. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: "Parameterized" SQL queries?

2010-11-10 Thread Saul Hazledine
b.sql creates them behind the scenes when you do things such as insert records. Saul -- 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 moderated - pl

Re: Simple Neural Network DSL -- request for feedback

2010-11-10 Thread Saul Hazledine
problem. The map format doesn't fit this but, because you use protocols in the implementation, a list format for the DSL would allow genetic programming. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.100.4432 Obviously though, their DSL is nowhere as clear and clean as yours. Saul

Re: Can't get started with maven

2010-11-11 Thread Saul Hazledine
.0 http://maven.apache.org/xsd/settings-1.0.0.xsd";> com.theoryinpractise Its probably worth a try before someone skilled in the art of Maven comes up with a better suggestion. Saul -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Clojure on the AppEngine Talk

2010-11-19 Thread Saul Hazledine
. > > Enjoy, > -- > Miki I'm going to restart app-engine development soon and this will be really useful. Many thanks. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

memcache, redis connection pooling

2010-11-21 Thread Saul Hazledine
ybody know of a good TCP/IP connection pool library that works with Clojure? Thanks in advance for any help. Saul -- 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 f

Re: ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-25 Thread Saul Hazledine
g a H2 driver to TEST a library that I may want to use. If I can play with the library and I like it, its then no problem at all to write some small workarounds for the non-standard behaviour of the database I'm using. Ideally though, it would be nice if workarounds for various databases were

Re: memcache, redis connection pooling

2010-11-25 Thread Saul Hazledine
on scales without changing the Clojure API. I take your point and will go with redis support first though. Saul -- 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 fr

Re: Tailing a file in Clojure

2010-12-03 Thread Saul Hazledine
cutes a given function, f, on a sequence of output lines. It handles restarts if the command gets killed by a log rotation. For the actual tail command I'd recommend looking at a recent version of GNU tail or install inotail - a filewatching API which makes these commands much more efficien

Re: math utilities question

2010-12-06 Thread Saul Hazledine
on-lisps, you can compile the result and use it. This makes : > 7. minimizing non-linear functions much easier. Saul -- 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 t

Re: "batch" could be fun in clojure

2010-12-09 Thread Saul Hazledine
nce most remote work is done using RPC, web services or SQL. Then at the end of the presentation they show that they have layers to handle this and I was very impressed. The batch statement should be relatively easy to make using macros. Cool. Saul -- You received this message because you are s

Re: command line options parser

2010-12-11 Thread Saul Hazledine
r instance: http://docs.python.org/library/optparse.html Saul -- 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 moderated - please be patient w

Re: Clojure Newbie trying to represent electrical circuit

2011-01-04 Thread Saul Hazledine
ps.google.com/group/clojure/browse_thread/thread/604b48a520aa0253/5e3f5d3d1d870557?lnk=gst&q=cross+referencing+objects#5e3f5d3d1d870557 The answer from David Nolen mentioned some little used functions of the Clojure language that may be useful for you. Saul -- You received this message beca

Clojure 1.3 contrib development environment

2011-01-08 Thread Saul Hazledine
that includes useful development libraries from contrib such as the repl utils, namespace utils and trace. I could put this on clojars but I was wondering if it would be better in contrib in the same was as clojure.contrib/ complete? Saul -- You received this message because you are subscribed t

Monad newbie question

2011-01-13 Thread Saul Hazledine
ials linked at http://richhickey.github.com/clojure-contrib/monads-api.html which have been very useful but any extra help would be appreciated. Thanks in advance Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Monad newbie question

2011-01-13 Thread Saul Hazledine
On Jan 13, 9:18 am, Saul Hazledine wrote: > Hello, >   I've never used monads but I have a problem that feels like it could > be solved elegantly with them. > >  I have a sequence of functions of arbitary size and an input sequence > s. Each function is given a sequence

Re: Monad newbie question

2011-01-13 Thread Saul Hazledine
gt; > (reduce #(if %1 (mapcat %2 %1)) s seq-of-fns) > That seems to work nicely thanks. I hadn't thought of using reduce to produce a sequence before. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Enhanced Primitive Support Syntax

2011-01-15 Thread Saul Hazledine
I know encryption requires BigInteger but I have yet to see a native clojure encryption library. It would help people like me understand the debate if some mainstream examples of applications requiring (seamless) BigInteger support could be identified. Saul -- You received this message because you are

LDAP library?

2011-02-01 Thread Saul Hazledine
available: http://www.unboundid.com/products/ldapsdk/ Has anyone done this already? Saul -- 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 moderated - pl

Re: AOP in Clojure

2011-02-02 Thread Saul Hazledine
a nice example of AOP behaviour using functions. For a general purpose library you may find Robert Hooke useful: https://github.com/technomancy/robert-hooke Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Deflayout - define Swing UI declaratively

2011-02-02 Thread Saul Hazledine
              nextpanel >                 (JButton. "Exit"))) > I haven't done any Swing programming in Clojure yet but this looks really cool. It looks much nicer than the standard Java API I struggled with a few years ago. Saul -- You received this message because you are subscribed to the G

Re: Time/size bounded cache?

2011-02-06 Thread Saul Hazledine
": https://github.com/alienscience/cache-dot-clj Saul -- 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 moderated - please be patient wit

[ANN] clj-ldap - Clojure LDAP client

2011-02-09 Thread Saul Hazledine
the operations get, add, delete, modify and search. It also supports spooling search results to reduce memory usage. TODO: Better documentation of Exceptions and error codes. Support for the increment operation in modify Support for LDAP controls Github project: https://github.com/alienscience/clj-ldap

Re: clj-ldap - Clojure LDAP client

2011-02-10 Thread Saul Hazledine
r an ldap/get. I've fixed the problem with dn, added attribute selection to ldap/get, improved the README slightly and released this as version 0.0.2 which is now on clojars.org. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Finding info about a function

2011-02-15 Thread Saul Hazledine
nction is anonymous and is it possible to find the arity? Thanks in advance for any help. Saul -- 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

Re: Finding info about a function

2011-02-15 Thread Saul Hazledine
Very sorry. I should have searched before I wrote. http://groups.google.com/group/clojure/msg/fb9930ba2a25d2dd On Feb 15, 11:00 am, Saul Hazledine wrote: > Hello, >   Apologies if this there is an obvious documented answer to this > question. If I write a function: > >  

Re: Functional program design concepts

2011-02-15 Thread Saul Hazledine
nodes).   I would say an electrical circuit is a type of datastructure and you already have those built in to the language. There's no need to set up a type hierarchy to express it. My first approach would be to build a datastructure that can describe an electrical circuit. Saul -- You receiv

Re: defrecord/deftype ...

2011-02-16 Thread Saul Hazledine
mpatible you must return a supported type or extend the > Renderable protocol. > Do you have more details of this - it sounds interesting... Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

Re: Get digits of a number

2011-02-16 Thread Saul Hazledine
#x27;d do it this way: (defn explode-to-digits [number] (seq (str number))) Saul -- 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 moderated -

Re: Get digits of a number

2011-02-16 Thread Saul Hazledine
rry, my first answer was careless and stupid - this time with numbers: (defn explode-to-digits [number] (map #(Character/digit % 10) (str number))) Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: akka

2011-02-23 Thread Saul Hazledine
her all the components required for fault tolerant distributed systems: https://github.com/antoniogarrote/jobim Although, like most people, I would love the convenience of a complete Java implementation of ZeroMQ. Saul -- You received this message because you are subscribed to the Google Grou

Re: Release.Next Version Number

2011-02-23 Thread Saul Hazledine
l for me. However, the key to well tested libraries is having people give feedback if a library breaks or is badly documented or doesn't meet their needs. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread Saul Hazledine
s busy and a timeout has occured. Saul -- 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 moderated - please be patient with your first post.

Re: java.lang.Exception: transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread Saul Hazledine
On Feb 23, 9:54 pm, clj123 wrote: > I'm getting the following exception trying to insert large batch data > in the database. I'd try to write less data at one time to the database. Start with, say, 20 rows at a time. Saul -- You received this message because you are subscrib

Re: transaction rolled back: java.lang.InterruptedException

2011-02-25 Thread Saul Hazledine
the processing of the rows (or the gui?) is calling Thread.interrupt(). Sorry these aren't very good suggestions. Saul -- 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

Re: Issue with lein-ring...

2011-03-09 Thread Saul Hazledine
ng and it has extra features. It is my hope was that all new users start with lein-ring. I'll change the README in leiningen-war to make it clearer. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: Can this function be simpler?

2011-03-10 Thread Saul Hazledine
On Mar 10, 7:48 pm, Damien Lepage wrote: > Sorry for the dumb questions, I'll try no to be too noisy on this list. > I found this thread useful. Please keep asking questions. Saul -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: DDJ for Clojure/Lisp/FP

2011-03-14 Thread Saul Hazledine
overhead shouldn't be too high. The use of an application would reduce the need for an editor. Saul -- 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

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
On Mar 15, 1:30 am, Paul Dorman wrote: > Hi Saul, > > I would like to implement a LDAP authentication in Clojure, based > around clj-ldap. Do you think it is necessary for the bind-request > function to be private? In LDAP v3 bind requests can be sent at any > time during a co

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
e "1.2.1"] [org.apache.directory.server/apacheds-all "1.5.5"] [org.slf4j/slf4j-simple "1.5.6"] [clj-file-utils "0.2.1"]] :license {:name "Eclipse Public License - v 1.0" :url "http://www.e