Scoopta

@Scoopta@programming.dev
2 Post – 79 Comments
Joined 1 years ago

I refuse to go to sites that do this, I also refuse to go to sites that block adblock...and specially the sites that detect and block private browsing, that one shouldn't even be a thing

19 more...

When script kiddies are the new high we've collectively reached a new low

const volatile is used a lot when doing HW programming. Const will prevent your code from editing it and volatile prevents the compiler from making assumptions. For example reading from a read only MMIO region. Hardware might change the value hence volatile but you can't because it's read only so marking it as const allows the compiler to catch it instead of allowing you to try and fail.

3 more...

As someone using Wayland I can confirm it's indeed not a hot a mess

14 more...

I'm both IT and development...and I've caught both sides being utterly wrong because they're only familiar with one and not the other

1 more...

Should probably fix that given we've been out of IPv4 for over a decade now and v6 is only becoming more widely deployed

11 more...

I really wish more projects would use .hpp to differentiate from C headers. It's really annoying to have a single header extension blend across two incompatible languages.

8 more...

This is gross. Needs IPv6

I am immune to /dev/sda for I only have nvme

5 more...

From a development perspective it certainly sounds easier to have one global timezone with DST than a bunch of smaller ones without it. Would that make sense in reality? Probably not but I definitely think timezones take more work to compensate for properly.

10 more...

Wells Fargo cuts to 14 on their sign in page but not on their change password page, ask me how I know

Some advice for process parents. Don't be that kinda process that zombifies your children instead of letting them go, it's very annoying and unhealthy.

...so that leads to another annoyance of mine. The insistence that there aren't two languages but indeed one named C/C++. Obviously I'm being a bit sarcastic but people blur the lines HEAVILY and it drives me crazy. Most of the C code I've written is not compatible with C++...at least not without a lot of type casting at a bare minimum. Or a compiler flag to disable that. Never mind the other differences. And then there's the restrict keyword, and the ABI problems if the C library you're using doesn't extern C in the headers...etc etc... -_-

3 more...

In amd64/x86 kernel space you can dereference null as well. My hobby kernel keeps critical kernel structures there XD.

It's the proprietary driver GPU experience. All the proprietary drivers can leave you hanging like this

I'm so glad someone posted this. I was going to lol

No you cannot run any of those WMs, some of those do have ports with varying degrees of completeness but only sway(i3) and hyprland(hypr) are ready for prime time.

Yes, using waypipe

Yes, primary selection does work along with Ctrl+c although as others have mentioned it forgets when the app you copied from gets closed

Fact of the matter is RSA is perfectly secure still...and ECDSA/ED25519 should also be extinct given the rising need for post quantum cryptography

2 more...

There's lots of newspaper sites in the US, that do this. They'll be like "wanna use private browsing, make an account, or go visit from normal browsing." Idk why they do it but they do. Apparently there are discrepancies in the way browsers handle persistent storage features between private and non-private browsing that allow for detection

3 more...

I also love Java, especially all the goodies added in 17. I'm not German though... 🤔

1 more...

Just checked, I'm at 311 on my main server

2 more...

Compositors do directly interact with the drivers though. The reason Wayland doesn't work on Nvidia is because Wayland uses an API called GBM(generic buffer management) to draw directly to the Linux VT. The Nvidia drivers don't implement that API, the API that both AMD and Intel drivers support. It very much IS an Nvidia problem and not the other way around. Nvidia tried to convince all the Wayland developers to use EGLStreams instead but no other drivers use(or even support) that API, everyone agreed on GBM except Nvidia. That's not Wayland's problem.

That syntax decision is single handedly why I avoid python if possible

4 more...

Shameless self plug for a program I don't even use because as cool as shaders for a wallpaper sounded...I prefer a nice anime one XD. https://hg.sr.ht/~scoopta/glpaper

1 more...

Tom Scott actually has a video about this which also talks about why you can't end sentences with contractions. https://youtu.be/CkZyZFa5qO0

LOL, I also use DNS based filtering soooo I feel your pain.

2 more...

That you should turn and run like hell? Probably lol...

1 more...

You're talking about Java(Jakarta) EE, my comment is primarily targeted at Java SE. I find that the Java standard library on its own and core language is pretty nice if you use modern versions like Java 21. If I had to complain it'd be about checked exceptions, they annoy me but otherwise the language is fine. I've never worked with the full enterprise web stack, I use servelts for web and do a large amount of Java SE desktop development, not with swing, fuck swing. Primarily LWJGL and JavaFX. I love that language, more than most. At work I use a lot of C# and I hate it, I miss Java when I have to write C#. I just don't love it, mostly due to all the little annoyances and missing things(no labeled breaks, no diamond operator for generics, etc). I try to use Java for projects where I can but it's not always an option.

There was actually a really interesting idea I heard to have no time zones. And I actually think it could be a good idea. It'll never happen because people would need to re-learn time but if it was always the same time everywhere it would make scheduling and business so much easier. No one would need to convert between different zones or be late because of an incorrect conversion. The downside is that times which are conventionally morning or evening etc, would no longer would be so people would have to get used to time just being a construct for scheduling and not a representation of the natural day/night cycle...but it actually doesn't sound like a half bad idea.

2 more...

🤔...is this a new requirement? I have 2 accounts. Neither with phone numbers and it's never asked me for one

2 more...

Not a C++ developer, I prefer C. You are right in general however my understanding is that classes which are generic using templates must be fully implemented in header files because of how templates are implemented. That being said this code doesn't appear to use templates so I'm not entirely sure I get it either?

1 more...

...is it truly that bad? npm is the reason I don't even install software based on node on my machines... python doesn't seem nearly as bad by comparison? (I run it, just don't like to write it) Maybe it's worse than I realize

2 more...

Honestly modern Java has a lot of really nice features and I think it gets a lot of unfair hate

3 more...

Linux remaps 0.0.0.0 to 127.0.0.1 when you attempt to use it as an address...does the same thing for :: remapping it to ::1

Discussions like this always bring me back to one thing...can a word itself be racist? Is it racist to use a word if it's not being said with racist intent? It's reminiscent of the gimp debacle...if a words use isn't intended to offend it's honestly beyond me how anyone could find it offensive. Are we supposed to ban every single word that has the slightest history of being used in an offensive fashion? Feel like we'd have a really long list if we did that.

I do this in my code because it looks better and makes more sense...until I decide to declare 2 vars on one line and then I use the very cursed int* a, *b

Always has? It's supported java and I think python for forever

I do whenever there is a vulnerability of note. I don't do it on a regular basis though.

It's actually not. Objective-C is a superset of C. C++ is not. It's MOSTLY compatible...but it's not a superset. See the restrict keyword, or the need for casting to and from void*, or the inability to name variables new or delete, or class, or this. I can't count how many C projects I have which use this as a variable name that WILL NOT compile as C++...or the need for extern C to call C ABI code...in no way is it a superset

EDIT: lol, you can downvote me if you want but I think you need to lookup what a superset is

I get making fun of java's verbosity for things like checked exceptions but hello world really isn't that much worse than most other languages especially considering all the "boilerplate" is required for any program more complicated than hello world in pretty much every language. But if a useless program really is too verbose for you see java 21.

void main() {
  System.out.println("hello world");
}