การติดตั้ง Pydev

เปิด Eclipse ขึ้นมา จากนั้นไปที่เมนู Help > Install New Software

แล้วทำการ Add Site

http://pydev.org/updates

Configure Interpreter

After installing it, the first thing you must do is configure the Python and/or Jython and/or IronPython interpreter. To configure the interpreter:
  1. Go to: window > preferences > pydev > Interpreter – (Python/Jython/IronPython).
  2. Choose the interpreter you have installed in your computer (such as python.exe, jython.jar or ipy.exe, /usr/bin/python).

ที่มา: http://pydev.org/

Ubuntu: Basic network setup

Hostname

เรียกดู hostname

$ /bin/hostname
your_hostname

ตั้งชื่อ hostname ใหม่

$ /bin/hostname new_hostname

Ethernet

ดูและแก้ไข network interface ได้จากไฟล์ /etc/network/interfaces เช่น

auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

คำสั่งดู network interface ที่ใช้อยู่
$ dmesg | grep eth

ดู network interface และ MAC address ได้ในไฟล์
/etc/udev/rules.d/70-persistent-net.rules
ดูและแก้ไข DNS servers ได้จากไฟล์ /etc/resolv.conf เช่น

ที่มา: An introduction to Debian networking setup, Network Configuration

การติดตั้งและการใช้งาน libsvm

libsvm

http://www.csie.ntu.edu.tw/~cjlin/libsvm/

การติดตั้งบน Ubuntu

ติดตั้ง libsvm
sudo apt-get install libsvm-tools

ติดตั้ง gnuplot
sudo apt-get install libsvm-tools

หลังจากติดตั้ง libsvm เสร็จ ลองเรียกคำสั่ง svm-train และ svm-predict
ถ้ามีวิธีใช้งานคำสั่งดังกล่าวแสดงออกมา ก็เป็นอันติดตั้ง libsvm เสร็จเรียบร้อย

การใช้งานเบื้องต้น

การใช้งานเบื้องต้นสามารถดูได้จาก http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf
ข้อมูลที่ใช้ในการทดลอง Download ได้จาก http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/

$ ./svm-train svmguide1
$ ./svm-predict svmguide1.t svmguide1.model svmguide1.t.predict
Accuracy = 66.925%
$ ./svm-scale -l -1 -u 1 -s range1 svmguide1 > svmguide1.scale
$ ./svm-scale -r range1 svmguide1.t > svmguide1.t.scale
$ ./svm-train svmguide1.scale
$ ./svm-predict svmguide1.t.scale svmguide1.scale.model svmguide1.t.predict
Accuracy = 96.15%
$ python grid.py svmguide1.scale
. . .
2.0 2.0 96.8922
$ ./svm-train -c 2 -g 2 svmguide1.scale
$ ./svm-predict svmguide1.t.scale svmguide1.scale.model svmguide1.t.predict
Accuracy = 96.875%
$ python easy.py svmguide1 svmguide1.t
Scaling training data…
Cross validation…
Best c=2.0, g=2.0
Training…
Scaling testing data…
Testing…
Accuracy = 96.875% (3875/4000) (classification)

Android: วิธีแก้ไข Error: Your project contains error(s), please fix them before running your application

1) ตรวจสอบว่าได้ทำการติดตั้ง AVD แล้วหรือยัง
2) Set a target for your project (i.e.: Google APIs 1.6) โดยคลิกขวา ที่โปรเจ็กส์ของเรา แล้วเลือก Properties -> Android -> Project Build Target ให้เลือกเป็น Google APIs
028

ที่มา: http://stackoverflow.com/questions/2262294/android-application-development-oreilly-mjanddroid-example-code

Android: วิธีแก้ไข Error: Debug certificate expired

แก้ไข ให้เป็น English

027

จากนั้นไปที่ “C:\Documents and Settings\<user>\.android” หรือ “C:\Documents and Settings\<user>\Local Settings\Application Data\Android” แล้วทำการลบไฟล์ debug.keystore

เสร็จแล้วให้ rebuild โปรเจ็กส์ใหม่ โดยไปที่เมนู Project>Clean … จากนั้นก็รันตามปกติ

ที่มา: code.google.com/p/android/issues/detaiwww.mail-archive.com/android-beginners@googlegroups.com/msg14319.html

ติดตั้ง Android SDK บน Eclipse ด้วย Android Development Tools (ADT) Plugin

ก่อนอื่น ทำการดาวน์โหลดและติดตั้ง Eclipse เวอร์ชั่น 3.4 หรือใหม่กว่า

http://www.eclipse.org/downloads/

ดาวน์โหลด SDK (SDK download page)

เซ็ต path ของ Windows ไปที่ tools/ directory

ติดตั้ง ADT Plugin

เปิด Eclipse แล้วเลือกเมนู Help > Install New Software.

ที่ Available Software dialog แลือก Add….

001_0

Continue reading