Sunday, March 29, 2009

XMLHttpRequest quick notes

interface XMLHttpRequest {
attribute int readyState; // readonly
attribute EventListener onreadystatechange;

const unsigned short UNSENT = 0; // innerHTML == "uninitialized"
const unsigned short OPENED = 1; // innerHTML == "loading"
const unsigned short HEADERS_RECEIVED = 2; // innerHTML == "loaded"
const unsigned short LOADING = 3; // innerHTML == "interactive"
const unsigned short DONE = 4; // innerHTML == "complete"

void open(DOMString method, DOMString url, boolean async);
void open(DOMString method, DOMString url, boolean async, DOMString user, DOMString password);

void setRequestHeader(DOMString header, DOMString value);

void send(in DOMString data);
void send(in Document data);

void abort();

// RESPONSE readonly
attribute Document responseXML;
attribute DOMString responseText;
attribute int status;
attribute DOMString statusText;

DOMString getAllResponseHeaders();
DOMString getResponseHeader(in DOMString header);

Saturday, March 28, 2009

BarCamp Hanoi 2009

BarCamp Hanoi 2009 registration is now open

Register here:


BarCamp is a user-generated event — open, participatory workshop-events, whose content is provided by participants.

There is no audience, only participants. Attendees must give lead a discussion, give a demo, or help with one, or otherwise volunteer / contribute in some way to support the event. All sessions are scheduled the day they happen. The people present at the event will select the demos or presentations they want to see.

Attendance is free of charge.

Topics may include, but are not limited to: online services, social media, startups, UI design, entrepreneurship, VC, Web 2.0 technologies, online marketing, online advertising, online payment, e-commerce, open source software, hardware hacking, robotics, mobile computing, bioinformatics, programming languages, even the future of technology or global issues.

Learn more about BarCamp:
Want to sponsor us:


April 19, 2009
8.30 AM to 5.00 PM


RMIT International University, Hanoi Campus
2/2C Van Phuc Compound, Kim Ma Street, Hanoi.

View the map here:


Mở đăng ký tham dự Barcamp Hanoi 2009

Đăng ký tại đây:

Thursday, March 19, 2009

Why Eclipse IDE

( 56kbps modem warning ! )


Debug Java ( // )

Customize perspective, views, hotkey... ( // )

Customize formatting ( // )

Refactoring 2003 ( // ) :

Integrate SVN/CVS ( // )

Debug PHP ( // )

Debug C/C++ ( // )

Debug Python ( // )

Debug ActionScript ( // )

Debug ColdFusion ( // )

And Ruby ( // )

even .NET ! ( // )

and more... ( // )

Rocks solid on multi-OS : ( // )

Other IDEs which turn out to use Eclipse codebase :

FlexBuilder (Adobe)
Websphere Studio Application Developer (IBM)

JDeveloper (Oracle)
JBuilder 2007+ (Borland)
WebLogic workshop (BEA)
ZendStudio (Zend)
Aptana (Aptana)
PowerDesigner (Sybase)
MyEclipse (Genuitec)
Rational XYZ (IBM)
Parasoft XYZ (Parasoft)
. . .


Tuesday, March 10, 2009

Collaboration online services

Lúc này tớ chuyển sang các dịch vụ online cho nó đồng nhất, tiết kiệm được khối thời gian khi phải làm việc trên nhiều máy khác nhau: lappy, deskies (@home, @work, etc)


Technical notes

To-Do list

IRC gossips:


and more...

Sunday, March 08, 2009

Java mess detector

OK guys, I have used CheckStyle and PMD, either one of them seems good enough.

But do you have any comparision or advice for me about other tools: FindBugs, Hammurapi, TFTP, JLint, ...

I just want to make a list of Top 5 tools that is really useful in each catergories of software development (in a certain language, such as Java).


RANK ? : Checkstyle

RANK ? : FindBugs

RANK ? : Hammurapi


Thursday, March 05, 2009

Ubuntu screensaver hang

Hic, khong biet co phai tai nghich ngom Compiz Manager voi Emerald Theme Manager hay khong, ma luc nay Ubuntu chay screensaver de bi ngon CPU (100%) , tham chi khi chi chay preview cung bi CPU 100%, lai gap em lappy thoi tien su cua minh, chan khong ta.

Khi gap cac tinh huong nhu tren, tuy theo muc do nang hay nhe ma ap dung cac giai phap:

* Alt+F2

* Ctrl+Alt+D

* Ctrl+Alt+F1 , sau do Ctrl+Alt+F7

* Ctrl+Alt+F9 , sau do go lenh sudo startx hoac sudo xinit -- :1

* Ctrl+Alt+Backspace , works 99% :-)

* giu nut Power cua may it nhat 4 giay :D

good luck,

(sry I will fix Vietnamese later)