clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
kardan 2021-03-09T05:26:12.398100Z

Good morning

pez 2021-03-09T06:14:55.398400Z

Mornings!

2021-03-09T06:57:18.398600Z

Morning

djm 2021-03-09T06:57:40.398800Z

👋

ordnungswidrig 2021-03-09T07:00:42.399Z

Good morning!

mccraigmccraig 2021-03-09T07:09:02.399700Z

månmån

dharrigan 2021-03-09T07:14:15.399900Z

Hello Peeps!

pez 2021-03-09T07:48:11.401100Z

Achievement unlocked. (And then @borkdude also retweeted ❤️).

5❤️3🎉
javahippie 2021-03-09T08:04:37.402300Z

Really like Calva, thanks for making it! I’ not willing to give up the Emacs keybindings I suffered to learn, but a friend is now too getting serious with Clojure, and they are starting out with Calva. I feel like their barrier of entry is way lower with it than with Emacs and Cider 👌

1❤️
borkdude 2021-03-09T08:06:19.403400Z

There is an emacs keybinding plug-in for VSCode

1
borkdude 2021-03-09T08:06:34.404Z

Even things like C-x 3 work

javahippie 2021-03-09T08:08:25.404300Z

Good to know, thanks!

pez 2021-03-09T09:02:58.430600Z

@borkdude also has some Calva custom shortcuts laying around. 😃

pez 2021-03-09T09:03:31.430800Z

And @jr0cket made a VSpaceCode config.

practicalli-john 2021-03-09T09:24:56.438200Z

Vim style editing for the win 🙂

1
pez 2021-03-09T07:51:58.401700Z

Here’s the tweet, in case someone else wants to retweet 😃 https://twitter.com/pappapez/status/1368883091243155458

javahippie 2021-03-09T08:02:26.402200Z

Morning!

javahippie 2021-03-09T08:04:37.402300Z

Really like Calva, thanks for making it! I’ not willing to give up the Emacs keybindings I suffered to learn, but a friend is now too getting serious with Clojure, and they are starting out with Calva. I feel like their barrier of entry is way lower with it than with Emacs and Cider 👌

1❤️
borkdude 2021-03-09T08:06:19.403400Z

There is an emacs keybinding plug-in for VSCode

1
borkdude 2021-03-09T08:06:34.404Z

Even things like C-x 3 work

javahippie 2021-03-09T08:08:25.404300Z

Good to know, thanks!

simongray 2021-03-09T08:23:57.406700Z

Good morning. Been up since 3 in the morning (so more than 6 hours now) tending to a very annoyed baby, so it kinda feels like the working day should already be over now, but it's just starting... sigh

mpenet 2021-03-09T08:24:27.407600Z

Morning

orestis 2021-03-09T08:24:30.407900Z

Morning

ordnungswidrig 2021-03-09T08:24:32.408300Z

Oh shit, these are rough times @simongray

orestis 2021-03-09T08:24:41.408500Z

@simongray working from home?

simongray 2021-03-09T08:24:45.408700Z

Yeah

orestis 2021-03-09T08:24:50.408900Z

Just get a nap 🙂

ordnungswidrig 2021-03-09T08:25:24.410Z

It’s ok for parents to sleep while the kids are awake (and stored safely) 😉 But easier said than done.

simongray 2021-03-09T08:25:48.410900Z

My body doesn't work that way 😑 sun is up = I am awake. Besides, I can't run from the meetings.

ordnungswidrig 2021-03-09T08:26:04.411400Z

You can take the day off sick 🙂

ordnungswidrig 2021-03-09T08:26:25.412300Z

Sleep deprivation is a serious condition. Not only to your body, but also to the code 🐒

1🐵
orestis 2021-03-09T08:26:36.412600Z

I've found that it was way easier to take "sick days" for actual sickness and really bad nights when I was going into the office. Nobody bats an eye in Denmark, in my experience. Working from home means that it's hard to find boundaries.

orestis 2021-03-09T08:27:28.414Z

But yeah I would equal sleep deprivation to being down with a cold and I would take sick day, or at least a half day to just zone out on the couch.

simongray 2021-03-09T08:27:38.414400Z

Hm, I wouldn't wanna mistreat my code, would I..

1👏
ordnungswidrig 2021-03-09T08:28:15.414900Z

“Zone out on the couch” sounds tempting. I need a couch in my office room 😛

ordnungswidrig 2021-03-09T08:28:26.415300Z

(Or just finally install my hammock)

agigao 2021-03-09T08:29:45.415600Z

Morning!

simongray 2021-03-09T08:40:03.417700Z

Anybody else feel like the quality of /r/Clojure has been plummeting lately? I contribute some interesting content every once in a while, but rarely find much of interest there anymore.

