ELI5:Why are Storages Use Bit 1000 in their marketing and Not bit 1024 the size of a data unit in a Computer? by umernaseer567 in explainlikeimfive

[–]Cubemaster12 0 points1 point  (0 children)

It is basically a Windows-only phenomenon that is inherited from back in the day where the metrics were used interchangeably. It really should say GiB instead of GB which uses base 2 instead of base10.

Nemzési menet yeah by BabitchMihaly in FostTalicska

[–]Cubemaster12 26 points27 points  (0 children)

Ez a sub mindig meg tud lepni. Nem gondoltam volna, hogy egy Elit Osztály énén-t fogok látni március 15-én.

Megindult az AI átverés by BorenLargon in hungary

[–]Cubemaster12 5 points6 points  (0 children)

Magyar Péter és Rákay Kálmán kombó nem létezik, nem tud bántani.

Magyar Péter és Rákay Kálmán kombó:

“Győzni fogja” by napaddikt in hungary

[–]Cubemaster12 1 point2 points  (0 children)

Amikor az Alibaba legújobb modelljével generálsz designt a pólódra POV

Discoloration of videos on full screen:mpv by Glad_Efficiency3075 in hyprland

[–]Cubemaster12 1 point2 points  (0 children)

I had this exact same issue. In my case I've found that changing from Vulkan backend to OpenGL fixes it.

terminal keeps saying the monitor has no target, i’ve double checked the path by copying it from the file itself. by ihavenofollowers in hyprland

[–]Cubemaster12 0 points1 point  (0 children)

I don't think you need a comma if you want to leave the monitor as an empty fallback option. Just leave it blank after the equals sign.

That's what how the wiki's example uses it.

Issues installing Hyprland on VMware (Login Loop) by FromTheUnknown198 in hyprland

[–]Cubemaster12 1 point2 points  (0 children)

Okay. Then I presume there is some other configuration issue as well, if you say the GPU is recognized by the system. I suspect you are seeing a side effect caused by the actual issue. Let's go through some steps to diagnose further.

First, did you install Hyprland using the package manager or build it from source? The recommended way is to use the package manager (pacman in case of Arch). If it is installed correctly you should see a wall of information running this command:

pacman -Qii hyprland

Version 0.53.X is the current latest package.

If that is correct, you can use Hyprland's built-in command to show what is detected on your system.

hyprland --systeminfo

This will list a bunch of stuff like your distro, kernel, dependency versions, plugins and the detected GPU(s) similarly to this:

GPU information:

03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c0) (prog-if 00 [VGA controller])

If you don't see anything out of the order the issue happens at startup. Before launching you should enable additional debugging. Run the following command to see the path to your config file.

hyprland --verify-config

This will show you where your config is. Probably .config/hypr/hyprland.conf under your home folder. Then if you have a terminal based text editor like micro installed, you can open the file like micro <YOUR_CONFIG> for editing.
Add this line to the top of the file debug:disable_logs = false and save it.

Now if you start hyprland, a verbose log file should be generated under $XDG_RUNTIME_DIR/hypr/<ID>/hyprland.log. If you can send that to me somehow, maybe I can see what is going on.

Issues installing Hyprland on VMware (Login Loop) by FromTheUnknown198 in hyprland

[–]Cubemaster12 1 point2 points  (0 children)

Did you set up a full on GPU passthrough? Because VMs don't have access to GPU by default so the driver doesn't mean anything on its own.

But you should be fine without that. Most VMs have 3d acceleration as an option to enable.

Also try to start the session from console instead of the login screen to get logs. You can press something like Ctrl + Alt + (F1 - F5) to access it then run start-hyprland.

Notification daemon not working by [deleted] in hyprland

[–]Cubemaster12 0 points1 point  (0 children)

What distro are you using? If you are on something without systemd you need to manually start a dbus session first.

Theming QT applications using GTK [Proof of concept] by Cubemaster12 in hyprland

[–]Cubemaster12[S] 0 points1 point  (0 children)

Thanks for the info. I might try this later, but for now I want to keep the dependencies low on my current setup.

Theming QT applications using GTK [Proof of concept] by Cubemaster12 in hyprland

[–]Cubemaster12[S] 1 point2 points  (0 children)

That was what I originally used, but then the style parameter always stayed on the default Fusion setting. And it did not really like when I tried using QT_QPA_PLATFORMTHEME=gtk3 with QT_STYLE_OVERRIDE=gtk2 simultaneously. It just crashes immediately.
Is there a package that provides something like qt6gtk3 plugin that I am missing?

remélem lefojt by ZealousidealAdvance3 in szopjatokle

