Thursday, January 21, 2010

What's the Difference between C sharp ( C# ) and C++?( Diffrence between C++ and C sharp)


Definition of C# by Microsoft:

C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced C sharp) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.

C++ is a general-purpose programming language with high-level and low-level capabilities. It is a statically typed, free-form, multi-paradigm, usually compiled language supporting procedural programming, data abstraction, object-oriented programming, and generic programming.

C# was developed by Microsoft, and programs written on C sharp uses .Net framework to run. While compiled C++ code can run as a standalone executable as byte-code.
 
C# is a C++ that includes some Visual Basic and Java features. It simplifies the creation of GUI (Graphical User Interface) programs and windows-based menus (items that require more effort and expertise to create with the standard C++ programming).

C++ is the standard version of the language. It is platform independent (C++ programs will execute on Windows, Unix, Linux, and any other operating system) while C# programs are designed to execute only on Microsoft Windows operating system, as Visual Basic is a Windows-only product.

If you want to do programming on linux or Unix systems then C++ is a better choice while if you want to do the programming on entirely windows based systems then C# is the better choice as it takes advantage of the existing Windows APIs (Application Program Interface) so that you don't need to create Windows libraries from scratch.

C# can create console applications, Windows applications, and ASP.NET websites.

Reference: C-Sharp Corner: Difference between C#(C Sharp) and C++

Tuesday, January 19, 2010

If new command missing in Context menu

When you click the File menu in Windows Explorer or When you right-click the desktop, the New command may be missing from the context menu, or it may not be showing proper items then do following. But be careful that you don't end up changing key value incorrectly.

To resolve this issue, use Registry Editor to verify that the registry key listed below has the value listed, and if needed, edit the value to match the value listed.

Registry key:
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New\ (Default)
Value for (Default):
{D969A300-E7FF-11d0-A93B-00A0C90F2719} 
If registry entry doesn't appear then add the registry entry and (Default) value.

How to get "open command prompt" in context menu or right click

There are two ways to get open command prompt or open shell for any particular folder. When you click on a particular folder then you may want to get "open command prompt"  option in context menu for getting command prompt at that location to avoid doing C:\>cd <folder>.

First Method: (XP/VISTA/Windows 7)
  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK
  3. Goto the key under "\HKEY_CLASSES_ROOT\Folder" and right click on "shell" say "new->key" and name it as "Command_prompt" and give name for default key value as "Open Command Prompt ".


   4. Right click on Command_prompt and say "new->key" with name "command".
   5. Double click on name "default" for command sub key and give value as     C:\WINDOWS\system32\cmd.exe "%1"



Now you can see Open Command Prompt when you right click on any folder.


Another method for windows XP is
1. open My Computer -> Tools -> Folder Options
2. Goto "File Types" Tab
3. Select "Folder" Type
4. Click "Advanced"
5. New -> Action : "Open Command Prompt", application used  to perform Action: Browse : C:\WINDOWS\system32\cmd.exe




Press OK and you are done.

Monday, January 18, 2010

Tracking lost mobile

If u lose your mobile,

Got an interesting fact to share.. Nowadays each one of us carry Wi Fi
Mobile devices and always fear that it may be stolen.

Each mobile carries a unique IMEI i.e International Mobile Identity
No which can be used to track your mobile anywhere in the world.

This is how it works!!!!!!

1. Dial *#06# from your mobile.

2. Your mobile shows a unique 15 digit ( IMEI NO.)

3. Note down this no anywhere but except your mobile as this is the no which will help trace your mobile in case of a theft.

4. Once stolen you just have to mail this 15 digit IMEI no. to cop@vsnl.net

5. No need to go to police.

6. Your Mobile will be traced within next 24 hrs via a complex system of GPRS and internet.

7. You will find where your hand set is being operated even in case your no is being changed.

If u lost your mobile, send an e-mail to
cop@vsnl.net with the following info.
Your name:
Address:
Phone model:
Make:
Last used No.:
E-mail for communication:
Missed date:

IMEI No.:

Tuesday, January 5, 2010

Difference between VPN and VNC

VPN is called as Virtual Private Networking and VNC is called as Virtual Network Computing.



VPN is a software implementation that allows users to connect that are on large public networks(Internet), it actually provides a kind of tunnel between the parent network and your local network ( VPN provides secure, authenticated remote access to campus networks and services) while VNC is also a software which provides completely different functionality. It's used for controlling the desktop of a computer from another computer via the network connection. VNC and remote desktop are diffrent protocols which have same functionality. It allows you to share your desktop.

VPN is more advanced version of tunneling protocols. Hamachi is an example of VPN which requires zero configuration and is freeware. VPN is complete virtual networking solution. Suppose you have three different locality where you want to have access. You can buy routers, cables and make physical connections between localities or you can configure VPN and go through your ISP connections which won't need any routers.


VNC is helpful to access your desktop from some other computer or if need to access your files securely from other system. Remote Desktop is another famous application which replaces VNC, and these can be used by IT team to take control of your computer to change or fix any software issue. Some large IT companies use this as it is lot faster compared to taking system to IT workstation.
RealVNC, TightVNC, UltraVNC are some of the VNC available in market. RealVNC is created by RealVNC company which is founded by the same AT&T team which created the original VNC program

A disadvantage of using VNC is that it utilizes a lot of bandwidth because it constantly sends updates of how the screen appears. If you want to use VNC over internet then you need high spped internet connections at both ends. Also it will need to configure things properly including router and firewalls to have connection proper.

Having a functional VPN in place makes the whole process a lot easier as it removes the additional steps that needs to be taken in order to ensure that the connection is accepted as it should be and then VNC can be used over VPN.


VNC is often used on top of VPN to access another running computer or files on it. VPN is used to create a private network on top of a larger public network like internet while VNC allows a user to control another computer over Ethernet.

Friday, January 1, 2010

Download google language transliter: Google Input Method: Type anywhere in your language

Google Transliteration IME is an input method editor which allows users to enter text in one of the supported languages using a roman keyboard. Users can type a word the way it sounds using Latin characters and Google Transliteration IME will convert the word to its native script. This doesn't translate any word in native language. it just only types the word as per it's sound in that language.

Download Google language translator from this site for any language like Hindi, Arabic, Kannada etc..
http://www.google.com/ime/transliteration/

Just select the language and say download and then you can click the downloaded file to install it. Check following link for download instruction.
http://www.google.com/ime/transliteration/help.html#installation

Check following link for features and how to use it:
http://www.google.com/ime/transliteration/help.html#features