Sometimes I need to use some binary data (e.g. a bitmap image) in a Python
In a package, you can store this data portable in a
data subdirectory of
a modules using the
package_data argument of
This won’t work in a standalone script.
You can of course make your script into a package, but here I want to show an
Older articles (2/19)
Sometimes I need to use some binary data (e.g. a bitmap image) in a Python script. In a package, you can store this data portable in a
The compression speed and ratio of several compression programs is tested.
For years I’ve been using
procmailfor incoming mail. However, both of these programs haven’t been maintained for years. So it was time to change.
My balcony gets the evening sun. Sometimes the sun and clouds make for a stunning view. See below.
As an exercise, I wrote a small script to read the Atom feeds for some favourite youtube channels. Of course I could have installed a “real” feed-reader, but that would be overkill and not half as much fun. :-)
The question now is if we can reduce that? For that we’re going to use mmap to look at the mailbox, and call sysctlbyname(3) using ctypes to get the remaining system information. Note that
sysctlet al and the names used are specific to FreeBSD.
When updating my ports, I prefer to use packages when I have not changed the options of a port. This describes how I do that.
Some tips on how I use my D70s