Show newer

pypi complexity-0.9.1 

$ python3.6 setup.py install
Traceback (most recent call last):
File "setup.py", line 19, in <module>
history = f.read()
File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2378: ordinal not in range(128)

... Seriously??

Just because your "HISTORY.rst" file has Unicode line-art, & you want to clip a line from it during setup?

Tired: Relying exclusively on WiFi to conduct business connections across an entire facility.
Wired: CAT-5e, CAT-6, CAT-7, COAX, FIBER...

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?

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!