DirectShow experience
[Posted 18/7/2007 in http://allencch.multiply.com]
After a long time doing about DirectShow, finally I can grasp what is going on in DirectShow.
For me, the purpose of DirectShow is to get the multimedia input then display the output, eg: *.avi file and video capture device such as webcam. And everything is dealt with “filter” (Please read the documentation for detailed information). And the filters are written in COM (Component Object Module).
To deal with DirectShow, you must download DirectX 9 SDK from MSDN, or download Windows Platform SDK from MSDN, because the DirectShow SDK has removed from DirectX newer SDK. I suggest DirectX 9 SDK, but I don’t know whether one can download it or not.
Convert MHT file encoded with base64 to quoted-printable encoding
These days, I learnt and wrote a Python script.
There are a lot of addons (extension) that are not compatible with Firefox 3, and this includes Mozilla Archive Format. Because of this, I need to use UnMHT. However, as what I had said, UnMHT will encode all the text into base64 encoding.
When I search MSDN library, and I always save the webpage in printer friendly version. And the printer friendly version will always pop up a printing dialog. This is because of the javascript function, “window.print()”. Therefore, I always delete the javascript manually after downloading the webpage.
Programmer's problem
I don’t know whether this is my personal problem or it is related to any programmer.
Because I do programming, and programming normally uses trial-and-error method to solve the problem. I can detect the errors during the compilation. And the compiled binary file can be run and tested for the bugs. The application can be revised and revised in order to produce the final product.
Because of trial-and-error, in my life, I always do my work carelessly. Because I think if there is an error, I still can revise and solve the problem.
OpenGL matrix mode
There is a problem when switching matrix mode between GL_MODELVIEW and GL_PROJECTION. As an easy practice, we always glLoadIdentity() after glMatrixMode() to reset the matrix. Because of this, the object displayed in GL_MODELVIEW will be disappeared when we glLoadIdentity() in GL_PROJECTION. Actually, this is because after we glLoadIdentity(), the gluPerspective() (or whatever we have used in GL_PROJECTION) will be reset. That is why the object in GL_MODELVIEW will be disappeared. To make it appear, that means we need to set back the gluPerspective().
My C++ Experience
Introduction
To learn about programming, C++ is a very popular programming. However, besides the language itself, there are many things need to know.
Compiled language
C++ is a compiled language. Therefore, it is not platform independent like interpreted language such as PHP, Perl, Python and else. Because it is a compiled language, that means the developer should target the platform of the C++ program, Microsoft Windows or other? Because I am using Windows, so I will only focus on Win32.
God the Greatest Programmer
[I like this article I wrote, I posted it at my previous blog. So, now I copy it to here.]
In the beginning, I dislike programming. This is because I felt that for creating AI (Artificial Intelligence), robots and else is something arrogant. Because men will think that they are intelligent beings that can create intelligent things. Even the movies like “Matrix”, “Terminator” and else show that what the human created will dominate the human being. It indicates that the human have the intelligence to create something greater than themselves, the human are more intelligent than the Creator.
Memory Editor
I don’t know whether you know about Memory Editor (or some people call it Memory Scanner) or not. It is an application that usually used when playing PC games.
Using Memory Editor, you can modify your character HP (Hit Point), money, and else. And if you are very good in memory editing, you might also review the secret items, secret characters.
I like to use Memory Editor. Because, I don’t like to waste too much time to level up my character. I feel that doing this is wasting my life. However, I like story of the games, that is why I modify a bit which will not destroy the fun of the game play, such as modify the experience of the characters.