[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;

 

 

[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

 

[SOLVED]Target filesystem doesn’t have /sbin/init

The second attempt was to run Ubuntu off of the CD (don’t install it, just run the OS) and then go into the terminal window and run fsck. For those that aren’t familiar with that command, here is a brief summary

$sudo fsck /dev/sda5

where /dev/sda5 is a drive you want to check

Source: adnanahmed.ca

 

 

[SOLVED] Converting a Subversion repository to Git (with history and users)

(7 steps to migrate a complete mirror of svn in git)

Source: http://www.albin.net/git/convert-subversion-to-git

[SOLVED] Chrome: How to change the default language (UI) in chrome

Normally you should find this option in “Under the Hood” tab but if have no such option do type

chrome://settings/languages

in to address bar and choose your preferred UI language.

then you must restart your Google Chrome Browser

 

Tested with chrome v13.0.782.220 m and v15.0.871.1 canary

[SOLVED] Chrome: How to switch the User agent of the browser?

you can pass the user agent string in the command line

for example, this is how to make chrome report itself as IE8.0 on my machine
C:\Users\XXXX\AppData\Local\Google\Chrome\Application\chrome.exe –user-agent=”Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)”

so basically just add –user-agent=”what ever you want to impersonate to” to the target in the shortcut to chrome
and launch chrome using that shortcut!

Source: http://www.google.com/support/

[SOLVED] Ubuntu – VNC loads but does not refresh.

I am playing with UltraVNC from Windows 7 to Ubuntu. To resolve the problem with VNC refresh we should turn off all visual effects.

 

right click on the desktop, select “Change Desktop Background”, click
“Visual Effects”, click the “none” option

 

Source: ubuntuforums.org

[SOLVED] Mount the remote file system on your local machine with sshfs

You can mount the remote file system on your local machine with sshfs:

mkdir -p /mnt/sshfs 
root@IS1300:~# sshfs 192.168.1.2:/ /mnt/sshfs 
root@IS1300:~# umount /mnt/sshfs 

Then you can copy paste the file with nautilus/gnome/konqueror/dolphin/bash/whatever

 

Source: stackexchange.com

[SOLVED] AI: Embed a linked file

How to embed linked file in Adobe Illustrator?

  1. Select a file in the Links panel, and choose Embed Image from the panel menu.
  2. Select the linked artwork in the illustration window. In the Control panel, click the Embed button.

Source: help.adobe.com

[SOLVED] ReConnect Eclipse to Android emulator

Just run these command in your console

adb kill-server
adb connect <%TARGET_PC_IP_OR_HOSTNAME%>:<%EMULATOR_PORT%>

for emulator on my pc it was

adb kill-server
adb connect localhost:5555

Source: stackoverflow.com

Follow

Get every new post delivered to your Inbox.