1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Wednesday, November 4, 2009

Using Eclipse to compare two files

Jeff Mesnil » Blog Archive » Using Eclipse to compare two files

On October 7th, 2004 in eclipse

I often need to compare two files to see their differences.
The UNIX geek in me is using diff --side-by-side for that. But sometimes I want something more fancier with bright colors and easier to scroll.

Eclipse provides a handy feature to compare two unrelated files (e.g. not two CVS revisions of the same file) but it's quite difficult to find it first.

To compare two files in Eclipse, select both files (Control click them) and in the contextual menu (right button), chose Compare With > Each Other. Et voila! you got a nicer diff than its CLI counterpart.

Acroread: Adobe Reader now available through APT

Acroread: Adobe Reader now available through APT

We're pleased to announce the availability of the latest version of Adobe Reader (9.1) through APT. Adobe Reader is now hosted on the Canonical Partner Repositories, and can be installed seamlessly using the 'apt-get' command. Please refer the detailed steps below.

  1. Add Canonical Partner Repositories (one-time only)
    This section describes how to manage software repositories in Ubuntu 8.04 (Hardy Heron), Ubuntu 8.10 (Intrepid Ibex), and Ubuntu 9.04 (Jaunty Jackalope).
    • Via the Command Line
      Software sources can be managed by making direct modifications to the /etc/apt/sources.list file using the command line. However, we recommend using the GUI-based repository management (detailed below). If you prefer to use the command line instead of graphical user interface, see Managing Repositories from the Command Line instead.
    • Via the Graphical User Interface
      1. Locate the Software Sources panel
        GUI-based repository management is normally accomplished via the "Software Sources" panel. This panel can be accessed via two menus:
        • Software Sources: System > Administration > Software Sources
        • Synaptic: System > Administration > Synaptic >> Settings >> Repositories
        Note: You will have to enter your password to gain access to the page.

        Software Sources Menu item through the GUI
        Software Sources through the GUI
      2. Switch to the Third-party Software Tab
        The "Third-Party Software" tab is where you will be able to add the Canonical Partner Repositories. Third-party software tab
      3. Enable the Application Partner Repositories entry
        You will see two Canonical Partner repositories listed - one for applications and another for source code (src). Adobe Reader is hosted on the application repository (the first entry) - if this is not enabled on your system, enable the entry and select "Close".
      4. Update the Database
        If you made changes in the previous step, you should be prompted to "Close", "Reload" or "Revert" the changes. Select "Reload" to update the database.
        Update the database
  2. Install Adobe Reader
    To get the latest version of Adobe Reader for Linux, simply type the following command on the terminal:
    apt-get install acroread

Posted by Gaurav Jain on April 22, 2009 4:00 AM | Permalink

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...