Re: clojure struct with java

2011-10-13 Thread Alexander Taggart
I suspect this... Var struct = RT.var("clojure.core", "struct","employee :diego 10 :coach 1000"); isn't doing what you think it will. That will set the root binding of clojure.core/struct to the string you gave it. you probably want to get the var for the struct function, and then invoke it

Re: A question about lazy-seq fn.

2011-10-13 Thread Stephen Compall
On Thu, 2011-10-13 at 21:38 -0700, mmwaikar wrote: > Most of the examples I see about using the lazy-seq fn. make use of cons to > build the list (or a seq). > > Can we not use lazy-seq with a conj? And why? Not really. user=> (clojure-version) "1.3.0" user=> (do (cons 88 (map prn [4 6])) nil)

Re: Basic Question on Record construction

2011-10-13 Thread Stephen Compall
On Thu, 2011-10-13 at 21:41 -0700, Dave Sann wrote: > Hi all, this may be a very simple question but I have not been able to find > any docs that help me I suggest http://dev.clojure.org/display/design/defrecord +improvements#defrecordimprovements-Generatedfactoryfunctions . > (defrecord R [a b

Basic Question on Record construction

2011-10-13 Thread Dave Sann
Hi all, this may be a very simple question but I have not been able to find any docs that help me (defrecord R [a b c]) Is there something equivalent to: (def r (apply R. ["a" "b" "c"])) available? (without writing macros?) (in practice the list would be generated by some other function - say

A question about lazy-seq fn.

2011-10-13 Thread mmwaikar
Hi, Most of the examples I see about using the lazy-seq fn. make use of cons to build the list (or a seq). Can we not use lazy-seq with a conj? And why? If it possible to use lazy-seq with a conj, then an example would be great. Thanks, Manoj. -- You received this message because you are subs

Exception in thread "main" java.lang.Exception: Unable to resolve symbol: PK♥♦¶

2011-10-13 Thread jayvandal
I am trying to run "CRUD in clojure" 2010 and I get this problem lein uberjar Some problem ? Any help thanks Exception in thread "main" java.lang.Exception: Unable to resolve symbol: PK♥♦¶ t↕N? in this context (core.clj:1) Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Micr

Re: newbie, installation problem

2011-10-13 Thread Phil Hagelberg
On Thu, Oct 13, 2011 at 4:51 PM, Bruce Gordon wrote: > I'm trying to install Clojure following the directions at > http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html . I'm > installing on SimplyMepis. I've installed the sun JDK and can verify > the installation with the following: Those

clojure struct with java

2011-10-13 Thread Diego Pacheco
Hi guys, I’m trying to call Clojure from Java(I already managed to do it compiling Clojure using :gen-class  ). I want call Clojure using Java without compiling Clojure… I’m having issues with my structs they are not behaving in the way that I want, I tested the Clojure code on REPL and it seems

newbie, installation problem

2011-10-13 Thread Bruce Gordon
I'm trying to install Clojure following the directions at http://riddell.us/ClojureSwankLeiningenWithEmacsOnLinux.html . I'm installing on SimplyMepis. I've installed the sun JDK and can verify the installation with the following: [root@mepis1 clojure]# java -version java version "1.6.0_26" Java(T

Re: clojure.contrib.except's future?

2011-10-13 Thread Luc Prefontaine
Hi, If no one steps forward and if this lib has some future I can do it for next Thursday, it looks small enough to fit migration and in that time frame. I need an approved name and the usual stuff (github repo, hudson built setup, ...) Should I repost to clojure-dev ? Looks like I am about t

Re: The Website / Wikispaces

2011-10-13 Thread Stuart Sierra
You can see the redirect with: wget http://clojure.org/ -S -- 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 yo

Re: ClojureScript: integration with jQuery

2011-10-13 Thread David Nolen
ClojureScript can access globals via js/foo. You can easily interact with your existing codebase using this simple feature. For example: (ns foo.bar) (def j js/jQuery) (.text (j "div#foo") "jQuery works!") Were you looking for something more sophisticated then this? David On Wed, Oct 12, 2011

Re: Incanter Hack Day, Sunday 16th October, London

2011-10-13 Thread Samuel Lê
Hi, I can do Benford's law. See you on suday, Samuel On Thu, Oct 13, 2011 at 10:02 AM, Bruce Durling wrote: > I probably won't be able to make it this weekend, but if someone wants > to implement Benford's Law, that would be cool. > > > http://econerdfood.blogspot.com/2011/10/benfords-law-and-de

ClojureScript: integration with jQuery

2011-10-13 Thread Frank Warren
Howdy This particular story starts with vast existing code base using jQuery. We'd love to switch to ClojureScript given its pure awesomeness, but we still have to somehow cope with the existing bits, at least to maintain the same look&feel. Is there any good approach to invoke jQuery functionali

Re: clojure.contrib.except's future?

2011-10-13 Thread Sean Corfield
On Thu, Oct 13, 2011 at 11:19 AM, ffailla wrote: > Does anyone now if clojure.contrib.except being ported to the new > contrib?  Thanks. So far no one has volunteered to maintain it so the question hadn't come up... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/

Re: clojure.contrib.base64

2011-10-13 Thread Tom Hicks
typo: try https://github.com/clojure/data.codec On Oct 10, 6:31 pm, Alexander Taggart wrote: > Base64 decoding support has been added. > > http://github.com/ataggart/clojure.data.codec -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

clojure.contrib.except's future?

2011-10-13 Thread ffailla
Does anyone now if clojure.contrib.except being ported to the new contrib? Thanks. Frank Failla -- 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 modera

Re: [ANN] dj 0.1.0 released

2011-10-13 Thread Brent Millare
0.2.0 Released Made a new API namespace called "dj" Now all the utilities I think users would typically need are in this namespace. This also allowed me to clean up the core code since it doesn't cater to the users anymore. The functions currently are: get-classpaths get-current-classloader -

Excellent blog post on core.logic

2011-10-13 Thread David Nolen
Ryan Senior has put together an excellent post on appendo - a relation from core.logic. Highly recommended. http://objectcommando.com/blog/2011/10/13/appendo-the-great/ David -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: read-string behavior in ClojureScript

2011-10-13 Thread David Nolen
Also fixed in master. On Tue, Oct 11, 2011 at 9:17 AM, David Nolen wrote: > Looks like a bug, ticket created - > http://dev.clojure.org/jira/browse/CLJS-85 > > > On Tue, Oct 11, 2011 at 2:16 AM, Praki wrote: > >> In Clojure (read-string ":a:b:c") returns :a:b:c (a keyword with two >> embedded c

Re: ClojureScript memoize throws error

2011-10-13 Thread David Nolen
Fixed in master. On Wed, Oct 12, 2011 at 2:22 PM, David Nolen wrote: > Thanks for the report, CLJS-62 reopened, > http://dev.clojure.org/jira/browse/CLJS-62 > > David > > On Wed, Oct 12, 2011 at 2:10 PM, Praki wrote: > >> I am running into a problem with memoized functions in ClojureScript. >>

Re: The Website / Wikispaces

2011-10-13 Thread Simon Morgan
On Oct 12, 6:25 pm, Sean Corfield wrote: > Can someone provide a tried and true navigation path that shows this > problem? I don't think so, and that's what makes it so strange. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Spread work onto multiple threads (in pure Clojure)

2011-10-13 Thread Ivan Koblik
Sorry I meant "Fair enough ..." Cheers, Ivan. On 13 October 2011 12:41, Ivan Koblik wrote: > Fail enough. I guess, to allow nested spawning and avoid deadlocks, tasks > should finish without waiting for the result but spawn a new task similar to > itself that would check for the completion of

Re: Spread work onto multiple threads (in pure Clojure)

2011-10-13 Thread Ivan Koblik
Fail enough. I guess, to allow nested spawning and avoid deadlocks, tasks should finish without waiting for the result but spawn a new task similar to itself that would check for the completion of the child tasks, repeating the cycle if necessary. Imagine that task t1 is monitored through a future

Re: ANN: clojure.java.jdbc 0.0.7

2011-10-13 Thread keeds
Hi, Don't disagree about MS Access but it's a useful simple tool some times... The code is: (defn get-target [bu measure year] (with-connection db (with-query-results rs ["Select Period_Month, Target From Targets_Qry Where BU_ID = ? And Measure_Code = ? And Period_Year = ?" bu measure yea

Re: Incanter Hack Day, Sunday 16th October, London

2011-10-13 Thread Bruce Durling
I probably won't be able to make it this weekend, but if someone wants to implement Benford's Law, that would be cool. http://econerdfood.blogspot.com/2011/10/benfords-law-and-decreasing-reliability.html cheers, Bruce On Mon, Oct 10, 2011 at 21:44, Ben Evans wrote: > Hi, > > There is an Incante

Re: ANN: clojure.java.jdbc 0.0.7

2011-10-13 Thread Marko Kocić
Looking at the log seems like MS Access doesn't support prepared statements. It shouldn't have anything to do with jdbc. -- 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