[-] Mikina@programming.dev 18 points 2 months ago

You can't make this shit up :D

That's so absurd level of cartoon villianly it can't be real, right?

Meanwhile, it omits some words entirely — from “Gulag” and “Stalinism” to “faith,” “hope,” “good,” and “truth.”

[-] Mikina@programming.dev 18 points 2 months ago

Not mine, but svn-based JDSL is the best related story that's always worth sharing.

https://thedailywtf.com/articles/the-inner-json-effect

[-] Mikina@programming.dev 17 points 1 year ago

I've heard that this kind of s(h)itting is (or was?) common in some Asian countries. Learned that when someone left shit all over the toilet at our company, in places where it would be basically impossible to get to unless you were sitting like this.

[-] Mikina@programming.dev 18 points 1 year ago

I'm finding it hard to believe. A random soldier from, as he said, super highly guarded and well-performing nuclear millitary base just happened to get away with a proof, to go and tell western media how highly trained, guarded and prepared the nuclear facilities are? If it's genuine, I highly respect that, but I still suspect that especially given what we know about the state of russian army, and how they operate mostly through info wars, I'd wage it's more of a "he was send here to talk about how amazingly preared the nuclear bases are".

If the overall tone of the message is fearmongering (see, russian nuclear bases are super guarded and can launch nukes within a minute, that they maintain daily!), then it's probably just a setup by ISB.

[-] Mikina@programming.dev 19 points 2 years ago* (last edited 2 years ago)

While I'm all for holding CS accountable for what happened, thisis not the way how to do it and to whom they should be accountable. If there's any lawsuit, it should come from the customers who have been affected by the outage, not some fucking investors and shareholders that probably kept pressuring CS for the last several years to reduce costs and increase revenue, that are now scrambling to avoid consequences of their endless greed ruining companies they don't care about by forcing endless growth at all costs and doing as much as they can to prevent internal investments, because that's not what makes the line go up.

Fuck them. I hope they loose and have to eat their losses + expensive lawsuit. If CS would be able to actually invest their revenue internally, instead of it feeding pockets of greedy investors who give literaly zero fucks about the product or the service, this may not have happened.

I saw that happen at the cybersecurity company I was working at, when we got acquired by investors. Several milion of profit after costs suddenly wasn't enough, and we had to reduce already non-existent internal projects or investments, that we have already been lacking to be able to do our job properly.

[-] Mikina@programming.dev 17 points 2 years ago* (last edited 2 years ago)

What will be the next to replace Git? Many say it might be related to AI, but no one can say for sure.

Now here is a sentence that would make me immediately stop reading the article. Thankfully it is at the end, since it was a great and interesting read.

But now I wonder, the article does mention that Git has some core design problems. Are there any new emerging VCSs that iterate on the idea and are better (or faster, or have an unique idea about how to handle stuff), or is version control basically a solved problem with Git?

[-] Mikina@programming.dev 18 points 2 years ago* (last edited 2 years ago)

It's also important if you're checking hashes (at least, it was - if you're using correct hashing algorithm that isn't ancient, you will not have this problem).

Because if you take for example "0e462097431906509019562988736854" (which is md5("240610708"), but also applicable to most other hashing algorithms that hash to a hex string), if("0e462097431906509019562988736854" == 0) is true. So any other data that hashes to any variantion of "0e[1-9]+" will pass the check, for example:

md5("240610708") == md5("hashcatqlffzszeRcrt")

that equals to

"0e462097431906509019562988736854" == "0e242700999142460696437005736231"

which thanks to scientific notation and no strict type checking can also mean

0^462097431906509019562988736854^ == 0^242700999142460696437005736231^

which is

0 == 0 `

I did use md5 as an example because the strings are pretty short, but it's applicable to a whole lot of other hashes. And the problem is that if you use one of the strings that hash to a magic hash in a vulnerable site, it will pass the password check for any user who's password also hashes to a magic hash. There's not really a high chance of that happening, but there's still a lot of hashes that do hash to it.

[-] Mikina@programming.dev 18 points 2 years ago* (last edited 2 years ago)

For anyone wondering - why would I need it? I'm already signed in to github, the commit is commited using my ssh-key, Github knows it's me. Why would I need another verification?

Here's why. https://dev.to/martiliones/how-i-got-linus-torvalds-in-my-contributors-on-github-3k4g . If someone commits with your email (or github noreply email, which is public), it will get attributed to you. I was just trying it with colleauges account, and so far I haven't found any way how to tell that it really wasn't him.

[-] Mikina@programming.dev 19 points 2 years ago

I 100% agree! Am a pretty new user of Nobara as a daily driver, switched like a month ago (I did have extensive CLI experience with Linux servers, along with Kali VM for work), and I've only realized what DE actually is only a week ago, because no one mentioned how important choice it is - it was usually just a note, that wasn't given enough importance.

So please, if you're ever recommending any linux distro to somenone who's asking, please include a short paragraph about what DE is and how importnant choice it actually is, and that they should not ignore it. I hated Gnome, and KDE feels so much better (only found about it when reinstalling broken first Fedora install to Nobara), but I didn't know I can switch or that there was that choice in the first place - I though KDE vs Gome is a back-end thing, similar to X11 vs Wayland. It's not, but people don't usually explain it when recommending distributions.

[-] Mikina@programming.dev 19 points 2 years ago* (last edited 2 years ago)

I'd recommend Tyranny. Its a CRPG, where you play as an envoy of basically villains that are sweeping through the world, conquering almost everything. Most of the choices are pretty difficult, because from what I remember its usually "bad or different bad", without it being clear what's going to be worse. Because you're an envoy for a dictator with the power to literally wipe an entire continent with a single sentence, you can't just go " fuck this, I'm gonna ignore the orders and do good", and balancing the long term and short term consequences makes every decision pretty difficult.

For example, if you get an order to "capture this fortress within few days or I'll wipe the entire island", any small war-crime now may be the long term good option, if it helps you capture it in time, and helping the soldier asking you to help find his wife nearby may be lost time you can't be sure you can afford.

[-] Mikina@programming.dev 18 points 2 years ago

I was working on a pretty well known game, porting it to consoles.

On PS4 we started getting OOM crashes after you've played a few levels, because PS4 doesn't have that much memory. I was mostly new on the project and didn't know it very well, so I started profiling.

It turned out that all the levels are saved in a pretty descriptive JSON files. And all of them are in Unity's Scriptable Objects, so even if you are not playing that level, they all get loaded into memory, since once something references a SO, it gets loaded immediately. It was 1.7Gb of JSON strings loaded into memory once the game started, that stays there for the whole gameplay.

I wrote a build script that compresses the JSON strings using gzip, and then uncompresses it when loading the actual level.

It reduced the memory of all the levels to 46Mb down from 1.7Gb, while also reduced the game load by around 5 seconds.

[-] Mikina@programming.dev 19 points 2 years ago

I love this quote, it exactly sums up my sentiments.

I'm actually looking forward to it, because it will finally force me to go cold turkey on so many bullshit websites I don't need in my life anyway, which I was never able to do on my own, because the addiction simply is there. But not as strong ans my hatred of fingerprinting and advertisements.

view more: ‹ prev next ›

Mikina

0 post score
0 comment score
joined 2 years ago