calcopiritus

joined 1 year ago
[–] calcopiritus 9 points 1 day ago (1 children)

The windows key is awesome though. It's basically an "OS key", since windows is not the only one that can use it, so the OS can have many hotkeys, all of them using the OS key, and it shouldn't conflict with any program's hotkeys. If any program uses the OS key for their default hotkey, that's their problem.

[–] calcopiritus 2 points 2 days ago

That TOML is cargo.toml. when you add dependencies to cargo.toml you are using cargo. There is a command called cargo add, which adds a dependency, and they way it adds this dependency is by putting it in cargo.toml. it's cargo all the way down.

If you want to not use cargo, you would use rustc, which is rust's compiler. Almost noone uses rustc directly, I would say more than 95% of rust devs use cargo.

[–] calcopiritus 2 points 3 days ago

Half the volume mixer rant is about me not being able to use ear trumpet like I did in win10.

[–] calcopiritus 2 points 3 days ago

There is a windows API function you can call for your window that makes it square. https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/nf-dwmapi-dwmsetwindowattribute

[–] calcopiritus 12 points 3 days ago (6 children)

Windows 11 is little more than a reskin of windows 10, and they still fucked it up.

Rounded corners are mandatory (Why? I really preferred squared ones). But developers can choose to have their windows square. Why only the developers? Let the user decide how a windows looks like!

And don't get me started on the start menu. It was a complete massacre. Tiles are gone (am I the only one that liked them?). Instead, now we pin apps to the start menu. Fine I guess, except for the fact that half of the fucking menu is taken up by fucking recomendations. If I remove every single recommendation, instead of having my space back for more pinned programs I get this message: "oh you like this precious white space? If you turned on some recommendations it would show something". No, i don't want recommendations, I want my start menu space back. Which btw in windows 10 used to be resizable to whatever size I wanted.

Oh and lets not forget about the volume mixer. Which some genius decided that it was better to keep it 10 clicks away from the user in the settings, instead of conveniently at one click in the taskbar. Which they also made the sound settings their own special taskbar element, instead of another taskbar program. So now if I want to replace their shitty sound settings with the ones I like (trumpet btw), now I would have 2 sound settings in the taskbar, while in win10 I only had 1.

And whose Idea was to join the sound settings and internet settings in the same taskbar button visually? Which is also not the same button functionally. You see, if you press the left side of the button it opens the sound settings, but the right side opens the internet settings. How much do Microsoft UI people get paid?

I guess we got dark notepad, that's nice.

[–] calcopiritus 9 points 3 days ago* (last edited 3 days ago) (1 children)

Logistical problems are still financial problems though. That's my point. Hire enough people/develop the appropriate automation and the issue is no more.

We have the technology to solve this, the problem is the money.

In fact, you could just buy enough batteries and the problem will also go away. Still a financial problem, not a technology one.

EDIT: just to clarify, if at some point energy prices go negative, it means that it is cheaper to buy energy usage than a solution. Unless the energy company is dumb enough to just lose money for the lazyness of considering other options.

[–] calcopiritus 3 points 3 days ago

It should be illegal for companies with a legal budget over X€ to have illegal clauses on their terms and conditions.

[–] calcopiritus 28 points 3 days ago (11 children)

It is a financial problem. Technically you can just cover the solar panels. But that's not good financially.

[–] calcopiritus 66 points 3 days ago (17 children)

That's the exit. Because the woman is not inside.

[–] calcopiritus 1 points 5 days ago (1 children)

TUIs are graphical interfaces. It's just that they use the terminal as their renderers instead of having their own.

It's just like WebApps, they use the browser as their renderer, but they are still graphical interfaces.

[–] calcopiritus 6 points 6 days ago

To be fair abortion is not risk-free and side-effectless. It's much preferable to encourage the use of contraceptives in those situations.

[–] calcopiritus 6 points 6 days ago (1 children)

Presumably, if you're looking for a partner, if the potential partner is looking for a partner it's better.

 

I want to do basically this:

struct MyStruct < T> {
    data: T
}

impl < T> for MyStruct < T> {
    fn foo() {
        println!("Generic")
    }
}

impl for MyStruct < u32> {
    fn foo() {
        println!("u32")
    }
}

I have tried doing

impl < T: !u32> for MyStruct < T> {
    ...
}

But it doesn't seem to work. I've also tried various things with traits but none of them seem to work. Is this even possible?

EDIT: Fixed formatting

view more: next ›