// EntheoBlog

Archive for 04 July 2008

04 July

createOption('InternetAddress','Automatically create links for internet addresses ?','yesno','yes'); $this->createOption('NewWindow','Open links in a new window?','yesno','no'); $this->createOption('MailAddress','Automatically create links for mail addresses ?','yesno','yes'); $this->createOption('RewriteMailAddress','Rewrite mail addresses with [at] and [dot]?','yesno','yes'); $this->createOption('at','Placeholder for @','text','[at]'); $this->createOption('dot','Placeholder for .','text','[dot]'); } function getEventList() { return array('PreItem', 'PreComment'); } function Treatment($_text) { global $CONF, $blog; if ($this->getOption('NewWindow') == 'yes') { $nw="onclick=\"javascript:window.open(this.href, '_blank'); return false;\""; } if ($this->getOption('InternetAddress') == 'yes') { $_text = preg_replace('/(\s)([http|https|ftp|file]+:\/\/[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); $_text = preg_replace('/(\s)(www\.[a-zA-Z0-9_?=&%;+-.\/]*)/si','\1\2',$_text); } $at = $this->getOption('at'); $dot = $this->getOption('dot'); if ($this->getOption('MailAddress') == 'yes') { if ($this->getOption('RewriteMailAddress') == 'no') { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,5})/s','\1\2',$_text); } else { $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } } if ($this->getOption('MailAddress') == 'no' && $this->getOption('RewriteMailAddress') == 'yes'){ $_text = preg_replace('/(\s)([a-zA-Z0-9\._-]+)@([a-zA-Z0-9\._-]+)\.([a-zA-Z]{2,5})/s','\1\2'.$at.'\3'.$dot.'\4',$_text); } return $_text; } function event_PreItem($_data) { $_data[item]->body = $this->Treatment($_data[item]->body); $_data[item]->more = $this->Treatment($_data[item]->more); } function event_PreComment($_data) { $_data['comment']['body'] = $this->Treatment($_data['comment']['body']); } function supportsFeature ($what) { switch ($what) { case 'SqlTablePrefix': return 1; default: return 0; } } } ?>

Komische Bootprobleme mit GRUB unter SuSE

Wieder mal was aus der Abteilung "Merkzettel für später". Dieses mal geht es um ein nach Kernelupdates ständig neu auftauchendes Problem unter SuSE - Linux.

Das Installscript schreibt den Eintrag für den Linux-Kernel sinnvollerweise in die Konfig-Datei vom Bootloader. Irgendwie ist aber die Benennung der Festplatten im System vor und nach dem booten unterschiedlich. Der Grund könnte sein, dass eine IDE und eine SATA-Platte nebeneinander existieren. Die SATA-Platte wird vom BIOS als erste erkannt, LINUX geht aber davon aus, dass es die zweite Platte in der Suchreihenfolge wäre. Grub orientiert sich offenbar am BIOS (was ja vor dem Bootvorgang auch einleuchtend ist).

[Den ganzen Text lesen] -  Karma: 30 [+/-]
Geschrieben von harko um 22:39:47 Uhr - 1 Kommentar - Keine Trackbacks
Abgelegt unter Technik
Einfach Flattrn wenn es gefällt - Danke.