I am pleased to announce that the recent TLS certificate problems and outages to jml.io have been fully resolved.
Here are some notes on what happened and what I did about it.
jml.io is a statically generated blog that’s hosted on AWS. The HTML pages are …
There’s a joke about programmers that’s been doing the rounds for the last couple of years:
We do these things not because they are easy, but because we thought they would be easy.
This is about how I became the butt of a tired, old joke.
My friend …more ...
Almost immediately after making it, I wished I had something for building command-line tools quickly. I know stack comes with a heap of them, but:
If you want to write a web API in Haskell, then you should start by using my new cookiecutter template at https://github.com/jml/servant-template. It’ll get you a production-ready web service in 5 minutes or less.
Whenever you start any new web service and you actually care …more ...
Many people are quite comfortable writing ordinary unit tests, but feel a bit confused when they start with property-based testing. This post shows how two ordinary programmers started with normal Python unit tests and nudged them incrementally toward property-based tests, gaining many advantages on the way.
I used to …more ...
Here’s a quick reference for getting set up to debug Python with
at Debian and Ubuntu users.
Although I’d love to make this a full-fledged write up, it’s going to have to be a note to my future self for now.
It assumes you have …more ...
I really should be over this by now.
Here’s how you test exceptions in Python 2.7 and later:
with self.assertRaises(SomeException) as cm: do_something() the_exception = cm.exception self.assertEqual(the_exception.error_code, 3)
(as recommended in the unittest documentation)
Here’s how you test exceptions in earlier Pythons …more ...