Websites and blogs of people that attended a Homebrew Website Club Düsseldorf.
My First Official 10k Run
My First Official 10k Run
🔗 May 2023 – Daniel Pietzsch’s Photo Journal
There’s a new photo journal entry up!
The circus came to town. Frankeninferno. Camping in Perlenau. And a visit to the Neaderthal museum.
Weeknotes 2024-07-29
First post
Getting images to work
Caddy vs. nginx
Caddy vs. nginx
, JochenUsually I use nginx for static files, ssl termination and as a reverse proxy before my application servers. The django cookiecutter template came with a new webserver named caddy. It's written in go and https per default. Usually you have to fiddle around with certificates and a more or less complicated nginx config, but with caddy it was surprisingly easy. The certificate came from letsencrypt and it got installed automatically. After that my site got an A on the ssllabs ssl test page without any further tweaking. Caddy might be a bit slower than nginx, but it's probably fast enough for most people and solves an annoying problem. This is really cool.
Responsive images
RSS Feeds
Videos
Added pagination
Added pagination
, JochenImplementing pagination was also quite easy. Since I'm using class based views, I only had to add the attribute paginated_by = 5 to my view class and this snippet to my blogpost_list.html template:
{% verbatim %}<nav aria-label="pagination"> <ul class="pagination"> {% if page_obj.has_previous %} <li class="page-item"><a class="page-link" href="?page={{ page_obj.previous_page_number }}">previous</a><li> {% endif %} {% if page_obj.has_next %} <li class="page-item"><a class="page-link" href="?page={{ page_obj.next_page_number }}">next</a></li> {% endif %} </ul> </nav>
Added rudimentary gallery support
On my way to pycon
PyCon 2017
Using a CDN
Using a CDN
, Jochen Today I switched from serving media files directly from s3 to cloudfront. The main reason is that s3 only supports http/1.1 while cloudfront also does http/2 which is much faster because images etc. could be downloaded in parallel.Tartlets
Writing my own blog engine: The database model
Scatter plots with density quartiles with python
Scatter plots with density quartiles with python
, Jochen The other day I saw an interesting blog post about scatter plots with density quartiles using r.I liked the idea, but wondered whether a simple kernel density plot would have the same effect. And if not, maybe how difficult it will be to adapt the approach to python. So I created this little jupyter notebook: