Better HN
topnewbestaskshowjobs
Log inSign up

dailykoder

646 karma · joined Jul 15, 2022 (4y ago) · 331 submissions

Only admins see your email below. To share publicly, add to the 'about' box.
Submissions

comment 1y ago · link · parent

At work I often switched to VSCode because I couldn't get pyright to work with our django project. The errors everywhere were just annoying to look at. So I looked around and found "ruff" and "jedi_language_server". This combination seems to do the trick. I don't have to configure anything. I source my venv and it "just works". I assume our python codebase is something around the 10k LOC, too. I am not mainly responsible for the python part, so I don't spent excessive amount of time in there, but for the time I do, it works nicely

- https://github.com/pappasam/jedi-language-server

- https://github.com/astral-sh/ruff

comment 1y ago · link · parent

This. Old Facebook was okay. Planing parties with friends, connecting with people you haven't seen in years and so forth. But when I noticed they put suggested posts in my feed and just hiding posts from friends, it wasn't worth the time anymore. Also lot of other problems (showing off how good your life is to get likes and so forth. Just a lot of tiny issues)

comment 1y ago · link · parent

Thanks to social media I got more and more depressed and anxious in my youth. My natural shame evolved into fantastic pathological shame. Took me only 10 years to fight against it and kinda feel normal again. Thank you social media

Edit: social media wasn't the cause, but a lot of fuel

comment 1y ago · link · parent

Yes, that's kinda obvious, but actually doing that and not go back to your old habits is hard. For some more, for some less

comment 1y ago · link · parent

I am so f-in glad I deleted facebook like 10 years ago and never hoped onto anything else. I only hate that I visit HN every few minutes, when I get bored at cagie.

But apart from that, just don't use social media. It's really as simple as it sounds. The only hard thing is to find something to fill the free'd up time with.

comment 1y ago · link · parent

I counted calories and put everything on a scale, for about 2 or 3 months in 2022 (iirc). And you are 100% right. I had absolutely no idea how much calories some food has. There were a lot of things, but I think cashews were my biggest eye opener (probably obvious to a lot of people). I easily achieved my goal of -10kg and saved A LOT of money, because I always had food prepared. And since I was going for a calorie deficit, I easily could afford a few sweets on the weekend.

Then I obviously got lazy. And while I sometimes still think I can estimate how much I am eating, I am probably wrong, because my bathroom scale says something different. My key takeaway is that it takes quite a bit of effort, but once you got into a routine, it's not hard.

Edit: Also, while I might have tried to ditch "wasted calories", I didn't put too much effort in eating healthy. One step at a time.

comment 1y ago · link · parent

>supreme court says that tiktok might be a threat to national security

>yeah, let's just ignore that. Dance videos on tiktok are more important than security

That's so f-in absurd. I can't even wrap my head around why anyone would literally protest against the ban. I just hope that germany, or rather europe, will have such a ban, too, and that it get enforced properly.

comment 1y ago · link · parent

Yes, but only if they run in javascript. We need more javascript.

comment 1y ago · link · parent

>Teenagers need to connect.

But not in a tiktok-way. They have more than enough social contacts when they go to school. No one need tiktok.

comment 1y ago · link · parent

"An error occured. Please try again later"

comment 1y ago · link · parent

Maybe C should do that, but it won't. So why complain? Just work with the language as it is

comment 1y ago · link · parent

Yes, knowledge is just a different form of nutrition.

comment 1y ago · link · parent

Because the author uses Berlin as an example. As a millenial that grew up in Berlin, I just think that the hype about, what used to be alternative, mainstream clubs is flattening. Especially techno and electro clubs. They are just not as great as social media wants you think they are.

People who love the music will go their for the music and will keep going. Social media folks that go there for the drugs and epic party will lose interest, because it's not as epic as they think it is.

Apart from that other alternative clubs are just doing fine (I am going mostly to drum and bass parties). Even though they got less. But I think the club dying there was because of other reasons, not the missing audience

comment 1y ago · link · parent

This looks nice. Thank you! Been considering something like that for quite a while now (Since my own risc-v CPU, written in VHDL, is working actually). I might get this as inspiration and rewrite it in Rust (tm) - Because I wnat to learn Rust, too

comment 1y ago · link · parent

>Being outdoors is an excellent defense, as is shown in the data generated by the NFL during the pandemic.

This is so crazy to me. Maybe it wasn't communicated clear enough, but for me it was always cristal clear that while being outside chances of getting infected are very very small. And people were still afraid and wore masks outside. The government still bullied you, and police could fine you, if you took a stroll during lockdown in germany.

