This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-11
Channels
- # aleph (7)
- # bangalore-clj (11)
- # boot (70)
- # cider (11)
- # cljsjs (3)
- # cljsrn (17)
- # clojure (88)
- # clojure-brasil (8)
- # clojure-dev (17)
- # clojure-greece (1)
- # clojure-italy (6)
- # clojure-poland (8)
- # clojure-russia (2)
- # clojure-spec (44)
- # clojure-uk (32)
- # clojurescript (176)
- # cloverage (2)
- # component (5)
- # cursive (3)
- # datomic (23)
- # defnpodcast (6)
- # dirac (15)
- # emacs (6)
- # garden (19)
- # hoplon (126)
- # leiningen (1)
- # off-topic (3)
- # om (66)
- # onyx (56)
- # re-frame (8)
- # reagent (7)
- # ring-swagger (43)
- # specter (18)
- # untangled (110)
- # vim (3)
- # yada (39)
dunno, maybe (seq (filter nil? s))
Hi guys
i'm using lein 2.7, when i try lein uberjar, it hangs up at compiling foo.bar and never terminate what this refer?
there’s a paid service that hosts private maven deps for you, i can’t remember, the name. it’s not jfrog, sonatype, cloudbees. i know the name had a j in it. anyone?
tha’ts not it. gah. tip of my tongue.
@robert-stuttaford but jfrog (artifactory) does it too right: https://www.jfrog.com/artifactory/
@danielstockton it doesn’t for me. It only fails if i add (stest/instrument)
and change fn args:
(stest/instrument)
(t [1])
It also only fails when i instrument, [1 1]
conforms to ::pattern
but it fails also with [1 1]
as an argument, it looks like [1 1]
gets passed to int?
instead of just 1
@trybeee what version of clojure?
same as me then
@danielstockton you’re right, it fails (i forgot to call (stest/instrument)
before). let’s see what #clojure-spec answers about that
knew it was something simple, thanks
I tried in spec first but thought I might increase my chances here
@bcbradley try in #aleph
then i wanna pass those to another function, which is called like (.bla something req)
or (.bla something req opt1)`, or (.bla something req opt1 opt2)
I'm not certain, but if .bla isn't a native clojure function (if its a javascript or java method), it might not satisfy all the interfaces that clojure functions satisfy
instead of having a function that takes [req & port], have a macro that takes those things
if you don't have the ability to change your function into a macro, perhaps its possible to have it invoke a macro that does what I just said
so as in, the java function is defined multiple times? or it's defined using the elipsis operator?
Hello, I have installed leiningen and cursive on my Windows 10 box and installed then the clojure koans
ohhh you're working in clojurescript... man I don't know that much about the interop there =/ there may be a better way to do it but personally I would just write (cond (= 1 (length opts)) (.alert something (first opts)) ... etc)
it's been a long time since I used clojure. is there an up to date page on how to set up the environment (emacs + some plugin) ?
@tdrgabi there's a bit of variety these days, but primarily Cursive (intellij plugin) and Emacs+CIDER. both have pretty decent "getting started" guides out there
@tdrgabi Also checkout Prelude, from the creator of CIDER, which is basically Emacs + CIDER + everything else you need for programming, nicely set up and configured.
I was wondering, is there a construction in clojure that lets you do something like:
(if-not-locked obj body else)
vs (locking obj body)
?
reading a Java post from 2008 by a guy named Alex Miller: https://dzone.com/articles/reentrantlock-and-dining-philo
I guess something like this would do then: https://gist.github.com/borkdude/88c3c92076709538fb394d5eae30050c
Hi, how can I filter for only the :my/kw
key in the collection [{:my/kw "test" :your/kw "blah"} {:your/kw "foo"}]
? This is what I get:
(filterv :my/kw [{:my/kw "test" :your/kw "blah"} {:your/kw "foo"}])
=> [{:my/kw "test", :your/kw "blah"}]
(->> [{:my/kw “test” :your/kw “blah”} {:your/kw “foo”}] (filter :my/kw) (map :my/kw))
I haven’t used gen-class
before to implement an interface with multiple overloaded arities, e.g. this connect
method: https://maven.apache.org/wagon/apidocs/org/apache/maven/wagon/Wagon.html
What’s the correct way to go about it?
I think what I have done in the past there is instance? checks on the arguments in the implementing function
So something like
(defn connect
([this source & vargs]))
should compile and dispatch all the connect
methods