10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
Alternatively a webview-based framework or something like Lorca might be another option if you don't want to use Electron: https://maori.geek.nz/golang-desktop-app-webview-vs-lorca-vs...
comment 4y ago · link · parent
comment 4y ago · link · parent
> The hostnames "localhost" and "localhost.localdomain" as well as any hostname ending in ".localhost" or ".localhost.localdomain" are resolved to the IP addresses 127.0.0.1 and ::1.
mDNS only uses the .local suffix but AFAIK it will never resolve anything to localhost on that domain. I'm pretty sure having a mDNS service that advertises a .local domain as 127.0.0.1 would really break things too if it serves that address up to other machines on your network.
comment 4y ago · link · parent
comment 4y ago · link · parent
Setup caddy as a reverse proxy and it will automatically inject a local CA cert into your browsers and auto provision local SSL certs too so you can access local services by names instead of ports, and everything happily works with SSL automagically.
I really, really wish windows and mac had a similar behavior to just route all *.localhost queries to localhost.
comment 4y ago · link · parent
If you're just bundling JS, transforming typescript, maybe doing JSX, etc. then it's just a simple esbuild CLI command to do it. Toss it in a makefile or your CI tooling and you're done.
comment 4y ago · link · parent
Congratulations on being one of the most privileged people in the country. You realize ~50% of the country doesn't even have enough money in their checking/savings to cover a $400 emergency expense right? https://www.fool.com/the-ascent/personal-finance/articles/49...
This isn't a "well just stop buying avocado toast, and start pulling yourself up by bootstraps!" problem. This is a systemic problem with wage stagnation and complete decimation of the middle class over the last decades. The fact is the average American can only dream of having privilege you mention like not depending on their current employment to pay next month's rent/mortgage.
comment 4y ago · link · parent
comment 4y ago · link · parent
Companies have many ways they obfuscate or hide layoffs of older workers though, there is very little legal protection as long as the company isn't so stupid and brazen as IBM (i.e. leaves a trail of evidence in emails).
comment 4y ago · link · parent
me: "Phew, OK realtor let's close on this new house purchase! It's a big investment but my future looks great!"
<two weeks later>
CEO: "I'm sorry but I was wrong and you are terminated effective immediately."
Bank: "Congrats on your house purchase closing, your new monthly payment of $XXXX is due in two weeks!"
How is THAT a better situation than warning people there could be instability ahead? People are being thrown completely under the bus with no warning.
comment 4y ago · link · parent
Sveltekit is kind of similar in style too with single file components containing a script block, HTML, styles, etc. vs. JSX style components.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Contrast this with the United States where we have so far had over _one million deaths_ from COVID-19. In the same timespan China has seen just a few thousand deaths.
If China can do it, why can't the US?
comment 4y ago · link · parent
This means nothing. The virus reinfects people with existing immunity. For example Senator Wicker from MS is on his _third_ infection: https://www.magnoliastatelive.com/2022/06/13/senator-roger-w... Two of those infections have been in the last four months alone!
We have to use NPIs like masking to stop the virus from spreading in order to stop new variants from evolving. There is no herd immunity. There is no natural immunity.
comment 4y ago · link · parent
"they are more transmissible, more likely to evade immunity"
Intrinsic severity of the virus doesn't change the fact it is the most transmissible virus we have ever seen in the world.
Even if it is intrinsically less severe than previous variants, because we are allowing it to spread to EVERYONE in the world we are seeing a much worse impact. Did you miss that in the US alone we've had over 160k deaths from COVID-19 just in the last 6 months of this year? No other virus has had this level of death in the same timeframe.