0.2.2-SNAPSHOT has that fixed.
On Nov 8, 10:57 am, Dennis Crenshaw wrote:
> Let me start by saying, I'm loving this SQLKorma, it feels like just the
> right amount of syntax. And there's exec-raw for super fast integration
> into an project with existing SQL statements.
>
> However, while kicking
On Tue, Nov 8, 2011 at 8:11 PM, jaime wrote:
> Is there any docs describe the principles/concepts (not only for MVC)
> of this framework??
Yes, the CFML version's wiki should cover that:
>> The original FW/1 documentation is
>> here:https://github.com/seancorfield/fw1/wiki
If that doesn't cove
Drinks + Clojure sounds like a good idea for me. What time will it
be?
On Nov 5, 10:54 pm, Phil Hagelberg wrote:
> On Fri, Nov 4, 2011 at 6:16 PM, Michael Fogus wrote:
> >> Any thoughts about when / where these events can take place?
>
> > At this point it would be great if a Conj-planning heav
Alan Malloy writes:
Hi Alan,
> I want to typehint the return value of f, so I put metadata on the
> form representing a call to it. But if a macro gets involved, there's
> an "intervening" form that ignores its metadata and returns a new list
> of '(f 10) with no metadata. Thus the compiler has
Im in for wednesdays drinkup and thursdays lighting taks (i would like
to give a 5 -10 min lighting talk)
On Oct 25, 10:11 am, Fogus wrote:
> All,
>
> We talked about the possibility of getting some ideas about
> extracurricular activities during the Conj days (and possibly training
> days). I'v
Hi,
>From the cursory glance, it seems Korma supports sqlite3.
http://sqlkorma.com/docs
https://github.com/ibdknox/Korma/blob/master/src/korma/db.clj#L100
Best,
Tim
On Tue, Nov 8, 2011 at 3:47 PM, loonster wrote:
> After searching long and hard, there really isn't any good
> documentation fo
Hi Nicholas!
I think the answer you're looking for is best explained by Michał in this
StackOverflow post:
http://stackoverflow.com/questions/3008411/clojure-seq-cons-vs-list-conj
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this grou
Hi Jim,
Thanks so much! Using 'def' instead of 'defn' when defining a function
composed of functions was what I was missing.
I can't believe I spent an hour trying to figure this out -- it seems
very obvious now. Doh!
:)
On Nov 8, 6:50 pm, Jim Crossley wrote:
> Hi
>
> Aquahappy writes:
>
> [.
(fz-node-seq x) is just (tree-seq coll? seq x) then, yeah? I could see
form-zip being useful for people who like zippers (personally I don't
have enough experience to be comfortable with them), but fz-node-seq
doesn't seem useful.
On Nov 1, 8:56 pm, George Jahad wrote:
> surely this one's been wr
They have a different make-node function, so that when you edit a
vector-zip you get vectors instead of something else. It's also easy
to imagine your "data units" are simple vectors, grouped together in
some kind of list structure. Then you would want the zipper to tell
you "hey, this node is a le
Now that I think of it, why are seq-zip and vector-zip separate
functions? Why not a single function that handles both seq and
vectors, and sets and maps too?
What am I missing?
On Nov 1, 8:56 pm, George Jahad wrote:
> surely this one's been written before, but i needed it the other day
> and
On Nov 8, 6:46 pm, Alan Malloy wrote:
> On Nov 8, 4:44 pm, Stuart Halloway wrote:
> > > This is under clojure 1.2.0, 1.2.1, 1.3.0, though the error messages
> > > differ.
>
> > > Consider a trivial project that `uses` midje:
>
> > > (ns midje-aot.core
> > > (:use midje.sweet))
>
> > > If
On Nov 8, 4:44 pm, Stuart Halloway wrote:
> > This is under clojure 1.2.0, 1.2.1, 1.3.0, though the error messages differ.
>
> > Consider a trivial project that `uses` midje:
>
> > (ns midje-aot.core
> > (:use midje.sweet))
>
> > If it's aot-compiled, everything appears to go well:
>
> >
Please add me to the following:
ClojureScipt
core.logic
Clojure tooling
ClojureCLR
Literate Programming
D3 and ClojureScript
Thanks,
Roland Sadowski
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googleg
Hi
Aquahappy writes:
[...]
> 1: (define (compose f g) (lambda (x) (f (g x
> 2: (define (twice f) (compose f f))
> 3: (define fourth (twice sq))
> 4: (fourth 3)
>
> I've gotten this far and then I get stuck when I try to do line 2 from
> the above:
>
> 1: (defn compose [f g] #(f (g %)))
Hi Joshua,
I've gotten this far and then I get stuck when I try to do line 2 from
> the above:
> 1: (defn compose [f g] #(f (g %)))
Try (defn compose [f g] (fn [x] (f (g x
On Wed, Nov 9, 2011 at 9:10 AM, Aquahappy wrote:
> Hi All,
>
> I'm working through Brian Harvey's 61a 2008 SICP lect
Hi All,
I'm working through Brian Harvey's 61a 2008 SICP lecture (http://
www.youtube.com/watch?v=ljOrUCqsixs) and could really use a hand
translating a couple of simple lines from scheme to clojure.
Here is the code:
1: (define (compose f g) (lambda (x) (f (g x
2: (define (twice f) (compo
Please sign me up (or give me edit access to the document) for:
ClojureScript
Clojure Tooling
The Web and Clojure
Thank you!
--
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
On Tue, Nov 8, 2011 at 4:09 PM, pron wrote:
> Yes, but it lacks cross-referencing and linking from within the docstrings
> themselves (like Javadoc's @See).
You can use :see-also metadata to cause autodoc to generate
cross-references with links... I think it would be pretty easy to
extend autodoc
> This is under clojure 1.2.0, 1.2.1, 1.3.0, though the error messages differ.
>
> Consider a trivial project that `uses` midje:
>
>(ns midje-aot.core
> (:use midje.sweet))
>
> If it's aot-compiled, everything appears to go well:
>
>1762 $ lein compile
>Copying 6 files to /User
On Tuesday, November 8, 2011 8:42:13 PM UTC+2, Sean Corfield wrote:
>
> Have you looked at autodoc?
>
Yes, but it lacks cross-referencing and linking from within the docstrings
themselves (like Javadoc's @See). I would like to suggest tagging in order
to compensate for the lack of Javadoc's
This is under clojure 1.2.0, 1.2.1, 1.3.0, though the error messages differ.
Consider a trivial project that `uses` midje:
(ns midje-aot.core
(:use midje.sweet))
If it's aot-compiled, everything appears to go well:
1762 $ lein compile
Copying 6 files to /Users/marick/src/midje
In anticipation of the Conj and my talk about sandboxing + clojail there,
I've just cut a new major release of the library. Here are some of the
changes:
- Code has been cleaned up significantly.
- Old broken attempts at supporting both blacklisting and whitelisting
are gone, and only
Haven't tested, but seems like this should get you started with korma:
lein:
[korma "0.2.1"]
[sqlitejdbc "0.5.6"]
korma [1]:
(defdb mydb {:classname "org.sqlite.JDBC"
:subprotocol "sqlite"
:subname "db/mydb.sqlite3"});; Location of the db
[1] htt
Sounds lile you could use Midje's tabular tests. Or if you want write a
acro to generate a tabular fact. Tje tabular fact will give you good
reporting.
On Nov 8, 2011 1:44 PM, "AndyK" wrote:
> I finally had a chance to try this out and it fails with
>
> error: java.lang.ClassCastException: java
this may help:
http://stackoverflow.com/questions/3008411/clojure-seq-cons-vs-list-conj
--
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 - ple
After searching long and hard, there really isn't any good
documentation for using sqlite3 with clojure 1.3. Any help connecting
to an existing sqlite3 db and performing selects and updates greatly
appreciated. Tim
--
You received this message because you are subscribed to the Google
Groups "C
One of the best ways to learn clojure is to take a look at the minimal and
excellent source code:
http://clojuredocs.org/clojure_core/clojure.core/cons
(def
^{:arglists '([x seq])
:doc "Returns a new seq where x is the first element and seq is
the rest."
:added "1.0"
:static true
Hi Nicholas,
cons returns a Cons type, which is printed like a list.
Clojure> (type (cons 1 []))
clojure.lang.Cons
Many functions that deal with collections generally return seq's, which
also print like lists.
See: http://clojure.org/sequences
Thanks,
Ambrose
On Wed, Nov 9, 2011 at 2:21 AM,
Hi Michael,
Interesting implementation, personally I'm not well versed in programming
with sets. Looks like a very nice style, will use this to check it out.
Thanks,
Ambrose
On Mon, Nov 7, 2011 at 2:26 AM, Michael Jaaka
wrote:
> Well, despite of fact that core.logic is fine tool and is worth of
On Nov 8, 7:33 pm, megabite wrote:
> I'm trying to use Math/sqrt using clojure 1.3.0 and lein but for some
> reason I can't get it to work.
>
> What do I need to put in the project.clj file and what needs to go
> into the (ns ...) statement in the core.clj file in order to get this
> work? It shou
J2SE is available by default (since it is included with the JVM). I
believe java.lang.* is accessible without importing, and anything else
needs to be imported before using, can't remember for sure though.
So, (Math/sqrt 25) should just work.
On Tue, Nov 8, 2011 at 1:33 PM, megabite wrote:
> I
Hello,
I'm a new Closure user and I'm wondering why the 'cons' function
applied on a vector returns a list.
Ex:
user=> (def v1 [:one :two])
#'user/v1
user=> (cons :three v1)
(:three :one :two)
user=>
Thanks for your help,
Regards,
Nicolas
--
You received this message because you are subscribed
I'm trying to use Math/sqrt using clojure 1.3.0 and lein but for some
reason I can't get it to work.
What do I need to put in the project.clj file and what needs to go
into the (ns ...) statement in the core.clj file in order to get this
work? It should be fairly straightforward but there don't se
FYI:
> As some of you may know already, I've started a Clojure podcast called Mostly
> λazy. The first episode is in the can and has been published. There are RSS
> feeds for your readers and podcatchers there for the taking, and I'll be
> working on getting the feed into iTunes shortly.
>
>
Let me start by saying, I'm loving this SQLKorma, it feels like just the
right amount of syntax. And there's exec-raw for super fast integration
into an project with existing SQL statements.
However, while kicking the tires I ran into a weird problem, every
predicate works except <=, eg:
$=> (sel
I finally had a chance to try this out and it fails with
error: java.lang.ClassCastException: java.lang.String cannot be cast
to clojure.lang.IObj
Compilation failed.
When I substituted in something like this...
(defn prn-form [n scenario]
`(prn ~(str "foo" n) (prn ~(str n " :: " scenario
On Tue, Nov 8, 2011 at 3:14 AM, pron wrote:
> Yeah, sure, but docstrings aren't linkable. It's interesting that Java, with
> all its faults, has an incredible documentation system.
Have you looked at autodoc? It's responsible for generating stuff like this:
http://clojure.github.com/java.jdbc/
On Tue, Nov 8, 2011 at 10:16 AM, AndyK wrote:
> Those are cool - thank you for bringing them to my attention
>
> They don't appear to address the issue of setting up environment data.
> For example, lein test :development -vs- lein test :staging where
> different configs are loaded for :developmen
Those are cool - thank you for bringing them to my attention
They don't appear to address the issue of setting up environment data.
For example, lein test :development -vs- lein test :staging where
different configs are loaded for :development or :staging (ex:
database, web endpoints).
On Nov 7,
Please sign me up (or give me edit access to the document and I'll add
myself) for:
core.logic / minikanren
clojure tooling
heroku drinkup
D3 and clojurescript
clojurescript
literate programming
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
On Tuesday, November 8, 2011 8:04:19 AM UTC+2, Sean Corfield wrote:
>
> docstrings?
>
Yeah, sure, but docstrings aren't linkable. It's interesting that Java,
with all its faults, has an incredible documentation system. Scala has a
problem in this field, too, since the complex typing and tricks
Hi Simon
I originally thought that I'd be trying to implement things in
> Clojure. In hindsight, while it's been interesting to look at the
> programming assignments, I wouldn't have had time for something in
> that depth. Have you tried?
>
No. But that was my initial plan as well to do it in
43 matches
Mail list logo