#dev 2018-02-04

2018-02-04 UTC
#
Loqi
[Aaron Parecki] New Micropub library + XRay
[miklb] joined the channel
#
[miklb]
aaronpk++
#
Loqi
aaronpk has 112 karma in this channel (1556 overall)
#
aaronpk
this is gonna make it so easy to make a micropub server now
#
GWG
Fun
#
GWG
I'm writing descriptions for all the weather icons I incorporated into the system for manual settings
#
GWG
They say the eskimos have a lot of different words for snow.
#
GWG
I wonder how many icons they have
[eddie] joined the channel
#
[eddie]
aaronpk: How do you post the code to your site? Do you do anything special when posting or just on the display
#
[eddie]
I mean essentially your Gist posts in /code
#
aaronpk
You know what, I actually forgot how it works
#
Loqi
[Aaron Parecki] Owning my Code Snippets
#
aaronpk
And my post about it doesn't really explain the technical details either
#
aaronpk
aha, I used a p3k property to have Quill tell my site a custom content type of the content. So the Micropub request looks like normal, where the code is the content, but the p3k-content-type is code/php or whatever language. Then my site can add the custom css
#
[eddie]
ohhhh gotcha!
#
[eddie]
that makes sense
#
[eddie]
Awesome 🙂
#
aaronpk
It's a bit of a hack haha
#
Loqi
awesome
#
[eddie]
But it’s a functional one!
[mrkrndvs], renem, globbot, snarfed, Kongaloosh, bear, AngeloGladding and [eddie] joined the channel
#
[eddie]
!tell aaronpk you might see a pretty crazy ticket I just opened up on Indigenous. I don’t know how clear it is since I wrote it at 2:30 AM my time, but wanted to record the idea somewhere. I’d be interested in talking through pros cons and dangers of it at some point. Either on the ticket, in here or on the Wiki.
#
Loqi
Ok, I'll tell them that when I see them next
#
[eddie]
!tell aaronpk essentially the idea is an IndieAuth extension that allows remote login/authorization through IndieAuth. A bit of an inception point. Lol, and either amazing or insane. Not sure which :)
#
Loqi
Ok, I'll tell them that when I see them next
[kevinmarks] joined the channel
#
tantek.com
edited /Facebook (+371) "/* How to wean yourself from */ m.facebook.com/events on mobile on weekends"
(view diff)
sebsel and [kevinmarks] joined the channel
#
loqi.me
edited /mood (+101) "[kevinmarks] added "https://slate.com/technology/2018/01/why-almost-anything-on-the-internet-can-now-be-your-mood.html" to "See Also""
(view diff)
#
@_am1t
So finally managed to open-source the enhanced theme on my site. More about the overall setup here. Still need to work on webmentions display - some inspirations from @colinwalker’s blog. https://github.com/am1t/ghostwriter
(twitter.com/_/status/960096406907351040)
[mrkrndvs], barpthewire and loicm joined the channel
#
aaronpk
That sounds like fun [eddie], I have some ideas
#
Loqi
aaronpk: [eddie] left you a message 5 hours, 30 minutes ago: you might see a pretty crazy ticket I just opened up on Indigenous. I don’t know how clear it is since I wrote it at 2:30 AM my time, but wanted to record the idea somewhere. I’d be interested in talking through pros cons and dangers of it at some point. Either on the ticket, in here or on the Wiki.
#
Loqi
aaronpk: [eddie] left you a message 5 hours, 28 minutes ago: essentially the idea is an IndieAuth extension that allows remote login/authorization through IndieAuth. A bit of an inception point. Lol, and either amazing or insane. Not sure which :)
#
aaronparecki.com
edited /RunKeeper (+64) "add 2014 screenshot"
(view diff)
#
aaronparecki.com
edited /Strava (+62) "add 2014 screenshot"
(view diff)
[jgmac1106] and snarfed joined the channel
#
schmarty
23 days until 🎉
#
Loqi
I added a countdown scheduled for 2018-02-27 11:46am EST (#6260)
#
aaronpk
!tell grantcodes,cleverdevil I'm doing something drastic and renaming the server that is currently at monocle.p3k.io, so you'll need to update your microsub link tags to point to the new address: aperture.p3k.io.
#
Loqi
Ok, I'll tell them that when I see them next
#
aaronpk
*whew*
#
aaronpk
now that frees up the name Monocle to be an actual reader again
leg joined the channel
#
aaronparecki.com
edited /Microsub (+210) "rename Monocle to Aperture"
(view diff)
#
aaronparecki.com
created /Aperture (+485) "Aperture"
(view diff)
#
aaronparecki.com
edited /p3k (+57) "/* Apps */"
(view diff)
#
aaronparecki.com
edited /p3k (+100) "/* Libraries */"
(view diff)
benwerd joined the channel
#
aaronpk
upgrading my server... hold on to your hats!
#
KartikPrabhu
holding....
#
GWG
Upgrading to what?
#
GWG
Do we have a page in the wiki about post UI?
#
jjuran
(Three seconds from Jurassic Park)
#
aaronpk
what is post?
#
Loqi
A post is either a piece of content or the act of publishing that content (usually in a way that is shared) https://indieweb.org/post
#
aaronpk
is updating from ubuntu 14.04 to 16.04
#
GWG
That's what I was looking for
#
aaronpk
post << [[create]]
#
Loqi
I couldn't get an edit token for the wiki
#
aaronpk
post << [[create]]
#
Loqi
I couldn't get an edit token for the wiki
#
GWG
I am having trouble trying to address usability concerns
#
GWG
I think I am too close to the problem
#
GWG
I have a big imovable content box to contend with. Do I put the in reply to/like/whatever URL box above or below it? And such
eli_oat, [cleverdevil] and aaronpk joined the channel
#
GWG
I need to survey this
#
GWG
Who keeps their URL above their content box and who below and why?
#
aaronpk
quill's is above
#
GWG
If the screenshots in create page are current, Gregorlove has it below
#
GWG
I am honestly thinking of moving mine above, but engaging the WordPress feature that allows the user to rearrange things to move it
#
GWG
I have to find that guy who helped with my last design crisis at Baltimore
#
GWG
Despite the fact I redid some of his work
#
aaronpk
that went relatively well. time for the next server.
[pfefferle] joined the channel
#
[cleverdevil]
Blurgh. Another day, and another time I wish Known's Micropub implementation was better 😕
#
Loqi
[cleverdevil]: aaronpk left you a message 2 hours, 27 minutes ago: I'm doing something drastic and renaming the server that is currently at monocle.p3k.io, so you'll need to update your microsub link tags to point to the new address: aperture.p3k.io.
#
[cleverdevil]
Oh, thanks for letting me know!
#
aaronpk
should just need to change the URL, and then will need to log back in to together
gRegorLove joined the channel
#
aaronpk
i'm leaving the old one up for a few days but it won't be getting any new content anymore
#
[cleverdevil]
Done. Worked just fine 🙂
#
[cleverdevil]
So, Micro.blog supports posting multiple photos via Micropub (it passes them as photo[]=, with an h=entry, after uploading all of the photos via the Micropub Media Endpoint)
#
[cleverdevil]
Known doesn't seem to support multiple photos attached to an entry, sadly.
#
aaronpk
aw, like even natively it doesn't?
#
[cleverdevil]
That's what I'm seeing in the Micropub endpoint.
#
[cleverdevil]
Complicating that fact is that the built-in Photo object/entity is, well, a *single* photo by definition.
#
Zegnat
I’ve been playing with Known locally a little, and I do not think I like the entity structure it uses at all :(
#
[cleverdevil]
I'm guessing the right way to solve this would be an entirely new Entity subclass for holding multiple Photo objects as attachments.
#
Loqi
aww, cheer up
#
[cleverdevil]
@Zegnat, there are certainly good and bad aspects.
#
[cleverdevil]
This is one of the bad ones.
#
[cleverdevil]
Another alternative, which may be much simpler, would be to enhance the standard Text entity to be able to smartly render multiple attachments.
#
aaronpk
posttypes--
#
Loqi
posttypes has -1 karma in this channel (-3 overall)
#
[cleverdevil]
Then, if multiple photos are submitted in the Micropub endpoint, create a Text entry instead.
#
aaronpk
that sounds better
#
[cleverdevil]
Yeah, its also a bit more... web-like.
#
aaronpk
(hold on to your hats again. this time the slack gateway is going to go down for a bit)
#
Zegnat
Yeah, post types is my “issue” with it. The Known entities are assigned at creation time, and that’s it. There isn’t really a post-with-different-properties type of thing, which is what mf2 follows
#
[cleverdevil]
Well, technically speaking, you can create a Text post (an 'entry') and then put whatever HTML you want in it.
#
[cleverdevil]
But, yeah, its not ideal.
#
[cleverdevil]
I don't mind having the entities well-defined with different types, they just need to make them composable somehow.
#
aaronpk
okay really rebooting now
#
gRegorLove
Currently it's three radio buttons for: note, favorite, and repost on first line, then URL replying to on second line.
#
gRegorLove
Then the contents of the note, then other fields.
#
GWG
So, most people have it above
#
GWG
Good data point
#
gRegorLove
I recently added JS so if I'm replying to a twitter.com URL, it checks "Syndicate to Twitter"
#
gRegorLove
I think it makes sense above. It kinda mirrors the presentation of the note.
#
GWG
I'm doing a review of my Post UI. The last one before WordPress forces me to change it
eli_oat, loicm, [aaronpk] and [tanlaan] joined the channel
#
aaronpk
oh no I think kylewm let the woodwind.xyz registration lapse
[pfefferle] joined the channel
#
sknebel
seems so :/
#
aaronpk
jeez I broke my python somehow and I have no idea how to fix it
#
sknebel
what's happening?
#
aaronpk
i'm not quite sure tbh
#
sknebel
presumably you are getting some kind of error... ?
#
aaronpk
"ImportError: No module named parse"
#
aaronpk
I think it's not loading the requirements
#
sknebel
are you using virtualenvs of some kind?
#
aaronpk
I wasn't, but ubuntu 16.04 upgraded to python3 and i'm not sure how to make it run python2 without a venv
#
sknebel
the "python" executable is still python2
#
aaronpk
i'm running uwsgi
#
sknebel
how do you run uwsgi?
#
aaronpk
uwsgi --ini silopub.ini
#
aaronpk
and same error without the virtualenv
deathrow1 joined the channel
#
sknebel
silopub should work with python3
#
sknebel
so maybe you just need to install the dependencies for python3
#
aaronpk
oh huh
#
aaronpk
how do you make pip run with a different python version?
#
sknebel
python2 and 3 are completely seperate
#
aaronpk
> python3-pip is already the newest version
#
aaronpk
> The program 'pip3' is currently not installed.
#
aaronpk
ohh I bet `pip` is 3
#
aaronpk
and pip2 is 2
#
sknebel
shouldn't be
#
aaronpk
hm, well I dont have a pip3
#
sknebel
but possible they did that
#
aaronpk
I should be able to run silo.pub under passenger too right?
#
aaronpk
I think it's confused about where the app lives
#
aaronpk
there's no "public" folder in silo.pub
#
aaronpk
ha. I fiddled around with it and now i'm getting the same error "ImportError: No module named parse"
#
aaronpk
:sigh:
#
sknebel
do you maybe have a pip3.4 (or whatever version your python3 is?) executable?
#
aaronpk
no just pip pip2 pip2.7
#
sknebel
I really don't get why you don't have a pip3, all documentation I can find on ubuntu 16.04 says that should be installed
#
aaronpk
lemme log out and back in again...
#
aaronpk
weird, uninstalled and reinstalled
#
aaronpk
now I have it
#
aaronpk
still same missing module
#
aaronpk
it looks like uwsgi is still running 2.7
#
aaronpk
what if I install this on heroku...
#
aaronpk
it's the only python app I need
AngeloGladding joined the channel
#
sknebel
pip2 install then
#
aaronpk
says everything is up to date when I do it with pip2
#
aaronpk
ugh maybe i'll just switch back to bridgy publish
#
aaronpk
or rewrite silo.pub in PHP :P
#
aaronpk
Ugh I’ve really never had a good experience deploying python apps. It’s such a struggle every time.
#
sknebel
I should maybe write up my setup, even though it's fairly basic
syp1, snarfed and [kevinmarks] joined the channel
#
[kevinmarks]
appengine is good at deploying python 2.7
#
[kevinmarks]
but venv is a pain
#
[kevinmarks]
and everythign failing if you have a space in your path is such crap
benwerd joined the channel
snarfed joined the channel
#
aaronpk
darn I thought for sure that was gonna fix it... tried initing the venv a different way