Hacker News new | past | comments | ask | show | jobs | submit | more szhu's comments login

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 excited that I came up with something reasonably theoretically correct for correcting rotation... and for figuring out when to fire the engines I just gave up and eyeballed it :)


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 commit to expose the necessary variables globally, and another to actually add the autopilot.)

I would also love to be able to play it in the original game though, so I made a PR! I think it would be cool for it to be able to be activated as an easter egg.

https://github.com/ehmorris/lunar-lander/pull/7


I will take a look!


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 click the extension icon! Unfortunately I didn't have time to put a GIF in the README. OP did a better job of explaining what their project does!

Would love feedback on it + hope it helps someone as well!


You override window.addEventListener? At that point I think you may as well just use nojs


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!


This is how VC works, right?


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 issue, Apple should make it so that the dot is only shown on a display of it is:

- the primary display (the one notifications appear on, since that's where the user typically checks for system status),

- the built-in display, if any,

- the display the cursor is on, or

- the display containing the frontmost window.

These are the only kinds of displays that make sense to have a persistent privacy indicator on. Anyone who's sitting at a computer is looking at at least one of these displays.

The secondary displays that artists use to show fullscreened live visuals always fit none of these criteria.


You can pay $20 to remove it, right? A $20 Kindle is still a pretty good deal.


If you have an ad-supported Kindle and talk to customer support, they will disable the ads for you, for free, no questions asked.


I honestly keep the ads because I hate the non-ad wallpaper. Its so boring and generic. Now, if Kindle had an option to have the wallpaper be the cover of the book you most recently had open, that would be a game changer.



Rearranging displays to match their physical placement is incredibly annoying. I'm so happy Apple finally decided to innovate here.


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://youtu.be/LPMjUtfQPks?t=19m16s

Not only was it on by default, there actually wasn't an easy way to turn it off, leading to tips like this:

https://osxdaily.com/2011/07/18/disable-mac-os-x-lion-resume...

I'm not sure when the option was added or when it stopped being on by default.


Do you care how your face looks when you go out? Why do you care, if you're not looking at it?


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.


Yeah that's the problem. I've had a bent usb c (from a pretty good brand) literally melt into my hands. I'm so glad I was using the phone at the time, I don't know what could've happened if I wasn't there. The dent seemed pretty "small" too, and it was way less damaged than a lot of lightning/micro USB cables I've seen and used in the past.

What I don't understand is how the cable doesn't have a way to detect a short circuit. I'd imagine that a 250 watts capable cable would have more safety features hopefully though.


I don't think the non-USB-c cables have any more safety features to prevent that. I'd be surprised if the USB-C ones do.


The original USB standard was 5V 0.5A, which wasn't going to start any fires.


Oh, I realize that I left out important context. I didn't mean relative to other USB cables, but rather relative to other non-standard laptop power cables. This goal is to replace those high power cables, and those did not have significant safeties against damaged wire.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: