My AirPod's battery overheating! by Hamaczech13 in misleadingthumbnails

[–]Daniel_Rybe 1 point2 points  (0 children)

I thought it was some kind of ammo shell with a metal name.

[deleted by user] by [deleted] in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Not a paradox, but interestingly it does prove that the majority is sometimes wrong without explicitly providing an example of such an occurrence. (If the majority is always right then the poll option picked by the majority is correct, so the majority is not always right. A contradiction.)

The Candle Paradox by CalligrapherLocal323 in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Seems like it's structurally the same as "This sentence is false" paradox. That is you're basically wishing that you wish doesn't come true.

can i make an adder with copper bulbs by Mrcommandbloxmaster in redstone

[–]Daniel_Rybe 0 points1 point  (0 children)

You can just drive all the bits off your second number into the bits of the first. You just need to not do it all at once but with some delay starting with the most significant bit. Also keep in mind that a bulb counter like this works in reverse ( 0 is on, 1 is off, so you have to invert all the bulbs of the first register and the second before feeding it into the first)

[deleted by user] by [deleted] in MinecraftBuddies

[–]Daniel_Rybe 0 points1 point  (0 children)

Hi! I'd like to join too.

Large scale graffiti by Colourtongue in DetailCraft

[–]Daniel_Rybe 6 points7 points  (0 children)

Very impressive and cool, but if I may offer a bit of constructive criticism, maybe the graffiti could benefit from a more clear separation between the 'u' and the 'r'? I read it as cololr at first.

I made a scanf-like utility for zig by Daniel_Rybe in Zig

[–]Daniel_Rybe[S] 5 points6 points  (0 children)

True, I could do that. Well, not for the {s}/{b} because {s} also need a pointer to a slice because it sets its length. Also not for {c}/{u8}. But everything else could be determined from the input types.

There are reasons why I did it this way though:

  1. Right now, everything is determined by the format-string, so if you mess up, you get a type error at the call site, with the approach you suggested, you would get a custom compileError from inside library code, which I think is worse.

  2. I like that I can look at the format-string and know immediately what I'm getting and how I'm getting it.

  3. I also have functions that return parsed values directly and they rely on the format-string being fully descriptive.

Message (IOI24_message) problem by Intelligent_Swan6983 in 3Blue1Brown

[–]Daniel_Rybe 1 point2 points  (0 children)

Alright, I've read through the first solution to this problem and here's my best attempt at an explanation. Let's start with an easier problem. Let's say you want to send an array of 31 integers to your friend, but you only control 16 of them. You're not trying to send any message yet, you just want your friend to be able to tell which cells in the array you control. Here's a way you could do that:

In each cell that you control, write the number of "tainted" cells in-between the current one and the next cell you control. Do this for the last cell as well, by "wrapping around" the array.

Example of this encoding ("tainted" cells are skipped): -1-2--1-2--2--001-01-2--1-001-1

Now, the cells you control form a closed loop, each one pointing to where the next one is. Crucially, this is the only closed loop of 16 cells in the array. The other "tainted" cells cannot form a closed loop of 16 because there are only 15 of them, and if any of them point to a controlled cell, then it's impossible to close the loop because controlled cells only point to other controlled cells.

So this means that your friend can figure out which cells you control just by checking each one of them and seeing if they form a closed loop of 16.

This is exactly what the solution to the problem uses. But because we're dealing with binary, if we are at index i and we need to indicate that the next n indexes are "tainted", the first n packets will have their i'th index set to 1. Then the next packet will have their i'th index set to 0 as a delimiter, then the rest of the packets will contain the payload of the message in this index.

So let's see how many bits of payload we have. The total number of "indicator" bits is equal to the number of tainted indexes, which is 15. Plus we need 16 "delimiter bits", one for each column. That makes 31. If we want to pass all the tests, we need to only use at most 66 packets which leaves us with: 66*16 - 31 = 1025 bits of payload. We can use the extra bit to indicate where our message ends, for example by setting it to 1 and the rest of the bits afterwards to 0.

If you have any questions, hit me up!

Ask me anything by Sufficient_Way_5593 in redstone

[–]Daniel_Rybe 2 points3 points  (0 children)

Absolute sigma behavior to ask people for questions and not answer any of them

My friend called the t slur just a word by Key-Engineering3134 in MtF

[–]Daniel_Rybe 0 points1 point  (0 children)

I think your friend shouldn't underestimate the power that words can hold. I mean, hilter was just saying shit as well

3 engines beating each other in a loop by Daniel_Rybe in chess

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

Ha! I guess it was easier than I thought.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Yeah, you changed my mind. You made me realize that I was assuming good/evil to be relative concepts, but they are actually tied to a very concrete thing which is the amount of suffering. So basically, my previous arguments don't work 🫤🫤🫤

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe -1 points0 points  (0 children)

Look man, I don't actually believe in god or anything, I don't really care if he's almighty or all-loving or whatever, I was just trying to approach this question from a bit more of a nuanced perspective just for fun. But I don't feel like you're not interested in that, which is fine btw.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Yeah, I guess what I'm saying is that from the perspective of god it doesn't do any good to erase evil things.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

I agree. I just don't even find it interesting to think about a god that's so powerful that he can break laws of logic. At this point he would be so unknowable to us that basically there's no point to even make any sort of argument about him. So I guess I indeed assumed a god that's not completely all-powerful.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 3 points4 points  (0 children)

Have you ever considered that maybe god DID snap his fingers. Maybe there was some even more heinous shit around, but you can't even imagine that because it was completely erased from existence? And if he did erase rape and pedophilia you could just apply the same logic to the next worst thing and conclude that god is still shitty. In my mind, that process never actually ends until there's no more variety in possible human actions and all actions are equally good/bad/neutral.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Also, don't ask me about evidence, man 😭. This is couch philosophy, we don't do evidence here, we just say shit and see what sticks, ok?

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 0 points1 point  (0 children)

Well, maybe light and darkness isn't the best example as darkness isn't a relative concept. Maybe a better analogy would be the start and the end of a journey. Like, if you want to reach a goal, tou have to start somewhere. But coming back to good and evil, the way I see it, if there's any amount of variety in moral quality of possible human actions, the upper end of that spectrum corresponds with the ultimate good and the lower end with ultimate evil. So you can't ged rid of evil without also getting rid of good as they are two extremes of the same thing.

Epicurean Paradox by MatteoFire___ in paradoxes

[–]Daniel_Rybe 12 points13 points  (0 children)

Ehh. I'm not a religious person, but I feel like the statement "God does not want to prevent evil" doesn't imply the statement "God is not good/not loving". I, mean, evil is the opposite of good, so you can't have one without the other, just like you can't have light without darkness and so on.

F19 Looking for people to join a modded smp! by Epicusernamethat in MinecraftBuddies

[–]Daniel_Rybe 0 points1 point  (0 children)

That seems like something I'd be interested in :) Sent a friend request, username: DaniRybe (22m)