Category: Geeky Technical Stuff


These aren’t default functions but I thought I’d post them:

<?php

	function toalphanum( $string ) {
		$newstring = "";
		for( $i = 0; $i < strlen( $string ); $i++ ) {
			if( ( ( $string[$i] >= "A" ) && ( $string[$i] < = "z" ) ) || ( ( $string[$i] >= "0" ) && ( $string[$i] < = "9" ) ) ) {
				$newstring[$i] = $string[$i];
			} else {
				$newstring[$i] = "_";
			} // end if
		} // end for
		return implode( "", $newstring );
	} // end toalphanum

	function toalpha( $string ) {
		$newstring = "";
		for( $i = 0; $i < strlen( $string ); $i++ ) {
			if( ( $string[$i] >= "A" ) && ( $string[$i] < = "z" ) ) {
				$newstring[$i] = $string[$i];
			} else {
				$newstring[$i] = "_";
			} // end if
		} // end for
		return implode( "", $newstring );
	} // end toalpha

?>

Nothing brilliant but I find it useful all over the place.

This is a really interesting video so I thought I’d share it with you. I’ve actually coded the game of life stuff when I first heard about it. It’s fun stuff to play with and change the rules to see what happens. :D

Bad Science claims about the Multiverse

Mostly I’m interested in the cell game and fun automata experiments like it, but if you have anything to add please comment on this article.

Crayon Physics Screenshot

I hadn’t heard of this until I saw a digg video about the Deluxe Version.

Crayon Physics is a game with a simple concept. You draw on the screen with your mouse, stylus or other pointing device and attempt to get your red circle to the stars.

I find most of the fun is in drawing in crayon on a screen and making boxes fly all over the place and explode in interesting ways.

With enough levels and interesting puzzles I think this might make a great Nintendo DS game – especially if they found out some way of taking advantage of the second screen.

The soundtrack is extremely fitting and it’s available under creative commons licence.

Download:

Have you ever been staring at your alarm clock in the dark, trying to fall assleep at 12:34 AM and thought to yourself, “Hey! It’s Sequential Time!”

Does it make you sad when it becomes 12:35?

How about when it becomes 12:51? (Symmetrical Time)

Um, I have nothing to say about this because it speaks for itself. Enjoy!

Ugh, that first video is dead. Here’s an active one of somebody using the robot:

kampai!