Rabu, 30 Januari 2013

Running Eclipse for the first time

Running Eclipse for the first time



  • Find the file named Eclipse.exe (on Windows) or Eclipse (on Ubuntu) and then double-click
  • At the first run Eclipse, Eclipse will ask workspace, the folder where the project and it is put. You can place it anywhere as long as not in the Eclipse folder itself.
  • Click Browse and select the folder that is desired. Tick ​​"Use this as the default and do not ask again"
  • Opening page will appear. Click "Workspace", the rightmost button-shaped arrows to fit into your workspace.
Your first Java program :

  • Click "File -> New -> Java Project"
  • Fill in the project name (example :  SelamatDatang), then click "Finish"
  • After Eclipse project for making your workspace on the left you will see your project directory structure that starts with the name of the project, the src folder, and the folder JRE System Library
  • Right click on the src folder, then "New -> Package"
  • Fill in name of the package (example :  selamatdatang), then click "Finish"
  • Right-click again on selamatdatang folder, then "New -> Class"
  • Fill in the name of the class (example : SelamatDatang)
  • Because this class is the main class that will be directly executed by the JRE (Java Runtime Environment), click "public static void main (String [] args)" in the "Which method stubs would you like to create?"
This is an example of a print screen that I created :



  • Click "Finish"
  • Eclipse will create a program that contains an empty package and class according to the name you entered in the previous stage
  • Now type the following programs under the "/ / TODO"
  • System.out.println("Selamat Datang!");
  • Then save the result
Running your first Java program :

  • To run your program, click "Run -> Run"
  • At the bottom of the tab titled "Console" program results are displayed
  • The program will feature writings Welcome! as in the picture below


And this is the result :     


NB         : If There is a difficulty, Stay Comments only. 
                It was rather difficult. 
                I will help as much as possible. 
                Thank's for your visit my blog.







»»  READMORE...

What is Eclipse ?

Eclipse IDE


Eclipse is an open source community that aims to produce an open programming platform. Eclipse consists of a framework that can be developed further, auxiliary equipment to create and manage software from the beginning to launch. Eclipse Platform is supported by a large ecosystem consisting of vendor technology, and innovative start-ups, universities, research institutions and individuals.

Many people know Eclipse as an IDE (integrated development environment) for Java, but Eclipse is more than a Java IDE.

Eclipse community has more than 60 open source projects. These projects are conceptually divided into 7 the category of:

1. Enterprise Development
2. Embedded and Device Development
3. Rich Client Platform
4. Rich Internet Applications
5. Application Frameworks
6. Application Lifecycle Management (ALM)
7. Service Oriented Architecture (SOA)
Generally used Eclipse to build innovative, industry-standard software, and tools along frameworknya help job easier.

License

Eclipse uses EPL (Eclipse Public License), the license that enables organizations to make Eclipse a commercial product, and at the same time asking people to contribute to change the result back to the community.

Installation

  • You need a Java 5 JRE to run Eclipse.
  • Download Eclipse IDE for Java Developers to use Learning Java code on this site.
  • Use your operating system utility to uncompress the file to your hard disk.
  • Note for Windows : If you use a file compression utility from Windows XP or Windows Vista itself, the utilities are sometimes unable to open files with long names. If you are having problems decompressing Eclipse on Windows, put the results of decompression in the root directory (eg C: \ eclipse) or use other free decompression software such as 7-Zip.
»»  READMORE...

The introduction of Java in Eclipse

History of Eclipse


         Eclipse was originally developed by IBM to replace software IBM Visual Age for Java 4.0. This product was launched by IBM on November 5, 2001, who invested as much as U.S. $ 40 million [1] for development. Since then the Consortium Eclipse Foundation Eclipse took over for further development and organizational arrangements.

