Tech blog to share information.

September 25, 2012

Visual Studio 2005 Tips and Tricks

September 25, 2012 Posted by tj cool , , , , No comments

For Fast Loading

Options-->Environment-->Start-up-->At Start up-->Select(Show Empty environment).
Options-->Windows Form Designer:General:Auto-populate-->False
Turn Off Animation
Options-->Environment-->Unchecked(Animate Environments Tool).
View Line numbers
Options-->Environment--->Select Text Editor-->Select the desired language(e.g: C#)-->display:check line numbers

Bored of editor look Want Cool Interface like this one :

Just Download the scheme from this site:Studio Styles -
Visual Studio color schemes
->then Goto Import and export Settings:-->Import Selected environment Settings-->Browse --->Select Scheme:Click Finish.

View hierarchy of HTML parent elements:

Tools->Option->HTML Designer->Display and selected the option for Show Details for non visible elements. This option also shows additional nonvisible elements(like DIV,span) in the designer.

Working in and want to Debug javascript :

simple write debugger where u want debug it .....

Increase your VS screen real estate by disabling HTML Navigation Bar
To-do this, just select the Tools->Options menu item within VS, navigate to the "Text Editor->HTML" node and uncheck the "Navigation Bar" checkbox option:

HTML Validation Checking in VS 2005 (and how to optionally turn it off if you want)
Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the options window, and uncheck the “Show Errors” checkbox:

and there are many more i will post it later .......

System Registry Important Tweaks

September 25, 2012 Posted by tj cool , , , , , , No comments
Windows Registry

The Windows Registry is a hierarchical database that stores configuration settings and options on Microsoft Windows operating systems. It contains settings for low-level operating system components as well as the applications running on the platform: the kernel, device drivers, services, SAM, user interface and third party applications all make use of the Registry. The registry also provides a means to access counters for profiling system performance

How to launch Registry?

Run -> regedit


Adds System Restore, Services, LogOff, Reboot, Shutdown, Device Manager, Control Panel and Add/Remove Programs to My Computer Right-Click Menu:
Windows Registry Editor Version 5.00

;Adds Control Panel to right click of MY Computer
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"

;Adds Add/Remove to right click of MY Computer
@="control appwiz.cpl"

;Adds Drive Cleanup to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Drive Cleanup\command]

;Adds Services to right click of MY Computer - may have been already posted but its in my list


;Adds System Restore to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\System Restore\command]

;Adds LogOff to right click of MY Computer. I add the [] to group these
@="shutdown -l -f -t 5"

;Adds Reboot to right click of MY Computer. I add the [] to group these
@="shutdown -r -f -t 5"

;Adds Shutdown to right click of MY Computer. I add the [] to group these
@="shutdown -s -f -t 5"


@="Registry Editor"


Windows Registry Editor Version 5.00



:Add 'Event Viewer' to the My Computer Right-Click Menu:

Windows Registry Editor Version 5.00

;Adds Add/Remove to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Event Viewer\command]
Add 'Cleanup Drives' to the My Computer Right-Click Menu:

Windows Registry Editor Version 5.00

;Adds Drive Cleanup to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Drive Cleanup\command]

Fix the Windows Search and treat all unknown extensions as text (.txt) files (Chris Sells)
Windows Registry Editor Version 5.00

Geolocator Application:Visitor Locator (Client) Side

September 25, 2012 Posted by tj cool , , , , , , No comments
Geolocation is the identification of the real-world geographic location of an object, such as a cell phone or an Internet-connected computer terminal. Here we strictly discussing abt internet and Ip addresses.Now days Ip address geocoding is very common or in simple way ip2location service.These services are very useful in many aspects like Geo (marketing),Fraud detection ,Censorship .and many more.
Now from here we will try to create a Visitor Locator Application.What will u need ?

1. Basic HTML knowledge
2. Offcourse internet connection
3. basic knowledge of java-script....

In later section we will discuss how to create same app with server side coding.....

First Step: Add Map & Script Referencs
After locating a visitor u need to show it on map.So what we need first a map where u can graphically show the position of IP address user. I prefer google map.As we dont have domain so what we will do?We will use the key of google,create HTML file and place following script in [B]head section.
Note :As we are looking for client side script so u can use this script

This is api key to get Google map.Place this below above script

So it will look like this :

Step 2:
Now we just put all references of scripts Now its time to create Google map.

Step 3:
load map on page load and show visitor location.To so Follwing code is used

Complete code:

Thats it .....
Your Visitor locator is this code in any website.As soon as visitor vist site he will be located in Google map.Want to know something more about visitor you can use following script also.