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…

Online hotel price search

Online hotel price search

HotelsCombined is said to be the world’s leading hotel price comparison search engine featuring over 900,000 hotel deals in 20,000 destinations across 195 countries.

Hotel Price Club simultaneously searches all leading hotel reservation sites and direct hotel sites to find you the best available hotel deals. What’s more they compare full price data including taxes, fees and rebates.

www.HotelPriceClub.com

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…

PHP CJ Niche Shop Script

PHP CJ Niche Shop Script

This script was made for making a live CJ product catalogue niche store. It was taken down due to little upkeep time and resources, and is now free to play with for everyone who wants an example for using CJ on a XML/SOAP level.

Read more…

Nokia Snapshot by KiKiMy name is Dag Jonny Nedrelid. I'm an IT consultant and computer programmer living in Southern Norway. Computers have been my hobby and line of work since 1995.

If you want to contact me, you can send me an e-mail. My e-mail address