Powered By Blogger

Jumat, 30 Desember 2011

cara mengusir serangga kecoak

Cara paling sering dilakukan untuk mengusir kecoak adalah dengan menggunakan cairan pengusir serangga. Namun, kandungan zat kimia dalam cairan tersebut seringkali pula tidak cocok dengan bagian-bagian tubuh manusia.


http://stat.k.kidsklik.com/data/photo/2011/06/17/2000468620X310.jpg

Bagi beberapa orang yang sensitif dengan cairan mengandung bahan kimia ini, dapat beralih dengan cara-cara alamiah, seperti:

Pakai timun atau lemon
Ambil timun atau lemon dan potong menjadi bagian-bagian kecil lalu letakkan di tempat-tempat yang sering dilalui kecoak.

Ambil daun salam
Letakkan beberapa lembar daun salam yang biasa dilalui serangga ini.

Biji bunga lavender
Ambil segenggam biji dan letakkan dalam wadah kecil. Letakkan wadah berisi biji-biji tersebut di beberapa tempat, misalnya kamar mandi atau dapur. Aroma wangi lavender sangat tidak disukai kecoak.

Kapur barus
Aroma kapur barus pun tak ubahnya biji bunga lavender. Bau kapur barus sangat tidak disukai kecoak sehingga cocok diletakkan di tempat-tempat yang biasa dilalui serangga ini.

Namun, meskipun cara-cara mengusir kecoa ini sudah Anda terapkan, kecoak masih berkeliaran di lingkungan tempat tinggal Anda. Untuk itu, sempatkan waktu membersihkan saluran air atau selokan yang mampet di depan rumah. Tempat lembab dan kotor seperti ini adalah hunian favorit kecoak.

Memaksimalkan Kapasitas RAM pada Operating System

Beberapa hari terakhir ada rasa penasaran yang mesti segera terobati. Kejadiannya adalah ketika saya merakit seperangkat CPU dengan prosesor intel 4 inti dengan 4 GB memori dan saya pasang OpenSuse 11 untuk dimuati aplikasi kimia komputasi yang hanya jalan di linux. Setelah dilakukan pengecekan memory yang terbaca hanya 3 koma sekian GB saja. Padahal secara fisik memori yang saya gunakan adalah 2 keping memori @ 2 GB. Saya mengira itu terjadi hanya di linux, ternyata setelah saya install windows xp sp2 kejadiannya sama. Teman saya yang juga baru merakit komputer untuk tujuan running riset kimia komputasi dengan memori sebesar 8 GB juga mengalami hal yang sama. Niat menggunakan RAM sebesar itu adalah agar running aplikasi yang memakan waktu lama bisa terkurangi. Alhasil semua terkendala bahwa memori yang disediakan tak termanfaatkan secara keseluruhan.
Kejadian serupa juga saya temui ketika lab kimia komputasi AIC jurusan Kimia UGM baru saja menambah 5 PC dengan masing-masing memori 4 GB, ternyata juga tidak terbaca/terpakai secara menyeluruh. Komplainpun dilayangkan ke penjual, setelah saya mendengar penjelasan dari penjual saya gak puas, tapi gak punya hak untuk komplain. Bahkan di buku manual motherboard pun sudah diwanti-wanti kalau RAM yang terpasang 4 GB maka akan dikenali oleh OS sistem 32 bit hanyalah 3,.. GB saja.
Akhirnya saya browsing di rumah dengan HAIER-Smart dengan kesabaran penuh (saking leletnya karena akses gratis) saya dapatkan link yang bisa sedikit menyenangkan… :) mudahan lancar sesuai kemauan… (sebab PC sekarang di lab selasa nanti baru bisa dipraktekan).
OK… Langkah untuk tujuan  tadi adalah dengan mengaktifkan PAE (Physical Address Extesion) yang secara default memang belum diaktifkan.
Caranya (yang saya ambil dari situs ini):


Aktifkan mode PAE  pada Windows XP
  • Klik kanan pada My Computer dan pilih “Properties”
  • Buka tab Advanced dan di bawah tab Startup and Recovery, di Settings dan klik “Edit”
  • Ini akan membuka notepad yang berisi file boot.ini.
    Dibawah tulisan “[operating systems]” tertulis baris: multi
    (0) disk (0) rdisk (0) partition (2) \ WINDOWS = “Microsoft Windows XP”
    / noexecute = OptIn / fastdetect
    coba ubah menjadi:
    multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = “Microsoft
    Windows XP” / noexecute = OptIn / PAE
  • Simpan file tadi dan keluar.
Aktifkan mode PAE pada Windows Vista (yg ini belum akan saya coba, kan saya ndak pakai WV :) )
  • Tekan Windows key + R, kemudian ketikan cmd terus tekan enter
  • Tekan Ctrl + Shift + Enter untuk mengeksekusi prompt sebagai administrator
  • Enter command Bcdedit / Set SAP forceenable dan tekan enter.
Aktifkan mode PAE pada Linux Ubuntu (selasa nanti akan saya praktekkan di OpenSuse 11)
  • Buka terminal/konsol dan jalankan perintah untuk install sebuah kernel PAE: sudo apt-get update sudo sudo apt-get install
    linux-headers-server linux-image-server linux-server
  • Setelah installasi, restart system dengan new kernel yang baru: sudo reboot
Dengan prosedur tadi semestinya komputer saodara bisa mengenali RAM yang lebih dari 4 GB.

CATATAN: segala resiko dan kerusakan pada sistem anda akibat praktek ini, anda sendirilah yang menanggung!!! Mari bereksperimen…. dan selamat bereksperimen… semoga masalah saya dan anda yang punya masalah serupa dapat terselesaikan dan dapat memaksimalkan memori yang tersedia.