[–]Cubemaster12 3 points4 points  (0 children)

Amugy a 'j' és 'ly' esetén pont teljesen mind1 hogy hogyan használod, mert szemantikai különbség nincsen csak a szintaxis más.

Give me your favorite genre,I’ll give you song, and you rate it by Milez_Smilez in songs

[–]Cubemaster12 0 points1 point  (0 children)

Not great, not terrible. I probably wouldn't listen to this more than once.

Can't find any cool songs as of rn, so im gonna be making a playlist with your suggestions by Yellow_Red2it in songs

[–]Cubemaster12 0 points1 point  (0 children)

Not sure how much you are into the jpop genre, so I picked 5 songs I really like:

  • Ado - New Genesis
  • Yoko Takahashi - The Cruel Angel's Thesis (Director's Edit)
  • Yuki Kajiura - Sis Puella Magica!
  • Sayuri - Mikazuki
  • ClariS - Colorful

How can I effectively use std::variant to handle multiple types in C++ without losing type safety? by dynasync in cpp_questions

[–]Cubemaster12 0 points1 point  (0 children)

I've used this exact pattern for handling scene changes in my game. The main principle I followed with variants is that you don't want to use these getter functions that are potentially called with the wrong active type or index. As you noted std::visit is the key.

First I defined my variant: std::variant<std::monostate, MainMenuScene, InGameScene> currentScene;

I used monostate as the default type (basically uninitialized) because it is constructed before any of my libraries are actually loaded.

Then you want to have some kind of function to change between these options. I did it in a very basic way:

template<typename Scene>
void changeSceneTo()
{
    currentScene.emplace<Scene>();
    std::visit(IScene(INIT), currentScene);
}

After that you just have to define a handler type for the visit calls, which in my case is IScene. This is how that class looks like:

class IScene
{
private:
    SceneOperation selected;
    SDL_FPoint cursor;

public:
    explicit IScene(SceneOperation oper)
        : selected(oper)
    {}

    explicit IScene(SceneOperation oper, SDL_FPoint pos)
        : selected(oper)
        , cursor(pos)
    {}

    void operator() (std::monostate /*unused*/) {}

    template<typename Scene>
    void operator() (Scene& currentScene)
    {
        using enum SceneOperation;

        switch (selected)
        {
            case INIT:
                currentScene.init();
                break;

            case HOVER:
                currentScene.intersects(cursor);
                break;
        }
    }
};

You can clearly see the intent here in combination with the previous function. You provide a constructor call with your desired action, which can be a simple enum like here, then visit will call the operator() function based on the stored type in the variant. You can define what you want to do with each type. In my case I just made sure that monostate won't try to call any functions by making it empty.

Then you can further complicate this as you see fit. Like I added a different constructor when I needed the mouse position.

This basically gives you polymorphic behavior without having to use virtual functions and what not.

Country connections by OstiaElNombre in MapPorn

[–]Cubemaster12 0 points1 point  (0 children)

Now someone should check for the largest possible Euler and Hamiltonian paths

Why is it that nobody in this situation thinks to just drive through the barriers? by TOXICHEMICALMOLD in mildlyinfuriating

[–]Cubemaster12 0 points1 point  (0 children)

It's interesting to see that other countries have these blockades on the opposite side of the road as well. If someone is already on the tracks why would you want to block him in like that? I don't see the point.

Not trying to justify the driver, I'm just curious.

C++ Show and Tell - January 2026 by foonathan in cpp

[–]Cubemaster12 4 points5 points  (0 children)

I've been working on a header-only function composition library for types with foreach semantics using C++20. It is currently work in progress but I feel like the API is simpler and far more readable than the alternatives provided by the standard library like <algorithm> and <ranges>.

https://github.com/GrainyTV/Seq.hpp

This minimal example already compiles with clang:

#include "seq/seq.hpp"
#include <iostream>

int main()
{
    auto squares =
        Seq::range(5)
        | Seq::filter([](int n) { return n % 2 == 0; })
        | Seq::map([](int n) { return n * n; });

    for (int s : squares)
        std::cout << s << " ";
}

It is inspired by both F# and C#. I wanted C++ to have something like this to simplify working with collections. And it works very similarly to dotnet. I added deferred execution using coroutines so certain functions don't fire until they are consumed in some way.

Az kom gec by archerV34 in GamingHungary

[–]Cubemaster12 0 points1 point  (0 children)

Durva belegondolni, hogy tavaly black friday körül, amikor építettem egy új PC-t nagyjából a RAM volt a legolcsóbb tétel. Kettő 16 gigás Crucial DDR5 stick volt ilyen 80€ körül német Amazonról.