miércoles, 1 de febrero de 2012

Agregar diccionario de castellano (español) al LibreOffice (Open Office)

1) Descargá el diccionario:

http://extensions.libreoffice.org/extension-center/diccionario-espanol

2) En el menú Tools/Extension Manager, instalar el archivo descargado: spanish-dictionary.oxt






3) En Tools/Options/Language Settings/Languages elegir las opciones para Locale setting y Default Lenguages for documents. Si el diccionario se instaló correctamente, verás la tilde con el "ABC" al lado del lenguaje, como en la figura.

miércoles, 18 de mayo de 2011

Micronet SP3367D Port Forwarding - DMZ

Si tienes un Modem Micronet SP3367D ADSL2+ Router, que tiene un software como el de la figura esto podria serte util si necesitas servicios detras de tu IP. Despues de varios intentos de configurar el port forwarding, intente con la opcion DMZ, y con eso pude conseguir casi el mismo resultado. Conceptualmente es distinto, pero en la practica da lo mismo. La unica diferencia es que asi todos los servicios/puertos se redireccionan al IP al que apunta la DMZ, que tampoco es tan grave, basta con configurar un buen firewall en el IP destino y listo.

sábado, 12 de marzo de 2011

Ubuntu Kernel updates and Nvidia drivers problems

I have a PC with this on board nvidia chip:

00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)

Many times, after system updates which includes kernel updates, X Window configuration for nvidia fails to start X Server.
From that scenario, I've found two possible solutions:
1) Use the command line installer, like these:

sudo nvidia-installer --update


These approach, of course assumes that you are connected to the Internet, which is not always true if you are using wireless, for instance, by default Ubuntu uses gnome's network-manager to start your wireless networking.

2) Use an alternative xorg.conf to start with a minimal configuration and use the System/Administration/Additional Drivers
Remembering 1998, my first year with Red Hat Linux 5.2, back then, I came up with this minimal X Window configuration, with vesa driver, which should work in most chipset.
By replacing
/etc/X11/xorg.conf
whith this one, you can start X Window from command line:


--- start xorg.conf-vesa ----

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Module"
Load "glx"
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection

Section "Device"
Identifier "Device0"
VendorName "NVIDIA Corporation"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

--- end xorg.conf-vesa ----


startx


And use the System menu to fix you NVidia Driver configuration. After downloading and installing the package, you will need a reboot, and voila, you're again with your NVidia Driver up and running.

miércoles, 6 de octubre de 2010

Java Timezone Updates - Daylight Savings problem

Java keeps it's time zone data independently from the operating system (at least on linux), if you want to keep it updated you should download Time Zone Updater from oracle(sun)

http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html

and then run the command

java -jar tzupdater.jar -u

The user should have permission over the JDK/JRE directories.

More details on http://www.oracle.com/technetwork/java/javase/timezones-137583.html#tzu

martes, 9 de junio de 2009

Simplest log4j configuration

The simplest way to configure log4j without a file, and with java code (specially handy when you want to use log4j for a small java app, and want to get rid of the warnings showed by the logger).

Properties conf = new Properties();

conf.put("log4j.rootLogger", "debug, myAppender");
conf.put("log4j.appender.myAppender", "org.apache.log4j.ConsoleAppender");
conf.put("log4j.appender.myAppender.layout", "org.apache.log4j.SimpleLayout");
PropertyConfigurator.configure(conf);

sábado, 6 de septiembre de 2008

Update NVidia Driver on Ubuntu after kernel Ugrade

After upgrading kernel package, on Ubuntu 8.04 I always had to reinstall NVidia's Driver.
Fortunately nvidia provides you with an easy way to do it, and this way you make sure you always have the latest one, without having to hunt for the driver at Nvidia's site (which means a LOT! Nvidia's site browsability really sucks).
Just type the command

$ sudo nvidia-installer --update

and it will do all the work.

Ubuntu Timer Applet

Some time ago, I needed some "reminder" (computer science does cooks brains :-S ) I made a simple script to :



Code:

#!/bin/bash
if [ $# -eq 2 ]; then
sleep $1m
while [ 1 ]; do
sleep 3m
wall "$2"
xmessage -nearmouse "$2"
done
else
echo "uso: $0 #minutos MENSAJE"
fi



I did for simple tasks like "remember to call your ISP who told you Call me back in x minutes... ", which I almost always ended up forgetting.
Today I found this fantastic gnome applet (BTW it's on Ubuntu's repository):

http://timerapplet.sourceforge.net/

With Screenshots:

http://www.flickr.com/photos/7982697@N0 … 37/detail/

Now I just have to remember why I was looking for an applet like this :)

Enjoy!