Sunday, December 19, 2004

The Billionth Prime...



After a long time waiting... Then the BILLIONTH PRIME has come !
p[1'000'000'000]=22'801'763'489

Friday, December 10, 2004

"Một nửa thế giới" với ngành CNTT

Tỉ mỉ, cẩn thận, tính ổn định cao... là những phẩm chất giúp người phụ nữ không thua kém gì nam giới trong lĩnh vực CNTT nói chung và làm phần mềm nói riêng. Nhưng thực tế, tỷ lệ phái yếu trong ngành rất khiêm tốn... !?
VnExpress - 'Một nửa thế giới' với ngành công nghệ thông tin

Google có phong cách CreatZy !

Để khuyến khích sáng tạo, Google thường tạo tự do tối đa cho nhân viên. “20% thời gian tại công ty, bạn được làm những gì mình cho là tốt nhất”, Page khẳng định.

Ngoài ra, không giống phần lớn các tập đoàn Mỹ, Google cho phép dắt chó vào phòng làm việc. Hãng lý giải họ thích không gian làm việc đông đúc, “với ba hay bốn nhân viên, cùng hàng loạt bàn ghế và lũ chó quây quần”. Điều đó “sẽ tăng lượng thông tin trao đổi và... tiết kiệm tiền sưởi ấm”.

VnExpress - Ông chủ Google khuyến khích nhân viên sáng tạo

Monday, November 29, 2004

Balanced trees

Red/Black Tree Demo applet
Red/Black Tree Demonstration: Maintenance Version
JAVA MODELS for behaviour of binary search trees: (SPL,R-B,AVL) This provide us a GREAT demonstration with fantastic graphics & sound & thinking & tree operations, but..... just a little large applet. Please wait for the first time loading it!

Wednesday, November 17, 2004

"MS-DOG"

30+ Reasons Why You Should Say MsDog and not MsDos:

*** You cannot make any file in form "prn.xxx"(xxx is arbitrary extension) ANY WHERE. Just because it has already stood for "printer" device!

- The read-only bits for directories are never used.
- You can rename files but not directories.
- Pipes, foo|bar, are implemented by >tempfile and <tempfile.
- You can open a file like c:\foo\..\config.sys even if you don't have a foo directory.
- Redirection doesn't work with batch files.
- Redirection doesn't work with the "For" command.
- You can only expand environment variables from batch files, not from the command line.
- The remainder of a "Rem" statement is not completely ignored. Rem > foo will create a zero-length file.
- Utilities like "sed" are not provided with MsDog so you cannot rely on users having them.
- and so on ...

Monday, October 25, 2004

Big O notation - Matters of notation

Big O notation - Wikipedia, the free encyclopedia:
The statement "f(x) is O(g(x))" as defined above is often written as f(x) = O(g(x)). This is a slight abuse of notation: we are not really asserting the equality of two functions. Here is a bad example:

O(x) = O(x2) but O(x2) ≠ O(x)

By this reason, some authors prefer a set notation and write f ∈ O(g), thinking of O(g) as the set of all functions dominated by g.
Furthermore, an "equation" of the form
f(x) = h(x) + O(g(x))
is to be understood as "the difference of f(x) and h(x) is O(g(x))".

In casual use, O is commonly used where Θ is meant, i.e., a tight estimate is implied. For example, one might say "heapsort is O(n log n) in average case" when the intended meaning was "heapsort is Θ(n log n) in average case". Both statements are true, but the latter is a stronger claim.

**) Here is a hint (and mnemonics) why Landau selected these Greek letters: "omicron" is "o-micron", i.e., "o-small", whereas "o-mega" is "o-BIG".


Sunday, October 24, 2004

Prime Number

from MathWorld:
Euler commented "Mathematicians have tried in vain to this day to discover some order in the sequence of prime numbers, and we have reason to believe that it is a mystery into which the mind will never penetrate" (Havil 2003, p. 163).