Cara Memaksimalkan Kinerja OS Android



Handphone Android - Bagi anda pengguna smartphone dengan sistem android, tetapi bingung bagaimana cara memaksimalkan os android pada handphone anda. Tidak perlu khawatir karena pada postingan saya kali ini akan memberikan cara memaksimalkan kinerja android os agar handphone android anda bisa maksimal dalam bekerja. Berikut informasi selengkapnya. 
Banyak cara untuk memaksimalkan kinerja ponsel Android, namun kali ini saya akan memberikan enam tips pintar saja.
1. Memiliki akun Google 
Android adalah sistem operasi milik Google, jadi Anda membutuhkan akun Google (atau Gmail) untuk menggunakan banyak fitur di smartphone Android Anda. Jika belum memilikinya, Anda bisa langsung membuatnya langsung di ponsel. Saat pertama kali mengakses beberapa fitur yang terhubung dengan Google seperti Android Market, Anda akan langsung menemukan pilihan untuk membuat akun Gmail.
2. Jangan lupa untuk berlangganan data plan

3. Unduh aplikasi dengan rating tinggi

4. Underclock agar baterai lebih irit

5. Lindungi handphone anda dari tangan jahil

6. Kunjungi situs dan forum yang membahas smartphone anda
Sekian dulu postingan saya tentang cara memaksimalkan kinerja OS android, semoga bermanfaat bagi anda pengguna setia handphone android.

Jumat, 23 Desember 2011

MICROSOFT VISUAL C++ 2008 TUTORIAL INTRODUCTION


Microsoft (MS) Visual C++ allows you to create many different types of applications written in the C++ programming language. It is part of MS Visual Studio 2008, which allows software developers to develop software applications in several programming languages including C++. This guide addresses creating and using C++ Console Applications. A console application is a computer program that enables a user to interact with a computer via a keyboard and display screen. The application runs inside a DOS window. This guide is divided into the following sections: Starting Visual C++ Creating and Executing a Single-File Console Application Importing and Executing C++ Source Code Files
STARTING MS VISUAL C++
To start the MS Visual C++ compiler, click the Start button on the task bar to open the start menu. Open the Programs menu (All Programs in Windows XP). Select Visual Studio 2008, then select Microsoft Visual Studio 2008, and finally select the program Microsoft Visual Studio 2008. If the MS Visual Studio window is not maximized, click the maximize button in the upper right corner of the title bar.
Figure

Figure 1 shows the initial application window. If your application window looks different, you may need to adjust the settings. You need to change to the Visual C++ Development Setting. You can change the settings by clicking the Tools menu and selecting Import and Export Settings. Select the Reset all settings option and click Next twice. Then, you will see a dialog where you choose a default configuration as shown in Figure 2. Select Visual C++ Development Settings and press Finish. Finally, you will close the Reset Complete dialog box. If this is the first time you’ve run Visual Studio, you will be shown the Choose Default Environment Settings dialog similar to Figure 2. Select Visual C++ Development Settings and press Start Visual Studio.
Figure

Figure 2 Choose default environment settings
CREATING AND EXECUTING A SINGLE-FILE CONSOLE APPLICATION
One of the most common programs encountered in an introductory C++ programming class is a single source code file that contains the main function. To construct this type of application, you need to:
Create a Win32 Console Application Project Add a source code file Write the program Execute the program Debug the program
Create a Win32 Console Application Project
Start Microsoft Visual Studio 2008. On the File menu select New, then Project.
When the New Project dialog box opens (Figure 3), click on the + beside Visual C++ in the Projects Types pane, then on Win32. In the Templates pane, select Win32Console Application. Enter the following information (see Figure 3):
Enter the project name in the Name textbox
Select the location for the project in the Location textbox
Remove the checkmark beside Create directory for solution
Figure 3

Figure 3 New Project Settings
The application provides a default location for saving projects or you can select your own location by pressing the Browse button to the right of the location textbox to open the Choose Directory dialog box.
Press the OK button after entering the required information into the dialog box. When the Win32 Application Wizard appears, click on Application Settings, select Console application from the Application types and check Empty project (see Figure 4) and then press the Finish button. The Solution Explorer now contains the information about your project (see Figure 5.) Note how the Start Page now has your project listed. This will be a shortcut to starting the project the next time you run Visual Studio.

Figure 4 Win32 Console Application Wizard

Figure 5 Empty Win32 Console Application (with Start Page)
Add a Source File to the Project
You can add a blank source code file to your project in several ways. On the Project menu select Add New Item. (See Figure 6.)

Figure 6 Add New File to Project
Alternatively, you can right-click on the Source Files folder in the Solution Explorer (left hand pane) and select Add, then New Item. (See Fig 7).
Both methods above bring up the Add New Item dialog shown in Figure 8. Expand the Visual C++ option (press the + if not already done.) Select Code in the Categories pane and C++ File (.cpp) in the Templates pane.
Enter a name for the file. The Location setting should be the same as your project, so no change is needed in that field. Press the Add button to create the file.
Figure 7 Add New File to Project (alternative method)
Figure 8

Figure 7 Add New File to Project (alternative method)



Figure 8 Selecting File Type and Naming Project Files
Write the Program
Type the source code for your program into the blank editing pane located in the right side of the window. Figure 9 contains the source code for a simple C++ console program that displays the phrase, “Hello World.”
Note that the C++ editor automatically selects different colors for C++ reserved words and provides automatic indentation for blocks of code.