The bird is regarded as favorite pet by traditional chinese peoper. You can find what does it like...
I m glad to share the world with you... ...
Sunday, May 27, 2007
Saturday, May 26, 2007
In the Crowded Beijing, we hardly to get a living place.
The old job and the new job
The benefit of downloading with Thunder
Thunder is a powerful tool for downloading. There are three obviously benefits to use Thunder.
First, it improves the downloading speed. It works effectively. Most of time, the speed is higher than other downloading tool, as Flashget, Netant for example.
Second, it resolves the dead link. Sometime, the resource was deleted or moved to other place, and you could not download the resource directly. However, the Thunder can found the backup of the resource automatically. On the other hand, some resource is not accessible in your location, for example, the firewall doesn't let you do it, the Thunder can also solve this kind of problems.
At last, most of your downloading is likely to be reused in future. When time flush away, the downloading is deleted by some reasons, this is very normal. Then how to find the former resource? Now with Thunder, the resource can be recorded to the resource Blog, which provided by the Thunder. Go to your Blog, you can find the resources you have down.
Tuesday, May 22, 2007
The sample of self-define the code check rule in VS IDE.
using Microsoft.FxCop.Sdk.Introspection;
using Microsoft.Cci;
{
protected BaseRule(string name)
: base(name, "msdnwebcastRule.testRules", typeof(BaseRule).Assembly)
{ }
}
{
private const string FIELD_PREFIX = "_";
public TestRule()
: base("TestRule")
{ }
public override TargetVisibilities TargetVisibility
{
get
{
return TargetVisibilities.NotExternallyVisible;
}
}
public override ProblemCollection Check(Member member)
{
Field field = member as Field;
// Is the provided member a field?
if (field == null)
return null;
// We are only interested in private fields
if (!field.IsPrivate)
return null;
// Ignore constants and fields with special names
if (field.IsLiteral || field.IsSpecialName)
return null;
string name = field.Name.Name;
// Ignore compiler generated event backing stores
if (RuleUtilities.IsEventBackingField(field))
return null;
if (!name.StartsWith(FIELD_PREFIX))
Problems.Add(new Problem(GetNamedResolution("Prefix", name, FIELD_PREFIX), field));
return Problems;
}
}
Then compile the class lib and put the asembly to the FxCop's rules folder, OK.
How to self-define the checking rule in VS IDE?
In VSTS, you can define or add the code checking rules in FxCop. This is the to-do list.
1. Download FxCop 1.35. The URL is http://www.gotdotnet.com/team/fxcop/.
2. Install FxCop 1.35
3. Create a class lib project in VS.
4. Insert the reference: FxCopSdk, Microsoft.Cci, you can find them in both the FxCop folder and VS setup folder.
5. Let the class be inherited from base class: Introspection.BaseIntrospectionRule.
6. Override the check functions according your rules:
Check(Microsoft.Cci.Parameter)
Check(Microsoft.Cci.Member)
Check(Microsoft.Cci.TypeNode)
Check(Microsoft.Cci.Tesource)
...
7. Add and edit the rule configure file: xxxRules.xml.
8. Edit the rules with this property:
Message level: Warning Critical Warning, Error, Critical Error and Information.
Certainty: 1--99
9. Test the rule in FxCop 1.35.
10. Reinsert the reference: FxCopSdk, Microsoft.Cci, from VS setup folder, and recompile.
11. Copy the assembly to the FxCop rules folder in the VS setup folder.
12. You can use your self-defined rules in the VS IDE.
Be careful:
1. Do not copy the assembly to local
2. The xml file name must be end with "Rules.xml".
3. The xml should be compiled into the resources.
Sunday, May 20, 2007
Two questions from Microsoft
1. How a static variable can be accessed (in different scopes)?
Tuesday, May 08, 2007
My two questions about CV of HP
Please select the skills for which you consider yourself at least an intermediate and as having at least 1-3 years of experience.
Tips and hints from HP
Your HP interview could have a major impact on your future. So to help make it a positive experience both for ourselves and for you, and to maximise your chances of success, follow our tips and hints:
- A dynamic attitude
- Flexibility
- Team playing abilities
- Analytical skills
- Communication and interpersonal skills
- Commitment