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
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".
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
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
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.
crc32sum - Calculate CRC32 for each file (Bash using 7z) - crc32sum
Link Actions
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.
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.
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.
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.
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
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.
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.
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.
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 pa...
Link Actions
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!
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
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
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
(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
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.
Summary
This release comes with dozens of bug fixes, new player enhancements, user experience improvements, performance improvements, and features that we were able to implement thanks to the help ...
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…
Link Actions
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.
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:
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?