This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-18
Channels
- # admin-announcements (13)
- # announcements (1)
- # aws (17)
- # beginners (1)
- # boot (113)
- # cider (71)
- # cljs-dev (7)
- # clojure (93)
- # clojure-android (2)
- # clojure-berlin (1)
- # clojure-dev (22)
- # clojure-italy (3)
- # clojure-japan (1)
- # clojure-poland (41)
- # clojure-russia (96)
- # clojurescript (140)
- # cursive (11)
- # datomic (27)
- # devcards (1)
- # devops (1)
- # events (4)
- # funcool (3)
- # hoplon (133)
- # immutant (7)
- # ldnclj (22)
- # leiningen (5)
- # off-topic (6)
- # om (22)
- # onyx (12)
- # re-frame (8)
- # reagent (12)
did anybody use clj-webdriver? in the wiki, it used a set-driver! function, but if look at the github source code, I can't find such method.
@wqhhust that's from the clj-webdriver.taxi api. https://crossclj.info/fun/clj-webdriver.taxi/set-driver!.html
Can anyone recommend a static site generator for not-just-a-blog? Most of them seem to be focused on blogs.
@lvh I'm using https://github.com/magnars/stasis which is very very bare
it offers some functions to read static files/templates and some other functions to write them. it's up to you to build a pipeline in the mirror
@lvh @bensu I wrote Stasis because I was specifically not creating a blog, but wanted to build a smart static site (automatic cross-linking etc). Happy to answer any questions about it.
Anybody using Braintree? do you know if their v.zero API supports storing CC details in the vault?
Fun trick question. Why does this return the empty list? (remove (comp zero? :questions) ({:questions 1} {:questions 0}))
I did (ns-unmap ns 'html) because I referred the html function from hiccup.core, that worked
Not sure. they're both single form interop fns on clojure.lang.Namespace, I'd have to dig that source out.
@borkdude: ns-unalias removes an alias (e.g clojure.string :as s), ns-unmap removes a mapping (e.g. clojure.string :refer [trim])
Hi, I have some code that writes out a CSV file of numbers, and I'm sometimes seeing "230" and sometimes "2.3E+2". I don't understand why I'm getting the latter (I realise this may be more of a Java question than strictly a Clojure question)
I'd like to just write out the normal form of the number (230, not 2.3E+2) because I'm not sure the software reading the CSV file will understand the other form
Is there some form of the number 230 that would cause it to be written as 2.3E+2 when str is called on it? That's all that the data.csv writer seems to do
@craigglennie: "230" would be an integer and the "2.3e+2" is a float. THe latter is also called "scientific notation" and produced by "format %e" across most languages
You can get decimal with: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax
Thanks @r4um. I wasn't able to reproduce until just now. I see that (str 2.4E+2) -> "240.0" but (str 2.4E+2M) -> "2.4E+2"
I'm currently running lein check combined with lein auto. Makes refactoring a little easier
maybe it would be better if I could configure lein auto to wait for some input and then do the job. Does something like that exist?
of course I could let lein auto watch a specific file and edit the file when I need to perform the action again
It's still listed on http://repo1.maven.org/maven2/org/clojure/clojure/1.8.0-alpha5/ but clicking the jar link gives a 404.
that's super weird. I file an issue with sonatype.
see comment there
I thought the problem would be lein’s preference for nrepl 0.2.6, but 0.2.11 is clearly loaded there
Is there a limit to what you can upload to Clojars? If so, would 3.1M + 2.0M jars be over that limit?
anyone tried running clojure/ring under Spring Boot? Googling has so far been unhelpful, especially given boot+clojure as the wrong pair for this sense.
it looks like you probably have to do something similar: build a Java class with the right annotations for dropwizard/Spring.Boot to find
@jaen: There seems to be a max-file-size
of 2MB for uploads in clojars-web: https://github.com/ato/clojars-web/blob/master/src/clojars/scp.clj#L17
I don't know. Maybe you can ask @tcrawley to adjust the limit? (Out of curiosity, what are you trying to upload and why is it so big?)
And why is it so big then I wouldn't know; I don't really understand how ant and maven work, I trust GClosure guys to have setup it properly.
@jaen: the limit @beppu found is just for scp uploads, I believe the limit for http uploads is larger
> Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://clojars.org/repo/org/clojars/jaen/closure-compiler/1.0-SNAPSHOT/closure-compiler-1.0-20150918.200014-1.jar. Return code is: 413, ReasonPhrase: Request Entity Too Large.
hmm, we have jars larger than 5Mb in the repo. that error sounds like it's coming from nginx
Welp, I killed the dir, but it was about 3.1M (classess jar) + 2.0M (sources jar) I think. And when I do ant build
I end up with a 6.1M jar
I don't know how to check for a proxy, but you would likely know (it would be a corp restriction or somesuch)
-rw-r--r-- 1 jaen users 3.3M Sep 18 23:43 closure-compiler-1.0-SNAPSHOT.jar
-rw-r--r-- 1 jaen users 2.0M Sep 18 23:43 closure-compiler-1.0-SNAPSHOT-sources.jar
hmm, it looks like http://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect might be the issue
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: . Return code is: 401, ReasonPhrase: Unauthorized.
@tcrawley: looks like it worked - https://clojars.org/org.clojars.jaen/closure-compiler - thanks!