Archivio per May, 2006

Basta aggiungere un crontab 

0 11,23 * * * mysqldump -A -Q -u root | gzip -9 > /home/mysql/mysql.$(date '+\%a\%p').dump.gz

Si creeranno una serie di files come:

mysql.SatAM.dump.gz
mysql.SatPM.dump.gz
mysql.SunAM.dump.gz
mysql.SunPM.dump.gz

21
05

Scripts opensource

posted di Administrator, in ajax, flash, javascript, links, php, siti web. No Commenti

Una completa lista di scripts opensurce si trovano su http://opensourcescripts.com

ASP ASP
ASP.NET ASP.NET
C & C++ C & C++
Delphi & Kylix Delphi & Kylix
Java Java
JavaScript JavaScript
Perl Perl
PHP PHP
Python Python
Unix Shell Unix Shell
Visual Basic Visual Basic
Other Tool Services Tools & Services

openwysiwyg e freerichtexteditor sono due potenti editor WYSIWYG open source. Hanno la maggior parte delle funzionalità dei miglior editor WYSIWYG e producono codice xhtml.

 

21
05

Realizzare contenuti con tabs

posted di Administrator, in javascript, links. No Commenti

E' frequente vedere menu come questo

 

Questa tecnica è utilizzata soprattutto se si ha poco spazio nella pagina e tanti contenuti da mostrare. Il codice necessario per capire come realizzarlo, lo possiamo vedere da http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

21
05

Javascript 2 e il futuro del web

posted di Administrator, in javascript, links. No Commenti

 

Interessante articolo sul futuro del web con l'uso di javascript su:

http://developer.mozilla.org/presentations/xtech2006/javascript/ 

Dal sito http://yvoschaap.com è possibile scaricare una libreria javascript che consente di editare in tempo reale il contenuto della pgina e verificare i cambiamenti a essa fatta.

link: http://www.yvoschaap.com/index.php/weblog/ajax_inline_instant_update_text_20/ 

18
05

Copia e incolla in javascript

posted di Administrator, in javascript, tutorials. 1 Commenti

Per fare copia e incolla con javascript occorre usare la funzione "clipboardData.setData" che copia un testo negli appunti di windows.

<a href="#" onclick="clipboardData.setData('Text','stringa da copiare')">Copiami</a>

http://www.pxl8.com è un ottimo sito come risorsa per tutorials dhtml, ci sono molti esempi e tutorials soprattutto su DOM.

Riporto la lista:

  • appendChild()
  • Creating a Scrolling Table Using appendChild() and insertBefore()

cloneNode()

  • DOM Compliant Copying of "innerHTML/innerText"
  • Cloning Existing Form Objects

createElement() - a, table, form
removeChild()
removeNode()

Dates and Calendars

  • A Basic Calendar
  • Calendar Date Picker
  • Getting Any Date You Want - Autofilling Date Fields
  • Valildating and Formatting Dates

innerHTML / innerText

  • DOM Compliant for Netscape 6
  • Non-DOM Compliant

Climbing the Node Tree - Easy Access to Document Elements Via the DOM

Alternating Table Row Color Using the DOM

  • Every Other Row
  • Groups of Rows

Remote Scripting - Introduction - Targeting a Hidden iframe - Moving Data From an iframe to the Parent - Moving Object Level Data Across Frames - Adjusting Your History - Access Denied

Creating A Table Row Mouseover Effect
Browser Inconsistency in Implementing setAttribute(), getAttribute(), and removeAttribute()

Styling Input Elements

  • Using getAttribute() and Type
  • Using Attribute Selectors

Many Select Boxes, So Little Code
Using the DOM to Clear Form Elements
Formatting Phone Numbers With Javascript
Getting Any Date You Want - Autofilling Date Fields
Valildating and Formatting Dates

 

In questo tutorial impareremo come creare un archivio  ZIP e TAR dinamicamente usando PHP e  PEAR::Archive_Zip e PEAR::Archive_Tar packages.

Link: http://www.phpit.net/article/creating-zip-tar-archives-dynamically-php/ 

18
05

Una lista completa di template engine

posted di Administrator, in php, tutorials. No Commenti

Su http://www.sitepoint.com/forums/showthread.php?threadid=123769 c'è una lista completa di template engine.

1. PHP (yep PHP itself is a template engine)
2. Smarty
3. XSLT - technically XSLT is also a template engine
4. PEAR::HTML_Template_Flexy
5. PEAR::HTML_Template_IT
6. PEAR::HTML_Template_PHPLIB
7. PEAR::HTML_Template_Sigma
8. PEAR::HTML_Template_Xipe
9. patTemplate
10. PHPTAL (port of Zope templates)
11. PHP Savant - reclaiming PHP
12. SimpleT - also reclaiming PHP
13. YATS - Yet Another PHP Templating System
14. phpBB template engine
15. Fast Template
16. Tiny But Strong
17. YAPTER (yet another yet another?)
18. Simple Turtle Template
19. MiniTemplator
20. TagTemplate

E altri ancora su http://www.sitepoint.com/forums/showthread.php?threadid=123769

web tracker