Archivio per April, 2008

Viene qui fatta una rassegna essenziale del software che viene maggiormente utilizzato per gestire servizi comuni su un server. Va vista come indicazione sui software mainstream, quelli più diffusi e sui quali più facilmente ci si può trovare ad operare.

Quasi tutti i prodotti sotto elencati sono Open Source e disponibili su Linux come su altre piattaforme. Windows Incluso.

File sharing
Samba Windows networking. Condivisione di file e stampanti, avanzata e performante compatibilità con NetBios.  
NFS Server File sharing attraverso il protocollo NFS, richiede un kernel con tale supporto abilitato.

Web Server e Application Server
Apache Il server web utilizzato dal 60% dei siti Internet. Flessibile ed estendibile con moduli.  
Tomcat Java Application Server del progetto Apache. Interessante ma poco performante.
PHP HTML embedded scripting language. L'alternativa OpenSource ad ASP di Microsoft. Molto diffuso.
Mod Perl Modulo PERL per Apache. Fondamentale per chi sviluppa in Perl.

Mail & News Server
Sendmail SMTP server, cresciuto con la Rete. Molto utilizzato, molto flessibile.  
Postfix Alternativa SMTP a Sendmail. Facilmente configurabile. Con enfasi sulla sicurezza.
Qmail Altro SMTP server alternativo a Sendmail. Dal design recente e sicuro.
INN Server NEWS dell'ISC.

DNS & DHCPD
Bind Il server di DNS più utilizzato. Presente in tutte le distribuzioni.
Dhcpd Il server DHCP dell'Internet Software Consortium, incluso in tutte le distribuzioni disponibili sul mercato.  

DB Server & LDAP
MySQL SQL server Open Source. Molto veloce, con qualche limitazione sulle funzioni più complesse.
PostgreSQL Alternativa a Mysql, prodotto Open Source.
Openldap L'implementazione Open Source di Ldap.
Oracle ormai ben supportato e certificabile su Linux.

Altri servizi: FTP, WEB CACHE...
Wu-ftpd, proftpd, vsftpd Diversi comuni FTP server.
Squid Proxy server. Web cache engine. La soluzione OpenSource più diffusa.
VNC Virtual Netwrok Computing. Per gestire macchine remote tramite interfaccia grafica.
Lotus Domino/Notes la versione per Linux viene sviluappta di pari passo con quella Windows.

Via: http://openskill.info/infobox.php?IDbox=338 

 

Ottimi tutorial per jquery per designers

Sito web: http://tutorialblog.org/8-fantastic-jquery-tutorials-for-designers/

18
04

ffmpeg e SDL Tutorial

posted di Administrator, in tutorials. No Commenti

 

ottimo ffmpeg tutorial veramente completo e utile per imparare come utilizzare ffmpeg.

Sito web: http://www.dranger.com/ffmpeg/ffmpeg.html

In questo articolo vedremo come modificare lo stile css di una pagina web con uno script javascript. Nella pagina html, avremo l'elenco degli stili:

...

<link rel="stylesheet" type="text/css" href="stile1.css" title="stile1" />
<link rel="alternate stylesheet" type="text/css" href="stile2.css" title="stile2" />

... 

e oltre al resto della pagina, la chiamata al file javascript:

 <script type="text/javascript" src="switcher.js"></script>

cosi impostato:

/* Style Switcher by Paul Sowden, see A List Apart: http://www.alistapart.com/articles/alternate/ */

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);

document.writeln("<div id=\"textsize\">Passa a stile1: <a href=\"#\" onclick=\"setActiveStyleSheet('stile1'); return false;\" id=\"stile1\">Stile1</a><a href=\"#\" onclick=\"setActiveStyleSheet('stile2'); return false;\" id=\"stile2\">Passa a stile2</a></div>"); 

// make sure fopen is not disabled
if( !( ini_get(allow_url_fopen) ) ) exit('Configuration Error: allow_url_fopen must be turned on for this script to work');

//if kill file does not exist you will get an error (client can see url of kill file) so turn off errors
error_reporting(0);

//get kill file
$lines = file('http://www.example.com/killer/clientname.txt');

//if the word kill is in the text file then exit script and show license message
foreach ($lines as $line_num => $line) {
         $license = htmlspecialchars($line);

         if ((strcmp($license,"kill") == 0 )) {
                 exit ("<font color=red size=large><b>There is a problem with this php script's license please contact support at www.mydomain.com</b></font>");
        
         }
 }

//turn error messages back on
error_reporting(E_ALL);

//this section used to check to see if this script is run in a particular domain
//get the domain name
preg_match("/^(http:\/\/)?([^\/]+)/i", $_SERVER['SERVER_NAME'], $matches);
$host = $matches[2];
// get last two segments of host name
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
//echo "domain name is: {$matches[0]}\n";

$valid_domain = 'clientdomain.com';
$domain_name = $matches[0];
if ( $domain_name !== $valid_domain) {
    exit("<font color=red><b>The Script License for this script is valid for use on " . $valid_domain . " only </b></font>");
}

11
04

Tecniche ed esempi di css

posted di Administrator, in css, css, links, tutorials. No Commenti

 

Ottima raccolta di link a tecniche ed esempi di cosa si puo fare con i css. 

Sito web: http://www.alvit.de/web-dev/css-techniques-and-examples.html

11
04

Stili moderni alle tabelle con i css

posted di Administrator, in css, css, links, tutorials. No Commenti

 

Raccolta di siti web che offrono stili css per formattazione di tabelle. 

Sito web: http://www.smashingmagazine.com/...bles-modern-solutions/

09
04

Immagini con watermark con php

posted di Administrator, in php, tutorials. No Commenti

 

Ecco come applicare un testo di watermark a una immagine con php 

Leggi l'articolo: http://smashingcoding.com/2007/12/14/un-watermak-png-propre-en-php/

09
04

Tecniche di cache con php

posted di Administrator, in php, tutorials. No Commenti

 

Ottimi tutorial su come gestire la cache con php 

Sito web: http://smashingcoding.com/2007/10/23/les-techniques-de-cache-en-php/

09
04

timthumb script php per thumbnails

posted di Administrator, in tutorials. No Commenti

 

timthumb script php ti permette di creare al volo thumbnails di immagini jpg.

Sito web: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/

web tracker