In a 1975 lecture, D. Zagier commented "There are two facts about the distribution of prime numbers of which I hope to convince you so overwhelmingly that they will be permanently engraved in your hearts. The first is that, despite their simple definition and role as the building blocks of the natural numbers, the prime numbers grow like weeds among the natural numbers, seeming to obey no other law than that of chance, and nobody can predict where the next one will sprout. The second fact is even more astonishing, for it states just the opposite: that the prime numbers exhibit stunning regularity, that there are laws governing their behavior, and that they obey these laws with almost military precision" (Havil 2003, p. 171).

Saturday, May 29, 2004

NetBeans, yet another Open-source Java IDE & JBean platform !!!

Welcome to NetBeans
* The NetBeans IDE is a development environment - a tool for programmers to write, compile, debug and deploy programs. It is written in Java - but can support any programming language. It is a free product with no restrictions on how it can be used.

* The NetBeans platform is an application runtime - a "generic large desktop application." Most desktop applications have common requirements - menus, document management, settings and so forth. Nobody enjoys writing menu code or setting storage code. With the NetBeans Platform, you don't have to. Just write modules to implement what you need, bundle them up with the NetBeans Platform, and you have a beautiful, branded, cross-platform application. And if you need custom functionality or components, the Platform is built to be flexible.

Saturday, May 01, 2004

[UML]: Architects & Software developers

Practical UML?: A Hands-On Introduction for Developers: "...Architects design buildings. Builders use the designs to create buildings. The more complicated the building, the more critical the communication between architect and builder. Blueprints are the standard graphical language that both architects and builders must learn as part of their trade.
Writing software is not unlike constructing a building. The more complicated the underlying system, the more critical the communication among everyone involved in creating and deploying the software. In the past decade, the UML has emerged as the software blueprint language for analysts, designers, and programmers alike. It is now part of the software trade. The UML gives everyone from business analyst to designer to programmer a common vocabulary to talk about software design."

Saturday, April 03, 2004

MvnForum: diễn đàn xây dựng trên Java - giải nhì TTVN 2003

Xuất phát từ nhu cầu về một diễn đàn thảo luận (forum), nhưng tại thời điểm đó chưa có một forum miễn phí nào được viết bằng ngôn ngữ Java, vì vậy, tháng 10/2001, hai thành viên trẻ nhóm MyVietnam (Việt Nam và Tôi) đã quyết định xây dựng diễn đàn mvnForum với công nghệ Java. Và Giải Nhì của TTVN 2003 là phần thưởng xứng đáng cho những nỗ lực của nhóm tác giả trẻ.


... lợi thế của mvnForummã nguồn mở, miễn phí, hỗ trợ đa ngôn ngữ và sử dụng công nghệ Java để chạy được trên đa hệ thống ..., đồng thời cho phép người dùng thay đổi giao diện diễn đàn theo ý muốn.

MvnForum được thiết kế theo mô hình MVC (Model – View - Controller), ... giúp mvnForum dễ dàng hơn khi cần mở rộng thêm tính năng ... cũng có thể thêm ngôn ngữ của đất nước mình mà không cần sửa đổi mã nguồn. Trong khi đa số các diễn đàn cho phép chạy ở một ngôn ngữ nhất định thì sản phẩm này lại có thể chạy nhiều ngôn ngữ cùng một lúc và cho phép tìm kiếm với cả các ngôn ngữ khác ngoài tiếng Anh. Hiện tại, mvnForum đã được bản địa hoá sang 21 ngôn ngữ trên thế giới...

