Fork me on GitHub
#clojure-europe
<
2021-03-09
>
kardan05:03:12

Good morning

pez06:03:55

Mornings!

dharrigan07:03:15

Hello Peeps!

pez07:03:11

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

❤️ 15
🎉 9
pez07:03:58

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

javahippie08:03:37

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 👌

❤️ 3
borkdude08:03:19

There is an emacs keybinding plug-in for VSCode

3
borkdude08:03:34

Even things like C-x 3 work

javahippie08:03:25

Good to know, thanks!

pez09:03:58

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

pez09:03:31

And @U05254DQM made a VSpaceCode config.

practicalli-johnny09:03:56

Vim style editing for the win 🙂

vim 3
simongray08:03:57

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

ordnungswidrig08:03:32

Oh shit, these are rough times @simongray

orestis08:03:41

@simongray working from home?

orestis08:03:50

Just get a nap 🙂

ordnungswidrig08:03:24

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

simongray08:03:48

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

reefersleep11:03:00

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

ordnungswidrig08:03:04

You can take the day off sick 🙂

ordnungswidrig08:03:25

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

🐵 3
orestis08:03:36

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.

orestis08:03:28

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.

simongray08:03:38

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

👏 3
ordnungswidrig08:03:15

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

ordnungswidrig08:03:26

(Or just finally install my hammock)

simongray08:03:03

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.

simongray08:03:42

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

reefersleep11:03:25

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

simongray12:03:51

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.

reefersleep22:03:34

That'd make perfect sense :hugging_face:

ordnungswidrig08:03:22

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

borkdude08:03:49

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

☝️ 3
djm08:03:07

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

❤️ 3
ordnungswidrig08:03:37

/r/clojure is quite friendly for reddit standards 😈

🙈 3
ordnungswidrig08:03:24

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

simongray08:03:32

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

simongray08:03:05

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

🎉 3
simongray08:03:50

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.

orestis09:03:55

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

simongray09:03:42

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.

simongray10:03:44

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 😉

orestis12:03:24

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 :)

simongray12:03:58

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

mccraigmccraig09:03:20

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

simongray09:03:35

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….

mccraigmccraig09:03:41

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

mccraigmccraig09:03:53

an 8 hour tantrum is quite impressive though!

simongray09:03:50

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

ordnungswidrig09:03:50

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

😆 3
djm09:03:16

I don't miss sleepless nights

ordnungswidrig09:03:17

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 😛

slipset09:03:17

morning

👏 3
simongray09:03:49

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.

ordnungswidrig09:03:53

I’m using the catchall domain *. all names point to localhost, e.g.

simongray09:03:54

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

simongray09:03:13

how do you set up something like that?

ordnungswidrig09:03:21

Not sure of that helps with browser security though.

agigao09:03:33

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 😁

ordnungswidrig09:03:19

@simongray using that you should be able to use a self-signed cert for

simongray09:03:04

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

ordnungswidrig09:03:29

just resolves to 127.0.0.1 resp. ::1

simongray09:03:52

ok - just the .de URL threw me off

ordnungswidrig09:03:09

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

ordnungswidrig09:03:52

like *.which helps with domain-based tab isolation in firefox

ordnungswidrig09:03:30

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.

ordnungswidrig09:03:54

Hehe Edge already hase implemented this.

ordnungswidrig09:03:34

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

simongray09:03:59

it’s a SAML library

ordnungswidrig09:03:12

I see. You’re doomed 😛

simongray09:03:03

trying out that Chrome flag, thanks!

simongray09:03:54

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

simongray09:03:20

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.

simongray09:03:08

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

javahippie09:03:22

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

jasonbell09:03:04

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

☝️ 3
simongray09:03:12

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

javahippie09:03:47

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

javahippie09:03:09

Example docker-compose.yml with traefik

ordnungswidrig09:03:07

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

javahippie09:03:24

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

javahippie09:03:55

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

javahippie10:03:40

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

simongray10:03:02

> 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.

simongray10:03:27

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

simongray10:03:49

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

javahippie10:03:19

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

simongray10:03:19

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?

simongray10:03:41

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.

javahippie10:03:08

Ah, I get it.

simongray10:03:58

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

simongray10:03:10

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

dharrigan10:03:24

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

dharrigan10:03:28

is to run charles proxy

dharrigan10:03:41

then install it's root certificate into the java keychain

dharrigan10:03:51

then you can use it as a mitm

dharrigan10:03:56

and inspect the traffic

dharrigan10:03:38

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

dharrigan10:03:53

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

reefersleep11:03:37

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.

simongray12:03:34

maybe you can OD them on catnip?

reefersleep13:03:05

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

ordnungswidrig12:03:32

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

😅 6