Postfix+Amavisd-new+Spamassasin+Clamav
Since I had to disable the PTR check in Postfix at Binware because in Spain 90% of mail servers are badly configured and they were all rejected, and now we have lot of spam.
So I decided to install Spamassassin and Clamav to detect and reject some of this spam.
First of all, we need to install needed packages:
apt-get install spamassassin amavisd-new clamav clamav-daemon
We will begin configuring amavisd-new, the configuration files are at /etc/amavis/conf.
In file 20-debian_defaults I changed the header that will be added to each mail processed:
$X_HEADER_LINE = "AntiSpam/Antivirus Scanner at $mydomain";
We need to activate antispam and antivirus check in amavis, this is found in file 15-content_filter_mode. We need to uncomment @bypass_virus_checks_maps and @bypass_spam_checks_maps. The file will look like this:
Eclipse Configuration for Web Development
After trying very different IDE and many Eclipse IDE flawors, this is the best configuration I have found, and all the components are free.
First of all we need to download Eclipse Classic from the Eclipse website.
One of the first things we need to do is to change eclipse.ini, we will make it start faster and increase the memory limit
1 2 3 4 5 6 7 | --launcher.XXMaxPermSize 256m -vm /usr/bin/java -vmargs -Xms40m -Xmx1024m |
The path to Java VM depends on your installation and system, in windows you must search for "javaw.exe". Setting the path to Java VM makes that Eclipse stops searching for the Java VM every start, which makes the start faster.
Now we can start installing the required Plugins. In "Help->Install New Software..." we will add the following Update Sites.
MooStepForm
Hoy repasando los RSS, he visto que anieto2k ha publicado un script para jQuery que convertia un formulario en varios pasos. Lo que ha hecho tener la idea de hacer lo mismo pero con Mootools.
El funcionamiento es el mismo que el script de anieto2k, busca por defecto un formulario (estoy preparandolo para que funcione con mas de uno...) con la class stepMe y lo divide por fieldsets.
Se puede personalizar al crear la clase:
- strBack: 'string de volver'
- strNext: 'string de siguiente'
- blockEl: 'tag para usar en la division'
- className: 'class del formulario'
He adjuntado un pequeño fichero HTML para verlo en funcionamiento (AVISO: no tiene CSS!!)
Lo podeis descargar aqui: MooStepForm v.0.1
Recompilar MAMP
El soporte de LDAP en MAMP 1.7.1 esta roto asi que tube que recompilar el PHP, lo cual me obligo a recompilar todas sus dependencias, pero como no encontre ninguna guia de como realizarlo correctamente, aqui esta como lo hice yo.
Lo primero es descargarse el codigo fuente proporcionado por la gente de MAMP, y su version compilada.
Codigo fuente: MAMP 1.7.1 (src)
Version Intel: MAMP 1.7.1 (intel)
Version PPC: MAMP 1.7.1 (ppc)
Una vez que tengamos esto, hay que instalar MAMP la version compilada en /Applications y asi ya tenemos toda la estructura correcta lista para solo recompilar lo necesario.
Ahora descomprimimos el codigo fuente y vamos compilando las diferentes librerias:
CURL
tar zxvf curl-7.16.2.tar.gz cd curl-7.16.2 ./configure --prefix=/Applications/MAMP/Library make make install
Freetype
Misexta.tv Download (Firefox Addon)
Bueno, he estado mirando un poco como funciona el desarrollo de extensions para Firefox, y la verdad es que en developer.mozilla.org hay bastante informacion util. Por lo que aqui tengo la primera beta, que es capaz de descargar los videos en HD.
Las cosas que faltan por implementar son:
- Descarga de videos cortos (descargar por medio del protocolo RTMP)
- Deteccion de videos con partes, con opcion de descargar las diferentes partes
- Limpieza de la lista de videos (timeout y numero maximo)
- Y lo que surja...
El funcionamiento es bastante sencillo, cuando instaleis la extension, tendreis un icono en la barra de estado:
Vais a la pagina de misexta.tv y elegis un video en HD480p:



