Pages

Saturday, November 21, 2009

OpenGL GL_Select problems with ATI, NVidia

  • Các giải thích về cách install và uninstall các ATI drivers. See here
select and pick object up

The 1st explaination: see here. Bên dưới là một copy của giải thích.
Beware that a BIG drop in performance will exist in ATI or NVIDIA GPUs

The hardware acceleration for GL_Select is only in full power on the high end graphics cards specially for graphics workstation.

The Bad Thing, that's only a matter of drivers, (some folks have hacked the drivers) but not a good solution.

So, if u have lots of objects to pick (like i have , > 10000) it's better that you don't rely on that method for object picking.
The 2nd explaination: see here. Bên dưới là một phiên bản copy lại
As mentioned above, this is very easy to implement.But there's a big drawback,namely the maximum size of the Name Stack.Every OpenGL implementation must at least offer a Name Stack size of 64 names (My GeForce4 Ti4400 with NVidia's Detonator 28.80 offers a Name Stack depth of 128 names).This is not enough,especially for complex scenes.If you need to retrieve information on more objects than your Name Stack is deep,then you'll have to use another method like casting a ray on where your mousecursor is.
The 3nd explaination: see here. Bên dưới là một copy lại

I've started noticing a dramatic drop in the performance of OpenGL rendering in SELECT mode. That is, after a call glRenderMode(GL_SELECT);. GL_SELECT is meant to be faster than regular rendering, because it only needs to render the geometry, and not shading or textures but recent drivers (since July 2007) have started slowing this operation down dramatically.

So far, it only appears to affect ATI graphics drivers. I haven't tested any HD cards -- if you have one, please consider contributing some numbers, using the test program below. Also, the numbers below indicate that GL_RENDER performance may very well also be affected -- by half!. Clearly something has screwed up.

....

Nvidia drivers seem to be unaffected -- if they were doing it too, I might be lead to believe a:

Conspiracy Theory

There's a chance that ATI/AMD (and nvidia) are deliberately disabling this feature of their graphics cards. Games often get by without using it, while high-end graphics workstation applications like Maya depend on it heavily. There's a chance the card manufacturers want you to shell out for a workstation card, like Quadro, if you want to use this feature. But, clearly, the cards can support it just fine!

The 4th explaination: See here.

Those are very clear for us to stop testing on Francois's computer.

Sunday, November 8, 2009

Dual boot Linux and Vista (or XP)

Sau gần vài tiếng đồng hồ thử nghiệm và cấu hình, cuối cùng tôi cùng tìm ra được cách edit GRUB để có thể cài một lúc Ubuntu và Vista (hoặc XP) trên cùng một máy tính.

Cách 1: Chỉnh sửa GRUB bootloader trong Ubuntu.
Cho dù bạn cài Vista hoặc Ubuntu trước, cách này đều hiệu quả.
Dùng đĩa Ubuntu Live CD (nói dễ hiểu là đĩa cài đặt Ubuntu và dĩ nhiên nó phải có tính tự boot được, tiếng anh là bootable) để khởi động hệ thống. Trên menu điều khiển, chọn Try install Ubuntu without.... để chạy trực tiếp Ubuntu trên đĩa CD mà không cần cài đặt. Khi đó, bạn chỉ cần chỉnh sửa GRUB theo bước sau:
  1. Từ Terminal, gõ lệnh: sudo -i để không cần phải gõ lại sudo (vì tất cả các thao tác này đều liên quan đến hệ thống, phải có quyền tương đương với root mới có thể thực hiện được)
  2. Dùng lệnh: fdisk -l để xem danh sách các phân vùng (partitions), xem phân vùng nào cài đặt Ubuntu, phân vùng nào cài đặt Windows (lệnh này chỉ test, không quan trọng).
  3. Gõ: grub
  4. find /boot/grub/stage1 để tìm phân vùng cài đặt Ubuntu, kết quả sẽ là một dòng dạng: hd?,? --> dấu ? thứ nhất là số hiệu của ổ đĩa, nếu máy tính của chúng ta chỉ có duy nhất một ổ đĩa cứng thì dấu hỏi này là số 0, nếu có hai ổ đĩa, mà Ubuntu được cài đặt trên ổ đĩa thứ 2 thì dấu hỏi này là số 1. Nói chung là, dấu ? thứ nhất cho biết ổ đĩa nào cài đặt Ubuntu.
    Dấu hỏi thứ 2 là số hiệu của phân vùng trên một ổ cứng, số hiệu đánh dấu từ 1 trở đi. Nên nếu: hd0,6 nghĩa là Ubuntu đang cài đặt trên ổ đĩa cứng đầu tiên, ở phân vùng thứ 6.
  5. Gõ lệnh: root (hd0,6)
  6. Gõ lệnh: setup (hd0)
  7. Thoát grub: quit, sau đó khởi động lại máy tính bằng lệnh reboot kế tiếp.
Sau đó, hệ thống sẽ hiển thị một menu để bạn chọn lựa hệ điều hành cần khởi động. Và thường theo cách này thì dòng thông báo hệ điều hành Windows Vista sẽ nằm cuối cùng. Chúng ta có thể chỉnh sửa thêm một vài thông số trong file cấu hình này.
Cũng từ Terminal, chúng ta dùng lệnh: gksudo gedit /boot/grub/menu.lst. File menu.lst chứa các thông số để khởi động Ubuntu và Vista.

Cách 2: Chỉnh sửa bootinit.h trong Vista

Saturday, November 7, 2009

How to print multiple pages in a sheet

Tôi biết có nhiều người muốn in nhiều trang soạn thảo văn bản trong Microsoft Word trên một mặt giấy A4 (vì muốn tiết kiệm giấy). Chức năng này đã có trong Page Setup... khi chúng ta soạn thảo văn bản nhưng đôi khi không thực hiện vì một lý do nào đó. Thường thì máy in có support tính năng này không. Theo tôi tìm hiểu, có 2 cách để thực hiện điều này:
  1. Một số máy in đời mới có hỗ trợ thì việc này dễ như trở bàn tay.
  2. Nếu không, bạn sẽ dùng một số tiện ích khác nhằm làm một việc thủ công trước khi in. Trong Linux, bạn dùng pdfnup hoặc psnup. Có thể xem thêm link ở đây http://ubuntuforums.org/showthread.php?t=138981.

Mọi thứ về Latex

TẠO PRESENTATION VỚI LATEX

Gói thường sử dụng nhiều nhất là beamer.


References và citations được quản lý theo một thống nhất trong Latex bằng cách sử dụng BibTeX. Với cách này, chúng ta đưa tất cả các thông tin liên quan đến tài liệu tham khảo vào trong một file có phần mở rộng là .bib. mà không cần quan tâm đến thứ tự của chúng (Xem file mẫu myrefs.bib).

(See the sample file myrefs.bib, below.) Then you let BibTeX format all citations and reference entries according to the chosen bibliographic style, and you don't have to sweat all the font and punctuation and ordering details yourself.
The reference/bibliography section usually appears at the end of an publication. In your LaTeX file, these two commands insert the reference section:
\bibliographystyle{xxx}
 \bibliography{yyy}
The ``xxx'' is a style name -- plain or abbrv or siam or alpha or any of dozens of other available styles, many listed below. The ``yyy'' is the name of the bib file (yyy.bib) containing the reference database.
For example, the command \bibliography{myrefs} would call on file ``myrefs.bib''.
Below find the following:

Chinh sua de in code cho dep:
http://stackoverflow.com/questions/741985/latex-source-code-listing-like-in-professional-books

Friday, November 6, 2009

Bioinformatic Textbooks

http://search.barnesandnoble.com/Bioinformatics/David-W-Mount/e/9780879697129
http://compbio.ucdenver.edu/hunter/cpbs7711/textbooks.html
http://kdpnw.kdp-baptist.louisville.edu/proteomelab/bookbio.html
http://www.google.com/Top/Science/Biology/Bioinformatics/Education/Courses/
http://www.bioinformaticscourses.com/bioinform/2003q3/lecture1_2003q4.html