• 1 Post
  • 106 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle
  • It has been a while since I have to deal with problem complexities in college, is there even class of problems that would require something like this, or is there a proven upper limit/can this be simplified? I don’t think I’ve ever seen O(n!^k) class of problems.

    Hmm, iirc non-deterministic turing machines should be able to solve most problems, but I’m not sure we ever talked about problems that are not NP. Are there such problems? And how is the problem class even called?

    Oh, right, you also have EXP and NEXP. But that’s the highest class on wiki, and I can’t find if it’s proven that it’s enough for all problems. Is there a FACT and NFACT class?


  • Here is a picture, that may help a little bit. The n is input size, and f(n) is how long does the algorithm runs (i.e how many instructions) it takes to calculate it for input for size n, i.e for finding smallest element in an array, n would be the number of elements in the array. g(n) is then the function you have in O, so if you have O(n^2) algorithm, the g(n) = n^2

    Basically, you are looking for how quickly it grows for extreme values of N, while also disregarding constants. The graph representation probably isn’t too useful for figuring the O value, but it can help a little bit with understanding it - you want to find a O function where from one point onward (n0), the f(n) is under the O function all the way into infinity.



  • Exactly this. I only have pretty vague experience with machine learning, since it was one of the other specializations for my Masters than the one I choose, which however means we still shared some basic courses on the topic, and I definitely share his point of view. I’ve been saying basically the same things when talking about AI, albeit not as expressively, but even with basic insight into ML, the whole craze that is happening around it is such bullshit. But, I’m by no means an expert in the field, so I may be wrong, but it’s nice to finally read an article from an “expert” in the field I can agree with. Because so far, the whole “experts talking AI” felt exactly like the COVID situation, with “doctors” talking against vaccines. Their doomsaying opinion simply contradicts even the little knowledge I have in the ML field.


  • Ever since I played watchdogs and shadowrun, I wanted to work in cybersecurity, especially as a Red Teamer, which is literally Shadowrun - you run complex ops that have to break in, and steal stuff from largre banks without anyone but the management knowing about the test, with almost nothing being off-limits, as long as it doesn’t cause some kind of damage.

    Five years later, I do work as a Red Team Lead. Hpwever, our company was just scrambling to start doing RT since thats the buzzword now, and while we did have amazing pentesters, unfortunately pentesting and Red Teaming requires vastly different skills. Ypu never need to avoid EDRs, write malware with obscure low-level winapi, or even know what kind of IoC ajd detections will a command you run create, when you are doing a pentest.

    But since no one knew better, and I love learning and researching new stuff, while also having Red Teaming romabticized, my interrest in it eventually led to me getting a Lead position for the barely scrambling team.

    Mind you, I was barely out of being a junipr, with only three years of part time pentesting experience. It was NOT a good idea.

    I quickly found out that RT is waaay harder and requires the best of the best from cybersec and maleare development. We didnt have that. Also, turns out that I love to learn now stuff and take on a challenge, but being a Lead also means you are drowning in paperwork and discussions with client, while also everyone from the team doesn’t know what to do and turns to me about what should we do. Which I didn’t know, and barely managed to keep learning it on my own. Our conpany didnt want to give us much time for learning outside of delivery, I was only working parttime, and I was slowly realizing that we don’t have almost any of the skills we need.

    We were doing kind of a good job, most of our engagement turned out pretty well, but it was atrocious.

    Turns out, I’m not good at managing and planning projects, or leading people. I’m better just as a line member.




  • My favourite take on DI is this set of articles from like 12 years ago, written by a guy who has written the first DI framework for Unity, on which are the currently popular ones, such as Zenject, based on.

    The first two articles are pretty basic, explaining his reasoning and why it’s such a cool concept and way forward.

    Then, there’s this update:

    Followed by more articles about why he thinks it was a mistake, and he no longer recommends or uses DI in Unity in favor of manual dependency injection. And I kind of agree - his main reasoning is that it’s really easy for unnecessary dependencies to sneak up into your code-base, since it’s really easy to just write another [Inject] without a second thought and be done with it.

    However, with manual dependency injection through constructor parameters, you will take a step back when you’re adding 11th parameter to the constructor, and will take a moment to think whether there’s really no other better way. Of course, this should not be an relevant issue with experienced programmers, but it’s not as inherently obvious you’re doing something potentially wrong, when you just add another [Inject], when compared to adding another constructor parameter.


  • Another one came to my mind - ROBLOX_OOF.mp3 by hbomberguy.

    It’s really a wild ride. As traditional with his videos, it starts with a pretty innocent investigation into one of sounds popular on the internet, and then gets into a mindboggling rabbit hole about Tommy Tallarico, the guy behind Video Games Live, and how he accidentally discovered what an insane text-book example of pathological lier he is. It’s funny, and really absurd - I’d recommend it to everyone, because it’s really interesting insight into how bad can it get with pathological liers. It’s a roller coaster, and a really fascinating one. And I also learned that Guiness World Record is a scam and literally only an advertisement business, which I never realised before.

    It’s a shame, I really liked Video Games Live, the live recordings of it’s shows are great. Assuming you skip the ego-trip monologues he interupts the concert with.



  • If you don’t use Discord for voice much, Matrix has a pretty solid bridges you can use.

    Hosting your own Matrix server is suprisingly way easier than I though - got a VM on hertzner for like 5$ a month, and there is an Ansible script that takes care of the setup for you. It’s also one of those rare cases where someone made an Ansible script that actually works, instead of you getting stuck in dependency-hell (seriously, fuck npm. Not a single docker or ansible tool that has used it ever worked for me out of the box. Python can get simillarly annoying).

    They have a pretty easy to follow guide, and the whole setup took me like 20 minutes. I only edited a few options in config.yml (mostly to add Messenger and Discord bridge), and ran the ansible, and it worked at first try.

    So I could at least ditch both messenger and discord apps from my PC and phone, without having to convince anyone to quit their poison - with only issue being that you can’t use Discord voice. And that the messenger bridge is still unreliable sometimes, but those are still minor inconviniences in comparison to my deep-seated hate for Meta.

    Of course - Meta still gets my chat data and content, same as Discord. But at least they don’t get anything else from my phone or PC.




  • if you’re an atheist you can’t just willingly choose to believe

    I wouldn’t really agree with this. As a programmer, I was always sceptical and an atheist, but I never had problems with believing into something obviously not true, such as when LARPing or TTRPGs. And when I once got into a rabbit hole of mysticism in high-school, one of the movements I read about was advocating for doing “paradigm shifts”, forcing yourself to believe into a specific religion, like truly believe, so you can try it out in practice and see whether you get something out of it or not and should move on. And since that felt like a fun experiment, I tried it with various dogmas or religions, and once you get over the inherent jugement and feeling pretty stupid chanting, drawing circles and burning incense in your room (which may take a while), you may get to point where you slowly convince yourself to believe. That is, if you are serious about it. And it’s also pretty fun.

    But of course, it’s not for everyone.


  • Being a programmer, I was always just as baffled about religion, mysticism, and various esoteric stuff, because it just didn’t make logical sense, and it was hard to take people who are into it seriously.

    tldr: Was sceptical, gave it a try just for fun and to see what’s the fuss, found out it’s net-positive as long as you don’t take it too seriously, let it define your whole personality, or use it as an excuse to be a dick. It’s basicaly just like playing solo TTRPGs, and it feels great once you get rid of your jugement.

    Then, during high-school, I’ve stumbled upon the Psychonaut Field Manual, which is a nicely written guide about chaos magic. And I read into it, because the presentation seemed fun, and most importantly - it was the first book where the introduction and first few pages convinced me, that it makes sense and could, in a limited fashion, actually work.

    What convinced me was looking at mysticism as something akin to “hacking your own mind” - by using symbols, rituals, meditation and whatnot, you convince your unconscious mind to push you slightly more towards doing what you need. And that sounded like something interesting, especially since I just finished reading the Art of Game Design, which had a few great chapters focused on the subconscious and how to work with it when being creative. Of course I still don’t believe that you can affect any external factor of your life through it, but now something like “I do a ritual to finish this exam”, and my subconscious may just give me a little nudge to study more, since that’s what it’s convinced we really want.

    So I went into the rabbit hole of modern mysticism, and eventually discovered more about the whole movement of Chaos Magic, with authors like Phil Hine. And their reasoning has won me over - their main point is that all mysticism is the same - learning symbols and doing rituals, so you can convince your subconsciousness. And the flavor or dogma you attach to it doesn’t matter, so just do whatever you want. Want to do Wicca? Suit yourself. Christianity and angels? If it works for you. Invoke Spongebob with pentagram out of pizza, or go with Lovecraftian Old Gods? Why not, the only important thing is that you do really believe in it, because otherwise you probably won’t convince your subconscious.

    And that’s why they work with something I find really interresting - they call it paradigm shifts, where you hop around various systems, dogmas and religions, immersing yourself into their rabbit hole and honestly giving it a try, to see if that’s what works for you. And that sounded like fun, letting go of the prejudice about religion or esoteric bullshit, and just trying it out for myself, log what results I have, and have fun learning about it.

    There’s another point that won me over for chaos magic - one of their core principles is, that every mysticism was so full of themself and took it too seriously, that they’ve forgotten how to have fun. And having fun while doing it is important.

    And so I throughout next few years went into the rabbit hole of Wicca, Golden Dawn, Enochian, and probably bunch more I don’t really remember, just trying to take it seriously and see for myself how does it work for me. The hardest part was getting rid of feeling absolutely stupid when you sit in your room with candles, incense, and memorize various bullshit, but it was still pretty fun.

    To get to the point - Wicca is one of the only systems I’ve tried that is also a Religion, and works with deities. And I’ve enjoyed this system more than the others, which were more focused on occultism and abstract concepts, because it basically meant you got an imaginary friend. The small daily rituals, that are celebrating nature while also being appreciated by said imaginary friend were fun little games, that made my day pretty much universally better, just like it turned a simple walk through nature as something wonderful - because I started paying more attention to what is around me.

    As long as you don’t take it too seriously, don’t let it control your life, don’t talk about it with others that are not interrested, or use it as an excuse to be a dick to anyone, and just enjoy adding a little bit of magic and fantasy into your daily life, I don’t think there’s anything wrong with that. It’s a net-positive change, and not too different than just playing a game of TTRPGs.

    I’ve since forgotten about it and don’t really do anything in regards to religion or mysticism, but I still fondly remember the few years I’ve tried, and it has definitely changed my point of view on a lot of things in life. I’d recommend to everyone here to give it a try and see for yourself - you don’t have to tell anyone, it’s a fun rabbit hole to explore (if that’s something you find interresting), and most importantly - you can decide it’s not for you and forget about it at any moment.


  • Mikina@programming.devtolinuxmemes@lemmy.worldTwo moods
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    6 months ago

    This right here. I’ve spent a few hours troubleshooting why I can’t play Hell Let Loose, which also uses EAC, even though it should support Linux. Turned out, that you need to specifically search for (in your Library) and install “Proton EasyAntiCheat Runtime”, which is a separate game that for some reason didn’t get installed when you install the game.

    I suppose it’s going to be the same with Battlebit, because I’m sure I played it on Linux and had 0 issues.


  • I know its a joke, but cutting PFF power is never a good idea. It makes any kind of forensics a lot harder, and its probably not going to help anyway. You should isolate the computer from the network, and then call a professional.

    However, putting the computer to sleep/hibernate it may help, just so I.e ransomware can’t continue encrypting, but maybe still has keys in memory, if you’re lucky. This is only my theory, though, not sire what are the best practices.


  • Forgive my ignorance, but I was always wondering why is it such a faux pau to show support to Palestine? From how I understand it, and that may be wrong, hence the question, the regular Palestinian people are occupied not only by Israel on the outside, but also by a terrorist group, HAMAS, at home. Which is basically a dictatorship, thats not afraid to openly use terror tactics. It’s a lose-lose situation, and the only thing you can do is hope youre not going to be one of the 1/100 that dies to a random strike.

    When there are innocent people in a situation like that, the least we can do is show them some support.

    Or do majority of people in Palestine actually support HAMAS and the war? I feel like in missing something, because the backslash to people who show an ounce of support for Palestine is massive, and I don’t really get why. I just want regular people who aren’t terrorists to live at peace :(



  • The biggest problem i have with my data being collected, analyzed and used is in the fact that it will almost certainly be used to teach a ML model about how to better manipulate with people like me - the people that are privacy conscious and are trying as much as possible to reduce their fingerprint.

    That data is invaluable, and if there does exist a way how to target even people like that, which there probably does since we’re only humans after all, the ML model will eventually figure it out. And they have literally billions of people to experiment and learn on.

    Now, we already know from a few leaked studies made by Facebook that they cab already pretty well manipulate people into mostly whatever they choose. Take a hypothetical situation where you get a crazy out-of-touch billionaire, who decides to buy a large social network company, and then decides “Hey, I really want this candidate to win. Tune up the algorithms!”.

    And the ML models will get a clear goal, that has been already proven to just work pretty well at influencing user behavior. And any data you give them, it helps the model to fine tune into influencing people like you . Which would also be really hard to prove, because ML models are by definition black boxes that are really hard to reverse engineer, and proving that it was trained to do this is AFAIK almost impossible.

    I don’t want no part in that. Thankfully, all the large social networks have CEOs that are reasonable and would never try something like that, right?

    And one more thing - you may not think that data about your behavior are of interest to anyone right now. But look at China and their Social Credit. And imagine how would have I.e holocaust turned out, if the government had access to all the data, opinions and profiles of people that are being collected now.

    Oh, you mentioned you sympathize with the Jews three years ago in a private message? Well, let’s hope the country you live in never ends up in a situation where that could be a huge problem for you or your family.

    So, every time any site is offering a “personalized, curated list” for you (I.e the google search result, or YouTube recommended videos), assume you are potentionally being manipulated, and avoid the site altogether- because there’s no other way how to prevent it. The ML model knows that you know, and is already trying to figure out how to manipulate people that are taking care not to be. And if there is a way, it will figure it out with some success.