mvnForum đã chứng tỏ được khả năng ứng dụng trong hầu hết các lĩnh vực cần sử dụng diễn đàn thảo luận thông tin như hành chính, giáo dục, doanh nghiệp, tài chính, ngân hàng, y tế, hàng không... Với từ khóa "mvnForum" bạn có thể tìm kiếm trên Google và thấy rằng sản phẩm này đã có mặt tại hơn 100 website trên thế giới, được nhiều tổ chức, công ty trong và ngoài nước chọn làm giải pháp diễn đàn cho mình: mvnForum được sử dụng tại công ty CGChannel (www.cgchannel.com), một website chuyên về mỹ thuật trong máy tính có trên 10.000 thành viên và mức độ truy cập rất cao, trên 400 người mỗi thời điểm; công ty Fortis chi nhánh Mỹ, một trong 20 tập đoàn tài chính lớn nhất Châu Âu đang sử dụng sản phẩm này để đáp ứng nhu cầu trao đổi thông tin ngày càng tăng trong công ty (www.fortis.com); Trường ĐH Berkeley (Hoa Kỳ) cũng đang sử dụng sản phẩm này trong hệ thống trao đổi thảo luận của trường (www.berkeley.edu)... Tại Việt Nam, mvnForum được sử dụng xây dựng Diễn đàn của Hội các lập trình viên JavaVietnam (www.JavaVietnam.org). Mới đây, tỉnh Kiên Giang cũng đã chọn mvnForum làm Diễn đàn trong Hệ thống thông tin kinh tế xã hội của tỉnh (www.KienGiang.gov.vn) được ra mắt trong năm 2004. “Ban tổ chức Trí Tuệ Việt Nam cũng đã quyết định sử dụng MvnForum cho Diễn đàn của TTVN”, Minh cho biết thêm.

theo PC World, số B, 2.2004

AOP - OOP - My idea: Gene !


Quan điểm của nó là bổ sung vào những khiếm khuyết mà do OOP mắc phải. Khiếm khuyển đó là ǵ?
- Tính trùng lắp(đan nhau) về mă chương tŕnh -> khó bảo tŕ và mở rộng chương tŕnh.
- Phương pháp lập tŕnh OOP cố gắng mô phỏng thế giới thực - Object, nhưng thế giới thực tồn tại Subject nhiều hơn là Object. Với việc thiết kế mẫu (Design Partern), OOP cũng có thể tạo ra Subject nhưng thường là phức tạp do vấn đề 1 gây ra.
- Object trong thế giới thực có chu ḱ sống: Sinh ra - Hoạt động - Phát triển - Chết đi, nhưng Object trong thế giới OOP th́ chỉ có Sinh ra - Phát triển - Chết đi.
Những khiếm khuyết trên là cần thiết loại bỏ v́ sự phát triển cùa công nghiệp phần mềm. AOP tỏ ra có khả năng làm việc đó...

Trong tư duy phát triển phần mềm OOP và AOP có ǵ khác?
OOP xem xét bài toán từ h́nh thức tổng quát hoá các yêu cầu -> các Object.
AOP xem xét bài toán dưới góc độ phân ră hoá các yêu cầu -> các Apect.


Qua những gì thằng Trung nói, cộng với tư duy của mình... và nhớ lại ý tưởng về Java-Bean, liên tưởng đến phương pháp lập trình bằng "thiết kế" của mình, mình hình dung ra một thế giới của các chương trình tương lai cũng "sống" y như sinh giới bây giờ, với những hòn gạch xây dựng nên nó là các đoạn "gene-code" Ha ha... code và gene !

AOP & Java

Hôm nay được thằng Trung nhắc lại về vấn đề AOP và Java.... cũng được giới thiệu trang diễn đàn JavaVietnam hi vọng là sẽ hữu ích !

So many...

Wow... so many things concerning to WWW   I have to learn: CSS, JavaScript, XML, MathML, CGI-Perl, PostScript, ect.
Wow... how can I deal with all of them ??? :(

SourceForge's forum projects

phpBB (php/OS ind.) (Good looking !)
YaBB (Perl/OS ind.) (BAD looking)
Snitz Forums 2000 (ASP/Windows) (Ok!)
mvnForum (JSP/OS ind.) (Ok! Good Idea)
JForum (JSP/OS ind.) (still Ok.)

First IT note

I just drop down to say IT = "Information is right on you fingerTip" !