This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-02
Channels
- # admin-announcements (33)
- # announcements (2)
- # beginners (75)
- # boot (340)
- # braid-chat (6)
- # cider (30)
- # cljsrn (44)
- # clojars (19)
- # clojure (169)
- # clojure-austin (12)
- # clojure-czech (1)
- # clojure-japan (6)
- # clojure-miami (1)
- # clojure-poland (7)
- # clojure-russia (83)
- # clojurebridge (4)
- # clojurescript (166)
- # community-development (55)
- # component (2)
- # core-async (39)
- # core-matrix (3)
- # cursive (32)
- # data-science (3)
- # datavis (3)
- # datomic (58)
- # dirac (28)
- # emacs (4)
- # events (7)
- # hoplon (254)
- # immutant (29)
- # jobs (2)
- # jobs-discuss (4)
- # ldnclj (35)
- # lein-figwheel (3)
- # mount (202)
- # off-topic (9)
- # om (123)
- # onyx (22)
- # parinfer (112)
- # proton (11)
- # re-frame (6)
- # reagent (43)
- # ring (3)
- # spacemacs (2)
question: has anyone tested https://github.com/drewr/postal on Windows environment?
hey @trancehime it wraps javamail, which is extensively used. it should work if you have an smtp server and configure it to use smtp (not sendmail)
jethroksy: http://www.journaldev.com/2800/java-8-date-time-api-example-tutorial-localdate-instant-localdatetime-parse-and-format see first section "Why do we need new Java Date Time API?"
@jethroksy: basically you get ~JodaTime in the standard JVM package.
Has clojure caught up with python and R in terms of exploratory data science? I know there are Incanter and various machine learning packages for clojure.
@crocket: @mikera gave a local talk on that last week, and my general impression is that it's coming really close. Core.matrix doesn't have all the things NumPy has yet, but most of the core stuff is already implemented. He's working on a top-secret library with a team, of which no details has been leaked 😶
R's great but only for data science, and when you try to push beyond that you'll end up with lots of problems
I daresay not; R is explicitly geared towards statistics; you'll get loads of statistics, bioinformatics, machine learning and such packages for it. Of course in Clojure you can use Java libraries for those tasks, but it's somewhat different than using language that was created from ground up for those specific niche.
Pfff, I don't like it that much either; the subtle things like differences between []
, [[]]
and $
for example are vexing. But you can't deny it has a rich set of libraries for all those tasks.
14 companies in HN who’s hiring mentioning Clojure, 9 of them seem to be totally or mostly Clojure
But I don't think anything's as convenient as in R. You can vcov(model)
to get variance-covariance matrix; residuals(model)
to get residuals and so on.
IIRC @mikera told me he was working on a machine learning library. I use core.matrix and like it, but I don't use it for data science.
You can even do confint(model)
to get a confidence interval without knowing the error propagation formula.
Meh, me neither. Statistics is damn hard. All that I just said is what I had to learn while helping my sister with her engineering thesis because her advisor couldn't be arsed to help : V (didn't know a smidgen of R until a month ago)
http://incanter.github.io/incanter/optimize-api.html#incanter.optimize/non-linear-model actually looks pretty close to nls
to be honest
http://www.datasciencecentral.com/profiles/blogs/clojure-machine-learning-statistics-libraries
The point still stands though - R is certainly richer, being a language focused on statistics that has been around for close to 15 years.
Clojure is cool and all, but you will probably need to put a bit more effort to achieve the same you would with a few lines of R.
what are people using for facebook graph?
how indeed?
Just the way Java does - with threads. Immutability and being (mostly) referentially transparent gives nice, simple performance boosting changes, like using pmap
instead of map
to utilise all CPU cores.
What is the meaning of No implementation of method: :render of protocol #'compojure.response/Renderable found for class: java.lang.Integer
?
Professor. Lee Spector said Actually getting the hoped-for multicore speedups, however, can be more difficult on clojure
.
@trancehime: you can pass different types of things to compojure, and it wil know how to handle them and render a response, e.g. a string or a map
;; route that returns a map
(GET "/" request {:status 200, :body "<h1>hello world</h2>"})
I'm guessing you have a route that passes a number to compojure (a java.lang.Integer), and it doesn't know what to do with that
Never mind. I think I have an idea of where the error is coming from.
(I was passing the wrong map to my route)
The code is riddled with typos and silly errors; that's what I get for working in a hurry
Does anyone else have issues with CIDER/Emacs on Ubuntu? cider-jack-in
taking an absolute age to startup.
@jasonbell: Hi Jase, nice to see u. Might be worth asking this in the #C0617A8PQ channel?
@agile_geek: apols didn’t realise there was one, nice to see you too my friend, all well?
@jasonbell: I'm fine. One of the advantages of #C0617A8PQ channel is you get to talk to Bug (@bozhidar) and that's always a pleasure!
@agile_geek: just asked there so thanks for the nod in the right direction,
Hi. Any Cursive users around?
@michael_at_sosupper: although you may want to ask in #C0744GXCJ
@val_waeselynck: willdo, thanks
@tesseract: #C0GCNE3B3
In a REPL, I can scroll back through command history one item at a time, but is it possible to list the history (within the REPL) much as I do "history" from a shell?
@michael_at_sosupper: Good question. I don't know, but (1) my guess is that it's controlled by the GNU readline
library, and (2) I rarely use this feature in the shell, in favor of CTRL-R
for reverse searching.
jjttjj: Yeah apparently
@jeff.terrell: it's just something I would like to get a visual on my workflow (or to remind myself after getting interrupted)
Makes sense, yeah. If you find a way to do this, I'm interested to know.
@jjttjj: there’s connectivity issues at Linode Atlanta.
While clojars is down, you can use the mirror for reads: https://github.com/clojars/clojars-web/wiki/Mirrors
Does anyone have a link to the recent presentation about the state of clojars, maybe from the conj? Was looking on YouTube but I can't find it
tcrawley: I am surprised to see just a single mirror... (hosted by you, it seems) would it be useful for Clojars to have more mirrors?
I don't think multiple mirrors would really help - a single mirror is plenty for the load
we have sponsorship from Rackspace for that, we just have to fix some issues in the codebase before we can move
There's a few jars that don't appear to be in the mirror: e.g. org.clojure:clojure:jar:1.7.0, org.clojure:java.jdbc:jar:0.4.2, org.postgresql:postgresql:jar:9.3-1103-jdbc41, org.clojure:tools.cli:jar:0.3.3, org.clojure:tools.nrepl:jar:0.2.12:
@cddr org.clojure is at Maven Central
if you are using the mirror instructions from the wiki, you have to include central in the list, otherwise you remove it
vanrysss: yes - http://status.clojars.org/
see https://github.com/clojars/clojars-web/wiki/Mirrors to be able to pull dependencies in the meantime
Is http-kit the chosen package for making network requests? [10:02] if so, then how do I install/use it?
clj-http works fine too. AFAIK it's a matter of opinion as to which you prefer. Do you use leiningen? If so, just add either to your project dependencies and then you can require/use it in your code. One caveat though, http://clojars.org is down right now so lein will have issues resolving the dependency.
@tcrawley @timgilbert the lightning talk is at https://youtu.be/zvocHR_gg1Y?t=22m40s
@alexmiller: thanks, I got distracted by dealing with the outage
clojars is back up, but upstream is still reporting issues, so it may go down again: http://status.clojars.org/incidents/pdpppjllmjff
how does the reloaded workflow relate to testing? Like is normal to just set up start/stop/init/go/reset functions in a test namespace for one or more components and just reset at that start of each test? I'm talking about testing things that are dependent on resources
Hello, Clojurians. I’m new to clojure and want to set up a simple web project to start learning clojure’s web ecosystem. My preliminary research tells me to look at Ring + Compojure + Hiccup. Am I in the ballpark?
More or less. There are some alternatives (like bidi for routing instead of compojute or something like selmer or mustache for templating instead of Hiccup) but it's probably the core introductory stack, yes.'
Also it's book is getting 2nd edition soon; already in beta - https://pragprog.com/book/dswdcloj2/web-development-with-clojure-second-edition
I don't agree with all the library or structural choices there, but it's a good introduction to Clojure webdevelopment thought.
After you grasp the basics Duct (https://github.com/weavejester/duct) could also be interesting as a next step.
Wow. Thank you!
Are there any leiningen templates for a web project worth recommending?
@jefframnani: Luminus is a lein template de facto. Duct as well.
ah, ok.
Thanks, a lot @jaen. I really appreciate it.
No problem; if you can afford that book, it'll probably give you a fairly good overview of the ecosystem. And then you could start experimenting on your own with other libraries if they make sense (for example stock compojure has no reverse routing, but bidi has).
@cddr I don’t know what s/stream?
is, but it shouldn’t matter. I would expect that to return true regardless.
Can anyone recommend a library that converts prismatic schemas into something human-friendly, say for non-clojure devs? Perhaps HTML or JSON-schema. Thanks!
Ring-swagger was the best option I found from searching. Its missing support for some parts of schema, though I could certainly add to it. I want to make sure that there isn't something more complete before I start that though.
There's also this IIRC - https://github.com/cddr/integrity
Cool that looks promsing
https://github.com/metosin/schema-tools/ also might be useful if you wanted to do something of your own - has helpers for transforming schemas for example
thanks
I think the best option might be to start with the ring-swagger code and extend it a bit
Anyone worked with hbase/hadoop and Clojure? I'm looking into writing a map/reduce job in Clojure, and looking for some good starting places.
I know about PigPen, just not sure if there is something better or is that what folks use?
if it's a short lived project I'd recommend it. if it's the start of something that's going to continue being worked on probably not, as it's not being maintained. Also you should probably rethink hadoop if it's long term
I was working last weekend to upgrade integrity to the latest version of schema. Didn't quite get it finished but should be able to do it this weekend
Hadoop isn't my choice, my employer has a big investment in it and TB's of data already there. I was wondering about cascalog, but the docs are all about using it with local databases, not large existing multi-server hadoop installations. It is a one-off job, though. Thanks for the reminder, I'll have another look at it.
@nkraft: sounds like it would fit the bill. cascalog will decide to use the cluster if it's run in the environment of the cluster. ie, just give your project a main, jar it, and run it using "$ hadoop jar your-jar.jar" you can even run a gorilla repl like that and run cascalog queries direct from gorilla
Hi! In core.logic, i s there an everyg for lvars of seqs? What I’m trying to accomplish is, for some set of events, find a subset for which some logic program is consistent; that means I want to say something like (l/everyg #(l/membero % events) results)
, by which I mean all of the logic variables in results
must be in events
, aka don’t make up fresh variables
(let [events [{:x 1}]]
(l/run 10 [results]
(l/everyg #(l/membero % events) results)))
doesn’t work, because results is an LVar, not a coll.I know I can say (fresh [x] (membero x events) (membero x results))
but that doesn’t contrain all results to be something from events. Similarly, neither does (l/everyg #(l/membero % results) events)