This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-17
Channels
- # admin-announcements (17)
- # announcements (1)
- # aws (8)
- # beginners (5)
- # boot (125)
- # cider (28)
- # clojure (33)
- # clojure-berlin (21)
- # clojure-italy (1)
- # clojure-japan (1)
- # clojure-nl (12)
- # clojure-poland (90)
- # clojure-russia (120)
- # clojurescript (284)
- # clojurex (2)
- # cursive (6)
- # datomic (14)
- # devcards (4)
- # events (2)
- # funcool (2)
- # hoplon (238)
- # ldnclj (32)
- # off-topic (27)
- # onyx (9)
- # re-frame (3)
- # reagent (22)
I’m maintaining too
What’s up?
In a project with the latest Lein/Clojure/everything, I see:
Could not transfer artifact blah:common:pom:0.1.0-SNAPSHOT from/to releases (): No connector available to access repository releases () of type default using the available factories FileRepositoryConnectorFactory, WagonRepositoryConnectorFactory
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
can you share your whole project.clj
?
Perhaps previously, shouldn’t need to with the new plugin though?
Hi all, I’m trying to work out an issue I’m having with Compojure & @cemerick ’s Friend. I want to have two different login-uris, and redirect to one for routes requiring one role, and the other URI for routes requiring the other role. Do I need to create a custom workflow function, or is there a simple way I can influence the existing interactive form workflow to make it behave the way I want?
Unlike swap!
, the doc for send
doesn't mention any concern with side-effects. Does that mean it's safe to assume that the function passed to send
will only be called once?
yes, it will be called once and can have side effects
send (and send-off) produce functions that are applied (one at a time) to the agent state, so there is no possibility of a conflict that would cause retries
is there a current best practice for folding config parameters into building a WAR file (i.e. via lein ring uberwar
)? I have to deploy to tomcat currently and have to embed config parameters that vary between dev and prod. lein-filegen
, maybe?
I just launched my first uberjar
live today Any recommendations regarding JVM arguments ? (like Xmx256m or else ?). I launch it with java -jar my-uberjar.jar for now.
lein-resource
appears to still be sufffering from the clojure.data/priority-map
/ :aot
bug.(https://github.com/m0smith/lein-resource/issues/15)
(def my-list {:web01 {:ip "192.168.0.1"
:tags ["web" "production"]}
:db01 {:ip "192.168.0.2"
:tags ["database" "production"]}})
I want to look up servers by tags. Is this a good structure? How would I find db01 by looking for the tag database?@mocker: you'll likely find using a set rather than a list for your tags makes it easier to check whether the tag set contains a particular value
because you have not indexed by tags (something you could do in addition if you like), you will need to examine every map entry and filter just the entries that have a particular tag in their tag set
if you changed tags from [ ] to #{ }, you could do something like (filter (fn [[k {:keys [tags]}]] (contains? tags "database")) my-list) to produce a sequence of map entries with the tag database
depending what you're going to do with the results, there might be other things that would be better
@alexmiller: Thanks, I'll play around with that.
Hey, I’m using test.check to generate values for some tests. Is there a way to specify that I want a unique set of values over a test run?
wait: you mean inside an individual generate, or over the whole set of like 100 or whatever runs?
I’m running tests inside of a transaction, but I occasionally am violating uniqueness constraints.