03:58:18<audrooku|m>hey, I'm getting read errors with this video: https://web.archive.org/web/2oe_/http://wayback-fakeurl.archive.org/yt/WSydXew2H2Y
03:58:20<audrooku|m>someone is interested in recovering this video
03:58:59<fireonlive>cc arkiver
04:00:04<audrooku|m>(Reposted from #down-the-tube)
04:52:07line_ quits [Ping timeout: 272 seconds]
05:21:46<nicolas17>I need items "samsung-opensource-" and "samsung-opensource-457" deleted
05:23:21<nicolas17>the first was item ID "samsung-opensource-$i" with unset $i, the second was me typoing ID 547 and when my dumb script didn't find directory 457 it started uploading the current directory contents instead
05:24:16c3manu quits [Remote host closed the connection]
05:24:22c3manu (c3manu) joins
05:26:57systwi quits [Ping timeout: 272 seconds]
05:27:08<audrooku|m>Doesn't the web interface let you remore them?
05:27:12<audrooku|m>Remove*
05:29:48<nicolas17>I can "dark" my own items
05:36:34<@JAA>Yeah, deleting the files and darking the item is what I do in such cases.
05:38:27<nicolas17>for f in data/$i/*.zip; do unzip -t $f || exit 1; done
05:38:41<nicolas17>oops that fails if this particular directory has no zip files, I know, I'll set shopt nullglob
05:39:23<nicolas17>but now with nullglob, $(ls -S data/$i/*) expands to $(ls -S) and lists the current directory if data/$i doesn't exist >_<
05:39:40<nicolas17>jank bash script strikes again
05:40:50<fireonlive>[[ ! -z $i ]]
05:40:52<fireonlive>or something
05:41:00<fireonlive>o
05:41:01<fireonlive>nv,
05:41:02<fireonlive>m
05:41:08<nicolas17>or use a real programming language
05:41:12<@JAA>[[ -e data/$i ]]
05:41:13<fireonlive>🐍
05:41:39<@JAA>Also, don't parse ls output, ever. :-)
05:41:43<fireonlive>JAA hotline best hotline
05:42:03<nicolas17>JAA: I already had issues with spaces in filenames but they're rare enough :P
05:42:20<nicolas17>I wanted to sort them by size
05:42:22<@JAA>git gud then!
05:43:12<fireonlive>when attempting to do something i find it's easier to just not
05:43:34<@JAA>`find data/$i -type f -printf '%s %p\0' | sort -nz | sed -z 's,^[0-9][0-9]* ,,' | xargs -0 <something>`
05:43:56<@JAA>Untested, but that's the idea anyway.
05:45:27<nicolas17>files.sort(key=lambda filename: os.path.getsize(filename), reverse=True)
05:46:47<@JAA>Yeah, but where's the fun in not fighting Bash?
05:47:48<@JAA>On a more serious note though, I'm not liking at all where Bash is heading in 5.2 and 5.3. We'll see how this works out in the long run...
05:48:07<nicolas17>I don't keep up with new features at all :P
05:48:31<@JAA>I just found out the other day that it's impossible now to safely use assoc arrays in arithmetic contexts from 5.2 on, unless you drop BASH_COMPAT to 5.1.
05:48:43<@JAA>All because of a very shitty 'feature'.
05:50:01<@JAA>I hope the people complaining about Python's occasional change that breaks backwards compatibility will be just as fierce in complaining about this. ;-)
05:54:07<fireonlive>will JAA move to zsh?!
05:54:25<audrooku|m>Stay tuned
05:54:37<fireonlive>🎵🎵🎵
05:57:00<@JAA>Maybe, or I'll go with ksh. :-P
05:57:17<@JAA>I've also wanted to try Xonsh.
05:57:34<@JAA>But the key issue is that Bash is available *everywhere* and these other things ... aren't.
05:57:58<fireonlive>true... :(
05:58:07<fireonlive>especially on some of those uh AT things
05:58:19<@JAA>We don't talk about those.
05:58:28<fireonlive>:D
06:03:36<@JAA>I do have access to that one cursed system with Dash as the default shell...
06:04:15<fireonlive>oh lord
06:04:29<@JAA>At least it's not csh...
06:10:12systwi (systwi) joins
06:13:12<fireonlive>:p
07:28:55line joins
08:03:25Arcorann (Arcorann) joins
08:11:18c3manu quits [Remote host closed the connection]
08:11:52c3manu (c3manu) joins
08:11:54c3manu quits [Remote host closed the connection]
08:12:34c3manu (c3manu) joins
08:14:12c3manu quits [Remote host closed the connection]
08:20:23c3manu (c3manu) joins
10:17:01f_ quits [Ping timeout: 272 seconds]
11:09:08f_ (funderscore) joins
12:50:55Arcorann quits [Ping timeout: 272 seconds]
14:50:37magmaus3 quits [Ping timeout: 272 seconds]
15:21:31DogsRNice joins
15:33:34magmaus3 (magmaus3) joins
18:03:50datechnoman quits [Ping timeout: 240 seconds]
18:06:41datechnoman (datechnoman) joins
20:02:17SootBector quits [Remote host closed the connection]
20:06:26SootBector (SootBector) joins
23:11:32driib quits [Quit: Ping timeout (120 seconds)]
23:11:35DigitalDragons quits [Quit: Ping timeout (120 seconds)]
23:12:38DigitalDragons (DigitalDragons) joins
23:14:25driib (driib) joins
23:15:23JTL quits [Ping timeout: 272 seconds]
23:16:55JTL (JTL) joins