It is actually quite easy to start resque workers and resque scheduler using just capistrano, without help of monitoring framework like god / monit.
XFCE Desktop Now for openSUSE 11.4
I finally got to upgrade the appliances from previous tutorials (on creatingXFCE desktop with SUSE Studio and on adding a Slim login manager) to openSUSE 11.4. They’re published on SUSE gallery: 32bit and 64bit version. Feel free to clone, remix and let me know if you think they could be enhanced somehow.
Showcasing Your (PHP) Web App With SUSE Studio
SUSE Studio, together with its Testdrive feature, can be used to setup a demo for your web application. You can then let users download and deploy the appliance and have the service up and running in a few minutes.
In this tutorial, I’ll use status.net as an example. It is a PHP app with MySQL backend. My tutorial should be quite generic though, so you can clone from my appliance and modify it to your liking.
Building XFCE Desktop With SUSE Studio, Continued…
In a previous post, we successfully built an XFCE4 desktop. I promised to enhance it by replacing XDM with SLIM, a tiny but nice login manager. This is how to do it.
Building XFCE Desktop With SUSE Studio
Although we recently hacked in an automagick recognition and start up of several more window managers (windowmaker, fvwm2…), into Studio, XFCE4 is still missing from the list. The reasons are that it simply doesn’t work out of the box without a few tweaks. However, these are easy to do thanks to Studio and I’ll present a step-by-step tutorial, where we’ll build an openSUSE 11.3 appliance with XFCE4 running. If you are already familiar with how to use Studio, just skip to the summary section at the end for a brief list of steps.
Loading External Plugins in CKEditor
Friend of mine needed help with $SUBJ, to extend CKEditor with some extra functionality without changing the source code in editor’s tree. Here is the solution:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
addExternal() (in _source/core/resourcemanager.js:151) only registers a resource, which then needs to be loaded using load() method (_source/core/plugins.js:23). Since it doesn’t automatically call the plugin’s init() function, we have to do it ourselves in the callback and pass it the CKEditor instance as a parameter.
Documentation for addExternal says: “Registers one or more resources to be loaded from an external path instead of the core base path.”. To be loaded actually doesn’t mean it gets loaded via this call.
L10n in Generated sfPropelPlugin Forms
After running
1
| |
Certain strings aren’t translated in automatically generated _form.php partial and Success templates (e.g. ‘Back to list’, ‘Are you sure?’, ‘Delete’, etc…). Indeed, the class responsible for generating these files doesn’t contain calls to l10n function __():
1
| |
I wrote a simple patch that fixes this in the _form.php, but then I realized, that the bug could be present in other templates as well. The final patch for all templates is here: