Caputo's blog

Informatica, tecnologia, programmazione, fai da te, papercraft e papertoy

Bellissima galleria fotografica in jQuery e CSS3!

Novembre 26th, 2009 by Giovanni Caputo

Demo: http://demo.tutorialzine.com/2009/11/hovering-gallery-css3-jquery/demo.php

Codice Sorgente: http://demo.tutorialzine.com/2009/11/hovering-gallery-css3-jquery/demo.zip

Tutorial: http://tutorialzine.com/2009/11/hovering-gallery-css3-jquery/

Category: Programmazione | No Comments »

Creare file Zip in PHP

Settembre 18th, 2009 by Giovanni Caputo

* creates a compressed zip file */
function create_zip($files = array(),$destination = '',$overwrite = false) {
	//if the zip file already exists and overwrite is false, return false
	if(file_exists($destination) && !$overwrite) { return false; }
	//vars
	$valid_files = array();
	//if files were passed in...
	if(is_array($files)) {
		//cycle through each file
		foreach($files as $file) {
			//make sure the file exists
			if(file_exists($file)) {
				$valid_files[] = $file;
			}
		}
	}
	//if we have good files...
	if(count($valid_files)) {
		//create the archive
		$zip = new ZipArchive();
		if($zip->open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) {
			return false;
		}
		//add the files
		foreach($valid_files as $file) {
			$zip->addFile($file,$file);
		}
		//debug
		//echo 'The zip archive contains ',$zip->numFiles,' files with a status of ',$zip->status;

		//close the zip -- done!
		$zip->close();

		//check to make sure the file exists
		return file_exists($destination);
	}
	else
	{
		return false;
	}
}

ESEMPIO APPLICATO

 
$files_to_zip = array(
	'preload-images/1.jpg',
	'preload-images/2.jpg',
	'preload-images/5.jpg',
	'kwicks/ringo.gif',
	'rod.jpg',
	'reddit.gif'
);
//if true, good; if false, zip creation failed
$result = create_zip($files_to_zip,'my-archive.zip');
Fonte: sastgroup

Category: Programmazione, Siti Web | No Comments »

Template e-Commerce

Gennaio 29th, 2009 by Giovanni Caputo

Di seguito 35 template trautiti  per i più comuni sistemi di e-Commerce come Os-Commerce, Magento, zen Cart etc..

1. WordPress Templates

Crafty WordPress Theme | Demo | Download

Screenshot

WordPress e-Commerce Plugin | Download

Screenshot

2. Prestashop

CleanBlue

Screenshot

et-black

Screenshot

PrestaThemes
A collection of free high-quality templates for PrestaShop.

3. osCommerce Templates

Footwear | Download

Screenshot

Appliance | Download

Screenshot

Cosmetics Store | Download

Screenshot

Computer Store | Download

Screenshot

4. Magento Templates

Modern Theme | Download from Magento

Screenshot

Blue Skin | Download from Magento

Screenshot

Telescope Theme | Download from Magento

Screenshot

Pet Store Theme | Download from Magento

Screenshot

Free Magento Theme from Template Monster | Download

Screenshot

Electronics Store 3 | Download from eCommerce-Themes

Screenshot

5. Zen Cart Templates

Free Zen Cart Template | Download

Screenshot

Acadame | Download from ichoze.net

Screenshot

Clothes Online | Download

Screenshot

6. CubeCart Templates

LiteFree

Screenshot

Clean Blue
A collection of free CubeCart 3 Skins. More free Cubecart skins.

Screenshot

7. CRE Loaded Templates

Electronics Store | Download

Screenshot

Clothes Store | Download

Screenshot

8. General E-Commerce Templates

The following templates were created for the purpose e-commerce but not built for a specific system. If you plan to use one of them, it would need to be adapted to and integrated in the e-commerce solution of your choice. Templates with valid HTML code are marked.

Tool Shop | Download (valid HTML)

Screenshot

Pet Shop | Download (valid HTML)

Screenshot

Auto Parts | Download (valid HTML)

Screenshot

Clothes Collection | Download

Screenshot

Gadgets Template | Download (valid HTML)

Screenshot

Online Movie Store | Download (valid HTML)

Screenshot

Books Online | Download (valid HTML)

Screenshot

Beauty Company | Download (valid HTML)

Screenshot

Clothes Store | Download

Screenshot

Hardware Store | Download

Screenshot

Online Store | Download

Screenshot

Computer Store | Download

Screenshot

Mobile Phone Shop | Download

Screenshot

Hi-Fi Technics Store | Download

Screenshot

Electronics Store | Download

Screenshot

Read the rest of this entry »

Category: Programmazione, Siti Web, Tecnologia | No Comments »

Web Developer Toolbar: estensione per gli sviluppatori web per Firefox

Novembre 6th, 2008 by Giovanni Caputo

Volev segnalare a tutti gli sviluppatori web una estensione per Firefox molto utile:
Web Developer Toolbar

Io personalmente, come già scritto in un altro post, utilizzo Firebug

Non ho ancora provato la prima estensione. C’è qualcuno che lo ha fatto? Quale consigliate o ritenete che sia migliore tra i due?

Category: Programmazione, Siti Web, Tecnologia | No Comments »

Firebug 1.2 per Firefox 3

Giugno 18th, 2008 by Giovanni Caputo

Qualche giorno fa ho scritto a proposito del plug-in  Firebug, in versione beta per la RC3 di Firefox.

Firebug 1.1 (beta) per Firefox 3 (beta)

Volevo avvisarvi che da poco è dosponibie la versione 1.2.0b3 del plug-in per Firefox 3.

Category: programmi | No Comments »