Re: mysql record field formats

2012-01-11 Thread Michael Wood
On 11 January 2012 09:41, jayvandal s...@ida.net wrote: I 'm having trouble with adding to this table I cand drop the table, create table but can't add this data What is the format error? Thanks for help! (defn create-fruit [] (sql/with-connection db  (sql/create-table :fruit    [:name

Overtone on FLOSS Weekly

2012-01-11 Thread Sam Aaron
Hi all, you might be interested to know that I'm going to be talking about Overtone and Clojure on FLOSS Weekly on Weds the 11th of Jan. The show will be starting early this week (8.30am Pacific time/4.30pm GMT) due to a clash with CES. http://twit.tv/show/floss-weekly Should be a lot of

Re: Invoking varargs Java methods

2012-01-11 Thread Norman Gray
Aaron, hello. On 2012 Jan 11, at 03:05, Aaron Cohen wrote: Using the stackoverflow problem as an example, it seems that I can't do (.queryForObject jdbcTemplate rowMapper) I think your only problem here is that you're short an argument. If you want to call a function with varargs, you

Re: Good database for local storage in Clojure

2012-01-11 Thread Jeb Beich
sqlite (www.sqlite.org) is another obvious choice, right? On Jan 10, 2012 9:46 PM, Sean Corfield seancorfi...@gmail.com wrote: -- 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: read support for defrecord instances in clojurescript

2012-01-11 Thread Stuart Sierra
It is the intent that the reader/printer in CLJS be feature-compatible with the Clojure reader/printer. Anything short of that is a bug (or functionality that hasn't bene completed yet). -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: goog.debug.Logger from clojurescript or how to hide mutability with a functional approach

2012-01-11 Thread Stuart Sierra
In general, def* forms are not supposed to be nested, although it does work for cases like this. In my limited use of ClojureScript so far, I've gotten over problems like this by having an initialization function, at the bottom of my source file, that sets up global state like loggers. -S --

mysql record field formats

2012-01-11 Thread jayvandal
I 'm having trouble with adding to this table I cand drop the table, create table but can't add this data What is the format error? Thanks for help! (defn create-fruit [] (sql/with-connection db (sql/create-table :fruit [:name varchar(25)] [:appearance varchar(25)] [:cost integer(5)]

Re: 4Clojure exersice question

2012-01-11 Thread blcooley
On Jan 10, 12:03 pm, Erlis Vidal er...@erlisvidal.com wrote: Hi, I'm solving the following exercise and when I'm trying to use the answer: #(reduce + (for [x coll] 1)) I get the error saying that I was using count which I'm not. Someone knows why is that? Is this a bug in 4Clojure or

Re: mysql record field formats

2012-01-11 Thread Sean Corfield
On Wed, Jan 11, 2012 at 6:27 AM, jayvandal s...@ida.net wrote: What is the format error? When you post a question, please post the exact error you get, otherwise how are we supposed to know what format error you are getting? As usual, the code you show in the email cannot be the code you are

Re: 4Clojure exersice question

2012-01-11 Thread Erlis Vidal
Thank you guys, for all the tips! On Wed, Jan 11, 2012 at 11:08 AM, blcooley blcoo...@gmail.com wrote: On Jan 10, 12:03 pm, Erlis Vidal er...@erlisvidal.com wrote: Hi, I'm solving the following exercise and when I'm trying to use the answer: #(reduce + (for [x coll] 1)) I get

Re: Invoking varargs Java methods

2012-01-11 Thread Wolodja Wentland
On Tue, Jan 10, 2012 at 22:46 +, Norman Gray wrote: I've run into a situation which (I think) is the Clojure analogue of http://stackoverflow.com/questions/5672778/class-getmethod-when-parameter-is-varargs, and I'm not sure how to apply the solution there to Clojure (I'm a Clojure

Re: 4Clojure exersice question

2012-01-11 Thread Cedric Greevey
It seems dubious to me that it accuses users of cheating when they clearly had no intent to cheat. Is this intended behavior of 4Clojure or a bug? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: 4Clojure exersice question

2012-01-11 Thread Erlis Vidal
Hi Cedric, You know what? Now I understand what happens but while solving the problem I though something was wrong. Maybe this is something to consider in the future. Thanks for all the responses. On Wed, Jan 11, 2012 at 1:02 PM, Cedric Greevey cgree...@gmail.com wrote: It seems dubious to me

Re: Use You a Spaced Repetition System for Great Good!

2012-01-11 Thread Kai
Hi Tim, Thanks for a thought-provoking reply. Well, I don't need much convincing that literate programming has better outcomes than traditional forms. :) So what's the next step w/ this idea? e.g. perhaps a wiki/list of algorithms, clojure internals, clojure projects that the community

[ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread Brenton
Today we are releasing ClojureScript One. A project to help you get started writing single-page applications in ClojureScript. http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html http://clojurescriptone.com/ https://github.com/brentonashworth/one This project is the result of

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread David Nolen
On Wed, Jan 11, 2012 at 2:27 PM, Brenton bashw...@gmail.com wrote: Today we are releasing ClojureScript One. A project to help you get started writing single-page applications in ClojureScript. http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html http://clojurescriptone.com/

Re: Overtone on FLOSS Weekly

2012-01-11 Thread Sam Aaron
On 11 Jan 2012, at 09:22, Sam Aaron wrote: you might be interested to know that I'm going to be talking about Overtone and Clojure on FLOSS Weekly on Weds the 11th of Jan. The show is now available here: http://twit.tv/show/floss-weekly/197 Enjoy :-) Sam --- http://sma.aaron.name -- You

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread Mark Rathwell
Thank you for this! It looks to be very cohesive and comprehensive, very nice work. On Wed, Jan 11, 2012 at 2:27 PM, Brenton bashw...@gmail.com wrote: Today we are releasing ClojureScript One. A project to help you get started writing single-page applications in ClojureScript.

Re: Literate Programming in Emacs?

2012-01-11 Thread Andrew
As you know, now I get org-babel-execute:clojure:Cannot open load file: swank-clojure The method org-babel-execute:clojure in my .emacs.d/elpa/org-2029/ob-clojure.el file says (require 'swank-clojure). Given that the swank-clojure elisp package is deprecated and should not be used what

[ANN] clj-rpe: Regular Path Expressions on Clojure Java objects

2012-01-11 Thread Tassilo Horn
Hi all, here's my first library that's stand-alone and doesn't have anything to do with our graph library, although the concepts stem from there. clj-rpe enables you to traverse arbitrary object structures (maps, records, java objects) in a declarative manner using regular operators like

Re: [ANN] ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread Ryan Waters
On Wed, Jan 11, 2012 at 1:27 PM, Brenton bashw...@gmail.com wrote: Today we are releasing ClojureScript One. A project to help you get started writing single-page applications in ClojureScript. Can we quote Rich as saying This is Awesome? This looks so thorough and well-executed - very

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread Base
All I can say is WOW! This is absolutely fantastic. Thank you and Congratulations to all who helped put this together. It is so appreciated. Base On Jan 11, 1:27 pm, Brenton bashw...@gmail.com wrote: Today we are releasing ClojureScript One. A project to help you get started writing

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-11 Thread Devin Walters
This is really great. Not only is there great documentation, it's /beautiful/ 'taboo. Thanks to everyone who made this happen. On Wednesday, January 11, 2012 at 7:23 PM, Base wrote: All I can say is WOW! This is absolutely fantastic. Thank you and Congratulations to all who helped put

Re: Overtone on FLOSS Weekly

2012-01-11 Thread Ambrose Bonnaire-Sergeant
Wow, top-notch interview! Ambrose On Thu, Jan 12, 2012 at 3:39 AM, Sam Aaron samaa...@gmail.com wrote: On 11 Jan 2012, at 09:22, Sam Aaron wrote: you might be interested to know that I'm going to be talking about Overtone and Clojure on FLOSS Weekly on Weds the 11th of Jan. The show is

Re: [ANN] clj-rpe: Regular Path Expressions on Clojure Java objects

2012-01-11 Thread Ambrose Bonnaire-Sergeant
Hi Tassilo, I've never heard of RPE's, this is very interesting! Thanks for sharing. Ambrose On Thu, Jan 12, 2012 at 5:17 AM, Tassilo Horn tass...@member.fsf.orgwrote: Hi all, here's my first library that's stand-alone and doesn't have anything to do with our graph library, although the

[no subject]

2012-01-11 Thread Mark Colburn
-- 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. To unsubscribe from this group, send email to

Re:

2012-01-11 Thread Cedric Greevey
You'll need to be a bit more specific. -- 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. To

[ANN] piccup 1.0.0 - hiccup-style clojurescript dom generation (extracted from pinot)

2012-01-11 Thread Dave Sann
Hi all, Because I find it useful in it's own right, I have extracted the hiccup-style dom generation library from pinot. ( https://github.com/ibdknox/pinot) clojars [piccup 1.0.0] for the jar My other motivation for this is due to the dependency that pinot has on goog.dom.query. Since this is

Clojure/West Sessions and Early Bird

2012-01-11 Thread Alex Miller
Hello, The Clojure/West sessions have been selected and posted on the web site: - http://clojurewest.org/sessions I'm proud to say it's a great list, full of people doing real stuff with Clojure at a breadth and depth that I did not realize existed before the CFP. In addition we will have

Overriding toString on defrecords

2012-01-11 Thread Mark Engelberg
This mechanism: (defrecord MyRecord [name] Object (toString [_] name)) no longer seems to control the way that records print at the repl. [It does control what happens when you say (str (MyRecord name)) but not when the repl prints it]. What's the current way to control the way that records

Re: Overriding toString on defrecords

2012-01-11 Thread Baishampayan Ghose
On Thu, Jan 12, 2012 at 11:51 AM, Mark Engelberg mark.engelb...@gmail.com wrote: This mechanism: (defrecord MyRecord [name] Object (toString [_] name)) no longer seems to control the way that records print at the repl. [It does control what happens when you say (str (MyRecord name)) but

Re: [ANN] clj-rpe: Regular Path Expressions on Clojure Java objects

2012-01-11 Thread Tassilo Horn
Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com writes: Hi Ambrose, I've never heard of RPE's, this is very interesting! Thanks for sharing. If you are interested, I've written a whitepaper about my graph query library FunQL: http://userpages.uni-koblenz.de/~horn/funtq-whitepaper.pdf

Re: [ANN] clj-rpe: Regular Path Expressions on Clojure Java objects

2012-01-11 Thread Tassilo Horn
Tassilo Horn tass...@member.fsf.org writes: Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com writes: Hi Ambrose, I've never heard of RPE's, this is very interesting! Thanks for sharing. If you are interested, I've written a whitepaper about my graph query library FunQL: