wagle, petermolnar, [tantek], tantek__, cweiske, angelo2, [Vincent], gRegorLove, [Vanessa] and [jgmac1106] joined the channel
#[jgmac1106]I know how to build a form and know how to have the data post to a server, but how can I trigger the creation of a new html file from a form? That is today's learning goal
#cweiskea script on a server needs to create that file
#cweiskebrowser --[POST]--> server -> script -> creates file
#Loqicweiske has 22 karma in this channel over the last year (30 in all channels)
#[jgmac1106]yeah I don't even really want to store the data, just want to be able to generate the html files for the webmention badging app I am working on
#[jgmac1106]alas I have to take kids to school today, cutting into my morning hack time
#jeremycherfasI have a PHP script on my local server that writes stuff to my Known instance. I would quite like to automate it as a cron job. Current problem is that when I call the file from the terminal it fails to find a file it needs to read. When I call it from the browser, it finds that file. So, do I need to provide an absolute URL for the file to read?
#GWGI want to convert length in the mp3 file to duration.
#[schmarty]GWG: screech grabs that and sends it in the micropub creation request for the post. my backend stores it and i use it to render the RSS feed.
#[schmarty]but i don't use it in my rendered mf2 in the page
#jeremycherfasI'm not sure where I was in the shell. I just tried for the first time. I need to go back and read about direrctories in PHP.
#jeremycherfasI thought it would be easy to just run the PHP with cron. But maybe it is actually easier to make another script that includes the CD and that then runs the PHP, and let that be the script that Cron runs.
#ZegnatIt is actually easier to do what cweiske showed and make your paths start with the __DIR__ constant.
#ZegnatPHP always sets that constant equal to the directory the current file is in.
#jeremycherfasArggh. DIR does not include the trailing slash.
#ZegnatHaha, it does not. And looks like cweiske forgot it in his example too
#ZegnatLet me apologise on behalf of every PHP programmer that has gone before you 😉
#tantekGWG, I was very happy to get at least a minor step towards a more undo-able posting UX done Wednesday night - a 10 min delay for when items show up in my Atom feed
#tantekI'm hoping to work with h-feed consumers to properly support WebSub and WebSub updates
#tantekGWG it did! It worked (tested it during HWC SF)
#tantekand now I feel like I have more time to fix-up a post if I make any typos before people with classic feed readers see it and cache it
#ZegnatI think I might be subscribed to your h-feed as an atom feed, through granary. So my classic feed reader is going to see stuff before being undone depending on polling, hmm
#jeremycherfasThanks zegnat, on behalf of every PHP programmer that will come after me.
#jeremycherfasIn other news, it works. From Terminal. Not made it to Cron yet because I need to test further. And the code is now very crufty.
[jgmac1106] joined the channel
#Zegnatjeremycherfas++ Sounds like a victory to me
#Loqijeremycherfas has 10 karma in this channel over the last year (22 in all channels)
#sknebelflickr shows the camera model and some basic details if available, + an option to show all the data (or at least a large set of it, they might hide some by default)
#aaronpkI think the old design used to show more at first but they've trimmed it down a little
[jgmac1106], [Vincent], [eddie] and calumryan joined the channel
#[schmarty][tantek]: i just ported my shorturl generation (2 sets of newbase60 dates) to Hugo templates (which have no real loops to speak of and no easy way to bring in external Go libs) and I feel like a haxx0r 😂
#[schmarty](err, one 3-digit newbase60 date, one 3-digit newbase60 seconds-in-day)
#[jgmac1106]@schmary just realized if I want to put all these parts on Glitch I should probably build a node app coorect?
#[grantcodes]If I have a post that has a created date and a published date and I want the permalink to include the date what is the opinion on the date I should use?
#gRegorLoveI would lean towards published, especially if it's not publicly available before then in a stream or feed.
#gRegorLoveI do similarly with event posts. the dt-start is used in the permalink, but it has an earlier dt-published
#[grantcodes]The only place I currently use it intentionally is for photo posts where the photo could have been taken ages ago but not published for a long time
#GWGGregorlove, WordPress has date and date modified. I've backdated posts
#gRegorLoveRight. the slug in archives is the published date.