Pages

Monday, January 7, 2013

Reset password in ASP.net Without using email and security question

Here is the good example after several tries.

http://msdn.microsoft.com/en-us/library/d94bdzz2.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

send email in asp.net function


MailMessage mail = new MailMessage();

  mail.To = "receivers@email.address";
  mail.From = "senders@email.address";
  mail.BodyFormat = MailFormat.Text;
  mail.Subject = "Subject of this Email";
  mail.Body = "Body of this message.";

 SmtpMail.Send(mail);

Thursday, August 30, 2012

Remove a startup application


Remove a startup application
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

Friday, July 20, 2012

telerik mouse over

credit to http://demos.telerik.com/aspnet-ajax/controls/examples/integration/chartandtooltip/defaultcs.aspx?product=chart


  •  <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Skin="Telerik"
                Width="200px" Animation="Slide" Position="TopCenter" EnableShadow="true" ToolTipZoneID="RadChart1" AutoTooltipify="true">
            telerik:RadToolTipManager>

Friday, July 6, 2012

MasterCard Delectable 1-For-1 Deals

Only with Debit or Prepaid MasterCard


Promotion period: 1 July - 30 Sept 2012


Buy 1 FREE 1 Promotion!
Enjoy double the excitement with Debit or Prepaid MasterCard all across Malaysia.


Purchase a Golden Screen Cinemas movie ticket and receive aFREE ticket to share at the same movie session.


Top up RM10 DiGi talktime with your Debit or Prepaid MasterCard and you will receive RM10 FREE when you purchase online.


Not a Debit MasterCard cardholder yet? Sign up now to enjoy a voucher for 1-for-1 regular pizza atPizza Hut.


Terms & conditions apply.

related link:
http://www.mastercard.com/sea/personal/en/promotions/malaysia/debit_malaysia.html

Sunday, May 20, 2012

VBA Comparison Operators


VBA Comparison Operators

Comparison operators compare two numbers or strings and return a logical (True or False) result. The main Excel VBA comparison operators are listed in the table below:
OperatorAction
=Equal To
< >Not Equal To
<Less Than
>Greater Than
<=Less Than or Equal To
>=Greater Than or Equal To


references:
http://www.excelfunctions.net/VBA-Operators-And-Functions.html

Tuesday, May 15, 2012

split integer value from others character



  #!/usr/bin/perl

  use strict;


  my $data = '2323424: 2434324, 3455543543';
  my @ftr =();
  my @values = ();
 
   @values = split(/(\d+)/, $data);

  foreach my $val (0 ..  $#values) {

unless ( $values[$val] =~/^[0-9]+$/)
{
splice(@values, $val, 1);

}

  }

  print " @values\n";
  exit 0;

 

site weekly hits