Eclipse is an IDE (Integrated Development Environment) to develop software and can run on any platform (platform-independent). Here is the nature of Eclipse:



  • Multi-platform : Eclipse target operating system is Microsoft Windows, Linux, Solaris, AIX, HP-UX and Mac OS X.
  • Mulit-language : Eclipse was developed with the Java programming language, but the Eclipse-based application development support other programming languages​​, such as C / C + +, Cobol, Python, Perl, PHP, and others.
  • Multi-role : In addition to the IDE for application development, Eclipse can be used for activities in the software development cycle, such as documentation, test software, web development, and so forth.

Eclipse at the moment is one of the favorite IDE because of free and open source, which means that anyone can view the programming code of the software. Furthermore, the advantages of the Eclipse that makes it popular is its ability to be developed by users with components called plug-in.

Architecture


Since version 3.0, Eclipse is essentially a kernel, which raised plug-in. What can be used in Eclipse is actually a function of the plug-in is installed. This is called the base of the Eclipse Rich Client Platform (RCP). The following are the components that make up the RCP:

  • Core platform
  • OSGi
  • SWT (Standard Widget Toolkit)
  • JFace
  • Eclipse Workbench

By default Eclipse JDT always comes with (Java Development Tools) plug-ins that make compatible Eclipse to develop Java programs, and PDE (Plug-in Development Environment) to develop new plug-ins. Eclipse with its plug-in is implemented in the Java programming language.

The concept Eclipse IDE is an open (open), easily expandable (extensible) for anything, and not for anything specific [2]. So, not only Eclipse to develop Java programs, but can be used for various purposes, simply by installing the plug-in required. If you want to develop a C / C + + plug-ins are CDT (C / C + + Development Tools). In addition, the development of visually not impossible by Eclipse UML2 plug-in available to create UML diagrams. By using PDE every person can make a plug-in accordance with her wishes. One site that offers free plug-ins such as the Eclipse downloads by project.

Controversy Eclipse


The presence in the middle Eclipse IDE competition, especially Java IDE, causing much controversy. One is the use of the Eclipse user interface. Sun Microsystems as a company that makes Java, has been issued two libraries for the development of Graphical User Interface (GUI), the Abstract Windowing Toolkit (AWT) and Swing. However, in the manufacture of Eclipse, the two libraries was abandoned for various reasons, one of which is the second library does not provide a good look and feel. So to it is developing a new GUI library, SWT.
In addition, Sun has its own IDE for Java development called NetBeans, Eclipse becomes stifling the presence of hitherto fairly large communities [3]. This can be seen with the Sun refused to cooperate in the Eclipse Foundation, though it was invited [4].
Name Eclipse as if giving the message explicit: Sun light (sun) which emit blocked by Eclipse (eclipse).


»»  READMORE...

Sabtu, 15 Desember 2012

SELECT in DATABASE

Here I will explain how to make a SELECT in the database.


        1.  SELECT e.last_name, e.departement_id,
           d.departement_name
           FROM tbemployee e, tbdepartement d
          WHERE e.departement_id = d.departement_id;  












2. SELECT DISTINCT job_id, location_id
FROM tbemployee, tbdepartement
WHERE tbemployee.departement_id =
tbdepartement.departement_id
AND tbemployee.departement_id = 80;











3. SELECT e.last_name, d.departement_name,
d.location_id, l.city
FROM tbemployee e, tbdepartement d, tblocation l
WHERE e.departement_id = d.departement_id
AND d.location_id = l.location_id
AND e.commision IS NOT NULL;



4   







     4. SELECT last_name, departement_name
FROM tbemployee, tbdepartement
WHERE tbemployee.departement_id =
tbdepartement.departement_id
AND last_name LIKE '%a%';













5. SELECT e.last_name, e.job_id,
e.departement_id, d.departement_name
FROM tbemployee e JOIN tbdepartement d
ON (e.departement_id = d.departement_id)
JOIN tblocation l
ON (d.location_id = l.location_id)
WHERE LOWER(l.city) = 'toronto';











6. SELECT employee_id, first_name,last_name,salary*12
FROM tbemployee
WHERE departement_id = 60 or departement_id = 90;












7. SELECT e.employee_id, e.first_name, e.last_name, e.salary*12
FROM tbemployee e, tbdepartement d
WHERE e.departement_id = d.departement_id
AND LOWER(d.departement_name) = 'it';

8. SELECT d.departement_id, (
SELECT AVG(salary*12)
FROM tbemployee e
WHERE e.departement_id = d.departement_id)
FROM tbdepartement d;

                                                              
9. SELECT e.employee_id, e.last_name,e.salary,
d.departement_name, l.city, l.country_id
FROM tbemployee e JOIN tbdepartement d
ON (e.departement_id = d.departement_id)
JOIN tblocation l
ON (d.location_id = l.location_id)
WHERE LOWER(l.city) = 'toronto';












10.  CREATE TABLE tbemployee2 AS (
SELECT e.employee_id, e.first_name, e.last_name,e.email,e.phone_number,e.hire_date,e.job_id, e.salary, e.commision, e.manager_id, e.departement_id, e.address
FROM tbemployee e, tbdepartement d
WHERE e.departement_id = d.departement_id
AND LOWER( d.departement_name ) = 'it');








I Already example of how to use SELECT in database.
And the results are listed along with the script.




»»  READMORE...

Jumat, 14 Desember 2012

7 Amazing Jain Temple in India


7 Amazing Jain Temple in India

Jainism (Jainism / Jain) is an old religion in India origin side by side with Hindus. Some semblance of Jainism and Hindu teachings lead to the assumption that religion is one of the sects of Hinduism.

The fundamental difference between Jainism and Hinduism looks at Astika and Nastika. Schools in India divided on 2 principles. That principle holds Astika accept the authority of the Vedas as the scriptural beliefs and involve Brahmani. Nyaya, Mimamsa, and Yoga including Astika based teachings, and means Hindu groups.

While schools are principled Nastika reject the Vedas and scriptures used by Hindus. More basing Jainism their non-violent beliefs.

Mahatma Gandhi was a great man who adopted many teachings Jainsime like: Ahimsa (non-violence), Satya (honesty), Asteya (not stealing), Brahmacharya (mind control), and Aparigraha (not pursue worldly possessions). However, there is no concrete evidence whether Gandhi or Hindu followers of Jainism.

Currently, there were about 4.2 million followers of Jainism in India alone. While including the religious minorities, they have many beautiful temples as seen below:

1. Lal Mandir



Drawn Shri Lal Jain Mandir is the oldest temple of Jainism in India. Built in 1526, and experienced a lot of growth, especially since the 19th century. This temple of red sandstone material.

2. Sonagiri


Sonagiri Temple situated on a hill top town of Sonagiri (meaning: gold peak). The pilgrims and tourists who visit are required to climb 300 stairs in bare feet.


3. Khajuraho Jain


Khajuraho village is one of the most popular tourist destinations in India. In this village there are many temples for Hindus and Jainism which had stood since the year 950 to 1150 AD


4. Gomateshwara


At the top of the hill there is a statue of Shravanabelagola town Gomateshwara, he was the second son of the god Adinatha, the first of the 24 people on earth who "enlightened" (Tirthankara). 17.38 meters high, built around the year 983 AD by Chavundaraya, minister of the Kingdom of the Ganges.

Once every 12 years Mahamastakabhisheka festival held in this place. Namely bathe Gomateshwara statue with milk, saffron and gold coins.


5. Dilwara


Dilwara temple complex is so beautiful because it is made of marble. Carvings are so detailed and looks at the ceiling, doors, and pillars of the temple. There are five Jain temples here, each with a unique identity and is named after the small village where it is located. All the temples built by Chalukya dynasty between the 11th and 13th centuries.


6. Palitana


Palitana town is a major pilgrimage center for the followers of Jain. The temples of Palitana is considered the most sacred pilgrimage place in Jainism. There are hundreds of Jain temples situated on the holy mountain Shatrunjaya, beautifully engraved in marble. Built by Jain followers generations for 900 years, since the 11th century.


