• 5 Posts
  • 305 Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle
  • This might work: https://discuss.kde.org/t/change-color-or-theme-of-specific-window/1884/6

    I’m not familiar with Unity Mod Manager, so hard to say or give detailed instructions.

    If you happen to know how to run Unity Mod Manager from the terminal, the easiest way to check whether it will work, is by first running export GTK_THEME=Default and then running Unity Mod Manager in the same terminal.

    This export command sets an environment variable (GTK_THEME). In case Unity Mod Manager respects the GTK theme of your system, it will presumably respect that environment variable.

    From what I’ve quickly read up on Unity Mod Manager, it is implemented in C#, so I’m guessing it does not use GTK directly (but might still try to emulate its theme from the GTK theme) and well, it might behave weirdly under Linux in general…


  • Lots of “modern” languages don’t interop terribly well with other languages, because they need a runtime environment to be executed.
    So, if you want to call a Python function from Java, you need to start a Python runtime and somehow pass the arguments and the result back and forth (e.g. via CLI or network communication).

    C, C++, Rust and a few other languages don’t need a runtime environment, because they get compiled down to machine code directly.
    As such, you can call functions written in them directly, from virtually any programming language. You just need to agree how the data is laid out in memory. Well, and the general agreement for that memory layout is the C ABI. Basically, C has stayed the same for long enough that everyone just uses its native memory layout for interoperability.

    And yeah, the Rust designers weren’t dumb, so they made sure that Rust can also use this C ABI pretty seamlessly. As such, you can call Rust-functions from C and C-functions from Rust, with just a bit of boilerplate in between.
    This has also been battle-tested quite well already, as Mozilla used this to rewrite larger chunks of Firefox, where you have C++ using its C capabilities to talk to Rust and vice versa.




  • Ephera@lemmy.mltolinuxmemes@lemmy.worldArch be Like
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    Hmm, good question. I know of one such implementation, which is Delta RPM, which works the way I described it.
    But I’m not sure, if they just designed it to fit into the current architecture, where all their mirrors and such were set up to deal with package files.

    I could imagine that doing it rsync-style would be really terrible for server load, since you can’t really cache things at that point…




  • Ephera@lemmy.mltolinuxmemes@lemmy.worldArch be Like
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 days ago

    This doesn’t work too well for rolling releases, because users will quickly get several version jumps behind.

    For example, let’s say libbanana is currently at version 1.2.1, but then releases 1.2.2, which you ship as a distro right away, but then a few days later, they’ve already released 1.2.3, which you ship, too.
    Now Agnes comes home at the weekend and runs package updates on her system, which is still on libbanana v1.2.1. At that point, she would need the diffs 1.2.1→1.2.2 and then 1.2.2→1.2.3 separately, which may have overlaps in which files changed.

    In principle, you could additionally provide the diff 1.2.1→1.2.3, but if Greg updates only every other weekend, and libbanana celebrates the 1.3.0 release by then, then you will also need the diffs 1.2.1→1.3.0, 1.2.2→1.3.0 and 1.2.3→1.3.0. So, this strategy quickly explodes with the number of different diffs you might need.

    At that point, just not bothering with diffs and making users always download the new package version in full is generally preferred.




  • On KDE, it’s just one of the suggestions, I believe, that you could search this term on the web. If you trigger that suggestion, it then opens the web browser to do the search.

    As such, searching “terminal” wouldn’t yield a suggestion from a web result that matches, but I’m pretty sure applications are prioritized above other results either way.


  • A few years ago, I set up a home-server with music and some pictures on there, and recently I noticed that my storage disk was getting full. Then I saw that the disk only had 16 GB and wondered, where the hell I got that small of a disk from.

    So, I go to plug in a bigger disk and can’t even find the original disk at first. Turns out my whole storage capacity was one of these bad boys:

    Spoiler

    A tiny USB-A stick, designed for keeping it plugged into a laptop at all times.

    And yeah, I’ve got about 1800 songs, clocking in at 5.8 GB, so even that tiny storage would easily be enough for a much larger collection.
    And I do also have them replicated on my phone, for listening on the go. (Don’t even need an SD card in my case.)



  • Einerseits wollen sie sich hälftig an der Betreuung des Nachwuchses beteiligen, andererseits sehen sie sich als »Haupternährer« in der Pflicht

    Ich denke, das ist mit ein großer Punkt, warum ein Kinderwunsch erst mit einer konkreten Partnerschaft bei vielen zustande kommt. Solange man noch nichts Festes gefunden hat, sagt einem die gesellschaftlichen Erwartungshaltung aktuell nicht mehr so wirklich, ob man Geld scheffeln oder Kinder erziehen können soll. Wenn man sich nicht selbst festlegt, wirkt es erstmal, als sollte man alles können.

    Wenn sich aber dann die zweite Hälfte materialisiert, dann wird das eben plötzlich sehr konkret und man kann viel besser abschätzen, welche Stärken man selbst mitbringen muss und welche Schwächen durch den*die Partner*in abgedeckt sind.
    Dann kann man sich eben gemeinsam festlegen, wer die Brötchen nach Hause bringt, wer sie an die Kinder verfüttert, oder ob man die Aufgaben anders aufteilt.

    Und da man sich ja auch oftmals heißer findet, wenn man gegenseitig passende Stärken mitbringt, verwandelt sich dann oftmals ein “ich muss alles können” dahin, dass man die eigenen Stärken ausspielen kann.


  • The description in the ticket isn’t too bad:

    allows users to make a window disappear and keep only its title bar visible.

    It really just hides the window contents. In effect, it is similar to minimizing a window, except that it doesn’t spring into your panel and rather stays in place as just the window title bar without the contents.

    It is a niche feature, if you couldn’t tell. But it isn’t some KDE specialty feature; various other desktops and window managers also support it. I think, it was more popular in the early days of graphical user interfaces, when we were still working out, how we want to do panels and such.

    And conversely, I do think it makes more sense as a feature on big screens like you can have today, where your panel might be quite a bit away.
    Don’t think, window shading will make a big comeback just yet, but yeah, probably enough existing users that use it, so that it would be cool to support that workflow.


  • I thought about creating something like that and the major problem that I see is that lots of meme templates do have copyright and the font that’s typically used for memes, Impact, isn’t free either. Well, and it isn’t done by merely developing a software and offering it for download. You would need to host the meme templates or some editor webpage, which is a whole 'nother skillset.

    If we say that users bring their own meme template, and it can be a free font that looks similar to Impact, and it’s not to be hosted as a webpage, then it would be quite doable.
    You would “just” need to call the ImageMagick library with the right parameters. Still not trivial, but the path to get there is fairly straightforward. I could imagine that something like that already exists as an open-source project…