• 1 Post
  • 136 Comments
Joined 2 years ago
cake
Cake day: August 24th, 2023

help-circle

  • Glibc’s qsort will default to either insertion sort mergesort or heapsort. Quicksort itself is used when it cannot allocate extra memory for mergesort or heapsort. Insertion sort is still used in the quicksort code, when there is a final 4 items that need to be sorted.

    Normally it is simply mergesort or heapsort. Why I know this? Because there was a recent CVE for quicksort and to reproduce the bug I had to force memory to be unable to be allocated with a max size item. It was interesting reading the source code.

    That is if you are not on a recent version of qsort which simply removed quicksort altogether for the mergesort + heapsort

    Older version still had quicksort and even some had insertion sort. Its interesting to look at all the different versions of qsort.



  • I run a personal dnsmasq just for dns resolving/routing. It integrates well with Networkmanager. Easy to work with and very reliable to have the DNS resolution and routing be handled by dnsmasq. Single command to reload NetworkManager which also reloads the integrated dnsmasq. I like it and it offers a lot of control for me. I hate having to use the hosts file for when I am connecting to labs via VPN with their own network. dnsmasq is way better at handling subdomains than the hosts file and it feels way more reliable than just hoping the minimal DNS routing system works properly.


  • You should try to min-max your weekend but instead shift what your expectations are for the min-max. Planning ahead of the weekend is good to reduce anxiety over what you are doing at each minute of the weekend. You plan it out and stick to it. If something comes up that fucks the plan up, then simply it was just not meant to be. Do plan out moments where you are resting too, because if you are planning to do tasks, then you should plan when there is a clear time to rest. Usually tasks happen between times of rest. So plan those rest times accordingly, as those are the only moments when your body can repair and do what it needs to do to keep you healthy. Good luck


  • there is one separating detail that is not shared between most of us. It really depends on how long that tenant lives there. if they are living there for a long period of time and like the place, then yes you are a leech, but a good one since they enjoy living there enough to stay. On the other hand, if you switch tenants often because of high rent costs or bad housing(maintenance included), then you are just simply a leech and not a good one because you are not even providing anything, you instead are holding the property that is simply rotting away with no way for the family holding it to be able to make changes or work towards making it better as they don’t own it. If they leave for other reasons outside of your control, then you are not a leech and provided good housing for someone.

    Since this isn’t usually known by most and takes time to build that moral ideal, it is usually up to you to consider how to act and there is not really an incentive or demand for you to act morally good. Your current living arrangements, life choices and poor job market is not applicable here, you held a home and still operate on living on someone’s paycheck. I hope the best for you and anyone who might be put in a bad spot, I know I am in my own bad spot. Would I try to hold myself to a moral high ground? maybe, though pain is short and I will likely still act not morally good at times, though I am not going to consider myself otherwise but a leech if I do. I would rather make sure I can get new tenants by making sure I get the current one is able to get one that is better or their own property, and help someone new with housing. That is what I think a good landlord could do but if the family likes the house then I can help them afford to buy it off me. See it is just business.

    That is only for leeching aspects. I bet there are more complex thinking involved but this is what I think who a financial/real state leech is.





  • And yet I still believe there were kids who had good tasting vegetables. I already agreed that some didn’t but the ones who did? It was still common for kids to not step up and learn. Oh well, how about I just accept whatever you say but not actually believe your narrow view of life?


  • Fr I don’t think you want to think about it much past the surface level. I agree to some points but not the myth that kids all kids can’t taste good vegetables at all. Conversation ran it’s course, I don’t mind. It is what it is. I believe differently.


  • Acters@lemmy.worldtoLemmy Shitpost@lemmy.world1987
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    1 month ago

    I guess, but really I had some bad habits and didn’t know how to make anything more than simple dishes like spaghetti and meatballs. Salads seemed like way too much effort until you get the proper technique to chop them up. I understand what you mean but I still wish I had learned it as a kid. The muscle memory/technique to hone in on would have been nice before I became an adult and had to rely on eating out or eating random stuff at home because I also never learned to plan out meals properly. I guess there is more to it than cooking is what I am saying.


  • idk, am I privileged to have a family who cared enough to go to eat out once in while like once a month ?

    I fail to see how you can think I am trying to relate to someone who never had decent vegetables. It’s not like it is impossible for many of us to eat decent vegetables at one point. I clearly am not trying to be relating to everyone’s background. You are simply nitpicking and didn’t bother reading or understanding my comment.



  • This is so true. I find there are plenty of ways to enjoy vegetables on the cheap or lower the effects of rot on foods. I feel like people don’t realize that 2000s is the year that current adults as kids grew up in. It is so much better back than after 2008 and 2020(current generation) are having to deal with but still it was a solved problem.

    Yet people don’t really see what was talking about. I wasn’t alluding to the vegetables, but rather how kids are not willing enough to learn to cook or take initiative when they don’t enjoy something.

    It isn’t easy to cook but I still helped my little brother. I wish when I was a kid, I learned to cook. My mom made the best foods though, and I lived pretty much happy with vegetables. I love salads. It is sad how many are not liking salads or vegetables as much.


  • I don’t know where this came from. I am talking about how as kids we grow up too shy to pickup cooking as a skill, even though we find it not taste right for us. It is fine to accept the food cause hard work and all that about love, but if you feel like it’s not good enough, we don’t seem to try. But you know I don’t deny it’s like that, yet people can still talk to their parents as kids, spice exists and canned veggies or frozen ones can taste decent. All basic truths.

    I helped my little brother cook, he started pretty terribly and to be encouraging everything was, well, not gonna be effective for him to learn. I always made it clear I admired his work but clearly put how cooking skill takes patience and dedication to do. He learned how hard it was for me to cook. I wish I learned to cook when I was a kid.

    Oh well people here got whooshed on the real story I laid out.



  • Acters@lemmy.worldtoLemmy Shitpost@lemmy.world1987
    link
    fedilink
    arrow-up
    3
    arrow-down
    27
    ·
    1 month ago

    What’s even more silly about this is that you never bothered to cook it yourself to experience better cooked food and the reason is? Idk for me it was because I am lame and too shy to ask to change the established way of life. On the other hand I have adjusted to eat food of all sorts even though it is displeasing. Except foods that have capsaicin or or peppers, I’m allergic to them.


  • I think the biggest limiting factor for your mini PC will always be the VRAM and any workload that enjoys that fast RAM speed. Really, I think this mini PC from framework is only sensible for certain workloads. It was poised as a mobile chip and certainly is majorly power efficient. On the other hand I don’t think it is for large scaling but more for testing at home or working at home on the cheap. It isn’t something I expected from framework though as I expected them to maintain modularity and the only modularity here is the little USB cards and the 3D printed front panel designs lol

    Edit
    Personally I am in that niche market of high RAM speed. Also, access to high VRAM for occasional LLM testing. Though it is an AMD and I don’t know if am comfortable switching from Nvidia for that workload just yet. Renting a GPU is just barely cheap enough.