Will Metro UI kill WPF?
Windows 8 will use Metro UI, even it support xaml.But that is different from WPF.Will Metro UI kill WPF? Around 2008, WPF started to get the market. At that time, I had asked whether WPF will kill Winforms. But now, I am writing some Winform applications. Winform is still alive, that is too early to say whether Metro UI will kill WPF. Moreover, Metro UI sounds a Tablet UI rather than a Desktop UI. So, I still thinks WPF will worth while.
Custom Membership Provider
Custom Membership Provider is easy to do. Firstly, please extends MembershipProvider
Code
public class AdvCMSMembershipProvider : MembershipProvider |
Secondly, Right Click MembershipProvider, and then implements all abstract methods.
The only method you need to change:
Code
public override bool ValidateUser(string username, string password) | |
{ | |
IAdvUser user = userRepository.GetByUserName(username); | |
| |
return user.Password == password; | |
} |
Lastly, chaging web.config
Code
<membership defaultProvider="AdvCMSMembershipProvider"> | |
<providers> | |
<clear/> | |
<add name="AdvCMSMembershipProvider" | |
type="AdvCMS.Security.AdvCMSMembershipProvider, AdvCMS.Security" /> | |
</providers> | |
</membership> |
Please download our opensource project, AdvGenCMS, as the example.
Convert DhcpInfo.dns into a readable IP
DhcpInfo.dns1 and DhcpInfo.dns2 is an integer, not a readable IP string,"x.x.x.x". That is hard to understand. I did a search in internet. There are a number of people to write their own function to do that. Actually, Android SDK has a formatter to do that.
Code
Formatter.formatIpAddress(info.dns1) |
That is hard to find a mobile app developer vacancy
I was in Hong Kong for a few months in this year, I found there are a lot of local app in the market. Now, I back to Brisbane. There is only a few local app in the market. I think there is no demand for mobile app developer in there. Last night, I went to Seek.com to search for a mobile app developer vacancy. I just can find one only.
WordPress 3.4 is released
WordPress 3.4 is released! In this times, the theme function got major improvement. Now, you can preview the theme in a live format. I am waiting for this function for long long time!!! Moreover, the theme can be customized more, such as changing the size of header image. Find more out in Wordpress website.
Source:
WordPress 3.4 “Green”
