Roland's homepage

My random knot in the Web

Articles tagged with "python"

  1. Parallel execution with Python

    With Python it is relatively easy to make programs go faster by running things in parallel on multiple cores. This article shows you how.

    We sill concentrate on a type of problem that is easy to parallelize.

  2. lamprop

    (tl;dr: download the latest version from github.)

    Introduction

    The purpose of this program is to calculate some properties of fiber-reinforced composite laminates. It calculates:

    • engineering properties like \(E_x\), \(E_y\), \(G_{xy}\)
    • thermal properties \(\alpha_x\) and \(\alpha_y\)
    • physical properties like density (\(\rho\)) and laminate thickness (\(t\))
    • stiffness (or ABD) and ...
  3. Python bindings for libmagic

    This documents how I installed Python bindings for libmagic.

    There are actually different bindings for libmagic. One set is part of the original distribution. It can be found in /usr/src/contrib/file/python/. But in my opinion it is somewhat cumbersome to use and not very Pythonic.

    The implementation from ahupp/python-magic in Github feels more natural.

  4. Making my first EPUB

    Now that I got an EPUB reader, I started looking for a way to make EPUB documents.

    In principle, an EPUB file is a zipfile with a certain layout, as can be seen on the wikipedia page linked above.

    The actual contents are just XHTML, while the metadata files are ...

  5. py-stl / stl2pov

    Note

    The Python version of this program has been renamed to stltools. The version on this page is therefore out of date.

    The C version is still current, although it has limited functionality compared with the Python version.

    Introduction

    The origin of this software was found in the desire of ...

  6. Stltools

    From the release of version 3.2, the py-stl software has been renamed to stltools. The reason I made this change mostly has to do with how FreeBSD handles packages. Programs that require an interpreter are prefixed with its name and version. So py-stl would become py27-py-stl, which would be ...

  7. TeXcalc

    As an engineer, I often do diverse calculations that I want to save in my logbooks which I write in LaTeX. Up to now I’ve either formatted those by hand or used the listings package to include calculations made in IPython.


Page 1 / 2 Page 2 →