Problems with Apache FOP when calling through PHP’s exec

Posted by Eric Bartels

I’m currently using the latest version of Apache’s FOP (0.95). To create the pdf-file from the transformed fo-file I simply call the fop-binary via PHP’s exec. The command is built dynamically. // Some static command here $cmd = ‘/path/to/fop -c config.yml -fo input.fo -pdf outfile.pdf’; exec($cmd); So quiet This doesn’t work! There is no pdf-file. [...]

Inconvenient class-naming with feature receiver and scope=”Farm”

Posted by Eric Bartels

Writing feature receivers during SharePoint customizing a common task. Depending on the scope your features belongs to your code looks similar to the following: public override void FeatureActivated(SPFeatureReceiverProperties properties) { // Scope="Web" SPWeb web = properties.Feature.Parent as SPWeb;   // Scope="Site" SPSite site = properties.Feature.Parent as SPSite;   // Scope="WebApplication" SPWebApplication app = properties.Feature.Parent as [...]

Problems with default values in Propel

Posted by Eric Bartels

Default values rule! I’m using Propel 1.2 (an upgrade will be done soon) but for other people out there … Consider the following declaration-fragment for the “Foo-entity”. Nothing special here. <column name="name" type="VARCHAR" size="32" required="true" /> <column name="culture" type="CHAR" size="5" required="true" default="de_DE" /> Now if we create the new object and show the state (var_dump) [...]

Easy management of hardlinks and junctions on windows-systems

Posted by Eric Bartels

To allow an easy management of hardlinks and junctions via the windows-explorer Hermann Schinagl provides a nice shell-extension.

Oracle 10g Enterprise Manager: Voraussetzung zur Definition der HOST-ID

Posted by Tom Haesevoets

Bei der Definition des Benutzernamens und des Passworts zum Host muss unter Windows der Host-User folgende Berechtigung besitzen: "Anmelden als Stapelverarbeitungsauftrag" Ist dies nicht der Fall bekommt man folgende Fehlermeldung: "RemoteOperationException: ERROR: wrong password for user" Einstellen der Berechtigung: – Öffnen: Programme > Systemsteuerung > Verwaltung > "Lokale Sicherheitsrichtlinien" – Unter "Lokale Richtlinien" > "Zuweisen [...]