Author Archives: Uwe Heber

Outlook Kontakte in einzelne vcf (vCard) Datei exportieren

Leider bietet Outlook 2007 keine native Export-Funktion, um Kontakteinträge als vCard-Dateien (elektronische Visitenkarte) für andere Programme zu exportieren. Wie dies jedoch mit geringem Aufwand realisiert werden kann, soll dieser Beitrag beschreiben.

  1. Erzeugen Sie einen temporären Ordner, in welchem Sie die zu exportierenden Dateien zwischenspeichern wollen. Das Beispiel verwendet den Ordner temp auf dem Desktop des aktuell angemeldeten Nutzers (C:\Users\uheber\Desktop\temp)
  2. Markieren Sie alle zu exportierenden Kontakte in Ihrem Outlook-Kontakte-Ordner mittels der Tastatur-Kombination STRG+A
  3. Öffnen Sie das Kontext-Menü (rechte Maustaste) und wählen Sie "Vollständigen Kontakt senden" -> "im Internet-Format (vCard)" aus
  4. Daraufhin wird eine Email generiert, welche sämtliche vorher selektierten Kontakte als Anhang in VCF-Format enthält
  5. Markieren (STRG+A) und Kopieren Sie alle Anhänge in die Zwischenablage Ihres Speichers (STRG+C) und fügen Sie diese (STRG+V) in den temporär angelegten Ordner (C:\Users\uheber\Desktop\temp) ein
  6. Öffnen Sie die Konsole über "Start" -> "Alle Programme" -> "Zubehör" -> "Eingabeaufforderung"
  7. Wechseln Sie mit der Konsole in das temporäre Verzeichnis, in welches Ihre Kontakte vorher im VCF-Format gespeichert wurden:
    cd C:\Users\uheber\Desktop\temp
  8. Führen Sie alle vcf-Dateien *.vcf in eine einzelne Datei all.vcf mittels folgenden Befehl zusammen:
    copy *.vcf all.vcf

Der Befehl kopiert dabei den Inhalt sämlicher VCF-Dateien in eine einzelne VCF-Datei, welche dann im Anschluß für andere Applikationen (wie z.B. Thunderbird, SOGo, Google-Mail etc.) für den Import genutzt werden kann.


Tagged , , , ,

Getting a substring before the last occurrence of a character in XSLT 1.0

With XSLT 2.0 a method is provided, which splits a string by a specific delimiter (e.g. commas, spaces or other) quite easily.

<xsl:variable name="subString" 
        select="substring-before-last($arg, $delim)"></xsl:variable>

This function returns the part of $arg which appears before the last occurrence of $delim. If $arg does not contain $delim, a zero-length string is returned.

If you split the string “XPath-is-fun” as $arg with $delim “-” you will get the following result:

XPath-is

Unfortunately, this function is not provided in XSLT 1.0. But there is a possibility of realizing this without any 3rd party libraries (e.g. EXSLT). The following example shows, how this can be done with XSLT 1.0.

Readmore…

Tagged , ,

S/MIME signature with Mozilla Thunderbird

This article describes how private emails, which are written in Mozilla Thunderbird, can be signed before they are sent by the author. For this purpose, S/MIME (Secure/Multipurpose Internet Mail Extensions) is used, to encrypt and sign emails by X.509 standard.

In order to obtain such a certificate for signing emails, there are a few free CAs (Certification Authority). Here Comodo is used as CA, which offers this service free of charge for private use. Comodo confirms with a signature the authenticity and identity of the owner, for which the certificate is issued.

Readmore…

Tagged , ,

Lenovo X121e – Enable WiFi after login

When I boot my Lenovo ThinkPad X121e (Intel® Core™ i3-2367M CPU @ 1.40GHz × 4) with Ubuntu 11/10 or 12/04 LTS, wake it up from standby or hibernation the wireless connection is always disabled.

I can enable it by right-clicking on the network manager icon in the panel and click on “Enable Wireless”. After I’ve done that the wireless works flawlessly.

I’ve been looking for a solution for it, especially since it is not clear to me whether this is an error in the network manager. After some research on the Ubuntu forum, I found an interesting thread, which describes the solution for my problem.

Readmore…

Tagged

Tokenize a String in XSLT 1.0

With XSLT 2.0 a method is provided, which tokenizes a string by a specific delimiter (e.q. commas, spaces or other) quite easily.

<xsl:variable name="stringList" select="tokenize('XPath is fun', ' ')"/>

This subsequently can be used to iterate over the individual String elements:

<xsl:for-each select="$stringList">
	<xsl:value-of select="." />
</xsl:for-each>

The result of this easy method call is tokenized by spaces, so we get:

"XPath", "is", "fun"

Unfortunately, this function is not provided in XSLT 1.0, but there is the possibility of realizing this without any 3rd party libraries (e.q. EXSLT). The following example shows, how this can be done with XSLT 1.0.

Readmore…

Tagged , ,

Getting current date and time in XSLT 1.0

With XSLT 2.0, a method is provided, which quite simply determines the current date or time.

<xsl:value-of  select="current-dateTime()"/>

Unfortunately, this is not possible with XSLT 1.0, but there is the option to realize this using Java or JavaScript resources within the stylesheet. Here is an example, using Java, that works with Xalan and is default available in the ORACLE JRE.

Readmore…

Tagged , ,

XHTML validation against DTD schema in Java

Recently I had the problem of validating XHTML file using DTD schema and Java. As for DTD validation to find little on the Internet, I would like to explain briefly how this is possible by simply using Java resources.

Readmore…

Tagged , , ,

Convert objects into XMLGregorianCalendar

The following examples show, how a date, calendar or formatted String can be converted into XMLGregorianCalendar object.
Readmore…

Tagged ,

Sorting files in Java

In some circumstance it is neccessary to get a sorted List of files from folder. Therefore the Java API provides some functions to access the local file system. The following snippets will demonstrate how the identified files can be sorted useful:
Readmore…

Tagged ,

Synchronize SOGo calendar with MozillaThunderbird

Calendar details including appointment dates, which were generated with the Open Groupware-System SOGo, can be integrated into Mozilla Thunderbird (Version 10.0) without any problems and synchronized automatically. Thunderbird has to be extended with the Add-on “Lightning” (Version 1.2) thereto. The necessary steps are explained below:
Readmore…

Tagged , , , ,
Seite 1 von 212