#@tamssokariYet another beauty of the web is in discovery of shared interests by someone whose paths have crossed with yours.
(last RT was discovered through a comment / webmention on @adactio's blog) (twitter.com/_/status/932512565023952896)
amz3 joined the channel
#@tamssokariYet another beauty of the web is in discovery of shared interests with someone whose path has crossed yours.
(last RT was discovered through a comment / webmention on @adactio's blog) (twitter.com/_/status/932512805659594752)
[pfefferle], [jeremycherfas], loicm and [kevinmarks] joined the channel
#LoqiZegnat: aaronpk left you a message 9 hours, 21 minutes ago: I updated the docs for Caterpillar, including a new section on running as a system service: https://github.com/aaronpk/Caterpillar#running-as-a-system-service Let me know if that helps! There's also a folder with an example of how all the code fits together.
#ZegnatIf it isn’t CDATA, that is. If it is CDATA the content just equals HTML.
#Zegnatpetermolnar: “<content:encoded><![CDATA[ is simpler, I can just dump the actual HTML content there” - that’s exactly how <description><![CDATA[ is already supposed to work though, if I read that encoding page right
#ancardaI saw something the other day about calculating the length of a Tweet, was it this library? https://github.com/twitter/twitter-text I seem to remember it had a commit about t.co links being https:// soon. Am I mis-remembering?
#Loqi[twitter] twitter-text: Twitter Text Libraries
#ancardaI can't find that commit or any mention of t.co being https (possibly I was daydreaming)
#[kevinmarks]you can do the thing tantek does, and put xhtml in there without escaping, but it often confuses parsers
#[kevinmarks]you can also put <content type="text"> and either CDATA it or just use xml escaping.
#ZegnatI don’t author XHTML, so that’s out, [kevinmarks].
#[kevinmarks]no, that is quixotic and likely to make your feed fail if you accidentally get it wrong
#ZegnatHmm, tantek’s feed hasn’t died for me, even though he too had some XHTML problems some weeks ago. Maybe my feed reader fixed the mistakes.
#[kevinmarks]feedparser has a lot of code to deal witg this kind of thing
eli_oat and tantek joined the channel
#Zegnat10 days ’til PHP 7.2 stable release. Everyone ready?
#ancardaYeah, should be cool once it's live! Going to stick to 7.1 for now as it won't be on apt-get for a while, even though I can get it on Homebrew now
#ZegnatI think I had to go through deb.sury.org just to get 7.1 on debian stable.
#ZegnatSo if you are on debian and are on 7.1, you probably use it already, which means you also already have access to 7.2 (even right now, I think RC6 is on there)
#ZegnatI have done this some year ago, but totally forgot most of it
#petermolnarpoke me if you get stuck, but it should be rather straightforward
#ZegnatYeah, I should be able to get this working. Run PHP process as www-data user, depend on beanstalkd already running.
#aaronpkI can't keep all the systemd/init stuff on ubuntu straight. it seems like they keep changing their minds every release
#ancardaI think Ubuntu these days just uses systemd
#sknebelyeah. they had the added complication of going through upstart first, so they have compat layers for that
#ZegnatAs far as I can see, Debian is still just systemd with the standard INI-format .service files. I know these. I just don’t do anything with them often enough to know by heart.
#sknebelbut you can write "pure" systemd files, just as on debian
#ancardaActually serious note here; I'd be happy to help anyone with anything security related. I know for a lot of people, setting up SSL is really boring and painful
#aaronpk[miklb] [chrisaldrich] still having trouble with indienews? I see a rel=syndication link on miklb's post, but indienews expects a microformats u-syndication or u-category link, not rel
#aaronpkZegnat: nginx can handle different ssl settings per vhost
#aaronpkalso the docs are super confusing, because the first result for "ubuntu systemd" is this page with a pretty good URL https://wiki.ubuntu.com/systemd which has this giant warning at the top "The information on this page is severely out of date. Don't use it!"
#petermolnara note to the @ unit files: you can't use invalid usernames with that, eg. I forced usernames to match domain names - systemd doesn't accept that with @, so in that case, use the user id
#aaronpkI guess at some point I should rebuild all my init scripts in systemd
#aaronpkI have a combination of upstart, systemd, and supervisord right now
#petermolnarthe @ is how I run multiple spotify instances on the same server
#sknebel(like the note at the bottom of that post: " If you'll plan to comment on the escaping algorithm please also mention where you live so that I can come around and paint your bike shed yellow with blue stripes. ")
#ZegnatBasically exactly what you want for a worker that listens for jobs on beanstalk: if I ever see that the 1 worker can’t keep up I want to quickly add another instance
#petermolnarbtw if you need tricky dependencies, such as timestamp change on file -> restart X, I still use monit
#ZegnatGreat if I can do that without having to clone the service file
#petermolnarso whenever the ssl certs are regenerated, it automatically restarts the relevant services
#aaronpkZegnat: that does look neat. hopefully it's good enough to drop the whole forking mechanism of my caterpillar worker
#Zegnataaronpk, yeah, I never knew instances were a thing. We didn’t use them at work for our Gearman workers.
#ZegnatAnd I rather have systemd manage the instances than a PHP script with Caterpillar. No offence ;)
#aaronpksame. I wrote that before systemd was around
#aaronpkif you change your caterpillar worker to use `run_foreground` it will be a worker directly and you can use it with that instead of forking
#sknebelpetermolnar: yeah, it's a bit strange that path units can't do service restarts nicely
#ZegnatYes, i realised that. Run foreground and only 1 worker. But at that point I wondered if I couldn't just write against Pheanstalk directly.
#ZegnatNot sure yet what I settle on for the workers, aaronpk. First looking into getting the php scrip to reliably run through systemd.
#aaronpkyeah, at that point caterpillar is really just the pattern of calling methods on classes, and handles a little bit of beanstalk boilerplate for you
#Zegnatdgold, you don’t have access to a JSON serialisation function? It is generally not a good idea to write serialisation formats through templating functions
#ZegnatYou are now using a template file. But when you write {{ .Title }}, are you sure that is doing all the escaping JSON needs? It is better to just put an object through something like PHP’s json_encode() to make sure what you are creating is valid JSON.
#ZegnatNot sure if Hugo gives you access to a json_encode-like function though.
#tantekpetermolnar that seems like the kind of unholy hack to try web searching for
#tantekand if no one has done it, and you can do it in a way that works with the remaining few feed file aggregators, it's definitely worth a blog post
#tantekbonus points if you can make it valid XHTML as well, with h-feed :D
#dgoldZegnat: I don't think you can do that with hugo, tbh
#tanteksince I try to stick with XML-valid HTML5, theoretically I should be able to drop in the extra Atom and RSS elements and have them just "work" on my home page
#tantekoh wait you can't do that with RSS because RSS requires XML-escaping all the nested HTML in articles/items because RSS itself is not powerful enough to handle nested markup for content (Atom fixed this)
#tantekthat'll take longer. my home page / feed file generation code is still mostly PHP-specific, with some use of CASSIS functions. converting the whole thing to CASSIS is still a longer term project
#Zegnatdgold, could be that hugo doesn’t support it. Just wanted to point out that templating serialisation formats is often very fragile.
#[miklb]lol, seems I had a trailing slash and that caused it to fail.
[manton] joined the channel
#[manton]aaronpk I started to type an answer about JSON Feed and Dave's RSS as JSON, but Tantek's right, don't want to add more drama... Happy to talk about it in Austin over a beer. ?
#aaronpk[miklb]: that sounds like whatever url was send as the target parameter in the webmention request was not exactly the same as the url in the post
#[miklb]aaronpk, yes, I had news.indieweb.org/en/ and it was rejecting the trailing slash
#tantekwhen I see URLs with .../cache/busting/... in them it makes me sad. Sad that apparently dealing with caching is so hard that people need such hacks
#tantekI found it, by browsing my website files directory, not by search. There's definitely a use-case for a human browseable website files directory, in contrast to hiding things in an opaque (and fragile) database file (even SQLlite), or having a system that generates thousands of files.
[keithjgrant] and [kevinmarks] joined the channel
#loqi.mecreated /TLA (+117) "prompted by aaronpk and dfn added by [kevinmarks]" (view diff)