Ephes Blog

Miscellaneous things. Not sure what to put here, yet.

-

PyCon 2017

- Jochen
PyCon 2017 is over now and I liked it a lot. It was a really well organized event and the talks were great. I already knew the conference location because I lived only a few hundred meters away for a long time. So it didn't came as a surprise for me that it was awesome.



I don't attend conferences like this because of the talks, I have to say. But I always get a strange boost in motivation from events like this - I don't now why, but I suspect it has something to do with talking to a lot of likeminded people. Talking to my former collegues from billiger.de for example was a lot of fun. They did a lot of cool things since I moved on like having a new search service in pure python or migrating from relational databases to redis and now to elasticsearch for document storage.



At the social event we had some concerns that the beer supply could become a problem, since nearly all of the attendees showed up. Turned out that our worries were exaggerated.



Since I know Karlsruhe well, I did also met nice people that didn't have anything to do with pycon.



There was a funny installation at one of the exhibitions at the zkm.

More

On my way to pycon

- Jochen
Decided to join this years pycon/pydata conference in Karlsruhe. Since this was my home town for a long time, I'm looking forward to meet  friends and family. The conference schedule is filled with data science talks, so it should be quite interessting for me :).

The train is quite empty, so maybe I'll be able to work on some blog stuff til Karlsruhe:
More

Added rudimentary gallery support

- Jochen

Thought it would be nice to have multiple images in an entry. But then they should not all be shown in full size. So I misused the modal component of bootstrap for that. Still have to figure out how to make landscape images wider and portrait pictures smaller, but it's a start.

Here are three images from the pyddf meeting of last week:

More

Added pagination

- Jochen

Implementing 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:

<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>
More

Videos

- Jochen

Now I added very basic video support:

More