simongray 2021-03-09T08:41:42.419900Z

Feels like it's mostly #beginners type of material and meta-commentary on the perceived cultiness of Clojure.

reefersleep 2021-03-10T22:09:34.489800Z

That'd make perfect sense :hugging_face:

ordnungswidrig 2021-03-09T08:42:22.420500Z

You could say that about a lot of subreddits I guess. I thinks it’s a matter of come and go.

borkdude 2021-03-09T08:42:49.421900Z

I do feel that reddit can be more unfriendly than say this slack or clojureverse

1☝️
djm 2021-03-09T08:43:07.423Z

When my son was younger, I would have had to take a whole year off, if I took time off for sleep deprivation 😢

1❤️
ordnungswidrig 2021-03-09T08:43:37.423700Z

/r/clojure is quite friendly for reddit standards 😈

1🙈
simongray 2021-03-09T08:43:51.424Z

Hah!

ordnungswidrig 2021-03-09T08:44:24.425300Z

Sometimes I wonder if there’s a clojure goup on facebook but I don’t dare to look

simongray 2021-03-09T08:44:32.425600Z

Better than /r/lisp for sure, but lately it's just getting an Eternal September vibe

simongray 2021-03-09T08:51:05.427700Z

My wife is home again, so now she can take care of the baby and I can finally get to eat some breakfast

1🎉
simongray 2021-03-09T08:52:50.430400Z

Which is last night's leftover Gong Bao Ji Ding since we've run out of real breakfast items 😎 nothing like a dose of Sichuan pepper to start your day.

pez 2021-03-09T09:02:58.430600Z

@borkdude also has some Calva custom shortcuts laying around. 😃

pez 2021-03-09T09:03:31.430800Z

And @jr0cket made a VSpaceCode config.

mccraigmccraig 2021-03-09T09:06:20.431700Z

you'll perhaps kinda miss the sleepless nights in a couple of years when it's all calmed down @simongray - i know i did

simongray 2021-03-09T09:07:35.433100Z

I’m sure I will. Many people tell just that anyway. And he’s ever so sweet whenever he’s not in the middle of an 8-hour fit….

mccraigmccraig 2021-03-09T09:08:41.434100Z

that period seems to have left a long-lasting positive effect too - i seem to be more sleep-flexible now, i.e. don't mind getting up early or getting woken up

mccraigmccraig 2021-03-09T09:08:53.434400Z

an 8 hour tantrum is quite impressive though!

ordnungswidrig 2021-03-09T09:09:50.435500Z

I can confirm. I’m also more flexible with sleep schedules. Wich means am super fatigue whenever I wake up 🙂

1😆
simongray 2021-03-09T09:11:50.435600Z

I’ll be sure to tell him that when is able to speak!

djm 2021-03-09T09:12:16.436Z

I don't miss sleepless nights

ordnungswidrig 2021-03-09T09:13:17.436900Z

Since my first daughter was born my wife has a hard time sleeping through. She hears every little noise and detects every minute movement. Rough times ahead for my teenage daughters I guess 😛

slipset 2021-03-09T09:15:17.437300Z

morning

1👏
thomas 2021-03-09T09:16:14.437600Z

mogge

practicalli-john 2021-03-09T09:24:56.438200Z

Vim style editing for the win 🙂

1
simongray 2021-03-09T09:30:49.443500Z

Does anyone here have any experience editing hosts files (on a Mac)? I am doing local web development for bunch of different projects at the same time all being served from localhost, but from different ports. Ever since I started serving one of the projects as HTTPS, the only browser I can actually use to visit http://localhost (and not https://localhost) is Firefox - and only after clicking through some dramatic warning message. I think the solution is editing the hosts file, but I’ve never actually had to do this so I can’t find a guide.

ordnungswidrig 2021-03-09T09:31:53.445600Z

I’m using the catchall domain *.<http://l.c6e.de|l.c6e.de> all names point to localhost, e.g. <http://project-1.l.c6e.de:3000|project-1.l.c6e.de:3000> <http://banana.l.c6e.de:5000|banana.l.c6e.de:5000>

simongray 2021-03-09T09:31:54.445700Z

I want to be able to visit e.g. http://one-of-my-projects:8080 and https://another-one-of-my-projects:8080 without running into browser blocks

simongray 2021-03-09T09:32:13.446100Z

how do you set up something like that?

ordnungswidrig 2021-03-09T09:32:21.446400Z

Not sure of that helps with browser security though.

agigao 2021-03-09T09:32:33.446700Z

Not about a kid, but first time in my life haven’t had a proper night sleep last one and a half month, a super active puppy! 🐾 Lately, he’s learning how to behave though, with some minor mess ups 😁

