stephantom's Vault

Welcome

stephantom's avatar

Because I am not creative enough to come up with a complete page, I will just post my experiments with CSS, XHTML and PHP. If you find anything you like you may use it for your own projects without paying me. Blogging continues here. Former bloggins are achived here.
You can now contact me using the fresh contact form!
Enjoy,

stephantom

PHP

calcstring() view, source
This function tries to execute a calcuation given in form of a string.
Kown issues
Point-Degree to h-m-s view, source
Quick way to convert statements like 45.34234° into hours, minutes and seconds.
Correction module view, source
A pretty neat thing I did for some guy. This allows you mark words in a text (useful for teachers) and then return it through a form. See for yourself.
mind reader view, source
I got the idea for this from another website. It took me some time to figure out how it works, but then it was quite easy to recreate.
Arrays from JavaScript in PHP view, source
It is possible to submit an array from JavaScript to PHP. The magic is done by this function that squeezes a JavaScript array down to a string you can easily read with unserialize().
Please read the background info in this post.
Guestbook script demo, download
This is an almost complete guestbook script I once wrote for someone. It has minor issues here and there but it performs quite well.
Please view the online demo!
Codewalkers Entry view, source
This is my pathetic try to participate in a codewalkers contest. It neither finished nor really working.
Colormatch view, source
This is something really cool. Give it an image and it gives you some kind of "average" color.
May be useful to catalogue images based on their average color. Be sure to give it a try!
Compare colors (ccolors) view, source
Here is something that I was wanting to do for some time - a simple function where you can compare two colors (in hex values) to each other and get the similarity in percent. Maybe I'll some sort of gallery script with that.
Working with colors dynamically could lead to better image search / catalog skills of your scripts.
Now Playing for Winamp / WWW Indicator view, source
That one is also very neat. If used correctly it is able to display an image which tells your visitors what you are listening at the moment.
If you would like to use it please read this. Needs the "Now Playing" plugin for Winamp.
Random designing view, source
This generator gives you a completely different design everytime you reload the page. Includes a function to invert colors given in hexadecimal values.
Most of the time complete randomness produces colors that may hurt your eyes. You have been warned.
Note: This example uses my homemade template system!
Swearword generator view, source
This generator is able to create over 22134 german swearwords. Some of them are quite entertaining :-)
de_date() view, source
string de_date(string format, [ int timestamp ]);
This function formats your timestamps using german language.
Plain editor view, source
This is an editor that is really quick & dirty. Change the filename in the first line and you're ready to go.
Trackback maker view, source
A sample implementation of the trackback system used in blogs.

XHTML/CSS

Self-expanding textareas view, source
This textarea automatically expands as you write. You'll never run out of space!
gulli:board Style proposal view, source
I submitted this once for review but it never got chosen. Use it if you like it.

Contact info

If you need/want to get in touch with me please use my GnuPG Public Key to encrypt your mail!