2012년 11월 20일 화요일

java split period doesn't work

Q: split(".") return null.



A:"." is a metacharacter so if you want to match it literally use
s.split("\\.")

can not instaniate Handler

Check if you imported android.os.Handler, not java.util.logging.Handler.

can not see parent package in the Package Explorer

Click a small triangle at the right side of top in the Package Explorer, click Filters and uncheck Empty packages and Empty parent packages.

can not get registration id with GCM(Google Cloud Messageing)

If you followed all the directions about GCM, then check if you put GCMIntentService in the
 default package, not sub folder of that package.

2012년 11월 18일 일요일

how to install openoffice on ubuntu 10.04


Installation Steps

  1. Review the System Requirements
  2. Download your favorite Linux version of Apache OpenOffice
  3. Review helpful information and installation options in the Setup Guide.
  4. Unpack the downloaded image to prepare for installation.
    The following command should work: tar -xvzf "linux package name".tar.gz
    where "linux package name" is the beginning part of the archive you just downloaded.

    This will create an installation directory.
    The name of the installation directory will likely be the language abbreviation for the install set, e.g., en-US.
  5. su to root, if necessary, and navigate to Apache OpenOffice installation directory (the unpacked archive).
    You will likely need to be root to run the deb command to install the software.
  6. cd into the DEBS subdirectory of the installation directory.
    You should see a lot of debs here and one sub-directory called "desktop-integration".
  7. Install this new version by typing sudo dpkg -i *.deb.
    By default, this will install/update Apache OpenOffice in your /opt directory.

    Alternatively, you can use a GUI package installer, reference the installation directory, and install all debs at the top level. This may also aid you in determing any dependency problems if they exist.
  8. Install the desktop integration features for your setup.
    cd to desktop-integration in the installation directory,
    and, depending on your package manager/system, install the appropriate desktop interface using dpkg.
  9. Finally, start up Apache OpenOffice 3.4.x to insure it's working.

How to install LibreOffice on Ubuntu 10.04


How to remove OpenOffice.org?

Open the terminal and type the following command:
sudo apt-get purge "openoffice*.*"
You will be asked for your password, type your password and press the Enter key on your keyboard to continue. When asked, “If you want to remove the OpenOffice.org package,” type “Y” and press the Enter key. Wait for the OpenOffice.org packages to be removed.

How to add the LibreOffice PPA repository?

To add the PPA, add ppa:libreoffice/ppa to your software sources or open the terminal and type the following command:
sudo add-apt-repository ppa:libreoffice/ppa
You will be asked for your password, type your password and press the Enter key on your keyboard to continue.

How to install LibreOffice?

Open a new Terminal session and run the following commands:
sudo apt-get update && sudo apt-get install libreoffice
You will be asked for your password, type your password and press the Enter key on your keyboard to continue.
Now, Ubuntu users should run the following command:
sudo apt-get install libreoffice-gnome
Kubuntu users should run the following command:
sudo apt-get install libreoffice-kde
That’s it! LibreOffice is now completely installed in your Ubuntu machine. If you have any problems, do not hesitate to comment below!