Pengembangan & Implementasi Perangkat Lunak

Membuat Software Requirement

Requirement adalah pernyataan yang menidentifikasikan kebutuhan yang penting dalam sistem dan didalamnya mencakup aspek kebenaran, Realistis, Dibutuhkan, tidak ambigu, dan terukur. Langkah yang paling penting dalam proses requirement adalah komunikasi yang akurat antara user yang memerlukan sistem dengan pembuat sistem.
Banyak orang sering salah dalam mendefinisikan requirement untuk sistem yang mereka bangun, kerena mereka kurang mendapat pelatihan dan pengalaman dalam membuat requirement. Bahkan di bangku kuliah yang mengajarkan mata kuliah system engineering hanya mengajarkan pengenalan untuk materi menulis requirement. Requirement yang baik menyatakan sesuatu yang dibutuhkan, dapat diverifikasi, memungkinkan, dan Jelas.

Mengenal Enterprise Application Integration (EAI)

Pada artikel kali ini, kita akan membahas topik yang jarang atau bahkan tidak pernah dibahas dalam perkuliahan formal ilmu komputer. Pengajaran ilmu komputer selalu mengandaikan kondisi ideal dan sederhana. Kenyataannya, kondisi sistem informasi di dunia bisnis tidaklah ideal dan biasanya sangat kompleks. Kuliah Rekayasa Perangkat Lunak (Software Engineering) biasanya mengasumsikan bahwa mahasiswa membuat software baru dari awal (building from scratch). Di dunia bisnis, komponen perangkat lunak yang sudah ada sebisa mungkin terus digunakan untuk memaksimalkan investasi perangkat lunak yang sudah pernah ditanamkan. Di dalam dunia perkuliahan, isi dari komunikasi data antara dua komputer tidak pernah harus dicatat secara mendetil. Di dunia bisnis, setiap transaksi antara dua sistem harus dicatat dalam audit logging dan menjadi bagian dari laporan akunting.
Jadi, apa hubungan antara tulisan di atas dengan tema artikel kali ini tentang Enterprise Application Integration (EAI)? Pada waktu penulis masih duduk di bangku kuliah, penulis mengikuti kuliah pilihan tentang komunikasi antara sistem terdistribusi. Teknologi untuk membuat dua buah aplikasi dapat “berbicara” satu sama lain adalah RPC (Remote Procedure Call), CORBA (Common Object Request Broker Architecture) , atau RMI (Remote Method Invocation)/IIOP (Internet Inter-ORB Protocol). Sekarang setelah penulis berkecimpung di dunia kerja – dengan spesialisasi di bidang EAI -, teknologi yang dipakai adalah c WebSphere MQ, MSMQ, SonicMQ, Tibco, MQ Integrator. Sederetan nama produk yang TIDAK menggunakan teknologi RPC, CORBA, dan RMI/IIOP sama sekali. Sepertinya, dunia bisnis mempunyai teknik tersendiri dalam melakukan integrasi. Mari kita kupas satu per satu .

Mengintip Core i9

corei9 02 500x375 Mengintip Intel Core i9 ‘Gulftown’
Intel Core i9 dengan 12 parallel thread ??
Dari EXPreview kali ini mereka memiliki kesempatan untuk mengintip prosesor Intel generasi berikutnya yang menggunakan 6-core, 32nm “Gulftown” processor. CPU ini dikabarkan akan hadir pada pertengahan 2010. Prosessor ini akan mensupport Socket LGA1366, Gulftown menggunakan teknologi dasar pada 32nm dan memiliki kecepatan 2.4GHz (18*133MHz), dengan 12MB L3 cache.
Selain itu Gulftown ini akan kompatibel dengan X58 chipset, tentunya kehadiran prosessor ini akan dinantikan oleh banyak pengguna PC yang ingin merakit pc di tahun 2010. Pada dasarnya perlu anda ketahui Core i9 Gulftown merupakan analogi dari Core i7 + 2, dengan 6 core fisik, sehingga dengan begitu total thread count dapat mencapai 12 thread paralel, dan 50% L3 cache meningkat dari Core i7 Bloomfield. Selain itu Gulftown juga tidak akan menempatkan IGP core pada 32nm CPU nya, sehingga, tidak ada perubahan dari sisi kemampuan grafiknya

