This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-18
Channels
- # admin-announcements (12)
- # adventofcode (2)
- # beginners (10)
- # boot (340)
- # cljs-dev (1)
- # cljsrn (30)
- # clojure (79)
- # clojure-germany (4)
- # clojure-japan (4)
- # clojure-nl (2)
- # clojure-russia (141)
- # clojurescript (125)
- # core-async (9)
- # datascript (2)
- # datavis (8)
- # datomic (9)
- # editors (5)
- # editors-rus (4)
- # hoplon (69)
- # ldnclj (63)
- # off-topic (1)
- # om (291)
- # parinfer (7)
- # portland-or (3)
- # proton (248)
- # rdf (3)
- # re-frame (14)
- # remote-jobs (4)
I did, lein new test, then cd test, then lein run but it gave me error No :main namespace specified in project.clj.
@zereraz: you probably already figured it out but lein new test
creates a test
"library" project, whereas lein new app test
creates an "application" project which you can lein run
out of the box.
@seancorfield: yeah, thanks
hey all! I wonder if it's possible to access my .clj source file when all I have is a StackTraceElement? Basically I want to post some part of my source code to Sentry and I can't figure out how to proceed... I can get class name, for example, but it looks like clojure.core$apply
or io.pedestal.impl.interceptor$try_f
- what's the best way to get to actual file?
@asolovyov: demunge
+ source
maybe?
maybe put a resolve
inbetween
@martinklepsch: thanks! I actually did stuff, but in very weird way
it's in clojure.main though
@asolovyov: you could inspect the code in https://github.com/magnars/prone/ to see how it does those things.
@magnars: oh, so much great stuff, I'll surely just depend on that damn, I just reinvented 20% of your library :-)))
What is a good GUI front-end for a text editor? On the JVM you can use swing, but I'd like to have something that doesn't feel so... Java-y to use. Is JavaFx any good? Is it possible to use GTK or something instead? No big requirements, just has to display text in different fonts/colors (and same for the background) as well as take keyboard and maybe mouse input.
does anyone know how to fix the following security error when deploying an uberjar with buddy? java.lang.SecurityException: JCE cannot authenticate the provider BC
yeah, either use something else other than BouncyCastle, or go through all the acrobatics to add a signature
@magnars: I'm trying to port prone middleware to pedestal and I have one problem: pedestal gives you different functions for :enter, :leave and :error, and I'm not quite sure how to best bind debug/*debug-data*
in that case. What I did right now is: http://paste.in.ua/1103/ - but this is not working for me, since :error
is called much later after prone
returns...
When a form is passed through Compojure "params" and a field is empty, is it "nil" or ""
@hkjels: do you want to stream video file or just let people download it? if you want to stream it, you have to work with Accept-Ranges/Content-Ranges headers (set it, read it, read the file to specific offset, etc). the best way would probably to serve it via nginx or some other web-server, that can handle all that for you. file-response
will just stream entire file and browser will unappy with it (vlc and ffplay will play it, but you will not be able to seek)
@codemartin: @jackrusher made a thing using JavaFx's webview thing in combination with codemirror, maybe he can provide you a little snippet
@martinklepsch: That could definitely be something worth checking out!
I'll present a few friends to Clojure tomorrow and I'd like to solve some problems in a Dojo. Does anyone know of a good repository of not so introductory problems tailored to highlight the functional aspects of the language?
@samflores: I saw this earlier today, not really what you're asking for but might be interesting to them. http://mishadoff.com/blog/clojure-design-patterns/
Also might be interesting - https://github.com/bhauman/advent-of-clojure
And https://github.com/marick/fp-oo along with the book
thanks, @shaun-mahood
If you haven't seen this talk, I found it really good. Basically the steps he followed to teach Clojure to a bunch of C# developers. https://www.youtube.com/watch?v=BsLiPt90HDo
Might not apply at all, was helpful for me to translate SQL thinking though https://github.com/mythz/clojure-linq-examples
No problem - I'm still trying to convert to a functional mindset so they're pretty close at hand
Does anyone know how to leverage the PostgreSQL string concatenation operator (i.e., ||
) in HoneySQL?
i should probably know this but is there something that's equivalent to (and (coll? x) (not (map? x))
@erik_price There’s an fn-handler
multimethod you can hook into, iirc
@noprompt: is sequential?
useful to you?
@alexmiller: unfortunately no, because (sequential? #{...}) => false
.
@the_pk but there’s definitely a steeper learning curve if you’re unfamiliar w/ java. not too bad though
donaldball: thanks! I ended up escaping out to sql/raw