giovedì 19 novembre 2009

bah

mah

martedì 10 novembre 2009

Capturing Click Data

Capturing Click Data: "Capturing Click Data
Capturing click data is useful when you want to look at trends such as pages that are looked at the most, or amount of traffic.

To do this you would need to call the function below each time a page is loaded to capture the click data such as user ip, page title and url. Ofcourse you can capture more info here, for example date.
Further on you would need to save the click data in a database or text file (for example a csv file ready to be viewed in excel).


function saveClickData($pageTitle){
//try and get the ip of the client.
$ip ='';
if ( isset($_SERVER['REMOTE_ADDR']) ) {
$ip = '' . $_SERVER['REMOTE_ADDR'] . ' ';
} else if ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
$ip = '' . $_SERVER['HTTP_X_FORWARDED_FOR'] . ' ';
} else if ( isset($_SERVER['HTTP_CLIENT_IP']) ) {
$ip = '' . $_SERVER['HTTP_CLIENT_IP'] . ' ';
}
$link = $_SERVER['PHP_SELF'].$_SERVER['QUERY_STRING'];
}"

SEO URLs with PHP

SEO URLs with PHP: "SEO URLs with PHP"

Do you want to implement your own search friendly url engine? Limeware has its own URL rewrite engine which is not dependent on Apache mod_rewrite. It is relatively easy to implement in other systems or to adapt to your specs.This is an evil url: www.notfriendly.com/index.php?menuID=28&type=articleThis is a good url: www.friendly.com/index/menuID_28-type_articleMy solution in Limeware CMS is to do the URL processing in PHP. If you follow these steps you will have your own Apache compatible URL rewrite engine in no time.Step 1.In your .htaccess file (If you don't have one, then create a new one in the folder where your index.php resides) add the following:
ForceType application/x-httpd-phpThis simply tells your apache server to treat "index" in the url as "index.php". If you are using a server other than apache, then you will need to configure it to do this.Step 2.Implement the class below so that an instance is create each time index.php is executed. What this does is it takes the special url www.friendly.com/index/menuID_28-type_article andsplits it into www.friendly.com/index/ and menuID_28-type_article strings, then it creates an array:array['menuID'] = 28array['type'] = articleYou cannot use $_GET['paramName'], instead call getItem($key) method in UrlFilter passing the name of the parameter you want, for exaple: $this->urlFilter -> getItem("menuID").You can use any number of parameters, and name them as you wish, all you have to do is use the getItem() method and you got yourself nice URLs. Ofcourse you will need to build your links correctly for this to work, use getOriginalUrl() for this, then add your parameters to it: /param_value-param2_value2-param3_value3 and so on...
// constructs search friendly urls and create correct url paths for links and imagesclass UrlFilter { var $origUrl; var $numOfItems; var $itemsMap; function UrlFilter() { $this->processURI(); $this->constructBaseUrl(); } function processURI() { $array = explode("index", $_SERVER['PHP_SELF']); $newUrl = str_replace("/", "", $array[count($array)-1]); $array = explode("-", $newUrl); $num = count($array); $this->numOfItems = $num; $url_array = array(); $items = explode("-", $newUrl); $num = count($items); for ($i = 0 ; $i < $num ; $i++) { $item = explode("_", $items[$i]); $this->itemsMap[$item[0]] = $item[1] ; } } function constructBaseUrl() { // need to construct the original url $array = explode("index", $_SERVER['PHP_SELF']); $num = count($array); $this->origUrl = ""; for ($i = 0; $i < $num-1 ; $i++) { $this->origUrl = $this->origUrl . $array[$i]; } } function getItem($key) { if (array_key_exists($key, $this->itemsMap)) { return $this->itemsMap[$key]; } else { return null; } } function getOriginalUrl() { return $this->origUrl . "index"; } function getBaseUrl() { return $this->origUrl; }}

martedì 13 ottobre 2009

venerdì 24 luglio 2009

How to copy files using SSH [Archive] - The macosxhints Forums

How to copy files using SSH [Archive] - The macosxhints Forums: "copy from a remote machine to my machine:
scp user@192.168.1.100:/home/remote_user/Desktop/file.txt /home/me/Desktop/file.txt

copy from my machine to a remote machine:
scp /home/me/Desktop/file.txt user@192.168.1.100:/home/remote_user/Desktop/file.txt

copy all file*.txt from a remote machine to my machine (file01.txt, file02.txt, etc.; note the quotation marks:
scp 'user@192.168.1.100:/home/remote_user/Desktop/file*.txt' /home/me/Desktop/file.txt

copy a directory from a remote machien to my machine:
scp -r user@192.168.1.100:/home/remote_user/Desktop/files /home/me/Desktop/."

mercoledì 8 luglio 2009

Browse synergy Files on SourceForge.net

Browse synergy Files on SourceForge.net: "synergyby crs23 Summary
Files Support
Develop
Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems without special hardware. It's intended for users with multiple computers on their desk since each system uses its own display."

lunedì 6 luglio 2009

Actionscript 3.0 Webcam Motion Detection with Interaction Physics su Flickr - Condivisione di foto!

Actionscript 3.0 Webcam Motion Detection with Interaction Physics su Flickr - Condivisione di foto!: "Actionscript 3 application I wrote that performs motion tracking via webcam."

Flash AS3 Webcam Motion Tracking | Detecting and tracking webcam movement

Flash AS3 Webcam Motion Tracking Detecting and tracking webcam movement

yep

kirupa.com - Exploring 3D in Flash

kirupa.com - Exploring 3D in Flash: "Scripting 3D in Flash
by senocular
Introduction
So you want to learn 3D in Flash eh? This is the place to start. It's an intermediate level tutorial discussing the core concepts involved in what's needed to create 3D in Flash. Though it takes a very primitive approach to handling the 3D described, the tutorial does assume a fairly moderate level of experience in using Flash and ActionScript.
Here is an outline of all the sections covered. This is not necessarily an easy topic so you should really start from the beginning. Enjoy."

Starry Trails - 3D Particle System ActionScript 3 source code

Starry Trails - 3D Particle System ActionScript 3 source code

interessante

openFrameworks

openFrameworks: "watch: made with openFrameworks"

... da studiare !

BioRUST.com :: Graphic Resources (aka. The Download Centre)

BioRUST.com :: Graphic Resources (aka. The Download Centre):
"Photoshop Layer Styles
Layer styles are an absolutely invaluable tool, allowing you to apply many different effects in a single click. Best of all, they make no changes to the underlying image - so you can easily remove the effects later if you dont like them."

Photoshop Layer Styles

Photoshop Layer Styles
Layer styles are an absolutely invaluable tool, allowing you to apply many different effects in a single click. Best of all, they make no changes to the underlying image - so you can easily remove the effects later if you dont like them.

How to Set Perspective Projection of Display Objects - Experiments in Flash CS4

How to Set Perspective Projection of Display Objects - Experiments in Flash CS4:
"Our Favorite Way of Assigning a PerspectiveProjection Object to a Display Object"

It is well-explained and illustrated in the ActionScript 3 for Flash Player 10 documentation and manuals how to manipulate the perspectiveProjection property of the root objectIt is well-explained and illustrated in the ActionScript 3 for Flash Player 10 documentation and manuals how to manipulate the perspectiveProjection property of the root object

giovedì 11 giugno 2009

Undolog.com» Actionscript 3.0 for beginners: lesson #5

Undolog.com» Actionscript 3.0 for beginners: lesson #5: "Actionscript 3.0 for beginners: lesson #5"

fast actionscript tutorial

Macromedia Flash - Creating components in Macromedia Flash MX

Macromedia Flash - Creating components in Macromedia Flash MX

Creating components in Macromedia Flash MX
Components are Macromedia Flash MX movie clips with defined parameters that are set during document authoring. Parameters correspond to variables in the ActionScript attached to the movie clip, which control the behavior and appearance of the movie clip. In this tutorial you'll learn to create:
A button component with parameters for a customizable button label, label font, and label color
A custom icon for the component to appear in the Components panel when you add the component to the Macromedia Flash MX application
A plain text or XML description of the component that will appear in the Reference panel
A Live Preview movie that enables users to see the effects of different parameter settings while working in the Macromedia Flash MX authoring environment
A custom interface for the component, to make it easier for users to enter parameter values