7. Ranakpur


Dedicated to Adinatha, Ranakpur Jain Temple looks magnificent on the hillside. There are over 1444 marble pillars in the temple, and all very beautiful carved.
The construction of this temple symbolizes the Tirthankara conquest of the four cardinal directions. There is still much debate about Ranakpur development time, but it was probably built between the 14th and mid-15th century AD.

That's what I'm talking about little temples in India Images.
















»»  READMORE...

Jumat, 30 November 2012

How to Install Linux Debian version 6.0 Squeeze

Install Linux Debian

        Yups, Debian 6.0 "Squeeze" has been officially released 
on February 6, 2011. 
Unlike other Linux distributions. Distributions that have many derivatives is highly prioritizes stability. No wonder if the distance release has a very long span of time. However, as the Open Source Lover's, this is not a problem.
Well, this time we will try to explain the steps to install this Linux Debian 6.0.


INSTALLATION STEPS:

  • Burning ISO image on a piece earlier Debian 6.0 DVD. You can also restore the ISO image on a Debian 6.0 had USB flash / external hard drive if you want to install without using a DVD ROM / Drive. Insyallah steps install it via USB flash / external hard drive which we will discuss in the next article. 
  • Setting the BIOS to boot from the DVD ROM / USB flash. 
  • Booting Debian 6.0 DVD / USB flash. 
  • On the installer screen select Advanced Boot Options menu, press Enter. 

  • Choose Alternative Desktop Environment. On the Menu select KDE Desktop Environment (You can also choose Xfce LXDE or to taste).
  • On screen KDE Graphical Boot Menu select Install to perform the installation in graphical mode / GUI.
  • My advice on the Select Language option, we choose only English for easy setting.

  • Next, because we will choose Indonesia as our domicile, then the window Select your location select other, then select and select Asia Indonesia.
  • Then select the Configure Locales United States en_us.UTF-8.
  • To Configure Keyboard select American English.
  • Wait a while until the Load Installer Components of DVD completed.

  • On the Configure the Network to allow the appropriate Hostname default (debian). For Domain name left blank.
  • Set up users and passwords for the root password enter your password and try again in the Re-enter password to verify.
  • For the full name for the new user can fill fit your full name. Advised not to use a space to separate the first name and last name. And the username for your account type in your first name to make it more memorable.
  • Choose a password for the new user input the password but not to the same root password, because as we later Users can also make the management system without having to login as root so it is relatively safer.
  • Configure the Clock choose Jakarta as Time Zone. Or it could be another appropriate city of residence.
  • Next is a step partition your hard drive, consider the well to avoid that fatal mistake.
  • If you install Debian 6.0 as the sole OS on your computer, you better select Guided - use entire disk on Partition method.
  • For those of you who want a multiboot OS (many OS on 1 computer) select Manual only.
  • For example here we have a space of 8.6 GB hard drive that will be us for the 8GB for the root (/) and the rest as SWAP area. So that must be addressed:
  • FREE SPACE and click on Continue.

  • Select the Create a New Partition to start the disk partition.
  • This time due to hard drive space that we have 8.6 GB for the New partition size then we fill 8 GB.
  • In Type for the new partition select Primary. On Location partition select Beginning.
  • Next change the bootable flag to On> Done setting up the partition> Continue.

  • For setting the SWAP partition on the rest of the hard drive, click on the FREE SPACE.
  • Create a new partition> Size let alone match printed reply. Type for new partition select Logical.
Tip: Swap is usually set at 2x the amount of RAM you use.

Example: I use RAM 1 GB (1024 MB). Then swap partition that I had to make 2GB (2048 MB).

