How to Prevent your site from the hack

Step-by-step site repair

  • Hopefullly, this detailed step-by-step procedure will help focus on
    the tasks and avoid panic.
  • The concepts apply to any server even though only Linux,
    Apache, and cPanel methods are described.
  • The steps are in order of priority if the evidence you’ve found so
    far hasn’t already given you a clear idea
    what things to focus on first.

The reason these procedures are described in so much detail is so
that people who have never done them don’t have to go
hunting around the web for specifics. If you already know the specifics,
you’ll see that the steps are much less complicated than
they look at first glance, and you can skip the long explanations.

If you just start at step 1, focus, and dive in, what you learn now
will
help you manage your
site with a lot more confidence in the future. These are all useful
things to know how to do. You might even wind up feeling like
an expert.

What not to do

Don’t just repair the damaged files and hope this experience doesn’t
happen again. That is not enough.

Nobody is ever supposed to be
able to add, delete, or change files in your website without your
permission. It
should never happen, and it usually doesn’t. Most websites don’t get
hacked. If yours did, there is something wrong with it, or
with the server, or with the webhost, or with the security on your PC.
You have to figure out how this happened so you can prevent
it from happening again.

Ok, let’s get started… The checkboxes are to help keep your place
as you go.

Continue reading

tutorial dasar spss

Pengenalan SPSS
Deskripsi
SPSS singkatan dari Statistic Product Service Solution merupakan salah satu aplikasi “Statistic software”, SPSS berkembang seiring dengan perkembangan teknologi komputer dewasa ini, sampai saat ini dikenal SPSS Versi 16.
Perbedaan antara versi sebelumnya dengan versi terbaru adalah kemampuan analisis serta menu-menu tampilan sebagai pelengkap dari versi sebelumnya.
Kemampuan program ini adalah melakukan analisis statistik misalnya analisis regresi, korelasi, uji-t, uji-F, analisis factor, analisis validitas dan reliabilitas, serta dapat membuat berbagai grafik, dll.
Berikut saya mencoba memaparkan bagaimana mengola data dengan menggunakan SPSS versi 15 versi ini tidaklah berbeda dengan versi terbaru yaitu versi 15.
Install program SPSS 15

1. Masukkan drive program SPSS15Evaluation
2. Klik file SPSS15Evaluation
3. Klik next
4. ikuti saja perintah-perintah selanjutnya sampai selesai.

Contoh:

Input data berikut:
Matematika (X) = 90, 67, 78, 85, 75, 60, 87, 87, 90, 60
Fisika (Y) = 87, 75, 67, 80, 70, 56, 76, 54, 87, 65

Sekarang kita mulai menginput data sesuai contoh di atas

* Klik start -> All program -> SPSS for windows
* Menu yang akan muncul berupa sheet (excel) yaitu Data view (tempat memasukkan data), variabel view (tempat mendefinisikan variabel)
* Klik variabel view (ketik)
* kolom “name” = x (nama variabel tidak boleh ditandai dengan spasi)
* kolom “type” = numeric
* Kolom “width” = 8 (banyaknya karakter)
* Kolom “Decimal” = 0 (banyaknya angka di belakang koma)
* Kolom “Label” = Matematika (label variabel)
* Kolom “value” = none (diisi jika data kualitatif: misalkan L = 1, P = 0)
* Kolom “Missing” = none (selisih antara variabel )
* Kolom “Columns” = 8 (lebar kolom disesuaikan )
* Kolom “Align” = Right (rata tulisan)
* Kolom “Measure” = Scala (jenis data)
* Lanjutkan dengan mendefinikan variabel “Y”
* Klik Data view (ketik) Ketik semua data variabel matematika di kolom X, Ketik semua data variabel Fisika di kolom Y
* Selesai (Proses penginputan data selesai), menu SPSS jangan ditutup,

sekarang kita lanjutkan dengan analisis deskriptif

ANALISIS DESKRIPTIF

