This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-14
Channels
- # admin-announcements (17)
- # announcements (4)
- # beginners (47)
- # boot (347)
- # braid-chat (55)
- # bristol-clojurians (5)
- # cider (5)
- # cljs-dev (1)
- # clojure (111)
- # clojure-chicago (1)
- # clojure-russia (73)
- # clojure-ukraine (2)
- # clojurescript (162)
- # code-reviews (1)
- # community-development (199)
- # core-matrix (2)
- # cursive (29)
- # datomic (40)
- # devcards (13)
- # dirac (37)
- # docs (12)
- # editors-rus (2)
- # emacs (11)
- # events (26)
- # hoplon (2)
- # jobs (8)
- # ldnclj (31)
- # lein-figwheel (2)
- # off-topic (7)
- # om (59)
- # other-lisps (1)
- # portland-or (1)
- # proton (50)
- # re-frame (5)
- # reagent (13)
- # ring-swagger (5)
- # spacemacs (3)
- # yada (3)
I’m looking for (into [] xf [{:a 1} {:b 2} {:c 3}]) ;; => [{:a 1} {:a 1 :b 2 :c 3}]
or similar
woo, I got it:
(defn merging
[rf]
(let [prev (volatile! {})]
(fn merging-reducer
([] {})
([final] (rf final))
([acc x]
(let [merged (vswap! prev merge x)]
(rf acc merged))))))
@codefinger: got the quoteaguard static set up, thank you
jtackett: ah yea. i was actually looking at it again and couldn't figure that part out
seems clj-http doesn't support proxy auth?
but the underlying Apache HTTP Client does, so must be possible
thanks @donaldball
np I was just researching the connection pooling the other day
@codefinger: and @donaldball ball if you’re interested I can walk you through it
Yea would love to see a code example
Hi i am having problem with following `(rs/swagger-json {:paths {"/foo" {:post {:parameters {:body {(s/enum :a :b) s/Num}}}}}})`
Somehow the title is nil, but shouldn't. Also my own code always results into nil, when xml-> is used.
@danielgrosse: the trouble is your zipper is pointing at the :page root element already, so you don’t need to specify a :page selection.
@korny thank you. I already found this out by trying. Now your explanation makes sense.
@kul: did you try with the latest version? 0.22.2
came out yesterday, had a fix to handle the additionalProperties. btw, there is a #C06GSN6R2 channel
i used that to extract parts of the Finnish Meteorological Institute weather forecast data from a humongous XML file and thought it was quite elegant
riemann/send-event dies for me with Class com.google.protobuf.UnmodifiableLazyStringList does not implement the requested interface com.google.protobuf.ProtocolStringList
, though protobuf is version 2.6.1 as requested by riemann client. Any ideas what can I do?
@asolovyov: have you checked the deps actually on your classpath? lein deps :tree
or similar?
@ragge: yeah, I did (System/getProperty "java.class.path")
and protobuf is 2.6.1...
@asolovyov: can you provide a stacktrace?
user> (filter #(.contains % "protobuf") (.split (System/getProperty "java.class.path") ":"))
("/Users/piranha/.m2/repository/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.jar")
that's clojurescript... but I have it specified as [org.clojure/clojurescript "1.7.228" :classifier "aot" :exclusions [com.google.protobuf/protobuf-java]]
, so I really have no ideas what to do...
The new http://clojure.org is now up!
still lots to do there of course, but nice to have it live
alexmiller: why does the front page have the typo "Pogramming" but the entire git history of the repo doesn't have it?
Blame mutability.
I blame mutability.
the home page is the only page sourced out of a separate style repo
I have fixed the typo and will redeploy in a bit - thanks!
it's up (pending cache invalidations on your path to the content)
is there a nicer way than (some identity [false nil false "x"])
to detect if there's any truthy value in a collection?
@ghadi: don't care
actually was doing (not-any? true? ..)
until I noticed that true?
means what it says 😛
I like some
more than i like the mental overhead of two question marks. My mind is feeble in the morning...
@alexmiller: Nice. Not sure tho if "downloads" wouldn't look better than "releases"
we're going to stay with releases for now, but we've gone back and forth on it
@alexmiller: a typo, "Concurrent Progrmming", in the left sidebar on this page http://clojure.org/about/rationale
thx, will fix
that's in the private style repo
if a java method returns a Map<String,Object>
, what is the easiest way to access that from Clojure like a map? Can I just treat the Java Map like a Clojure map? into
?
if you really need it to have the exact same semantics as clojure maps, then yeah pour it into one with into
hello
is this a good place for questions about Cursive?
@jcromartie: You probably want the #C0744GXCJ channel
A bit more about the new http://clojure.org: http://clojure.org/news/2016/01/14/clojure-org-live
@alexmiller: Is there some kind of roadmap for Clojure or should we look into Jira for that?
wonderful!
@alexmiller: or is Clojure finished?
I like the return of the easy to browse API reference material.
@borkdude: not really other than http://dev.clojure.org/display/design/Release.Next+Planning
I don't think it's finished :)
@alexmiller: The site is looking beautiful, congrats
now we just need the same for clojurescript :)
hello all! I need to work with Apache Spark using Java API. In Java tutorials for Spark there are a lot of examples of using foreach function or other lambdas. How I can call foreach fn from Clojure? I can't use clojure seq or map because foreach in Spark has special meaning (it is an action function). So I must call foreach fn and I can't find any examples of interop between Java 8 and Clojure for new J8 features.
thanks.
@alexmiller: : http://clojure.org looks great!
alexmiller: https://www.clojure.org
alexmiller: I’m sorry; I thought you just replied saying you didn’t care so much because it’s a static site.
I’m not sure I understand that argument, since, sure, it’s a static site, with a big green call to action button to install some software
ah, sorry I am watching like 19 communications channels and that was like 100 communications ago for me
I am with you now
I will take a look at it
@alexmiller: I am watched on the clojure-site repo and you are getting swarmed. Good luck with the next few days and great job with the site
I don’t know if convincing people that it’s realistic is important, but I’m also volunteering for that part. I do security for a living, this is super trivial, with off the shelf software and zero config.
@kamn thx! love that people can help.
@lvh I'll take a look at it
sure thing