Showing all posts tagged impromptu:

Convert German laws from XML to text

For a small project, I needed to convert German laws, found at https://www.gesetze-im-internet.de/, from XML format to text format. The XML format is described here and is defined by this DTD file. The source code in the following XSL file is pretty st...

Links to Windows SFU and SUA

Should you want to use Microsoft Windows Services for UNIX (SFU) within Windows XP or Windows Server 2003, you need SFU 3.5, which you will currently (October 2019) find either in the Internet Archive as an ISO image or at Microsoft as setup executable...

If you want to run Docker on local Linux box

If you would like to run Docker on a Linux box in your LAN, and you already configured the Linux box hostname as computer1 and a user account there as me, and your current Docker environment is Docker Toolbox on Windows together with docker-machine, pe...

Python shebang

Currently, in the interregnum where Python 2 and Python 3 may co-exist on the same system, the PEP 0394 recommendations for the shebang line in Python programs run in short like this: Use #!/usr/bin/env before Python interpreter Use #!/usr/bin/env pyt...

How to keep your forked GitHub repository up to date

1. Clone your fork: git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git 2. Add remote from original repository to your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-...

Print in Python without newline

If you want to print a string in Python without newline at the end, do it like this: # ... and if you are in Python 2: from __future__ import print_function print('.', end='')

Bootstrap does not use complete jQuery

Should you want to use Bootstrap framework, you will also include jQuery library, for example: <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1P...