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 using clj-ldap > libra

Re: Please try the alphas and betas!

2011-11-04 Thread John Szakmeister
On Wed, Nov 2, 2011 at 10:00 AM, Chas Emerick wrote: [snip] > Yes; this is called "locking" snapshots in the Maven world, and there are > commands there that can lock any snapshot dependencies to the current > snapshot. > > If you are using Leiningen, there are no corollary commands, but you can

Re: -> vs ->> and names vs anonymous function

2011-11-04 Thread Stefan Kamphausen
Thanks for pointing my error out. I was not only oversimplifying things, worse, I simplified something away that was crucial to the original question. Regards Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: clojure-refactoring - what's the best way to distribute a clojure + emacs/elisp combined package?

2011-11-04 Thread Joost
I've implemented Phil's suggestion of using swank_elisp_payloads, and version 0.6.3 of clojure-refactoring is available right now as a leiningen plugin: lein plugin install joodie/clojure-refactoring 0.6.3 The clojure-refactoring Emacs functions will then be available under C- c C-f whenever you

Re: ANN: Korma - a SQL DSL for Clojure

2011-11-04 Thread Stathis Sideris
Very nice, thanks Chris! Is there any way to use this to group together a bunch of SQL statements as a transaction? By the way, I think the colour scheme of the website is great, it does really remind me of korma sauce! Stathis On Nov 4, 3:15 am, Daniel wrote: > Good color choices on the webs

Re: Introspecting functions

2011-11-04 Thread Stathis Sideris
Although it doesn't directly answer your question, I have used (with- meta) to attach debug information to generated functions in the past. If you are writing function combinators you can even do this recursively by taking the existing debug info from a function that you generated before and combin

Re: Which autodoc dep for clojure 1.3 (and advice on how to solve such questions generally)

2011-11-04 Thread Hubert Iwaniuk
Hi Phil, With "Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM" executing: $ lein plugin install audodoc 0.7.1 fails advising to download artifact by hand. Though searching for it: $ lein search "autodoc AND NOT g:org.clojars*" Shows line with: [autodoc "0.7.1"] A tool to bu

conditional get with feedparser-clj (or another RSS feed parser)?

2011-11-04 Thread George Oliver
hi, I'm making a site similar to clojurls.com (a more dynamic version of my old site ifurls.tumblr.com), so I'm working with feedparser-clj [1]. It doesn't look like feedparser currently wraps the conditional get from RomeFetcher [2], so I'm wondering if there is a Clojure library that does provi

Adding forms to fn

2011-11-04 Thread N8Dawgrr
Hi Clojure Group, I'm new to the group, apologies if this topic has been raised before. Basically I'm wondering if there is a reason why the form used to defined a function isn't attached as meta-data to the function. Clojure is a isomorphic language and this capability would really help me out wi

Re: ANN: Korma - a SQL DSL for Clojure

2011-11-04 Thread mnicky
on my laptop the colors are nice and readable, but on my better IPS monitor the page is not looking very well and reads a _lot_ harder, almost causing pain in my eyes ;-) ...so when designing site with uncommon color schemes, I suggest trying it on more, different types of monitors... But Korm

Re: Simple Made Easy - Any Examples?

2011-11-04 Thread Gary Trakhman
I think it's probably harder to actually show 'best practice' in a lisp than say a language like java. The notion of a design pattern can always be abstracted away with functions or macros. So, the examples I've seen so far are very small scale, eg: use lazy seqs and function composition inst

Re: clojure-refactoring - what's the best way to distribute a clojure + emacs/elisp combined package?

2011-11-04 Thread Chas Emerick
On Nov 3, 2011, at 6:14 PM, Joost wrote: > > > On Nov 3, 10:52 pm, Chas Emerick wrote: >> Joost, >> >> This looks great. I think I might have been vaguely aware of >> clojure-refactoring before, but I'm glad to have been reminded of it. >> >> Q: how much of it is Emacs/SLIME specific? >>

Re: clojure-refactoring - what's the best way to distribute a clojure + emacs/elisp combined package?

2011-11-04 Thread Laurent PETIT
Hello, As far as I remember, clojure-refactoring considered (or is using ?) using parsley + the clojure grammar in paredit.clj for some (all ?) of its refactorings. What is the current status of this ? (I also have a long delayed todo list note on adding refactoring to CCW, for sure ! :-) ) 2011

Re: Simple Made Easy - Any Examples?

2011-11-04 Thread David Nolen
Look at the sources for ClojureScript, Ring, Clache. David On Sun, Oct 30, 2011 at 9:23 PM, aboy021 wrote: > I very much enjoyed Rich's talk on Simple Made Easy (http:// > www.infoq.com/presentations/Simple-Made-Easy). It seemed to address a > great many of the frustrations I have in software d

Korma - cannot acquire connections

2011-11-04 Thread AndyK
I believe I have setup korma correctly with (require '[korma.db :as db]) (require '[korma.core :as sql]) (db/defdb devdb (db/mysql {:db "mydb" :host "localhost" :user "me" :password "mypass"})) (sql/defentity mytable (sql/select mytable (sql/fields :id) (sql/where {:id 1}))) But I'm getting SQLExc

Update swank classpath on the fly?

2011-11-04 Thread AndyK
I've noticed that swank (which I run in emacs using M-x clojure-jack- in) doesn't pickup changes to the classpath on-the-fly. For example, if I update my leiningen project.clj with a new dependency and run lein deps, I need to restart swank to have it use the library. Is there a way to load somethi

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-04 Thread Gary Trakhman
I can offer my personal projector if it's needed. -- 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. T

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-04 Thread David Nolen
Wow that would be awesome! On Fri, Nov 4, 2011 at 12:13 PM, Gary Trakhman wrote: > I can offer my personal projector if it's needed. > > -- > 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: Update swank classpath on the fly?

