Monday, July 23, 2012

Introduction to SVN

SVN is an open source version control system that is broadly used by many organizations for its project history. It is free to use and manage source code different versions. You can find below two types of svn.
Ankh SVN is a open source subversion Source control for Visual Studio for managing your's code different versions like VSS and TFS.
Tortoise SVN is also a open source subversion Source control for managing your's source code versions. Your source code could be in any language and could support window or unix or apache platform
It has the following listed features:-
  1. SVN tracks the structure of all folders present in your project.
  2. It assigns a global revision number to your source code repository that is used to manage your source code history.
  3. SVN commits and updates are atomic.
  4. SVN maintains the revision history of moved or copied files.
  5. SVN can be installed on Window, Unix and Apache platform.
  6. SVN Client and SVN Server are used to manage source code versions. SVN Server version is installed on Server and SVN Client version is installed on Client side.
You can go to this link for installing and managing Ankh SVN on your computer.
You can go to this link for installing and managing Tortoise SVN on your computer.

Example to get file size before upload using JQuery

Example to get file size before upload using JQuery

 <html xmlns="http://www.w3.org/1999/xhtml">

<head>

 <title>Get File Size</title> 

 <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript" > </script>

 <script type="text/javascript">

 function GetFileSize(fileid) {

 try {

 var fileSize = 0;

 //for IE

 if ($.browser.msie) {

 //before making an object of ActiveXObject, 

 //please make sure ActiveX is enabled in your IE browser

 var objFSO = new ActiveXObject("Scripting.FileSystemObject"); var filePath = $("#" + fileid)[0].value;

 var objFile = objFSO.getFile(filePath);

 var fileSize = objFile.size; //size in kb

 fileSize = fileSize / 1048576; //size in mb 

 }

 //for FF, Safari, Opeara and Others

 else {

 fileSize = $("#" + fileid)[0].files[0].size //size in kb

 fileSize = fileSize / 1048576; //size in mb 

 }

 alert("Uploaded File Size is" + fileSize + "MB");

 }

 catch (e) {

 alert("Error is :" + e);

 }

}

 </script>

</head>

<body>

<form name="upload" action="">

<input type="file" name="fUpload" id="fUpload" />

<input type="button" value="Get File Size" onclick="GetFileSize('fUpload');" />

</form>

</body>

</html> 

Example to get file size before upload in Asp.Net using JQuery

Using above defined function "GetFileSize", we can also get file size in Asp.net also like as :
 <form id="form1" runat="server"> 

<asp:FileUpload ID="fUpload" runat="server" />

 <asp:Button ID="btnGetSize" runat="server" Text="Button" OnClientClick="GetFileSize('fUpload');" /> 

</form> 

Wednesday, July 18, 2012

What is IT ? IT is JUGAAD.

I am always a student and I enjoy being Student. I want to learn almost everything about Computer Science that exists. So I keep trying at home, office, even while I sleep. Since two yr of job My senior is a Web developer . He is one of the Extremely talented Developers I have ever met. IT is short form of Information Technology and Related to Computer and Digital world. Everything inside Digital world can be taken inside IT. According to him what i understand most is that IT is jugaad (Trick/hacks) to solve the different problem by different ways.

How to Access My Windows 7 Laptop without Admin Password

It's a good habit to set a password on your computer so that people can not enter windows without knowing your password. But if you forgot Windows 7 password, you'll also be prevented from logging in. How to reset Windows 7 password if you forgot Windows password and can't log on using any administrator account?
In this article I'll cover the most two popular and efficient Windows 7 password recovery programs for you to reset Windows 7 login password, even if you can't get into Windows system. Let's know how can we achieve it.
1. Ophcrack
The Ophcrack is a free Windows password cracker based on rainbow tables. It is a very efficient implementation of rainbow tables done by the inventors of the method. It comes with a Graphical User Interface and runs on multiple platforms. By far, it is the most popular free way for password recovery on Windows 7.
With Ophcrack, you don't need any access to Windows system to be able to recover your lost passwords. Simply visit the site, download the free ISO image, burn it to a CD and boot from the CD. The Ophcrack program starts, locates the Windows user accounts, and proceeds to recover (crack) the passwords.
Before trying it, the following 2 things you should learn about the free Windows password hack:
1. 496MB (7/Vista) / 415MB (XP) LiveCD ISO image will take you much time for download.
2. Passwords greater than 14 characters cannot be cracked.
If this free Windows password cracker doesn't work for you, a good alternative option is to get Windows Password Unlocker.
2. Window Password Unlocker
Windows Password Unlocker is a professional Windows password reset tool. When Windows forgot password, this powerful utility allows you to remove the forgotten password by burning a bootable password reset USB, instead of recovering it.
Requirements:
1. A blank CD/DVD and CD-ROM¡ÀRW drive are required
2. Download and install this software in a Windows PC rather than a Mac.
Steps:
1. Download and install Windows Password Unlocker
2. Burn a password reset disk with a bootable CD/DVD
3. Reset Windows password with created CD/DVD reset disk
After the password reset success, you can access your computer without entering a password. The whole password reset process is in 5 minutes, and has no damage to your computer. Windows Password Unlocker enjoys great popularity among forgotten Windows password users. Through this powerful application, you can easily reset a forgotten laptop administrator password in 5 minutes instead of recovering it in hours by Ophcrack.

Friday, July 13, 2012

Url Rewritting in 2.0

 urlMappings redirect URLs to new locations. This element is part of an ASP.NET config file. It quickly redirects Googlebot and users alike to the new locations. It is easily added to Web.config to perform this complex task.


Now in the web config file you can put below code in between <system.web> and</system.web>


<urlMappings enabled="true" >
 <!--url which you want mappedURL = transfered url location -->
 <add mappedUrl="~/Detail.aspx?id=1" url="~/one.aspx"/>
 <add mappedUrl="~/Detail.aspx?id=2" url="~/two.aspx"/>
  <add mappedUrl="~/Detail.aspx?id=3" url="~/three.aspx"/>
  <add mappedUrl="~/Detail.aspx?id=4" url="~/four.aspx"/>
  </urlMappings>



mappedurl=  mapping applied on this url


Url=which is not available but stilll you made it to appear.