Roland's homepage

My random knot in the Web

Articles tagged with "python"

  1. 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 ...

  2. Filtering a sound recording

    Recently I was listening to an MP3 file of a talk about no-till gardening when I noticed that there was a noticable buzz in the sound. I figured I would try my hand at sound filtering with Python as a learning experience.

    The Python standard library doesn’t have a ...

  3. Evaluating REACH

    One of my responsibilities at work is to act as local expert with regard to chemical substances. One of the tasks is making sure we comply with REACH (“Registration, Evaluation, Authorisation and restriction of CHemical substances”).

    The REACH directive itself is huge, numbering 515 pages in the Dutch version. In ...

  4. dxftools

    Introduction

    The purpose of the ‘dxfgerber’ program is to generate optimized DXF files for processing on a Gerber cutting machine. The software for this cutter is apparently not very intelligent and doesn’t seem able to sort line and arc entities in a DXF file in a relevant order.

    This ...
  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. 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 ...
  7. A new STL convertor added

    In addition to stl2pov, I’ve now written a program that writes a shaded projection of the STL file (along the z-axis) as a PostScript file. It supports arbitrary rotations of the STL file around x-, y- or z-axis and automatically centers the object in the view, so you can ...

  8. stl2pov rewrite

    Python logo

    On 2011-04-04 I re-wrote my parser for STL files in Python. The original C parser was 411 lines (excluding comments and blank lines). The new parser in Python is 134 lines. This is also without comments. It took me about two hours to write from scratch. But that includes debugging ...

  9. Learning Python

    XKCD python strip

    Over the years I’ve heard a lot about the Python programming language. Now I have decided to start and learn it. I’m already reasonably fluent in languages like Perl, Lua, C and Bourne shell. But each of those feels like it’s lacking somewhat. Building and maintaining versions ...


←  Page 1 Page 2 / 2