GPON(Gigabit-capable PON)
是基于ITU-TG.984.x标准的最新一代宽带无源光综合接入标准,具有高带宽,高效率,大覆盖范围,用户接口丰富等众多优点,被大多数运营商视为实现接入网业务宽带化,综合化改造的理想技术。本文结合 GPON技术产品的应用实践,提出了GPON技术在中国市场的基本应用模式。
2009年1月21日 星期三
2009年1月18日 星期日
PHP: Generate random password
function generatePassword ($length = 8)
{
// start with a blank password
$password = "";
// define possible characters
$possible = "0123456789bcdfghjkmnpqrstvwxyz";
// set up a counter
$i = 0;
// add random characters to $password until $length is reached
while ($i < $length) {
// pick a random character from the possible ones
$char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
// we don't want this character if it's already in the password
if (!strstr($password, $char)) {
$password .= $char;
$i++;
}
}
// done!
return $password;
}
{
// start with a blank password
$password = "";
// define possible characters
$possible = "0123456789bcdfghjkmnpqrstvwxyz";
// set up a counter
$i = 0;
// add random characters to $password until $length is reached
while ($i < $length) {
// pick a random character from the possible ones
$char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
// we don't want this character if it's already in the password
if (!strstr($password, $char)) {
$password .= $char;
$i++;
}
}
// done!
return $password;
}
2009年1月14日 星期三
Resource Description Framework (RDF)
- based upon the idea of making statements about resources
- in the form of subject-predicate-object expressions, called triples
-subject ->denotes the resource
-predicate-> denotes traits or aspects of the resource and expresses a relationship between the subject and the object - e.g. The sky has the color blue
subject-> the sky
predicate->has the color
object->blue - persisted in relational database or native representations also called Triple stores, or Quad stores if context (i.e. the named graph) is also persisted for each RDF triple
訂閱:
意見 (Atom)