Bei der Ausgabe von Objekten ist Data::Dumper oft zu gesprächig, weil er die Strukturen bis ganz in die Tiefe ausgibt. So läßt sich die Tiefe begrenzen:
Meine Erfahrungen beim Konfigurieren eines externen Monitors an einem Dell Inspiron 9200 möchte ich hier kurz beschreiben. Ich habe dabei nur versucht den analogen Ausgang zu konfigurieren, nicht den DVI-Ausgang mangels geeignetem Endgerät.
Auf dem Rechner kommt XOrg in der Version 6.8.2-r1 mit den vorkompilierten ATI-Treibern media-video/ati-drivers 8.14.13-r2 und die media-video/ati-drivers-extra 8.14.13.
Mittels dem Tool fglrxconfig aus dem ati-drivers-extra habe ich mir eine Funktionierende Xorg.conf zusammengestellt, vorwiegend mit den Standard-Einstellungen. Danach habe ich die Einstellungen entsprechend den speziellen Bedürfnissen angepasst.
Zu beachten sind dabei folgende Punkte:
Da das Display des Inspiron 9200 die ungewöhnliche Auflösung von 1440×900 Pixeln hat, hat es etwas gedauert, eine korrekte Modeline dafür zu finden: # Modeline
ModeLine "1440x900" 77 1400 1408 1416 1424 900 901 902 903
Das Touchpad funktioniert am besten mit dem Synaptics-Treiber x11-misc/synaptics und der entsprechenden Konfigurationssektion unter InputDevice. Ich habe zwei InputDevice-Sektionen, damit parallel zum Touchpad noch eine USB-Mouse betrieben werden kann. Im ServerLayout wird dies dann mit diesen Anweisungen festgelegt:
InputDevice "Touchpad" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents" Da das Touchpad immer angeschlossen ist, habe ich es als Core-Pointer eingestellt.
Die komplizierte Device-Section ist von fglrxconfig erstellt. Dabei habe ich herausgefunden, dass die
Option “DesktopSetup” “0×00000100″ dafür zuständig ist, Wie die Ausgabe an die Grafikports erfolgt.
“0×00000000″: nur Ausgabe auf dem Laptop-Bildschirm
“0×00000100″: gleiche Ausgabe auf Laptop-Bildschirm und externem Monitor
“0×00000200″ und mehr: Aufgeteilte Ausgabe (Desktop wird unter zwei Schirmen aufgeteilt)
Leider scheint nur die gespiegelte Ausgabe, bei der auf dem externen Monitor das gleiche zu sehen ist, wie auf dem eingebauten Display, zu funktionieren. Die anderen Einstellungen lassen den X-Server nicht mehr starten.
Noch ein Tipp: das X-Tool fireglcontrol kann zum einstellen des Displays benutzt werden, es kann die Ausgabe gesteuert werden wie nur internen Monitor, das gleiche auf internem wie externem Monitor ausgeben und extended-Desktop Einstellungen. Es verändert jedoch direkt die xorg.conf ohne ein Backup davon zu erstellen. Ein Backup vor Gebrauch des Tools von der /etc/X11/xorg.conf ist also dringend anzuraten.
Hier die komplette xorg.conf:
# File: xorg.conf
# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.
I wanted to create vcards out of userdata from an application. There is a module called Text::vCard and the first impression was that it would be an easy job. Finally it took much more time than I thought because the documentation is not easy to understand and does not describe the API completly.
For this reason i want to write a small howto for the next time
I wanted to get the textual output from the vcard. So I started creating an new Text::vCard, but could not find a method to output the content. After some reading I found out that the only way is to use am addressbook and create a vcard from this one:
my $addressbook = new Text::vCard::Addressbook();
my $vcard = $addressbook->add_vcard();
Next Step is to fill the base-data. Vcard knows base-data and “more complex” data. Note that $self is my user-object which contains the data.
Next Step is an Name-Node. This node belongs to the more complex ones and you can use. I do not know for what more than one of them can be used, but there must be any reason. The Method add_node is used to create a new node of a special type.
# namen setzen
my $name = $vcard->add_node({'node_type'=>'N'});
$name->family( $self->get('name') );
$name->given( $self->get('prename') );
Next i added an address-node. You can add multiple here i think. I did not try, but in other nodes you can do something like that: $add->add_types(’WORK’);
Ein kostenloses und sehr interessantes Bildverwaltungsprogramm gibt es seit kurzem von google: Google Picasa. Meine ersten Erfahrungen dazu sind überaus positiv. Das Programm war ca. 3 MB groß damit mit DSL schnell heruntergeladen.
Die Installation lief reibungslos (als Otto-Normal-Benutzer). Danach fragte das Programm sofort, ob die Festplatte nach Bildern untersucht werden sollte. Dieser Vorgang dauert einige Zeit. Das Programm ist allerdings auch während der Suchzeit benutzbar. Es werden alle Bilder gefunden, die irgendwo auf der Festplatte rumfliegen. Diese werden sehr übersichtlich dargestellt, im Hauptfenster werden sie nach Ordner sortiert dargestellt.
Es wird versucht, die Ordner auch zeitlich nach Jahren zu gliedern, was allerdings nicht so gut funktionierte. So sind die meißten Ordner von 2005 in 2003 gelandet, was nicht so richtig Sinn macht.
Die Dia-Show Funktion ist man von anderen Programmen gewohnt, man bekommt was man davon erwartet. Weitere Funktionen zum bearbeiten von Bildern haben sich als sehr nützlich erwiesen. Hat man ein Bild offen, hat man die Möglichkeit einige grundlegende und erweiterte Einstellungen vorzunehmen. So hat sich zum Beispiel die rote Augen-Funktion, die rote Augen zuverlässig entfernt, sowie die Aufhellfunktion für Dunkle Bilder sehr nützlich.
Wie sollte es anders sein, ist eine Suchfunktion in das Programm integriert, die wie man es von google erwartet, zuverlässig und äußerst schnell funktioniert. Ohne weiteres Handanlegen findet man natürlich nur Ordner oder Bildnamen. Nutzt man allerdings die Möglichkeit, Beschreibungen zu den Bildern zu vergeben, ist die Suche eine riesen Sache.
Fazit: nette, moderne, schnelle und intuitive Oberfläche, sehr nützliches und Tool zum verwalten von Bildern. Ich kann es sehr empfehlen.
Posted in Uncategorized | By Administrator Comments Off
Der Select-Zusatz sql_buffer_result weist mysql dazu an, eine temporäre Tabelle für das Ergebnis zu verwenden. Dies führt dazu dass das Table-Lock schnell wieder aufgelößt wird.
SELECT sql_buffer_result ID FROM table
Das sollte zum verhindern von Tabellenlocks ausprobiert werden.
Posted in Uncategorized | By Administrator Comments Off
Short Reference Guide to vi Commands
Moving Around
h, j, k, l – moves one space or line left, down, up, right.
^D, ^F, ^U, ^B – moves 1/2 or a full screen at a time.
0 – moves to the beginning of a line
$ – moves to the end of a line.
H, M, L – moves to top, middle or bottom of screen
G – moves to end of file
1G – moves to first line of file.
nG – moves to line n in file.
w – moves forward a word
b – moves backward a word
e – moves to end of current word
‘ (single-quote) – moves back to “previous” location.
(, ) – move to the beginning (end) of the current sentence.
{ , } – move to the beginning (end) of the current paragraph.
Getting rid of Things
d
dd – a line
dw – a word
d$ = D – from here to end of current line
d0 – from here to beginning of current line
x – one character
dG – delete from here to end of file.
Adding and Changing Text
i – enter insert mode to left of current cursor position
I – insert at beginning of current line
a – enter insert mode to right of current cursor position
A – insert at end of current line
r – replace a single character
R – enter overstrike mode.
c
u – undo the last text addition or deletion
:i,js/
//g – substitute replacement for all occurrences of pattern in the line range i, j
y
Y – yank an entire line (or lines)
Saving Changes, Quitting, reading and writing files
ZZ – save the current file and exit.
:w – write using current file name
:w – write using new name.
:w! – write, even though a file exists with that name.
:q – quit without saving
:q! – really quit.
:wq – write and then quit
– exit while saving changes
:r – read the named file into the buffer at the current cursor position.
Marking lines and Finding Patterns
mx – mark the current position, and name it x (legal names are a-z, inclusive)
/
– search foreward in the text for the given pattern.
?
– search backward in the text for the given pattern.
n – find the next instance of the pattern.
N – find the next instance of the pattern backwards.
Miscellaneous Commands
^Z – suspend execution of vi and return to the shell (see the jobs and fg commands to see how to return to vi)
^V – prefix command to allow you to insert control characters into text.
~ (tilde) – change the case of the current character.
n>> – move indentation n lines right shiftwidth spaces
n< < - move indentation n lines left shiftwidth spaces
> – shifts the text object (lines only) shiftwidth spaces
< – shifts the text object (lines only) shiftwidth spaces
. (period) – repeat the last insert or deletion command.
Hints and Tips
xp – swap two letters ddp – swap two lines
dwwp – swap two words dwbp – swap two words backwards.
There are 26 named buffers defined in vi; these buffers can be used to hold text in cut and paste operations and to hold boilerplate for memos, letters, etc.
“xy yanks the text object into the named buffer.
Example: “ay9 will yank the current line and the next 9 lines into the buffer “a.
“xp – will put the contents of the buffer “x at the current cursor position.
Posted in Uncategorized | By Administrator Comments Off
gefunden durch: Suche nach den Stichworten “bewertung von wissen” bei google.
Notizen:
Arten von Wissen sind hier beschrieben: Kernwissen, weiterführendes Wissen, Innovationswissen.
Art des Wissens ist zeitlich abhängig. Heutiges Innovationswissen wird morgen weiterführendes Wissen.
Nur die Umsetzung von Wissen in Produkte, Dienstleistungen oder Patenten.
Komlexitätskette des Wissens:
Wissenscontrolling: Neben der Unternehmensbilanz spielt auch die Bewertung der Leistungsfähigkeit hinsichtlich Wissen und Innovationskraft eine immer größere Rolle bei der Bewertung eines Unternehmens.
Vermarktung von wissen: Schaffen von Expertensystemen
Wesentliche Frage beim Wissensmanagement: welche Rolle spielt das Wissen im Unternehmen? Bei einer automatisierten Kreditvergabe bleibt das Wissen im Unternehmen.
Stolpersteine:
Wissensmarketing, dh. der Vertrieb von Wissen als Produkt ist neu am Markt
Kunde kauft Katze im Sack. Das Vertrauen des Kunden zum Wissensträger muss gegeben sein.