Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nicolaslem
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
721.
▲
by
nicolaslem
10y ago
Not a definitive answer to the problem but mypy supports a limited sets of common "interfaces", for instance dict-like or list-like. http://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html#st...
722.
▲
by
nicolaslem
10y ago
I often find myself using "except Exception", while I don't like it, I cannot find another way. For instance when making an HTTP request. The requests library can throw thousands of different errors (SSLError, BrokenPipe, soc
723.
▲
by
nicolaslem
10y ago
Type annotations are also helpful without mypy. PyCharm uses them to provide hints and warnings during development. At first I was reluctant of the syntax, after a while I got used to it. Function definitions look a lot like Rust ones and d
724.
▲
by
nicolaslem
10y ago
I believe Lektor does that: https://www.getlektor.com
725.
▲
by
nicolaslem
10y ago
The figures presented here give a general idea but should be taken with care. A lot of these small virtual servers are packed into a single host. The actual performance you get depends a lot on how your neighbors are using the resources the
726.
▲
by
nicolaslem
10y ago
The chapter about Sendmail in Architecture of Open Source Applications[1] gives an explanations as to why it is so convoluted. Sendmail was originally written when TCP/IP and SMTP did not even exist. [1] http://aosabook.org&
727.
▲
by
nicolaslem
10y ago
I'm not sure this solves a real problem developers have. I have never heard from anyone that storing key/values was a pain. A wide range of popular key/value stores exist and are easy enough to manage. Cloud provider also off
728.
▲
by
nicolaslem
10y ago
Django is such an important building block of the web, it completely deserves this tutorial on MDN. As someone who came to Django quite late, I cannot stress enough how coding in Django is refreshing. Yes it's not about microservices n
729.
▲
by
nicolaslem
10y ago
Create a models.py and import there your models from wherever they are. This should do the trick.
730.
▲
by
nicolaslem
10y ago
And you are talking about mostly hosting PHP application. For some stacks these stagnant players do not even exist. The user experience of deploying a Python/Django code to production is so bad in my opinion that I started a shared hos
731.
▲
by
nicolaslem
10y ago
As a happy vimperator user, I was very disappointed when I got to know that the days of this extension are counted because of that. https://addons.mozilla.org/en-US/firefox/addon/vimperator/re...
732.
▲
by
nicolaslem
10y ago
What is the difference between an immutable resource and setting the resource to expire in 10 years? Many websites already do that, they change the URL each time the content changes.
733.
▲
by
nicolaslem
10y ago
Hashicorp Nomad[0] is surprisingly simple yet powerful. It fits quite nicely between Swarm and Kubernetes/Mesos, as this project mentions. I'm not sure that it can run on the Raspberry Pi, but it is definitely worth a try. [0] ht
734.
▲
by
nicolaslem
10y ago
I recently had one month and a half off between jobs. I had many things to do in mind. I started by tech stuff first, and well, tech eats your time. I ended up doing way less than I expected. So my advice: leave behind everything connected
735.
▲
by
nicolaslem
10y ago
This is when Firefox reader mode comes very handy!
736.
▲
by
nicolaslem
10y ago
Same experience on Firefox here: HN zoomed two steps up, linked pages are not zoomed.
737.
▲
Show HN: Sauna – Lightweight daemon that runs and reports health checks
(github.com)
2 points
by
nicolaslem
10y ago
|
0 comments
738.
▲
by
nicolaslem
11y ago
Redis in Pub/Sub is quite lightweight in fact. It's just a TCP connection between your application and the Redis database. Once opened, you can get notifications almost for free. I was thinking on adding a separate HTTP API to con
739.
▲
by
nicolaslem
11y ago
Nicolas from Nucleon here. You are right, I probably shouldn't have put these numbers there as haproxy can be configured way better than it is with its default configuration. I put them because I was impressed that Rust and mio, with l