Spyke

Replies

Comment on

[SOLVED] Is there a tool to replicate a filesystem?

Reply in thread

Stop googling and just read the rsync man page

Fair enough, sometimes you get tunnel vision with a problem.

For what I see the command doing, thanks for the progress flag, it seems to be doing what I need. Reading the manual, it also looks like it's not copying files that have the same size and timestamp in the source and destination, which is also what I wanted, even though I didn't make it explicit. I'll have to take a look to making the command parallel, probably by running it on every subdirectory of ~Music at once.

Thank you for your help!

Comment on

proportional reaction

At my previous workplace we had a C macro that was something like

#define CheckWhatever(x__, true__, false__) \
    whatever(x) ? (true__) : (false__)

I don't remember this shit, so I'm just paraphrasing cursed C. The question one would ask is... why? Well, because you also want to do

#define CheckWhatever2(x__, true__, false__) \
    CheckWhatever((x__ ##1), (true__), (false__)) \
    CheckWhatever((x__ ##2), (true__), (false__))

And, of course

#define CheckWhatever3(x__, true__, false__) \
    CheckWhatever2((x__ ##1), (true__), (false__)) \
    CheckWhatever2((x__ ##2), (true__), (false__))

Long story short, someone wanted to CheckWhatever6 inside another macro. While debugging code old enough to vote, my editor suggested expanding the macro, which expanded to ~1400 lines for a single ternary operator chain. Fun times!

Comment on

Why is working class called working class?

Reply in thread

From the article: The proletarii constituted a social class of Roman citizens who owned little or no property. The name presumably originated with the census, which Roman authorities conducted every five years to produce a register of citizens and their property, which determined their military duties and voting privileges.

Comment on

Guess what came in the mail yesterday?

It looks honestly beautiful! I've been looking for a device like this one for some time, but I don't know if it plays OPUS files. The web says it plays OGG, so it should play OPUS as well...? Do you mind trying one in your player?

I've uploaded a song to litterbox with an expiry time of 3 days: https://litter.catbox.moe/6dw2j7hxh4hme2gg.opus

Also, if you don't want to trust a file some rando on the internet sent you, here's an ffmpeg command to convert any mp3 file to opus:

# Opus 190kbps is the format I use for transparency bitrate
ffmpeg -i song.mp3 -c:a libopus -b:a 190k song.opus

If you can try it, I'l be very grateful!

Comment on

[SOLVED] Is there a tool to replicate a filesystem?

Reply in thread

My issue atm is that the destination filesystem is very slow, so just querying it every file's timestamp add a very significant delay. Since I can treat my ~/Music directory as the source of truth, I am considering writing a program that saves the status of the local filesystem at a point in time and then generates a diffing script when comparing it to a new status so I can use my fast, local computer to run the update checks.

Comment on

[SOLVED] Is there a tool to replicate a filesystem?

Reply in thread

I don't save FLAC files, as I don't have that much space (my library is 82GB big with 17629 tracks atm). What I do is that I have a script I wrote to convert all the files to Opus. I still have some old mp3s laying around that I convert or find better sources over time.

As for rsync command, it's taken far longer than I would like to sync all the files. I've gotten an idea about caching the filesystem status for later uses to speed up the process, so I may end up writing a script after all!

Comment on

[SOLVED] Is there a tool to replicate a filesystem?

Reply in thread

It's an Innioasis Y1, which I'm in the process of changing for another player because the filesystem gets stuck buffering many songs (like 1/5 or even more).

We don't have thrift stores here, so I get my recommendations from friends! Algorithmic exploration is one thing I do miss from YouTube. Even though it was still on the safe side it got me to find many great albums. Nowadays I browse wikipedia pages for genres I'm interested in, the /mu/ essential charts (fuck 4chan but wow what a great resource) and conversations with friends and fedi <3

You reached the end