The Wumpus World in Jess
The Wumpus world problem is another Artificial Intelligence Toy Problem, which exists in many different forms and versions. Solving the Wumpus World in Jess, as stated by this instructions from the...
View ArticleHints for creating presentations using LaTeX and Beamer
I’m regularly using LaTeX+Beamer for my presentations. It’s an easy and consistent way to obtain good looking and layout consistent presentations. For using Beamer in general, there are many good...
View ArticleImage classification using SVMs in R
Recently I did some Support Vector Machine (SVM) tests in R (statistical language with functional parts for rapid prototyping and data analysis — somehow similar to Matlab, but open source ) for my...
View ArticleAround the Firewall: ssh proxy and ssh port forwarding
If you happen to a) be behind a firewall which does not allow you to reach a certain destination on the web, or b) be outside in the web and cannot access a certain destination inside a network, the...
View ArticleWho lives on which floor?
You might know logic puzzles such as the zebra puzzle/Einstein puzzle: they are perfect examples of what can easily be solved in the logic programming language Prolog. Prolog in a nutshell: you can...
View ArticleWho has to attend the party?
As a follow-up to Who lives on which floor?, this is another small problem perfectly fitted for a solution written in Prolog (it’s actually on of the many exercises from the 2. semester Algorithms and...
View ArticleMastermind: code guessing helper in Prolog
Mastermind board seen from the codemakers perspective. You may know Mastermind, the 2 player board game where one player becomes the codemaker, who creates the code, and the other player becomes the...
View ArticleBatch panorama stitching with review using Hugin
Panorama of Mount Batur, Bali, Indonesia. Stitching images to a panorama may take it’s time — which might be frustrating in case you need to create a whole lot of panoramas. Hugin can save you a lot of...
View ArticleAnimated gif creation with automatic image alignment
Animated gif created with align_image_stack and convert. In case you took some photos showing a scene in motion, you probably want to create an animated gif out of them. If you did not use a tripod for...
View Articleconvertconditional: convert an image if it fulfills certain conditions
Recently I needed a script to batch convert only those images amongst a large amount of images which fulfil certain criteria, namely of being exactly of a stated size. The script is based on...
View ArticleLinux: remove files that got deleted while written – or how to lose track of...
Just stumbled across why you should not simply delete files such as: /var/log/syslog /var/log/kern.log These files get written permanently, therefore are opened. The application writing to the file has...
View ArticleLinux Bash: log commands of all shells immediately to a single command history
One of the useful features of Linux Bash is to search the command history using Ctrl+R. Although the feature is useful I like to tune it’s default config a bit in order to improve my user experience....
View ArticleVisitor pattern to replace getting object metainformation from runtime
Assume we have different types of objects with a common interface in a single list. Objects in our example are instances of Circle, Rect and Polygon, which are all GeometricForms. In order to treat...
View Articlemctune: multicore hyperparameter tuning in R on the example of car detection
mctune In Machine Learning (ML) tasks finding good hyperparameters for machine learning models is critical (hyperparameter optimization). In R there exist some packages containing routines doing that...
View ArticleBatch video conversion on Linux command line
A short note on batch video conversion on Linux command line – on the example of converting all MOV in the current folder to AVI and keeping the original files. find . -iname "*MOV" -exec avconv -i {}...
View ArticleBatch replace text in Linux files using sed
Another very short note on a frequently used Linux tool: sed (short for Stream EDitor). In a nutshell sed manipulates data streams such as text streams. Therefore it can be used to batch replace text...
View ArticleBatch sort jpg images to folders named after dates images were taken
Once in a while I need to transfer pictures taken with my mobile phone for private use (jpg format) from my phone to my PC – and to sort them there. I want my pictures sorted in folder named by the...
View ArticleUbuntu Gnome 14.04: our usually applied configurations
As we (darksider15 and myself) regularly set up PCs for private use with Ubuntu and Gnome Shell we’d like to share our usual considerations before doing the installation as well as our list of usually...
View ArticleVector graphics: batch manipulation on command line
Once in a while I need to manipulate multiple vector graphics at once (mostly svg, but could be embedded in pdf as well). For this purpose I list those commands I regularly resort to below, either...
View ArticleSVM classification example with performance measures using R caret
The caret package (short for Classification And REgression Training) This example is a followup of hyperparameter tuning using the e1071 package in R. This time we’re using the SVM implementation from...
View Article