Create Markdown Table of Content

Create Markdown Table of Content Purpose A small utility function to create a table of content section at the beginning of a markdown file. Let’s assume the following workflow: Usually I use a text editor (preferable with code highlighting for the markdown syntax) for text-writing. Continue reading...

Recursive directory listing for Hugo

How to program a recursive directory listing I came across the idea to create a summary page showing all files which are stored in a directiory down below Hugo’s /static folder. Here is a brief description of how such a shortcode could be implemented. Continue reading...

Font selection dialog

Font chooser / font selection dialog This is a support package for tcl/tk which implements another kind of font selection dialog (or so called font chooser dialog). Although there are many similar font selection dialogs available, I always wanted to create a dialog which allows to choose a font in a most easy and efficient may. Continue reading...

Tag Cloud for Hugo

Tag & Categories Cloud for Hugo Tags and categories are a great choice for organizing content. In this post I’d like to show how to layout & program a tag cloud for hugo, a static site generator. When creating a new article in the content folder, dont’t miss to enter the “tags” and “categories” taxonomy information. Continue reading...

Leverage page bundles in Hugo

Page Bundles in Hugo Page bundles are available in hugo (a static web site site generator which is great fun) for quite a while now. I always wanted to store files (assets and images, etc…) which belongs to an article in the same directory as the article itself - or at least in a sibling directory down below the content tree. Continue reading...

Tcl/tk savedefault package

Tcl/tk savedefault package Purpose: This is probably one of my very first utility package I wrote. So, when attempting to create and design a (hopefully) user friendly graphical user interface (GUI), quite early, the first questions that need to be adressed are: Continue reading...

Tcl/TK - Starter package

Programming in Tcl/TK - Starter package What is Tcl/TK ? Tcl/TK (Tool Command Language) is a very powerful but easy-to-learn dynamic and open source programming language. The motivation for this article is to give a beginner, who wants to learn the language some usefull information and as well a “starter package” which includes the required software to start with (see download link below). Continue reading...

Tcl/tk screenshot widget

Tcl/tk screenshot widget Purpose: A TclOO class which implements a so called “screen shot” widget. The function non only allows to take a screen shot from a native tk widget, like for example the image create photo -format window -data $mywidget command, but also works to capture any portion of the screen. Continue reading...

Tcl/tk html3widget

html3widget - a tcl/tk megawidget Purpose: The html3widget is a tcl/tk package which implements a megawidget to render html + css. The code is based on Tkhtml3.0 and as well HV3 which (for the moment) is not actively developed, but still offers a solid base to render html including css support. Continue reading...

How to access a remote sqlite database file: sqlitedb.tcl + sqlitedb.php

sqlitedb.tcl package Purpose: Database connectivity package to establish a connection to a remote sqlite database file via http protocol and with the aid of the SqliteDB PHP interface. Be aware that this package is a proove of concept and far from complete. Continue reading...