This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-15
Channels
- # admin-announcements (2)
- # beginners (93)
- # boot (34)
- # capetown (1)
- # cider (15)
- # cljs-dev (30)
- # cljsjs (9)
- # clojars (8)
- # clojure (199)
- # clojure-austin (3)
- # clojure-france (3)
- # clojure-greece (2)
- # clojure-italy (46)
- # clojure-quebec (7)
- # clojure-russia (2)
- # clojure-spec (76)
- # clojure-uk (16)
- # clojurescript (43)
- # core-async (7)
- # cursive (14)
- # data-science (1)
- # datascript (4)
- # datomic (3)
- # devcards (60)
- # editors (5)
- # funcool (5)
- # garden (3)
- # hoplon (32)
- # immutant (22)
- # jobs (1)
- # lein-figwheel (21)
- # leiningen (1)
- # mental-health (11)
- # mount (2)
- # off-topic (6)
- # om (16)
- # onyx (15)
- # re-frame (43)
- # reagent (20)
- # rum (18)
- # specter (37)
- # sql (2)
- # testing (8)
- # untangled (7)
- # yada (19)
måning
Hey all, hopefully a quick one….
Can anyone suggest why mapping over this:
#object[java.util.Collections$UnmodifiableRandomAccessList 0x60a7e509 [{date=2016-06-13, quantity=37, cost=0, mileage=24}, {date=2016-06-17, quantity=33.61, cost=37.95, mileage=426}, {date=2016-06-20, quantity=22.12, cost=24.97, mileage=683}, {date=2016-06-24, quantity=36.69, cost=41.42, mileage=1134}, {date=2016-06-30, quantity=36.95, cost=40.61, mileage=1577}, {date=2016-07-06, quantity=39.71, cost=44.83, mileage=2063}, {date=2016-07-09, quantity=25.58, cost=28.88, mileage=2386}, {date=2016-07-16, quantity=32.72, cost=36.94, mileage=2783}]]
with
(map
(fn [m]
(update m "date" (fn [d] (f/parse (f/formatter :date) d))))
(.asMaps fill-ups))
causes
java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to clojure.lang.Associative
Looks like you’ll need to use whatever methods UnmodifiableMap provides, rather than update
@minimal: yeah. I was expecting .asMaps to return a sequence of clojure maps, but it doesn’t appear to be...
I’ve been hacking at ActiveMQ using Jepsen, and discovered that Java exclusive FileLocks aren’t actually exclusive - at least not how ActiveMQ uses them.
Seems ActiveMQ’s “shared filesystem master/slave” model is fundamentally broken when you have a network split. Whee! 🙂
having an absolute blast with Purescript
how are you interacting with the dom ? through a react wrapper @martintrojer , or some other way ?