Suchen / SearchNavigation |
Scripting OtherArticles about scripting, other languages than AppleScript Ghostscript 9.02 Mac OSRemark September 2011: I used the installation linked on this page for several weeks now, on OS X 10.5, 10.6 and 10.7 (Lion). The installation worked without problems in all cases and I am happy with it. That is: I think that Mr. Koch’s installer can be recommended. Bemerkung September 2011: Ich hab die hier verlinkte Installation mehrere Wochen unter OS x 10.5, 10.6 und 10.7 (Lion) benutzt. Die Installation lief in allen Fällen ohne Probleme und ich bin mit ihre glücklich. Soll heißen: Ich glaube, den Installer von Koch kann man empfehlen.
PHP Writer for Apple Property ListsThe code discussed here creates Apple plists in PHP. The main intention for writing it was to get a better mechanism to transfer data from databases to AppleScript – particularly to get the proper data types. Complete script libraries for database access may follow later. This part of the project may still be helpful for people using a combination of AppleScript and PHP shell scripts. This article is quite technical of course.
PHP Mail-AdressprüfungDie angehängte Dateisammlung extrahiert mit einer Funktion "mail_extract" aus einer Mail-Adresse den eigentlichen Mailbox-Anteil. (Aus "Jürgen Schell <info@j-schell.de> (ein Kommentar)" wird info@j-schell.de herausgezogen.) Dabei findet eine Überprüfung statt, ob der ursprüngliche String formal korrekt ist. Optional wird geprüft, ob der Domain-Teil (hier: europeteam.biz) überhaupt auf einen Mail-Server zeigt. Die Funktion kann mit IDNA-Domains wie tüv.de leben.
Versuch über eine Translate FunktionBeim Gestalten von Web-Seiten, die in mehreren Sprachen laufen müssen, gibt es ein Übersetzungsproblem. Beliebt ist eine Funktion namens t, die ähnliche Argumente nimmt wie sprintf. Die Funktion nimmt eine Locale-Datei und liefert ggf einen übersetzten String für die Darstellung auf der Web-Seite zurück. Dies ist ein Versuch, wie man so eine Funktion einigermaßen Grammatik-verträglich macht (Plurale) und zweitens performant hält.
Message IDs in Mail und Content IDs (cid) in HTML MailMessage-IDs sollte man beim Mail versand selbst bauen, wenn man für späteres Threading die Antworten identifizieren können will. Als Content-IDs taucht dasselbe Konzept auf, z.B. für eingebettete Bilder in HTML Mail. Dieser Code-Schnipsel spart hoffentlich wühlen in RFCs (namentlich zu multipart/related und Internet Message Protocol, 2822).
Message IDs in Mail and Content IDs (cid) in HTML MailMessage IDs in Mail and Content IDs (cid) in HTML Mail This article provides a very short and simple PHP snippet. The purpose is to save you from the necessity to read several Internet mail standards (particularly about multipart/related and Internet Message Protocol, RFC 2822). Message IDs and Content IDs have the same structure, so the same snippet serves both.
Finding the second Sunday of a Month in PHPSomething I am not doing often: Adding some search terms: This is about a PHP script to find the first, second, third, forth or last Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday of a month. I had several hits on this page searching exactly for the words in the title. Obviously, this is a topic, where it it very hard to find a good search string, if you have the problem. That is why I added all combinations in the first paragraph.
Remarks on “Modulo” (Remainder)Particularly in the date calculation examples on this site, the modulo operation is used quite a lot. The modulo operator is written as “%” in PHP and many other languages, as “mod” in AppleScript. Sometimes it appears as a function like “mod” or “rest”. This operation may look strange to you. It is no standard operation in mathematics, but in the world of computer science it is. Unfortunately it has different versions.
Bemerkungen zu moduloBesonders in den Datumsberechnungen auf diesem Site wird die modulo-Operation laufend benutzt. Der modulo-Operator wird in PHP und vielen anderen Sprachen als »%« geschrieben, als »mod« in AppleScript. Bisweilen ist er eine Funktion namens »mod« oder »rest«. Die Operation mag seltsam aussehen. Es ist keine Standard-Operation in der Mathematik, aber in der Welt der Informatik ist sie es. Leider gibt es verschiedene Versionen.
Den zweiten Sonntag im Monat mit PHP findenEtwas, was ich selten mache: Suchbegriffe zufügen. Dieser Artikel behandelt ein PHP-Script um den ersten, zweiten, dritten, vierten oder letzten Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag / Sonnabend oder Sonntag im Monat zu finden. Ich hatte diverse Treffer auf dieser Seite, die exakt nach den Wörtern im Titel gesucht haben. Offenbar ist dies ein Thema, bei dem man schwer eine gute Suche formulieren kann. Deshalb hab ich alle Kombinationen im ersten Absatz ergänzt.
|