Tuesday, August 14, 2007
Free WPF DataGrid from Xceed
Exactly what I need for my current project. So glad I found this great stuff from Xceed before I try to build one myself! (URL: http://xceed.com/Grid_WPF_Intro.html)
Sunday, August 12, 2007
Get the keywords associated with a result item returned by Google Desktop Search
I've been programming with C# and Google Desktop Search (GDS) API for quite a while. Today, when I was browsing the Interop library of GDS (Interop.GoogleDesktopAPI.LIB) in Visual Studio 2008, I found that it's actually possible to obtain the keywords that Google Desktop has identified out of an indexed item. This hasn't been documented by Google GDS API guide yet. (I'm using GDS version 5.1.0707.23222-en-pb.)
Just call the function GetKeywords(int numKeywords, bool includeWeight) of any IGoogleDesktopQueryResultItem3 object and you'll get the keywords as a list of strings. Even better, if you set the input parameter includeWeight to true, then not only will you get the list of keywords, but following each keyword, you'll get the ranking score of that keyword as well.
A sample output for GetKeywords(10, true) is as follows:
papers:10.78 workshop:9.62 layout:9.01 university:8.18
Setting the input parameter 10 asks GDS to return the first 10 keywords, if there are more than 10. Notice that the keywords are always ranked by the ranking score in descending order.
One last thing, it's important to cast a result object to IGoogleDesktopQueryResultItem3, since only this version 3 result object has the GetKeywords() function.
Just call the function GetKeywords(int numKeywords, bool includeWeight) of any IGoogleDesktopQueryResultItem3 object and you'll get the keywords as a list of strings. Even better, if you set the input parameter includeWeight to true, then not only will you get the list of keywords, but following each keyword, you'll get the ranking score of that keyword as well.
A sample output for GetKeywords(10, true) is as follows:
papers:10.78 workshop:9.62 layout:9.01 university:8.18
Setting the input parameter 10 asks GDS to return the first 10 keywords, if there are more than 10. Notice that the keywords are always ranked by the ranking score in descending order.
One last thing, it's important to cast a result object to IGoogleDesktopQueryResultItem3, since only this version 3 result object has the GetKeywords() function.
Friday, August 3, 2007
Re-enabling the Aero glass effect in Windows Vista
If you're using Vista with a nVidia graphics card and you want to update the graphics card's driver, the chances are that after upgrading, you may loose the Aero glass effect (the semi-transparent and blurred windows title bars). That is, Vista may all of a sudden stop using the graphics card's hardware acceleration to draw windows and the desktop, causing the windows' backgrounds to become opaque and the "Switch between windows" 3D effect (the fancy-looking windows switching animation when you press Windows+Tab) to become disabled.
If that hasn't happened to you, then congrats! It happened to me on two computers, one desktop and one laptop. Fortunately, the solution is simple. Just go to "Control Panel -> System And Maintainence -> Check your computer's Windows Experience Index base score" and click "update my score". After the new score has been calculated, you'll get back your graphics acceleration... Don't know why, but it works! :-)
If that hasn't happened to you, then congrats! It happened to me on two computers, one desktop and one laptop. Fortunately, the solution is simple. Just go to "Control Panel -> System And Maintainence -> Check your computer's Windows Experience Index base score" and click "update my score". After the new score has been calculated, you'll get back your graphics acceleration... Don't know why, but it works! :-)
Subscribe to:
Posts (Atom)
Blog Archive
-
▼
2007
(12)
-
►
June
(9)
- WPF: getting a data-bound data template and the it...
- The best tutorial about data binding in WPF
- Day of Silence
- LearnWPF.com
- The correct way to repaint a form or control in c#...
- Postable: convert codes to make them show up prope...
- Obtaining mouse x and y coordinates from a Windows...
- Windows Message Handling, in C#
- Dealing with my clutter
-
►
June
(9)