This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-14
Channels
- # announcements (10)
- # architecture (4)
- # atom-editor (1)
- # babashka (53)
- # babashka-sci-dev (118)
- # beginners (82)
- # biff (12)
- # calva (19)
- # clara (13)
- # clerk (20)
- # clj-commons (25)
- # clj-kondo (6)
- # cljdoc (19)
- # cljs-dev (3)
- # clojars (2)
- # clojure (71)
- # clojure-art (2)
- # clojure-europe (68)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (3)
- # clojured (19)
- # clojurescript (34)
- # clr (19)
- # cursive (11)
- # emacs (14)
- # fulcro (3)
- # helix (2)
- # holy-lambda (2)
- # honeysql (27)
- # hyperfiddle (39)
- # malli (2)
- # off-topic (83)
- # polylith (4)
- # rdf (22)
- # re-frame (20)
- # reitit (4)
- # rewrite-clj (14)
- # shadow-cljs (17)
- # slack-help (2)
- # tools-deps (45)
- # xtdb (3)
moooning đź
morning
Morning :rain_cloud:
@javahippie I also miss the sun. Itâs been more than a week since our last cargo bike adventure.
We have had some sunny days lately. Tonight we had thunderstorms and a lot of rain, but as far as I can remember it was the second bigger rain for this year. Itâs very dry down here in the south đ
The snowâs all gone here since yesterday. Too bad, it was very picturesque.
There is a drought-monitor from a German institute, red is âextraordinary droughtâ. I marked my hometown with an arrow. In General, not looking too great for March
Thatâs crazy! đź
We are at the foot of the Black Forest, usually a place to ski in the winter. They barely had snow in the winter, which is adding to the lack of water. I heard itâs way worse in France atm
Good morning!
TIL that a manhole cover holds the distinction of being the fastest thing ever launched by man ( https://www.youtube.com/watch?v=tFt9WDhWOXo https://en.wikipedia.org/wiki/Operation_Plumbbob#Missing_steel_bore_cap )
Depends if you look at Launch Speed, in abolute terms, the Parker Solar Probe should be the fastest manmade object https://en.wikipedia.org/wiki/Parker_Solar_Probe
the solar probe's eventual speed is much higher : but if you take "launch" to mean the effort to escape from the earth's gravity well then i think the manhole cover is winning...
By far đ
'course... we're all doing about 700,000km/h around the galactic center đ
So in absolute terms, that manhole cover might have been the slowest object ever launched ba mankind :face_with_monocle:
hmm... not sure there are any absolute terms here!
Was not to be taken seriously ;)
i figured đ
would have loved to have seen the manhole cover filmed by a modern high-frame-rate camera though
i love how you can tell roughly how this high-speed camera works from the resolution / frame-rate details : https://en.wikipedia.org/wiki/Phantom_(high-speed_camera_brand)
I keep rebuilding a Java WAR and somehow my code changes are included, but it still includes deleted resource files?? I am so lost dealing with Java build processes
Sounds annoying
do you have a target
directory or similar which is accumulating intermediate build products and doesn't get removed until you do a clean
build ?
sounds like it. Additionally, I hope you're building your deployable artifacts from a CI env (which presumably doesn't accumulate state) đ
@U45T93RA6 LMAO. As if I have time for that. I have like 10 different projects I am the sole person who is responsible for and most of them are stuff thatâs 10+ years old I have inherited, like this PoS Java project I am looking at now.
but it will eventually be a part of a Docker setup, so in some sense youâre right. Before it is fully dockerised, I need to figure out how to fix the stuff that isnât working though
Iâm starting to think that you should go with Thomasâ solution đ
eventually, I hope to automate it all as a Docker setup, so that I wonât have to think about it ever again
Gathering these ad-hoc steps in a Makefile (or similar) is usually a good step when dealing with 10 different shitty projects. Executable reminder of how stuff works, and portable to any fancy future environment.
@U6T7M9DBR Thatâs what the Dockerfile is for
Dockerfile is great if you want to produce docker images yes, but usually inheriting 10 projects comes with a plethora of "fun" little things that need to be (re-)done every once in a while. đ I've found that the lowest common denominator (make) works pretty well đ”
Anyway the sausage is made is fine, the important part is the cognitive relief of having a repeatable script to run that you know works for you.
I've often shot myself in the foot by not taking the time to write these things down in some executable fashion in the name of saving time, and then ended up stressed and confused đ
but for example in this case it some old PoS Java code that depends on some Python code that only works with libreadline8 (not lower) and setuptools version <46. Makefiles are not suitable for expressing environmental interdependent code like that, they are too low-level.
Iâd rather just put the mvn clean, mvn compile, mvn war:war steps inside a Dockerfile than have it inside a Makefile that needs to go inside the Dockerfile anyway, since the project needs to be running in a specific environment anyway đ
and believe me, I write these things down⊠usually as Docker configuration⊠it is my predecessor who didnât bother to do that đ
aren't you already running the mvn
inside a container to get the archaic deps ?
not right now, now Iâm copying the WAR to facilitate ease of development. Still cannot figure out why I canât seem to access the webapp on the configured path and port
I donât think itâs a Tomcat issue, nor is it a Docker issue. It just because I have no idea what combination of path, port and query string actually results in data
and discovering that combination requires digging into the Java + XML source code and really understanding how everything worksâŠ
There are tests, but they donât really contain an obvious URL to test that everything works. Instead there is a complicated Java builder that generates a tester
object and this tester object seems to build some very large requests which it then sends to a mock servlet.
In production, everything comes from a combination of XML and JSON configs that are converted into Java classes, one of which is the servlet. There is no documentation, so I am really just trying to figure out a way to curl a path from inside the Docker container that is running this stuff to let me know that itâs running correctly. Every path that doesnât fit the expected pattern returns 404.
i do not miss any of that XML data binding bollocks that java is so fond of. clj/s with its general purpose datastructures with excellent literals and flexibile polymorphism is sooo much better
I seem to have finally managed to get a nice setup goingâŠ
I already had two Docker containers running v8 of the backend (Python) and one running the corresponding version of the frontend (TS and JS).
Now I have added a container running v6 of the backend (Python), a builder image (java) which builds the .war and also runs mvn test
before exiting, and then the actual Tomcat webserver + the .war from the builder in yet another container (Java).
I seem to have finally managed to get a nice setup goingâŠ
I already had two Docker containers running v8 of the backend (Python) and one running the corresponding version of the frontend (TS and JS).
Now I have added a container running v6 of the backend (Python), a builder image (java) which builds the .war and also runs mvn test
before exiting, and then the actual Tomcat webserver + the .war from the builder in yet another container (Java).