xiretza's recent activity

  1. Comment on My first time using LInux as someone who's not a computer aficionado - It's perfect in ~comp

    xiretza
    Link Parent
    There are still plenty of distributions where you can get your hands dirty (and screw everything up). At least for tinkering in a VM they can be a lot of fun :)

    There are still plenty of distributions where you can get your hands dirty (and screw everything up). At least for tinkering in a VM they can be a lot of fun :)

    1 vote
  2. Comment on A Spectre is Haunting Unicode in ~comp

    xiretza
    Link
    This has already been posted on ~tech two days ago. It's about time for a search function I think.

    This has already been posted on ~tech two days ago. It's about time for a search function I think.

    4 votes
  3. Comment on My first time using LInux as someone who's not a computer aficionado - It's perfect in ~comp

    xiretza
    Link Parent
    Also a good one: trying to delete all hidden files in working directory using rm -rf .*. Including .., oops.

    Also a good one: trying to delete all hidden files in working directory using rm -rf .*. Including .., oops.

    2 votes
  4. Comment on A web app to test connected gamepads and controllers in your browser [OC] in ~tech

    xiretza
    Link
    Holy crap, that's quite scary. No permission request in the browser, no notification, nothing. The web page is simply able to globally monitor all gamepad activity in real time with high...

    Holy crap, that's quite scary. No permission request in the browser, no notification, nothing. The web page is simply able to globally monitor all gamepad activity in real time with high resolution.

    I bet there are people who enter their steam password on their steam machine using the controller...

    Works great though, and it's interesting how apparently QtWebengine presents this data slightly differently than firefox, which shows linear axes for the triggers instead of plain values.

  5. Comment on My first time using LInux as someone who's not a computer aficionado - It's perfect in ~comp

    xiretza
    Link Parent
    GNU rm actually doesn't allow you to delete / without specifying --no-preserve-root. But since /* gets expanded by the shell to every subdirectory of / (/bin /etc /home /usr ...), rm never sees /...

    GNU rm actually doesn't allow you to delete / without specifying --no-preserve-root. But since /* gets expanded by the shell to every subdirectory of / (/bin /etc /home /usr ...), rm never sees / as an argument and thus deletes everything just fine.

    9 votes
  6. Comment on My first time using LInux as someone who's not a computer aficionado - It's perfect in ~comp

    xiretza
    Link
    Just FYI, ChromeOS is actually Linux. It's based on the Gentoo distribution due to its extremely modular and bare-metal design, allowing fun things such as using Chrome for basically the entire UI...

    Just FYI, ChromeOS is actually Linux. It's based on the Gentoo distribution due to its extremely modular and bare-metal design, allowing fun things such as using Chrome for basically the entire UI and even lower parts.

    8 votes
  7. Comment on Hospitals know how to protect mothers. They just aren't doing it. in ~health.mental

    xiretza
    Link Parent
    Ah yes, outline works. "We pretend to comply with GDPR by not giving you any functionality in the first place", which is exactly against GDPR. Not that they care though, they're in the US.

    Ah yes, outline works. "We pretend to comply with GDPR by not giving you any functionality in the first place", which is exactly against GDPR. Not that they care though, they're in the US.

    2 votes
  8. Comment on Hospitals know how to protect mothers. They just aren't doing it. in ~health.mental

    xiretza
    Link
    Where's the article? All I see is the headline and a few pages worth of links to other articles. This is on mobile from the EU, which apparently gets a special version of the site. Maybe that's...

    Where's the article? All I see is the headline and a few pages worth of links to other articles. This is on mobile from the EU, which apparently gets a special version of the site. Maybe that's related.

    2 votes
  9. Comment on What are you working on this weekend? in ~comp

    xiretza
    Link Parent
    Yeah, weird motherboards suck. Took me well over a year to find out why any Linux would freeze hard when it played sound for more than a second (even with all sound drivers blacklisted, go...

    Yeah, weird motherboards suck. Took me well over a year to find out why any Linux would freeze hard when it played sound for more than a second (even with all sound drivers blacklisted, go figure). Turns out that if I disable Intel TurboBoost in setup it's fine. Not sure if it's the CPU or the mobo that's bad, but at least I found a decent workaround.

    AsRock H97 Anniversary in my case, it was the cheapest around when I bought it.

  10. Comment on You just lost the game in ~misc

    xiretza
    Link
    Well screw you. I had a decent run for a month or two since I started reading Housepets!.

    Well screw you. I had a decent run for a month or two since I started reading Housepets!.

    4 votes
  11. Comment on What are you working on this weekend? in ~comp

    xiretza
    Link Parent
    Well that's a new one, USB 2 has never been a problem for me. If anything, USB 3, because I updated my kernel, then plugged something in a USB 3 port, for which drivers weren't loaded and couldn't...

    Well that's a new one, USB 2 has never been a problem for me. If anything, USB 3, because I updated my kernel, then plugged something in a USB 3 port, for which drivers weren't loaded and couldn't be loaded because the old (running) kernel's modules weren't on disk anymore. Reboot fixes that though.

    And pulseaudio/ALSA is a pain in the butt, it not working is basically the norm.

    3 votes
  12. Comment on Casual Conversation 27/07/2018 - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    xiretza
    Link Parent
    Please, if you're gonna format it like that, use proper ISO 8601: 2018-07-27. Relevant xkcd

    Please, if you're gonna format it like that, use proper ISO 8601: 2018-07-27.

    Relevant xkcd

    5 votes
  13. Comment on Casual Conversation thread - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    xiretza
    Link Parent
    Hah, this thread is honestly pretty funny to me. Not doing what I want/not being in control of my OS is the second big reason I don't want to use Windows. The third is the openness/freedom of...

    Hah, this thread is honestly pretty funny to me. Not doing what I want/not being in control of my OS is the second big reason I don't want to use Windows.

    The third is the openness/freedom of Linux (which ties into being in control), which windows just doesn't have at all, if you're lucky some of the applications you use are open source (not necessarily Free).

    The last I can think of right now is that Linux isn't actively hostile against and doesn't spy on me. Which is a given with being so open, if it was there someone would just take it out.

  14. Comment on Casual Conversation thread - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    xiretza
    Link Parent
    Yeah, that's true, Debian/Ubuntu is a bit of a mess package wise. I'm spoiled by Arch, there's hardly anything that isn't readily available from the AUR.

    Yeah, that's true, Debian/Ubuntu is a bit of a mess package wise. I'm spoiled by Arch, there's hardly anything that isn't readily available from the AUR.

  15. Comment on Casual Conversation thread - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    xiretza
    Link Parent
    Huh? Personally I vastly prefer a centralized package manager that manages everything I have installed over having to scour the internet for a place to download a program, and then having to keep...

    ...oh, right, I remember why I don't do Linux, I don't like the way downloading things for Linux works

    Huh? Personally I vastly prefer a centralized package manager that manages everything I have installed over having to scour the internet for a place to download a program, and then having to keep up with updates for each program separately.

    In fact I would say that package management is one of the biggest reasons to use Linux over windows, it's just so much more convenient and simple.

    1 vote
  16. Comment on Casual Conversation thread - for random chit chat and nonsense that doesn't fit elsewhere. in ~talk

    xiretza
    Link Parent
    If in doubt, throw VLC at it. As long as there's a moving picture and/or sound in it, VLC will do its very best to bring it to your eyes and ears.

    I don't know of a way of playing movie discs on Linux computer.

    If in doubt, throw VLC at it. As long as there's a moving picture and/or sound in it, VLC will do its very best to bring it to your eyes and ears.

    1 vote
  17. Comment on What operating system do you use? in ~comp

    xiretza
    Link Parent
    Huh, too old for VFIO but beefy enough for VR? Interesting combo. I'm also not sure how well VR actually works with passthrough, it's quite a bit of extra timing-critical hardware.

    Huh, too old for VFIO but beefy enough for VR? Interesting combo. I'm also not sure how well VR actually works with passthrough, it's quite a bit of extra timing-critical hardware.

  18. Comment on Walmart's newly patented technology for eavesdropping on workers presents privacy concerns in ~tech

    xiretza
    Link Parent
    Because they get paid not to.

    Because they get paid not to.

    2 votes
  19. Comment on Programming Challenge: Given a triangle of numbers, find the path from the top to the bottom of the triangle with the largest sum. in ~comp

    xiretza
    (edited )
    Link
    I think I did this one on codewars before, couldn't find the code anymore though. So here, have some fresh, ugly, probably-correct Python3. num_rows = int(input()) pyramid = [ [int(c) for c in...

    I think I did this one on codewars before, couldn't find the code anymore though. So here, have some fresh, ugly, probably-correct Python3.

    num_rows = int(input())
    
    pyramid = [
        [int(c) for c in input().split()]
        for i in range(num_rows)
    ][::-1]
    
    for rownum, row in enumerate(pyramid[1:], 1):
        prev_row = pyramid[rownum-1]
        pyramid[rownum] = [
            d + max(prev_row[i], prev_row[i+1])
            for i, d in enumerate(row)
        ]
    
    print(pyramid[-1][0])
    

    yes, it modifies values in pyramid while looping over it, but only ones that have already been seen, so it should be fine.

    Edit: MORE GOLFING!

    from functools import reduce
    print(reduce(lambda s,r:[d+max(s[i:i+2])for i,d in enumerate(r)],[list(map(int,input().split()))for _ in range(int(input()))][::-1])[0])
    
    4 votes
  20. Comment on Password manager suggestions? in ~tech

    xiretza
    (edited )
    Link
    Im a big fan of KeePass. It's Free and open source software (FOSS) and has clients for basically every OS - of course the "official" one for Windows, the cross-platform KeePassXC as well as...

    Im a big fan of KeePass. It's Free and open source software (FOSS) and has clients for basically every OS - of course the "official" one for Windows, the cross-platform KeePassXC as well as keepass2android.

    It doesn't have a built-in "cloud", but you can simply store your database on Dropbox/GDrive/Nextcloud/... and then point your clients to that. Works flawlessly.

    36 votes