Re: Digest for clojure@googlegroups.com - 8 Messages in 6 Topics
Sent using BlackBerry® from Orange -Original Message- From: clojure@googlegroups.com Sender: clojure@googlegroups.com Date: Sat, 07 Jan 2012 00:21:58 To: Digest Recipientsclojure@googlegroups.com Reply-To: clojure@googlegroups.com Subject: Digest for clojure@googlegroups.com - 8 Messages in 6 Topics = Today's Topic Summary = Group: clojure@googlegroups.com Url: http://groups.google.com/group/clojure/topics - ClojureScript DOM-manipulation library? [2 Updates] http://groups.google.com/group/clojure/t/7e58d78a93febd9e - add records in mysql [2 Updates] http://groups.google.com/group/clojure/t/5da31681ef2f3679 - [Tutorial] Making core.logic work with custom data structures [1 Update] http://groups.google.com/group/clojure/t/830edc3723e27fb0 - On using atoms together with side effect functions [1 Update] http://groups.google.com/group/clojure/t/d36691798d211be9 - Storing clojure lists and maps in Redis [1 Update] http://groups.google.com/group/clojure/t/a83e8b42715ced32 - question from wikibooks page on macros? [1 Update] http://groups.google.com/group/clojure/t/a33b558e27eca7bc = Topic: ClojureScript DOM-manipulation library? Url: http://groups.google.com/group/clojure/t/7e58d78a93febd9e = -- 1 of 2 -- From: Shantanu Kumar kumar.shant...@gmail.com Date: Jan 06 01:20PM -0800 Url: http://groups.google.com/group/clojure/msg/2f5c10f4a99deedd Thanks everybody for responding. I will look at the mentioned projects. Shantanu -- 2 of 2 -- From: Takahiro Hozumi fat...@googlemail.com Date: Jan 06 02:01PM -0800 Url: http://groups.google.com/group/clojure/msg/9433ad8738b58f84 ($ selector (css attribute atom)) could wire an atom to a css (or other) dom attribute, by placing a watcher on the atom and automatically updating the dom on change.Interesting idea! = Topic: add records in mysql Url: http://groups.google.com/group/clojure/t/5da31681ef2f3679 = -- 1 of 2 -- From: jayvandal s...@ida.net Date: Jan 06 01:56PM -0800 Url: http://groups.google.com/group/clojure/msg/e3965f6770ec3590 I tried this code : (defn add-ausers [user] (sql/with-connection db (sql/insert-record :books user [INSERT INTO books(BOOK_ID, BOOK_NAME, BOOK_PRICE, BOOK_AUTHOR) VALUES('%','joe','12', 'siley')]; (println rows user= (mysql.core/add-ausers) java.sql.SQLException: Can not issue data manipulation statements with executeQu ery(). (NO_SOURCE_FILE:0) What is Query?? -- 2 of 2 -- From: jayvandal s...@ida.net Date: Jan 06 01:58PM -0800 Url: http://groups.google.com/group/clojure/msg/976ac033a880f35d i am using leinningen and mysql example. I can select records as: (defn list-ausers [] (sql/with-connection db (sql/with-query-results rows [SELECT * FROM books WHERE BOOK_ID = '1'] (println rows but I can't insert records,i doesn't like the query as: (defn add-ausers [] (sql/with-connection db ;(sql/with-query-results rows sql [INSERT INTO books(BOOK_ID, BOOK_NAME, BOOK_PRICE, BOOK_AUTHOR) VALUES('2','joe','12', 'siley')] (println rows) why or? ;) )) = Topic: [Tutorial] Making core.logic work with custom data structures Url: http://groups.google.com/group/clojure/t/830edc3723e27fb0 = -- 1 of 1 -- From: Tassilo Horn tass...@member.fsf.org Date: Jan 06 10:44PM +0100 Url: http://groups.google.com/group/clojure/msg/8170558c4f30f0f Hi all, after spending the last two days making clojure.core.logic work with our custom Java data structures, I decided to write a short blog posting about it. Here it is: http://tsdh.wordpress.com/2012/01/06/using-clojures-core-logic-with-custom-data-structures/ A bunch of compliments and thank-yous to Ambrose, who was something like my 24/7 support center over last 2 days. :-) Bye, Tassilo = Topic: On using atoms together with side effect functions Url: http://groups.google.com/group/clojure/t/d36691798d211be9 = -- 1 of 1 -- From: Alan Malloy a...@malloys.org Date: Jan 06 01:34PM -0800 Url: http://groups.google.com/group/clojure/msg/dd51fc1bb317ad92 (let [result (side-effect-fn! (:input
Re: Digest for clojure@googlegroups.com - 8 Messages in 6 Topics
On Sat, Jan 7, 2012 at 8:01 AM, dawid...@gmail.com wrote: Sent using BlackBerry® from Orange From: clojure@googlegroups.com Sender: clojure@googlegroups.com Date: Sat, 07 Jan 2012 00:21:58 + To: Digest Recipientsclojure@googlegroups.com ReplyTo: clojure@googlegroups.com Subject: Digest for clojure@googlegroups.com - 8 Messages in 6 Topics Today's Topic Summary Group: http://groups.google.com/group/clojure/topics ClojureScript DOM-manipulation library? [2 Updates] add records in mysql [2 Updates] [Tutorial] Making core.logic work with custom data structures [1 Update] On using atoms together with side effect functions [1 Update] Storing clojure lists and maps in Redis [1 Update] question from wikibooks page on macros? [1 Update] [snip] Where's the original material in this? It's nearly all quoted text, the original material is inline somewhere rather than at the end, there's no obvious marker for the original material such as different indentation, and the post as a whole, including quoted text, is tl;dr. Next time, please quote only the sections relevant to whatever you're saying, and please indent the quotes so your original text stands out, especially if it isn't all at the bottom (or, ugh, the top). Your mailer should do the latter for you automatically, in fact; I'm not sure why it didn't in this case. -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: ClojureScript DOM-manipulation library?
On Fri, Jan 6, 2012 at 2:02 PM, kovas boguta kovas.bog...@gmail.com wrote: I think what matters is the design. Jquery is an accessible implementation target, but if someone wants to retarget the design to gclosure, thats fine too (just more work than is need to get started) Chris and Kovas - By going with jquery how well does your clojurescript compile-time check and minify? Have you written anything that sufficiently tests compatibility with the gclosure compiler? - Ryan -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: [Tutorial] Making core.logic work with custom data structures
This is excellent. Thank you. On Friday, January 6, 2012, Tassilo Horn tass...@member.fsf.org wrote: Hi all, after spending the last two days making clojure.core.logic work with our custom Java data structures, I decided to write a short blog posting about it. Here it is: http://tsdh.wordpress.com/2012/01/06/using-clojures-core-logic-with-custom-data-structures/ A bunch of compliments and thank-yous to Ambrose, who was something like my 24/7 support center over last 2 days. :-) Bye, Tassilo -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: [Tutorial] Making core.logic work with custom data structures
Echoing the others: Thanks! -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: add records in mysql????
Documentation: http://clojure.github.com/java.jdbc/doc/clojure/java/jdbc/UsingSQL.html On Friday, January 6, 2012, jayvandal s...@ida.net wrote: I tried this code : (defn add-ausers [user] (sql/with-connection db (sql/insert-record :books user [INSERT INTO books(BOOK_ID, BOOK_NAME, BOOK_PRICE, BOOK_AUTHOR) VALUES('%','joe','12', 'siley')]; (println rows user= (mysql.core/add-ausers) java.sql.SQLException: Can not issue data manipulation statements with executeQu ery(). (NO_SOURCE_FILE:0) What is Query?? On Jan 6, 1:20 pm, Allen Johnson akjohnso...@gmail.com wrote: You'd want to use one of the insert functions for that: (defn add-user [user] (sql/with-connection db (sql/insert-record :books user))) http://clojure.github.com/java.jdbc Allen On Fri, Jan 6, 2012 at 3:13 PM, jayvandal s...@ida.net wrote: i am using leinningen and mysql example. I can select records as: (defn list-ausers [] (sql/with-connection db (sql/with-query-results rows [SELECT * FROM books WHERE BOOK_ID = '1'] (println rows but I can't insert records,i doesn't like the query as: (defn add-ausers [] (sql/with-connection db ;(sql/with-query-results rows sql [INSERT INTO books(BOOK_ID, BOOK_NAME, BOOK_PRICE, BOOK_AUTHOR) VALUES('2','joe','12', 'siley')] (println rows) why or? ;) )) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email tocloj...@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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Disequality
Hey David, From the readme the failing disequality example: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) gives me ([1 2]) Shouldn't it be: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
core.logic - Disequality
Hey David, From the readme, the failing disequality example: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) gives me ([1 2]) Shouldn't it be: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Disequality
Hi On 8 January 2012 06:20, jim jim.d...@gmail.com wrote: Hey David, From the readme the failing disequality example: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) gives me ([1 2]) Shouldn't it be: (run* [q] (fresh [x y] (!= [x 2] [1 y]) (== x 1) (== y 2) (== q [x y]))) Either you have pasted the example twice or you have pasted your solution twice. I don't know which. -- Michael Wood esiot...@gmail.com -- 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en