This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-12
Channels
- # announcements (7)
- # babashka (13)
- # beginners (14)
- # business (7)
- # clerk (4)
- # clj-kondo (21)
- # clojure (42)
- # clojure-denmark (5)
- # clojure-dev (16)
- # clojure-europe (27)
- # clojure-finland (1)
- # clojure-nl (1)
- # clojure-norway (36)
- # clojure-sweden (2)
- # clojure-uk (34)
- # clojurescript (29)
- # datomic (15)
- # emacs (1)
- # hyperfiddle (13)
- # jobs (11)
- # joyride (8)
- # malli (15)
- # missionary (10)
- # off-topic (5)
- # portal (6)
- # releases (3)
- # shadow-cljs (9)
- # spacemacs (28)
- # specter (2)
- # squint (12)
How can I get the path name of a tmp file which I can write to which will work on all Operating Systems?
should be in something like /tmp for unix and whatever the corresponding place on windows is.
found this one some random search
(java.io.File/createTempFile "filename" ".txt")
What do people use to manage deployments on Ubuntu (of an Uberjar)? I have tried both .service files and supervisorctl and have run into strange issues with both: 1. .service files/systemctl seems to expect the java process to detach immediately (I guess I could use nohup for that?) 2. supervisorctl logs a repeated exit every minute that isn't reported in the java process. Running the java process without the service layer runs fine so I have to imagine it's in the supervisortcl layer, but I can't find the cause in the logs
.service files expect the opposite, unless you specifically say you are defining a forking service, the service will stop once the process it starts has exited
For a non-forking service if you fork the service will stop, for a forking service if you don't fork, I forget what happens but I believe systemd at least complains about
How can I define a string that contains a double quote? Sorry, for that simple question. It is a bit emberrasing, but I really find no answer.
Ah. Thanks! Now I found out what I made wrong. (prn "\"a\"") works differently than (print "\"a\""). That confused me so much that I thought, I as completely wrong.
yes, prn
is for printing readable data, println
is for humans