This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (4)
- # aleph (1)
- # beginners (15)
- # boot (55)
- # braveandtrue (5)
- # cider (20)
- # clara (10)
- # cljs-dev (13)
- # cljsrn (8)
- # clojure (52)
- # clojure-austin (30)
- # clojure-brasil (2)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-russia (72)
- # clojure-sdn (9)
- # clojure-taiwan (2)
- # clojure-uk (45)
- # clojurebridge (3)
- # clojured (1)
- # clojurescript (46)
- # core-matrix (1)
- # cryogen (1)
- # cursive (43)
- # datascript (12)
- # datomic (57)
- # devcards (54)
- # emacs (6)
- # funcool (21)
- # hoplon (335)
- # jobs (15)
- # jobs-rus (40)
- # ldnclj (2)
- # lein-figwheel (20)
- # off-topic (59)
- # om (157)
- # onyx (29)
- # parinfer (2)
- # pedestal (26)
- # proton (9)
- # protorepl (2)
- # reagent (3)
- # ring-swagger (4)
- # spacemacs (2)
- # untangled (17)
Hi, all. we are working on a project replay. when we receive like 10M requests at 24 hours per day in env A, the system needs to replay it in env B.
what do you guys recommend as a web server? I am looking into jetty, http-kit, and immutant and those all seem pretty nice
Right now I am about to begin some piece of code that will be statefull internally. It is an authorized connection to a server which should automatically re-authorize when a token expires. How would you go about such a thing? Create a local
let and return a general function which takes a keyword arg what method to call on the server? Create a local
atom and return a hashmap containing the various functions to call? Use a protocol and a record? Anything else?
@schaueho: I know, but the REST API is the way it is. Let's be all pragmatic about this 😉
Hi, I’m struggling since a couple of days to have my langohr client to consume RabbitMQ messages. I’m sure, I have a pb in the declare/bind part but cannot figure out where. http://pastebin.com/DcyxxAqy
my exchange is named data and the queue from which I want to get consume message is named « ALERT »
@schaueho: I will eventually get a HTTP 403. This is sessions based on auth tokens based on user creds. 403 Session expired => create new one with auth token, can't create because auth token expired => create new auth token based on user creds (which will be in the environment)
@mikera: Just wanted to say thanks for core.matrix! I’ve been trying to make use of minimize in the incanter.optimise library, and it was just taking an age on the function I was attempting to optimise! I’ve just spent the afternoon refactoring my code to run with matrices and optimise now find the solution almost instantaneously!
The webhdfs-clj library does some things, spacepluk. It's an option. https://github.com/rdsr/webhdfs-clj
Hey @lucj06. I just got your code working on my machine with a local install of RMQ. Are you sure it’s publishing on that queue?
Double check the connection hostname, because it hangs for a looooong time when trying for a bad hostname
I'd like to loop in a
go block unless the
out is closed. Is there a way to ask if a channel is closed?
anyone ever see
try* already refers to: #'potemkin.macros/try* in namespace: potemkin.collections on clj-http 2.1 and clojure 1.8.0 ?
@bridget @spacepluk I thought I'd mention that I have been hesitant to use that library due to how it handles authentication: https://github.com/rdsr/webhdfs-clj/blob/master/src/webhdfs_clj/auth.clj#L28. I could be wrong, but it seems like that could result in your credentials being sent to a host other than the one you intended.
fommil: not directly, AFAIK. (a/<! out) will return immediately if out is closed though
albaker: if I recall there were a number of mailing list threads about it, and I think the latest potemkin should be all fixed, but I don't have first hand experience
@jamesleonis: in your code, the publish does not seems to be done on the ALERT queue (lb/publish ch ex "" "Hello") but to the one with empty name (meaning all existing queue bind to this exchange ?), while the consumer listens on the ALERT queue. If I change the publisher to (lb/publish ch ex "ALERT" "Hello") the consumer does not get the message anymore (not displayed in the REPL)
@spacepluk: Depends on what you want to do with hdfs. I use Parkour quite a bit, but if you need something lower level, I usually just wrap the Apache java libraries.
@lucj06: The Publisher isn’t aware of the queues. It can only publish based on routing keys. The 3rd param above is for the routing key, but there isn’t a :routing-key declared on your
bind function, so it doesn’t know to look for it.
(lb/publish ch ex "ALERT" "Hello”) to work, you need something like
(lq/bind ch queue-name topic-name :routing-key “ALERT”)
@jamesleonis: ok, got it. because in the example, the queue-name set to « ALERT » does not have any influence in fact
is there a way to
require dynamic variables from a namespace without the prefix? (without having to write each one out by hand)
i.e. I have a file
twitter.clj with a couple of dynamic variables, and a couple of functions. I want to import all the functions
:as twitter but be able to
:refer to the dynamic variables
@jamesleonis: thanks for your help, I will check my server configuration. I think I messed up the routing key and queue names.
@fommil (require ['clojure.core :refer (map :name (filter :dynamic (map meta (vals (ns-publics 'clojure.core)))))])