Skip Navigation
Posts
104
Comments
1,911
Joined
2 yr. ago
  • I probably am bad at web searching (don't do this long enough and don't use Google either). At least this was a learning experience for myself, so its not totally waste of time for me. And maybe someone else can look in the code and learn. Now I see there are alternatives available, such as

     undefined
        
    pacman -Si python-crc32c
    
      
  • Nothing. I wasn't just aware of that program. It never popped up when I searched online or when looking in my system's package manager searching for "crc".

  • Linux @lemmy.ml
    thingsiplay @beehaw.org

    crc32sum - Print CRC-32 (binary mode) checksums with Python on Linux.

    cross-posted from: https://beehaw.org/post/19564932

    https://github.com/thingsiplay/crc32sum

     undefined
        
    # usage: crc32sum [-h] [-r] [-i] [-u] [--version] [path ...]
    
    crc32sum *.sfc
    2d206bf7  Chrono Trigger (USA).sfc
    
      

    Previously I used a Bash script to filter out the checksum from 7z output. That felt always a bit hacky and the output was not very flexible. Plus the Python script does not rely on any external module or program too. Also the underlying 7z program call would automatically search for all files in sub directories recursively when a directory was given as input. This would require some additional rework, but I decided it is a better idea to start from scratch in a programming language. So I finally wrote this, to have a bit better control. My previous Bash script can be found here, in case you are curious: https://gist.github.com/thingsiplay/5f07e82ec4138581c6802907c74d4759

    BTW, believe it or not, the Bash script running multiple commands starts and

    Programming @programming.dev
    thingsiplay @beehaw.org

    crc32sum - Print CRC-32 (binary mode) checksums with Python on Linux.

    https://github.com/thingsiplay/crc32sum

     undefined
        
    # usage: crc32sum [-h] [-r] [-i] [-u] [--version] [path ...]
    
    crc32sum *.sfc
    2d206bf7  Chrono Trigger (USA).sfc
    
      

    Previously I used a Bash script to filter out the checksum from 7z output. That felt always a bit hacky and the output was not very flexible. Plus the Python script does not rely on any external module or program too. Also the underlying 7z program call would automatically search for all files in sub directories recursively when a directory was given as input. This would require some additional rework, but I decided it is a better idea to start from scratch in a programming language. So I finally wrote this, to have a bit better control. My previous Bash script can be found here, in case you are curious: https://gist.github.com/thingsiplay/5f07e82ec4138581c6802907c74d4759

    BTW, believe it or not, the Bash script running multiple commands starts and executes faster than the Python instance. But the difference is negligible, an

  • crc32 is very common amongst emulation and roms. While often they provide md5sum too, crc32 is a bit faster on bulk.

  • Agreed on your points and usually I do 2. (name) and 3. (exit instead else) sometimes. For the [[ over [, it usually matters only for word splitting and globbing behavior, if you do not enclose the variables between quotes I believe. But looking into the shellcheck entry, looks like there is no disadvantage. I may start doing this by default in the future too.

    So thanks for the suggestions, I will update the script in a minute.

    Edit: I always forget that Beehaw will break if I use the "lower than" character like in

    , so I replaced it in the post with cat %%EOF which requires to change that line. And the example usage is gone for the moment.

    Edit2 (21 hours later): I totally forgot to remove the indentation and else-branch. While doing so I also added a special option -h, in case someone tries that. Not a big deal, but thought this should be.

  • Linux @lemmy.ml
    thingsiplay @beehaw.org

    crc32sum - Calculate CRC32 for each file (Bash using 7z) - bugfix

    Hi all. This is an update on my script extracting CRC32 checksum from the 7z commandline tool. The output should be similar to how the md5sum tool outputs, the checksum and the file name/path.

    The initial version of this script was actually broken. It would not output all files if a directory was included (wrong counting of files through argument number). Also filenames that contained a space would only output the first part until the space character. All of this rookie mistakes are solved. Plus there is a progress bar showing what files are processed at the moment, instead showing a blank screen until command is finished. This is useful if there are a lot of files or some big files to process.

    Yes, I'm aware there are other ways to accomplish this task. I would be happy to see your solution too. And if you encounter a problem, please report.

    crc32sum:

    (Note: Beehaw does not like the "less than" character and

  • Torvalds drama is at least some "drama" with flesh and bones, with a good reason behind it. Not a ghost drama for no reason.

  • If you read the conversation, its clear that Lina is toxic for no reason. She needs to to out and touch some grass.

  • [PRIORITY] a website that works with Tridactyl✋

    A man of culture.

  • Impressive improvement! But why did they choose Rust to compile on demand in the first place, if compile time was that important?

  • Just a thumb of rule to make sense of it: A column in AWK is by default any space separated part. You can change the column separator to any other character too with -F ":" in example would be a double colon. There is also a way to print all columns, but with certain exceptions. In example print all, but the third and fourth columns: ls -l | awk '{$3=""; $4=""; print $0}' . Admittely I forget this syntax often and have to look for it again.

  • A perfect example when to use AWK.

  • Don't make yourself (and others) false hope, it will not happen. Why? In the past Bungie officially said they don't want support Linux. This company is quiet hostile towards Linux for whatever reason. That's why I don't have any hope for this game to be playable on the Deck (or in Linux general for that matter).

    Sure things can change sometimes, but I would not hope on this based on speculation. Not being the party pooper here, just trying to be realistic based on history.

  • It depends, there are no hard rules. I have a preference for the native package manager with pacman and repository of my distribution. I also would like to use AUR more often, but it depends who is maintaining that package. It also depends if there is a Flatpak available. Some AppImages have an auto update for itself, so I download it only once and use the applications own update functionality manually.

    The good thing about AppImages are that they usually don't require super user privileges to install (in other words use) them and I can also archive them very easily.

  • You can bet it will have micro transactions like a free to play game, but with an additional premium full price on top of it.

  • Gaming @beehaw.org
    thingsiplay @beehaw.org

    Marathon | Gameplay Overview Trailer

    Marathon looks like an Ai agent would create. Art style, gameplay and story wise.

    This is the next game from the Destiny creator Bungie. A multiplayer extraction shooter. It has nothing to do with the original Marathon game its based on, an old single player game. Those who could hands on the game describe it as a Destiny like controls and animation, but as an extraction shooter mode.

    As for me, I would probably even check the game out, if it was free to play (its full price game, like Concord) and if it would be playable on Linux. Bungie is anti Linux, so not for me anyway.

  • I agree, this is the real impact of Ai. It won't replace developers, but make them work for less money. But I actually think real programmers will be even more needed in the future, if there is ton of bad code written by non coders with Ai or even by real coders with the support of Ai. That means we get more code, that needs to be reviewed and worked on by real programmers.

    Therefore on one hand it will lessen the money earned for real programmers, on the other hand they will be more useful and needed in the future.

  • Better is relative. Also its unfair to compare one species (car) against many possible specialized species (cars). In example you don't need to repair an expensive car, you don't need electricity or oil and fuel (and many other stuff). Depending on where you are in the world, a horse might be "better" suited than a car.

  • If you want debug code, then hopefully it isn't written by an Ai agent. Otherwise good luck (besides simple functions or code blocks off course).

  • The guy who wrote the article watches too much porn. The more you watch and see and experience something, the more you will see it everywhere.

  • Is it actually proven this to be a real prototype made by Valve?

  • Emulation @lemmy.ml
    thingsiplay @beehaw.org

    SNES Mods and Romhacks Collection March 26, 2025 (850 pre-patched + description)

    cross-posted from: https://beehaw.org/post/19102607

    Faster downloads from Gofile, in case Internet Archive is slow or not available: https://gofile.io/d/EFyn1q

    Internet Archive for preservation: https://archive.org/details/snes_mods_and_romhacks_collection_20250326_patched


    This is the first time I am uploading patched Roms, unlike previously where I uploaded only the patch files. My personal collection of Super Nintendo Romhacks in ready to play patched Roms in .sfc and .smc formats, complete with a descriptive text document. Most, if not all, files are patched by myself, but I did not test every game yet. Some old Romhacks do not work in accurate emulators.

    Please share this everywhere where Rom files are allowed to be shared. I am only sharing here at the moment.

    This collection comes in two variants: flat structure, and sub structure. "flat" just means all Roms and documents are saved in one single directory. "sub" means, every game got its own d

    datahoarder @lemmy.ml
    thingsiplay @beehaw.org

    SNES Mods and Romhacks Collection March 26, 2025 (850 pre-patched + description)

    Faster downloads from Gofile, in case Internet Archive is slow or not available: https://gofile.io/d/EFyn1q

    Internet Archive for preservation: https://archive.org/details/snes_mods_and_romhacks_collection_20250326_patched


    This is the first time I am uploading patched Roms, unlike previously where I uploaded only the patch files. My personal collection of Super Nintendo Romhacks in ready to play patched Roms in .sfc and .smc formats, complete with a descriptive text document. Most, if not all, files are patched by myself, but I did not test every game yet. Some old Romhacks do not work in accurate emulators.

    Please share this everywhere where Rom files are allowed to be shared. I am only sharing here at the moment.

    This collection comes in two variants: flat structure, and sub structure. "flat" just means all Roms and documents are saved in one single directory. "sub" means, every game got its own dedicated directory, where only related Romhacks and Mods are saved.

    [snes_mods

    Gaming @beehaw.org
    thingsiplay @beehaw.org

    Marvel Rivals cheater banned for 100 years

    Today I've reported a player in Marvel Rivals for being a cheater (it was obvious to me, even autoaim through wall playing hawkeye). And I just got a confirmation message that the player is banned until 2125... basically a 100 year ban. :D Do report them. Report toxicity as well (I get ton of confirmation). But do not report because you are angry or maybe the other player played well. It's the first time I reported someone in Marvel Rivals for cheating.

    I do my part.

    Programming @programming.dev
    thingsiplay @beehaw.org

    Finally the new Rust 1.85.0 update is here, with a new Rust Edition 2024.

    Gaming @beehaw.org
    thingsiplay @beehaw.org

    I Spent 1 YEAR Remaking Super Mario World In 3D! by Bobby Ivar (YouTube: 18:25 min)

    Someone remaked Super Mario World in 3D in Unreal Engine 5 (no realistic graphics). The video explains what he did and its super interesting and entertaining to watch. However, there is nothing playable right now. And even if there was one, Nintendo would be fast to remove it. I hope he will publish a finished work as Open Source project, so it will live on forever.

    Video description:


    Full gameplay video here: youtube.com/watch?v=xy3X_txfYWI&t=0s

    Made in Unreal Engine 5.

    Gaming @beehaw.org
    thingsiplay @beehaw.org

    Marvel Rivals Version 20250214 Patch Notes - Steam News (February 12, 2025)

    It's not a big message, so I copied it here over. To me it is notable that they specifically address a Linux Gaming distribution called Bazzite, to correct a bug/mistake on it caused by the game. This note is also under the "General" headline, so they take it serious. I am really really happy about this.

    Greetings, Rivals!

    We're thrilled to announce that the upcoming patch drops on February 13, 2025, at 09: 00: 00 (UTC+0)! This update will also be applied without server downtime—so you can dive right back into your epic battles as soon as the update is live!

    Here's a look at what's coming in this patch:

    All-New Costumes

    Mister Fantastic & Invisible Woman - 60th Wedding Anniversary Combo Bundle (Store release: 2025/02/14 02: 00: 00 UTC+0)

    Mister Fantastic - The Life Fantastic (Store release: 2025/02/14 02: 00: 00 UTC+0)

    Invisible Woman - The Life Fantastic (Store release: 2025/02/14 02: 00: 00 UTC+0)

    Bug Fixes

    All Pla

    Gaming @beehaw.org
    thingsiplay @beehaw.org

    SimCity Classic in RetroArch - Who needs Windows 11 when you can play on Windows 98?

    Edit: Oh I forgot the Direct X and drivers links. Added it in the below link list. There is a website that hosts old versions. With Windows 98 SE I use "voodoo_graphics_driver_kit_version_3.01.00" and "directx9.0c_april2006".

    I just escaped the madness of today gaming and enjoy some retro games. The original Sim City from 1989 got a re-release in 1995 as version 2 for Windows 95. This screenshots shows DOSBox-pure in RetroArch with a Windows 98 Second Edition installation to play SimCity Classic V2.0 for Windows 95 (it works with 98). BTW this is on my Linux host. It's hilarious.

    The hierarchy is as follows: Linux > RetroArch > DOSBox-pure > Windows 98 > SimCity Classic V2.0 for Windows 95

    It's actually the first time I played this old version for Windows. I only knew and played the SNES version before, which is dramatically overhauled (and with gamepad support off course), my favorite version to date. In case you want too, there is a lot of stuff to do and understand to get this up

    Linux @lemmy.ml
    thingsiplay @beehaw.org

    tocase - Sharing a simple Bash script to change lower and uppercase characters

    Little Update: Just added an exit command after the help.

    Here is another little script that nobody asked for. There are multiple ways to accomplish this, but I always forget how or which is the best way. Use tr? Or sed? When can I use the more efficient Bash substitutions instead, which are Bash integrated functionality of variables that saves me some extra calls. Also most solutions to title case will compress all spaces to single space after a word; not this "title" solution, which respects the spaces.

    Use this like you would use grep or tr, which get input from stdin and output to stdout. There are no special options, only mode names without dashes. Multiple modes can be combined, but there is actually no reason to do so at the moment.

    Example:

     undefined
        
    echo "Hello World, this is an EXAMPLE." | tocase toggle upper1
    
      

    tocase:

    (Note, this Beehaw instance always replaces some characters and makes th

    Steam Deck @sopuli.xyz
    thingsiplay @beehaw.org

    LGR had best experience of The Sims 1 & 2 Legacy Collection on the Steam Deck (timestamp at 14:16 min)

    LGR is a YouTuber who talks and shows lot of oldschool games and computers. And he is a fan of the Sims games. The Windows re-release has still problems, but works perfectly fine out of the box on the Steam Deck. I thought this is notable and want to share his experience: Though oddly enough, the one that I've had the most success with is the Steam Deck

    Linux @lemmy.ml
    thingsiplay @beehaw.org

    Sharing some of my newest small Bash scripts using 7z

    New version for toarchive: https://gist.github.com/thingsiplay/889cb2899f35405e10839112f5181ab3#file-toarchive

    (I have added a new version of the script. The old one is renamed to 'toarchive-old'. The new script has some guard rails and more checks. Also original files can be removed automatically on success, like gzip does. But an option -r must be explicitly given here, like toarchive zip -r file.txt. Directories can be removed too, but the option uppercase -R is required here, as in toarchive zip -R my_dir. Have in mind this will use rm -r system command. Although some guard rails are in place to prevent massive fail, you should be very careful. Note that no file is removed, if -r or -R are not used at all.)


    I always write little scripts and aliases that help me from time to time. I just wanted to share some of my newest simple scripts. There are probably better or easier ways to do, but writing and testing them is fun too. Both make use of the 7z command, a commandlin

    Linux @lemmy.ml
    thingsiplay @beehaw.org

    Steam Linux Use Dips For January 2025 Amid Odd Survey Numbers

    Article has some observation about the new statistics provided by Steam-Hardware-Software-Survey-Welcome-to-Steam.

    The Steam on Linux marketshare ended 2024 with a 2.29% against Windows at 96.1% and macOS at 1.61%. The Steam Survey numbers for January were posted this evening and they show a sizable dip for the Linux gaming use but there are also other odd discrepancies with the updated monthly figures.

    ...

    Where things get odd though is that the January results show the English language use dropping by 8.17% down to 33.97%... Most other languages dropping too and no explanation where the 8%+ usage went from the English use.

    Free and Open Source Software @beehaw.org
    thingsiplay @beehaw.org

    FreeTubeApp/FreeTube Release v0.23.0 Beta

    Features

    • Add autoplay toggle to the video player by @kommunarr in #5866
    • Add Shift+? shortcut to view all keyboard shortcuts in-app by @kommunarr in #6306
    • Right-click or hold-click on page ←/→ arrows to access navigation history by @kommunarr in #5227
    • [MacOS] Make ⌘←/⌘→ go back/forward by @PikachuEXE in #6466
    • Sort user playlist videos by published date by @GLEBR1K in #6280
    • Add volume and playback rate change notifications to videos by @ikizey in #6473
    • Added Button to Show Original Title and Thumbnail for DeArrow by @JL0000 in #6164
    • Add setting for opening URLs passed to FreeTube in a new window by @OothecaPickle in #6242
    • Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel by @c-ciobanu in #5901
    • Add setting blocking autoplay aft
    Linux @programming.dev
    thingsiplay @beehaw.org

    Reminder: You can disable Copilot in Github, if you don't use it.

    Gaming @beehaw.org
    thingsiplay @beehaw.org

    EasyRPG Games (an Open Source RPG Maker 2000 and 2003 player)

    thingsiplay.game.blog EasyRPG Games

    You either love or hate them; RPG Maker games. To me the oldschool Rm2k is history like a videogame console. Nowadays I play those on the Free and Open Source EasyRPG Player. This post has some gam…

    EasyRPG Games

    You either love or hate them; RPG Maker games. To me the oldschool Rm2k is history like a videogame console. Nowadays I play those on the Free and Open Source EasyRPG Player. This post has some game suggestions and sources compatible with EasyRPG.

    1. Where to get Games
      1. rpgmaker .net
    2. Game Suggestions
    3. Enough is enough
    Firefox @lemmy.ml
    thingsiplay @beehaw.org

    Reminder: Firefox has a good and privacy respecting local language translation of webpages builtin

    I just recommended someone to use Firefox for its excellent translation capability. And I think my reply warrants an entire post, so here is a copy of my reply. This is just a reminder that you can visit websites with other languages too. However Japanese and Korean are not supported yet, which would be helpful for me. Hopefully they add the support soon. But for German in example it works:

    You could use a translation tool, for something that looks interesting to you. At least Firefox makes this easy, with its builtin translation functionality (without Google as far as I understand, and I think local/offline only, but can be wrong). Firefox is my main way to interact with Lemmy:

    Directly in the addressbar for non native languages:

    Or through menu:

    ![](https://lazysoci.al/api/v3/image

    Linux @lemmy.ml
    thingsiplay @beehaw.org

    Very simple foreach line alias to xargs - is it usefule?

    I created a simple alias for xargs, with the intend to pipe it when needed. It will simply run a command for each line of it. My question to you is, is this useful or are there better ways of doing this? This is just a little bit of brainstorming basically. Maybe I have a knot in my head.

     undefined
        
    # Pipe each line and execute a command. The "{}" will be replaced by the line.
    # Example:
    #   find . -maxdepth 2 -type f -name 'M*' | foreach grep "USB" {}
    alias foreach='xargs -d "\n" -I{}'
    
    
      

    For commands that already operate on every line from stdin, this won't be much useful. But in other cases, it might be. A more simplified usage example (and a useless one) would be:

     undefined
        
    find . -maxdepth 1 | foreach echo "File" {}
    
      

    It's important to use the {} as a placeholder for the "current line" that is processed. What do you think about the usefulness? Have you any idea how to use it?