• 16 Posts
  • 1.55K Comments
Joined 4 years ago
cake
Cake day: May 31st, 2020

help-circle
  • Ah, that’s the “Android navigation bar”. All I know is that Google really doesn’t want that bar to get hidden when the keyboard is open, as there’s otherwise no guaranteed way of closing the keyboard. So, I’m guessing, you’d need some extremely hacky methods which modify the OS, like XPosed or whatever is the current thing is in that regard…




    1. Cargo is truly great, but it’s a mystery to me right now how I’m going to get it to work with certain packaging systems.

    Yeah, Cargo itself doesn’t deal with any of the bundling after the executable is built.

    For that stuff, the efforts are certainly still ongoing. There’s no grand unified tool yet.

    If you just want e.g. a DEB file, then you probably want this: https://crates.io/crates/cargo-deb

    But if you want to do more in CI, then there’s kind of three popular options that I’m aware of.

    • just: More or less a shell script runner, and kind of like make.
    • cargo-make: A lot of effort has been put into this, it’s certainly got a good amount of features, but personally not a fan, since it makes you write a custom TOML format and then ideally you should be writing a custom script language, DuckScript. You can also use Rust scripts with it, which we tried, but there was just no way of passing parameters between tasks.
    • cargo-xtask: This is not a tool, it’s a pattern, basically just build your own build tool. It does have its downfalls, you’re not going to build good caching into your own build tool, for example. But in principle I find this quite workable, as you get to write your CI code in Rust. There’s also more and more community-made libraries to aid with that.





  • Ephera@lemmy.mltoGames@lemmy.worldStop killing games
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 hours ago

    All the initiatives I’ve read so far, did have pretty concrete suggestions for how laws should be changed. In my experience, law makers will gladly consider a suggestion, because making laws is hard. Yes, that means lobbying is rather easily possible, but consumers are the group that does the least amount of lobbying.








  • Yeah, I had to figure out what it really is from Wikipedia and my two reactions were:

    • Ubisoft has a ‘universe’? Huh, I guess, they do have a few franchises there.
    • That actually sounds reasonably interesting. At least it’s not just yet another uninspired shooter.

    And like, yeah, lacklustre marketing puts it quite well. I had heard of XDefiant before, but all I got from that was that it’s a shooter, which made me fall asleep immediately.
    Had they sold it as “You ever wanted to pit the Splinter Cell guy against the Far Cry bandits?”, I would have at least remembered it.

    But to be fair, a lot of games are currently coming out. It is difficult to be seen for pretty much all titles…





  • I mean, that is more obvious and more readable.

    But what I really don’t like about it, is that it’s less clear to what it applies. For example:

    not list.isEmpty() and x > 3
    

    Is that not (a and b) or (not a) and b?
    Obviously, you can define precedence rules, like there also is for !, but that’s again just additional things to learn.
    I’m definitely not generally opposed to special characters. I do also hate significant whitespace, because I find that less readable than braces.