I remember around 10 years, I got so many problems on encoding when I read the chinese website. Whether it was simplified chinese(GB) or traditional chinese (BIG5). Sometimes, the website did not put the encoding setting in their HTML. So, a lot of times, I found the website was in non-readable. I needed to switch the encoding setting of my browser frequently.
For recently, most of webesites switched to Unicode, my problem is solved. According to Google, there are nearing 50% of website using Unicode now. That is good, I hope there will be 100% very soon. As a result, the encoding will be gone. Becuase Unicode is nearly including the characters from most of languages in the World.
Offical Google Blog
I think the hottest IT@topic today is Apple iPad. Last night, Steve Jobs announced the first Apple's tablet PC, iPad, in his keynote. The rumors were talking about that for long long time.
It doesn't bring a lot of surpises to myself. It looks like an over-sized iPhone. Moreover, it has another key feature, iBook. iPad sounds a good eBook reader. But I am more prefer an eInk screen. iPad is using LED-backlight screen. I can't stand for reading a textbook on this kind of screen for long time! But the price is very very attractice. For 16GB version, that is only USD$499!
I found Twitter has an new option on Trending. You can change the Trending to an individual country. But currently, they only provide the trending on these countries,included:
* United Kingdom
* United States
Not Australia yet, so that is not very useful for me.
That is a bit hard to write a mp3 player in C#. I think you may need to find third party mp3 decoder dll. But if you only want to play to a wav file, that is very easy. .Net libraries already have a control class for you.
All you need to put the file name into the constructor
Then you can play and stop the file by these methods:
This afternoon, I wrote an example project for this. Moreover, this project is implemented in WPF rather than normal Windows Forms, because I wish to practice my WPF skills.
Download the example project, please click here.
You can jump to a new window by changing the content view.
But the type of Activity between two views must be same. In my case, I need to switch to a List view(Activity) from a normal window. I can't do by switching content views. The only way to do that is start a sub-activity, just like the following:
Yes, then it will jump to a new window, after the action completes, my code will call "finish();" from the sub-activity. Then it will jump back to the main window.