Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)C
Posts
1
Comments
761
Joined
2 yr. ago

  • I used to be shoes on.

    You just wake up, put on underwear, pants, shirt, socks and shoes, in that order.

  • Probably written by AI

  • TIL: Besides offering a free compromised email check, haveibeenpwned.com also offers a free password compromise checking service (It's also fun to see what weird passwords have been used/leaked.)

    Jump
  • This service is for people that use the same password everywhere. It makes no sense for someone that uses a different password per site.

  • TIL: Besides offering a free compromised email check, haveibeenpwned.com also offers a free password compromise checking service (It's also fun to see what weird passwords have been used/leaked.)

    Jump
  • You enter your password in thousands of websites. Why is this one different?

  • Well. Doing everything costs energy.

    If you only display hours and minutes, you only need to redraw the clock every minute. If you display the seconds, you have to redraw every second.

    And redrawing is not just changing some pixels. The Os scheduler has to wake up the process, put another to sleep. And all of that costs power.

    Yes, the clock in the taskbar probably uses less power in an hour than watching a YouTube video will consume in a second.

    But it is still a 60x increase in power usage.

    This warning is actually a good thing. It means whoever implemented the seconds in the taskbar clock actually has the right mindset for developing an operating system. You don't use a JavaScript framework to develop the start menu because "all the juniors come from JavaScript boot camps so it's cheap to hire" you want someone that knows that the OS' job is to provide a strong base layer that uses little resources so great things can be built on top of it.

    Of all the things you could complain about windows, you chose to do it about the actually good ones, when you could go instead for the "30% vibe coded" codebase with a JavaScript UI that can't even implement a "power off" button.

  • I wouldn't say so. If it said instead "the spouse of your neighbor" it wouldn't consider the spouse a property of the other spouse. X of Y doesn't mean X is the property of Y. "Of" is just not a precise word.

  • Well, according to what I read on the internet, everything works out of the box for Linux and this year is the year of the Linux desktop. But according to personal experience and most of the people I know IRL, there is always someone that spent last weekend fixing some weird thing that doesn't work on their system in Linux that used to work correctly when they used windows instead.

  • They are not resigning because they are ashamed of being pedophiles. They are resigning because they were caught being pedophiles.

    If they were ashamed they would've resigned before the Epstein files were released.

  • It's in screen settings. But you can also use the keyboard keys and it works.

  • If only it were that simple.

  • I don't think you can qualify any trump scandal as an "earthquake". Earthquakes move things around. USAians would still vote for trump.

  • No you don't. OP just chose a bad example.

    It's not been that long since I last used Linux, but when I did, I had to type a command in the terminal to change screen brightness (kubuntu)

  • It does show seconds though. It's in the settings.

  • This is not image repair. Musk shared starling in exchange for Russia's silence. But the files are out so Russia didn't do their end of the deal, so musk removes his end of the deal.

  • Deref works on top of encapsulation though. Inheritance syntactically hides the encapsulation, with Deref it's in the clear.

    It's true that it feels like inheritance, but I'm grateful for it. Otherwise it would be a pain to use the windows API.

  • I know this thread is old. But I disagree with you.

    I agree that depending on how you use a debugger, some race conditions might not happen.

    However, I don't agree that debuggers are useless to fix race conditions.

    I have a great example that happened to me to prove my point:

    As I was using a debugger to fix a normal bug, another quite strange unknown bug happened. That other bug was indeed a race condition. I just never encountered it.

    The issue was basically:

    1. A request to initiate a session arrives
    2. That request takes so long that the endpoint decides to shut down the session
    3. A request to end the session arrives

    And so handling the session start and session end at the same time resulted in a bug. It was more complicated than this (we do use mutexes) but it was along those lines.

    We develop in a lab-like condition with fast networking and computers, so this issue cannot happen on its own. But due to the breakpoint I put in the session initiation function, I was able to observe it. But in a real world scenario it is something that may happen.

    Not only that, I could reproduce the "incredibly rare" race condition 100% of the time. I just needed to place a breakpoint in the correct place and wait for some amount of time.

    Could this be done without a debugger? Most of the time yes, just put a sleep call in there. Would I have found this issue without a debugger? Not at all.

    An even better example:

    Deadlocks.

    How do you fix a deadlock? You run the program under a debugger and make the deadlock happen. You then look at which threads are waiting at a lock call and there's your answer. It's as simple as that.

    How do you print-debug a deadlock? Put a log before and after each lock in the program and look at unpaired logs? Sounds like a terrible experience. Some programs have thousands of lock calls. And some do them at tens of times per second. Additionally, the time needed to print those logs changes the behaviour of the program itself and may make the deadlock harder to reproduce.

  • Biometrics for phones were always a security risk.

    Every security measure is vulnerable to the wrench method. But at least with passwords you have to make the decision to say it out loud. With biometrics, it can just be unlocked while you sleep.

    The only security advantage is that with passwords you can just look at/film the screen. But you'd need very high res images of your fingerprint + advanced 3d printing.

  • 4k is noticeable in a standard pc.

    I recently bought a 1440p screen (for productivity, not gaming) and I can fit so much more UI with the same visual fidelity compared to 1080p. Of course, the screen needs to be physically bigger in order for the text to be the same size.

    So if 1080p->1440p is noticeable, 1080p->4k must be too.

  • Good rule of thumb. As long as it's not followed blindly of course.

    Structs with lifetimes are often quite convenient. Especially for performance.