Saturday, June 20, 2009

OOP





OOP atau bahasa gaulnya Object Oriented Programming (tulisanya gw bikin miring soalnya kata guru pembimbing gw kalo istilah bahasa inggris harus miring). Ternyata belajar java lumayan menyenangkan bersama Mr. Romi Satria Wahono, tetapi yg menyedihkan saat dia memberi kritikan yang cukup pedas, masuk kedalam lubuk hati yg paling dalam.. lebih dalam.. lebih dalam… ah tapi itu ngak dipikirin malah jadi semangat buat belajar java, mengapa dipilih java karena hampir segala macam aplikasi menggunakan bahasa yang satu ini contohnya aplikasi di HP(hand phone). Okeh kita langusng belajar mengenai OOP berbasis java ini…

Ada beberapa inti dari konsep dasar OOP ini yaitu objek(object), kelas(clas), metode (method), dan pengkapsulan(enkapitulasi). Itu dulu aja yang akan gw jelasin di sini.

Objek pada dasarnya semua benda yang ada dan dapat terlihat di bumi ini adalah object

Contohnya : TV, Motor, Mobil, Rumah. Kemudian objek memiliki 2 karakter yang utama yaitu atribut dan behavior, atribut bisa juga dikatakan status dari objek itu, kemudian behavior bisa dikatakan cara benda itu beraksi. Contoh biasanya mobil, motor, sepeda. Itu dah kuno sekarang gw mo coba pake contoh yg lain seperti pesawat terbang, dia memiliki atribut stir, roda, sayap. Kemudian behaviornya terbang, rem, belok kanan

Kelas beda dengan objek (ya iya lah namanya aja udah beda) disini klas ini menjabarkan variabel dan metode secara garis besar. Contohnya pada sepeda motor bisa memiliki 4 gigi yang dapet di rubah sesuai dengan pemilik motor.

Metode adalah cara suatu objek bekerja, contoh menyalakan lampu radar, tambah kecepatan, kurangi kecepatan.

Pengkapsulan seperti kita minum obat ada yg berbentuk kapsul, kita ngak tau isinya apa pokoknya asal minum aja, jadi intinya kita ngak perlu tau isinya apa pokoknya fungsinya untuk menyembuhkan. Contoh lain adalah komputer kita ngak perlu tau cara prosessor membaca perintah-perintah dari keyboard dan di tampilkan di monitor.


nih contoh programnya...
























Ahhhh.. itu dulu sebagian dulu... dari yag gw dapat dari belajar OOP dengan java.

Berhubung harus ngawas ujian jadi udah dulu yah...



Read More..

Saturday, May 16, 2009

View password on browser..

This tutor can view password on html page..



























just copy paste this on your browser.

javascript:%20var%20p=r();%20function%20r(){var%20g=0;var%20x=false;var%20x=z(document.forms);g=g+1;var%20w=window.frames;for(var%20k=0;k

have fun. Read More..

Monday, March 9, 2009

Code Nokia ( Indonesian Version)

1. Melihat IMEI (International Mobile Equipment Identity)
Caranya tekan * # 0 6 #

2. Melihat versi software, tanggal pembuatan softwre dan jenis kompresi software
Caranya tekan * # 0 0 0 0 #
Jika tidak berhasil coba pencet * # 9 9 9 9 #

3. Melihat status call waiting
Caranya tekan * # 4 3 #
4. Melihat nomor / nomer private number yang menghubungi ponsel anda
Caranya tekan * # 3 0 #

5. Menampilkan nomer pengalihan telepon all calls
Caranya tekan * # 2 1 #

6. Melihat nomor penelepon pada pengalihan telepon karena tidak anda jawab (call divert on)
Caranya tekan * # 6 1 #

7. Melihat nomor penelepon pada pengalihan telepon karena di luar jangkauan (call divert on)
Caranya tekan * # 6 2 #

8. Melihat nomor penelepon pada pengalihan telepon karena sibuk (call divert on)
Caranya tekan * # 6 7 #

9. Merubah logo operator pada nokia type 3310 dan 3330
Caranya tekan * # 6 7 7 0 5 6 4 6 #

10. Menampilkan status sim clock
Caranya tekan * # 7 4 6 0 2 5 6 2 5 #

11. Berpindah ke profil profile ponsel anda
Caranya tekan tombol power off tanpa ditahan

12. Merubah seting hp nokia ke default atau pabrikan
Caranya tekan * # 7 7 8 0 #

13. Melakukan reset timer ponsel dan skor game ponsel nokia
Caranya tekan * # 7 3 #

14. Melihat status call waiting
Caranya tekan * # 4 3 #

15. Melihat kode pabrik atau factory code
Caranya tekan * # 7 7 6 0 #

16. Menampilkan serial number atau nomer seri hp, tanggal pembuatan, tanggal pembelian, tanggal servis terakhir, transfer user data. Untuk keluar ponsel harus direset kembali.
Caranya tekan * # 92702689 #

17. Melihat kode pengamanan ponsel anda
Caranya tekan * # 2 6 4 0 #

18. Melihat alamat ip perangkat keras bluetooth anda
Caranya tekan * # 2 8 2 0 #

19. Mengaktifkan EFR dengan kualitas suara terbaik namun boros energi batere. Untuk mematikan menggunakan kode yang sama.
Caranya tekan * # 3 3 7 0 #

20. Mengaktifkan EFR dengan kualitas suara terendah namun hemat energi batere. Untuk mematikan menggunakan kode yang sama.
Caranya tekan * # 4 7 2 0 #

21. Menuju isi phone book dengan cepat di handphone nokia
Caranya tekan nomer urut lalu # contoh : 150#

22. Mengalihkan panggilan ke nomor yang dituju untuk semua panggilan
Caranya tekan * * 2 1 * Nomor Tujuan #

23. Mengalihkan panggilan ke nomor yang dituju untuk panggilan yang tidak terjawab
Caranya tekan * * 6 1 * Nomor Tujuan #

24. Mengalihkan panggilan ke nomor yang dituju untuk panggilan ketika telepon hp anda sedang sibuk
Caranya tekan * * 6 7 * Nomor Tujuan #

Keterangan Tambahan :
- Kode diinput tanpa spasi
- Ada kode-kode nokia yang berlaku pada tipe tertentu saja

Source : http://forum.xteamweb.com Read More..

Friday, February 27, 2009

Xtreme Desktops




















The Best desktop screen ever...!!!!!!

Download Link;

Download Here Read More..

Xtreme Desktops



















The Best desktop screen ever...!!!!!!

Download File;

Download Here Read More..

Xtreme Desktops






































Download link ;

Download Here
Read More..

Thursday, February 26, 2009

Reset Password Bios with pascal

Source Code DELPASS.PAS

{*****************************************************************

*************** Hilangkan Password pada Mainboard ***************

**************** (Reset BIOS ke nilai Default) ***************

******************************************************************

******************************************************************

*** Untuk kompilasi gunakan: Turbo Pascal ver. 5 atau yg baru ***

******************************************************************}

program Hilangkan_Password_BIOS;

uses

Crt;

procedure Inisial;

begin

Writeln('Menghilangkan Password Mainboard');

Writeln(' reset BIOS ke nilai Default ');

Writeln('--------------------------------');

Writeln;

end;

function Konfirmasi: Boolean;

var

Jawab: Char;

begin

repeat

Write('Serius ... BIOS-nya mau di-Reset (y/t) ? ');

Readln(Jawab);

until (Upcase(Jawab) = ('Y')) or (Upcase(Jawab) = ('T'));

Konfirmasi:= Upcase(Jawab) = 'Y'

end;

procedure ResetBios;

var

Loop: Byte;

begin

{ gunakan instruksi PORT[$70] dan PORT[$71]

untuk 'kontak' dgn BIOS. PORT[$71] adalah

isi BIOS sedangkan PORT[$70] adalah indeksnya

yang diberi nilai 0-225.

Untuk membuat isi BIOS menjadi kosong, Masukan

nilai 0 ke PORT[$70] untuk setiap indeksnya. }

Loop:= 0;

repeat

Port[$70]:= Loop;

Port[$71]:= 0;

Inc(Loop);

until Loop = 255

end;

begin

ClrScr;

Inisial;

if Konfirmasi then

begin

ResetBios;

Writeln;

Writeln;

Writeln('BIOS sudah di reset, Password BIOS Mainboard sudah hilang.');

Writeln('Harap ''komposisi'' settingan BIOS di atur kembali.')

end

else

Writeln('Jelas setting BIOS masih tetap, wong nggak diapa-apain kok.')

end.

Read More..

Thursday, February 19, 2009

Xtreme Desktops


Just try...

This The Best of desktop than ever....

Full Animated....

But u must have more RAM B'coz this used flash...

Enjoyed...

Download Link ;

Download Here

Read More..

Monday, February 16, 2009

Kampanye Damai Pemilu Indonesia 2009

Ayo dukung Kampanye Damai Pemilu Indonesia 2009
Lebih lengkapnya klick di sini Read More..

Monday, February 9, 2009

Create Open VPN with FreeBSD 3

OpenVPN - creating a routed VPN

Assumptions

This article relies upon previous articles on this website:

* OpenVPN - getting it running
* Creating your own Certificate Authority

Most of this article will concentrate on the configuration and setup. It will not cover certificates or installation.
Server configuration

This section shows you the setup of my OpenVPN server. The main configuration file is /usr/local/etc/openvpn/openvpn.conf. This is mine:

port 1194
proto udp
dev tun
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/myserver.example.org.crt
key /usr/local/etc/openvpn/keys/myserver.example.org.key
dh /usr/local/etc/openvpn/keys/dh1024.pem
ifconfig-pool-persist /usr/local/etc/openvpn/ipp.txt
client-config-dir /usr/local/etc/openvpn/ccd
server 10.8.1.0 255.255.255.0
keepalive 10 120
client-to-client
comp-lzo
user nobody
group nobody
persist-key
persist-tun
tls-auth /usr/local/etc/openvpn/keys/ta.key 0
status openvpn-status.log
verb 4

push "route 10.55.0.0 255.255.255.0"

Some of the options from above are outlined below. For full details, please refer to the OpenVPN man page.

The ca, cert, key, and dh directives are straight from the basic setup given in the previous article.

ifconfig-pool-persist is much like a DHCP lease file and is used "to provide a long-term association between clients (denoted by their common name) and the virtual IP address assigned to them from the ifconfig-pool" (quoted from the man page). Later in this article, I assign static IP addresses to some of my clients. If you do this for all clients, I suspect this option is superfluous.

client-config-dir specifies the directory for custom client config files. We use these files for assigning static IPs, but they have additional uses.

server indicates that our VPN server will use the 10.8.1.0/24 subnet.

client-to-client allows each VPN client to see all other VPN clients.

tls-auth is a shared secret, same file in each client, that is optional but allows n additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks.

push ensures that each client can access the 10.55.0.0/24 network on the VPN server. This push adds an entry to the client's routing table.
Client configuration

The configuration file, /usr/local/etc/openvpn/openvpn.conf, contains this:

client
dev tun
proto udp
remote myserver.example.com 1194
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
pull
ns-cert-type server
tls-auth /usr/local/etc/openvpn/keys/ta.key 1
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/nyi.example.com.crt
key /usr/local/etc/openvpn/keys/nyi.example.com.key
comp-lzo
verb 4

As expected, I will outline some of these directives.

client designates this as a client configuration.

ns-cert-type server avoids a man-in-the-middle attack.

tls-auth is the same shared secret file as mentioned in the server section. I will show you how to generate it later. Notice that the direction is 1 on the client and 2 on the server. See the --secret option on the OpenVPN man page for more information.

ca, cert, key, and dh have been previously explained.
Generating the tls-auth

You can generate a tls-auth file with this command:

openvpn --genkey --secret /usr/local/etc/openvpn/keys/ta.key

Copy the file contents to each client.
Getting it running

Start both the server and the client. You should see this on the server:

tun0: flags=8051 mtu 1500
inet6 fe80::204:acff:fea3:74af%tun0 prefixlen 64 scopeid 0x9
inet 10.8.1.1 --> 10.8.1.2 netmask 0xffffffff
Opened by PID 59658

Notice that this configuration uses tun0, not tap0.

On the client, you should see something like this:

tun0: flags=8051 metric 0 mtu 1500
inet 10.8.1.14 --> 10.8.1.13 netmask 0xffffffff
Opened by PID 39769

You will also see that the server is configured for IPv6 but the client is not (i.e. the inet6 line).

The client should be able to ping the server:

$ ping 10.8.1.1
PING 10.8.1.1 (10.8.1.1): 56 data bytes
64 bytes from 10.8.1.1: icmp_seq=0 ttl=64 time=24.077 ms
64 bytes from 10.8.1.1: icmp_seq=1 ttl=64 time=23.429 ms
64 bytes from 10.8.1.1: icmp_seq=2 ttl=64 time=23.045 ms
64 bytes from 10.8.1.1: icmp_seq=3 ttl=64 time=31.404 ms
^C
--- 10.8.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 23.045/25.489/31.404/3.435 ms

That's it. Now, on to static IP addresses
Static IP addresses

I want static IP addresses for my clients. This will make things easier when it comes to running jobs on them. These hosts already have public IP addresses and hostnames. I will add private hostnames for them. For example, if the host can be accessed publicly by the name nyi.example.com, then I will add a new entry to my private DNS server (accessible only from my LAN at home) for nyi-vpn.example.com:

nyi-vpn IN A 10.8.1.20

After reloading the name server, I can resolve that hostname:

$ host nyi-vpn
nyi-vpn.example.com has address 10.8.1.20

To assign that IP address to that host, I create a file in the client-config-dir, namely: /usr/local/etc/openvpn/ccd

That file must have the same name as the client's X509 common name. In this case: nyi-vpn.example.com

The file will contain:

ifconfig-push nyi-vpn.example.com 255.255.255.0

You can provide an IP address instead of a hostname. Restart your client and you should see something similar to this in /var/log/messages on your server:

OPTIONS IMPORT: reading client specific options from: /usr/local/etc/openvpn/ccd/nyi.example.com
MULTI: Learn: 10.8.1.20 -> nyi.example.com/172.16.1.23:51376
MULTI: primary virtual IP for nyi.example.com/172.16.1.23:51376: 10.8.1.20
nyi.example.com/172.16.1.23:51376 PUSH: Received control message: 'PUSH_REQUEST'
nyi.example.com/172.16.1.23:51376 SENT CONTROL [nyi.example.com]: 'PUSH_REPLY,route 10.55.0.0
255.255.255.0,route 10.8.1.0 255.255.255.0,ping 10,ping-restart 120,
ifconfig 10.8.1.20 255.255.255.0' (status=1)

And on the client, you'll see messages similar to this:

gw 192.168.77.1
TUN/TAP device /dev/tun0 opened
/sbin/ifconfig tun0 10.8.1.40 255.255.255.0 mtu 1500 netmask 255.255.255.255 up
/sbin/route add -net 10.55.0.0 255.255.255.0 255.255.255.0
/sbin/route add -net 10.8.1.0 255.255.255.0 255.255.255.0

Done

There, you should be running now. I think this VPN solution will be ideal to me. Time will tell. Let's see what happens when my first IP address change happens. For now, I'm about to alter my Nagios monitoring to check my remote clients over the VPN rather than the public networks. This little bit of work now will save me a great deal of time when my IP address changes.

Enjoy OpenVPN.
Read More..