If you have more than 2 GB of RAM, then the swap fairly allocated 2 GB only.

  • For Use as: select Swap Area. Bootable flag: off and Done setting up the partition.
  • Well, now the partition you are ready, click Finish partitioning and write changes to disk. Click Yes to Write the changes to disk?.
  • Time to wait for the base installation of Debian 6.0 system.

  • Configure the packet manager> Scan another CD or DVD? Select Yes if you have a package repository and click No if not.
  • Use a network mirror? This is the absolute choice for those of you who do not have a package repository. Click Yes. Note: You must already be connected to the Internet to get a package of this repository.
  • On Debian archive mirror select Indonesia, for FTP mirrors please you like this time we chose cdn.debian.net server as its source list.

  • In the Software Selection You can choose a complementary application that you want. Our advice, because later Debian 6.0 is only used as a Desktop OS only and not as a server. Then check the Graphical Desktop Environment, Laptops and Standard system Utilities only to complement the application.
  • We wait until the process is complete install package.
  • Then, the application installation process is complete. Time to configure GRUB.


  • Select Yes, for those of you who are using Debian 6.0 as a single OS.
  • Wait a moment and Complete Installation.

  • Restart to begin operating.
  • At the Welcome Screen please login suit your username and password.

  • This is Debian 6.0 + KDE desktop you!!!

  • Looks all so innocent .... . Hmmmm should be given a little change, let cool ....
  • For example, you can see my current desktop.


  • So How to Install Linux Debian 6.0 Squeeze. Easy is not it?









»»  READMORE...

All About Linux Debian

Linux Debian


Now, the latest version is version 6.0 Debian squeeze


WHAT is Debian?

The Debian Project is an association of individuals who have made common cause to create a free operating system. This operating system that we have created is called Debian.

An operating system is the set of basic programs and utilities that make your computer run. At the core of an operating system is the kernel. The kernel is the most fundamental program on the computer and does all the basic housekeeping and lets you start other programs.

Debian systems currently use the Linux kernel or the FreeBSD kernel. Linux is a piece of software started by Linus Torvalds and supported by thousands of programmers worldwide. FreeBSD is an operating system including a kernel and other software.

However, work is in progress to provide Debian for other kernels, primarily for the Hurd. The Hurd is a collection of servers that run on top of a microkernel (such as Mach) to implement different features. The Hurd is free software produced by the GNU project.

A large part of the basic tools that fill out the operating system come from the GNU project; hence the names: GNU/Linux, GNU/kFreeBSD and GNU/Hurd. These tools are also free.

Of course, the thing that people want is application software: programs to help them get what they want to do done, from editing documents to running a business to playing games to writing more software. Debian comes with over 29000 packages (precompiled software that is bundled up in a nice format for easy installation on your machine) — all of it free.

It's a bit like a tower. At the base is the kernel. On top of that are all the basic tools. Next is all the software that you run on the computer. At the top of the tower is Debian — carefully organizing and fitting everything so it all works together.

It's all free?

You may be wondering: why would people spend hours of their own time to write software, carefully package it, and then give it all away? The answers are as varied as the people who contribute. Some people like to help others. Many write programs to learn more about computers. More and more people are looking for ways to avoid the inflated price of software. A growing crowd contribute as a thank you for all the great free software they've received from others. Many in academia create free software to help get the results of their research into wider use. Businesses help maintain free software so they can have a say in how it develops -- there's no quicker way to get a new feature than to implement it yourself! Of course, a lot of us just find it great fun.

Debian is so committed to free software that we thought it would be useful if that commitment was formalized in a written document. Thus, our Social Contract was born.

Although Debian believes in free software, there are cases where people want or need to put non-free software on their machine. Whenever possible Debian will support this. There are even a growing number of packages whose sole job is to install non-free software into a Debian system.

You say free, but the CDs/bandwidth cost money!

You might be asking: If the software is free, then why do I have to pay a vendor for a CD, or pay an ISP for downloading?

When buying a CD, you are paying for someone's time, capital outlay to make the disks, and risk (in case they don't sell them all). In other words, you are paying for a physical medium used to deliver the software, not for the software itself.

When we use the word "free", we are referring to software freedom, not that it's without cost. You can read more on what we mean by "free software" and what the Free Software Foundation says on that subject.

