Archive for January 2009
OpenSuse 11 and 'couldn't resolve host XXX error' in Updater
If you encounter this error message while installing or updating software packages then it is not necessary problem with OpenSuse but possibly with your DNS provider. In my situation, updater couldn’t resolve host ftp.man.szczecin.pl. It appears that my DNS service provider does not have such name in its tables. I was able to resolve its IP name using online ping tool like: http://www.heise-online.pl/networks/tools. After that discovery, it was enough to add a new line to /etc/hosts file :
211.14.1.71 ftp.man.szczecin.pl
to fix the problem.
Making emacs indent after Enter
I do most of my programming under Visual Studio and I got used to that pressing Enter will go to next line and then indent cursor appropriately. Under Emacs its different, according to U.3.1 Basic Program Indentation Commands from Emacs manual, C-j is equivalent to RET followed by TAB (newline-and-indent). To make Enter work as C-j add following lines to your .emacs file:
(global-set-key "r" 'newline-and-indent)
(global-set-key "n" 'newline)