January 25, 2012

[SOLVED] Perl: How to replace umlauts with regex

You have a string with umauts you want to replace

$strNewXml = "ÜBERSICHTSKARTE MIT HIGHLIGHTS";

To replace "Ü" use \xdc where "dc" is a Hex value of the "Ü" character from this table

http://www.pjb.com.au/comp/diacritics.html

$strNewXml =~ s/\xdcBERSICHTSKARTE MIT HIGHLIGHTS//g;

 

 

January 15, 2012

[SOLVED] Ubuntu: Fixing messed up screen resolution

If you messed up with your display resolution try this:
To configure the monitor and display adapter, you need to re-configure 
your Xorg server. To do that, first backup your xorg.conf file by
executing the following command:

# sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

then, stop X by executing the following command (this will put you to
text only mode):

# sudo /etc/init.d/gdm stop

You can do the whole X configuration process by executing:

# sudo dpkg-reconfigure xserver-xorg

Once you have re-configured Xorg, start GNOME again by executing this
command:

# sudo /etc/init.d/gdm start


Source: lists.ubuntu.com