#dev 2019-05-17

2019-05-17 UTC
snarfed, jgmac1106, [jgmac1106], [manton] and [tantek] joined the channel
#
jacky
jamietanna|wwwjv: that'd require a bit more plumbing
#
jacky
and that's something I've wanted for some time tbh
[manton], cambridgeport90, [tantek], snarfed, [Rose], KartikPrabhu, [frank], ingoogni and gRegorLove_ joined the channel
#
[Rose]
What was the command for telling things like Compass to update their DB structure?
#
Loqi
It looks like we don't have a page for "command for telling things like Compass to update their DB structure" yet. Would you like to create it? (Or just say "command for telling things like Compass to update their DB structure is ____", a sentence describing the term)
#
[Rose]
Got it, php artisan migrate
[tantek] joined the channel
#
[Rose]
!tell aaronpk I updated my compass and figured out telling it to share my location via Shortcuts, a) where should I document this (or do you not want me to document it), b) I appear to have accidentally created a share link which will last for infinity by not setting a duration. According to your code it should expire instantly though: https://github.com/aaronpk/Compass/commit/6a0eb8909c3d341ed420cc6157759b3a6037e0be#diff-66666f9b34ea66844bc36a15
#
Loqi
Ok, I'll tell them that when I see them next
cweiske, [tonz], [Zegnat], swentel, [frank] and [calumryan] joined the channel
#
Zegnat
That is an odd bug [Rose]. On first casual read I see no reason in that code for it not to work
jgmac1106, gRegorLove, [jgmac1106] and [Rose] joined the channel
#
[Rose]
For it not to expire instantly?
#
[Rose]
refreshes the page, and notes it's still working
[pfefferle] joined the channel
#
sknebel
Timezone malarky in the date conversion?
gRegorLove and [Zegnat] joined the channel
#
[Zegnat]
I prefer to always try and have the db itself handle time, eg current_timestamp or whatever. That way SQL can handle the expiry condition by itself.
#
[Zegnat]
Hmm. Is line 15 in share.php really correct? It does a bigger than comparison, but it seems to do that between a string and integer? Or did the database magically convert the previous date string to a timestamp?
#
[Zegnat]
It may be that the expires_at string is always bigger than whatever the timestamp for current time is?
#
[Zegnat]
(Note that I am unfamiliar with Laravel DB so I don’t know what magic may or may not be applied.)
#
sknebel
Tests++ πŸ˜‹
#
Loqi
Tests has 3 karma in this channel over the last year (4 in all channels)
#
[Rose]
I think datetime can be compared, maybe. I've just escaped a meeting to get on the train to the airport and everything is kind of fuzzy.
[calumryan] joined the channel
#
[Zegnat]
They can, question is if all of this is magically being treated as date time.
#
[Zegnat]
API creates it as a formatted date string, Share then compares it to a time() int. if some layer does the wrong type coercion that might explain the issue
#
[Rose]
I'll check my DB once I get to the airport and see what's in that row.
#
[Rose]
That should shed some light.
#
[Rose]
Field even.
#
[Rose]
Compass update: the timezone is off on the entries in my DB, and as I expected the one that had no duration attached should have never worked - it should have instantly expired.
#
Loqi
Ok, I'll tell them that when I see them next
#
[Rose]
!tell Aaronpk Compass update: the timezone is off on the entries in my DB, and as I expected the one that had no duration attached should have never worked - it should have instantly expired. Suggestion: no duration set should return an error, the rest we can debug πŸ˜›
#
sknebel
Check the comparison if that can be done that way then?
#
sknebel
Also, sounds like something that should have tests attached πŸ˜‹
#
[Rose]
I think it should
#
[Rose]
I am also wondering if I should get back the share id, and then if I should be able to send a DELETE request on that
#
sknebel
Sounds good
#
sknebel
And/or a "kill all share links"
#
[Rose]
That might have unintended side effects
#
[Rose]
But being able to grab all (active) share links would also be good.
#
[Zegnat]
Just copy paste the oauth token revocation flow on it and call it a day
#
jamietanna|wwwjv
Jacky: fair enough. I guess meetup has an API so it may be easier to grab data out of that and render it as MF2 JSON
[frank], [voss], jgmac1106, [pfefferle], [jgmac1106], [tantek], Webrocker, leg, [Juha_Liikala], [stefp] and [manton] joined the channel
#
aaronpk
Good morning
#
Loqi
aaronpk: [Rose] left you a message 6 hours, 48 minutes ago: I updated my compass and figured out telling it to share my location via Shortcuts, a) where should I document this (or do you not want me to document it), b) I appear to have accidentally created a share link which will last for infinity by not setting a duration. According to your code it should expire instantly though: https://github.com/aaronpk/Compass/commit/6a0eb8909c3d341ed420cc6157759b3a6037e0be#diff-66666f9b34ea66844bc36a15
#
Loqi
aaronpk: [Rose] left you a message 2 hours, 33 minutes ago: Compass update: the timezone is off on the entries in my DB, and as I expected the one that had no duration attached should have never worked - it should have instantly expired. Suggestion: no duration set should return an error, the rest we can debug πŸ˜›
#
Loqi
greetings human
#
aaronpk
yes all my projects assume that the database is in UTC
#
aaronpk
which is the best way to handle dates ;-)
#
aaronpk
I also made the mistake of not providing an expiration date and it then expired immediately. Will fix that up.
#
aaronpk
this was a one hour project so there's definitely some things I should clean up about it ;-)
#
[jgmac1106]
!tell sebsel fooling around with kirby have you already made a bunch of mf2 tempaltes?
#
Loqi
Ok, I'll tell them that when I see them next
snarfed joined the channel
#
sebsel
[jgmac1106]: it could have changed, but I believe the whole point of Kirby is that the themes are made by designers that use little sprinkle of PHP (Kirby) to make the site work
#
Loqi
sebsel: [jgmac1106] left you a message 4 minutes ago: fooling around with kirby have you already made a bunch of mf2 tempaltes?
#
sebsel
so short anwser: no, I have not attempted to make a template
#
jgmac1106
yeah today’s goal was to just get it installed and see it I can handle the design
#
jgmac1106
tomorrow will dig deeper for a few hours
#
sebsel
yea if you really want dynamic stuff and plugins and all, I would recommend WordPress
#
sebsel
but then again: haven't looked into Kirby 3, which I should do soon I guess.
#
sebsel
but also: it's nice to write your own HTML, nothing wrong with that :)
#
jgmac1106
dont want that at all
#
jgmac1106
just messing about and stumbling along as I learn, currently using Known and a few static pages I buil don glitch
#
jgmac1106
but realy looking for somethign for my courses https://edu522.jgregorymcverry.com
#
jgmac1106
getting the vibe kirby is the cms I wanted, I write one file, the template is one file, and the clean HTML gets spit out everytime, just edited the notes to have mf2, will read up on you ditching the panel with a micropub client
ingoogni joined the channel
#
sebsel
The main reason I ditched the panel is that I want my folder structure to look like: (/content)/2019/137/1/entry.txt
#
sebsel
And then when I create a post, I should open the right year, the right day of the year
#
sebsel
it's really a hastle, it was just easier to use Micropub for it
#
jgmac1106
ahh versus the pages…stripping the title from notes now actually, and I love the idea of the date structure folder
#
sebsel
have I documented my reasoning about this?
#
jgmac1106
yes, it is in a blog post that is linked on the Kirby page
#
jgmac1106
how I knew about the folder structure and ditching the panel
#
sebsel
ohh, it's on /User:Seblog.nl indeed. ++ for past me.
#
jgmac1106
that is where it is. Think what I will do tomorrow is add mf2 to all the existing templates and see if I can make a different one for article and notes
#
jgmac1106
sebsel++
#
Loqi
sebsel has 3 karma in this channel over the last year (19 in all channels)
wagle and [tantek] joined the channel
#
jgmac1106
Already this far: https://kirbytest.jgregorymcverry.com/notes/across-the-ocean might be the CMS for me, not many IndieWeb building blocks yet but those may come this looks like a ton of fun and exactly what I wanted when i said I want β€œa blank text box but with all the plumbing sorted”
#
sknebel
sebsel: I apparently forgot, did you put your plans to replace Kirby on hold? Or just not ready to switch yet?
#
sebsel
I am not sure
#
sebsel
I moved my server, and being able to do git pull makes a LOT of difference
#
sebsel
most of my beef with Kirby is actually bad decicions I made myself
#
sknebel
As in, prefer something file based?
#
sebsel
(having almost all my logic about, say, private posts, live in a file called config.php)
#
sknebel
Yeah, my site is a mess about those things too
#
sebsel
that is the place where Kirby let's you define routes, and since there is no middleware, and I didn't know how to use the controllers... it's a mess
#
sebsel
Also: Kirby 2 is not really testable, and there are certain parts I would like to be able to test (with automated tests that is)
#
sebsel
but, all is nice in KirbyLand 3, they say.
#
sebsel
So I might actually check that out.
#
sebsel
Just not sure about the 99 euro's I need to pay for it, when I'm probably going to drop it's biggest feature (the panel)
#
sknebel
Understandable
#
sebsel
It makes a lot of sense for a designer, building sites for clients, with little knowledge of PHP.
#
sebsel
or even with a lot of PHP knowledge, but the designer for clients part is the thing here.
#
sknebel
Sgreger seems to really like it for that
#
sknebel
Less stuff to break than WordPress, and flexible enough for many
#
sebsel
I do too! It's just not a thing I do anymore these days.
#
sebsel
And I want a lot of dynamism from it, which I can't get in the current version (but is promised in 3)
#
[jgmac1106]
yes after testing I will need to save up the $115 for license if I want to use it
#
[jgmac1106]
sebsel kinda what I am thinking I need to make h-product pages for people and do them all by hand...I love using snipcart for ecommerce sites
#
[jgmac1106]
but I also want to be able to easily add new modules to my course templates, and I see it as a scaffold to learn a bit of PHP
#
[jgmac1106]
picked up just enough of the basics making plugins for Known and doing a 1/8th of a course on LinkedIn
#
sebsel
[jgmac1106]: I was like huh, but yes, euro's vs dollars.
#
[jgmac1106]
but like you I want the publishing ui handled mainly through micropub
#
sebsel
heh, they have an update-from-kirby-2 thing, but it won't show the price unless you give your license first.
#
sebsel
diggs
#
[jgmac1106]
want to have a template for badges and courses but think I have those pretty well fleshed out the way I like them so will use portal for that since I wouldn't know how to write a micropub client
#
sebsel
[Rose] was trying to talk me into writing our own IndieWeb CMS with her I believe :P
#
sebsel
but writing CMS'es is hard.
#
[jgmac1106]
it was @segnat who pointed me back to Kirby and you and sgreger as I was doing a #myfirstcms challenge...but in my head it was Kirby i was thinking of, plus Kirby is my Super Smash Bros character so there is that as well
#
[jgmac1106]
oops [Zegnat]
#
sebsel
Kirby++
#
Loqi
Kirby has 1 karma over the last year
#
sebsel
Seems like you get discounts as follows: former personal licenses need to add 79 euro's, former professional licenses add 39 euro's.
#
[jgmac1106]
and the blueprint templating looks pretty neat as well, but I may just try my own with CSS Grid, didn't break much dropping in my own stylesheet
#
[jgmac1106]
sknebel reading the v3 documentation you can easily hook into any database if you wanted the dynamic funcationality, might be helpful for something like a nickname cache
#
[jgmac1106]
alright I have to stop and actually work a bit today, bye ll
#
sebsel
considers using seblog as IRC nick to reduce confusion
#
[jgmac1106]
first thing to build a pomodoro webmention to-do list (not that I could but if folks need an Utrecht project...)
#
sebsel
I have a nickcache already :D
#
[jgmac1106]
way above my skill level, just dreaming
[Rose] joined the channel
#
jeremycherfas
Grav is also, like Kirby, mostly used by designers to build sites for clients, which is why it doesn't get a whole lot of IndieWeb love.
#
jeremycherfas
[jgmac1106] What on earth is a pomodoro webmention to-do list? In your dreams, I mean. What does it do?
#
sebsel
well at least a lot of Kirby designers did attend Beyond Tellerrand and tantek's talk
#
sebsel
so hope something comes from that
#
sebsel
but I wish Grav indieweb love too
#
jgmac1106
jeremycherfas I deleted the page looking for it but basically I want to publish a to-do list, and then send a webmention of tasks I start and then have webmentions post every 20 minutes
#
jgmac1106
this way if I say I am signing off and clsoe Slack but then forget IRC is still oepn I have a big reminder to stay on task
#
jgmac1106
was doing it a ton manually last summer
#
jeremycherfas
I don't suppose a simpler blocker would suit your purposes then.
snarfed and ingoogni joined the channel
#
[Rose]
!tell aaronpk I'm not logged in and I can still access the share I made with no duration.
#
Loqi
Ok, I'll tell them that when I see them next
#
[Rose]
I lied, I'm logged in, trying to log out on iOS...
#
aaronpk
login shouldn't affect the shared link
#
Loqi
aaronpk: [Rose] left you a message 2 minutes ago: I'm not logged in and I can still access the share I made with no duration.
#
aaronpk
it only looks at the expiration date
#
[Rose]
Ok, well, I can see the first one I created still, it had no duration attached.
#
[Rose]
(I'm aware it's a alpha feature, just wanted to let you know πŸ˜‰ )
#
aaronpk
oops my links also still work
#
aaronpk
oh dear
#
aaronpk
i see what happened. weird cause i swear i tested viewing an expired link
#
[Rose]
I thought I remembered you did too
#
[Rose]
Sknebel thought it might be a type coercion problem
#
aaronpk
yeah it was passing a unix timestamp into mysql rather htan the mysql date format
#
[Rose]
I have not investigated much, but that also seems plausible to me
#
aaronpk
i just fixed it so if you pull again it'll work
#
[Rose]
"The shared link has expired", yay! aaronpk++
#
Loqi
aaronpk has 61 karma in this channel over the last year (236 in all channels)
[Zegnat], snarfed, [frank], tonz, gRegorLove, [tantek], [pfefferle], q4re, [Rose], [chrisaldrich], [cleverdevil], ichoquo0Aigh9ie, [jgmac1106], [kiai] and [grantcodes] joined the channel