May 2009

Reset ASP.NET Membership password

I ran into a very stupid case yesterday. My friend called me and asked me to help her with her website, she got trouble and could not login to admin panel. And I did some diagnosis test, nothing wrong, DB' was up and running, no problem, no login exception, her site is written in ASP.NET and everything is alive and well. Just right after that she told me that she forgot the password :-<

If you lost your password, what would you do ? Go to reset password feature. Guess what ? There's no reset password page 8-} . Actually, I remembered that not many developers implement this feature, especially for administration page, and also the author of the website. I will remember this for the next project.

Category:

Virtual method in OOP

I have a chance to play with C++ in the last week. It wasn't so hard, but I forgot a lot, like namespace, library, method arguments or signature.. One big thing that I think I forgot is the "virtual method", or virtual function. So I post this article to remind me about this.

The idea of virtual function is simple. In OOP, you sure know about inheritance, virtual function is a method which child class can override (re-implement) the method of parent class. It seems simple but virtual function play an important role in OOP, especially for polymorphism. I'm quite lazy now, so I will grab the example code from wikipedia :-D

Category:

Anonymous Gravatar

I got the anonymous gravatar worked. I posted it here because when I tried to google "drupal gravatar anonymous" I got very little information about this problem.

Actually, gravatar supports anonymous user already but you have to "configure" it. It's a simple configuration, just go to Admin -> User Management -> Permission and tick the use gravatar checkbox under gravata module section. That's all.

I don't know why the author of gravatar module didn't provide this very short instruction :-<

Category:

New theme for my blog

It's a good news for me that I managed to change my blog look n' feel. finally. You should know that I have never be a good designer. I can criticize design, but I can make it. Mostly I just search around theme repository and pick one which is most suitable for me :-D.

Category:

An Interview

I just had an interview at Dirox company. There are something expected and unexpected, and there are something I should learn for an interview.

I expected to be interviewed in English. That won't be a problem to me. But in fact, I was interviewed by Clément, He's French, and although He spoke English, but I always felt like he was speaking French to me (haha). That was not good for me, because I didn't get 100% what he talked.

Category: