Một số hướng dẫn của WHO về đại dịch cúm H1N1

Funny, Technical, Weekly Tips, Work and Life July 31st, 2009

Dịch cúm A (H1N1) đang lan rộng và có nguy cơ trở thành đại dịch trên toàn cầu. Đứng trước tình hình đó, tổ chức Y tế thế giới đã đưa ra một số hướng dẫn để mọi người tham khảo nhằm giảm thiểu khả năng lây nhiễm loại virus cúm nguy hiểm này.

Mọi người nên tham khảo và chú ý phòng vệ cho bản thân để tránh lây nhiễm cúm A(H1N1)!

influenza-ah1n1-english-poster_translated-vn

The Ext4 file system: A real improvement in Linux file storage?

Linux, Technical May 21st, 2009

Since December 2008, the Ext4 file system is in the Linux kernel and is fully supported by all major Linux distributions. In this article you’ll find out if it’s time to make your migration plans, or if you should wait a while.

The Ext4 file system is backward compatible to the Ext3 file system, which is backward compatible to the Ext2 file system, which was invented in the early 1990s. Remember how big a big hard drive was in those days? Exactly, about 40 MB (yes, megabytes, not gigabytes) was considered huge at those days. Hence, the Ext2 file system was never developed with the multi-terabyte volumes that people tend to create now. That also means that the default maximum file and volume sizes in Ext2 and also in Ext3 are limited. If the default block size of 4 KB is used, a file with a maximal size of 2 TB can be created, and the maximal size for a volume or partition is 8 TB. Given the storage needs that companies have nowadays, this imposes a serious limitation.

When starting the development of Ext4, initially there were two directions in the project team. The first was to develop Ext4 as a fork of Ext3, making it completely compatible with this file system. The other option was to develop a completely new file system with support for new features, such as b-tree indexing and an undelete feature. At the end, the compatibility option has prevailed, making Ext4 completely compatible with Ext3. Therefore, an upgrade option exists from Ext3 to Ext4, without any need to recreate the volume and copy all files over to the new Ext4 volume. You can mount an existing Ext3 volume as an Ext4 file system, allowing you to benefit from the more efficient engine that the Ext4 driver offers.

New features in Ext4
The most important limitation in Ext3, was the maximum size of files that could be used. Ext4 addresses this limitation by using extents. An extent is a contiguous group of blocks, and in Ext4, files can allocate extents instead of individual blocks. This makes allocation storage much more efficient, decreases fragmentation, and most important, allows for much larger files and volumes. The maximal file size in Ext4 is 16 TB, whereas the maximum volume size is even set to 1 EB (that is 1024 x 1024 x 1 TB). The use of extents is not the only method that Ext4 uses to decrease chances of fragmentation, another feature added to accomplish this goal is preallocation. This means that blocks can be reserved, even if they are not used immediately. Related to that, is the delayed allocation feature, which means that the actual writing of files is delayed until the last possible moment, which simultaneously increases performance and decreases fragmentation.

Migrating from Ext3 to Ext4
Migration from Ext3 to Ext4 is rather easy; just mount the Ext3 file system as an Ext4 file system, using mount -t ext4 /dev/something /somewhere. This will automatically start using Ext4 features on the old Ext3 file system. There is a caveat though: if you do this, there is no way back. Once a file system uses specific Ext4 features, you cannot use it as an Ext3 file system anymore. Hence, you shouldn’t forget to modify your /etc/fstab to make sure that in the future your old Ext3 file system is mounted as Ext4 automatically after a system reboot.

Ext4 is the long awaited successor of the Ext3 file system. Since December 25, 2008, support is official in the Linux kernel. As migration is easy, and performance benefits are important, it’s a good idea to start testing your migration from Ext3 to Ext4.

ABOUT THE AUTHOR: Sander van Vugt is an author and independent technical trainer, specializing in Linux since 1994. Vugt is also a technical consultant for high-availability (HA) clustering and performance optimization, as well as an expert on SLED 10 administration.

Microsoft hỗ trợ chuẩn mã mở ODF trong Office 2007 SP2

Technical January 5th, 2009

Bộ tài liệu mô tả chi tiết sự hỗ trợ chuẩn OASIS Open Document Format (ODF) v1.1 cho gói ứng dụng văn phòng sắp ra mắt năm nay nằm trong nỗ lực thiết lập một môi trường tương thích chung giữa các định dạng văn bản thế hệ mới.

Tiếp theo, Microsoft cũng sẽ bông bố chi tiết hỗ trợ định dạng Open XML (Ecma 376 Edition 1) trong Office 2007.

Những tài liệu nói trên cung cấp hướng dẫn toàn diện về phương thức mà Microsoft triển khai ODF cũng như Open XML trong khuôn khổ bộ sản phẩm đầu tàu của họ và được cung cấp miễn phí trên website xúc tiến tương thích định dạng văn bản.

Đây sẽ là công cụ hữu ích cho các nhà phát triển phần mềm trong việc tìm kiếm cơ hội nâng cao tính tương thích trong giải pháp của họ với sản phẩm Microsoft, hướng tới 3 mục tiêu chính là tăng cường khả năng quản lý, nâng cao tính thông suốt và cải thiện độ tương tác.

“Đóng góp này hết sức quan trọng cho quá trình hướng tới một môi trường liên thông vững chắc và thực tế giữa các ứng dụng”, Dennis Hamilton, kiến trúc sư chuyên về tương thích hệ thống văn bản, bình luận. “Động thái nói trên của Microsoft đã gỡ bỏ những rào cản để các định dạng văn bản khác nhau được hỗ trợ một cách chi tiết hơn”.

MS Office 2007 ODF support

Trong khi đó, Doug Mahugh, Giám đốc dự án tương thích chuẩn của Microsoft Office, nhận định: “Với việc công bố tài liệu chi tiết về việc đưa các định dạng file văn bản vào gói ứng dụng Office, chúng tôi đem đến những thông tin mà cộng đồng phần mềm có thể sử dụng như một kênh tham chiếu cho các ứng dụng riêng của họ. Chúng tôi khuyến khích các công ty khác tiến hành động thái tương tự để góp phần nâng cao hơn sự tương thích định dạng trong toàn ngành”.

Chuẩn văn bản do Microsoft phát triển có tên đầy đủ là Office Open XML (OOXML) lần đầu được phê duyệt là định dạng mở bởi tổ chức ISO vào tháng 9/2007. Trong thời gian đó, Microsoft đã từng bước đưa chuẩn này thành một định dạng mở và liên thông hoàn toàn. Tháng 5/2008, hãng phần mềm Mỹ tuyên bố hỗ trợ 2 định dạng PDF (của Adobe) và ODF trong bộ Office. Một tháng sau đó, họ đã công bố bản hướng dẫn cụ thể. Đến nay, nhiều ứng dụng bắt đầu cho thấy kết quả tích cực của sự mở rộng tương thích nói trên. Ví dụ, có phần mềm cho phép những trình duyệt khác Internet Explorer như Firefox xem được file văn bản .docx trên Word 2007. Phiên bản phần mềm văn phòng OpenOffice.org do Novell phát triển cũng đã hỗ trợ tốt chuẩn OOXML của Microsoft. Hệ điều hành Mac OS X của Apple và điện thoại iPhone hiện cũng đã tương thích khá tốt đối với văn bản dùng chuẩn của Microsoft.

Bộ phần mềm văn phòng Microsoft Office 2007 bao gồm Word, Excel và PowerPoint đã áp dụng Open XML làm cơ chế lưu trữ mặc định cho các tệp văn bản, bảng tính và trình diễn. Người sử dụng các phiên bản trước gồm Office 97 và 2003 cũng có thể áp dụng khuôn dạng mới này bằng cách cài đặt thêm công cụ tương thích miễn phí của Microsoft để đảm bảo dữ liệu phù hợp với nền XML.

Chỉ thị của Bộ Thông tin và Truyền thông số 07/2008/CT-BTTTT – ngày 30/12/2008 – về đẩy mạnh sử dụng phần mềm mã nguồn mở trong hoạt động của cơ quan, tổ chức nhà nước

Technical January 2nd, 2009

Đây thực sự là cơ hội tốt (tốt nhất từ trước đến nay), tạo môi trường cho PMTDNM và các công ty chuyên cung cấp dịch vụ phát triển.

