2019-10-12 UTC
[KevinMarks], [tantek], KartikPrabhu, jfoster, [aaronpk], gRegorLove_, [Lewis_Cowles], [fluffy], bengoDiscord[m] and [jeremycherfas] joined the channel
[Nicolas_Hoizey], deathrow1 and djmoch joined the channel
iburnmycdDiscord and [jgmac1106] joined the channel
# 13:16 Loqi Ok, I'll tell them that when I see them next
# 13:16 jeremycherfas !tell [jgmac1106] I'm not sure PHP is the best language for creating graphics. I've looked at r but it seems like overkill. Creating SVGs from scratch seems way too difficult. I'd use something like Numbers but I do not want to go through manual for both data capture and storage AND image generation.
# 13:17 jeremycherfas Capture and storage more or less have to manual, because I'm getting the data from a variety of places. I'm happy to create key pairs for each data point.
# 13:17 jeremycherfas I wabnt to learn how best to generate the kinds of images I want from those data.
[KevinMarks] joined the channel
# 13:21 [KevinMarks] Svg isn't that hard - it's like html. You can use a template model, or just write code to generate it. You have to make it xml compliant, to be standalone, but you can inline it in html files, so php works quite well.
# 13:27 jeremycherfas My thought was that I don't really need the images to be dynamic, just generate fresh each month and each year.
deathrow1 joined the channel
# 13:42 Zegnet jeremycherfas, if you want to cheat, you can make it a number of empty DIV elements, give them all the same CSS, and then with PHP or JS set an explicit height on all of them.
# 13:43 jeremycherfas And I don't want to cheat. I want to learn how to do it. My latest monthly report makes that clear to me.
# 13:44 Zegnet Depends on exactly what end result you are going for. If you can just do something where the height is `$steps * 3px` it is super easy.
# 13:44 jeremycherfas People like exist.io have to be using groovy packages to do what they do. That's all dynamic, but must be doable.
# 13:45 Zegnet I ended up using https://gionkunz.github.io/chartist-js/ for my weight graph. Not doing anything fancy with animations or anything, but I did find it relatively easy to add points to the graph and have them handle drawing the lines
# 13:46 Zegnet Hang on, this is not supposed to be my user name!
# 13:48 Zegnat Also feel free to borrow any of the code I use on my weight chart. Most of it is actually for pulling the numbers out of the HTML table and calculating all the averages. The actual graph code is super slim.
# 13:51 jeremycherfas So do you think that it is efficient enough so that if I want a chart in each month, for example, I could just make it dynamic and limit the series from which it pulls?
[Rose] joined the channel
# 13:53 jeremycherfas I probably need to take a step back too and learn about using an API properly.
# 13:53 [Rose] I use chartsjs at work and feed it data in JSON format for pretty data sets. People seem happy with them and I know the data is right.
# 13:54 Loqi Ok, I'll tell them that when I see them next
# 13:55 Zegnat But yeah, Chartist is pretty easy and the results are fine. People are still impressed by my weight chart after all this time
# 13:55 jeremycherfas It's the "feeding it JSON" that's a bit of a mystery to me. I've done it with leaflet.js but in a very cargo cult way.
# 14:01 jeremycherfas The low-level nuts and bolts of things like chartist.js scare me. When they talk about installing and integrating dependencies, I get lost quickly.
# 14:03 [Rose] The question is usually “do you need to understand it?“, obviously it’s a good idea, but sometimes the thing to do is to ignore that part and just use it, as that helps
# 14:05 Zegnat I don’t really understand Chartist. I just give it an array of data points and it plots away *shrug*
# 14:06 Zegnat CDN. Same thing though. There is no “installing” when it comes to JavaScript or CSS files.
# 14:06 Zegnat You either drop them onto your server and add the <link> and <script> elements, or you use the ones from the CDN.
# 14:06 jeremycherfas Well, if I have time I will play so that I can at least ask intelligent questions in Brighton.
# 14:06 Zegnat Unless you want to get fancy, like their SASS alternative, when you want to mix their SASS with your own SASS and you need a compiler etc. I opted to skip all that. Didn’t need a full integration.
# 14:07 jeremycherfas Suits me fine. I do though want to understand how to feed it data from a file rather than have the data in the HTML.
# 14:08 [Rose] The trick is usually “get the data with JS, and then give it that variable”
# 14:09 [Rose] I use jquery and usually just do a `$.get('/path/to/data/', function (data) {$.createChart({data: data})}
);`
# 14:09 [Rose] Or something along those lines, the createChart bit is pseudocode, the rest is real code.
# 14:09 Zegnat Yep, that definitely does the trick. I only go the long way ’round because the entire graph is basically a progressive enhancement. If the JS breaks, you just get my tabular weight data ;)
# 14:10 [Rose] Wow, I just checked and my brackets match. For something typed in Slack that’s amazing
# 14:21 [KevinMarks] Bar and line charts are pretty easy with php or any templating language - you're calculating width and height, and you can scale in a couple of ways.
# 14:24 jeremycherfas Thanks again for that [KevinMarks] I have used it to track spam on my site.
[aaronpk] and [Lewis_Cowles] joined the channel
# 14:51 [aaronpk] Shimmer doesn't look like hardware, it just connects to Fitbit and such
# 14:52 [Rose] Yes, I like the idea of that - get the data out into something easy to manipulate
# 14:53 [aaronpk] Yeah that's my preferred method too. I don't really mind that the Fitbit hardware isn't something I can tinker with
# 14:55 Zegnat Shimmer seems interesting. Sadly Fitbit failed me, their Bluetooth didn’t seem compatible with my phone :(
dhanesh95, dhanesh95_, dougbeal| and [grantcodes] joined the channel
# 15:30 [KevinMarks] I know what you mean - I used them in a table layout and it makes it do weird things
# 15:31 jeremycherfas But a super easy way to hide inessential material and yet make it easily available.
BenLubar, dougbeal| and [dougbeal] joined the channel
# 16:28 [jgmac1106] Agree as well. Be really cool if the summary box could live outside of details... But I guess that is what javascript is for
gRegorLove_ joined the channel
# 16:51 [KevinMarks] You can do the equivalent with css checkbox tabs if you want more control
[Rose] joined the channel
# 17:31 [Rose] I have progressed with my programmable name badge! I can now create a message for it in Python and fail to put it on the badge
# 17:32 [Rose] At least I have the message, unfortunately I am stuck at “Access denied (insufficient permissions)”
# 17:33 aaronpk hm permissions sounds like maybe it can't access the USB port?
# 17:34 aaronpk did you try that udev thing in the readme? (are you on linux?)
# 17:35 [Rose] I’m on my Mac, not Linux. So I’m trying that anyway
# 17:38 GWG [Rose]: I am curious to see what you make it say
dhanesh95 joined the channel
# 17:39 [Rose] And a few extra messages (it can store 8 ) - so “Help me!” was going to be there ready for Sunday
# 17:41 aaronpk I wonder what it'd take to control that from a raspberry pi so that it could do things like receive webmentions :D
IBurnMyCDTRTLDis left the channel
# 18:06 sknebel oohh, I should try to do something fun with one of my electronic badges too
# 18:30 [Rose] Ooh, the first one you found has the same program as controls my badge. And I have some Pi Zero Ws around.
# 18:35 aaronpk I have my Pi set to connect to my phone's hotspot, worked great during XOXO :)
gRegorLove_ joined the channel
# 18:45 sknebel lets see how long the battery holds when the ESP is connected all the time
# 18:46 aaronpk mine definitely drained faster. normally I don't need to charge my phone during the day, but I definitely did during xoxo
# 18:52 sknebel also kind of worried aobut the battery of the badge
# 19:17 aaronpk woohoo my e-paper badge is back up and running :)
nhoizey_, [tantek], [KevinMarks], KartikPrabhu and gRegorLove_ joined the channel
# 20:16 [tantek] Gotta link to IndieAuth when you mention it [KevinMarks] - lower the barrier for interested parties!
[jgmac1106], [Michael_Beckwit and gRegorLove joined the channel
# 22:46 [jgmac1106] Need to experiment. When I throw some WordPress blogs into inoreader I get choices of different feeds people publish.
# 22:47 [jgmac1106] Trying to recreate that with my site. Not sure if the all the rss feeds have to be in <head>
# 22:48 [jgmac1106] Either that or I need to publish a "how to follow" page like @chris
# 22:49 GWG [jgmac1106]: Too many feeds confuse.
# 22:49 GWG I sort of like the WordPress methodology. All pages link to the main feed, individual archives link to the local archive as well.
# 22:50 [jgmac1106] Most of the feeds I follow are WP. Discovery works better. I have to seperate my feeds. No one should touch the firehose
# 22:52 [jgmac1106] Some follow poetry, some bookmarks, others articles. I am trying to determine... Drop url into reader and here are choices of rss feeds
# 22:53 GWG There are advantages to atom feeds over RSS2
# 22:54 [Michael_Beckwit in august or so, i read up on differences and settled on favoring atom more than RSS2
# 22:54 [jgmac1106] Simultaneously learning how to use granary. In my ignorance I was adding mf2, going to granary, copy pasting xml, adding it to my server
# 22:54 [Michael_Beckwit i'm also still needing to look into the atom spec so that I can make sure i'm creating an atom feed from a custom db table
# 22:55 [jgmac1106] So using xml+atom granary...just saying rss because that is what my community uses and/or says
# 22:55 [Michael_Beckwit unrelated, but i have your "My URL is" episode queued up next [jgmac1106]
# 22:56 [jgmac1106] h-feed has best advantages, all the flow but no plumbing, just trying to figure out rss
# 22:57 [Michael_Beckwit Aaron "needs" to do more Percolator eps as well,
# 22:58 [jgmac1106] Really ignoring ny children, trying to finish up cleaning the garage zand trying to figure out my feed discovery
# 23:02 GWG That reminds me, [Michael_Beckwit. Haven't heard from him lately
SoreGumsDiscord[ and [dougbeal] joined the channel
# 23:08 [jgmac1106] Or gwg and [Michael_Beckwith] need to hop into a chat, press record, and brew up their own ideas
# 23:09 [Michael_Beckwit valid, but i don't have enough content in me for a show, so i just patiently wait for what Aaron feels like recording 🙂
# 23:33 [tantek] Webmention is a W3C Recommendation, not a “proposal”. Hmm I’m not seeing the W3C recommendation graphic (the spec phases one)