Erik Smistad Blog

Moore Neighbor Contour Tracing Algorithm in C++ 16

Moore Neighbor Contour Tracing Algorithm in C++

This post shows the implementation of Moore’s neighbor tracing algorithm in C++. This algorithm performs what is called contour tracing i.e. tracing the borders or boundaries of, in this case, a binary image. The...

How to restrict user access to content in folders using PHP and Apache .htaccess files 10

How to restrict user access to content in folders using PHP and Apache .htaccess files

So I was faced with this problem: I needed to restrict access to content(images, files, documents..) in folders, and normally this is done by using a .htacces and .htpasswd file, but I needed more...

Fix for HTTP Error when uploading images in WordPress 2.8 4

Fix for HTTP Error when uploading images in WordPress 2.8

When installing this wordpress blog I encountered a problem when trying to upload files. When googling the problem I found that some had been trying to mess around with the .htaccess file. I tried...