Membobol CD/DVD yg di Protect


Tips n Trik Komputer, Cara Membobol Kaset CD/DVD yang di password, Menjebol proteksi password di Kaset CD/DVD, Software untuk menjebol/membuka drive CD/DVD yang di proteksi/password


Software Clone CD ini berfungsi untuk membobol Kaset CD dan DVD yang di proteksi, jika sebuah cd di password tentunya mustahil bagi kita untuk mengcopy isi dari kaset cd tersebut, nah cobalah apa yang akan saya bagikan ini, 99% pasti jebol proteksi terhadap kaset tersebut.

Link download:
- Clone CD/DVD

Bagaiman cara menggunak CLONE CD ini ?
Nehh gan.. Klik copy lalu pilih Drive CD anda kemudian klik next, kemudian pilih jenis cd/dvd yang anda mau copy, video audio or cd game lalu klik next.. setelah itu pilih tempat dimana file mau anda simpan. the end.
Sumber(koskomputer.blogspot.com)

Step by Step Configuration of Static NAT

Configuration of static NAT is very straight forward. In this example we have a web server connected with Router 1. Our web server is using the IP address 10.0.0.2. But due to various reasons discussed in pervious article our company want to use 50.0.0.1 IP address for this server. Now our task is to configure NAT on Router 1 which translate 10.0.0.2 [ inside local web server address] to 50.0.0.1 [ inside global ip address ].

To configure static NAT follow this step by step guide

Now configure R1 exactly given here


Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 20.0.0.2 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.1
R1(config)#ip nat inside source static 10.0.0.2 50.0.0.1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#

Now configure R0 exactly given here


Router>enable
Router#configure terminal
Router(config)#hostname R0
R0(config)#interface fastethernet 0/0
R0(config-if)#ip address 30.0.0.1 255.0.0.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface serial 0/0/0
R0(config-if)#ip address 20.0.0.1 255.0.0.0
R0(config-if)#clock rate 64000
R0(config-if)#bandwidth 64
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#ip route 50.0.0.0 255.0.0.0 20.0.0.2
R0(config)#
As you have seen in configuration there is not direct route for 10.0.0.2. So PC from network of 30.0.0.0 will never know about it. They will access 50.0.0.1 as the web server IP. To test it double click on any computer and ping from 50.0.0.1 and you will get replay.

Packet Tracer PC Command Line 1.0
PC>ping 50.0.0.1
Pinging 50.0.0.1 with 32 bytes of data:
Reply from 50.0.0.1: bytes=32 time=141ms TTL=126
Reply from 50.0.0.1: bytes=32 time=80ms TTL=126
Reply from 50.0.0.1: bytes=32 time=109ms TTL=126
Reply from 50.0.0.1: bytes=32 time=125ms TTL=126

Ping statistics for 50.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 80ms, Maximum = 141ms, Average = 113ms
Now ping from 10.0.0.2 and you will get destination host unreachable error.

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.

Ping statistics for 10.0.0.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
This demonstration show how the companies use NAT to hide their internal network from the outside of the world. Now open web browser from any PC in 30.0.0.0 network and brows the 50.0.0.1 site
I have uploaded a configured and tested topology in case you are unable to locate the problem spot then download this configuration file. And try to find out where have you committed mistake

Step by Step Configuration of Dynamic NAT

With dynamic NAT, you must manually define two sets of addresses on your address translation device. One set defines which inside addresses are allowed to be translated (the local addresses), and the other defines what these addresses are to be translated to (the global addresses).
In this example our internal network is using 192.168.0.0 network. We have five public ip address 50.0.0.1 to 50.0.0.5 to use. Router1(1841 Router0) is going to be NAT device. Double click on Router1(1841 Router0) and configure it as given below

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 30.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
R1(config)#access-list 1 permit 192.168.0.0 0.0.0.255
R1(config)#ip nat pool test 50.0.0.1 50.0.0.5 netmask 255.0.0.0
R1(config)#ip nat inside source list 1 pool test
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#exit

Router>enable
Router#configure terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Router(config)#hostname R2
For testing of NAT go R1 and enable debug for NAT from privilege mode

R1#debug ip nat
Now go on pc and ping to 20.0.0.2
dayanmic NAT
When ICMP ping packet reach to R1. It examines its source address against the access list 1. As this packet is generated form the network of 192.168.0.0 so it will pass the access list. Now router will check NAT pools for free address to translate with this address. Which you can check in the output of debag command in R1

IP NAT debugging is on
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
As you can see in output 192.168.0.5 is translate with 50.0.0.1 before leaving the router.
In real life its best practices to turn off debug after testing so go on Router 1 and turn off debug mode.

R1#no debug ip nat
IP NAT debugging is off
R1#
I have uploaded a configured and tested topology in case you are unable to locate the problem spot then download this configuration file. And try to find out where have you committed mistake

Step by Step Configuration of PAT

In dynamics Nat translations is made IP to IP. so you need as much global IP address as you have inside local address. That's an issue if you have few global IP address and hundred of inside local address to translate. In such a situation you need to use PAT.
For demonstration we are going to configure the same topology which we used in dynamic NAT but this time we are using only one global IP address 50.0.0.1
IP address of PC are already configured double click on R1 and configured it as given here
Now configure to R2 as given below

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 30.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
R1(config)#access-list 1 permit 192.168.0.0 0.0.0.255
R1(config)#ip nat pool test 50.0.0.1 50.0.0.1 netmask 255.0.0.0
R1(config)#ip nat inside source list 1 pool test overload
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#
Now configure to R2 as given below

