milon

joined 2 years ago
[–] milon@lemm.ee 2 points 1 week ago (16 children)

I have two entries each with a different BaseCommit. One has dnf-automatic, libreoffice, vpn app. The other has the same three plus rpmfusion-free-release and rpmfusion-nonfree-release.

I just recently installed the rpmfusion packages but I didn't know what I was doing. Just found something online suggesting an alternative update method for Silverblue.

[–] milon@lemm.ee 3 points 1 month ago

Thank you for the thorough explanation. It makes sense to me why I had the error that I did. I'll keep this in mind next time when I consider using a bitwise operator.

[–] milon@lemm.ee 7 points 1 month ago (7 children)

Thank you for the reply. It seems bitwise operators are somewhat of an advanced concept that I may revisit down the road.

[–] milon@lemm.ee 4 points 1 month ago (12 children)

Thanks. I think I understand why I wouldn't want to use it in this case. But what is an example of where I can use it? This makes me think I should avoid using bitwise operators with integers and keep it to strings only, but I know that's not true from what I've learned.

[–] milon@lemm.ee 2 points 1 month ago (1 children)

Thank you. Not sure why in the link the arithmetic in green results in 7.

[–] milon@lemm.ee 2 points 1 month ago* (last edited 1 month ago)

Thank you for breaking it down.

I'm just now sure when it is appropriate to use '|'. If bitwise operators can only be used with integers (and not floats), what's an example where I can use it.

[–] milon@lemm.ee 1 points 1 month ago

Yes I did eventually think of that as well but just wanted to understand why '|' wasn't producing the results I expected.

[–] milon@lemm.ee 1 points 1 month ago (3 children)

I did come across that link but didn't quite understand it. If looking only at 25 | 10, does the code not run as expected because 25 is 5 digits long and 10 is 4 digits long? Is that what's meant by "two equivalent length bit designs"?

Also, I can't tell if 10 | 4 = 7 or 10 | 4 = 14.

[–] milon@lemm.ee 1 points 1 year ago (1 children)

Yes, that helps. Thanks. I see now how n goes from 1 to 2 to 3...etc. Now not so sure how i = 1 when the for loop starts.

[–] milon@lemm.ee 2 points 1 year ago (1 children)

Yes - I finally caught that part about n as it's just moving in reverse so it gets decremented. Now I'm not sure about i. In the debugger when the program gets to the for loop both n and i are equal to 1. The n I understand but i?

[–] milon@lemm.ee 1 points 1 year ago

Gotcha. Thanks for the explanation.

view more: ‹ prev next ›