I will like to combine my old and new websites into one page. The old site is statically generated. I have been writing there since 2004. So there is quite a bit of history there. I would need to convert all that to the new backend, so I fill in the gap from 2004 to now.
I have heard of people also convert Facebook and Twitter posts into their new websites. Perhaps this is something that I should also do, especially since Facebook and Twitter, may one day stop working.
In the current situation I have some more posts and Facebook, Twitter and perhaps Github. All of it could be transported here (somehow).
What do I still need:
- Public/private settings for posts
- Photo album style pages
- A page where I can list all the companies that are getting some of my information 😉
Tile38
I integrated Tile38 a bit in my weblog. It can post webhooks when a geoposition enters or exits a geofence. I'm still testing with this but get some results.
It works with the positions that my Android app posts to the weblog. This all works together with a bit of http, json and redis.
Microsub changes
Yesterday I made an improvement to support paging with ZADD and ZRANGEBYSCORE. This allows me to get range of entries based in the timestamp of the published date (converted to Unix timestamp). The problem is that the unread entries are still available in the list. It's hard to find the first unread entry in the list. That entry is the starting point of the list of entries for the first page of items.
I implemented the solution like this: keep two lists. One with all unread items and one with the read items. In principle an entry moves from one list to the other in a linear fashion, because that's the reading order. So now when there is no after or before argument the server can send the first twenty items of the list. The first and last item contain the next before and after values. Nice thing is that I now get unread count for free with ZCARD.