Router>enable
Router#configure terminal
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#hostname R2
R2(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0

R1#show ip nat translations
Pro  Inside global     Inside local       Outside local      Outside global
icmp 50.0.0.1:1        192.168.0.7:1      20.0.0.2:1         20.0.0.2:1
icmp 50.0.0.1:2        192.168.0.7:2      20.0.0.2:2         20.0.0.2:2
icmp 50.0.0.1:3        192.168.0.7:3      20.0.0.2:3         20.0.0.2:3
icmp 50.0.0.1:4        192.168.0.7:4      20.0.0.2:4         20.0.0.2:4
Configuration of static NAT is very straight forward. In this example we have a web server connected with Router 1. Our web server is using the IP address 10.0.0.2. But due to various reasons discussed in pervious article our company want to use 50.0.0.1 IP address for this server. Now our task is to configure NAT on Router 1 which translate 10.0.0.2 [ inside local web server address] to 50.0.0.1 [ inside global ip address ].

To configure static NAT follow this step by step guide

Now configure R1 exactly given here


Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 20.0.0.2 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.1
R1(config)#ip nat inside source static 10.0.0.2 50.0.0.1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#

Now configure R0 exactly given here


Router>enable
Router#configure terminal
Router(config)#hostname R0
R0(config)#interface fastethernet 0/0
R0(config-if)#ip address 30.0.0.1 255.0.0.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface serial 0/0/0
R0(config-if)#ip address 20.0.0.1 255.0.0.0
R0(config-if)#clock rate 64000
R0(config-if)#bandwidth 64
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#ip route 50.0.0.0 255.0.0.0 20.0.0.2
R0(config)#
As you have seen in configuration there is not direct route for 10.0.0.2. So PC from network of 30.0.0.0 will never know about it. They will access 50.0.0.1 as the web server IP. To test it double click on any computer and ping from 50.0.0.1 and you will get replay.

Packet Tracer PC Command Line 1.0
PC>ping 50.0.0.1
Pinging 50.0.0.1 with 32 bytes of data:
Reply from 50.0.0.1: bytes=32 time=141ms TTL=126
Reply from 50.0.0.1: bytes=32 time=80ms TTL=126
Reply from 50.0.0.1: bytes=32 time=109ms TTL=126
Reply from 50.0.0.1: bytes=32 time=125ms TTL=126

Ping statistics for 50.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 80ms, Maximum = 141ms, Average = 113ms
Now ping from 10.0.0.2 and you will get destination host unreachable error.

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.
Reply from 30.0.0.1: Destination host unreachable.

Ping statistics for 10.0.0.2:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
This demonstration show how the companies use NAT to hide their internal network from the outside of the world. Now open web browser from any PC in 30.0.0.0 network and brows the 50.0.0.1 site
I have uploaded a configured and tested topology in case you are unable to locate the problem spot then download this configuration file. And try to find out where have you committed mistake

Step by Step Configuration of Dynamic NAT

With dynamic NAT, you must manually define two sets of addresses on your address translation device. One set defines which inside addresses are allowed to be translated (the local addresses), and the other defines what these addresses are to be translated to (the global addresses).
In this example our internal network is using 192.168.0.0 network. We have five public ip address 50.0.0.1 to 50.0.0.5 to use. Router1(1841 Router0) is going to be NAT device. Double click on Router1(1841 Router0) and configure it as given below

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 30.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
R1(config)#access-list 1 permit 192.168.0.0 0.0.0.255
R1(config)#ip nat pool test 50.0.0.1 50.0.0.5 netmask 255.0.0.0
R1(config)#ip nat inside source list 1 pool test
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#exit

Router>enable
Router#configure terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Router(config)#hostname R2
For testing of NAT go R1 and enable debug for NAT from privilege mode

R1#debug ip nat
Now go on pc and ping to 20.0.0.2
dayanmic NAT
When ICMP ping packet reach to R1. It examines its source address against the access list 1. As this packet is generated form the network of 192.168.0.0 so it will pass the access list. Now router will check NAT pools for free address to translate with this address. Which you can check in the output of debag command in R1

IP NAT debugging is on
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
NAT: s=192.168.0.7->50.0.0.1, d=20.0.0.2[1]
NAT*: s=20.0.0.2, d=50.0.0.1->192.168.0.7[1]
As you can see in output 192.168.0.5 is translate with 50.0.0.1 before leaving the router.
In real life its best practices to turn off debug after testing so go on Router 1 and turn off debug mode.

R1#no debug ip nat
IP NAT debugging is off
R1#
I have uploaded a configured and tested topology in case you are unable to locate the problem spot then download this configuration file. And try to find out where have you committed mistake

Step by Step Configuration of PAT

In dynamics Nat translations is made IP to IP. so you need as much global IP address as you have inside local address. That's an issue if you have few global IP address and hundred of inside local address to translate. In such a situation you need to use PAT.
For demonstration we are going to configure the same topology which we used in dynamic NAT but this time we are using only one global IP address 50.0.0.1
IP address of PC are already configured double click on R1 and configured it as given here
Now configure to R2 as given below

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 30.0.0.1 255.0.0.0
R1(config-if)#clock rate 64000
R1(config-if)#bandwidth 64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
R1(config)#access-list 1 permit 192.168.0.0 0.0.0.255
R1(config)#ip nat pool test 50.0.0.1 50.0.0.1 netmask 255.0.0.0
R1(config)#ip nat inside source list 1 pool test overload
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#
Now configure to R2 as given below

Router>enable
Router#configure terminal
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#hostname R2
R2(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0

R1#show ip nat translations
Pro  Inside global     Inside local       Outside local      Outside global
icmp 50.0.0.1:1        192.168.0.7:1      20.0.0.2:1         20.0.0.2:1
icmp 50.0.0.1:2        192.168.0.7:2      20.0.0.2:2         20.0.0.2:2
icmp 50.0.0.1:3        192.168.0.7:3      20.0.0.2:3         20.0.0.2:3
icmp 50.0.0.1:4        192.168.0.7:4      20.0.0.2:4         20.0.0.2:4
As you can see this time address translation is done with port address instead of IP

Source(http://computernetworkingnotes.com/ccna_certifications/configuration_of_nat.htm)
Cara Ampuh Untuk Berhentilah Berfikir Negatif

Be Success People...
Untuk sebagian besar dari kita, berpikir negatif mungkin sudah menjadi bagian dari diri. Ketika hal-hal tidak sesuai rencana, kita dengan mudah merasa depresi dan tidak bisa melihat sisi baik dari kejadian tersebut.
Berpikiran negatif tidak membawa kemana-mana, kecuali membuat perasaan tambah buruk, yang lalu akan berakibat performa kita mengecewakan. Hal ini bisa menjadi lingkaran yang tidak berujung.


Positive vs Negative
Jessica Padykula menyarankan sembilan teknik untuk mencegah dan mengatasi pikiran negatif yang adalah sebagai berikut:
1. Hidup di saat ini
Memikirkan masa lalu atau masa depan adalah hal yang sering membuat kita cemas. Jarang sekali kita panik karena kejadian masa sekarang. Jika Anda menemukan pikiran anda terkukung dalam apa yang telah terjadi atau apa yang belum terjadi, ingatlah bahwa hanya masa kini yang dapat kita kontrol.
2. Katakan hal positif pada diri sendiri
Katakan pada diri Anda bahwa Anda kuat, Anda mampu. Ucapkan hal tersebut terus-menerus, kapanpun. Terutama, mulailah hari dengan mengatakan hal positif tentang diri sendiri dan hari itu, tidak peduli jika hari itu Anda harus mengambil keputusan sulit ataupun Anda tidak mempercayai apa yang telah Anda katakan pada diri sendiri.
3. Percaya pada kekuatan pikiran positif
Jika Anda berpikir positif, hal-hal positif akan datang dan kesulitan-kesulitan akan terasa lebih ringan. Sebaliknya, jika Anda berpikiran negatif, hal-hal negatif akan menimpa Anda. Hal ini adalah hukum universal, seperti layaknya hukum gravitasi atau pertukaran energi. Tidak akan mudah untuk mengubah pola pikir Anda, namun usahanya sebanding dengan hasil yang bisa Anda petik.
4. Jangan berdiam diri
Telusuri apa yang membuat Anda berpikiran negatif, perbaiki, dan kembali maju. Jika hal tersebut tidak bisa diperbaiki lagi, berhenti mengeluh dan menyesal karena hal itu hanya akan menghabiskan waktu dan energi Anda, juga membuat Anda merasa tambah buruk. Terimalah apa yang telah terjadi, petik hikmah/pelajaran dari hal tersebut, dan kembali maju.
5. Fokus pada hal-hal positif
Ketika kita sedang sedang berpikiran negatif, seringkali kita lupa akan apa yang kita miliki dan lebih berfokus pada apa yang tidak kita miliki. Buatlah sebuah jurnal rasa syukur. Tidak masalah waktunya, tiap hari tulislah lima enam hal positif yang terjadi pada hari tersebut. Hal positif itu bisa berupa hal-hal besar ataupun sekadar hal-hal kecil seperti ‘hari ini cerah’ atau ‘makan sore hari ini menakjubkan’. Selama Anda tetap konsisten melakukan kegiatan ini, hal ini mampu mengubah pemikiran negatif Anda menjadi suatu pemikiran positif. Dan ketika Anda mulai merasa berpikiran negatif, baca kembali jurnal tersebut.
6. Bergeraklah
Berolahraga melepaskan endorphin yang mampu membuat perasaaan Anda menjadi lebih baik. Apakah itu sekadar berjalan mengelelingi blok ataupun berlari sepuluh kilometer, aktifitas fisik akan membuat diri kita merasa lebih baik. Ketika Anda merasa down, aktifitas olahraga lima belas menit dapat membuat Anda merasa lebih baik.
7. Hadapi rasa takutmu
Perasaan negatif muncul dari rasa takut, makin takut Anda akan hidup, makin banyak pikiran negatif dalam diri Anda. Jika Anda takut akan sesuatu, lakukan sesuatu itu. Rasa takut adalah bagian dari hidup namun kita memiliki pilihan untuk tidak membiarkan rasa takut menghentikan kita.
8. Coba hal-hal baru
Mencoba hal-hal baru juga dapat meningkatkan rasa percaya diri. Dengan mengatakan ya pada kehidupan Anda membuka lebih banyak kesempatan untuk bertumbuh. Jauhi pikiran ‘ya, tapi…’. Pengalaman baru, kecil atau besar, membuat hidup terasa lebih menyenangkan dan berguna.
9. Ubah cara pandang
Ketika sesuatu tidak berjalan dengan baik, cari cara untuk melihat hal tersebut dari sudut pandang yang lebih positif. Dalam setiap tantangan terdapat keuntungan, dalam setiap keuntungan terdapat tantangan.

sumber: http://yudidjohan.wordpress.com/2010/11/03/sembilan-cara-untuk-berhenti-berpikir-negatif/#more-513

SOURCE (http://id.wikipedia.org/wiki/Obon)