mivade

Joined 10 years ago

Karma
55
Submissions
22
Member since
Jun 3
[ my public key: https://keybase.io/mivade; my proof: https://keybase.io/mivade/sigs/pPb8ollnfz-gzxtgF9SPpapCzdb66qbVPyoigM_1DiY ]
View on Hacker News

Recent submissions

Comment · 3 years ago
Comment · 4 years ago
Correct. Keys must be immutable and hashable.
Comment · 4 years ago
Comment · 4 years ago
Makes me think of Fakeblock.
Comment · 5 years ago
The bang syntax works though: `!wv malta` sends me to the Wikivoyage page on Malta.
Comment · 5 years ago
Comment · 5 years ago
The difference is simple: NBC was (and still is) free to watch if you have a television and an antenna.
Comment · 5 years ago
My understanding was that if you write a regular function (`def` rather than `async def`) then FastAPI (or really Starlette which it uses under the hood) executes the function in a thread pool so that no blocking of the main event loop should occur.
Comment · 6 years ago
They compare PyPy and CPython in their benchmarks.
Comment · 9 years ago
If for no other reason, pytest requires a lot less boilerplate.

Pytest fixtures are also quite a bit more flexible than unittest's setUp and tearDown methods, although they take a little while to really understand (at least they did for me) since they use some magic.

Comment · 9 years ago
> think of all the years of unnecessary education they'd pile on to dentistry and the bottle necks they would put up to raise the wages to MD level.

That seems more an indictment of the medical education system than the insurance system. There are already parallel medical education systems in the US (MD vs. DO, although there is little practical difference). Seeing either type of physician is treated equally by health insurance. Why can't health insurance also cover DDS visits as well?

Comment · 9 years ago
Matplotlib's main API is pretty terrible. But it's just fine for the simple plots that scientists and engineers are often needing (e.g., just plot y vs. x). It's also pretty straightforward to get publication-quality plots. Bokeh can handle simple plotting and more complex visualizations, but it is aimed mostly at interactive visualizations rather than plotting for publication. For now, matplolib is the only real option for that in the Python world.

Matplotlib inherits most of its baggage from originally being meant to mimic Matlab plotting that many were then familiar with. As an aside, I find the pandas interface to plotting with matplotlib to generally be much easier to work with.

Comment · 9 years ago
This looks pretty cool.
Comment · 9 years ago
> Don't the screen developers ever need to go to the beginning of a line in the shell or editor?

C-a a. Using emacs with screen for many years, this is almost automatic for me.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton