Good morning
Mornings!
Morning
👋
Good morning!
månmån
Hello Peeps!
Achievement unlocked. (And then @borkdude also retweeted ❤️).
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 👌
There is an emacs keybinding plug-in for VSCode
Even things like C-x 3 work
Good to know, thanks!
@borkdude also has some Calva custom shortcuts laying around. 😃
And @jr0cket made a VSpaceCode config.
Vim style editing for the win 🙂
Here’s the tweet, in case someone else wants to retweet 😃 https://twitter.com/pappapez/status/1368883091243155458
Morning!
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
Morning
Morning
Oh shit, these are rough times @simongray
@simongray working from home?
Yeah
Just get a nap 🙂
It’s ok for parents to sleep while the kids are awake (and stored safely) 😉 But easier said than done.
My body doesn't work that way 😑 sun is up = I am awake. Besides, I can't run from the meetings.
You can take the day off sick 🙂
Sleep deprivation is a serious condition. Not only to your body, but also to the code 🐒
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.
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.
Hm, I wouldn't wanna mistreat my code, would I..
“Zone out on the couch” sounds tempting. I need a couch in my office room 😛
(Or just finally install my hammock)
Morning!
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.
Feels like it's mostly #beginners type of material and meta-commentary on the perceived cultiness of Clojure.
That'd make perfect sense :hugging_face:
You could say that about a lot of subreddits I guess. I thinks it’s a matter of come and go.
I do feel that reddit can be more unfriendly than say this slack or clojureverse
When my son was younger, I would have had to take a whole year off, if I took time off for sleep deprivation 😢
/r/clojure
is quite friendly for reddit standards 😈
Hah!
Sometimes I wonder if there’s a clojure goup on facebook but I don’t dare to look
Better than /r/lisp for sure, but lately it's just getting an Eternal September vibe
My wife is home again, so now she can take care of the baby and I can finally get to eat some breakfast
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.
you'll perhaps kinda miss the sleepless nights in a couple of years when it's all calmed down @simongray - i know i did
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….
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
an 8 hour tantrum is quite impressive though!
I can confirm. I’m also more flexible with sleep schedules. Wich means am super fatigue whenever I wake up 🙂
I’ll be sure to tell him that when is able to speak!
I don't miss sleepless nights
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 😛
morning
mogge
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.
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>
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
how do you set up something like that?
Not sure of that helps with browser security though.
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 😁
@simongray using that you should be able to use a self-signed cert for <http://xxx.l.c6e.de|xxx.l.c6e.de>
maybe a dumb question, but are you running a web server that reverse proxies your localhost?
no
<http://xxx.l.c6e.de|xxx.l.c6e.de>
just resolves to 127.0.0.1
resp. ::1
ok - just the .de URL threw me off
well, I own http://c6e.de which I use for all kinds of thechnical stuff
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
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.
Hehe Edge already hase implemented this.
I wonder why you would server a project via SSL on localhost during dev?!
Maybe this helps? https://improveandrepeat.com/2016/09/allowing-self-signed-certificates-on-localhost-with-chrome-and-firefox/
it’s a SAML library
I see. You’re doomed 😛
😛
trying out that Chrome flag, thanks!
morning
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
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.
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
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
It would be great to see some blogs on this kind of thing.
Thanks @simongray
@javahippie Interesting that you and @ordnungswidrig both use a domain you own. What’s traefik for? I’m not familiar with it.
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
Interesting because that means you’re actually exposing locally running services to the internet, right?
Example docker-compose.yml with traefik
Where do you find this dish? Made it at home or takeaway?
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
You can always self-sign and add it to your local authority, though
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.
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 😉
But self signing and Java (or access from virtualized environments) are still a pain
> 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.
It started happening sometime last year for Safari and a coupe of months ago for Chrome.
Before they used to have a warning page with some convoluted “proceed at your own risk” message.
There is a Firefox Developer Edition, which is very configurable in these things
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?
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.
Ah, I get it.
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
modern web development is like 80% working around the lastest web security features and 20% actual development 😛
morning
@simongray what I do (and I work with 3rd party APIs a lot)
is to run charles proxy
then install it's root certificate into the java keychain
then you can use it as a mitm
and inspect the traffic
your local processes connect to http://localhost:<a port number> and charles will forward on that to http://destination:443 over TLS
and do the reverse, so you can look at all the juicy bits
Same. I try to sleep late some days, but if my son gets me up while the sun is up, it’s over.
Feels swingy to me. There’s still good things posted in an equal amount to those things you mention, in my view.
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.
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.
maybe you can OD them on catnip?
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 :)
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
You’re taking your boy to the vet? That’s maybe a smart move 🙂
Directly into the veins, Inception-style? That’d be neat