Skip to main content

Jeremy Cherfas"/>

A space for mostly short form stuff and responses to things I see elsewhere.

jeremycherfas.net

jeremycherfas

EatPodcast

eatthispodcast

pnut.io/@jeremycherfas

micro.blog/jeremycherfas

Jeremy Cherfas

2019-01-24

1 min read

Learn something new every day. I can use email to post to this site with Quill. Never needed it before, but good to know.

Jeremy Cherfas

Tried to Like this post, but neither Quill nor Omnibear seem able to do so. I wonder whether that is because there is a hashtag in the title? This post may help me find out.





Jeremy Cherfas

A little problem with Known's Micropub endpoint

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

Jeremy Cherfas

Jeremy Cherfas

You can get good help

1 min read

I managed to fix a long-standing niggle with my practice this afternoon, thanks to some great help from cweiske and others. For the longest time Quill, a micropub client that I can use to publish here, wasn't showing me an option to syndicate directly to Twitter. That meant that I tended reply to tweets and stuff right there in the silo and not bring them back here. Fair enough, especially when a reply without context is like an egg without salt. But we figured it out, in part by that old standby of "switch it off and then switch it back on again". That got things working, and was enough of an impetus to upgrade WithKnown to the latest build. And so far, everything looks good.

Jeremy Cherfas

Horses for courses

1 min read

During the virtual IWC tonight, we were discussing third-party clients for publishing to websites, essentially Micropub clients and MarsEdit. And it occurred to us more or less simultaneously, that I do not use Micropub for the site that supports it out of the box, whereas I do use a client for the site that does not support Micropub out of the box. And that is because the post-creation UI is nice and simple for Known, and a right mess for WordPress.

So, just to be difficult, I'm using Quill for the first time in a long while to create a Post in Known.

Jeremy Cherfas

Thanks Chris. I'm using 0.9.9 The likes with stars are from Quill, those without are bookmarks from Known directly.

Jeremy Cherfas

Using [Quill](http://quillp3k.io) gives me the option to create a new post as a reply. Again, my useless brain cannot remember whether Quill speaks Markdown. And currently, the bookmark opens in the same window, which means I have to remember to copy the URL I want to reply to.

Seconds later: ... Nope, Quill does not speak Markdown.

Jeremy Cherfas

This is a little awkward

1 min read

I've been moaning to anyone who'll listen that there seems to be something wrong with Known; Micropubs could not seem to find the syndication targets. And other people had the same problem, I believe. But after a really enjoyable virtual Homebrew Web Club meeting, the problem might after all be at my end.

@zegnat created a fresh install of Known as we watched, hooked it up to Twitter, and was instantly rewarded with Quill seeing his syndication target, which it resolutely refused to do on my instance of Known. (It failed actually to syndicate, but that's a separate issue.)

So, now I need to try a fresh install myself. And as @Jeena suggested, better to do that on a new and different subdomain than risk messing everything up.

Alas, there is no way on Earth I can do this until near the end of the month.

I can wait.

Jeremy Cherfas

Another test of Quill editor

1 min read

Writing something nice again, but I have enabled the Markdown plugin on Known.


And maybe a headline too

Like this

Utterly bizarre; when I went to write a new post, the above was already there. In other words, the content of the post from Quill, without the block quote.

>This should be a markdown block quote.

I'm knackered. Will try some more tomorrow.

Jeremy Cherfas

Another test of Quill editor

1 min read

Writing something nice again, but I have enabled the Markdown plugin on Known.

So need something in HTML, like this block quote

And maybe a headline too

Like this

Jeremy Cherfas

This is a test from quill using the editor

1 min read

I'm writing something nice, as instructed.

> Does Quill do Markdown?

I don't think so, although I just noticed that there is a hover that seems to create quotes.

Let me test that.

How about tags? Like and ? Oh no, they're in the publish box.

Jeremy Cherfas

This is the content of a regular note from quill

Jeremy Cherfas

Plugging away

1 min read

Bummed out by the fact that Quill wasn't enabling me to syndicate directly to Twitter, I followed up on some good advice from Daniel Gold: Back to basics, uninstall and reinstall plugins one by one. Shades of WordPress. So I did that, and here's what I found:

With IndieSyndicate configured (*via* silo.pub) I can posts to Twitter just fine, but Quill still does not see that as a Syndication target and Quill cannot post to my site.

In retrospect, that's obvious, because there is no endpoint at my site.

So I enabled IndiePub and now Quill posts fine, but it still does not see any Syndication target.

I probably just have to live with that. At least for now.

Finally, re-enabled Brid.gy and everything looks good once again.

Just for the record, here, I've decided that for now I do not need these plugins: Static pages, Firefox, Events, Custom JS, Custom CSS, Comics, Audio, API tester. That may change in time.

Jeremy Cherfas

Testing syndication from Quill<p> </p>

Jeremy Cherfas

Jeremy Cherfas

I'm not using Reactions, so I cannot comment on that. I did, however, test quill.p3k.io to like a post, and the post's card came through perfectly formatted (just not centred, which I can live with). See here https://stream.jeremycherfas.net/2017/michaela-desoucey-on-twitter-via-npr-cheap-eats-cheap-labor

Jeremy Cherfas

Having switched Quill's endpoint to my new instance of WithKnown, I thought it only right and proper that my first post there be my first post from Quill.<p> </p>