Code, Career & Everything IT

Blogs about my IT work, life, and example code — from PHP and .NET to Java, career notes and tech opinions.

Example Codes

MenuItem Icon - WPF

I tried the icon attribute in MenuItem. It doesn't work.Actually, you need to modify the header element like this: <MenuItem Name="GridButton"…

Read more
Example Codes

WPF TextBlock Click Event

Actually, for WPF TextBlock Component, there is no click event. The best replacement is Mouse Down Event, Like this: text1.MouseDown += text1_MouseDown;

Read more
Q&A

404 Error for 7z

If you upload a 7z file to an iis server and you try to load from web, then you got a 404 error. Even you checked the resource path is right. You are sure there…

Read more
Q&A

VPN Server Router - ASUS RT-N12

Sometime, I need to access my home network in Hong Kong. Moreover, in some cases, I need to make sure my clients' websites are accessible from oversea. So, I…

Read more
Android

Screenshot in Android

There are many apps can do a screenshot in Android. However, I tested a few of them. They required your android phone are rooted. Well, most of android phones…

Read more
Opinions

Samsung S3 battery @ Hong Kong

My S3 Phone is about 2 years ago. But its battery life is very short, that is about 2 hours long. I tried to uninstall apps and kills apps. These actions cannot…

Read more
Announcements [B]

I started to love Visual Studio 2013

I started to use Visual Studio 2013 for some new projects. I found there are a number of new features make our life easier, such as displaying the number of…

Read more
Announcements [A]

Check contains a string

In PHP, there is not a simple function similar with C#, such as '"michael".contains("mich")'. However, you can use strpos which is to find the position of the…

Read more