Show newer

PyPI, could you *please* just show me the damned SHA256 hash, & *not* require me to enable JavaScript just to use an opaque "Copy to clipboard" parlor trick!?

so much for lightweight markup 

This is for a static website, BTW.

I'm done with fast-changing dynamic frameworks & CMS all-in-ones with even half the dependencies of "Hello World" in Ruby on Rails.

Show thread

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?

US pol 

Ok, so radicals are right in most or all of their critiques of voting. But! Imagine the US is a fossil-fuel car. We really need to replace it with a train running on sustainable energy. Voting for a new driver won't do any of that.
However! That car is currently speeding down a steep hill towards a bunch of school kids who are all holding puppies and kittens while meeting Tony the Tiger. The driver is hitting the gas.
Changing the driver actually is a really good thing to do right now.

Show thread

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

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!