Live data from Hacker News

Show HN: HN Avatars in 357 bytes

news.ycombinator.com

31–40 of 536 posts

Re: Show HN: HN Avatars in 357 bytes

#32

Earlier quoted context omitted.

Violentmonkey is a nice open source alternative to Greasemonkey.

Your wording implies Greasemonkey is not open source. I don’t know if that was your intention or not, but Greasemonkey is open source.

They're probably confusing it with Tampermonkey, which isn't open source.

Re: Show HN: HN Avatars in 357 bytes

#35
post #33

Ive been a dev for over 2 decades but I still cant grok bitwise operators - anyone have a reference that may help with that?

I've found the python docs[0] to be quite helpful for this topic. [0]: https://wiki.python.org/moin/BitwiseOperators

Thanks, but its still a bit confusing for me. Im looking for a really dumbed down kind of approach: input, operator, visual explanation of what its doing, output. Im a really bad learner, and didnt study computer science or anything. Ive never had a reason to touch binary, so find these operators unintuitive.

Re: Show HN: HN Avatars in 357 bytes

#36
post #16

I wonder how easily you could have slipped in an obfuscated cookie stealer

HN sets one cookie and that is "httpOnly" and "secure", so it can't be read from JavaScript. You can test this yourself by typing document.cookie into your console, it should return an empty string.

Re: Show HN: HN Avatars in 357 bytes

#37
post #33

Earlier quoted context omitted.

I've found the python docs[0] to be quite helpful for this topic. [0]: https://wiki.python.org/moin/BitwiseOperators

Thanks, but its still a bit confusing for me. Im looking for a really dumbed down kind of approach: input, operator, visual explanation of what its doing, output. Im a really bad learner, and didnt study computer science or anything. Ive never had a reason to touch binary, so find these operators unintuitive.

If you don't know about the binary representation, you won't be able to learn binary operators. If you do, they're fairly straightforward. I'd suggest learning about binary first.

Re: Show HN: HN Avatars in 357 bytes

#39
post #33

Earlier quoted context omitted.

I've found the python docs[0] to be quite helpful for this topic. [0]: https://wiki.python.org/moin/BitwiseOperators

Thanks, but its still a bit confusing for me. Im looking for a really dumbed down kind of approach: input, operator, visual explanation of what its doing, output. Im a really bad learner, and didnt study computer science or anything. Ive never had a reason to touch binary, so find these operators unintuitive.

I think before you can understand binary operators, you’ll need to understand binary itself and how to convert it to and from decimal. This crash course computer science video may help: https://youtu.be/1GSjbWt0c9M

In fact the whole course might be useful!

Re: Show HN: HN Avatars in 357 bytes

#40
post #33

Earlier quoted context omitted.

I've found the python docs[0] to be quite helpful for this topic. [0]: https://wiki.python.org/moin/BitwiseOperators

Thanks, but its still a bit confusing for me. Im looking for a really dumbed down kind of approach: input, operator, visual explanation of what its doing, output. Im a really bad learner, and didnt study computer science or anything. Ive never had a reason to touch binary, so find these operators unintuitive.

the wiki is a visual representation. The representation is 0s and 1s.

The use case for bitwise operations is to control the value of 1 bit.

Consider if you have a 0000 1000 value. It's mapped to hardware output so the 4th LED is on. Now you want to turn the 5th on, and the 4th off. You would use a left shift so the output becomes 0001 0000.

That's all there is to it. Bitwise operators operate on bits, not bytes. Because computers operate on bytes, and you can't address a bit - you have to modify bytes to accomplish your goal.

Post reply on HN