Re: Newbie trying HTML parsing

2015-10-16 Thread edbond
Hello Mike, Take a look at hickory, it's more straightforward than enlive if you want to find something in html: https://github.com/davidsantiago/hickory (ns .. (:require [hickory.core :as h] [hickory.select :as hs] [cljs.core.async :as a])) let [html

Re: New ring middleware: browser-caching

2015-07-28 Thread edbond
Hello Stephen, Couple of comments about code: Instead of not nil? you can use some? since clojure 1.6: user= (doc some?) - clojure.core/some? ([x]) Returns true if x is not nil, false otherwise. str/split and get by 0 may result in error: user= (str/split : #:) [] user=

Re: core.async: peek the next value from a channel without consuming it

2014-10-06 Thread edbond
Add one more chan, external ready. Put :ok there to let producer generate new value. producer: - read from external ready - generate value - put into outgoing chan client: - contact external server, put in external ready if ok - read from outgoing chan - send to external Handle exceptions and

Re: [Video] Game development in Clojure (with play-clj)

2014-04-16 Thread edbond
Nice video, very cool. Some notes: - you can omit comma ',' in maps {:key value :another value} - can omit contains? in filter: user= (filter :apple? [{:apple? true :x 6} {:apple? true :x 4} {:player? true :x 550}]) ({:apple? true, :x 6} {:apple? true, :x 4}) Thanks again, Eduard On

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-02-27 Thread edbond
Thanks. Can you compare sente with chord? On Wednesday, February 26, 2014 3:57:24 PM UTC+2, Peter Taoussanis wrote: Hi folks, Quick post to announce a new lib release: https://github.com/ptaoussanis/sente From the README: *Sente* is small client+server library that makes it easy to build

Re: java.jdbc 0.3.3 select query exception: clojure.lang.LazySeq cannot be cast to clojure.lang.IFn

2014-02-15 Thread edbond
Make sure your db is correct, see http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html#setting-up-a-data-source Show your db and id values. Best, Eduard On Saturday, February 15, 2014 5:55:35 AM UTC+2, The Dude (Abides) wrote: Hi, I'm writing some queries using java.jdbc 0.3.3 as

Re: java.jdbc 0.3.3 select query exception: clojure.lang.LazySeq cannot be cast to clojure.lang.IFn

2014-02-15 Thread edbond
I spot invalid let here: (defn get-a-member [id] (let [id (parse-int id) member] [member (memberdb/get-member id)] should be (defn get-a-member [id] (let [id (parse-int id) member (memberdb/get-member id)] On Sunday, February 16, 2014 4:01:03 AM UTC+2, The Dude (Abides)

Re: Russian speaking members of Clojure community?

2010-01-04 Thread edbond
Hello Alex, I can review article. My email is edb...@gmail.com Best regards, Eduard On Jan 3, 5:33 pm, Alex Ott alex...@gmail.com wrote: Hello all I want to ask Russian speaking of Clojure community to contact with me - I'm currently writing article about Clojure for Russian journal of