← prev | next →
Noarch 2022-07-29 07:11:38
just testing the max numbers
smol_mazunki 2022-07-29 07:11:52
that’s pointless
smol_mazunki 2022-07-29 07:12:00
it very much depends on what your goal is
smol_mazunki 2022-07-29 07:12:13
for instance, long double is compeltely useless if your scope is just numbers between 0 and 1
Noarch 2022-07-29 07:12:49
yes needless
smol_mazunki 2022-07-29 07:13:18
and if you’re calculating very precise measurements, you should worry more about the order of operations being in a similar order of magnitude
smol_mazunki 2022-07-29 07:13:25
or just use a meta-type
smol_mazunki 2022-07-29 07:14:37
if you’re working with money, for instance, these errors are unacceptable. you’re better off using fixed point arithmetics (e.g struct, or built-in), for instance
Noarch 2022-07-29 07:15:08
get it
Noarch 2022-07-29 07:15:20
very nice of you
smol_mazunki 2022-07-29 07:15:44
anytime
smol_mazunki 2022-07-29 07:16:42
smol_mazunki 2022-07-29 07:13:18
and if you’re calculating very precise measurements, you should worry more about the order of operations being in a similar order of magnitude
in case this isn’t obvious: 500 000 + 2, for instance, is the same as 5*10^5 + 2*10^0
smol_mazunki 2022-07-29 07:16:56
e.g 5.00e5 + 2.00e0
smol_mazunki 2022-07-29 07:17:15
which just yields 5.00e5
smol_mazunki 2022-07-29 07:17:27
adding +2 meant absolutely nothing, it didn’t change your value
smol_mazunki 2022-07-29 07:17:43
of course, we’re not in base 10 in computing, but the same logic applies
alexmb7 2022-07-29 07:46:35
ActuallyNotGelb 2022-07-28 18:28:37
I use Arch and Fedora as my main Linux distros, on my i5-powered (soon with a Ryzen 7) laptop.
I do, however, still have an Intel Atom D425-powered nettop (?) from Asus, and I still use it: why not?
I kinda wanted to use windowmaker but idk how to properly set it up, and with which distro to run it (was thinking about alpine, but I tried it in a vm and it didn’t work as anticipated – no menus, and I was perpetually stuck), any ideas?
also, is there any very similar (probably webkit based) web browser that could work on said setup?
my idea is to have something like a platinum-inspired system, or something vintage-looking, whilst functional and modern under-the-hood (or moderately so, doesn’t need to be bleeding edge, an LTS release model would work).
i on deb use wmker since y2k
i apt install it along xinit and xorg and startx via ~/.xinitrc
alexmb7 2022-07-29 07:48:51
smol_mazunki 2022-07-29 06:58:17
ideally i’d just want to do something like mpv –sub-file-paths=’Subs/%p’ episode_001.mp4
manually stack up the srts to a var and use in mpv cmd
i suggest mplayer from long ago btw
alexmb7 2022-07-29 07:51:00
Noarch 2022-07-29 07:11:38
just testing the max numbers
max numbers where
bash is 32 / 64 b
gawk is unlimited
alexmb7 2022-07-29 07:53:08
Tapani Tarvainen
to help-bash
16 hours agoDetails
For the sake of completeness, there are machines with a word length
that’s not 16, 32 or 64 or even any power of two. I don’t know if bash
runs in any such machine, or indeed if any such are actually still in
production use anywhere (probably not), but here’s one way to get the
maximum integer in any case:
a=$( printf “%x” -1 )
MAXINT=$(( 0x$(( 0x${a::1} >> 1 ))${a:1} ))
Not seriously recommended for any use other than having fun with bash
features. 🙂
alexmb7 2022-07-29 07:53:30
this is some weird pro bash code from bash list to get max int .. was just few days ago
smol_mazunki 2022-07-29 08:05:58
alexmb7 2022-07-29 07:48:51
manually stack up the srts to a var and use in mpv cmd
i suggest mplayer from long ago btw
what’s hhe difference
smol_mazunki 2022-07-29 08:06:07
alexmb7 2022-07-29 07:48:51
manually stack up the srts to a var and use in mpv cmd
i suggest mplayer from long ago btw
yeah i thought about it
smol_mazunki 2022-07-29 08:06:17
but i still feel this should be a feature
alexmb7 2022-07-29 08:06:43
i just understood u wanted mpv to play srt with fixed args as it doesnt find them
smol_mazunki 2022-07-29 08:07:23
alexmb7 2022-07-29 08:06:43
i just understood u wanted mpv to play srt with fixed args as it doesnt find them
nah, fixed works
alexmb7 2022-07-29 08:07:24
i have no good imho about != mplayer[2]
alexmb7 2022-07-29 08:07:39
then make small cmd to include it
alexmb7 2022-07-29 08:08:00
u can stack args for multi srt i dunno your criteria though
smol_mazunki 2022-07-29 08:08:30
mpv –sub-file=Subs/Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re]/2_English.srt Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re].mp4 works
smol_mazunki 2022-07-29 08:09:26
something like:
mpv –sub-file=Subs/”$1″/2_English.srt “$1”.mp4 would do the trick
alexmb7 2022-07-29 08:09:46
smol_mazunki 2022-07-29 08:08:30
mpv –sub-file=Subs/Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re]/2_English.srt Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re].mp4 works
i see a small way
u make a wrapper script that has an array of ‘wanted exact srt s’ and play always with that cmd
then the cmd checks for srts in per arg and includes if found
.. what u say
smol_mazunki 2022-07-29 08:09:54
guess i could also mpv –sub-file=Subs/”$(basename “$1”)”/2_English.srt “$1”
alexmb7 2022-07-29 08:10:26
use ${1##*/}
alexmb7 2022-07-29 08:10:30
but yes
← prev | next →