Toàn văn chỉ thị 07/2008/CT-BTTTT

Nguồn: http://www.mic.gov.vn/VBQPPL/details_law.asp?LawDoc_ID=1135892

Upgrade Fedora Core 9 to 10 using yum

Linux, Technical November 29th, 2008

Chào mọi người,

Fedora Core 10 đã chính thức được phát hành.

Hiện tại, iWay cũng đã download LiveCD, full install DVD và tạo local repositories cho FC10.

Mọi người có thể upgrade từ FC9 hiện tại lên FC10 mới với nhiều tính năng cập nhật theo các bước sau:

  1. Nếu đang dùng bản OpenOffice 3.0 cài riêng thì nên remove trước:
  2. yum remove openoffice.org3* ooobasis3*

  3. Disable các 3rd-party repositories
  4. Vào thư mục /etc/yum.repos.d đổi tên tất cả file .repo thành .repo.bak trừ 2 files fedora.repolocal.repo

  5. Cài đặt yum-fastestmirror:
  6. yum -y install yum-fastestmirror

  7. Clean  hết yum cache:
  8. yum clean all

  9. Cài gói fedora-release-* cho phiên bản 10 mới:
  10. rpm -Uvh http://mirror.iwayvietnam.com:9090/yum/base/10/i386/fedora-release-10-1.noarch.rpm http://mirror.iwayvietnam.com:9090/yum/base/10/i386/fedora-release-notes-10.0.0-1.noarch.rpm

  11. Đảm bảo phiên bản mới không bị save dưới tên file .rpmnew:
  12. ll /etc/yum.repos.d/*.rpmnew

    Note: lệnh này phải không show ra file nào.

  13. Sửa repository “updates-newkey” về “updates”:
  14. Sửa file: /etc/yum.repos.d/local.repo

    Dòng: baseurl=http://mirror.iwayvietnam.com:9090/yum/updates/$releasever/$basearch.newkey/

    Thành: baseurl=http://mirror.iwayvietnam.com:9090/yum/updates/$releasever/$basearch/

  15. Upgrade các gói quan trọng trước:
  16. yum -y update rpm\* yum\* glibc\*

  17. Upgrade tất cả các packages:
  18. yum -y upgrade

    Note: yum có thể sẽ phải tự download một số gói chưa có trong local repositories nên tiến trình có thể hơi chậm tại những điểm đó. Tuỳ theo tốc độ kết nố, tiến trình upgrade có thể kéo dài khoảng 1-2 hours. Trong trường hợp thấy tốc độ kết nối hiện hành quá thấp (dưới 10Kbps) có thể nhấn Ctrl+C 1 lần để yum tự chọn lại mirror khác nhanh hơn (2 lần sẽ là dừng yum, phải chạy lại lệnh upgrade).

    Trong quá trình upgrade, có thể sử dụng máy tính bình thường, nhưng nhớ không được reboot hoặc làm bất cứ việc gì làm dừng quá trình upgrade; đặc laptops chú ý cắm điện phòng trường hợp hết pin.

    Đây là thời gian bạn có thể thư giãn, uống ly cà phê, hay chơi 1 séc bóng bàn :)

  19. Đảm bảo các gói cần thiết đã được cài đặt:
  20. yum groupupdate Base
    yum grouplist

  21. Cài đặt boot loader mới:
  22. Xem BOOTDEVICE: df -h /boot
    Lấy thông tin BOOTDEVICE là Filesystem (e.g. /dev/sda3) bỏ phần số đi (e.g. /dev/sda)
    Cài đặt: /sbin/grub-install BOOTDEVICE

  23. Reset thứ tự ưu tiên các init scripts:
  24. cd /etc/rc.d/init.d; for f in *; do /sbin/chkconfig $f resetpriorities; done

  25. Check xem còn gói nào chưa được nâng cấp:
  26. package-cleanup --orphans

  27. Reboot
  28. Nếu ở bước 1 đã remove OpenOffice 3.0 thì bây giờ là lúc cài đặt lại:
  29. yum -y install openoffice.org*

  30. Và update các gói phần mềm mới nhất:
  31. yum -y update

Fedora Core 10 đã sẵn sàng chờ bản trải nghiệm.

Enjoy it!