Monatsarchiv für Juli 2009

symfony Day Cologne 2009

Ich habe mich mal zum symfony Day Cologne 2009 angemeldet und die Sessions besuchen. Mal schauen was das wird ^^

Facebook Event | Xing Event

[symfony] [propel] Duplicate table found: propel

If you use plugins which comes with their own database tables the following error will occur at reverse engineering:

Some problems occurred when executing the task:
build-propel.xml:479:1: Duplicate table found: propel.
build-propel.xml:465:22: Execution of the target buildfile failed. Aborting.
If the exception message is not clear enough, read the output of the task for more information

So I created a plugin with a task which can be called after the command propel:build-schema. The task will remove duplicate tables and fix I18N entries in xml schema file.

http://www.symfony-project.org/plugins/sfYamlSchemaPatcherPlugin

pulseaudio: High-priority scheduling enabled in configuration but not allowed by policy.

pulseaudio[4914]: main.c: High-priority scheduling enabled in configuration but not allowed by policy.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-source” (argument: “device_id=0 source_name=alsa_input.pci_8086_293e_sound_card_0_alsa_capture_0 tsched=1″): initialization failed.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-sink” (argument: “device_id=0 sink_name=alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 tsched=1″): initialization failed.
pulseaudio[4970]: pid.c: Daemon already running.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-sink” (argument: “device_id=0 sink_name=alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 tsched=1″): initialization failed.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-source” (argument: “device_id=0 source_name=alsa_input.pci_8086_293e_sound_card_0_alsa_capture_0 tsched=1″): initialization failed.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-sink” (argument: “device_id=0 sink_name=alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 tsched=1″): initialization failed.
pulseaudio[4912]: alsa-util.c: Error opening PCM device hw:0: Keine Berechtigung
pulseaudio[4912]: module.c: Failed to load module “module-alsa-source” (argument: “device_id=0 source_name=alsa_input.pci_8086_293e_sound_card_0_alsa_capture_0 tsched=1″): initialization failed.

Die Lösung des Problems

Der User muss der Gruppe “Audio” angehören. Eventuell den Gruppen “pulse*” zudem.

eclipse PDT (PHP Development Tools) Performance

Zur Zeit verwende ich eclipse PDT 2.1 im produktiven Einsatz zur Entwicklung von symfony Webapplications.

Da solche Projekte aus mehreren Hundert von Dateien bestehen können, wird dieses Tool das ein oder andere Mal an dessen Leistungsgrenze getrieben. Dieses Problem spiegelt sich in mehrsekündigem Laden von Vorschlägen wieder, was natürlich nicht immer angenehm ist. Jedoch bleibt es stabil und die Indexierung aller Klassen funktioniert problemlos.

[symfony] Disable web debug toolbar

Sometimes it’s usefull to disable the web debug toolbar in dev mode manually, e.g. in an AJAX response.

sfConfig::set(‘sf_web_debug’,false);