RonSijm

joined 1 year ago
[–] RonSijm 43 points 6 months ago (8 children)

YouTube is bringing its ad blocker fight to mobile. In an update on Monday, YouTube writes that users accessing videos through a third-party ad blocking app may encounter buffering issues or see an error message that reads, “The following content is not available on this app.”

Yea, noticed that last week. Is already fixed again in latest revanced.

[–] RonSijm 2 points 6 months ago (1 children)

it could be through a stylesheet, an alternative frontend, even just a pointer on how you could style a website into a different style. thanks!

You could download the Lemmy Frontend and rewire the API to point to the reddit API

If you just want to modify a bunch of things client side, you could download the browser extension Stylish

[–] RonSijm 1 points 6 months ago* (last edited 6 months ago)

Yea, what @[email protected] posted is actually Java

What even is the point of creating standards if you design backdoors to them

If you're building in a backdoor anyways, why would the backdoor require 5 lines of weird reflection to get the type, type info, fieldinfo with the correct binding flags, and then invoking the method?

I think it's kinda neat compared to C#, just being able to say "Ignore private/protected/internal keywords"

[–] RonSijm 5 points 6 months ago

Also I don’t remember who said this but if this goes through it could allow C# web builds by loading Godot is a library.

Yea, right now Godot with C# doesn't really work - and they're saying they're transcoding it to HTML5 and WebGL 2.0

so I wonder if with this "LibGodot" you can just transcode LibGodot itself into WASM, and run "native" C#

[–] RonSijm 16 points 6 months ago* (last edited 6 months ago) (9 children)

Is it Java? It looked like ~~Microsoft Java~~ C# to me...

    public static void Main(string[] args)
    {
        var meme = new Meme();
        var joke = GetTheJoke(meme);
    }
    
    public static Joke GetTheJoke(Meme theMeme)
    {
        var memeType = typeof(Meme);
        var jokeField = memeType.GetField("Joke", BindingFlags.NonPublic | BindingFlags.Instance);
        return (Joke)jokeField.GetValue(theMeme);
    }
[–] RonSijm 2 points 6 months ago

Yea, that's why I mentioned these companies are just doing it wrong. Governments have the same problems as private companies, in that they don't really want to maintain their own cloud infrastructure, so they'll use something like AWS

But for example they could host their own On-premises HSM and encrypt their GovCloud to a degree that it's inaccessible to AWS

[–] RonSijm 2 points 6 months ago (2 children)

Struggling with a problem that i just can’t seem to figure out.

What problems are you struggling with specifically?

You basically just pick a system, for example Forgejo - that's comparable to a self-hosted github. Which also comes with github-like actions for CI/CD/Building

If those actions are not good enough for building, you could also self host something like Jenkins or TeamCity

[–] RonSijm 4 points 6 months ago (2 children)

It's pretty common that AWS is doing that, they even have a special GovCloud for them.

These companies are obviously just doing it wrong by having public S3 buckets

[–] RonSijm 2 points 6 months ago

I'm a simple man, I see Nick Chapsas, I upvote

[–] RonSijm 2 points 6 months ago

Firstly, I don’t think Docker is intended to be used as a security layer. I could be wrong, but I think it’s relatively easy to escape the sandbox. Although that might be different nowadays.

I think it does serve as a security layer. Like if you have vulnerable software running in a docker container, and people use that to gain "root access" - initially they're just inside the docker. Of course you need us to proper docker setup, like not just mount your entire file system into your dockers "because it's easier" and that kinda stuff.

There are a bunch of ways for Docker Breakout / Privilege Escalation - but still, it adds an extra step instead of having access to the entire system immediately. And again, it's just a matter of hardening your docker, and closing these open holes.

[–] RonSijm 1 points 6 months ago

How do you “add” types together? Adding numbers makes sense, it has a real world equivalent. Two balls in a cup, add one ball and you have three balls in a cup. Add color to water and you have colored water. Simple. But types? The fuck?

It makes sense when using some fluent patterns and things like monads. For example:

User user = new User("Bob"); // User Class
UserWithPassword user = new User("Bob").WithPassword("Dylan123"); // UserWithPassword Type

A UserWithPassword type would then be a User object wrapper with some IWithPassword interface

Then you could create extension methods on IWithPassword objects and decorate those objects with password behavior

You can then have sort of polymorphic behavior by combining types together, and have different functionality available depending on which types you've added together

view more: ‹ prev next ›