Friday, November 20, 2015

WebGL


WebGL (Web Graphics Library) is a JavaScript API for rendering interactive 3D computer graphics and 2D graphics within any compatible web browser without the use of plug-ins.WebGL is integrated completely into all the web standards of the browser allowing GPU accelerated usage of physics and image processing and effects as part of the web page canvas.

WebGL elements can be mixed with other HTML elements and composited with other parts of the page or page background.[3] WebGL programs consist of control code written in JavaScript and shader code that is executed on a computer's Graphics Processing Unit (GPU). WebGL is designed and maintained by the non-profit Khronos Group.Learn more...
From wiki 



WebGL Tutorials

Sunday, November 15, 2015

C# Validation Codes

Email Validation Code

private void button1_Click(object sender, EventArgs e)
        {
            String ID = txtID.Text;

            if ((ID.Count(char.IsDigit) == 9) && (ID.EndsWith("X") || ID.EndsWith("V")) && (ID[2] != '4' && ID[2] != '9'))
            {
                MessageBox.Show("Valid ID");
            }
            else
            {
                MessageBox.Show("Invalid ID");
            }
      }

NIC Validation Code

private void button1_Click(object sender, EventArgs e)
{
string pattern = null;pattern = "^([0-9a-zA-Z]([-\\.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$";

            if (Regex.IsMatch(txtEmail.Text, pattern))
            {
                MessageBox.Show("Valid Email address ");
            }
            else
            {
                MessageBox.Show("Not a valid Email address ");
            }
}