ordnungswidrig 2021-03-09T09:33:19.447200Z

@simongray using that you should be able to use a self-signed cert for <http://xxx.l.c6e.de|xxx.l.c6e.de>

simongray 2021-03-09T09:34:04.447900Z

maybe a dumb question, but are you running a web server that reverse proxies your localhost?

ordnungswidrig 2021-03-09T09:34:10.448100Z

no

ordnungswidrig 2021-03-09T09:34:29.448500Z

<http://xxx.l.c6e.de|xxx.l.c6e.de> just resolves to 127.0.0.1 resp. ::1

simongray 2021-03-09T09:34:52.449100Z

ok - just the .de URL threw me off

ordnungswidrig 2021-03-09T09:35:09.449500Z

well, I own http://c6e.de which I use for all kinds of thechnical stuff

ordnungswidrig 2021-03-09T09:35:52.450400Z

like *.<http://u.c6e.de/redir/http://wherever-you-want|u.c6e.de/redir/http://wherever-you-want>which helps with domain-based tab isolation in firefox

ordnungswidrig 2021-03-09T09:36:30.450900Z

There is https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06 which suggests making .localhost to TLD resolving to the loopback devie.

ordnungswidrig 2021-03-09T09:36:54.451200Z

Hehe Edge already hase implemented this.

ordnungswidrig 2021-03-09T09:37:34.451600Z

I wonder why you would server a project via SSL on localhost during dev?!

simongray 2021-03-09T09:37:59.452100Z

it’s a SAML library

ordnungswidrig 2021-03-09T09:38:12.452500Z

I see. You’re doomed 😛

simongray 2021-03-09T09:39:28.452700Z

😛

simongray 2021-03-09T09:41:03.453400Z

trying out that Chrome flag, thanks!

jasonbell 2021-03-09T09:42:34.455300Z

morning

simongray 2021-03-09T09:42:54.455900Z

the problem is actually the opposite for me: I can visit the HTTPS site, no problem, but every other localhost site served as HTTP gets hyper-corrected by Chrome and Safari who refuse to consider them anything but HTTPS, which means they’re trying to read regular HTML as if was served SSL-encrypted resulting in “broken SSL” messages

simongray 2021-03-09T09:43:20.457Z

Firefox doesn’t enforce HTTPS like Chrome and Safari do, it just puts up a warning page you have to get around. Chrome used to be the same.

simongray 2021-03-09T09:44:08.458600Z

however, it seems like I can actually use private browsing to get around the promotion to SSL for now… phew… still need to set up a more permanent solution, though

javahippie 2021-03-09T09:44:22.458900Z

For localhost access I set up a traefik instance in docker once, routing all requests to “http://local.domainiactuallyown.com” to localhost, with a Let’s Encrypt Cert

jasonbell 2021-03-09T09:45:04.459200Z

It would be great to see some blogs on this kind of thing.

1☝️
jasonbell 2021-03-09T09:46:54.460Z

Thanks @simongray

simongray 2021-03-09T09:47:12.460300Z

@javahippie Interesting that you and @ordnungswidrig both use a domain you own. What’s traefik for? I’m not familiar with it.

javahippie 2021-03-09T09:48:47.461800Z

Traefik is a router software that can be easily integrated in Cloud Environments. Has a heavy focus on routing, certificates, proxying and reverse proxying. It can do nothing that nginx couldn’t do itself, but much more conveniently, in my opinion

ordnungswidrig 2021-03-09T09:51:07.462600Z

Interesting because that means you’re actually exposing locally running services to the internet, right?

javahippie 2021-03-09T09:51:09.462700Z

Example docker-compose.yml with traefik

orestis 2021-03-09T09:51:55.463100Z

Where do you find this dish? Made it at home or takeaway?

javahippie 2021-03-09T09:52:03.463300Z

javahippie 2021-03-09T09:53:24.464900Z

Not really, I use this as a workaround to create valid certificates with LetsEncrypt, which I then copy to my local machine, and route locally to 127.0.0.1 via /etc/hosts, then. Hacky, but works locally for me

javahippie 2021-03-09T09:53:55.465300Z

You can always self-sign and add it to your local authority, though

simongray 2021-03-09T09:57:42.465400Z

Made it myself. I’ve spent about 2,5 years of my life in china all in all, so I know what an authentic take is like. Just recently got an amazing cookbook called The food of Sichuan by Fuchsia Dunlop where the recipe was taken from. It’s not the first time I’ve made that dish though - pretty easy as as you have all the ingredients at hand - but it’s been a while since I did any Chinese cooking.

simongray 2021-03-09T10:01:44.465700Z

Magasasa makes a decent one (and decent Chinese food in general) if you want some Chinese food in Copenhagen, but you can make a better one yourself 😉

javahippie 2021-03-09T10:05:40.466400Z

But self signing and Java (or access from virtualized environments) are still a pain

simongray 2021-03-09T10:16:02.468700Z

> You can always self-sign and add it to your local authority, though Yup, that’s what I’ve been doing, but then that creates the issue of HTTP suddenly not working anymore (for any port on localhost) since the most recent versions of Chrome and Safari started auto-enforcing HTTPS. So you can’t always do that, unfortunately.

simongray 2021-03-09T10:16:27.469200Z

It started happening sometime last year for Safari and a coupe of months ago for Chrome.

simongray 2021-03-09T10:16:49.469700Z

Before they used to have a warning page with some convoluted “proceed at your own risk” message.

javahippie 2021-03-09T10:18:19.471500Z

There is a Firefox Developer Edition, which is very configurable in these things

simongray 2021-03-09T10:18:19.471600Z

anyway, am I right in thinking that if I create different hosts that all point to 127…etc and selfsign certificates when needed, then the browser will not care that the IP is the same?

simongray 2021-03-09T10:18:41.472100Z

Firefox is not a problem right now, it’s Chrome and Safari. I’m doing frontend stuff, so I need to test it in both.

javahippie 2021-03-09T10:19:08.472400Z

Ah, I get it.

simongray 2021-03-09T10:20:58.474200Z

I have a bunch of ports open with various projects running in shadow-cljs. I have one single project (a SAML library) that needs to be HTTPS for which I have self-signed a certificate and added to Keychain App (Mac certificate authority) which has resulted in the shadow-cljs projects being inaccessible from Chrome and Safari

simongray 2021-03-09T10:22:10.475300Z

modern web development is like 80% working around the lastest web security features and 20% actual development 😛

raymcdermott 2021-03-09T10:22:35.475700Z

morning

dharrigan 2021-03-09T10:44:24.476100Z

@simongray what I do (and I work with 3rd party APIs a lot)

dharrigan 2021-03-09T10:44:28.476300Z

is to run charles proxy

dharrigan 2021-03-09T10:44:41.476600Z

then install it's root certificate into the java keychain

dharrigan 2021-03-09T10:44:51.476900Z

then you can use it as a mitm

dharrigan 2021-03-09T10:44:56.477100Z

and inspect the traffic

dharrigan 2021-03-09T10:45:38.477900Z

your local processes connect to http://localhost:<a port number> and charles will forward on that to http://destination:443 over TLS

dharrigan 2021-03-09T10:45:53.478200Z

and do the reverse, so you can look at all the juicy bits

reefersleep 2021-03-09T11:18:23.478300Z

In my case, we’re talking about tedious changes, but many places

reefersleep 2021-03-09T11:25:28.478500Z

I work on a pretty big project, people-wise - Cognitect were contracting for us, and they said that it’s the biggest project they’d been on. No idea if it’s considered big code-wise, but there are hundreds of usages of the datastructure/function I want to change.

reefersleep 2021-03-09T11:26:41.478800Z

Fo sho. It’s not like I’ll be rebasing the changes onto main without a review or anything 🙂

borkdude 2021-03-09T11:27:08.479Z

:thumbsup:

reefersleep 2021-03-09T11:28:00.479200Z

Same. I try to sleep late some days, but if my son gets me up while the sun is up, it’s over.

reefersleep 2021-03-09T11:29:25.479500Z

Feels swingy to me. There’s still good things posted in an equal amount to those things you mention, in my view.

reefersleep 2021-03-09T11:34:37.481300Z

Good morning. On top of having a 7 week old boy who gets fussy all the time because he sleeps too little, I visited the vet the second time this week. So much stuff to take care of. Wish I could put the cats in reefersleep for a few years.

simongray 2021-03-09T12:03:51.481400Z

yeah, maybe you’re right. I just have this perception that it used to be a lot better 2-3 years ago, but maybe it’s because I’m no longer a beginner myself.

simongray 2021-03-09T12:05:34.482200Z

maybe you can OD them on catnip?

orestis 2021-03-09T12:08:24.484Z

Ah I was a frequent magasasa client before the lockdowns! I will look for that cookbook :) I got an Indian one last year that I’m exploring. Never been to India but was living next to an amazing Nepalese restaurant in Luxembourg :)

simongray 2021-03-09T12:34:58.484200Z

I want to get into Indian food, but I’ve never been there either and I dread learning to make some foreign cuisine only to find out that I was making the Westernised version of it :P

ordnungswidrig 2021-03-09T12:54:32.484900Z

You’re taking your boy to the vet? That’s maybe a smart move 🙂

2😅
reefersleep 2021-03-09T13:13:05.485100Z

Directly into the veins, Inception-style? That’d be neat