Yaitu analisis yang bertujuan menggambarkan keadaan data, analisis deskriptif berupa Ukuran gejala pusat berupa : mean, median, modus
ukuran penyebaran berupa : kuartil, desil, persentil Ukuran penyebaran berupa : rentang data (range),simpangan (simpangan baku dan varians).Ukuran kemiringan berupa : Model populasi, koefisien kemiring (kurtosis), koefisien kecembungan (skweness) (Tiro, 2006)

langkah-langkahnya:


1. Klik analyze -> klik Descriptive statistic -> klik frequencies
2. Klik Matematika (x) -> klik tanda (>) (untuk memasukkan variabel x ke kolom variables(s)
3. Klik Matematika (y) -> klik tanda (>) (untuk memasukkan variabel y ke kolom variables(s) atau sorot semua variabel x dan y tekan tanda (>)
4. Beri tanda centang (V) display frequency tables.
5. klik Statistics. beri centang (v) Quartil, percentil (isi 25, klik Add, ulangi untuk 50, dan 75) std.deviation, varians, range, Minimum, Maximum, SE.mean, Mean, Median, Mode, Sum Skweness, Kurtosis.
6. Klik Continue
7. Klik Chart (beri centang pada pilihan) Histogram centang with normal curve -> klik continue
8. Klik format (untuk mengatur tampilan data)
9. Klik Ok

Sekarang Anda dapat melihat outputnya:

Bagaimana Cara Memilih Webhosting

kalau boleh saia rekomendasikan, klik aja banner diatas, itu merupakan web hosting di mana blog saya di taruh.. :D

In-House vs. Out-of-House
Memang web server semakin hari semakin mudah untuk di jalankan di dan konfigurasi, akan tetapi masih membutuhkan pengorbanan waktu & kemampuan teknis yang lumayan untuk me-manage server tersebut, belum termasuk biaya yang perlu di keluarkan untuk peralatan. Jika anda baru saja start atau merupakan situs yang masih kecil, rekomendasinya adalah menggunakan hosting service.
Kemungkinan ISP kita dapat memberikan hosting servis yang di maksud. Memang kemungkinan solusi awal yang ekonomis bagi perorangan atau start-up company adalah menggunakan hosting servis yang relatif ekonomis. Dengan semakin besar dan kompleks-nya situs yang kita miliki, mungkin kita perlu melihat alternatif mana yang lebih baik.
Dengan hosting servis memang akan menghindarkan kita untuk melakukan pengeluaran bagi perangkat keras & perangkat lunak yang berharga antara Rp. 4 juta s/d puluhan juta tergantung dari tipe peralatan-nya. Belum lagi sekedar alat tidak cukup, kita juga harus membayari administrator situs. Tentunya dengan menyewa web hosting semua ini menjadi tidak di perlukan, akan tetapi kemungkinan kita masih perlu menyewa konsultan part-time untuk membantu pemeliharaan.
Dengan cara di atas maka biaya yang dikeluarkan pada tahun pertama akan sangat beda sekali daripada menggunakan server / staff sendiri. Perlu kita menyadari bahwa apapun yang kita lakukan, kita masih harus bertanggung jawab untuk membayar tagihan & menjaga content dari situs. Biaya yang perlu kita keluarkan biasanya bervariasi tergantung lokasi, ISP, berbagai paket yang di berikan ISP, jenis saluran komunikasi dll. Semakin kompleks situs yang kita bangun maka akan semakin tinggi biaya pengembangan & pemeliharaannya. Semakin banyak trafik yang akan di generate juga akan semakin mahal biaya-nya untuk menggunakan out-of-house provider. Sayang biaya telekomunikasi di Indonesia masih terlalu mahal, jika saja kompetisi terjadi diantara para operator telekomunikasi, maka akan lebih murah jika kita bisa mempunyai leased line 2Mbps ke rumah & mempunyai server web di rumah tentunya jika kita mempunyai tenaga tetap untuk mengadministrasi web server tersebut. Untuk detail tentang seni & pengetahuan tentang webmaster ada baiknya mengunjungi web reference http://webreference.com . Pilihan lain adalah co-location. Dengan servis co-location, si provider akan menyediakan tempat dan fasilitas pemeliharaan kepada server milik kita yang secara fisik di letakan di situs mereka. Pilihan ini merupakan pilihan yang baik jika kita dapat membeli perangkat kuat yang baik akan tetapi tidak mau memelihara & menjalankan sistem 24 jam.


Package Providers
Beberapa hosting servis menawarkan paket turnkey, mulai dari perencanaan, perancangan, pemrogramman hingga secara fisik memelihara situs yang kita akan miliki. Jika anda akan menggunakan paket turnkey ini ada baiknya mengevaluasi secara seksama semua pilihan yang ada. Pastikan untuk memperoleh estimasi harga secara tertulis dengan tarif jam-jam-an maupun rekap biaya untuk setiap fase proyek.

Memilih Servis Hosting

Jika kita memutuskan untuk memilih hosting servis, mencari servis yang stabil, harga pantas, customer friendly. Berikut adalah beberapa pertanyaan yang dapat membantu anda:

Berapa cepat & stabilkah sambungan mereka ke Internet? Apakah mereka bisa menggaransi servis & support 24 jam? Apakah mereka mempunyai uninterrupted power supplies (UPS) dan sistem backup yang baik?
Tentunya akan sangat menyakitkan jika kita sudah mengeluarkan uang puluhan juta untuk membangun sebuah situs tapi yang di peroleh hanya keluhan dari pengakses bahwa situs kita lambat. Hosting servis tersebut sebaiknya minimal mempunyai dua (2) buah sambungan ke internet pada kecepatan tinggi 2Mbps atau lebih. Lebih baik lagi jika mempunyai sambungan langsung ke Indonesia Internet Exchange (IIX) jika di targetkan untuk audience di Indonesia.

Berapa lama mereka sudah beroperasi? Berapa pegawai yang mereka punyai?
Untuk situs yang serius mau tidak mau sebaiknya menghindari start-up company. Memang start-up company akan menguntungkan untuk mencari servis yang murah. Akan tetapi kalau kita ingin serius menjalankan usaha, mau tidak mau kita harus memilih servis yang baik yang mempunyai programmer yang profesional, spesialis jaringan dan staff pelayanan pelanggan yang baik.

Apakah mereka memberikan servis domain name yang penuh
(contohnya www.namadomain.com)?

Beberapa hosting servis memang tidak mau pusing untuk membuatkan alias yang dibutuhkan untuk mendukung berbagai domain name yang berbeda. Sebagai gantinya sering kali mereka menawarkan bentuk alamat seperti
www.provider-hosting.com/namadomain/
yang tentunya tidak se keren
www.namadomain.com.
Maka sebaiknya jika ISP atau provider hosting anda tidak bisa mensupport domain name secara penuh, ada baiknya berfikir untuk mencari yang lain saja.

Berapa megabyte data yang boleh di simpan? Apakah ada biaya tambahan untuk trafik yang besar yang melalui situs anda?
Coba mencari provider yang dapat memberikan minimal 25 Mbyte yang umumnya standar sekarang ini. Untuk situs yang lebih besar kemungkinan besar akan membutuhkan tempat penyimpanan yang lebih besar. Umumnya provider / servis hosting akan meminta bayaran tambahan untuk kelebihan bandwidth setelah melewati batasan tertentu. Oleh karena itu kita perlu merencanakan berapa besar data yang ditransfer setiap bulan & berapa biaya yang dibutuhkan jika kita melebihi batas yang di tentukan.

Bagaimana bentuk laporan trafik yang diberikan oleh hosting servis?
Tentunya kita harus memperoleh laporan trafik yang berisi kunjungan ke situs kita. Akan banyak sekali data yang bisa kita peroleh dengan adanya laporan trafik, berdasarkan laporan yang ada akan sangat membantu dalam men-tune situs kita berdasarkan kebutuhan & permintaan pembaca.

Bagaimana cara anda meng-update halaman web? Apakah anda mempunya akses File Transfer Protocol (FTP)?
Cara update yang paling umum & paling mudah adalah meng-edit halaman web tersebut di komputer kita & meng-upload (men-transfer) file tersebut ke server Web menggunakan program FTP.

Apakah servis hosting mendukung CGI sehingga kita dapat menggunakan f
ormulir, pencari database dan image map?

Jika anda ingin mempunyai formulir / image map maka anda harus mempunyai akses penuh ke direktori cgi-bin. Direktori CGI (Common Gateway Interface) tempat meletakan script & berbagai program yang dijalankan oleh Web di simpan. Umumnya hosting servis akan memberikan layanan ini.

Apakah ada penjaga keamanan yang menjamin hacker / kracker tidak masuk?
Tidak bisa di sangkal bahwa keamanan adalah salah satu hal yang termasuk paling penting dalam usaha di Internet. Pada saat ini memang tidak ada satu teknologipun yang demikian sempurna yang mampu menahan serangan para kracker ini. Bagaimana kita dapat meminimisasi kemungkinan serangan ini? Cara yang paling sederhana adalah menanyakan apakah di provider tersebut menyediakan orang yang ahli dalam bidang security / keamanan jaringan. Yah apa boleh buat, jika tidak ada orang yang ahli keamanan jaringan di provider tersebut ada baiknya pindah ke provider yang lain.
Biasanya yang ingin kita dengan adalah bagaimana cara mereka memonitor aktifitas di jaringan selama 24 jam yang dapat mendeteksi aktifitas yang tidak wajar sebelum aktifitas tersebut membuat kerusakan. Biasanya mereka mempunyai program untuk firewall atau untuk mengatasi masalah-masalah security yang umum. Bagi anda yang ingin secara serius mempelajari masalah security ini ada baiknya mulai membaca-baca National Institute of Computer Security Resource Clearinghouse http://csrc.nist.gov; SANS Institute http://www.sans.org; Rootshell http://www.rootshell.com.

Apa Sebenarnya Domain Name?
Sebuah domain name (www.namadomain.com) adalah identitas anda yang unik di Internet. Setelah anda mempunyai domain maka sebetulnya dapat dengan mudah mendaftarkan alamat IP situs anda ke InterNIC http://www.internic.net atau berbagai servis domain registration. Beberapa servis hosting akan menawarkan “pseudo domain name” yang artinya mereka akan meletakan alias di komputer mereka supaya tampaknya seperti domain name betulan, padahal tidak. Masalahnya jika domain name tersebut tidak di registrasikan di InterNIC maka akan ada saja orang yang akan mencuri domain tersebut – padahal anda sudah menggunakannya selama beberapa bulan atau tahun. Biaya pendaftaran domain name sekitar US$9 untuk satu tahun. Banyak ISP yang dapat membantu anda untuk meregistrasikan domain yang anda inginkan dengan meminta sedikit uang jasa.

Pokok nya www.hostgokil.com manteb dah :beer:

tips dan trick rss pada wordpress

Publish The Feed Later

If you look at the possibilities of mySQL, there is a function timestampdiff(). I extend the query of WordPress with this function. Note to query the feed before (is_feed()), if not it will be also happening for the classical publishing of posts in your blog.

The following example publishs the post 5 minutes later in your feed:

/**
 * puplish the content in the feed later
 * $where ist default-var in WordPress (wp-includes/query.php)
 * This function an a SQL-syntax
 */
function publish_later_on_feed($where) {
	global $wpdb;

	if ( is_feed() ) {
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');

		// value for wait; + device
		$wait = '5'; // integer

		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR

		// add SQL-sytax to default $where
		$where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait ";
	}
	return $where;
}

add_filter('posts_where', 'publish_later_on_feed');

SUMBER

Redirecting WordPress Feeds to FeedBurner Feeds

The problem. Beginner bloggers usually start to use FeedBurner only after they have seen it used on many other blogs and realize how useful and cool this tool is. They sign up and start to use it, but their early readers are already subscribed to their default WordPress feed.

Another problem: do you often change your theme? If so, you must be bored having to edit each call to bloginfo(’rss2_url’) and replace it with your FeedBurner feed’s URL.

The solution. The solution to both problems described above is simple: use server redirections.

  1. Create a backup of your .htaccess file, located in the root of your Web server.
  2. Edit the .htaccess file and add the following code. Don’t forget to modify the feed’s URL with your own feed’s URL.
    1 # temp redirect wordpress content feeds to feedburner
    2 <IfModule mod_rewrite.c>
    3 RewriteEngine on
    4 RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
    5 RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
    6 RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/wprecipes [R=302,NC,L]
    7 </IfModule>
  3. Save the file. You’re done!

Code explanation. Each time someone clicks on a link to http://www.yourblog.com/feed, he or she will be redirected to http://feeds.feedburner.com/yourblog. This way, you will have never lost an RSS subscriber, and even if you change your theme twice a day, you’ll never have to manually edit your RSS feed links again.

Sources

Insert Ads (or Anything Else) in Your RSS Feed

The problem. Monetizing RSS feeds is currently becoming a common practice, and many blog owners do it to maximize their income. FeedBurner can insert AdSense ads into your feed items, but you need at least 500 subscribers to qualify, and you can’t use any ads other than the AdSense ads provided by FeedBurner.

The solution. It is possible, though, to insert other kinds of ads into your RSS feed. You can, for example, use a link to a free WordPress theme only for your RSS subscribers.

Follow these simple steps to perform this hack:

  1. Edit the functions.php file of your theme. If your theme doesn’t have a functions.php file, simply create one.
  2. Paste the following code into your functions.php file:
    1 <?php
    2 function insertAds($content) {
    3 $content = $content.'<hr /><a href="http://www.wprecipes.com">Have you visited WpRecipes today?</a><hr />';
    4 return $content;
    5 }
    6 add_filter('the_excerpt_rss', 'insertAds');
    7 add_filter('the_content_rss', 'insertAds');
    8 ?>
  3. Save the file. You’re now displaying your ads in your RSS feed!

Code explanation. I have seen many similar hacks on the Web, but all of them require you to edit WordPress core files to achieve the same result. Of course, editing WordPress core files is a very bad idea because then you would have to re-edit the files each time you upgrade your blog. Instead, this hack uses the add_filter() WordPress function to insert content into your RSS feed without editing any core files.

Sources

Format Your Images for Feed Readers

The problem. You took a lot of time to write and format your post and add beautiful screenshots. It looks so good on your blog. Sadly, when the post is displayed in Google Reader or any other RSS reader, it doesn’t look so great.

The solution. This is due to the fact that most feed readers display images inline with text:

Inline-image in 10 Useful RSS-Tricks and Hacks For WordPress

To avoid this problem, add a CSS class to display the image as a block. WordPress provides the built-in class “center“:

Sources

Provide Your Readers with a Feed for Each Post

The problem. When a post has lots and lots of comments, it can be hard for readers to follow the conversation. Most WordPress users don’t know this, but our favorite blogging engine has a built-in function for providing an RSS feed for the comments in each post.The solution. Well, this recipe isn’t really a hack or anything: to provide an RSS feed for the comments in a particular post, just call the comment_rss_link() function:

1 <?php comments_rss_link('» Comments RSS Feed'); ?>

Sources

Exclude Categories from Your RSS Feed

The problem. Do you use one of your blog categories to let readers know about your website’s news, or does your blog feature a category that has nothing to do with the rest of your content? If so, it is generally not a good idea to include it in your RSS feed.

The solution. Here’s how to get rid of one of the categories in your RSS feed:

  1. First, get the numeric ID of the category you want to exclude. If you don’t know how to get the ID of a particular category, you can learn how here.
  2. Once you have the ID of the category you want to exclude from your RSS feed, edit the functions.php file in your theme. Create the file if it doesn’t exist.
  3. Paste the following code in it:
    1 function myFilter($query) {
    2 if ($query->is_feed) {
    3 $query->set('cat','-5'); //Don't forget to change the category ID =^o^=
    4 }
    5 return $query;
    6 }
    7
    8 add_filter('pre_get_posts','myFilter');
  4. Save the file, and you’re done!

Code explanation. This hack works exactly the same way as the previous one: create a custom function to exclude the category that you don’t want to appear in your RSS feed, and then use the super-useful add_filter() function to apply it to the pre_get_posts() WordPress core function.

Sources


Display Any RSS Feed on Your WordPress Blog

The problem. Do you have more than one blog, or do you manage a forum? If so, you may want to be able to display any RSS feed on your WordPress blog.

The solution. Many plug-ins can do the job, but they’re not necessary at all. WordPress has a built-in RSS reader that is used, for example, to display news on your dashboard. All you have to do is use it in your theme.

  1. Paste the following code anywhere in your theme (personally, I’d put it in the sidebar, the footer or, even better, the page template):
    1 <?php include_once(ABSPATH.WPINC.'/rss.php');
  2. Save it and you’re done. It’s as easy as that!

Code explanation. The first thing we have done is include the rss.php file from WordPress core. This file allows us to use the wp_rss() function, which takes two parameters: the first is the RSS feed’s URL, and the second is the number of RSS entries to be displayed.

Sources


Use Category-Specific RSS Feeds

The problem. Many blogs talk about a lot of different topics: design, programming, blogging tips, etc. Have you ever come across a blog in which you have enjoyed only one category of posts? If so, you should definitely consider offering one feed per category to your own readers.

The solution. Let’s say you’d like to be able to subscribe only to TheGridSystem’s tools section. The category URL is:

1 http://www.thegridsystem.org/categories/tools/

To get an RSS feed for this category, you simply have to add /feed to the end of the URL:

1 http://www.thegridsystem.org/categories/tools/feed

Pretty easy, isn’t it? But pretty useful, too, in my opinion.


List RSS Feeds by Category

Sm3 in 10 Useful RSS-Tricks and Hacks For WordPress

The problem. If you like the previous hack, you will probably also want to be able to display the names of all your category feeds in a list to your readers.

The solution.

  1. Edit any of your theme files, where you want to list your categories and their accompanying feeds.
  2. Paste the following code:
    1 <?php wp_list_categories('feed_image=http://www.myblog.com/image.gif&feed=XML Feed&optioncount=1&children=0'); ?>
  3. Save the file. You categories will now be displayed, along with their RSS feeds!

Code explanation. This hack uses only the good old wp_list_categories() function, with two parameters. The first is feed_image, which allows us to specify the URL to be displayed as a feed image. The second parameter is feed, which is used to specify the feed format.


Get Rid of RSS Feeds the Clean Way

Sm7 in 10 Useful RSS-Tricks and Hacks For WordPress

The problem. Let’s say you’re using WordPress as a CMS to manage your online portfolio or your company’s website. In such cases, the RSS feed isn’t that useful, and some people would probably want to remove it.

The solution. I have seen many “hacks” on the Web where people say you just have to remove the include on the wp-settings.php core file. I don’t think you should ever edit a core file. Instead, the following hack will do the job. Simply paste this code in the functions.php file of your theme:

1 function fb_disable_feed() {
2 wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
3 }
4
5 add_action('do_feed', 'fb_disable_feed', 1);
6 add_action('do_feed_rdf', 'fb_disable_feed', 1);
7 add_action('do_feed_rss', 'fb_disable_feed', 1);
8 add_action('do_feed_rss2', 'fb_disable_feed', 1);
9 add_action('do_feed_atom', 'fb_disable_feed', 1);

Sources

API (Application Program Interface)

Dalam contoh program sederhana di atas, dibutuhkan setidaknya ribuan system calls per detik. Oleh karena itu Kebanyakan programmer membuat aplikasi dengan menggunakan Application Programming Interface(API). Dalam API itu terdapat fungsi-fungsi/perintah-perintah untuk menggantikan bahasa yang digunakan dalam system calls dengan bahasa yang lebih terstruktur dan mudah dimengerti oleh programmer. Fungsi yang dibuat dengan menggunakan API tersebut kemudian akan memanggil system calls sesuai dengan sistem operasinya. Tidak tertutup kemungkinan nama dari system calls sama dengan nama di API.

Keuntungan memprogram dengan menggunakan API adalah:

  • Portabilitas. Programmer yang menggunakan API dapat menjalankan programnya dalam sistem operasi mana saja asalkan sudah ter- install API tersebut. Sedangkan system call berbeda antar sistem operasi, dengan catatan dalam implementasinya mungkin saja berbeda.
  • Lebih Mudah Dimengerti. API menggunakan bahasa yang lebih terstruktur dan mudah dimengerti daripada bahasa system call. Hal ini sangat penting dalam hal editing dan pengembangan.

System call interface ini berfungsi sebagai penghubung antara API dan system call yang dimengerti oleh sistem operasi. System call interface ini akan menerjemahkan perintah dalam API dan kemudian akan memanggil system calls yang diperlukan.

Untuk membuka suatu file tersebut user menggunakan program yang telah dibuat dengan menggunakan bantuan API, maka perintah dari user tersebut diterjemahkan dulu oleh program menjadi perintah open(). Perintah open() ini merupakan perintah dari API dan bukan perintah yang langsung dimengerti oleh kernel sistem operasi. Oleh karena itu, agar keinginan user dapat dimengerti oleh sistem operasi, maka perintah open() tadi diterjemahkan ke dalam bentuk system call oleh system call interface. Implementasi perintah open() tadi bisa bermacam-macam tergantung dari sistem operasi yang kita gunakan.

Cara Memakai API

* Dilakukan dengan mengimpor package/kelas import java.util.Stack;
* Ada beberapa kelas bernama sama dipackage yang berbeda, yaitu :

– import salah satu dan gunakan nama lengkap untuk yang lain, atau

– gunakan nama lengkap semua kelas

Ada tiga jenis Bahasa Pemrograman Java Application Programming Interface (API):

* inti resmi Java API, yang terdapat dalam JDK atau JRE, dari salah satu edisi dari Java Platform. Tiga edisi dari Java Platform adalah Java ME (Micro edition), Java SE (Standard edition), dan Java EE (Enterprise edition).
* Resmi opsional API yang dapat didownload secara terpisah. Spesifikasi API ini didefinisikan sesuai dengan Spesifikasi Jawa Request (JSR), dan kadang-kadang beberapa API ini kemudian dimasukkan dalam API inti dari platform (contoh yang paling terkenal dari jenis ini adalah swing).
* API tidak resmi, yang dikembangkan oleh pihak ketiga, tetapi tidak berkaitan dengan JSRs apapun.

Pihak-pihak ketiga dapat dengan bebas mengimplementasikan spesifikasi JSR API resmi (bahkan untuk API inti dari bahasa), memberikan bahwa mereka menyesuaikan diri dengan Teknologi Kompatibilitas Kit (TCK) untuk JSR ini (yang TCK adalah paket tes yang memeriksa kesesuaian dari implementasi untuk JSR). The result of this freedom is that many official APIs have more implementations than the Sun’s Reference implementation (RI). Hasil dari kebebasan ini adalah bahwa banyak API resmi memiliki lebih implementasi daripada Matahari pelaksanaan Referensi (RI). Anda dapat menggunakan kelas Java dan API untuk mengakses konten di berbagai server konten.

The DB2 Content Management pusat informasi yang menyediakan dokumentasi API berikut:

* Kelas Java dan API
* JavaBeans
* C + + kelas dan API
* Tabel kontrol sistem
* Perpustakaan pengguna server keluar
* DB2 Content Manager aturan sistem konektor

Berikut ini adalah sebagian daftar Application Programming Interface (API) untuk Java Programming Language.

* Java Platform, Standard Edition (Java SE)
* Bundled 1.1.1 API (bagian dari standar download)
* Opsional 1.1.2 API (download terpisah)
* Java Platform, Enterprise Edition (Java EE)
* Bundled 1.2.1 API (bagian dari standar download)
* Opsional 1.2.2 API (download terpisah)
* Java Platform, Micro Edition (Java ME)
* Unofficial API (Dirilis oleh pihak ketiga)