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

You can directly hash the code using inspect: https://docs.python.org/3/library/inspect.html#inspect.getso...

And do something similar for the arguments (maybe pickling to get a bytes object you can hash without relying on specific types). Using just the hash function could come with footguns for mutable objects


Well, sort of. The original downtime was caused by the reverse proxy dying for no apparent reason. This state could be detected by healthchecks. However the quick solution after the second time the container went away while on holiday was to use ‚restart: unless-stopped‘ and I could see a case where the container was down 90% of the time but just-so-happend to be freshly restarted while the healthchecks were looking.

That’s why I decided to use the docker API’s /events endpoint to get notified about all changes. Using dockers healthcheck features you can even monitor the availability of the http server with this solution as well. I did not find a project that went the same route.

The downside to this approach of course is, that if docker goes down you won’t get notified, also if you just use curl inside the container for healthchecks, you won’t notice external network problems. So something that is hosted on the outside like healthchecks.io is a great addition.


Thanks, appreciate it. It was a fun exercise and if you end up with a tool that you and hopefully others can use even better.


Wow that’s expensive. If you are willing to get away from those highly dynamic providers and commit for a month or a year (which seems reasonable for that sort of thing) I currently rent a VPS at strato [1] with 1.5TB SSD/8 cores&16GB Ram guaranteed for 15€/month inkl an ipv4 and a TLD

[1]: https://www.strato.de/server/linux-vserver/


You can run any command in the shell by prefixing them with ! In the jupyter cell. However I don‘t think jupyter notebooks are super useful for that usecase as you can’t simply double click to open them


You can double click to open them! I have it working on my computer, I’m not exactly sure how I did it but it was something like this: https://stackoverflow.com/a/54489884


Well my dog is called Lizzy. That’s apparently close enough. The first times I freaked out a bit when a voice answered to something I said to my dog when I was alone at home


This is a different scope aimed at hosting a production service.

The Python included http Server is super useful but for completely different use cases.


So you mean feature complete and it only needs updates to fix bugs or security issues? Since it still is maintained (which is what maintenance mode means or not) why would you not include it in a comparison?


I would guess that people see "maintenance mode" and think that means it's pretty much EoL and will no longer receive security patches in the near future.

That is certainly the mental model I have for something in maintenance mode.


To me the whole point of saying "maintenance mode" is to tell people to only expect things like necessary security patches and critical bug fixes instead of new features. If those things aren't happening, then there isn't any maintenance going on.


„Locked device after first unlock“ => the device is locked but was unlocked at least once after boot. I guess this loads some keys from the tpm into ram. Using Face ID for example requires an initial unlock via the users pin


Don‘t know about the US market but in Germany there were many audio books available in Spotify already that you could access via the normal premium subscription. Few days after I read about the launch of purchasable audio books in the US all of those vanished so I canceled my subscription and got Apple Music via Apple one which was a little cheaper for the whole family when adding the extra iCloud storage I needed anyway. Happy with the decision so far. I just had to move all my playlists to Apple Music which was easy due to a random online tool I found


Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: