HNHacker News
TopNewBestAskShowJobs

andredurao

2 karma · joined November 21, 2022

submissionscomments
andredurao··on My weird new hobby: Wandering around Tokyo on Google Maps
I also lived there for some time and while walking at night I usually noticed that most neighbourhoods were so much quiet and darker compared from what I was used. About pets and rodents I've never seen a stray dog in Tokyo or other places that I've visited in Japan, but yes I've seen rodents there also. I have a scary memory from the first time that I saw a weasel walking in front of me on a night walk because I was wondering "is that a cat? a dog? what is that?"
andredurao··on Wordgard: In-browser rich-text editor from the creator of ProseMirror
The design and aesthetics of the page are really impressive, but what caught my attention was the "Deluxe API" which was new to me because I hadn't heard of it before.
andredurao··on My Mathematical Regression
That Project Euler problem was my first encounter with memoization. At the time, it felt like a magical solution, so I ended up solving it using the central column of Pascal's triangle, which was easier for me to understand back then.

I also tried a weird idea involving popcount, but it didn't scale. My approach was to represent each possible path with 0s (don't turn) and 1s (turn), testing the same number of 0s and 1s. However, even with popcount running in O(1) with hardware support, the total number of possible paths made the idea impractical :)

andredurao··on CSS Optical Illusions
On #4 (White's Illusion) it looks like for me that the gray bar that is surrounded by black is brighter than the one surrounded by white instead of darker :#
andredurao··on Liquid Glass in the Browser: Refraction with CSS and SVG
I'm not sure about other browsers but using Chrome on linux the magnifying glass demo was weird. Though it looked like some glass distortion I couldn't drag it around vertically :(
andredurao··on Yamanot.es: A music box of train station melodies from the JR Yamanote Line
I wish there was something like this for Tozai line so I could remember the station melodies
andredurao··on Over 100k Infected Repos Found on GitHub
that's funny because Wordpress sites are infected using that kind of code inject