💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-11-01.txt captured on 2024-05-12 at 16:07:16.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

2020-11-01T03:57:29 #kisslinux <dylanaraps> o/
2020-11-01T15:12:47 #kisslinux <mcpcpc[m]> soliwilos: if you want to post it as well, i can look to add it to the support documentation.
2020-11-01T15:14:06 #kisslinux <soliwilos> mcpcpc[m]: Sure.
2020-11-01T15:39:28 #kisslinux <soliwilos> mcpcpc[m]: I added a new comment with the script.
2020-11-01T16:09:17 #kisslinux <midfavila> Hey, in regards to packaging a web browser... I know it's a little unorthodox, but what about Netsurf?
2020-11-01T16:09:43 #kisslinux <midfavila> It's fairly minimal, especially compared to the beast that is Firefox, and can support multiple GUI toolkits (or none at all)
2020-11-01T16:14:49 #kisslinux <mcpcpc[m]> soliwilos: kk
2020-11-01T20:13:47 #kisslinux <midfavila> Hey, guys. Might be a bit of a noob question, but I'm used to editing open file limits and such under /etc/security/limits.conf. I can't help but notice that's absent in KISS... would creating that file and directory still work properly (i.e is this a thing the kernel checks) or is it something else?
2020-11-01T20:24:54 #kisslinux <nerditup> sysctl(8) can be used to configure those limits at runtime
2020-11-01T20:25:31 #kisslinux <midfavila1> Ah, alright. Thanks.
2020-11-01T23:18:36 #kisslinux <dilyn> mfw I tried to convert a docx to txt and overwrote the whole file with the unzip help output and didn't have a backup
2020-11-01T23:18:37 #kisslinux <dilyn> :X
2020-11-01T23:22:21 #kisslinux <midfavila> ouch
2020-11-01T23:23:12 #kisslinux <dilyn> yarrrr
2020-11-01T23:23:20 #kisslinux <dilyn> that paper took a very long time to write too (:
2020-11-01T23:23:24 #kisslinux <dilyn> i love everything
2020-11-01T23:23:49 #kisslinux <dilyn> just goes to show: when in doubt, use an arch-chroot to use libreoffice to save files in different formats
2020-11-01T23:34:26 #kisslinux <midfavila> if it makes you feel any better I just wiped out all of my FVWM config's audio files by trying to do that exact same thing
2020-11-01T23:34:41 #kisslinux <midfavila> thankfully I had a backup :P
2020-11-01T23:35:58 #kisslinux <dilyn> I technically *had* a backup, but my nextcloud host deleted my account (:(:(:(:
2020-11-01T23:36:07 #kisslinux <dilyn> #hostyourown
2020-11-01T23:36:21 #kisslinux <midfavila> that's even worse, geesh.
2020-11-01T23:36:26 #kisslinux <dilyn> deleting important stuff on accident is literally awful lmao
2020-11-01T23:36:35 #kisslinux <midfavila> ...while on the topic though, you wouldn't have experience with ffmpeg in shell scripts, would you?
2020-11-01T23:36:36 #kisslinux <dilyn> one of the worst things i've ever done
2020-11-01T23:36:40 #kisslinux <dilyn> no :X
2020-11-01T23:36:43 #kisslinux <midfavila> Darn.
2020-11-01T23:37:01 #kisslinux <midfavila> For whatever reason when converting audio from one format to another in a for loop, it outputs nothing
2020-11-01T23:37:03 #kisslinux <dilyn> i don't convert audio or video anymore; not since 2011 when I deleted my entire music library. twice.
2020-11-01T23:37:10 #kisslinux <dilyn> weird...
2020-11-01T23:37:13 #kisslinux <midfavila> Yeah.
2020-11-01T23:37:16 #kisslinux <dilyn> does it work, not in a loop?
2020-11-01T23:37:19 #kisslinux <midfavila> yeah.
2020-11-01T23:37:26 #kisslinux <midfavila> I'll post my script here (it's not terribly long)
2020-11-01T23:37:30 #kisslinux <dilyn> you could just run the script in a loop
2020-11-01T23:37:38 #kisslinux <midfavila> the script *is* a loop :P
2020-11-01T23:38:16 #kisslinux <midfavila> /bin/yash -e
2020-11-01T23:38:16 #kisslinux <midfavila> x=`ls | grep aiff | wc -l`
2020-11-01T23:38:16 #kisslinux <midfavila> for i in {1..$x}
2020-11-01T23:38:16 #kisslinux <midfavila>   do
2020-11-01T23:38:16 #kisslinux <midfavila>       y=`ls | sed "$x!d"`
2020-11-01T23:38:16 #kisslinux <midfavila>       z=`ls | sed "$x!d" | sed s/aiff/wav/`
2020-11-01T23:38:16 #kisslinux <midfavila>       ffmpeg -i $y $z
2020-11-01T23:38:17 #kisslinux <midfavila>     x=$(( $x - 1))
2020-11-01T23:38:17 #kisslinux <midfavila>   done
2020-11-01T23:38:20 #kisslinux <midfavila> don't judge me too harshly
2020-11-01T23:38:27 #kisslinux <midfavila> it's super jank, haha
2020-11-01T23:38:30 #kisslinux <dilyn> lmao
2020-11-01T23:38:40 #kisslinux <dilyn> does yash expand {...}?
2020-11-01T23:38:42 #kisslinux <midfavila> Yeah
2020-11-01T23:39:06 #kisslinux <midfavila> outside of niceities like exanding stuff it's otherwise strictly posix
2020-11-01T23:39:11 #kisslinux <midfavila> expanding, fuck
2020-11-01T23:39:16 #kisslinux <dilyn> lol
2020-11-01T23:39:35 #kisslinux <midfavila> but yeah, it works like you would expect
2020-11-01T23:39:51 #kisslinux <midfavila> outside of the whole "overwriting the original file with nothingness instead of making a wav copy"
2020-11-01T23:42:08 #kisslinux <dilyn> if you're doing a for loop, why change x?
2020-11-01T23:42:25 #kisslinux <midfavila> ...oh my god you're totally right
2020-11-01T23:42:29 #kisslinux <dilyn> lmao
2020-11-01T23:42:30 #kisslinux <midfavila> I can't believe I missed that
2020-11-01T23:42:34 #kisslinux <midfavila> I'm not used to having shell expansion
2020-11-01T23:42:50 #kisslinux <midfavila> so I habitually decrement the variable used to control the loop
2020-11-01T23:43:16 #kisslinux <dilyn> i would've noticed a lot faster if i was worth even half my weight in shell scripting
2020-11-01T23:43:25 #kisslinux <dilyn> or coding in general
2020-11-01T23:43:29 #kisslinux <midfavila> I'm not even worth an eighth of my weight yet (clearly)
2020-11-01T23:43:49 #kisslinux <dilyn> xD
2020-11-01T23:43:51 #kisslinux <midfavila> outside of totally fucking up the loop though it does work
2020-11-01T23:43:56 #kisslinux <dilyn> hooray!
2020-11-01T23:44:04 #kisslinux <midfavila> is 50% a passing mark? :v
2020-11-01T23:44:22 #kisslinux <dilyn> i've taken classes were 26% was an A so I'll give it to you
2020-11-01T23:44:28 #kisslinux <midfavila> kek
2020-11-01T23:45:35 #kisslinux <midfavila> Man, I really need to start scripting more often though
2020-11-01T23:45:49 #kisslinux <midfavila> the worst part is that I've __done__ this before. or at least a similar problem
2020-11-01T23:45:59 #kisslinux <midfavila> batch renames, batch image conversions, whatever
2020-11-01T23:46:17 #kisslinux <dilyn> i usually just go to the stackexchange article i bookmarked :S
2020-11-01T23:46:25 #kisslinux <dilyn> i never have to do it enough to learn
2020-11-01T23:46:37 #kisslinux <midfavila> I try to avoid relying on stack exchanges
2020-11-01T23:46:53 #kisslinux <dilyn> I would probably reinstall windows if i couldn't use SE
2020-11-01T23:47:04 #kisslinux <midfavila> :v
2020-11-01T23:47:11 #kisslinux <midfavila> what a n o r m i e
2020-11-01T23:47:14 #kisslinux <midfavila> /g/ is disappoint
2020-11-01T23:47:21 #kisslinux <dilyn> i will gladly disappoint /g/ xD
2020-11-01T23:47:33 #kisslinux <dilyn> i've been disappointing /b/ and /sci/ for fifteen years, why stop now
2020-11-01T23:48:13 #kisslinux <midfavila> fair enough
2020-11-01T23:49:19 #kisslinux <midfavila> OH FUCK I REMEMBER NOW
2020-11-01T23:49:30 #kisslinux <midfavila> I *wasn't* retarded, and did in fact have a reason to decrement x
2020-11-01T23:49:37 #kisslinux <dilyn> lmfao
2020-11-01T23:49:39 #kisslinux <midfavila> x was used to control what the contents of y and z were
2020-11-01T23:49:51 #kisslinux <midfavila> and in my brain I was going to be clever and also use it to control the loop
2020-11-01T23:50:35 #kisslinux <dilyn> so what does sed "$x!d" do?
2020-11-01T23:50:50 #kisslinux <midfavila> prints out only the line number equal to the integer in $x
2020-11-01T23:50:58 #kisslinux <dilyn> mmmm
2020-11-01T23:51:00 #kisslinux <midfavila> $x in this case is equal to the number of .aiff in the directory
2020-11-01T23:51:11 #kisslinux <midfavila> so you take the last aiff, convert it, and then decrement the loop
2020-11-01T23:51:25 #kisslinux <dilyn> sso without decrementing x you'd just end up converting the same aiff file over and over
2020-11-01T23:51:26 #kisslinux <dilyn> ?
2020-11-01T23:51:26 #kisslinux <midfavila> which would both move you towards the end of the loop (0), and grab the *next* aiff
2020-11-01T23:51:29 #kisslinux <midfavila> and yea
2020-11-01T23:51:31 #kisslinux <midfavila> that's what happens
2020-11-01T23:51:40 #kisslinux <midfavila> I ran an echo command just to make sure
2020-11-01T23:52:01 #kisslinux <midfavila> not quite a Mel-tier manueuver but it could have been clever if I wasn't a tard
2020-11-01T23:52:36 #kisslinux <dilyn> hmhmhm
2020-11-01T23:53:01 #kisslinux <midfavila> okay yeah
2020-11-01T23:53:04 #kisslinux <dilyn> but decrementing changes the loop
2020-11-01T23:53:06 #kisslinux <midfavila> with the x decrement it works
2020-11-01T23:53:13 #kisslinux <midfavila> but that still doesn't change the problem with ffmpeg
2020-11-01T23:53:14 #kisslinux <dilyn> hm
2020-11-01T23:53:59 #kisslinux <midfavila> time to pull a sysvinit and pack the thing with sleep .5
2020-11-01T23:54:08 #kisslinux <midfavila> because I have no idea what could be going on other than timing issues