2011-11-04 Thread Jack Moffitt
> I've noticed that swank (which I run in emacs using M-x clojure-jack- > in) doesn't pickup changes to the classpath on-the-fly. For example, > if I update my leiningen project.clj with a new dependency and run > lein deps, I need to restart swank to have it use the library. Is > there a way to lo

a better way to write this

2011-11-04 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 here's a part of my clojureoids-code: (let [type-pred #() bounds-check #() contact #() full-test (fn [element] (and (type-pred element) (bounds-check element) (contact element)))] (filter full-test (:game-elements @world-at

Re: a better way to write this

2011-11-04 Thread Timothy Baldridge
Using collections: (every? true? (map #(%1 %2) [func1 func2] (repeat common-argument))) where func1 func2 are your functions. and common-argument is the argument shared by them all. Or something like this: (every? true? (map #(%1 %2) [type-pred bounds-check contact] (repeat element))) Granted

Re: a better way to write this

2011-11-04 Thread Benny Tsai
This is slightly shorter: full-test (fn [element] (every? #(% element) [type-pred bounds-check contact])) On Friday, November 4, 2011 10:51:43 AM UTC-6, HamsterofDeath wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > here's a part of my clojureoids-code: > > (let [type-pred #() >

Re: Update swank classpath on the fly?

2011-11-04 Thread Chas Emerick
On Nov 4, 2011, at 11:53 AM, AndyK wrote: > I've noticed that swank (which I run in emacs using M-x clojure-jack- > in) doesn't pickup changes to the classpath on-the-fly. For example, > if I update my leiningen project.clj with a new dependency and run > lein deps, I need to restart swank to hav

Re: a better way to write this

2011-11-04 Thread Paul Mooser
You could try using "every-pred" to combine your predicates, which I think would be equivalent: (let [full-test (every-pred type-pred bounds-check contact)] ... On Nov 4, 9:51 am, Dennis Haupt wrote: >   (let [type-pred #() >         bounds-check #() >         contact #() >         full-test

Re: a better way to write this

2011-11-04 Thread Benny Tsai
Oh that is cool! On Friday, November 4, 2011 12:11:43 PM UTC-6, Paul Mooser wrote: > > You could try using "every-pred" to combine your predicates, which I > think would be equivalent: > > (let [full-test (every-pred type-pred bounds-check contact)] >... > > On Nov 4, 9:51 am, Dennis Haupt

Re: Korma - cannot acquire connections

2011-11-04 Thread Base
Did you mean to define the select within the defentity? (sql/defentity mytable  (sql/select mytable (sql/fields :id) (sql/ where {:id 1}))) I does this work? (sql/defentity mytable (:pk <<< YOUR PRIMARY KEY AS A KEYWORD>>>) (table <<>>) (database devdb)) (sql/select mytable (sql/fields :

Re: Korma - cannot acquire connections

2011-11-04 Thread Base
Actually it should read: (sql/defentity mytable (:pk <<< YOUR PRIMARY KEY AS A KEYWORD>>>) (sql/table <<>>) (sql/database devdb)) (sql/select mytable (sql/fields :id) (sql/where {:id 1})) On Nov 4, 3:21 pm, Base wrote: > Did you mean to define the select within the defentity? > > (sql/d

Re: a better way to write this

2011-11-04 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 my favorite :) thx Am 04.11.2011 20:32, schrieb Benny Tsai: > Oh that is cool! > > On Friday, November 4, 2011 12:11:43 PM UTC-6, Paul Mooser wrote: > > You could try using "every-pred" to combine your predicates, which > I think would be equivalent

Fughetta - a humble JFugue wrapper

2011-11-04 Thread Sebastian Rojas
I present to you Fughetta , my first usable Clojure project, it's very simple but i hope you like it. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: Fughetta - a humble JFugue wrapper

2011-11-04 Thread Devin Walters
Gotta love jfugue. I've been toying with a wrapper as well. I'm guessing the folks in the overtone community would like to hear about this as well. Sent via Mobile On Nov 4, 2011, at 4:29 PM, Sebastian Rojas wrote: > I present to you Fughetta, my first usable Clojure project, it's very simple

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-04 Thread Michael Fogus
> Any thoughts about when / where these events can take place? At this point it would be great if a Conj-planning heavyweight could step in and provide some additional ideas... although solutions would be great too. :-) -- You received this message because you are subscribed to the Google Group

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-04 Thread Nick Brown
I'm interested in the core.logic and the web and clojure sessions. On Oct 25, 12:11 pm, Fogus wrote: > All, > > We talked about the possibility of getting some ideas about > extracurricular activities during the Conj days (and possibly training > days).  I've created a spreadsheet at the link bel

Re: Simple Made Easy - Any Examples?

2011-11-04 Thread aboy021
For me personally the main areas that Rich cited that I've not found good examples for are Rules, Set Functions, and Queues. In particular moving the rules out sounds like a great idea. I'll have a look at the projects that David suggested. -- You received this message because you are subscribed

see if any branch of a cond succeeded

2011-11-04 Thread Martin DeMello
What's the cleanest way to run a piece of code if any branch of a cond statement succeeded, without relying on the return value of the individual clauses not to be nil? For example, if I have the following piece of code that says I can only move left or up (cond (= dir :left) (move-left) (= d

Re: see if any branch of a cond succeeded

2011-11-04 Thread Baishampayan Ghose
On Sat, Nov 5, 2011 at 11:55 AM, Martin DeMello wrote: > What's the cleanest way to run a piece of code if any branch of a cond > statement succeeded, without relying on the return value of the > individual clauses not to be nil? > > For example, if I have the following piece of code that says I c