#dev 2016-07-20

2016-07-20 UTC
KevinMarks_ joined the channel
KevinMarks, tantek, cweiske, ben_thatmust, loicm and KevinMarks_ joined the channel
#
@NelioSoft_ES
¿Te han hecho un pingback? ¿No sabes qué es? Nosotros te lo explicamos https://neliosoftware.com/es/blog/trackbacks-pingbacks-y-webmentions/ #WordPress
(twitter.com/_/status/755687682236350464)
loicm joined the channel
rMdes and KevinMarks joined the channel
KevinMarks_ joined the channel
#
petermolnar
I swear I was looking at lua ~10 minutes ago :D
#
aaronpk
i wrote a bit of lua while experimenting with my eyefi card replacement
gRegorLove joined the channel
#
petermolnar
since it seems pretty much I will end up deperting from wordpress, I might as well choose something other than PHP
#
petermolnar
and since lua can be embedded in nginx...
#
petermolnar
but I also seem to have trouble locating markdown extra and twig parsers for lua
#
petermolnar
and that much time/patience I may not have to write those :)
#
aaronpk
oh shoot i broke loqi's logging last night
#
aaronpk
dammit
#
aaronpk
it was getting late last night
tantek joined the channel
#
Loqi
tantek: petermolnar left you a message 1 day, 15 hours ago: PHP 5.2 is without namespaces, anonym functions and it's brutally slow compared to 7.0, so yes, it's quite bad.
#
petermolnar
tantek by the way, I went through your http://tantek.pbworks.com/w/page/59905776/Markdown and I've found most of it true
#
petermolnar
especially that it would make every content easily regex parsable as well
#
tantek
appreciate the review petermolnar !
#
petermolnar
there are things you didn't touch on the other hand
#
tantek
I'm sure
#
tantek
it's not comprehensive
#
petermolnar
like tables and definition lists
#
tantek
I only got to the things that *really* annoyed me obviously about Markdown
#
petermolnar
which are not part of the original markdown either
#
tantek
to be fair, tables and DLs are harder
#
tantek
I'd need to gather some real world examples from plain text emails
#
tantek
before designing something better
#
petermolnar
I'd love to participate
#
tantek
also project gutenberg (their plain text docs) is a likely good source
#
tantek
awesome!
#
aaronpk
cringes at plaintext tables
#
tantek
aaronpk, fair enough
#
aaronpk
they look nice, but are a PITA to author
#
tantek
point being, there is some prior art for people publishing them in plain text
#
tantek
like prior art *before* markdown
#
aaronpk
yeah totally
#
aaronpk
mediawiki has its own table syntax too which is a similar nightmare
#
tantek
or mediawiki {| |} craziness
#
tantek
lol yeah
#
petermolnar
I'm getting desperately tired of WordPress, and if I change, I'll make my content _actually_ human readable, which leaves me with plain text with rather strict syntax for anything that requires parsing
#
tantek
interesting
#
tantek
petermolnar I've been gradually implementing and selfdogfooding the features of tantek.com/w/Markdown
#
tantek
so far very few surprises, but definitely a few minor iterations
#
petermolnar
by the way, I want to keep the idea of fenced code blocks
#
tantek
the trick with more memorable linking syntax (with all the video / image / URL / linktext ) possibilities is to prefer "richer" / "more primary" content first
#
petermolnar
the ```language in my opinion is useful
#
tantek
petermolnar I've never seen ``` used for that before markdown
#
tantek
it's a total made-up hack with zero basis in research AFAIK
#
petermolnar
still usefil
#
tantek
yes the use-case is there for sure
#
petermolnar
you know, never go full retro ;)
#
tantek
however I think we can redesign it based on actual research
#
tantek
instead of making stuff up with random characters like what was done with Markdown
#
petermolnar
the indention-based block drives me mad
#
tantek
smells like Perl logic
#
petermolnar
mostly because I'm a tab person
#
tantek
hah yes - indention-based stuff is fragile when linebreaks occur (e.g. email)
#
aaronpk
trying to write regexes for matching indent based blocks is super hard too
#
petermolnar
tantek -> `perldoc perlvar` ;)
#
petermolnar
aaronpk not that bad, ``` is rather rare in code
#
petermolnar
unless you're coding Markdown... inside Markdown... (Yo, dawg... )
#
aaronpk
``` is easier, but matching lines beginning with spaces and allowing for blank links is harder
#
tantek
I get the feeling it is somewhat a derivative of / inspired by PHP heredoc syntax
#
tantek
(also not very memorable nor readable)
#
petermolnar
I need to leave for now; I'll summarize my thoughts as well on the plain-text ideas
#
tantek
awesome petermolnar !
#
tantek
do you have something like a wiki yourself?
#
tantek
(obv my wiki is on a silo still, but better than nothing)
#
aaronpk
Linode is doing some server maintenance and needs to reboot all my servers
#
aaronpk
one (that isn't doing much) is scheduled for tomorrow 5am PDT, the rest (including the indieweb server) are 4am on Friday.
#
aaronpk
I have to decide whether to use this opportunity to move to their new infrastructure which will require similar downtime. Probably a good move otherwise I have to do this againz
#
bear
my opinion is to never decide to test moving to new infra because of a quickly arriving infra reboot
#
aaronpk
If I can finish my work release on the early side I can maybe do the reboots tonight
#
aaronpk
it should be a seamless move, Linode is good about that
#
bear
oh - letting them move your server image... that's different
#
aaronpk
its just moving to their KVM hosts from the XEN one
#
bear
sorry, I thought you were going to test some new provisioning script or somesuch
#
aaronpk
it'll take maybe 1-2 hours per server
#
aaronpk
oh no I don't have anything fancy like that
#
bear
resists the urge to whisper "you could..."
#
bear
I'm +1 for getting them moved ahead of the force reboots
#
aaronpk
I have too many apps on the server to try any sort of automatic provisioning stuff. Also that is a lot of extra work and I don't think it provides much benefit overall
#
bear
I keep saying that it doesn't have to be *you* that does the work
#
aaronpk
Yeah but I do have to know how it works still
#
bear
and the benefit is that this documents for others how to do something similar
#
bear
sure, I get that you will want to know how it works - i'm not talking about something complicated
#
aaronpk
I have a text file I keep notes in right now
#
bear
more like a series of bash scripts that sets up the server for the apps and then some that install/start the apps
#
aaronpk
basically my manual server setup scripts
tonious joined the channel
#
aaronpk
Also this stuff changes every 6 months so actually automating it isn't practical
#
bear
just stops beating his head against that wall
#
aaronpk
new versions of nginx/php, and the occasional platform change where suddenly you have to write startup scripts a whole different way
#
bear
yes, I am well aware of all the different things that change when OSs and languages and even devs change things
#
bear
it's what I do every day of the year and have been for 35+ years
#
bear
once you get the pattern of using scripts then you do any changes in the scripts - boom - they are up to date
#
bear
and the script becomes your "text file"
#
aaronpk
I did write a pretty thorough automation script for the Geoloqi servers a while ago
#
aaronpk
but it involved some config file templates and tricky bash scripts to move them around and replace pieces
#
bear
all I've ever tried to do, and will still try to do, is remove the *chore* of infra maintenance from you so you have brain cycles for the other stuff
#
bear
because we (the IndieWeb community) are very very close to having infrastructure that is required to have high uptimes
#
aaronpk
sorry, I don't mean to sound cranky or ungrateful
#
bear
your not
#
bear
the whole experience has been very normal and pleasant
#
bear
I'm going thru some personal stress and may be the cranky one
#
bear
this is something I go thru a lot with devs (way more than you would think)
#
bear
I sometimes have to approach the conversation from multiple angles, reasons and timings
#
bear
until they hit some pain point and realize that having a friendly ops person who groks change and configuration management is a good thing ;)
#
bear
it's what all the young folks are calling DevOps now
#
bear
aaronpk - back to the server restarts
#
bear
my suggestion is to get word out today and do the moves tomorrow evening
#
bear
so you are ahead of the forced linode event
#
bear
because of how linode does forced restarts, you don't want to be part of the 1000's who are queued for image moves
#
bear
better to be ahead of it
#
bear
then you can pick the time, let folks know and just do it
#
aaronpk
on an unrelated note, here's my notes on how i installed these servers. it looks like the version numbers are way out of date but this is basically what I do https://gist.github.com/aaronpk/2d6681a2dfe41025c30ce22165d2d563
#
aaronpk
i think i might be missing an nginx plugin too, crap.
#
bear
that is (to be honest) much better than I normally see from a dev
#
bear
making that into some simple form of automation would be very easy
#
aaronpk
i realized a couple years ago that every time i have to figure out what i installed i was wasting time, and it'd be easier if i just wrote it down
#
bear
pulling known versions of your key services is also a great thing
#
aaronpk
you'll notice sometimes i link to stackoverflow or other places where the process has changed over the years, so i know where to check if something is updated
#
bear
aaronpk++ for having clear install notes
#
Loqi
aaronpk has 1069 karma (3 in this channel)
#
aaronpk
i also realized that if i get in the habit of updating nginx/php/ruby regularly, i get better at it, and doing smaller changes more frequently means fewer things break
#
aaronpk
so at the beginning of the year i decided i would try upgrading everything on the system every 3 months
#
bear
that was what I was crankily referring to above :)
#
bear
change management done incrementally is always better
#
aaronpk
one of my servers that's being rebooted tomorrow morning is about 7 years old, and i've been trying to move off of it for about 4 years. it's too old to upgrade now. it's so old that the openssl bugs found weren't even in its openssl yet.
#
bear
oh my - your making me cry right now
#
aaronpk
this is why i'm trying to get better about regular updates :)
#
bear
7 yrs old - I yell at my team when a server is more than a month old
#
aaronpk
i finally shut down one of my other servers a couple months ago after finally moving everything off of it. but that was about 2 years later than I wanted to shut it down
#
aaronpk
this is definitely a bad habit of mine. the "oh i'll totally move all these apps to this new server let me go set up the new server now" and then not realizing some dependency or something that makes me leave the old server online for 2 years more than it should have been
#
aaronpk
so i'm actually down to just one old server now. my target is having 3 linodes.
#
aaronpk
i have a linode problem 😂
#
aaronpk
hm i wonder if using cloudflare on indieweb.org to serve cached pages while the migration happens might be a good solution
#
tantek
interesting, CDN as a service uptime enhancer
#
tantek.com
created /2017 (+971) "stub with dfn, organizers, dates, onsite considerations, sponsors, etc."
(view diff)
#
tantek.com
edited /Planning (+65) "/* 2017 */ summit planning link!"
(view diff)
#
aaronpk
just put indieweb.org behind cloudflare, but i think they haven't generated the SSL cert for it yet
#
aaronpk
yeah i'm gonna switch back and wait for them to issue the cert
#
aaronpk
they should really point that out
#
aaronpk
there it goes, now it's active
#
aaronpk
ah darn, their crawler only crawls once every 7 days so that likely won't work for tomorrow https://support.cloudflare.com/hc/en-us/articles/202238800-Why-is-Always-Online-not-working-
#
www.boffosocko.com
edited /recipe (+494) "example: Chris Aldrich, mf1, hrecipe, WordPress"
(view diff)
#
paulrobertlloyd.com
created /Template:paulrobertlloyd (+176) "Created page with "<span class="h-card" style="white-space:nowrap">{{sparkline|https://gravatar.com/avatar/15091a37bacfa4bdd011282627eaca2b}} [[User:Paulrobertlloyd.com|Paul Robert Lloyd]]</span>""
(view diff)
#
paulrobertlloyd.com
edited /2016/Brighton (+22) "/* Participating */"
(view diff)
#
miklb
guess this is more a -dev/plumbing issue
#
miklb
this is the full error message in logs EPROTO 140499128305536:error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error:../deps/openssl/openssl/ssl/s23_clnt.c:769
#
aaronpk
oh so there's an ssl error?
#
aaronpk
do you know what URL it's trying to fetch at that point?
#
miklb
FetchError: request to https://tokens.indieauth.com/token failed ?
#
miklb
that is prior to the above error
#
aaronpk
so it did
#
miklb
sorry wasn't clear with error message(s)
#
aaronpk
oh snap
#
aaronpk
my fault!
#
aaronpk
i didn't realize i had aliased that to indieweb.org!
#
aaronpk
(which i just launched on cloudflare)
#
aaronpk
give it 5 minutes or so and it should work again
#
aaronpk
might work now
#
miklb
\_O_/
#
miklb
thanks aaronpk
#
www.boffosocko.com
edited /recipe (+256) "mf2 code example for WordPress"
(view diff)
#
aaronpk
whee dns is fun
KevinMarks, rMdes_, KevinMarks_ and tantek joined the channel