Get MicroSoft Free Softwares in India(For College Students)

Hi All get started with MicroSoft designer and developer products through Microsoft DreamSpark™ free Softwares.

Microsoft DreamSpark™ is a program that provides no-cost access to Microsoft designer and development tools,so to get a head start in your career.

Microsoft DreamSpark™ provides two ways to get the softwares.

Through Online

Step 1 : Go to http://www.dreamspark.com/

Step 2 : Sign In with your Windows Live ID.

Step 3 : Get verified as a student.

Step 4 : Download your products.

Through Offline

Step 1 : Visit any of thier partner locations(like NIIT,Aptech training institute)

Step 2 : Show your college identity card to collect your DVD containing the software.

Step 3 : Go to the link ‘Get Verified’ in DreamSpark website and enter the 25 digit verification key mentioned on the DVD.

Step 4 : Sign In with your Windows Live ID.

Step 5 : Download the relevant License Keys from the world wide DreamSpark website.

Microsoft DreamSpark is now available to university students across India. Microsoft DreamSpark is planning to expanded to include high school students by early 2009.

Popularity: 1% [?]

Create a Stored Procedure within a Stored Procedure

When you want to create a stored procedure dynamically,we can create a stored procedure within a stored procedure.

CREATE PROC procCreateProcedure
(
@spname NVARCHAR(100)
)
AS
BEGIN
DECLARE @ProcedureName NVARCHAR(100)
DECLARE @Exe VARCHAR(8000)

/*setting the stored procedure name with spname passed*/

SET @ProcedureName = @spname

/*setting the stored procedure name with spname passed*/

/*Nothing will be done if procedure name is empty*/
IF LTRIM(RTRIM(@ProcedureName)) = ”
BEGIN
RETURN
END
/*Nothing will be done if procedure name is empty*/

/*Creating the stored procedure*/

SET @Exe = ‘CREATE PROC ‘ + @ProcedureName + CHAR(13) +

‘AS’ + CHAR(13) + CHAR(13) +

‘BEGIN’ + CHAR(13) +

‘SELECT * FROM EMPLOYEE’+ CHAR(13) +

‘END’

/*Creating the stored procedure*/

/*Executing the created stored procedure*/
EXEC(@Exe)
/*Executing the created stored procedure*/

END

/*Executing procCreateProcedure to creat new stored procedure*/
EXEC procCreateProcedure ‘procTest’
/*Executing procCreateProcedure to creat new stored procedure*/

now execute and see the stored procedure by name you passed.

EXEC procTest

Here in this example a new stored procedure with name ‘procTest’ which is passed in ‘procCreateProcedure’ is created and employee table is fectched when ‘procTest’ stored procedure is executed.

Popularity: 1% [?]

Accessing Private Variable

Reflection in java:
Reflection is the mechanism by which Java exposes the features of a class during runtime, allowing Java programs to enumerate and access a class’ methods, fields, and constructors as objects. In other words, there are object based mirrors which reflect the Java object model, and you can use these objects to access an object’s features using runtime API constructs instead of compile time language constructs.

Each object instance has a getClass() method, inherited from java.lang.Object, which returns an object with the runtime representation of that object’s class; this object is an instance of the java.lang.Class.This object in turn has methods which return the fields, methods, constructors, superclass, and other properties of that class.

You can use these reflection objects to access fields, invoke methods, or instantiate instances, all without having compile time dependencies on those features. The Java runtime provides the corresponding classes for reflection. Most of the Java classes which support reflection are in the java.lang.reflect package.

Accessing Private Features with Reflection:
All features of a class can be obtained via Reflection, including Access to private methods & variables.Setting the Accessible flag in a reflected object of java.lang.reflect.AccessibleObject class allows us to read/modify a private variable that we normally wouldn’t have permission to. However, the access check can only be supressed if approved by installed SecurityManager.
The Classes java.lang.reflect.Field, java.lang.reflect.Method and java.lang.reflect.Constructor can inherit this behavior from java.lang.reflect.AccessibleObject class. The following example demonstrates read/modify access to a private variable which is normally inaccessible.

SimpleKeyPair.java

package com;

public class SimpleKeyPair {

private String privateKey = “Welcome SimpleKeyPair “; // private field

}

PrivateMemberAccessTest.java

package com;

import java.lang.reflect.Field;

public class PrivateMemberAccessTest {

public static void main(String[] args) throws Exception {

SimpleKeyPair keyPair = new SimpleKeyPair();

Class c = keyPair.getClass();

// get the reflected object

Field field = c.getDeclaredField(”privateKey”);

// set accessible true

field.setAccessible(true);

System.out.println(”Value of privateKey: ” + field.get(keyPair));

/* prints “Welcome SimpleKeyPair */

// modify the member varaible

field.set(keyPair, “Welcome PrivateMemberAccessTest”);

System.out.println(”Value of privateKey: ” + field.get(keyPair));

/* prints “PrivateMemberAccessTest” */

}

}

