Column count in SQL

Column count in SQL

At rare occasions you might need to know the number of columns in a database table. This isn’t necessarily as easy as counting rows.

Read more…

String encryption in PHP

String encryption in PHP

I’ve been working on 2 PHP functions that can be used to encrypt and decrypt alphanumeric strings between web pages. This is used for e.g. Captcha codes that you can generate yourself and encrypt / decrypt with these functions.

Read more…

Alphanumeric Captcha values in PHP

Alphanumeric Captcha values in PHP

In my former post I wrote about making Captcha solutions without the need for database storage. I wrote an example exclusively based on pure numeric values. I’d like to illustrate how you could create alphanumeric Captcha values instead of numeric ones, as this might be of interest for someone who would like a more fully fledged solution.

Read more…

Your own numeric Captcha in PHP

Your own numeric Captcha in PHP

The purpose with a Captcha user control is to give the user a challenge that a computer normally can’t resolve. In most cases this means an image with random letters and numbers on it. This is rather easy to set up without any need for a database, that many use as a solution to handle the encrypted messaging that has to happen between part1 and part2 in a Captcha utility.

Read more…

DHTML Flyout Menus

DHTML Flyout Menus

A script I made ages ago for all my DHTML flyout menu needs. It utilizes csshover.htc which you can read more about here. Easy to implement on any web site and useful as an example on how to use the csshover.htc to create your own dynamic HTML menus.

Read more…

Structured vs OOP programming

Structured vs OOP programming

Many developers have long discussions about what the best way to code is – structured or objective oriented. I feel often I need to justify my choice of staying mainly with structured programming. So I decided to shed some light on this subject from my own point of view. Inexperienced developers sometimes makes the mistake to think that Structured Programming is more linear than OOP and therefore less powerful.

Read more…

A Simple Win32 Window in C

A Simple Win32 Window in C

I decided to get a better grasp on the Win32 API while I made my keylogger a while back. Here is a small example for making the most basic Win32 window. It is heavily commented to give a thorough overview of the different elements.

You can download the example with its source code here.

Javascript Animation Engine

Javascript Animation Engine

This is a small animation engine I made to handle an animation that a good friend of mine created in 3D Max and exported to images. This should have been made in Flash for any serious use, but for a quick experiment and FPS testing it worked out fine.

Read more…

Recursive file searching function in PHP

Recursive file searching function in PHP

I recently made a search function for an image gallery that had to have the capability of searching for images in a directory and its subdirectories – on any level.  This is the second time ever that I have used a recursive function, this is a good example for when a recursive function can be useful.

Read more…

Disabling WordPress Post Revisions

Disabling WordPress Post Revisions

WordPress 2.8 has what I would call a nasty default habit of saving way too many drafts / revisions during post editing. Read more…