Blogs

STL Viewer

STL-Viewer STL Files: STL (an abbreviation of “stereolithography”) is a file format native to the stereolithography CAD software. Nowadays STL files are widley used within 3D-Printing technology. Purpose: As there is no build-in support to preview STL files for the Windows-Explorer (as far as I know…), I implemented this utility program for only this reason. The software is self dependent and consists of one single executable. The program emulates a local web server and therfore requires an up-to-date web browser installation (iExplorer, Safari, etc…).

Continue reading

STL files: How to convert from ascii to binary

Convert STL files from ascii to binary STL (an abbreviation of “stereolithography”) is a file format native to the stereolithography CAD software. For a full description of the specification refer to the following links: https://de.wikipedia.org/wiki/STL-Schnittstelle https://en.wikipedia.org/wiki/STL_(file_format) Purpose: Since the introduction of the 3D-Printing technology, the stereolithy (STL) file format has become very popular. In general, there are 2 possible file-formats : ascii and binary STL files. The most common format is ascii, although it consumes a lot more disc space and also takes significant more time to read in comarison to its binary counterpart.

Continue reading

Halter für Polar M450 + SynchrosRR 1.0

Halter für Polar M450 + SynchrosRR 1.0 Nachdem es käuflich keinen Halter für den Fahrradkomputer Polar M450 und der Lenkereinheit Syntace/SynchroRR 1.0 gibt, hier eine kurze Beschreibung, wie das Problems mittes 3D Druck-Teil zu lösen ist. Die Kombination Polar M450 + SynchrosRR1.0 Lenker wird zwar nicht sehr oft verwendet, kenne jedoch einige Fahrradkollegen, die gegenständlichen Radkomputer noch sehr gerne am Rennrad fahren. Grund dafür ist die einfache Handhabung und Zuverlässigkeit (wenn man kein Navi am Lenker braucht) - sprich: “Einschalten und losfahren”.

Continue reading

How to add search to a static site

How to add search to a static site generated with Hugo… … using lunr.js Since version 0.20 Hugo has a build in capability to create a (customized) index file of available markdown documents down below the content directory tree. Once this index file is available, we can use lunr.js - a jquery based javascript - to implement a search functionality. The search result pops up instantly, while the user is typing… - pretty neat!

Continue reading

Tcl/Tk xtablelist

XTablelist Package Purpose: A TclOO class to extend the fabulous tablelist widget. TclOO naming conventions: public methods - starts with lower case declaration names, whereas private methods - starts with uppercase naming, so we use CamelCase … widget commands: xtablelist::xtablelist xtablelist::configure xtablelist::cget xtablelist::xtablelist understands all commands from original tablelist, for more sub-command refer as well to the public class interface widget options: -xhideoption boolean “yes”,1 / “no”,0 (default: “no”), hide/show a popup-menu which allows to manipulate the tablelist column display

Continue reading

Tcl/tk BWidget_patch

BWidget_patch Purpose: This package solves some issues with BWidget in conjunction with the ttk widget set. As long as the bugs are not fixed, this package can be used to “overload” original procedures where the problems araise. Usage: A typical initialization sequence might look like: # starkit support sequence: if {[catch { package require starkit if {[starkit::startup] eq "sourced"} { return } }]} { namespace eval ::starkit { if {[set this [info script]] == ""} { set this [info nameofexecutable] } variable topdir [file normalize [file dirname $this]] } } # where to find support packages: lappend auto_path [file join $::starkit::topdir "lib"] package require Tk package require tile # initialize a custom theme (optional): set ctheme "plastik" package require ttk::theme::${ctheme} ttk::setTheme $ctheme package require -exact BWidget 1.

Continue reading

HelpViewer based on Tkhtml 3.0

HelpViewer Application The HelpViewer is a standalone application to display html files which might be organized in a directory structure. The program is written in tcl/tk and is based on the Tkhtml 3.0 library. When starting the application, a dialog pops up, where you can drag&drop your prefered directory using the file explorer: Features: Once a directory is specified, the program traverses down the tree to search for all available html files.

Continue reading

ImageFlow for Hugo

ImageFlow for Hugo Hugo is a static site generator, whereas ImageFlow implements a nice interactive image gallery ontop of hugo’s infrastructure. Example: jQuery(document).ready(function() { var instanceOne = new ImageFlow(); instanceOne.init( { ImageFlowID: 'myImageFlow', xStep: 100, opacity: true, slider: true, captions: true, slideshow: true, slideshowAutoplay: true, slideshowSpeed: 4000, startID: 2, onClick: function() { $.fancybox.open( { href: this.getAttribute('this.url'), title: this.getAttribute('alt'), } ); } }); });

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. The following picture illustrates of how a html file with underlying css bootstrap3.xx framework might look like: The package might be used to implement an internal help viewer (for an application) in an easy way.

Continue reading

Markdown2Go

Markdown2Go Markdown: Markdown is a text-to-HTML conversion tool for web writers and to create various html documentation in an easy way. Follow this link to find outmore about the Markdown Syntax … What is Markdown2Go ? Let’s you instantly convert ‘markdown’ text files to html. Markdown2Go is an easy to use desktop utility which allows to convert text files from markdown to html. The program includes all required software like the markdown converter itself, plus some more useful packages like the caius extension (with table support) and bootstrap (a frequently used css framework).

Continue reading