off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
2020-09-30T00:14:38.081900Z

https://github.com/http-kit/http-kit

emccue 2020-09-30T04:03:25.082700Z

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '<html>

       <head><title>301' - IGNORING

       Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository central at <http://repo1.maven.org/maven2>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository central at <http://repo1.maven.org/maven2>

       Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository central at <http://repo1.maven.org/maven2>

       Transferring 0K from clojars

       Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar>

       [WARNING] Unable to get resource 'com.layerware:hugsql:jar:0.5.1' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar>

       Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository clojars at <http://clojars.org/repo/>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: hiccup/hiccup/1.0.5/hiccup-1.0.5.jar from repository clojars at <http://clojars.org/repo/>

       Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/honeysql/honeysql/1.0.444/honeysql-1.0.444.jar>

       [WARNING] Unable to get resource 'honeysql:honeysql:jar:1.0.444' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/honeysql/honeysql/1.0.444/honeysql-1.0.444.jar>

       Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository clojars at <http://clojars.org/repo/>

       Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/typesafe/config/1.4.0/config-1.4.0.jar>

       [WARNING] Unable to get resource 'com.typesafe:config:jar:1.4.0' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/typesafe/config/1.4.0/config-1.4.0.jar>

       Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository clojars at <http://clojars.org/repo/>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: funcool/cats/2.3.2/cats-2.3.2.jar from repository clojars at <http://clojars.org/repo/>

       Transferring 0K from clojars

       Transferring 0K from clojars

       Transferring 0K from clojars

       Transferring 0K from clojars

       Transferring 0K from clojars

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: com/layerware/hugsql/0.5.1/hugsql-0.5.1.jar from repository clojars at <http://clojars.org/repo/>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository central at <http://repo1.maven.org/maven2>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: honeysql/honeysql/1.0.444/honeysql-1.0.444.jar from repository clojars at <http://clojars.org/repo/>

       Downloading: com/typesafe/config/1.4.0/config-1.4.0.jar from repository clojars at <http://clojars.org/repo/>

       Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar>

       [WARNING] Unable to get resource 'org.clojure:tools.logging:jar:1.1.0' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar>

       Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository clojars at <http://clojars.org/repo/>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository central at <http://repo1.maven.org/maven2>

       Transferring 0K from clojars

       Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar>

       [WARNING] Unable to get resource 'com.amazonaws:aws-java-sdk-s3:jar:1.11.808' from repository central (<http://repo1.maven.org/maven2>): Error transferring file: Server returned HTTP response code: 501 for URL: <http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar>

       Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository clojars at <http://clojars.org/repo/>

       Transferring 0K from clojars

       Transferring 0K from clojars

       Transferring 0K from clojars

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       Transferring 0K from clojars

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: org/clojure/tools.logging/1.1.0/tools.logging-1.1.0.jar from repository clojars at <http://clojars.org/repo/>

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - RETRYING

       Downloading: com/amazonaws/aws-java-sdk-s3/1.11.808/aws-java-sdk-s3-1.11.808.jar from repository clojars at <http://clojars.org/repo/>

       Transferring 0K from clojars

       Transferring 0K from clojars

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '1965c4952cc8c082a6307ed67061a57aab6632fa'; remote = '&lt;html&gt;

       &lt;head&gt;&lt;title&gt;301' - IGNORING

       Copying 22 files to /tmp/build_0e8ba7b5_/lib

       Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file (NO_SOURCE_FILE:0)

       	at clojure.lang.Compiler.eval(Compiler.java:5440)

       	at clojure.lang.Compiler.eval(Compiler.java:5391)

       	at clojure.core$eval.invoke(core.clj:2382)

       	at clojure.main$eval_opt.invoke(main.clj:235)

       	at clojure.main$initialize.invoke(main.clj:254)

       	at clojure.main$script_opt.invoke(main.clj:270)

       	at clojure.main$main.doInvoke(main.clj:354)

       	at clojure.lang.RestFn.invoke(RestFn.java:457)

       	at clojure.lang.Var.invoke(Var.java:377)

       	at clojure.lang.AFn.applyToHelper(AFn.java:172)

       	at clojure.lang.Var.applyTo(Var.java:482)

       	at clojure.main.main(main.java:37)

       Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

       	at clojure.lang.LazySeq.sval(LazySeq.java:47)

       	at clojure.lang.LazySeq.seq(LazySeq.java:56)

       	at clojure.lang.RT.seq(RT.java:450)

       	at clojure.core$seq.invoke(core.clj:122)

       	at leiningen.deps$extract_native_deps.invoke(deps.clj:174)

       	at leiningen.deps$deps.doInvoke(deps.clj:200)

       	at clojure.lang.RestFn.invoke(RestFn.java:410)

       	at clojure.lang.Var.invoke(Var.java:365)

       	at clojure.lang.AFn.applyToHelper(AFn.java:161)

       	at clojure.lang.Var.applyTo(Var.java:482)

       	at clojure.core$apply.invoke(core.clj:542)

       	at leiningen.core$apply_task.invoke(core.clj:262)

       	at leiningen.core$_main.doInvoke(core.clj:329)

       	at clojure.lang.RestFn.invoke(RestFn.java:410)

       	at clojure.lang.AFn.applyToHelper(AFn.java:161)

       	at clojure.lang.RestFn.applyTo(RestFn.java:132)

       	at clojure.core$apply.invoke(core.clj:542)

       	at leiningen.core$_main.invoke(core.clj:332)

       	at user$eval42.invoke(NO_SOURCE_FILE:1)

       	at clojure.lang.Compiler.eval(Compiler.java:5424)

       	... 11 more

       Caused by: java.util.zip.ZipException: error in opening zip file

       	at java.util.zip.ZipFile.open(Native Method)

       	at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:225)

       	at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:155)

       	at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:166)

       	at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:130)

       	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

       	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

       	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

       	at clojure.lang.Reflector.invokeConstructor(Reflector.java:160)

       	at leiningen.deps$extract_native_deps$fn__2418.invoke(deps.clj:174)

       	at clojure.core$map$fn__3699.invoke(core.clj:2096)

       	at clojure.lang.LazySeq.sval(LazySeq.java:42)

       	... 30 more

