so much for lightweight markup
Rendering the same 6-paragraph, 65-line source markup file (reStructuredText or pandoc's Markdown flavor) into a 154-line HTML 5 target file:
py36-rst2html5: 1.05 seconds
py36-docutils: 0.65 seconds
hs-pandoc: 2.50 seconds
Rendering the same source file content through Jamal, "Just Another Macro Language," a perl script from 1997 & last updated 2010:
jamal: 0.05 seconds
These look tiny now, but what happens when I go over 100 pages then tweak the template?
docutils documentation [ - ]
I can't use either docutils or rst2html5 to generate a complete HTML page with my template, because there's no way I can find to specify the page title in the page head from within the .rst source file, with or without a custom template.
ed(1) tricks & tips
Sometimes when you do a substitution, you don't want the first match in the line but a subsequent one. With ed(1), you can specify which you want:
$ ed
a
#!/bin/sh
echo xxxxx echo zzzzz
.
s/x/X/4p
echo xxxXx echo zzzzz
s/echo/yyyyy/2p
echo xxxXx yyyyy zzzzz
This also works with sed(1)
$ echo xxxxx | sed s/x/X/3
xxXxx
If you want to take out a mortgage and hold down a steady job, then I support you. I just think that if you're born a baby, you're always going to be a baby and can't change that. https://redd.it/9s6xci
filking, copied from birdsite
*tmbg voice*
article bad, article bad
reading the thing is making me sad
what's it about?
i don't care
article bad
is the take hot?
does the tone lack respect?
are we blaming millennials or Gen X?
what's it say?
it's not important
article bad
(sources https://twitter.com/Lubchansky/status/628661854324326400 - https://twitter.com/lycrashampoo/status/754548732851466240 )
docutils documentation [ - ]
How do I use a per-page title 2x in an rst2html5 template file without:
* using sed, awk, or any other text/macro processing system on the command line, or
* typing more than 1 line of boilerplate giving the title in the .rst source file?
None of the docs I can find say.
docutils documentation [ - ]
I like that docutils will produce a complete html file from reStructuredText input.
I like that the default html template can be overridden or extended & that basic examples are given.
But who thought it a good idea to a) not *document* the template format(s), & b) use a default template that doesn't even match the basic examples' formatting language?
copyright law, drm (+)
In Groundbreaking Decision, Feds Say Hacking DRM to Fix Your Electronics Is Legal: https://motherboard.vice.com/en_us/article/xw9bwd/1201-exemptions-right-to-repair
This victory only serves to highlight how evil DRM is and how terrible a law the DMCA actually is.
uspol, trans rights
I mean, good on her for finally figuring out the Republicans lied (Trump most bald-faced of all), but everyone and her mother tried to tell her this two years ago.
uspol, trans rights
What WaPo wrote: "'I was wrong' to back Trump, Caitlyn Jenner writes for The Post. 'He has ignored our humanity' and used transgender people as pawns."
What I read: "Woman who endorsed, backed, & voted for the Leopards Eating People's Faces Party cries, 'I never thought they would eat *our* faces!'"
https://www.washingtonpost.com/opinions/caitlyn-jenner-i-thought-trump-would-help-the-lgbtq-community-i-was-wrong/2018/10/25/3c4cd61e-d86a-11e8-83a2-d1c3da28d6b6_story.html
✨ Kind 'Net Help Desk fairy by day. ✨
✨ Weird & furry Unix fairy by night. ✨
✨ Sometimes a retrocomputer fairy. ✨
✨ Pays the ComputerFairi.es bills. ✨
✨ Sparkly✨shellscript✨princess. ✨
✨ Age: Mere days younger than ✨
✨ the Intel 4004 & Unix 1st Edition. ✨
✨ Follow requests welcome. ✨
✨
✨