rioastamal.net

Just things inside my head…

Archive for the ‘Uncategorized’ Category

Karena terus-menerus diteror deadline akhir-akhir ini, membuat “suhu” otak cukup panas sehingga memerlukan cooling down sebentar hehehe…. Mau main-main game yang ada bosan, lalu kepikiran kepingin nostalgia dengan game-game jaman jadul dulu waktu SD. Masih inget dengan game Contra dan Sonic. Itu adalah salah dua game yg paling saya gemari dan teman-teman sewaktu kecil dulu selain Mario Bros tentunya hehe :). Kedua game tersebut berjalan pada platform yang berbeda (pada saat itu). Contra pada NES (Nintendo Entertainment System) sedangkan Sonic pada Sega Genesis.

Meski sebenarnya dulu g pernah punya konsol NES maupun Sega, klo mau main ya numpang ke rumah temen hehehe, baru punya konsol NES kelas 3 SD sedangkan Sega g pernah keturutan malah dapet Super Nintendo lalu PS :). Walah kelamaan nostalgia malah lupa tutorialnya… :)

Menginstall gFCEU Ultra dan DGen

Untuk emulator NES kita menggunakan aplikasi gFCEU (GTK Front End untuk FCEU) sedangkan untuk emulator Sega Genesis kita menggunakan dgen. Agar tidak berpusing ria kita langsung install saja lewat repository. Caranya masuk ke Terminal melalui menu Application »» Accessories »» Terminal.

Untuk install gfce perintahnya adalah:

$ sudo apt-get install gfceu

Untuk dgen perintahnya adalah:

$ sudo apt-get install dgen

Mendapatkan File ROM Contra dan Sonic

Untuk ROM game-game lawas saya mendownload di www.dgemu.com. Untuk mendownload file ROM dari game anda harus register dulu di forum dgemu. Nah, setelah itu baru bisa download. Tapi ingat, sistem download menggunakan GPs (Gold Pieces) semacam points yang didapat setelah posting di forum. Ketika anda register anda akan mendapat sekitar 100 GPs. Untuk lebih jelasnya silahkan lihat sendiri di FAQ atau forum dgemu.com. Setelah mendownload kedua ROM sy asumsikan anda meng-extract ZIPnya ke /home/xxx/game (dimana xxx adalah username anda dan “game” adalah sebuah direktori baru yang anda buat).

Menjalankan gFCEU

Untuk memainkan Contra maka kita perlu menjalan NES emulator kita yaitu gFCEU. Caranya akses dari menu Applicatoion »» Games » GFCE Ultra NES Emulator. Kemudian tekan browse untuk mencari lokasi ROM dari Contra. Lihat ilustrasi gambar dibawah.

gfceu NES Emulator

Contra Screenshot

Menjalankan DGen

Berbeda dengan fceu yang memiliki front-end, dgen murni kita jalankan lewat terminal. Caranya masuk keterminal lalu ketikkan perintah berikut:

$ cd ~/game
$ dgen sonic.bin

* Asumsi file image Sonic terletak di /home/xxx/game seperti yang telah diasumsikan diatas.
* dimana sonic.bin adalah nama file image dari game yang telah saya ubah.

Atau jika VGA anda cukup cepat anda dapat menggunakan perintah berikut:

$ dgen -G -X 800 -Y 600 sonic.bin

* Perintah diatas akan mengaktifkan fitur OpenGL dan menggunakan resolusi 800×600.

Sonic Sega Screenshot

Performance Tips

Jika kemampuan VGA pas-pasan tapi dapat menjalankan compiz sebaiknya anda tetap menjalankan game dalam mode window dengan ukuran kecil. Kemudian gunakan Zoom Effect dari compiz untuk memperbesar layar. Khusus untuk dgen jangan mengaktifkan fitur -G (OpenGL) jika ingin menggunakan effect zoom dari compiz.

Selamat bermain game klasik…!!!

bookmark bookmark bookmark bookmark bookmark bookmark

Sekedar sharing aja kemarin(tanggal 19 juni 2009) sempet kesel karena coba login ke Yahoo Messenger lewat Pidgin g bisa konek2. Terpaksa pake versi webmessenger, dengan segala ketidak nyamanannya :). Setelah googling ternyata ada yang mengalami hal serupa. Solusinya ada di sini:

http://ubuntuforums.org/showthread.php?t=1191064&page=3

Yaitu dengan mengganti Server Pager-nya dari scs.msg.yahoo.com menjadi cn.scs.msg.yahoo.com. Coba Non-aktifkan dan aktifkan kembali account anda. Seharusnya anda sudah dapat login kembali melalui pidgin anda. Lihat gambar berikut untuk lebih jelas…

Sebagai catatan saya menggunakan ubuntu 8.10 dengan language-pack Indonesia dan pidgin 2.5.4.

1. Klik menu Akun-akun (Accounts)

pidgin modify account

2. Pilih Account anda lalu klik Ubah Akun (Modify Account)
3. Pilih tab Lanjutan (Advanced)
4. Ganti nilai dari Server Penyeranta (Pager Server) dari scs.msg.yahoo.com menjadi cn.scs.msg.yahoo.com.

yahoo pager server

5. Non aktifkan Account anda lalu aktifkan lagi.
6. Selamat ber-pidgin ria kembali…

bookmark bookmark bookmark bookmark bookmark bookmark

Tips: Running multiple instance of Firefox

Posted by rio On December - 16 - 2008

Sorry if there are any spelling or grammatical errors, I’m learning English… :)

I bet many of you didn’t know that you can run more than one instance of Firefox. Instance is different from just another Firefox’s window. It’s completely use different configuration file. So, your preferences like add-on, cookie, proxy setting, etc are different. Running another instance is just like running another browser instead of Firefox itself.

What’s the benefit of running multiple instance than only one instance? IMO there are two point of view that we can look at it. The first is from developer point of view, by running multiple instance web developer did not need to run another browser if only want to test the session log in. e.g the developer wants to be guest user and logged user at the same time. They just need to run another instance since every instance have different session or cookie.

The second is from end user point of view. Imagine that you have visited some “private” site and then your friend borrow your laptop for a moment. When your friend start typing in URL address bar in browser and oopss… he/she found some “interesting site” that you have visited(It’s not my experience :)). It can be avoided by clearing all history from that site but there is more smart way by using another Firefox profile.

So, how can we run multiple instance of Firefox? well basically when you run Firefox it was invoked by using this command:

$ firefox

But ever you notice that the are plenty of options that we can pass to Firefox. Just type in your terminal:

$ firefox -h

Regarding our topic, the option that we need to pass to Firefox so it will run another instance is:

$ firefox -no-remote -P

Firefox Profile Chooser

When command above invoked it will bring a “Profile Chooser” window. In normal situation when you never create a profile before, your profile name is “default”. So, let’s try to create another profile by clicking “Create Profile…” button and named “private” for the profile name. When you want browse some “interesting site” you can use that profile by using command below:

$ firefox -no-remote -P private

But remember, as you can see at picture above. There is an option “Don’t ask at startup”, every time you run Firefox your default profile now is “private”. So, we need to set back the profile to “default”. Just close the instance of running “private” profile and then run the following command:

$ firefox -no-remote -P default

bookmark bookmark bookmark bookmark bookmark bookmark

Test Geshi

Posted by rio On May - 26 - 2008
1
2
3
4
5
<?php
for ($i=0; $i<1000; $i++) {
  print("Dummy test");
}
?>

bookmark bookmark bookmark bookmark bookmark bookmark