Ieri ho aiutato un collega a prepararsi un ambiente completo per lo sviluppo di siti usando come linguaggio di preogrammazione il PHP, e la sua scelta è ricaduta su XAMPP per Windows, in modo da avere in unico pacchetto Apache, MySQL e PHP.
Il collega in questione è una persona piuttosto precisa, e prima di procedere all’installazione della piattaforma XAMPP nella sua macchina di sviluppo si è guardato ben bene il manuale utente e il tutorial; alla fine, conscio della serie di step da eseguire, ha proseguito con il download e l’installazione del pacchetto.
php
8
Apr 09
Skype e la porta 80
29
Nov 07
Quando Subversion incontra lo sviluppo web
Dopo un lungo periodo di gestazione, finalmente e’ venuto alla luce questo post, che personalmente reputo molto interessante (ma va??).
Come introdotto dal titolo, espongo uno scenario di uso che mostra come poter integrare Subversion con lo sviluppo e il mantenimento della nostra web application. Nel dettaglio, con web application intendo un applicativo PHP installato in diversi server di produzione: quindi, un punto di sviluppo, tanti punti di utilizzo.
Bene, ipotizziamo ora il workflow per l’installazione per un nuovo cliente: connessione remota verso il server, quindi decompressione (se abbiamo una tarball o un archivio compresso) oppure copia (nel caso di singoli files), niente di trascendentale, quindi; il discorso si complica nel caso in cui ci accorgiamo che il nostro prodotto contiene un bug, oppure se abbiamo apportato modifiche interessanti allo stesso, e in questo caso dobbiamo operare a mano nelle n installazioni, con il rischio di sbagliare/dimenticarsi qualcosa.
E’ qui che Subversion viene in nostro aiuto per realizzare una specie di sistema di installazione/aggiornamento automatizzata di tipo “push” (spero che il termine sia giusto).
29
Jan 07
WordPress 2.1
E anche questo upgrade e’ andato a buon fine, giusto il tempo di fare il backup dei files e dei dati di mySQL!
Per la cronaca, ho seguito l’ottimo screencast di Andrea Beggi.
Buon upgrade a tutti!
Alla prox
15
Mar 06
Setup di PolyglotPolyglot’s setup
Hi all, here’s a small tutorial to setup Polyglot in WordPress.
It’s very easy to do this: you have to get Polyglot from here, unpack the archive and put the files into WordPress’s plugins directory. Now you can activate this plugin from the plugin administration page, and start up to write a multilanguage post.
How? Simply using the lang_xx and /lang_xx tags to enclose the text, in the title and in the body of the post.
A very simple example:
Title: <lang_it> Vino </lang_it><lang_en> Wine </lang_en>
Body: <ang_it> Vino rosso</lang_it><lang_en> Red wine </lang_en>
now it’s enough to bring some modification is to the template ones of the sidebar that to the template ones of the single one post so that in before the languages available appear (than, if selected will apply the language to the blog), and in the second appears the small flag of the languages available for the single post.
Here’s my settings
sidebar.php
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<li><h2> Lingue </h2><ul>
<?php if(function_exists('polyglot_list_langs')){
polyglot_list_langs(false);
}?></ul>
single.php
The last thing that I have made is to modify the file polyglot.php in order to personalize the plugin; here one snippet of mine:
polyglot.php
$polyglot_settings['default_lang'] = 'it';
//You can define your own translations of language shortcuts
//$polyglot_settings['trans']['cs'] = 'česky';
//$polyglot_settings['trans']['de'] = 'deutsch';
$polyglot_settings['trans']['en'] = 'english';
$polyglot_settings['trans']['it'] = 'italiano';
//$polyglot_settings['trans']['nl'] = 'nederlands';
//$polyglot_settings['trans']['sv'] = 'svenska';
//Which language versions you offer for the whole web - use the proper ISO codes!
//$polyglot_settings['knownlangs'] = array('cs','en','sv');
$polyglot_settings['knownlangs'] = array('it','en');
//if there should be shown flags instead of names of languages
$polyglot_settings['use_flags'] = true;
And this is all, simple and clear.
Alla prox
20
Jan 06
Visualizzazione random di filmati FlashRandom visualization of Flash movies
Hi all, this post regards a small script PHP that allows to visualize randomly a Flash movie between those present ones in one directory. The operation mechanism is this: page PHP does not make other that to load an Array the files .swf present in the directory, do a shuffle of the Array and sendes, using the opportune ones header, to browser the content of element 0 of the Array. From the part of page HTML, he is sufficient to modify the references to single swf file relatively to tag OBJECT and EMBED so that pointing to page PHP.
<HTML><HEAD><TITLE>Redirect...</TITLE><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://www.netsons.com/errore-404.html"></HEAD><BODY></BODY></HTML>- Download this code: swfproducer.txt