Most software costs over 100 US dollars. How can you give it away?

A better question is how do software companies get away with charging so much? Software is not like making a car. Once you've made one copy of your software, the production costs to make a million more are tiny (there's a good reason Microsoft has so many billions in the bank).

Look at it another way: if you had an endless supply of sand in your backyard, you might be willing to give sand away. It would be foolish, though, to pay for a truck to take it to others. You would make them come and get it themselves (equivalent to downloading off the net) or they can pay someone else to deliver it to their door (equivalent to buying a CD). This is exactly how Debian operates and why most of the CDs/DVDs are so cheap (only about 12 USD for 4 DVDs).

Debian does not make any money from the sale of CDs. At the same time, money is needed to pay for expenses such as domain registration and hardware. Thus, we ask that you buy from one of the CD vendors that donates a portion of your purchase to Debian.

What hardware is supported?



Debian will run on almost all personal computers, including most older models. Each new release of Debian generally supports a larger number of computer architectures. For a complete list of currently supported ones, see the documentation for the stable release.

Almost all common hardware is supported. If you would like to be sure that all the devices connected to your machine are supported, check out the Linux Hardware Compatibility HOWTO.

There are a few companies that make support difficult by not releasing specifications for their hardware. This means you might not be able to use their hardware with GNU/Linux. Some companies provide non-free drivers, but that is a problem because the company could later go out of business or stop support for the hardware you have. We recommend that you only purchase hardware from manufacturers that provide free drivers for their products.

I'm looking for more information.

You may want to check out our FAQ.

I'm still not convinced.

Don't take our word for it - try Debian yourself. Since hard disk space has become less expensive, you can probably spare about 2GB. If you don't want or need a graphical desktop, 600MB are sufficient. Debian can be easily installed on this extra space and can coexist with your existing OS. If you eventually need more space, you can simply delete one of your OSes (and after you see the power of a Debian system, we are confident you won't delete Debian).

As trying a new operating system will take some of your valuable time, it is understandable that you may have reservations. For this reason we compiled a list of pros and cons of Debian. This should help you decide whether you think it's worth it. We hope you'll appreciate our honesty and frankness.

How do I get Debian?

It's most popular to install Debian from a CD which you can buy for the price of the media at one of our many CD vendors. If you have good Internet access, you can download and install Debian over the Internet.

Please see our page about getting Debian for more information.

If you haven't yet, you may want to first look at the Linux Hardware Compatibility HOWTO.

Don't forget to take a look through the packages we offer (hopefully you won't be intimidated by the sheer number).

I can't set it up all by myself. How do I get support for Debian?

You can get help by reading the documentation which is available both on the web site and in packages you can install on your system. You can also contact us via the mailing lists or using IRC. One can even hire a consultant to do the work.

Please see our documentation and support pages for more information.

Who are you all anyway?

Debian is produced by almost a thousand active developers spread around the world who volunteer in their spare time. Few of the developers have actually met in person. Communication is done primarily through e-mail (mailing lists at lists.debian.org) and IRC (#debian channel at irc.debian.org).

The Debian Project has a carefully organized structure. For more information on how Debian looks from the inside, please feel free to browse the developers' corner.

Who uses Debian?

Although no precise statistics are available (since Debian does not require users to register), evidence is quite strong that Debian is used by a wide range of organizations, large and small, as well as many thousands of individuals. See our Who's using Debian? page for a list of high-profile organizations which have submitted short descriptions of how and why they use Debian.

How'd it all get started?

Debian was begun in August 1993 by Ian Murdock, as a new distribution which would be made openly, in the spirit of Linux and GNU. Debian was meant to be carefully and conscientiously put together, and to be maintained and supported with similar care. It started as a small, tightly-knit group of Free Software hackers, and gradually grew to become a large, well-organized community of developers and users. See the detailed history.

Since many people have asked, Debian is pronounced /ˈde.bi.ən/. It comes from the names of the creator of Debian, Ian Murdock, and his wife, Debra.
»»  READMORE...