Niet dat ik weet of Stoner lezen nou per se tot de gewenste output leidt, maar hé, ik lees weer literatuur.
Alles
Blocked? Problems of output are often problems of input. http://austinkleon.com/2015/11/12/problems-of-output-are-problems-of-input/ https://t.co/Q54HGqwF6l
Day 25: 'better' RSS feed
A blast from the past: I have an RSS feed and it's available at seblog.nl/feed.rss. (I also have seblog.nl/feed, which is actually the h-feed version of it.) I made the RSS feed a while ago for Martijn, who I believe is my only subscriber at the moment.
Back when I made the feed, I didn't want to put in much work for it, because I already have a couple of rich h-feeds. So I made it so that "if a post has a title, give that, else, just call it 'post'" and "if a post has content, give that, else, just say 'A post on Seblog'". Very lazy. It turns out I actually have a lot of posts that have neither a title nor content. Things like my likes, reads and bookmarks all have no title nor content, because it is stored in different fields. So my RSS feed ends up being filled with contentless posts.
I am still lazy about my RSS feed, but I improved it a bit. I now just call the same snippet that produces the HTML for the frontpage for the content of the feed item. This means the whole post is in the RSS feed. Probably not the best way to do it, but hey, who uses RSS nowadays anyway?
@martijn, let me know how it looks!
Kabinet ontraadt haast alle amendementen.
Wel is nu duidelijk dat wel degelijk sprake is van "stelselmatig op grote schaal" verzamelen. #wiv
Day 24: media-endpoint at HWC
Today I was at Homebrew Website Club in Utrecht. We had some talks, showed some stuff, and then coded for a while. (You might say that we switched the quiet writing hour and the talks around, but we were not silent all the time.) Jesse made a first version of a blog section on his site and Martijn did some tweaking on his habit tracker.
I made it easy for myself: I just copy+pasted my existing [media endpoint](https://www.w3.org/TR/micropub/#media-endpoint) into my Indieweb Toolkit. Then I spent the rest of the time tweaking, cleaning and improving my code. The whole endpoint is now contained in a single static method, which takes a string with the path to the upload folder, and a string with the public URL of that same folder. It validates access tokens, saves media with a sanitised filename and an unguessable prefix, like vx5dgk-image.jpg
, and then returns the URL of the uploaded file in a Location
header.
So, this could be your media-endpoint.php
:
<?php
require __DIR__ . DIRECTORY_SEPARATOR . 'toolkit' . DIRECTORY_SEPARATOR . 'bootstrap.php';
require __DIR__ . DS . 'indieweb-toolkit' . DS . 'bootstrap.php';
endpoint::media(__DIR__ . DS . 'media', 'http://indieweb-toolkit.dev/media');
Still haven't brought the IndieAuth
class over to the toolkit though, so it's still not working. But it's coming!
Alleen jammer dat nog altijd elke muisklik naar Google wordt verzonden :) Dat sneeuwt nu een beetje onder.
Mijn schermloze dag is nu officieel mislukt. Ik ging van 'geen scherm' naar 'alleen telefoon', maar toen zat er een bug in de code die moet bijhouden hoe veel ik gelezen heb vandaag, dus nu zit ik toch weer achter mijn laptop, in de code, met koffie, IndieWeb-dingen te doen.
Whoa! How nice :)
Please note that at the moment of writing this, my blogpost does not describe what my Micropub plugin does. They are separate things now. But I do want to update the plugin, using the code from my toolkit, so that they become the same thing again.
Thanks for the mention though!
Day 23: automatic retweet
Okay, I admit: I already did this yesterday, as you can see from my previous retweet. But I wanted one day off. One day without screens. So that’s today.
Earlier on I made my site like tweets when I post a like to a tweet on my site. This means I get just feed my Micropub endpoint an URL as a like-of
, and don’t think about it anymore. Now I added reposts to this too, so I can just paste a link in Quill and it’s ok.
I also seemed to miss pictures in reposts since I redid them, so I fixed that as well. It’s the little things. See you tomorrow!
De voorlopige uitslag is dat we voorlopig even beter geen Stemwijzer moeten invullen. https://www.invetek.nl/de-voorlopige-uitslag-van-de-stemwijzer/
Goed, elke klik in de #stemwijzer wordt naar Google Ads gestuurd. Daar kun je iets of niets van vinden. Het gebeurt in ieder geval.