Code Projects

Multiproc (C/C++)

This is an example piece of code that shows how to count the number of processors/cores there are in a system, create a thread for each and assign each thread to a specific processor. Useful if you want to write applications that do a lot of heavy processing and you wish to make use of dual/tri/quad core processors to make everything that bit better.

Target Blank XHTML (JavaScript)

Target Blank is a piece of JavaScript that replicates the functionality of target=_blank from older html doctypes that no longer exists in XHTML.

Autofix Broken Images (JavaScript)

ImageFix is a piece of JavaScript i created to help make ecommerce systems appear more professional when images go missing or get broken, it aims to replace missing images on the fly by checking if all images within a page have been loaded.

mkuser.sh - command line cpanel replacement (Bash Script)

This is the first shell script i have ever written that actually does something, allows you to create a user, set their password, add them to samba, and create their public_html user directory for Apache2.