Python: Simple K Nearest Neighbours Classifier

Simple, quick and dirty implementation about k-nearest neighbours (KNN) algorithm for classification (k nearest neighbours classifier) in Python 2.75 with NumPy and SciPy help. You may want to read about the KNN on Wiki. Anyway, here is the code. You may also observe the dataset first to help you understand the code. 

ubuntu-logo14

Ubuntu essential knowledges

I migrated to Ubuntu one year ago, but I still don’t get the essential operation there. So, I put some random Ubuntu essential knowledges about it especially when it come to web development. Here there are several links I’ve found useful*. Structure of file system https://help.ubuntu.com/community/LinuxFilesystemTreeOverview http://www.basicconfig.com/linux/filesystem http://www.ubuntugeek.com/linux-or-ubuntu-directory-structure.html File permission https://help.ubuntu.com/community/FilePermissions Web development http://www.apachefriends.org/en/xampp-linux.html http://alan.edward.es/posts/installing-and-configuring-xampp-for-linux-lampp/ […]

Continue reading...

How to solve the “font not embedded” problem to pass PDF eXpress

In some conferences (e.g, IEEE conferences), you might need to check and verify your paper with PDF eXpress before you submit your final paper  (http://www.pdf-express.org/plus/). Once you’re ready with your camera-ready paper, you checked your paper with PDF eXpress, and then.. Dang! You got the “font not embedded” error message, and your PDF file has failed […]

Continue reading...

How to center multiple figures in LaTex

Hi Guys, Below you can find  a block of code to center your  figures in Latex. In this example, two figures are used.

Preview: Hope this is useful. Reference http://nixtricks.wordpress.com/2009/11/09/latex-multiple-figures-under-the-same-caption-using-subfigure/  

Links: Java and XML Tutorials

(Tuts for myself). Here are some article links about XML and how to parse it in Java using XPath. They might be useful. http://tutorials.jenkov.com/java-xml/index.html. A comprehensive tutorial article about Java and XML written by Jacob Jenkov. It’s easy to digest and practical. http://www.w3schools.com/xpath/default.asp. An easy introduction to XPath in HTML or XHTML by W3Schools.com http://www.newthinktank.com/2012/06/java-video-tutorial-44/. A […]

Continue reading...

nokia_e71_n6

Hard Reset Nokia E71

Hard reset Nokia E71? Kenapa? udah jadul, ganti aja yang baru! Jadul memang kalo dibandingkan dengan smartphone yang banyak beredar saat ini, tapi cukup fungsional bagi saya yang cuma butuh buat sms dan telepon juga dengerin audio, nyatet belanjaan atau baca Al-Qur’an. Plus, lumayan duitnya buat saving. hehe … Sayangnya hampir dua minggu ke belakang, […]

Continue reading...