Thursday, May 8, 2008

Intercommunication programming

I want to communicate between programming languages, call java from c. i found solution first at here call java from c it use system function to call process to run(java). and another way is using named pipes. this here to try example named piped.

c# detect usb device event

One day. i think if i want to get data from thumb drive by plugged in usb port and it will automatic download data to my computer.
i found my solution at here. How to detect a USB Device and i can finished my c# program
this my video how it work?. AutoDump

if you want my program plz contact me.

Font Thai in mysql like ??? on Ubuntu

My environment:
Ubuntu 7.04
mysql 5.0.38

If you see Thai font like ??????. because character set in mysql server and client was different.
You should set character set in server and client matched.
Check status in mysql.

In your computer No.2 may be latin. I had changed from latin to tis620.
First, You should edit file config in /etc/mysql/my.cnf and add default-character-set in

[client]
default-character-set = tis620

And....

[mysqld]
default-character-set = tis620
init_connect = 'SET NAMES tis620'

Save it and restart mysql with /etc/init.d/mysql restart
Thai font will be fixed

Nmap scan port

Nmap utility for network exploration or security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap runs on all major computer operating systems, and both console and graphical versions are available.

This example on my computer(satann)
if you want to know port just use nmap. and anything what to do..........

my command --> nmap -sT ip
result

Android Query Email From Contacts

This is good one sample
http://groups.google.com/group/android-developers/browse_thread/thread/9e44fa66e1849c1b/f2bd7a6edfe5e68f?lnk=st&q=android+contactmethods

Android Contact Management Example Code

I read the good one example about android vs contact management.
http://groups.google.com/group/android-developers/browse_thread/thread/c68dac6a3b38f4ad

Sunday, March 2, 2008

Android GUI Tools

If you need to design GUI layout for android application, it use xml to design. There are the easy way to do the same thing.
DroidDraw
is the easy way to build the gui for android application. It can generate xml tag by drag and drop the component and you only copy xml tag to your application layout xml file. Try its.