Archive of published posts on January, 2006

Back home

Visualizzazione random di filmati FlashRandom visualization of Flash movies

01/20/2006

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.

  1. <HTML>
  2. <HEAD>
  3. <TITLE>Redirect...</TITLE>
  4. <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://www.netsons.com/errore-404.html">
  5. </HEAD>
  6. <BODY>
  7. </BODY>
  8. </HTML>
2 Comments

Lista dei packages da aggiornare via mailList of the packages to update by email

01/18/2006

I have written this small shell script in order to obtain via email the directory of the packages to update, I hope can be useful to some FreeBSD user!

1
2
3
4
5
#!/usr/local/bin/bash
FILE=`ruby -e 'print Time.now.to_i'`
pkg_version -l "< " > ${FILE}
cat ${FILE} | mail -s 'Pacchetti da aggiornare' user@server.tld
rm ${FILE}
No Comments

Hello world!

01/18/2006

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Esatto, come dice il messaggio, benvenuto nel mio sito/blog! Ho appena finito di installare WordPress, per cui non ti spaventare se non trovi altri contenuti… Passa a trovarmi tra un pò, troverai più contenuti!

1 Comment