Is there a better algorithm for converting big binaries into decimal?
At the moment, I am stuck with using single-precision float, and double-precision float. So, the maximum represent-able value for single is 1
This magazine is from a federated server and may be incomplete. Browse more on the original instance.
At the moment, I am stuck with using single-precision float, and double-precision float. So, the maximum represent-able value for single is 1
I’ve written small bash scripts before, but I bit off a little more this time, and I’m trying to program a little terminal game....
cross-posted from: beehaw.org/post/10863052...
Three things before I’ll get to the relevant details....
Hello everyone. I wrote this command in the terminal directly and got the desired and expected output - that being the last 50 occurrences of me installing or removing a package with pacman or yay: history | grep -e ‘pacman -Ss’ -e ‘pacman -Rs’ -e ‘yay -Ss’ -e ‘yay -Rs’ | tail -n 50 > ~/history_installed...
cross-posted from: lemmy.world/post/1838642...
i’m pretty new to the shell scripting world and not sure, if i should give my scripts a .sh or .bash extension....
I came across this pure sh bible when browsing HN. Now I’d like to know if there is any introduction to pure “sh” scripting. It would be nice if it’s something downloadable as epub.
A huge part of programming in general is learning how to troubleshoot something, not just having someone else fix it for you. One of the basic ways to do that is by tracing. Not only can this help you figure out what your script is doing and how it's doing it, but in the event that you need help from another person, posting the...