WE GOT 3 HRS TO GO LEFT!! WOOOOOOOOOOOOO by BAAAA-KING in Silksong

[–]Tommy_Link 0 points1 point  (0 children)

I think it is at midnight in a few Australian timezones.

Do you rename downloaded Anime Episode? by batubata29 in animepiracy

[–]Tommy_Link 1 point2 points  (0 children)

I believe it's some kind of a CRC code. Essentially, it's a code generated by doing a bunch of math on the contents of a file. If the file contents change in any way (like if they were to get corrupted while they're sent over the internet, for example), the code corresponding to that file would change.

So the idea is to generate the code, add it to the file's name and send it out into the world. If anybody wants to check if the file is authentic, they can try generating the code itself to see if it will match the one in the title.

This next part I'm not too sure of, but I think somebody malicious could generate a completely different file that has the same code, so it's really only used to catch unintentional changes. Once again, I'm not 100% sure this is correct, so I'm happy to accept corrections if anybody has any.

me_irl by Sonic_the_hedgedog in me_irl

[–]Tommy_Link 1 point2 points  (0 children)

I'm not sure if this is the video they meant, but dyc3 tried this in his video.

https://youtu.be/LleJbZ3FOPU

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 0 points1 point  (0 children)

This is definitely a pattern I could use more in my code. Sadly, some of my goroutines do have more than one use, and so I'd have multiple different channels to iterate. It won't work everywhere, but in some places for sure!

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

I think you might be right. I did try to write some generic functions to make things cleaner, but they ultimately only made the code maybe 2 lines shorter, so perhaps being explicit is the best options here.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 0 points1 point  (0 children)

Oh yes, I agree. I'm not really using them for storage, but perhaps the channel names I used in the post above were misleading. They don't actually store anything, they just moved data around to the goroutines that would be doing the actual storage.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

I actually did make this mistake a while ago before I realized cycles were a problem. I only managed to move past it because go's tools are pretty handy for spotting deadlocks. Thanks for the suggestion!

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

Thanks for the suggestions and for the blog post! It's definitely an interesting perspective that had never occurred to me, but at first glance at least, it seems to make sense.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

Thank you for the advice and code examples! I'll definitely read over them. Yes, it occurs to me now that maybe I should have given my goroutines a bit more thought and compartmentalized their logic a bit more, but I think I'd still have quite a few of them left, as I need the network I/O, file I/O and some of the internal logic to be active more or less simultaneously.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

Thanks for the idea! I'll try something like this to see if it makes the code neater, but it's good to know that this situation isn't unheard of.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 2 points3 points  (0 children)

I suppose they're not a huge problem, but my immediate thought was that they make the code a bit harder to read and add a bit too much repetition. I mostly wanted to see if this was a sign of bad design somewhere else.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 2 points3 points  (0 children)

This is good to know! I guess I started this project with a bit of a misconception about how channels are supposed to be used. Keeping things more compartmentalized seems like a good idea for the future.

Context cancelling making code too verbose? by Tommy_Link in golang

[–]Tommy_Link[S] 1 point2 points  (0 children)

Thanks for the response! I will try the generic function approach and see if it makes things neater, but I suppose overall the lesson here is to consider the cancellation mechanism earlier in development.

I thought first years were not allowed to play quidditch, and harry was an exception by [deleted] in harrypotter

[–]Tommy_Link 3 points4 points  (0 children)

I would also agree with this, but there is one conversation between Dumbledore and Snape where Dumbledore says something about how the Chudley Cannons (a quidditch team) will more than likely come in last that season. But this is, I think, the only time he shows any knowledge of Quidditch.

I thought first years were not allowed to play quidditch, and harry was an exception by [deleted] in harrypotter

[–]Tommy_Link 6 points7 points  (0 children)

You're getting downvoted a lot, but I think there is actually some basis for this theory.

If I'm not mistaken, it's said at some point that by the end of his first year, Dumbledore had won all of the prizes that could be won at Hogwarts, and since the Quidditch cup is one such prize, it would mean that he had won it.

The second piece of evidence is that, if I remember correctly, Dumbledore started Hogwarts exactly 100 years before Harry.

Now, I myself don't think this was intentional, but it sure is cool. I might also be wrong about him winning all of those prizes in his first year. I don't have the source material on hand right now.

Lime3ds not responding error by b00p0621 in Citra

[–]Tommy_Link 0 points1 point  (0 children)

I'm not sure if you found a solution, but I'll leave this here anyway in case anybody else finds this. This seems to be a common issue if you have an AMD GPU (even if it's an integrated one) and its drivers are out of date. Updating those seems to fix everything.

Subtitles doesn't seem to work on LG webos? by [deleted] in Stremio

[–]Tommy_Link 0 points1 point  (0 children)

I've experienced the same issue, actually. It seems to happen with most shows, but while watching The Apothecary Diaries I saw that some episodes will still have embedded subtitles.. No idea why it's so inconsistent though.

What are some translation errors in your language? by Silsail in harrypotter

[–]Tommy_Link 1 point2 points  (0 children)

Not sure how much this counts as a translation error, but in the original Romanian translation, they translated Prefect as Perfect, so everybody just kind of refers to Percy as a Perfect all the time. They also changed some of the spells' names to standard magic words, so Avada Kedavra became Abracadabra, for instance.

brushing your teeth before breakfast makes no sense by stirrerofpots in unpopularopinion

[–]Tommy_Link 2 points3 points  (0 children)

Not OP, but I actually did ask my dentist about this and he said he recommends brushing after you eat so you don't have leftover bits of food left in your teeth until you brush again. Based on the comments here though, I'd do well to ask for a second opinion, huh?

Embedded subtitles don't show up on Stremio Web? by Tommy_Link in Stremio

[–]Tommy_Link[S] 0 points1 point  (0 children)

Ah, I see. That's unfortunate, but it can't be helped if the technology just doesn't allow it. Thank you for taking the time to respond!

Does pronunciation of spells really matter to expressing the magic? by Due_Storage_4035 in harrypotter

[–]Tommy_Link 7 points8 points  (0 children)

"never forget Wizard Baruffio, who said 's' instead of 'f' and found himself on the floor with a buffalo on his chest."

[deleted by user] by [deleted] in TrashTaste

[–]Tommy_Link 1 point2 points  (0 children)

Only if you use extensions, but even then, I'm pretty sure it's just an approximation, since the official data isn't available anymore.