Deutsch Introduction When running a Linux system in its graphical mode, keyboard mappings can be changed by using xmodmap. Each key on the keyboard has a „keycode“ which can be found out by looking at the output of xmodmap -pke > current-keyboard or by running xev for trying out the keys. I am using a …
Kategorie-Archive: English
Java: Using Enums for Singletons
This singleton pattern is not really a big deal, but overused because it gives us the coolness of knowing about design patters without learning too much stuff for that… It does have its uses in some programming languages, while more or less implicit or obsolete in others, depending on the point of view. I have …
Automation and its Limits
What we do in IT is programming and implementing and maintaining automatism. The general usefulness is not really challenged these days, but it was quite a big deal a few decades ago. Many routine tasks can be done more efficiently and more reliably or become feasible at all with IT… Just think of getting money …
MS-Windows-Encodings with CMD: Bug or Feature?
Deutsch Whoever is working with MS-Windows, should know these black windows with CMD running in them, even though they are not really popular. The Unix and Linux guys hate them, because they are really primitive compared to their shells. Windows guys like to work graphically. Or they prefer powershell or bash with cygwin. Linux and …
„MS-Windows-Encodings with CMD: Bug or Feature?“ weiterlesen
Code examples in WordPress
When writing word press articles and including example code with <code>, the leading spaces are discarded when the article is displayed and without indention code looks weird and unreadable. A way to bypass this is to transform tabs to spaces, and then replace all spaces by no-break-spaces (unicode 0x00A0). Then the indention remains intact. Direct …
Design Patterns: Singleton
Deutsch This Singleton Pattern has the advantage to be easy to memorize. The only really interesting aspect of it is the issue of initialization („lazy or „eager“) and maybe the dependencies between multiple singletons. But I would like to mention two generalizations. A Singleton exists once in the whole program. Generalizations can address the uniqueness …
Using Collections
When Java came out about 20 years, it was great to have a decent and quite extensive collection library available as part of the standard setup and ready to use. Before that we often had to develop our own or find one of many interesting collection libraries and when writing and using APIs it was …
Indexing of Database Tables II (additional indices)
Additional indices („indexes“ in Oracle’s English) apart from the primary key are extremely important for the performance of databases. There is this magic behind it, when a complicated query with multiple joins runs slowly and magically becomes faster when adding the right index and the right hint or does not become faster at all, even …
„Indexing of Database Tables II (additional indices)“ weiterlesen
PDF and PDF/A formats
The PDF format has experienced a success story on its way from being a quasi proprietary format that could only be dealt with using Adobe tools to a format that is specified and standardized and can be dealt with using open source tools and tools from different vendors. It has become accepted that PDF is …
Indexing of Database Tables I (Primary Keys)
Any useful databases with non trivial amounts of data have some indexing mechanism in place that helps finding data based on some key values, because a full table scane or something like that is too expensive and too slow to do it often. The most typical situation is having a key and one or more …