Archive for May, 2007

WinXP > IE

Tuesday, May 22nd, 2007

Word oder Excel Dokumente nicht im IE öffnen:

  Explorer -> Extras -> Ordneroptionen -> Dateitypen ->
  DOC file auswählen -> Erweitert ->
  "im selben Fenster durchsuchen" abwählen

WinXP > Zwischenablage

Tuesday, May 22nd, 2007

Symbolleiste für die Zwischenablage abschalten:

Die Symbolleiste für die Zwischenablage erscheint dauernd "wie von selbst". Wer das nicht will, dem hilft (für Office 2000) folgender Registry Eintrag:
  HKEY_CURRENT_USER\Software\Micr
[...more...]

WinXP > Explorer

Tuesday, May 22nd, 2007

Explorer mit Startverzeichnis "Arbeitsplatz"

  C:\WINNT\explorer.exe /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

WinXP > Registry

Tuesday, May 22nd, 2007
like: root from here, new explorer window, open Doxbox...
  • Regedit - HKEY_CLASSES_ROOT\Folder\shell
  • neuer Key: root
    • (Default) - Root from here
    • Sub-Key: command
    • (Default) - explorer /e,/root,%1[...more...]

PHP > Directory Functions

Monday, May 14th, 2007
Read a directory and output files
 $list_ignore = array 
         ('.','..','images','Thumbs.db','index.php','.htaccess','.htpasswd'); 
 $handle=opendir ('.');
 while (false !== ($file = readdir ($handle))) {
   if (!in_array($file,$list_ignore))
[...more...]

PHP > string2array using a “template”

Monday, May 14th, 2007
divide a string with a template. the "template dividers" are the keys for the output array.
  <?PHP
  function string2array ($string, $template){
    #search defined dividers
    preg_match_all ("|%(.+)%|U", $template, $template_matches);
   
[...more...]

Unix Prompt

Monday, May 7th, 2007
here is my current Unix prompt (I would appreciate if someone could tell me how I put in the name of the current user ("whoami"). %n only gives me the name of the user that started the shell, but if I do a "su someone", I'd like to see his name here). A ni
[...more...]