No, I didn't want to go outside or to a party to infect others. I wanted to take a stroll to not kill myself and because I knew there is almost no chance in getting infected or infecting anyone else. And I still was scared of any police car driving past, because the government fucked up. I even remember the news stories of people getting fined because they read a book on a f-in park bench, because they werent allowed to linger outside

comment 1y ago · link · parent

I did that and clicked through the first 5 links. Doesn't sound that obvious to me. I found this one interesting: https://pmc.ncbi.nlm.nih.gov/articles/PMC10446908/

> More studies found that masks (n = 39/47; 83%) and mask mandates (n = 16/18; 89%) reduced infection than found no effect (n = 8/65; 12%) or favoured controls (n = 1/65; 2%). Seven observational studies found that respirators were more protective than surgical masks, while five found no statistically significant difference between the two mask types.

So as a dummy I conclude that masks do work, as expected. But the question is still: Do we need them?

comment 1y ago · link · parent

>For medical professionals, very strict masking protocols were needed to get any assurance of safety.

That's a very good point. As I understood it, even if we ignore the people that don't cover their nose, you have to be very careful when putting one on, to get the desired protection. Most people just don't care enough about it. Also use them to often, yada yada yada...

comment 1y ago · link · parent

>At large, covid was never dangerous to children and (healthy) (non-senior) adults.

We didn't know that in the first place though. We expected it, but I shared the sentiment of better be safe then sorry. At least for 2020. I think after that it got handled extremly badly. I can only speak of germany from personal experience though. While I still can understand _some_ of the decissions made by politics, I think they were communicated very very bad and not discussed openly

comment 1y ago · link · parent

I still desperately want to know the current (scientific) state of wearing a mask. On the one side we have people that say 'our bodies need to learn again to fight against viruses' and the other side which wants you to put on a mask even if you have the smallest sign of a common cold. - Though, I do understand the fear of people who have/had long covid, MCFS or do know people who have, but I don't know what conclusion to draw for myelf out of this. Gladly nothing happened to myself. I don't even know if I ever had covid. At least I never had a positive test and I did quite a bit of them. Maybe I just have a lucky immune system (or a good one because I dont fear getting sick and run into all sorts of viruses?)

I myself tend to lean towards the first group, but also recognize that masks during covid might have been a good thing. At least in the beginning when we didn't know what we can expect.

So does anyone have any literature on how good masks are, if we should be wearing them and if so, when we should?

comment 1y ago · link · parent

They are not free

comment 1y ago · link · parent

And that's a really really sad story.

And then seeing people say >I don't understand it either, a 16 GB DDR5 stick costs like $50

50 bucks is a lot of money to a whole lot of people. Yes, actual computations and compilation etc take a lot of memory, but there is so much memory wasted through js bloat, it's just sad. But if you take a little effort and optimize your system, then 16GB is still more than enough and "just works"

comment 1y ago · link · parent

>what will it improve?

it will make you (as of now) unable to use thunderbolt and therefore a dock. Maybe you see that as improvement. I kinda like my thunderbolt

comment 1y ago · link · parent

Kind of always gives me the same output over and over again. It's kinda neat though. Have to look into it and tweak it myself. Wanted to play around with gpt2 locally for quite some time.

Thanks for the post!

comment 1y ago · link · parent

>A pithy quote attributed to the pioneering researcher Edsger Dijkstra helps me explain: “Computer science is no more about computers than astronomy is about telescopes.”

Reminds me of the MIT lecture "Lecture 1A | MIT 6.001 Structure and Interpretation, 1986"[1]. And I still remind myself of that. If you fundamentally understand your problem and solve it, then writing a few characters in your favorite text editor that do the task is easy

- [1] https://www.youtube.com/watch?v=2Op3QLzMgSY

comment 1y ago · link · parent

I'd second that. I am far far away from being a pro, but my gut feeling and memory tell me that I felt way bigger forces while doing big, steep dirt jumps than any form of downhill. Though, the pros are actually fast around the corners, unlike me. So maybe there might be some g-forces, but I doubt they are anywhere near an F1 car or something else

comment 1y ago · link · parent

Looks like a nice plugin. Kudos to the madman, I will def check that one out. Thanks!

Always have written markdown without preview and hoped that it looked right when I commited it.

Edit: Or on edge cases I have used remarkable[1], which I have found ages ago. I don't even know how """good""" it is, but I like its simplicity.

- [1] https://remarkableapp.github.io/

comment 1y ago · link · parent

I much rather meant the fear of the unknown and people thinking that the world would end in pure chaos, not as much the technical background. And all of that because a number of a birth year from one person was chosen.

comment 1y ago · link · parent

I was only 9 years old then, but nowadays I find it interesting that a number, which was arbitrarily chosen, caused so much fear and stuff. It's just a random number. Why were people scared of numbers?
12345
12