Viewing profile — szhu
szhu
HN member- Joined
- Mon, Mar 17, 2014, 6:06 PM UTC
- HN karma
- 763
- Public activity
- 159 items
- HN profile
- View on Hacker News ↗
About szhu
Recent public activity
-
comment
Comment #37184389
I think that's actually just an example of either ask culture or guess culture, depending on the context. If the friend should only say yes if they really want to, then that's ask …
- comment
-
comment
Comment #35103701
I admire your dedication! Thank you for sacrificing 38 minutes of screen time for a noble cause.
-
comment
Comment #35098958
Update: I added a new algorithm, and I think it might be impossible to crash the ship now. Let me know if you can still reproduce the bug!
-
comment
Comment #35098946
Actually, I think my new algorithm fixes this -- and without any dedicated "swaying" edge case!
-
comment
Comment #35098896
Update: I improved the algorithm. The autopilot now scores a "perfect landing" almost every single time, it lands very noticeably faster, and the code no longer contains a complica…
-
comment
Comment #35096758
Oh that sounds like fun, I would definitely play that. You should suggest it to the developer who made the game! https://github.com/ehmorris/lunar-lander/issues https://news.ycombi…
-
comment
Comment #35096595
oh no! I'm tried it on Firefox on Mac and it worked fine? https://user-images.githubusercontent.com/1570168/224370129-... https://user-images.githubusercontent.com/1570168/22436993…
-
comment
Comment #35096488
Oh yeah, the author of the game said he made use of a similar tutorial: http://students.cs.ucl.ac.uk/schoolslab/projects/HT5/ from the readme here: https://github.com/ehmorris/luna…
-
comment
Comment #35095930
The art collective MSCHF did something similar and slightly more dystopian: https://childrenscrusade.com/
-
comment
Comment #35095578
Thanks! Yeah it's just (1) rotate to follow the trajectory line and (2) slow down once you get close to the bottom.
-
comment
Comment #35095060
oh yeah definitely. Left as an exercise for the reader?? (accepting PRs!)
-
comment
Comment #35094784
That's a ceiling for the speed the autopilot is okay with letting the lander descend. There is no ceiling to how much hard it will try to "apply the brakes". I agree that the targe…
-
comment
Comment #35091949
I really wanted to! But unfortunately none of the lander's stats are exposed as global variables, so the only way I could make the autopilot was by modifying the existing code. (My…
-
story
Show HN: I built an autopilot for the lunar lander game
I got pretty good at (and very addicted to) the lunar lander game from a few days ago... so I decided to make an autopilot for the lander based on what I felt like was the best str…
-
comment
Comment #33002238
That doesn't work well, a lot of news websites and React-powered blogs need that initial load or else the page is all blank!
-
comment
Comment #32999284
Similar thing I made recently, but as a Chrome extension: https://github.com/szhu/pagefreeze It does the same thing, and in addition also prevents any async JS from running. It als…
-
comment
Comment #32707833
This is how VC works, right?
-
comment
Comment #29659652
This thread has a lot of people arguing for the live visuals use case over protecting privacy or vice versa. Not only are they both important, but I think we can actually have both…
-
comment
Comment #28004613
You can pay $20 to remove it, right? A $20 Kindle is still a pretty good deal.
-
comment
Comment #27451272
Rearranging displays to match their physical placement is incredibly annoying. I'm so happy Apple finally decided to innovate here.
-
comment
Comment #27349243
This used to be the default option! I still remember the WWDC keynote where the feature (called Resume) was introduced. Having it on by default made for a really cool demo, where a…
-
comment
Comment #27320731
Do you care how your face looks when you go out? Why do you care, if you're not looking at it?
-
comment
Comment #27292691
Your carpet cannot negotiate a high power, but two devices might negotiate a high power while not being aware that that the cable has a cut in it and is in direct contact with the …
-
comment
Comment #27267666
It still works in Big Sur! Just hover over the window title and the icon (called the "document proxy icon") will appear. I think it's fine that they hid it, since even before, the …