Zum Hauptinhalt springen

Schlagwort: Lang_en

IPython can query or export command statement history

Today i learned that you can use the “magic” %history command in IPython to query the command history of the active session but also all the recorded past sessions.

For example you can go like %history 999/1-500 -f /tmp/outfile to write the lines 1 to 500 of the recorded session 999 to the file at tmp directory.

There are other ways of retrieving the history, but this seems the most elegant to me.

List of Leihladen

This posting describes the list of software that is open-source and in active use to facilitate initiatives that let humans lend things to other humans.

Background and previous work

There are different concepts for organized networks of collective sharing, Library of things are literally called in Germany Bibliothek der Dinge, or similiar Leihladen or older Ludothek or in Sweden they are called Fritidsbanken.

At least for Germany I know there is a active community of people, that care about these networks and create or curate information about them. Though the different actors come in different forms, some with non-profit background, some of them with active funding or some even with commercial appliances.

Whisper.cpp default weights transcribes german audio

Today I learned that using whisper.cpp and your CPU, you can transcribe german audio via -l de, using the standard model weights, available via huggingface. For location in the manual documentation see.

Suppose your repo is at /path/to/repo/whsiper.cpp, then full command to execute in the root folder of whisper.cpp repo is: ./main -m /path/to/repo/whisper.cpp/models/ggml-medium.bin -l de -t 12 -pc -oj -f samples/your-audio.wav

Extract Arcgis Geodatabase format with Python

If you want to know how to extract the individual layers programmatically from a GeoDatabase-ArcGIS archive, then this is for you.

Geo data is often times provided in Geodatabase format. This format provides a container for several layers of data, which then can be rendered using software like ArcGIS or QGIS, which have already plugins to process this file format. But if you work on a lower level, you maybe need to process these files in their format programmatically.

Complete guide to Wordpress Plugin Development with VS-Code

Because I did not find a complete article that includes plugins and configuration, I assembled my own, after I spent some time to get a fully functional environment.

Mandatory plugins

List of plugins to be able to syntax-highlight and auto-complete php and wordpress framework code.

Lastly configure the Wordpress Stub in PHP Intelephense as described in this Github Issue. Alternativly you can include a whole wordpress directory manually as project folder.