Ancestors

Toot

Written by Michael Kennedy on 2024-12-23 at 21:03

Just updated @talkpython and @pythonbytes's websites to be more content type aware. If you're on an episode page such as

/episodes/show/415/just-put-the-fries-in-the-bag-bro

You can just append .jpg, .vtt, and .mp3 to get that content instead. cc @brianokken #python

Try it yourself! https://pythonbytes.fm/episodes/show/415/just-put-the-fries-in-the-bag-bro

=> More informations about this toot | More toots from mkennedy@fosstodon.org

Descendants

Written by Dan Hugo on 2024-12-23 at 22:14

@mkennedy

I´ve thought about something like this, extending out to getting views as .pdf or .txt or .json, etc.

Did plone do something like this? It´s been a while.

=> More informations about this toot | More toots from danhugo@fosstodon.org

Written by Michael Kennedy on 2024-12-23 at 22:20

@danhugo It's fun, right? :) I'm not sure about Plone, but I added it to my Quart view today. It's easy because I already have views for all that content. Just centralized it on the URL there.

=> More informations about this toot | More toots from mkennedy@fosstodon.org

Written by Dan Hugo on 2024-12-23 at 22:22

@mkennedy

I´m thinking a standard endpoint interface with different content types delivered per… like index.html has been completely misused, I should be able to get a list of elements in a view, index.json or index.txt accordingly.

And yes, fun, hopefully useful or maybe interesting…

=> More informations about this toot | More toots from danhugo@fosstodon.org

Written by Tim Chase on 2025-01-07 at 14:41

On Ep 415 of @pythonbytes and this post, you mention appending the file-type extension (.vtt, .jpg, .mp3, etc) to get various relevant forms of the same item. I've been pushing this recommendation for years (apparently since at least early 2008)

https://blog.jonudell.net/2008/01/17/aspx-considered-harmful/#comment-122209

HTTP content-negotiation via "300 Multiple Choices" is poorly defined (what format does the list alternatives come back as? HTML? JSON? CSV? TOML?). But being able to use extensions makes it clear which file-type the user/User-Agent wants.

Glad to see others discovering it, too! ☺

@brianokken @mkennedy

=> More informations about this toot | More toots from gumnos@bsd.cafe

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113704160497065723
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
290.964778 milliseconds
Gemini-to-HTML Time
1.133021 milliseconds

This content has been proxied by September (ba2dc).