Sunday, March 29, 2009

XMLHttpRequest quick notes


interface XMLHttpRequest {
// STATE
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"

// REQUEST
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: http://www.barcamphanoi.org/?page_id=10&lang=en



What:


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: http://www.barcamphanoi.org/?page_id=2&lang=en
Want to sponsor us: http://www.barcamphanoi.org/?page_id=12&lang=en

When:

April 19, 2009
8.30 AM to 5.00 PM

Where:

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

View the map here: http://www.barcamphanoi.org/?page_id=9&lang=en

------------------------------

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



Đăng ký tại đây: http://www.barcamphanoi.org/?page_id=10

Thursday, March 19, 2009

Why Eclipse IDE

( 56kbps modem warning ! )

A PICTURE IS WORTH A THOUSAND WORDS !


Debug Java ( //www.ibm.com/developerworks/opensource/library/os-eclipse-platform )




Customize perspective, views, hotkey... ( //www.ibm.com/developerworks/opensource/library/os-eclipse-master1/ )








Customize formatting ( //www.ibm.com/developerworks/opensource/library/os-eclipse-master3/ )




Refactoring 2003 ( //www.ibm.com/developerworks/library/os-ecref/ ) :




Integrate SVN/CVS ( //www.ibm.com/developerworks/opensource/library/os-ecl-subversion/ )




Debug PHP ( //www.ibm.com/developerworks/opensource/library/os-ecbug/ )




Debug C/C++ ( //www.ibm.com/developerworks/library/os-eclipse-cdt-debug2 )




Debug Python ( //www.ibm.com/developerworks/opensource/library/os-ecant/ )




Debug ActionScript ( //swingchen.bokee.com/6028838.html )




Debug ColdFusion ( //www.ibm.com/developerworks/opensource/library/os-eclipse-cfeclipse/ )




And Ruby ( //www.ibm.com/developerworks/opensource/library/os-eclipse-rdt/ )




even .NET ! ( //www.ibm.com/developerworks/opensource/library/os-eclipse-migratenetvs/ )




and more... ( //www.ibm.com/developerworks/opensource/library/os-eclipse-iphone/ )




Rocks solid on multi-OS : ( //www.ibm.com/developerworks/opensource/library/os-eclipse-osxjava/ )







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)


Bookmarks
http://foxmark.com


Technical notes
http://pastebin.org


To-Do list
http://tadalist.com


IRC gossips:
http://mibbit.com


Compilers:
http://codepad.org


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 ? : PMD

RANK ? : Checkstyle

RANK ? : FindBugs

RANK ? : Hammurapi

RANK ? : TFTP

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)