GaiaOnline hack! NOT.

by admin on Friday 3 September 2010


Check out Charissa’s Youtube and subscribe!www.youtube.com First of all I would like too say this is NOT my real account, but If you want too add her It’s Spoon vs Fork. So this is what people call a GaiaOnline “hack” It doesn’t work anymore because GaiaOnline was updated. Before, When It was older, It would still not have worked. You would instantly type in this java code, and you can change your gold amount too like 999999999 but of course when you would reload the page It won’t be there. People still call this a hack because It gets you banned, thanks for watching :3 Commet,Rate,Subscribe. If you still want too try the code, all you have too do is paste in: javascript: document.body.contentEditable = ‘true’; document.designMode = ‘on’; void 0



Atbot gets more advanced

by admin on Wednesday 1 September 2010


With the help of a multilayer perceptron network, we computed a model and are now able to find the target position of Walls in advance :-) No chance for Walls anymore. Multilayer Perceptron was used from weka directly from our java code.



SEO Tutorial – Installing Google Analytics

by admin on Monday 30 August 2010


You can’t check your SEO if you don’t have data. Google Analytics provides that data through installing their java code into your website. Tampa SEO Company CQuinnDesign.com provides a video tutorial for adding a new GA profile to your console, and then installing the GA Code into your website. Search Engine Optimization and Google Analytics is perfect together. Check out our blog at tinyurl.com



PHP Path Resolution – Now PHP 5.3 compatible!

by LiraNuna on Sunday 29 August 2010

Presenting the PHP 5.3 compatible version of my PHP path resolution class!

Why there should be a difference? Because my original version used create_function, which… created a whole new function object every time you used one of the class’s methods. This was very memory expensive and even incurred a slight performance hit.

The new version uses PHP 5.3′s anonymous functions to create more readable code in addition to reducing memory consumption and execution time.

As usual, the source code is under the WTFPL for you to enjoy without any restrictions.

<?php
 
/**
 * @class Path
 *
 * @brief Utility class that handles file and directory pathes
 *
 * This class handles basic important operations done to file system paths.
 * It safely renders relative pathes and removes all ambiguity from a relative path.
 *
 * @author Liran Nuna
 */
final class Path
{
	/**
	 * Returns the parent path of this path.
	 * "/path/to/directory" will return "/path/to"
	 *
	 * @arg $path	The path to retrieve the parent path from
	 */
	public static function dirname($path) {
		return dirname(self::normalize($path));
	}
 
	/**
	 * Returns the last item on the path.
	 * "/path/to/directory" will return "directory"
	 *
	 * @arg $path	The path to retrieve the base from
	 */
	public static function basename($path) {
		return basename(self::normalize($path));
	}
 
	/**
	 * Normalizes the path for safe usage
	 * This function does several operations to the given path:
	 *   * Removes unnecessary slashes (///path//to/////directory////)
	 *   * Removes current directory references (/path/././to/./directory/./././)
	 *   * Renders relative pathes (/path/from/../to/somewhere/in/../../directory)
	 *
	 * @arg $path	The path to normalize
	 */
	public static function normalize($path) {
		return array_reduce(explode('/', $path), function($a, $b) {
			if($a === 0)
				$a = "/";
 
			if($b === "" || $b === ".")
				return $a;
 
			if($b === "..")
				return dirname($a);
 
			return preg_replace("/\/+/", "/", "$a/$b");
		}, 0);
	}
 
	/**
	 * Combines a list of pathes to one safe path
	 *
	 * @arg $root	The path or array with values to combine into a single path
	 * @arg ...		Relative pathes to root or arrays
	 *
	 * @note		This function works with multi-dimentional arrays recursively.
	 */
	public static function combine($root, $rel1) {
		$arguments = func_get_args();
		return self::normalize(array_reduce($arguments, function($a,$b) {
			if(is_array($a))
				$a = array_reduce($a, 'Path::combine');
			if(is_array($b))
				$b = array_reduce($b, 'Path::combine');
 
			return "$a/$b";
		}));
	}
 
	/**
	 * Empty, private constructor, to prevent instantiation
	 */
	private function __construct() {
		// Prevents instantiation
	}
}

Syndicated via RSS From: http://www.liranuna.com

Get free white papers delivered direct to your inbox from IT Knowledge Hub! Register now for cutting edge webcasts, reports, and white papers in your area of expertise.


Gear 4 Black Box Speaker Review

by admin on Saturday 28 August 2010


This is my gear 4 black box review. you can buy this at amazon.co.uk/amazon.com It is a 20 wat speaker it comes with a remote and line in cable.


Copyright © 2010 IT Knowledge Hub LLC | Advertise | Contact | Privacy Policy | Terms of Use | Register