This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-15
Channels
- # admin-announcements (1)
- # alda (12)
- # announcements (1)
- # beginners (5)
- # boot (241)
- # clara (2)
- # cljs-dev (7)
- # cljsrn (9)
- # clojure (54)
- # clojure-conj (7)
- # clojure-russia (12)
- # clojurescript (118)
- # cursive (11)
- # editors (3)
- # hoplon (58)
- # immutant (17)
- # off-topic (58)
- # om (1)
- # onyx (12)
- # re-frame (10)
- # reagent (8)
- # spacemacs (6)
Why would I lose metadata on an object (a defrecord) that I assoc to a defrecord, then retrieve?
I’m not convinced this is that right channel, but I’ll try… Does anyone know how to get the current username from https://github.com/cemerick/friend?
I have successful facebook authentication working, but there’s little in the ring request map of interest.
What’s the simplest way to upload a file (picture) with a compojure app ? Java’s library ? lib-noir (not outdated ?) ? Other ?
Hi. I'd like to deploy a reagent project to tomcat. I created a "lein new reagent myapp" project, then I added the lein-ring plugin. Then I "uberwar" and deploy. But I get the "ClojureScript has not been compiled!" message.... despite it being compiled during the "lein ring uberwar" What am I missing?
xeqi: unfortunately there’s no :username attribute. Infact friend/current-authentication brings back
{:identity {:access-token “blahblahblah"}, :roles #{:friend-oauth2-examples.facebook-handler/user}}
Ah right, its whatever the credentials-fn
returned, which oauth sends back :identity ...
I've only used it for local authentication. Maybe https://github.com/ddellacosta/friend-oauth2/wiki#5-set-up-your-credential-fn-to-find-user-metadata could have something useful
Hm, anyone knows offhand if there is a way for many consumers to take from an async channel, competing for the messages? Is just several go loops doing !<
on the same channel enough, or something has to be done like with mult
or pub
?
@roberto: or you can use medley: http://weavejester.github.io/medley/medley.core.html#var-dissoc-in
I read the online version some time ago, so I don't remember the excercises very well sorry!
anyone tips for exercise 5 and 6 of this page : http://www.braveclojure.com/do-things/
at that point I have nothing. I have no idea how to solve this. changing the first half and named it middle or change something in the other functions which makes the left part
on FP we are always trying to achieve pure function/referential transparency. The FP holy grail. In a web application , how you guys are trying to achieve that ? the handler will receive Database / Email / Remote Services / http Request ?
(POST "/endpoint" request (handler db email-service remote-service request))
roelof: perhaps being comfortable with adding stuff to maps will help? You should be able to go from
{:a 1} -> {:a 1 :b 2}
. Then the problem becomes how do you read a key -> rename it -> add new key into map.tdantas: I understand your frustration. I suppose stuart sierra’s component (or similar libs) can help you decomplect the calls depending on other systems. I still have to try it myself though.
tdantas: I often try to isolate the state mutation on the “outside”, though this is often a design problem. There’s not often a single way to do this.