h1

Dadamail, cómo suscribir direcciones sin enviar autorización

18/12/2010

En el gestor de listas de correo o newsletters cómo Dadamail puede ser necesario suscribir direcciones de correo sin tener que enviar una autorización a los usuarios, como frecuentemente pasa en las migraciones de Mailman a Dadamail. Por defecto no aparece esta opción, y por eso es necesario seguir los siguientes pasos:

1º) Editar el fichero de configuración cambiando a “0″ el valor de $ENFORCE_CLOSED_LOOP_OPT_IN :

/dadamail/DADA]# nano Config.pm
$ENFORCE_CLOSED_LOOP_OPT_IN ||= 0;

2º) A través del panel de control web, ir a “Your List Control Panel”, sección “Options” y marcar la opción “Enable Subscribe Checked Subscribers”.

h1

error SQLite3 Unable to Open Database File

17/12/2010

Si al hacer un cambio en una base de datos Sqlite3, pese a poder acceder normalmente a la información, no se permite modificarla obteniéndose este error:

SQLite3: Unable to Open Database File

es necesario dar permisos 755 al directorio que lo contiene y 777 (control total) al propio fichero:

chmod -R 755 /opt/xplico
chmod -R 777 /opt/xplico/xplico.db

Fuente: Jaux.net

h1

error c++ crosses initialization of

17/12/2010

Al producirse el siguiente error de compilación en c++:
error: crosses initialization of

frecuentamente producido en una sentencia “switch case”, es solucionable mediante la inclusión entre llaves ( {} ) del bloque de código.

swtich (opcion)
case 1: {
cout << "hola" << endl;
break;
}

h1

Joomla, poner las impresiones o hits de todos los artículos a cero

13/12/2010

Para poner el campo impresiones a cero de todos los artículos de un sitio en Joomla 1.5, es necesario ejecutar esta sentencia SQL (accesible por ejemplo mediante el interfaz PhpMyAdmin):

update jos_content set hits = 0

h1

Errores Perl: REQUIRED module missing: Net::DNS REQUIRED module missing: NetAddr::IP

13/12/2010

Compilando Spamassasin puede ocurrir el siguiente error:

REQUIRED module missing: Net::DNS
REQUIRED module missing: NetAddr::IP
optional module missing: Digest::SHA1
optional module missing: Mail::SPF
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: Encode::Detect

En Ubuntu/Debian los “required” se solucionan instalando las correspondientes librerías de Perl:
$ apt-get install libnet-dns-perl libnetaddr-ip-perl

Fuente: HowtoForge forums

h1

aMsn error: utils/farsight/src/tcl_farsight.c:19:42: error: gst/interfaces/propertyprobe.h: No existe el archivo o directorio

11/12/2010

Al compilar aMsn puede ocurrir el siguiente error:

carlos@pc03:~/downloads/amsn-0.98.4$ make
CC utils/farsight/src/tcl_farsight.o
utils/farsight/src/tcl_farsight.c:19:42: error: gst/interfaces/propertyprobe.h: No existe el archivo o directorio
utils/farsight/src/tcl_farsight.c:20:37: error: gst/interfaces/xoverlay.h: No existe el archivo o directorio
utils/farsight/src/tcl_farsight.c: In function ‘_test_source’:
utils/farsight/src/tcl_farsight.c:584: error: ‘GstPropertyProbe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:584: error: (Each undeclared identifier is reported only once
utils/farsight/src/tcl_farsight.c:584: error: for each function it appears in.)
utils/farsight/src/tcl_farsight.c:584: error: ‘probe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘set_window_xid’:
utils/farsight/src/tcl_farsight.c:1839: error: ‘GstXOverlay’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:1839: error: ‘xov’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘_bus_callback’:
utils/farsight/src/tcl_farsight.c:1882: error: ‘GST_TYPE_X_OVERLAY’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c: In function ‘Farsight_Probe’:
utils/farsight/src/tcl_farsight.c:3854: error: ‘GstPropertyProbe’ undeclared (first use in this function)
utils/farsight/src/tcl_farsight.c:3854: error: ‘probe’ undeclared (first use in this function)
make: *** [utils/farsight/src/tcl_farsight.o] Error 1

Se soluciona instalando estas librerías:
root@pc03:/# apt-get install libgupnp-igd-1.0-dev gstreamer0.10-plugins-base-dbg libgstreamer-plugins-base0.10-dev

h1

Error tkConfig.sh No such file or directory

11/12/2010

Si al compilar aMsn ocurre el siguiente error:

./configure: line 3686: /usr/lib/tkConfig.sh: No such file or directory

se soluciona instalando las librerías de desarrollo de TCL/TK

carlos@pc02:/$ sudo apt-get install tk8.5-dev tcl8.5-dev

h1

Java error: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

12/11/2010

Si ocurre este error:

carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ ant build
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar
Buildfile: build.xml
build:
[javac] Compiling 2 source files to /home/carlos/master/gimi/Distrib/InstanceMatcher/build/classes
BUILD FAILED
/home/carlos/master/gimi/Distrib/InstanceMatcher/build.xml:43: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
Total time: 0 seconds

Se soluciona localizando el paquete “tools.jar” y copiándolo a la ubicación donde “ant” lo está buscando:

carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ sudo find / -name tools.jar
/usr/lib/jvm/java-6-sun-1.6.0.22/lib/tools.jar
/usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar
carlos@adscompc02:~/master/gimi/Distrib/InstanceMatcher$ sudo cp /usr/lib/jvm/java-6-sun-1.6.0.22/lib/tools.jar /usr/lib/jvm/java-6-openjdk/jre/lib/

h1

Errores Latex “I can’t find file ptmr7t” y “File stfloats.sty not found”

12/10/2010

Utilizando el editor de textos Latex, se pueden producir los siguienes problemas atendibles con las correspondientes soluciones:

#1
kpathsea: Running mktexmf ptmr7t
! I can't find file `ptmr7t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Solución:
$ sudo apt-get install texlive-fonts-recommended
$ sudo apt-get install texlive-fonts-extra

#2
! LaTeX Error: File `stfloats.sty' not found.

Solución:
$ sudo apt-get install texlive-latex-extra

h1

wget no descarga RSS de Google News

14/09/2010

Si al intentar descargar un RSS o contenido de Internet por wget se produce en siguiente error:

carlos@adscompc02:~/Descargas$ wget "http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss"
--2010-09-14 11:51:23-- http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss
Resolviendo news.google.es... 209.85.227.147, 209.85.227.105, 209.85.227.104, ...
Conectando a news.google.es|209.85.227.147|:80... conectado.
Petición HTTP enviada, esperando respuesta... 403 Forbidden
2010-09-14 11:51:23 ERROR 403: Forbidden.

es debido a que el servidor web está configurado para rechazar las conexiones de clientes con User-agent “wget” ó similares “wget123″, etc. Se soluciona cambiando el User-agent de wget:

carlos@adscompc02:~/Descargas$ wget -U hola "http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss"
--2010-09-14 11:52:49-- http://news.google.es/news?pz=1&cf=all&ned=es&hl=es&output=rss
Resolviendo news.google.es... 209.85.227.106, 209.85.227.99, 209.85.227.103, ...
Conectando a news.google.es|209.85.227.106|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 51756 (51K) [application/xml]
Guardando en: «news?pz=1&cf=all&ned=es&hl=es&output=rss.7»

100%[===============================================>] 51.756 --.-K/s en 0,06s

2010-09-14 11:52:50 (790 KB/s) - «news?pz=1&cf=all&ned=es&hl=es&output=rss.7» guardado [51756/51756]

Seguir

Get every new post delivered to your Inbox.