JavaScript Email Validation

12 Mar

This function validates email address format.
Function returns true if format is valid and false if format is invalid.

function validate(address /* as string */) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   if(reg.test(address) == false) {
      return false;
   }
      return true;
}

The Best AdSense WordPress Plugin for Me

7 Mar

After several hours of search I finally found an appropriate AdSense plugin for WordPress.
Plugin’s name is “Slayer’s Ad Integration” and you can download it from here.
Plugin is simple to install and setup.
Most important thing is to do what we need and that is to display AdSense within each article.

Currency converter (cConverter) v1.3

6 Mar

cConverter v1.3

Currency Converter is a tool designed to help you convert currency by the daily exchange rate.

The application make it posible to convert in 35 different currencies.
Currency Converter v1.3 is also easy-to-use, reliable and free.

Download :
Currency converter v1.3

Requirements:
Java or
Java Runtime Environment

Fill ComboBox from ArrayList in VB.Net

6 Mar

'Dim data as ArrayList = new ArrayList
' data is 2d arraylist
' cmbMain is ComboBox

Dim choices = New Dictionary(Of String, String)()

For i As Integer = 0 To data.Count - 1
choices(data.Item(i).Item(0)) = data.Item(i).Item(1)
Next

cmbMain.DataSource = New BindingSource(choices, Nothing)
cmbMain.DisplayMember = "Value"
cmbMain.ValueMember = "Key"

Arabic to Roman Numerals in JAVA

5 Mar

This function will execute the conversion of Arabic number into Roman number.

public static String ArabicToRoman(int aNumber){

if(aNumber < 1 || aNumber > 3999){
return "-1";
}

int[] aArray = {1000,900,500,400,100,90,50,40,10,9,5,4,1};
String[] rArray = {"M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"};
String rNumber = "";

for(int i=0; i= aArray[i]){
rNumber += rArray[i];
aNumber -= aArray[i];
}
}

return rNumber;
}
Page 2 of 212