please leave a comment so that i know what not to write about

Pages

Tuesday, July 20, 2010

Performance Monitor(perfmon.exe) must for window developers

Recently I attended Microsoft Community Tech Days at New Delhi. The last session of the event was taken by Bijoy who is presently working with Microsoft. The session was about .NET tips and tricks. The session was extremely informative and really forced all the developers that were present in that auditorium to actually think about the process we take for measuring the resources and also the process we use for debugging an application. He laid stress on many tools one of which was performance monitor (Perfmon).
Perfmon is supplied by the Microsoft with the operating system and there is no need for us to install anything to use it. It can actually capture live data about the performance of our system. A newly installed software or monitor the changes that take place in the registry during a particular time period.
A lot of detailed information is present at TechNet. But there were no videos for the starters so here is one giving Detailed description about how to get started.
part1 -


part2 -

If you get stuck up somewhere mail me @
parv0888@student-partners.com

Tuesday, July 13, 2010

MSP selections are ON - India

For those who don't know what MSP stands for MSP stands for Microsoft Student Partner. This student partner program is run by Microsoft to choose among many a few who are enthusiastic about technology and Microsoft. students from all over the globe are selected for this program. students who are selected are equipped with the task of informing others about the Microsoft technologies and products like the VS 2010:) and Silverlight etc etc. for this they may conduct sessions or hands on labs. in return MSPs get a lot. the best thing being the MSDN premium account :)
The good news is that now you can apply to be an MSP. All you need to do is go to the student-partners web site and click on the apply now box.
Though the selection process changes every time. The process will test your technological and public speaking skills and a technology related blog is always preferred. last time they asked us to upload a 3 min video about any MS technology. and then after that they asked us to collect 150 points by conducting various activities. last date to apply is 15th aug 2010.
details about creating student tech clubs is available here
BEST OF LUCK GUYS.

mail me if you get stuck some where
parv0888@student-partners.com

Monday, July 5, 2010

bootable USB drive

What makes a USB drive bootable?

When I was searching for the process of making my pendrive bootable. I came across many processes and software’s that could do it but none of the sources told me what is the science behind this. Why my pen drive is bootable after the process and was not before. So I decided to write an article of my own for this.
This is also my first post. So please do comment what you dislike and also like about the post and also if you need any help.
The process of making a pendrive bootable and to use it with window 7 and other window operating systems the process that was described by the sources was
1. Open command prompt(cmd) with administrator privileges
2. Type DISKPART
3. Type LIST DISK
4. Then assuming your USB disk is DISK1. Type SELECT DISK 1
5. Type CLEAN
6. Type CREATE PARTITION PRIMARY
7. Type SELECT PARTITION 1
8. Type ACTIVE
9. Type FORMAT FS = NTFS
10. Type ASSIGN
11. Type EXIT
12. Insert window installation disk
13. In the command prompt window type D: CD BOOT(assuming your cd/dvd drive is labelled D)
14. Type BOOTSECT.EXE /NT60 H: (assuming your USB drive is labelled H)
15. Copy all the contents of the windows installation disk into the USB drive
Let’s start with

DISKPART
DISKPART enables a superset of the actions that are supported by the Disk Management snap-in. The Disk Management snap-in prohibits you from inadvertently performing actions that may result in data loss. It is recommended that you use the DISKPART utility cautiously because DISKPART enables explicit control of partitions and volumes.
DISKPART can perform various functions like
1. converting a basic disk to dynamic disk
2. converting a dynamic disk to basic disk
3. DISKPART can create a partition at an explicit disk offset
4. DISKPART can be used to delete missing dynamic disks
DISKPART commands operate on a specific target disk, partition, or volume. The targeted object has "focus." Focus simplifies the common configuration task in which you create multiple partitions on the same disk. An object is put into focus by the select command. All Commands except for list, help, rem, exit, or help require focus.

LIST DISK
LIST DISK is a command in the bigger DISKPART utility. LIST DISK is used to retrieve a summary of information about each disk in the computer. Only fixed disks (for example, integrated device electronics [IDE] or small computer system interface [SCSI]) or removable disk (for example, 1394 or USB) are listed. The removable drives are not displayed. The disk with the * asterisk has current focus.

SELECT DISK
Select disk command is used to select a particular disk out of the list that was presented by the LIST DISK command.
SELECT DISK[= n]

CLEAN
CLEAN command is used to delete all the partitions from the current in focus disk. Now because the partition information in the most used partition resides in the first sector of the disk clean command deletes that information by zeroing it and thereby deletes all the partition information from the drive.
CLEAN ALL command zeroes all the sectors on the drive in focus thereby deleting all the data.

CREATE PARTITION PRIMARY
This command creates a primary partition in the disk in focus.
A primary partition contains one file system. In MS-DOS and earlier versions of Microsoft Windows systems, the first partition (C:) must be a primary partition. Some operating systems are not limited in this way; however, this can depend on other factors, such as a PC's BIOS.
The partition type code for a primary partition can either correspond to a file system contained within (e.g. 0x07 means either an NTFS or an OS/2 HPFS file system) or indicate the partition has a special use (e.g. code 0x82 usually indicates a Linux swap partition). The FAT16 and FAT32 file systems have made use of quite a number of partition type codes over time due to the limits of various DOS and Windows OS versions. Though a Linux operating system may recognize a number of different file systems (ext2, ext3, ReiserFS, etc.), they have all consistently used the same partition type code: 0x83 (Linux native file system).

SELECT PARTITION 1
This command selects the first partition from the drive in focus. Because earlier we deleted all the partition and then we made a brand new partition on the drive this partition will be the one that we created recently.

ACTIVE
This command tell the firmware that this particular partition of the drive is ‘active’ or bootable

FORMAT FS = NTFS
As the name suggests this command formats the drive in focus and deletes all the data in the drive plus changes the file system to NTFS. This is needed to make the drive bootable. NTFS as it is has many advantages over fat formats like quota and security.

ASSIGN
This command is used to assign a drive letter or the mount point to the partition in focus. If no drive letter is mentioned as in our case the next free drive letter is assigned to the partition.

EXIT
This obviously exits the Diskpart utility.

BOOTSECT
Bootsect.exe updates the master boot code for hard disk partitions to switch between BOOTMGR and NTLDR. You can use this tool to restore the boot sector on your computer. This tool replaces FixFAT and FixNTFS.
Bootmgr is used in window vista and window 7 only and NTLDR was used in window xp and earlier versions to load the operating system while booting.
Bootsect can also solve your problem of dual boot when 2 operating systems are used one that uses NTLDR and other that uses BOOTMGR.
There was an error in this gadget