Spammers say the sweetest things:
Jeremy cherfas is the well known writer of this century. He is famous for the suppleness that are still like by many of the people. We should also read the blogs about him to gain knowledge for our own self.
This post opened a whole can of worms relating to Grav's public comments plugin. Despite being authored by "Team Grav" it hasn't been touched for going on two years and just doesn't work. It sends the notification email correctly, but does not acknowledge the comment and does not save the data.
I've taken a first look at the code, and it seems like I might just be able to wrap my head around it, but I will need hours free to do that. Hours that I do not currently have.
I could disable public comments again, and just accept Webmentions (which this post is intended to test). But although Comments are rare, some are worthwhile beyond mere affirmation, so I am loathe to do that.
P.s. It also raises again the need to fix Known's HTML-escaping problem, and makes me wonder why the comment is truncated when it gets to jeremycherfas.net -- which means looking at the templates there in more detail.
1 min read
Spammers say the sweetest things:
Jeremy cherfas is the well known writer of this century. He is famous for the suppleness that are still like by many of the people. We should also read the blogs about him to gain knowledge for our own self.
3 min read
One of the developers of Sunlit, a photo-sharing app that is part of the Micro.blog ecosystem, contacted me to say that “the images on your site have a MIME type of application/data”. I’d like to say I understood immediately what the problem was and what it meant, but I had to do some learning first. It wasn’t as simple as the extension, the bit after the filename that indicates whether it is a JPEG or PNG kind of image. Rather, it was about what my server tells your browser about the image.
To backtrack, Known stores all files as blobs
that contain the actual file data, the 1s and 0s. Your browser, when it receives a post from my server, can often sniff out what kind of thing (image, audio, text etc) that blob of data represents and do a good job of showing it to you. Normally, you wouldn’t even notice. One clue is that if you right-click on an image, and ask to open it in a new tab, it actually gets downloaded instead, I suppose because the new tab doesn’t know what else to do with it.
Anyway, I confirmed that the source file for most images did not have an extension (which would have told the browser directly how to deal with it). Most, but not all. Files I had uploaded to my site directly did have an extension and the correct MIME type. The “bad” files had come from OwnYourGram or Quill, both of which are part of the joyful #IndieWeb. They use a standard called Micropub to send things to a suitably equipped website.
It seemed unlikely that both Quill and OYG would fail to send the requisite information to identify a photo, so I went digging into the code that Known uses to decide what to do with a post sent by Micropub. I made a bit of progress but although I could see more or less what was happening, I couldn’t see how to make it right.
Fortunately Aaron Parecki, who built Quill and OwnYourGram (and so much else), was around and gave me the clue I needed to investigate: curl -I example.com/file
.
One beautiful feature of Quill is that if it is sending a photo and if the receiving site has a media endpoint for receiving files (which Known does) it uploads the file, shows you a preview and tells you the location of the file. With that, the curl
command shows that the temporary file has the correct description of Content-Type: image/jpeg
. Once Known has processed the whole post from Quill, though, the file that contains the image shows as Content-Type: application/data
.
Somewhere between receiving the temporary file from Quill and storing it permanently, Known fails to give it the proper MIME type.
I wish I knew enough to discover where the problem lies. Most likely Marcus Povey – who keeps the wheels spinning at Known – will be able to do the needful, now that I have submitted an issue. And Sunlit will be able to share my photos far and wide.
I feed @WithKnown into micro.blog and POSSE to Twitter just fine. Known also makes it easy to feed micro.blog only certain kinds of post because the RSS is easy to adapt.
The Aryan-Invasion-Theory sure looks to be basically correct. As for the archaeologists saying that there’s not enough evidence of devastation, Reich points out that they can’t really detect the fall of the western Roman Empire, which hardly means it didn’t happen. War and migration are well-known important factors in written history – why not in prehistory? Because many contemporary archaeologist and historians think that wishing can make it so. They should be paid accordingly.
PESOS from https://www.reading.am/p/4XXy/https://westhunt.wordpress.com/2018/04/22/who-we-are-8-india/.
Any chance you can explain why you think the CDATA wrapper is the issue? My Known feed also wraps description in CDATA and that may be what is causing micro.blog to have trouble with it.
Upgraded Known to latest build; everything seems to be OK but if you spot anything odd, please let me know.
Kinda like Indie Hosters, but more suitable for Gens 3-4? Add Known support and you might get even more customers.
Gavin belonged to a school of one. Throughout most of his career – which was a vocation conducted on his own terms – it was evident to anyone of the slightest sentience that he was the eminent architectural writer of his generation. During much of that time architectural criticism in Ingerlandlandland was no such thing; it was a matter of giving great forelock to a few big names, it was fawning, anilingual sycophancy, a barely dissembled form of PR.
He also, and this may be a little-known fact, designed letterheads for like-minded colleagues, myself included.