groctel

u/groctel@lemmy.world
0 posts · 8 comments

Recent posts

No posts.

Recent comments

on proportional reaction · c/lemmyshitpost · 7 pts · 327d

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!

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!

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.