Archive for July, 2009

Library vs Framework

Monday, July 13th, 2009

Hôm trước có hỏi ở trên Twitter (mặc dù cái list của mình chả có mấy người :”>):

web framework or library framework :( Ai cho em lời khuyên :(

Hôm nay nhận được reply của anh Định:

Phân biệt nhé: library là you call me, framework là I call you ;)

Do trình độ mình có hạn nên đọc hơi mơ hồ :”>  Search thêm 1 chút thì nó là thế này:

A library is about reusable functionalities, but a framework is about reusable behaviors.
A library is something you call/inherit from your code, but framework is something that calls your code or provide services for your code.
A library is a collection of components and classes, where framwork is how abstract classes and components interact with each others.

Cái đoạn bôi đậm chính là cái anh Định nói đến :-x Rất cám ơn anh

Stupid IE???

Friday, July 3rd, 2009

Today, a colleague asked me: “how to download file with docx extension (MS Word 2007) in IE6?” because IE automatic changes the .docx to .zip. I thought to solve this problem very easy by directly link download but I’m wrong :( It seems a IE bug??? So I recommend him that he should use PHP header to output binary content of file.

IE handle stupid or smart in this case?

Bypass new rapidshare download countdown

Friday, July 3rd, 2009

Simply drag this link
to your bookmark, when rapidshare counter start, click it once. It will
reset the download counter so you can start downloading without having
to wait for the countdown to finish.

Before download start (for free)

?View Code JAVASCRIPT
1
javascript:document.ff.action = window.location + '#dlt';void(0);

Then on next page when the counting start

?View Code JAVASCRIPT
1
javascript:c=0;void(0);

Source: kaizeku.com