Show newer

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.

Show thread

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. 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 twitter.com/Lubchansky/status/ - twitter.com/lycrashampoo/statu )

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.

Show thread

> IBM to Buy Red Hat, the Top Linux Distributor, for $34 Billion

wat

Forgot to post this, earlier: Just some silliness with animations from the asset store!

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?

It's Friday, and no one can stop me from snacking on Count Chocula at my desk.

Pictured: The last computer display on which it was appropriate to put avatars and user-interface elements in circles.

copyright law, drm (+) 

In Groundbreaking Decision, Feds Say Hacking DRM to Fix Your Electronics Is Legal: motherboard.vice.com/en_us/art

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.

Show thread

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!'"
washingtonpost.com/opinions/ca

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!