Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
szhu
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
szhu
3y ago
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 culture. If the friend should feel obligated to sa
2.
▲
by
szhu
4y ago
I admire your dedication! Thank you for sacrificing 38 minutes of screen time for a noble cause.
3.
▲
by
szhu
4y ago
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!
4.
▲
by
szhu
4y ago
Actually, I think my new algorithm fixes this -- and without any dedicated "swaying" edge case!
5.
▲
by
szhu
4y ago
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 complicated, trial-by-error formula! I got my first 103+ p
6.
▲
by
szhu
4y ago
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.ycombinator.com/item?id
7.
▲
by
szhu
4y ago
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/224369935-...
8.
▲
by
szhu
4y ago
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/lunar-lande
9.
▲
by
szhu
4y ago
The art collective MSCHF did something similar and slightly more dystopian: https://childrenscrusade.com/
10.
▲
by
szhu
4y ago
Thanks! Yeah it's just (1) rotate to follow the trajectory line and (2) slow down once you get close to the bottom.
11.
▲
by
szhu
4y ago
oh yeah definitely. Left as an exercise for the reader?? (accepting PRs!)
12.
▲
by
szhu
4y ago
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 target velocity calculation is off though. I was e
13.
▲
by
szhu
4y ago
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 commits are actually broken down exactly like this: a
14.
▲
Show HN: I built an autopilot for the lunar lander game
(szhu.github.io)
277 points
by
szhu
4y ago
|
69 comments
15.
▲
by
szhu
4y ago
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!
16.
▲
by
szhu
4y ago
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 also can be easily toggled per-site; just
17.
▲
by
szhu
4y ago
This is how VC works, right?
18.
▲
by
szhu
5y ago
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. To easily solve both the privacy and the live visuals issu
19.
▲
by
szhu
5y ago
You can pay $20 to remove it, right? A $20 Kindle is still a pretty good deal.
20.
▲
by
szhu
5y ago
Rearranging displays to match their physical placement is incredibly annoying. I'm so happy Apple finally decided to innovate here.
21.
▲
by
szhu
5y ago
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 all the windows were restored after a restart: https:/&
22.
▲
by
szhu
5y ago
Do you care how your face looks when you go out? Why do you care, if you're not looking at it?
23.
▲
by
szhu
5y ago
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 carpet.
24.
▲
by
szhu
5y ago
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 things you can do with it (dragging, cmd/
25.
▲
by
szhu
5y ago
I think that if you get downvoted, it might be because it's not related to the parent comment (which is only talking about the unicode angle). You should make this a top-level comment!
26.
▲
by
szhu
5y ago
That's true, and because of that reason I am wondering whether it's possible to make people pay for having their issues addressed rather than resolved. The triaging/addressing process is where many people feel like open-sourc
27.
▲
by
szhu
5y ago
This just gave me an idea: Would it be feasible for open source projects to charge money per support request addressed?
28.
▲
by
szhu
5y ago
I love reading older material like this for two reasons: (1) Since people were less familiar with computers back then, the way that things (like the cursor and drag-and-drop) are explained in this guides tends to be more explicit. Being re-
29.
▲
by
szhu
5y ago
You could require a login after someone has added at least 5 objects and/or spent at least 5 minutes making edits. This makes sure that if data is lost, it's nothing that can't be easily recreated. After at least 30 seconds o
30.
▲
by
szhu
5y ago
The new Arduino IDE is based on Eclipse Theia, which I think is a fork of VSCode. It won't be hard for someone who starts learning with the Arduino IDE to switch to VSCode later. https://theia-ide.org/
More ›