Fork me on GitHub
#clojure
<
2015-07-11
>
pupeno07:07:50

How do I upgrade all the dependencies in a lein project?

pupeno07:07:07

Ah, lein-ancient.

pupeno07:07:11

I’m trying to get lein to install this jar: http://search.maven.org/#artifactdetails%7Ccom.braintreepayments.gateway%7Cbraintree-java%7C2.45.0%7Cjar Do I need to add the repo somehow?

pupeno07:07:39

Ah, version 2.22.0 is gone. Nvm.

escherize07:07:09

Is there a good Clojure/cljs story for making websites (web-apps?) with progressive enhancement?

pupeno08:07:57

Oh my, hiccup doesn't escape strings by default. Does it have a mode where it escapes them by default that I can enable?

emil0r08:07:08

@pupeno: no. there is a method for escaping them though. escape is planned to be turned on by default in 2.0 (iirc). but it's been a long time coming

hank09:07:00

anyone into CRDTs ...

otfrom10:07:08

@timgluz I like your fork of the Mallet wrapper https://github.com/timgluz/mallet-lda Was thinking about doing a PR and now I don't know where to go. 😉

jrychter10:07:19

Oh, nice — I work with mallet regularly, either directly through it's Java API or by running command-line scripts.

otfrom10:07:57

jrychter: but now I'm torn between that fork and the original https://github.com/marcliberatore/mallet-lda

jrychter10:07:17

@otfrom: well, I hope it will all shake itself down soon. Especially as I'll be using mallet much more in the near future.

shterrett10:07:49

@escherize http://www.luminusweb.net/ seems to be a good place to start. I think progressive enhancement is pretty platform agnostic. That pretty much comes down to how the (compiled) html, css and js play on the client side. I copied much of the boilerplate from the guestbook app that they use as a sample, and it seems to give me most of the tools that I’m used to from Rails, but without any magic (whether that’s good or bad is a personal opinion).

escherize11:07:51

Hmm, with Luminus (which I am a fan of) it would appear the only way to do p.e. is to write javascript which is fine, I just want to confirm there isn't something I'm not aware of in this space

pupeno11:07:26

What’s the appropriate way to get a full URL when calling redirect in a luminus/compojure app?

magnars11:07:44

@escherize: there is this blog post about rendering react components on the server side, if you want to do some lifting yourself simple_smile http://augustl.com/blog/2014/jdk8_react_rendering_on_server/

shterrett13:07:25

@escherize: I’m not exactly sure what you’re looking for wrt progressive enhancement. I know Luminus has the option to use ClojureScript if that’s what you prefer

escherize14:07:31

Thanks @magnars that's very interesting.

timgluz16:07:56

@otfrom hi, i once wanted refactor that mallet-lda library and make PR to original resource. But sadly project i needed it for was cancelled. you're welcome to use my fork, but i recommend to use original as it may be newer

otfrom16:07:27

timgluz: they are more different at the moment. Some features are in yours, some in Marco's. I'll look at porting stuff over to Marco's as needed. Thx for the clarification! 😄

jrychter17:07:28

@otfrom: everything clearly points to you as the person who has do to the merge 😄

otfrom17:07:36

jrychter: OH TEH NOES! 😱

jrychter19:07:38

@otfrom: well, we all saw you standing next to that repo. With both pieces (forks) in your hands, in fact. I guess I could add some more code — but I'm not sure what the focus of the library is. It's called "mallet-lda", but I'm using mallet for LDA and for CRFs.

martinklepsch19:07:52

What is a good beginners (Clojure; not programming) tutorial to get going with Clojure? Things that should be touched: namespaces, Leiningen, directory structure, conventions, etc.

val_waeselynck19:07:34

and if the learner is already proficient in programming, I suggest Programming Clojure : https://pragprog.com/book/shcloj2/programming-clojure

martinklepsch20:07:12

@val_waeselynck I’m more looking for something in the scope and length of the classing Rails “make a blog” tutorial. Going through books is a big upfront investment and doesn’t work for everyone. Should have mentioned that in my initial message though :thumbsup:

val_waeselynck20:07:52

hmk I'm afraid I don't know a similar Clojure resource. Web development for Clojure is a hands-on tutorial in which you build a website, but... it's a book.

surreal.analysis20:07:13

@martinklepsch: I’d suggest checking out the Luminus Guestbook application - http://www.luminusweb.net/docs

surreal.analysis20:07:49

It walks you through the creation of a Guestbook application

surreal.analysis20:07:54

Explains the reasoning

surreal.analysis20:07:45

And in most cases where there is a library decision, gives a few options besides the default

martinklepsch20:07:21

@surreal.analysis: thanks I’ll take a look simple_smile

akiva21:07:43

Seems you can’t re-define a defmulti in the REPL. Between this and Clojure spitting out Map$Entry vs. PersistentArrayMap which have incompatible command structures... oy.

akiva21:07:28

Hah. Apparently you have to (def [whatever] nil) and then you can redef the whole thing.

arohner21:07:14

@akiva: yeah, defmulti behaves like defonce. You can also use ns-unmap

akiva21:07:32

Any benefit to doing one over the other?

arohner21:07:37

not really, except ns-unmap is slightly cleaner, conceptually

otfrom21:07:27

@jrychter: what are you using CRFs for?