Output

=====

Value of privateKey: Welcome SimpleKeyPair

Value of privateKey: PrivateMemberAccessTest

Popularity: 11% [?]

JavaScript to Validate Email Format

To validate the email format,  check the textbox value across the regular expression value. The javascript code and corresponding html code are:

Script :

var efmt=/^\w+((-\w+)(\.\w+))*\@[A-Za-z0-9]+((\.-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;  
 
function checkEmailFormat(field,msg)
{
  var ctrl=document.getElementById(field);
  if((!efmt.test(ctrl.value)) && ctrl.value!=)
  {
    alert(msg);
    ctrl.focus();
  }
}

Add the following code into the Body tag.
Html Code :

<input type=”Text” onblur=”checkEmailFormat(’Txtemail’,'Please enter a valid email address, like sample@yahoo.com’);” id=”Txtemail” >; 

Demo Link

Popularity: 5% [?]

What is "CLR(Common Language Runtime)"

Common language runtime is a .NET Framework run-time environment which manages the execution of programs written in any of several supported languages. Microsoft refers to its Common Language Runtime as a “managed execution environment.

Programmers writing in any of Visual Basic, Visual C++,or C# compile their programs into an intermediate form of code called Common Intermediate Language (CIL) in a portable execution (PE) file that can then be managed and executed by the Common Language Runtime.

The CLR’s just-in-time compiler (JIT compiler) converts the CIL code into code native to the operating system.The virtual machine aspect of the CLR allows programmers to ignore many details of the specific CPU that will execute the program.

The CLR also provides other important services,such as Memory management,Thread management,Exception handling,Garbage collection,Security.

Popularity: 1% [?]

Compare two ArrayList in JSP

Compare two ArrayList:

1.ArrayList are ListOfData and SecondList

2.Include this tag in the JSP Page

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

3.Find the Length of the ArrayList Using fn:length tag

4.Compare the ArrayList as

<c:if test=”${not empty ListOfData}” >
<c:forEach var=”j” begin=”0″ end=”${fn:length(SecondList)-1}”>
<c:forEach var=”i” begin=”0″ end=”${fn:length(ListOfData)-1}”>

<tr>
<c:if test=”${SecondList[j].empid==ListOfData[i].empid}”>
<td>${ListOfData[i].empid} </td>
<td>${ListOfData[i].empname} </td>
<td>${ListOfData[i].empdest} </td>
</c:if>
</tr>
</c:forEach>
</c:forEach>
</c:if>

Popularity: 2% [?]

Norton Anti Virus 2009:

Norton Anti Virus 2009:

Norton Anti Virus 2009 is a new Virus today which already had many attacks of the System.Virus enters when one is Downloading Norton Anti Virus 2009.It cause in hanging of the System.It Keeps alert messages popping up every 5-10 minutes.If you connect system to the internet,it will automatically ask whether to download Norton antivirus 2009 or not.

Popularity: 1% [?]

What is PACS ?

PACS (Picture Archiving and Communication Systems) are computers or networks used for storing, retrieving, distributing and presenting of medical images (in DICOM format). Full PACS handle Dicom images from multiple modalities (like CT, MRI, US, PET…), where as Mini-PACS handle Dicom images from specific modalities. It replaces hard copy film archives and enables radiologist access remotely the patient images. It also interfaces with the HIS (Hospital Information System) and RIS (Radiologist Information System).

Popularity: 1% [?]

What is Tracing?

Tracing is a refined process for outputting page-level information.When tracing is enabled you automatically get information on the ASP.NET Web page. Information like:

Request Details – Session Id; Request time, type, and encoding; status code, etc.
Trace Information – Page-level ASP.NET messages that you specify via Trace.Write and Trace.Warn.
Control Tree – A listing of the Web controls on theASP.NET Web page,and how they relate to one another.
Cookies Collection – A listing of all of the cookies.
Headers Collection
– A listing of all of the HTTP headers.
Server Variables – A listing of all of the server variables.

Trace statements are processed and displayed only when tracing is enabled. You can control whether tracing is displayed to a page, to the trace viewer, or both.

Popularity: 1% [?]

How to Embed a Flash File into C# Window Form?

To embed a flash file in C# Windows .Net Application we can use Shockwave Flash Object ActiveX Control.

Follow the Steps to embed flash file:

Step 1: In Tool box right click and select the menu “Choose Items”.

Step 2: From Choose Toolbox Items window select “Com component” tab.

Step 3: Scroll down and make sure “Shockwave Flash Object” is ticked and click ok. The Shockwave Flash Object will now appear in the toolbox.

Step 4: Simply click and drag the Shockwave Flash Object to window Form.

Step 5: Add the Code “Form Load”.

axShockwaveFlash1.LoadMovie(0, Application.StartupPath + “flash.swf”);

These steps embed the flash file and loads “flash.swf” in the application path when window loads.

Popularity: 10% [?]

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars