PHPLDAPAdmin Installation
Dec 06, 07 by Juan Lebrijo about Administration, blog, LDAP
PHPLDAPAdmin is an application for the LDAP server administration developed in with PHP. Once installed in a LAMP server we could to administer the Directory Service through the internet. See my refference table as allways: Origin http://phpldapadmin.sourceforge.net/ Repository http://phpldapadmin.sourceforge.net/download.php Package phpldapadmin-1.1.0-alpha3.tar.gz Documentation (english) http://wiki.phpldapadmin.info/tiki-index.php?page=Documentation&bl&bl=y Installation:
  • Unzip and move the pacckage to the web root directory:
tar -zxvf phpldapadmin-1.1.0-alpha3.tar.gz
mv phpldapadmin-1.1.0-alpha3 /var/www/ldap
  • Copy the default config file to the real config file:
cd /var/www/ldap
cp config/config.php.example config/config.php
Configuration:
  • Add the server (we could administer many directories as we want):
$ldapservers->SetValue($i,'server','name','Descriptive name for the server');
// In my case the directory is in the same machine as PHPLDAPAdmin, unless
// we write the server IP.
$ldapservers->SetValue($i,'server','host','127.0.0.1');
// Port of the service
$ldapservers->SetValue($i,'server','port','389');
// Directory domain
$ldapservers->SetValue($i,'server','base',array('dc=lebrijo,dc=com'));
$ldapservers->SetValue($i,'server','auth_type','session');
$ldapservers->SetValue($i,'login','attr','cn');
$ldapservers->SetValue($i,'login','pass','');
  • Attr=cn, to login with the admin user of the LDAP directory, to administer the server.
  • Warning: we must ensure it encrypting with https.
In the /etc/php5/apache2/php.ini change the memory limit from 16 to 32 MB:
memory_limit = 32M
The web access will be: http://www.tudominio.com/ldap/
Flash básico 05: Animaciones
Dec 03, 07 by Juan Lebrijo about blog, Flash
Llegamos a la joya de Flash, las animaciones. Hasta ahora solo hemos editado figuras, y para ello tenemos mejores herramientas como Photoshop (también de Adobe). La paleta de fotogramas nos marca la escena en el eje de tiempos:
image027.png 2.92 KB
Para borrar fotogramas bien:
  • Seleccionamos los fotoframas.
  • Boton derecho raton --> borrar fotogramas
Para hacer una animación frame a frame:
  • Boton derecho raton “Insertar fotograma clave” ó F6 en el siguiente frame.
  • Lo cambiamos un poco.
  • Insertamos frame clave en el siguiente,....
Pero la más cómoda es "Animación por interpolación de movimiento" (todo desde boton derecho raton):
  • Insertamos fotograma clave en un intervalo amplio
  • image029.png 1.28 KB
  • Insertamos con “Crear Interpolación” (pulsando intro podemos ver como se mueve).
  • Al crear interpolación crea un símbolo de objeto raí “Animar 1”. “Sol” sería la instancia de animar 1, es decir la animación.
  • image031.png 1.63 KB
  • Para crear frames para todo y ver el movimiento, en la escena, botón-derecho-Insertar fotograma sobre todos los elementos.
  • image033.png 1.91 KB
Puede interpolarse no solo el movimiento, también el color:
image035.png 2.63 KB
Para ejemplo está el siguiente, en el que animamos un sol y unos pajarillos (fuente):
Flash basics 05: Animations
Dec 03, 07 by Juan Lebrijo about blog, Flash
Arriving to the Flash jewell, the animations. Until now we have edited images, and we have better tools for this purpose, like Photoshop (from Adobe). The frameset palette mark us the scene in the time axe:
image027.png 2.92 KB
To delete the frames good:
  • Select the frames.
  • Right mouse button --> delete frames
Making an animation frame to frame:
  • Right mouse button “Insert a key frame” or F6 in the following frame.
  • Change the image a little.
  • Insert the key frame in the following,....
But is more comfortable the "Movement interpolation animation" (all from right mouse button):
  • Insert a key frame in a long interval
  • image029.png 1.28 KB
  • Insert with “Create Interpolation” (pussing intro we can see the movement).
  • When creates an interpolation it is created a symbol in the root  object “Animar 1”. “Sol” is an instance of "Animar 1", it is the animation.
  • image031.png 1.63 KB
  • To create frames for all and see the movement, in the scene, Right mouse button Insert frame over all the layers.
  • image033.png 1.91 KB
We can interpolate the colour as the movement:
image035.png 2.63 KB
You can see the example in the following file, anime one sun and some birds (source):