emccue 2020-09-30T04:03:31.082900Z

first time using heroku with clojure

emccue 2020-09-30T04:03:37.083100Z

i have no clue whats happening even

emccue 2020-09-30T04:04:08.083400Z

is something up with clojars?

seancorfield 2020-09-30T04:07:16.084Z

<http://clojars.org/repo/> is not the right URL for that repo. Should be https at least.

seancorfield 2020-09-30T04:07:53.084200Z

Should be: https://repo.clojars.org/

seancorfield 2020-09-30T04:08:21.084700Z

That's why you're getting the 301 response instead of successful downloads @emccue

emccue 2020-09-30T04:08:52.085200Z

I noticed a wonky error at the top about specifying a min leiningen version

seancorfield 2020-09-30T04:09:54.085700Z

Yeah, an old version of Leiningen could well have the outdated Clojars URL.

timo 2020-09-30T07:53:45.086300Z

I like this morning routing:) https://builtwithscience.com/posture-workout-routine/

👍 2
dev.4openID 2020-10-03T18:40:13.140100Z

Looked at the article - I would suggest that it is a subset of Yoga. Handy knowledge anyway and true - I can testify to that

mavbozo 2020-10-06T08:38:32.165Z

wow. looks great and helpful for me. thank you for sharing

Helins 2020-09-30T13:39:17.091500Z

Hey, I cannot seem to find a straightforward answer and since Clojurists are smart people, here I go. Say I work on a private project which already includes license A, although the project is not yet public. Many commits later, I switch to license B and only then distribute it publicly. When software is re-licensed, this naturally does not void the application of the previous license to the previous public versions of the work. But what about this scenario, would rewriting the git history be mandatory?

Helins 2020-09-30T14:05:00.091800Z

A standing desk also does wonder for posture

timo 2020-09-30T14:15:06.094800Z

so you mean, the git-repository is public now and in the history there is a different license somewhere? I guess it depends on the license then but as long as all of this is your copyright you should be able to change even the history of your repository. Hopefully you got the sole copyright.

timo 2020-09-30T14:15:56.095400Z

but I am no lawyer, so don't take my advice as granted

bartuka 2020-09-30T14:41:39.098500Z

(no lawyer and no previous info on subject) As stated in git pro book, "git thinks about its data more like a stream of snapshots", therefore I would imagine that each commit is a "standalone" app that is subject to a specific license attached to it. If you desire that license B work for all the previous versions of your app, I would change git history.

bartuka 2020-09-30T14:42:15.098700Z

but I am no lawyer, so don't take my advice as granted [2]

👍 1
borkdude 2020-09-30T15:22:48.100100Z

Next to java.nio.file.FileVisitor and <http://java.io|java.io>.FileFilter, which classes have you reified in the past to interop with Java?

borkdude 2020-09-30T15:22:59.100400Z

(so no protocols, just interfaces)

borkdude 2020-09-30T15:23:39.100700Z

I'm asking specifically for babashka (so in the context of scripting) but more general answers are ok too

alexmiller 2020-09-30T15:26:40.101400Z

I'd look at some of the main function interfaces, particularly things like Consumer, Supplier, Predicate, etc

borkdude 2020-09-30T15:30:35.101800Z

user=&gt; (.apply (reify java.util.function.Function (apply [this x] x)) 1)
1
nice

alexmiller 2020-09-30T15:31:10.101900Z

ThreadFactory

2020-09-30T15:39:29.102100Z

Closeable can be useful

tvaughan 2020-09-30T15:41:46.102600Z

Possibly of interest to those who dislike Slack, https://matrix.org/blog/2020/09/30/welcoming-gitter-to-matrix

emccue 2020-09-30T15:49:05.103200Z

another strange heroku happening

emccue 2020-09-30T15:49:09.103500Z

2020-09-30T15:47:37.513527+00:00 app[web.1]: 2020-09-30 15:47:37,510 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Starting app", :line 62}
2020-09-30T15:47:37.515165+00:00 app[web.1]: 2020-09-30 15:47:37,515 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Loading initial config", :line 14}
2020-09-30T15:47:37.588042+00:00 app[web.1]: 2020-09-30 15:47:37,587 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Connecting to db.", :line 16}
2020-09-30T15:47:37.662074+00:00 app[web.1]: 2020-09-30 15:47:37,661 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Creating email service.", :line 20}
2020-09-30T15:47:38.638620+00:00 app[web.1]: 2020-09-30 15:47:38,638 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Creating photo service.", :line 22}
2020-09-30T15:47:38.670295+00:00 app[web.1]: 2020-09-30 15:47:38,668 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Starting server.", :line 30}
2020-09-30T15:47:38.871482+00:00 app[web.1]: 2020-09-30 15:47:38,871 [main] INFO  org.eclipse.jetty.util.log - Logging initialized @14321ms to org.eclipse.jetty.util.log.Slf4jLog
2020-09-30T15:47:39.518616+00:00 app[web.1]: 2020-09-30 15:47:39,517 [main] INFO  org.eclipse.jetty.server.Server - jetty-9.4.z-SNAPSHOT; built: 2019-04-29T20:42:08.989Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 1.8.0_262-heroku-b10
2020-09-30T15:47:39.590670+00:00 app[web.1]: 2020-09-30 15:47:39,590 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6921cfa{/,null,AVAILABLE}
2020-09-30T15:47:39.613174+00:00 app[web.1]: 2020-09-30 15:47:39,612 [main] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@760a2b6e{HTTP/1.1,[http/1.1, h2c]}{localhost:4502}
2020-09-30T15:47:39.614069+00:00 app[web.1]: 2020-09-30 15:47:39,613 [main] INFO  org.eclipse.jetty.server.Server - Started @15065ms
2020-09-30T15:47:39.615434+00:00 app[web.1]: 2020-09-30 15:47:39,615 [main] INFO  space.egge.server - {:space.egge.server/debug "Started", :line 113}
2020-09-30T15:47:39.616396+00:00 app[web.1]: 2020-09-30 15:47:39,616 [main] INFO  space.egge.main - {:space.egge.main/startup-step "Started all components.", :line 32}

emccue 2020-09-30T15:49:29.103900Z

Okay thats alot, but basically I start my app

emccue 2020-09-30T15:49:46.104200Z

It pulls the port from the environment variables

emccue 2020-09-30T15:49:50.104600Z

[main] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@760a2b6e{HTTP/1.1,[http/1.1, h2c]}{localhost:4502}

emccue 2020-09-30T15:50:16.105100Z

2020-09-30T15:48:51.621030+00:00 heroku[web.1]: Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 90 seconds of launch
2020-09-30T15:48:51.643206+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-09-30T15:48:51.720519+00:00 heroku[web.1]: Process exited with status 137
2020-09-30T15:48:51.759997+00:00 heroku[web.1]: State changed from starting to crashed

emccue 2020-09-30T15:50:29.105500Z

and later I get an error saying I didn't bind to the port quick enough

emccue 2020-09-30T15:52:27.105800Z

which is confusing

emccue 2020-09-30T15:59:46.106900Z

(its usually a safe bet to just ignore me and I'll figure it out - I had to bind to 0.0.0.0 and now I know what that is)