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 geta...@gmail.com 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 using

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

2011-03-29 Thread Saul Hazledine
On Mar 29, 3:13 pm, B Smith-Mannschott bsmith.o...@gmail.com wrote: I can see the advantages of going this route for simple templates that contain no optional elements and no repetition, but that's not going to get me far. I still don't understand how these kinds of issues: (defn constructor

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

2011-03-29 Thread Saul Hazledine
I had a think about using Clojure rather than go to a separate template system. Here's a horrible hack that uses eval to support string templates: (ns clj-template.core (:require [clojure.contrib.string :as string])) (defn remove-templating [s] (string/replace-re ## \ s)) (defn build-code

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

2011-03-28 Thread Saul Hazledine
On Mar 27, 12:04 am, Joost jo...@zeekat.nl wrote: I'm currently working on a library to provide a consistent and extensible method for generating form fields, based on hiccup. I think this is a cool thing to do. One thought I had was that your approach looks very general - could it be used for

Re: clj-ldap - Clojure LDAP client

2011-03-20 Thread Saul Hazledine
On Mar 16, 9:30 am, Ray Miller r...@1729.org.uk wrote: On 15 March 2011 08:46, Saul Hazledine shaz...@gmail.com wrote: On Mar 15, 1:30 am, Paul Dorman paul.dor...@gmail.com wrote: One thought though is that it may be quicker simply do a lookup on the directory server, obtain the password

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
On Mar 15, 1:30 am, Paul Dorman paul.dor...@gmail.com 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

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
On Mar 15, 11:16 am, Jozef Wagner jozef.wag...@gmail.com wrote: Hi, Could you please license clj-ldap under open source license? JW Its in the project.clj but I'll make it clearer in the README. (defproject clj-ldap 0.0.3 :description Clojure ldap client :url

Re: clj-ldap - Clojure LDAP client

2011-03-15 Thread Saul Hazledine
On Mar 15, 11:14 am, Paul Dorman paul.dor...@gmail.com 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 private to

Re: DDJ for Clojure/Lisp/FP

2011-03-14 Thread Saul Hazledine
On Mar 14, 3:41 am, Andreas Kostler andreas.koestler.le...@gmail.com wrote: Maybe this group could finally get the ball rolling...Surely a collection of highly talented individuals could initiate a forum for technical exchange at the level Peter suggests (somewhere between a blog and a

Re: Can this function be simpler?

2011-03-10 Thread Saul Hazledine
On Mar 10, 7:48 pm, Damien Lepage damienlep...@gmail.com 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 group. To

Re: Issue with lein-ring...

2011-03-09 Thread Saul Hazledine
On Mar 8, 8:31 pm, John Szakmeister j...@szakmeister.net wrote: I've been working on a web app, and it was using leiningen-war.  The author of that suggest moving to the lein-ring plugin on his github site... so, I did that. Apologies if the wording in the README of leiningen-war has caused

Re: transaction rolled back: java.lang.InterruptedException

2011-02-25 Thread Saul Hazledine
On Feb 25, 12:28 am, clj123 ariela2...@gmail.com wrote: I've tried saving a much smaller number of rows and I'm still getting this exception. I also tried processing the rows (without saving to database) and put a Thread sleep. That also generated this exception. Here are some more guesses

Re: akka

2011-02-23 Thread Saul Hazledine
On Feb 23, 1:17 am, Mark Engelberg mark.engelb...@gmail.com wrote: 3. What is Clojure's state-of-the-art for building distributed, fault-tolerant systems with its existing feature set and/or leveraging popular libraries? I've not used it, but jobim is worth looking at since it brings together

Re: Release.Next Version Number

2011-02-23 Thread Saul Hazledine
Below are suggestions to the shortcomings you mention. I'm genuinely interested in how they don't meet your needs. On Feb 23, 8:42 pm, David Jacobs develo...@allthingsprogress.com wrote: - definitive, simple, integrated package management Leiningen and Cake? - a better REPL experience out of

Re: transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread Saul Hazledine
On Feb 23, 9:42 pm, clj123 ariela2...@gmail.com wrote: I have been getting this exception: java.lang.Exception: transaction rolled back: java.lang.InterruptedException         at clojure.contrib.sql.internal$throw_rollback.invoke(internal.clj: 142) I can only take some wild guesses I'm

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

2011-02-23 Thread Saul Hazledine
On Feb 23, 9:54 pm, clj123 ariela2...@gmail.com 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

Re: defrecord/deftype ...

2011-02-16 Thread Saul Hazledine
On Feb 16, 6:07 pm, Michael Ossareh ossa...@gmail.com wrote: One place it has mattered is in using compojure with ring. I'm building a few middlewares that permit my applications to have a good sense of structure (somewhat MVC ish) in that process I discovered that to be compojure compatible

Re: Get digits of a number

2011-02-16 Thread Saul Hazledine
On Feb 17, 6:29 am, Andreas Kostler andreas.koestler.le...@gmail.com wrote: Is there an easy and idiomatic way of getting the digits of a number in clojure? (defn explode-to-digits [number]         (map #(- (int %) (int \0)) (str number))) (explode-to-digits 123456) = (1 2 3 4 5 6) I'd do

Re: Get digits of a number

2011-02-16 Thread Saul Hazledine
On Feb 17, 6:29 am, Andreas Kostler andreas.koestler.le...@gmail.com wrote: Is there an easy and idiomatic way of getting the digits of a number in clojure? (defn explode-to-digits [number]         (map #(- (int %) (int \0)) (str number))) (explode-to-digits 123456) = (1 2 3 4 5 6) Sorry,

Finding info about a function

2011-02-15 Thread Saul Hazledine
Hello, Apologies if this there is an obvious documented answer to this question. If I write a function: (defn example Get info about a function [f] (println Arity is (arity f)) (if (is-anonymous? f) (println Function is anonymous))) I believe I can implement

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 shaz...@gmail.com wrote: Hello,   Apologies if this there is an obvious documented answer to this question. If I write a function:    (defn

Re: Functional program design concepts

2011-02-15 Thread Saul Hazledine
On Feb 15, 9:04 pm, MS 5lvqbw...@sneakemail.com wrote: Hi, I just (mostly) finished reading the Programming Clojure book and while it gave a great overview of the language, I'm still at a loss for how to design programs. You'll get better answers later but here is my take on it. Maybe my

Re: clj-ldap - Clojure LDAP client

2011-02-10 Thread Saul Hazledine
On Feb 10, 8:36 am, Jozef Wagner jozef.wag...@gmail.com wrote: One question, If I search for some entries, you return results as a sequence of maps. How do I get dn of some result? It seems that your entry-as-map converts attributes but strips away entry dn. I've solved this by adding :dn key

[ANN] clj-ldap - Clojure LDAP client

2011-02-09 Thread Saul Hazledine
Hello I've written clj-ldap which is a thin layer on the unboundid ldap sdk and allows clojure programs to talk to ldap servers. I'm keen to get feedback on API and am happy to change it if needed. (ns example (:require [clj-ldap.client :as ldap])) (def ldap-server (ldap/connect {:host

Re: Time/size bounded cache?

2011-02-06 Thread Saul Hazledine
On Feb 6, 12:32 pm, Eugen Dück eu...@dueck.org wrote: A while back the discussion on the bounded memoize thread in this forum lead to Meikel writing up a nice summary of how to do caching, providing a pluggable strategy: lru, ttl, fifo, etc. Meikel's writeup can be found

Re: AOP in Clojure

2011-02-02 Thread Saul Hazledine
On Feb 2, 2:09 pm, Nebojsa Stricevic nebojsa.strice...@gmail.com wrote: Hi, Are there any general purpose libraries/frameworks with nice API/DSL for Aspect Oriented Programming for Clojure? Or is there someone working on it? Is it needed? Possible? I agree with Shantanu and feel that Ring

Re: Deflayout - define Swing UI declaratively

2011-02-02 Thread Saul Hazledine
On Feb 2, 7:43 pm, Alexander Yakushev yakushev.a...@gmail.com wrote: Usage of the lib is very easy. Here is an example from my tetris game: (deflayout     frame (:border)     :WEST gamepanel     :EAST (deflayout                 sidepanel (:flow :TRAILING)                 nextpanel        

LDAP library?

2011-02-01 Thread Saul Hazledine
Hello, This question has been asked before but it was over a year ago. I need to start using Clojure with LDAP and I was wondering if anybody had written a clojure library to do this rather than using the standard Java JNDI API (which doesn't look like much fun and is a further abstraction on

Re: Enhanced Primitive Support Syntax

2011-01-15 Thread Saul Hazledine
On Jan 15, 2:40 am, Armando Blancas armando_blan...@yahoo.com wrote: They used to give you compile switches for that kind of stuff, not hope and wholesome wishes. Seems like every performance improvements makes the language more complex, uglier or both. I don't feel strongly about integer

Monad newbie question

2011-01-13 Thread Saul Hazledine
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 and returns a sequence that can be bigger than the input sequence. I want the

Re: Monad newbie question

2011-01-13 Thread Saul Hazledine
On Jan 13, 9:18 am, Saul Hazledine shaz...@gmail.com 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 and returns

Re: Monad newbie question

2011-01-13 Thread Saul Hazledine
On Jan 13, 7:35 pm, Ken Wesson kwess...@gmail.com wrote:    (let [seq-of-fns [f1 f2 f3 ... fm]]         (mapcat fm ... (mapcat f2 (mapcat f1 s))) If any of the functions return nil, I'd like the computation to stop. I don't see any real reason not to use (reduce #(if %1 (mapcat %2 %1))

Clojure 1.3 contrib development environment

2011-01-08 Thread Saul Hazledine
Hello, I was just using the very useful clojure.contrib.trace and had a worry about using it with clojure 1.3. At the moment I just (use ' clojure.contrib.trace). As I see it, in future I will have to update my project.clj to include clojure.contrib.trace, run lein deps and restart my

Re: Clojure Newbie trying to represent electrical circuit

2011-01-04 Thread Saul Hazledine
Hello Michael, On Jan 3, 7:40 pm, MS 5lvqbw...@sneakemail.com wrote: Hi, I'm new to clojure (though I've messed around in scheme a little) and I'm trying to represent an electrical circuit with pins and nets (ie in graph terminology vertices and edges). I'd like to represent the nets as

Re: command line options parser

2010-12-11 Thread Saul Hazledine
On Dec 11, 7:08 am, Alan a...@malloys.org wrote: Have you considered instead providing a clojure wrapper around a well- known java command-line parser? The only one I've used is apache- commons-cli, which I found to be pretty lackluster,

Re: batch could be fun in clojure

2010-12-09 Thread Saul Hazledine
On Dec 8, 11:12 pm, Raoul Duke rao...@gmail.com wrote: another take on rpc/queries/services:    www.odbms.org/download/2010-09-Batches-ICOODB.pdf apparently very preliminary, i can't find the java implementation referred to in the slides. I liked the idea but was sceptical since most remote

Re: Tailing a file in Clojure

2010-12-03 Thread Saul Hazledine
On Dec 2, 8:53 am, viksit vik...@gmail.com wrote: Hi all, What would you recommend as the best method to tail a file using Clojure? Are there any built in functions in contrib or core that allow a program to read the last line of a file as it is appended to? If not - how do people solve a

Re: ANN: ClojureQL 1.0.0 finally released as public beta

2010-11-25 Thread Saul Hazledine
On Nov 25, 8:28 am, LauJensen lau.jen...@bestinclass.dk wrote: ClojureQL: (defn oracle-take   [tname limit]   (- (table (str (SELECT ROW_NUMBER() OVER (ORDER BY key ASC)                   AS rownumber,columns                   FROM (to-tablename tname) )))       (select (where (=

Re: memcache, redis connection pooling

2010-11-25 Thread Saul Hazledine
On Nov 24, 9:12 pm, Wilson MacGyver wmacgy...@gmail.com wrote: I highly recommend jedis for redis java lib. It supports connection pooling, pub/sub. and works with the 2.0 protocol. https://github.com/xetorthio/jedis Many thanks for that. Now it looks like the best way forward is to wrap

memcache, redis connection pooling

2010-11-21 Thread Saul Hazledine
Hello, I am looking at adding memcache and redis support to a caching library that I have written. Ideally, I'd like TCP/IP connections to be pooled and reused. Pooling should reduce the number of open connections and remove the latency of creating new connections. In my experience with other

Re: Clojure on the AppEngine Talk

2010-11-19 Thread Saul Hazledine
On Nov 19, 7:08 am, Miki miki.teb...@gmail.com wrote: Greetings, I gave a short presentation on getting started with Clojure on the AppEngine tonight at the clj-la meetup. Slides can be found athttps://docs.google.com/present/view?id=ah82mvnssv5d_1784s26pwsh Comments welcomed. Enjoy,

Re: Parameterized SQL queries?

2010-11-10 Thread Saul Hazledine
On Nov 10, 6:35 pm, Daniel Bell dchristianb...@gmail.com wrote: I'm a newb to both SQL and Clojure, and after reading this post (http://groups.google.com/group/clojure/browse_thread/thread/718fa1b72... ) I was curious as to exactly it means to parameterize a query. Is it a way to automatically

Re: Simple Neural Network DSL -- request for feedback

2010-11-10 Thread Saul Hazledine
On Nov 10, 11:20 pm, Eric Schulte schulte.e...@gmail.com wrote: Hi, Inspired by cgrand's regexp example [1], I've implemented a simple DSL for specifying neural networks using Clojure data types.   This is really clear. The web page documentation is awesome. Construction of this simple

Supporting 1.2 and 1.3

2010-11-04 Thread Saul Hazledine
Hello, I've put some small libraries on github. At the moment they specifically depend on Clojure 1.2 and contrib (since its the released version). However, I have had requests to take out the dependencies on clojure and contrib so that they don't infect projects that use them. Is this standard

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: 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: sql and cursors

2010-10-17 Thread Saul Hazledine
On Oct 17, 1:04 am, Kyle R. Burton kyle.bur...@gmail.com wrote: As far as I can tell, contrib.sql's functions do not use database cursors (at least for PostgreSQL, again as far as I can tell).  For result sets that are larger than you'd like to load into the running process, but rather step

Re: sql utilities

2010-10-14 Thread Saul Hazledine
On Oct 14, 9:16 pm, Kyle R. Burton kyle.bur...@gmail.com wrote: I've written some sql helper functions that will do things like list the objects in the database and describe a table.  I've found these handy when doing interactive development as I don't have to jump over to another app to see

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 this message

Clojars SSH key change?

2010-10-12 Thread Saul Hazledine
Hello, I just got the following error back from ssh/scp when copying something back to clojars.org: @@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@ The RSA host

Re: Creating a new library

2010-10-12 Thread Saul Hazledine
On Oct 13, 5:31 am, lprefonta...@softaddicts.ca wrote: As far a publishing to Clojars, I do not know the policy. Uploading various jars maintained by other teams not involved in Clojure may pollute the repo along the way. As I understand it, its fine to put jars from other projects on

Re: Cross-referencing objects?

2010-10-03 Thread Saul Hazledine
On Oct 3, 9:32 am, Alan a...@malloys.org wrote: I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's in - List all the

Re: relational data aggregation language

2010-10-02 Thread Saul Hazledine
On Oct 2, 2:55 am, Ross Gayler r.gay...@gmail.com wrote: I am looking at the possibility of finding/building a declarative data aggregation language operating on a small relational representation. Each query identifies a set of rows satisfying some relational predicate and calculates some

Re: disk-backed memoize?

2010-10-01 Thread Saul Hazledine
On Sep 18, 7:25 pm, David McNeil mcneil.da...@gmail.com wrote: http://github.com/alienscience/cache-dot-clj Thanks for the link. That is helpful. Would JDBC suit your needs as a storage medium? I suppose that would work, but I am thinking that an ehcache based plugin forcache-dot-cljmight

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

2010-09-21 Thread Saul Hazledine
On Sep 20, 10:15 pm, Constantine Vetoshev gepar...@gmail.com wrote: http://github.com/gcv/appengine-magic Comments welcome, as always. One thing that would simplify the process a little is that, when Leiningen 1.4 is released, that appengine-magic uses the plugin manager to install:

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

2010-09-20 Thread Saul Hazledine
On Sep 20, 10:15 pm, Constantine Vetoshev gepar...@gmail.com wrote: I'd like to announce the release of a working version of appengine- magic, a library designed to make it easier to get started with Google App Engine using Clojure. appengine-magic abstracts away nearly all the boilerplate

Re: disk-backed memoize?

2010-09-18 Thread Saul Hazledine
On Sep 18, 3:00 am, David McNeil mcneil.da...@gmail.com wrote: Is there a disk-backed memoize available? I have an application where I would like the cache of values to survive restarts of the app. I don't know of one but in the next few weeks I was planning to add memcache functionality to

Re: A secretly Clojure web framework?

2010-09-04 Thread Saul Hazledine
On Sep 4, 5:45 am, HB hubaghd...@gmail.com 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/Conjure

Re: A secretly Clojure web framework?

2010-09-04 Thread Saul Hazledine
26 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: I am interested to know what deficiencies do you see in present state of affairs in Clojure web development space. It would be something useful to discuss. I think the packages that exist are exciting and that some of them represent a step

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
On Sep 1, 7:57 pm, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Sep 1, 2010 at 12:33 AM, Laurent PETIT laurent.pe...@gmail.com wrote: The ideal setup, in my opinion, after using all sorts of different web frameworks and languages over the last 14 years, is to have all the HTML in the

Re: Web Development - templating?

2010-09-01 Thread Saul Hazledine
On Sep 1, 9:09 am, Sean Corfield seancorfi...@gmail.com wrote: This may be better suited for the new clojure-web-dev list but I'm used to building web apps with primarily HTML views that have some embedded scripting. Is there anything similar for Clojure? Fleet is also worth mentioning as it

Re: help with native-jar files..

2010-08-25 Thread Saul Hazledine
On Aug 24, 4:43 pm, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Could not locate de/jreality/plugin/JRViewer__init.class or de/jreality/plugin/JRViewer.clj on classpath:   [Thrown class java.io.FileNotFoundException] I verified that the final jar that I created had JRViewer file it

Re: FSM

2010-08-19 Thread Saul Hazledine
On Aug 16, 3:55 am, ngocdaothanh ngocdaoth...@gmail.com wrote: I have used Erlang's gen_fsm and like it very much:http://erlang.org/doc/design_principles/fsm.html I want to write a game in Clojure and I need a FSM library (best if it supports timeout event). I would like to ask if there is

Clojure Web Programming group?

2010-08-17 Thread Saul Hazledine
Hello, Personally I really like the way web development in Clojure is improving. Rather than huge frameworks there are different libraries that are coming together to form a useful toolset. Even the framework Conjure is lightweight and using general purpose libraries under the hood. One

Re: Installing Clojure on OS X

2010-08-17 Thread Saul Hazledine
On Aug 17, 3:59 pm, HB hubaghd...@gmail.com wrote: Hey, How to install Clojure on Mac OS X? I googled the web, some use MacPorts, others write some shell scripts. Is there a -standard- way to install Clojure on OS X (if possible, please don't refer me to MacPorts)? Thanks all for help and

Re: Installing Clojure on OS X

2010-08-17 Thread Saul Hazledine
On Aug 17, 6:22 pm, Michael Gardner gardne...@gmail.com wrote: What's wrong with MacPorts? I've used it to install Clojure (and many other things) on my Mac, without much trouble. I've never used MacPorts with Clojure and don't use a Mac at all now so things might have improved. However, I

Re: Clojure Web Programming group?

2010-08-17 Thread Saul Hazledine
On Aug 17, 8:21 pm, Brian Carper briancar...@gmail.com wrote: On Aug 17, 7:15 am, Saul Hazledine shaz...@gmail.com wrote: One idea I had though was to go one step further and start a Clojure web development group so that other developers of small libraries and users of them could go to one

Re: A useful function?

2010-08-16 Thread Saul Hazledine
On Aug 16, 8:31 am, Alan a...@malloys.org 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 subscribed

Re: Trouble upgrading to clojure 1.2

2010-08-16 Thread Saul Hazledine
Aug 16, 8:03 pm, Alan a...@malloys.org wrote: $ cat project.clj (defproject ddsolve 1.0.0-SNAPSHOT   :description FIXME: write   :dependencies [[org.clojure/clojure 1.2.0]                  [org.clojure/clojure-contrib 1.2.0]]   :dev-dependencies [[swank-clojure 1.2.0]]) You're doing

Re: Transactions in c.c.sql functions

2010-08-14 Thread Saul Hazledine
On Aug 13, 11:23 pm, Shantanu Kumar kumar.shant...@gmail.com wrote: As far I understand, transactions belong to the user. The user should decide what to execute under which transaction. By beginning transaction inside these functions, is it assumed that the user can wrap bigger constructs

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: On retrieving auto-generated IDs after INSERT

2010-08-12 Thread Saul Hazledine
On Aug 11, 10:15 am, Remco van 't Veer rwvtv...@gmail.com wrote: There was a thread about this some months ago;  http://groups.google.nl/group/clojure/browse_thread/thread/e95d477830... Somebody came up with his own version of insert-record:  http://gist.github.com/373564#LC62 Thanks for

Re: leiningen-war

2010-08-09 Thread Saul Hazledine
On Aug 9, 5:08 am, rob r.p.l...@gmail.com wrote: As far as I can tell, based on using it so far, the war plugin for leiningen requires writing a web.xml file.  I was just wondering why it doesn't generate that xml file for you based on the information you've specified already in leiningen.  

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

2010-08-02 Thread Saul Hazledine
Hello Kent, On Aug 1, 2:00 pm, Kent Larsson kent.lars...@gmail.com wrote: I'm planning to reduce my time at my full time job to create a small startup. And I am thinking about create a lean and mean architecture which will enable me to get things done. Cool! I am thinking about creating a

Re: Idiomatic Clojure namespace names

2010-07-10 Thread Saul Hazledine
On Jul 10, 12:16 am, Mike Meyer mwm-keyword-googlegroups. 620...@mired.org wrote: On Fri, 9 Jul 2010 12:49:05 -0700 (PDT) j-g-faustus johannes.fries...@gmail.com wrote: That said, I would leap at a chance to shorten Java names, even if it were just to chop off the leading com or org. As

Re: Idiomatic Clojure namespace names

2010-07-09 Thread Saul Hazledine
On Jul 8, 8:38 pm, Laurent PETIT laurent.pe...@gmail.com wrote: My opinion: no need to create problems when there already are accepted solutions. In the java world, there are conventions for naming things. Stick with them. I do see your point and if this is the way the consensus moves I'll

Re: Idiomatic Clojure namespace names

2010-07-07 Thread Saul Hazledine
On Jul 7, 5:24 pm, Laurent PETIT laurent.pe...@gmail.com 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

Re: Newbie questions about leiningen

2010-07-03 Thread Saul Hazledine
On Jul 2, 6:35 pm, Nicolas Oury nicolas.o...@gmail.com wrote: I am looking for a way to tell leiningen what JVM options to use with the SWANK server. (I need a lot of Heap size to do anything useful...) I wasn't able to find that in the doc. Is it not the right way of proceeding? I'd

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
On Jul 3, 10:41 am, Nicolas Oury nicolas.o...@gmail.com wrote: I have a - very simple - memoizer that uses Weak/Soft/Hard Hash tables from the JDK or from google collections. (Google collections has different strategies for expiration of cache. Soft is the last time since used strategy. Weak

Re: scala

2010-06-24 Thread Saul Hazledine
On Jun 18, 11:56 pm, cageface milese...@gmail.com wrote: Unfortunately there seems to be a lot more commercial momentum for Scala though. It's still a blip compared to the mainstream languages but I'm seeing more and more job posts mentioning it, and hardly any for Clojure. I don't think

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

2010-05-16 Thread Saul Hazledine
On May 15, 5:23 pm, Base basselh...@gmail.com wrote: So I would love to hear what others have done in the past to integrate clojure into a web app.  Any info would be most appreciated. I use compojure 0.4 with hiccup to generate the HTML. It feels like a very old school way of developing a web

Re: clojure.contrib.sql insert id

2010-04-21 Thread Saul Hazledine
On Apr 20, 8:51 pm, Remco van 't Veer rwvtv...@gmail.com 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

clojure.contrib.sql insert id

2010-04-20 Thread Saul Hazledine
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@googlegroups.com Note that posts

Re: Choosing a Clojure build tool

2010-03-26 Thread Saul Hazledine
On Mar 25, 7:55 pm, Chas Emerick cemer...@snowtide.com wrote: I published a blog post earlier today, along with a short screencast   that might be of interest: Read on:http://muckandbrass.com/web/x/AgBV The article reads to me as, don't reinvent the wheel, everyone should use maven.

Re: Software Training Center and Startup Incubator

2010-03-11 Thread Saul Hazledine
On Mar 10, 10:37 pm, startup jennifermorgan2...@gmail.com wrote: The software center would try to steer the candidates to use Lisp/ Clojure over other languages because of the flexibility and speed with with ideas can be developed and the languages inherent suitability for large Web

Re: Clojure syntax highlight for web sites

2010-03-01 Thread Saul Hazledine
On Feb 28, 10:57 pm, Ivan ivankob...@gmail.com wrote: Do you happen to know of any JavaScript syntax highlighting library, alikehttp://code.google.com/p/syntaxhighlighter/orhttp://code.google.com/p/google-code-prettify/, supporting Clojure and not just Lisp. I've been trying to find one to no

Re: ANN: Fleet — templating system

2010-02-23 Thread Saul Hazledine
On Feb 19, 10:12 pm, Ilia Ablamonov i...@flamefork.ru wrote: I would like to announce an implementation of ERB/JSP/etc -like approach for templating with (I really believe) clear and idiomatic syntax and design decisions. Detailed description and code:http://github.com/Flamefork/fleet

ANN: leiningen war plugin

2010-01-21 Thread Saul Hazledine
There is a plugin for leiningen that creates war files for use with servlet containers: http://github.com/alienscience/leiningen-war/ http://clojars.org/uk.org.alienscience/leiningen-war To use it include the following dev-dependency in project.clj :dev-dependencies