MY mENU


Sunday 22 July 2012

CD Writer is Not Fast Enough..?


Open My Computer, right-click the CD Drive icon, and then click Properties. Click the
Recording tab to display the settings. Under "Select a write Speed" Choose the "Fastest". If
still having a problem, then choose a speed like 18x or a medium speed. This will resolve
almost all the issues.

Saturday 21 July 2012

Enable/Disable CD Burning


If you choose to use a different CD burning program than the one supplied with Windows XP
this edit will disable the default burner. In most cases this isn't necessary even if you choose
an alternative burning program, but there are a few badly behaved burning programs out there
that insist on this modification.
Open the registry editor and navigate to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
.Create a new Dword with the Name "NoCDBurning". To enable give a value 0. A value of 1
disables Burning.Exit Registry and Reboot
To Enable/Disable CD Burning for the Local Machine navigate to following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ex
plorer. Create a new Dword with the Name "NoCDBurning". To enable give a value 0. A
value of 1 disables Burning. Exit Registry and Reboot.

Friday 20 July 2012

What are the major differences between C and C++?

C was the C++ predecessor. As it's name implies, a lot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept.


C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer.

Although it is possible to implement anything which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has a lot of liberty on how to actually implement the internals, and style among programmers will vary a lot on the design choices made.

In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++.

To finish this discussion, C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then).

NO option to send data to the CD-ROM drive…?


When you view the properties of the CD-R drive or CD-RW drive, you may notice that the
Recording tab is not displayed in the CD Drive Properties dialog box. To resolve this issue,
edit the Microsoft Windows registry to identify the CD-R drive or CD-RW drive as a
recordable drive. To do this, follow these steps.
1. Click Start, and then click Run.
2. In the Open box, type regedit, and then click OK.
3. Expand the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CD
Burning\Drives
4. On the File menu, click Export.
5. In the File name box, type backup of drives key, and then click Save.
6. In the left pane of the Registry Editor window, click the Volume{GUID} folder under
Drives, where GUID is a 32-character hexadecimal globally unique identifier. If you have
more than one CD-ROM drive in the computer, an additional Volume{GUID} folder is listed
for each drive.
7. In the right pane of the Registry Editor window, double-click Drive Type.
8. In the Value data box, type 1 or 2, depending on the drive type, and then click OK. The
drive type should be 1 if it is a CD-R and 2 if it is a CD-RW.
9. Quit Registry Editor.
10. Click Start, and then click My Computer.
11. Under Devices with Removable Storage, right-click the CD-R drive or CD-RW drive, and
then click Properties on the shortcut menu.
12. If the Recording tab is displayed, Windows recognizes the drive as a recordable device.
13. Click Cancel.
If you have more than one CD-ROM drive, DVD-ROM drive, or CD-RW drive in the
computer and the Recording tab is not displayed, an incorrect drive may have been
configured as "recordable" in the Windows registry. To troubleshoot this issue, follow these
steps:
Follow steps 1 through 9 to edit the Drive Type value of the Volume{GUID} folder whose
value you previously changed. In the Value data box, type 3, and then click OK. The drive
type value of 3 indicates that the drive is a standard CD-ROM and is not writable. In the left
pane of the Registry Editor window, click the next Volume{GUID} folder. Follow steps 7
and 8 to change the Value data entry to 1 or 2, depending on the drive type. Quit Registry
Editor, and then follow steps 10 through 12 to confirm that the Recording tab is displayed in
the properties dialog box of the CD-R drive or CD-RW drive

What is a container class? What are the different types of container classes?

A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined behavior and a well-known interface. A container class is a supporting class whose purpose is to hide the

topology used for maintaining the list of objects in memory. When a container class contains a group of mixed objects, the container is called a heterogeneous container; when the container is holding a group of objects that are all the same, the container is called a homogeneous
container.

Thursday 19 July 2012

Abstract class, Static class, Final

What is an abstract class?
A: Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.
A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.

What is static in java?
A: Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.
What is final?
A: A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).

Which is the quickest sorting method?

The answer depends on what you mean by quickest. For most sorting problems, it just doesn't matter how quick the sort is because it is done infrequently or other operations take significantly more time anyway. Even in cases in which sorting speed is of the essence, there is no one answer. It depends on not only the size and nature of the data, but also the likely order. No algorithm is best in all cases.
There are three sorting methods in this author.s .toolbox. that are all very fast and that are useful in different situations. Those methods are quick sort, merge sort, and radix sort.

The Quick Sort
The quick sort algorithm is of the .divide and conquer. type. That means it works by reducing a sorting problem into several easier sorting problems and solving each of them. A .dividing. value is chosen from the input data, and the data is partitioned into three sets: elements that belong before the dividing value, the value itself, and elements that come after the dividing value. The partitioning is performed by exchanging elements that are in the first set but belong in the third with elements that are in the third set but belong in the first Elements that are equal to the dividing element can be put in any of the three sets.the algorithm will still work properly.

The Merge Sort
The merge sort is a .divide and conquer. sort as well. It works by considering the data to be sorted as a sequence of already-sorted lists (in the worst case, each list is one element long). Adjacent sorted lists are merged into larger sorted lists until there is a single sorted list containing all the elements. The merge sort is good at sorting lists and other data structures that are not in arrays, and it can be used to sort things that don.t fit into memory. It also can be implemented as a stable sort.

The Radix Sort
The radix sort takes a list of integers and puts each element on a smaller list, depending on the value of its least significant byte. Then the small lists are concatenated, and the process is repeated for each more significant byte until the list is sorted. The radix sort is simpler to implement on fixed-length data such as ints.

Disable CD Auto Run


Start regedit and navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
\Services\Cdrom. Now Create a new registry key of type Dword and name it AutoRun. If the
key is already there, just set the value to 0 in order to disable AutoRun. To enable it, change
the value to 1. Once it is done, Exit Registry and Reboot.

Wednesday 18 July 2012

Activate/De-activate Intelligent menu


When the Intelligent Menu is activated in Internet Explorer, a message pops up that states it
can be turned of using the Internet Options, but while using the Classic Windows mode, that
option is unavailable.
Create the following keys if necessary. Most probably the keys will be found in those locations.
For Internet Explorer's Favorites folder:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
change: "FavIntelliMenus"="yes"
to
"FavIntelliMenus"="no"
For the Start Menu, and sub-menus:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
change:
"IntelliMenus"=dword:00000001
to "IntelliMenus"=dword:00000000

What is a preprocessor and what will it do for a program?

The preprocessor is used to modify your program according to the preprocessor directives in your source code. Preprocessor directives (such as #define) give the preprocessor specific instructions on how to modify your source code. The preprocessor reads in all of your include files and the source code you are compiling and creates a preprocessed version of your source code. This preprocessed version has all of its macros and constant symbols replaced by their corresponding code and value assignments. If your source code contains any conditional preprocessor directives (such as #if), the preprocessor evaluates the condition and modifies your source code accordingly.

The C preprocessor is used to modify your program according to the preprocessor directives in your source code. A preprocessor directive is a statement (such as #define) that gives the preprocessor specific instructions on how to modify your source code. The preprocessor is invoked as the first part of your compiler program.s compilation step. It is usually hidden from the programmer because it is run automatically by the compiler.

Tuesday 17 July 2012

Activate “ClearType” for Better Display


Microsoft states, “With Windows XP, ClearType delivers improved font display resolution
over traditional anti-aliasing. It improves readability on color LCD monitors with a digital
interface, such as those in laptops and high-quality flat desktop displays. Readability on CRT
screens can also be somewhat improved.
Open the Registry Editor and navigate to the following registry key:
HKEY_USERS/.DEFAULT/ControlPanel/Desktop. Right Click on the right window pane
and create a string value with the name FontSmoothing and set a value to 2.Once again right
click and this time create a Dword with the name FontSmoothingType. Set the value to 2.
Exit Registry and Reboot. This will enable the ClearType for all users on the computer.

Monday 16 July 2012

Don’t want the “Open With” Option..?


Each application's subkey in HKEY_CLASSES_ROOT\Applications controls whether that
particular application will show up on the dialog box. If you want to ban a particular program
from the Open With dialog box, look for the application's subkey underneath
HKEY_CLASSES_ROOT\Applications, add a String value named NoOpenWith, and leave
the value blank. There will be no more “Open With” menu for that item.

Sunday 15 July 2012

Remove Menu Items from Explorer


Explorer's menus can get messy at times. But you can use a Registry hack to clean it up a bit
by removing some items from the Tools menu. Map Network Drive, Disconnect Network
Drive etc can be stopped from displaying. Run the Registry Editor and go to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Create the following DWORD entry and set the values correspondingly. If the values are
already there, then just check the values:
NoNetConnectDisconnect. 1
NoAutoUpdate 1
NoNetHood 1
NoOnlinePrintsWizard 1
NoPublishingWizard 1
NoWebServices 1
NoWelcomeScreen 1
NoInternetOpenWith 1
NoWindowsUpdate 1
Restart your computer and see the explorer window with changes. Happy??

Banning Programs from “Most Frequently Used” list


Take a look at this for it is very interesting. If any of the following words or phrases is

included in the program's shortcut name, the program will be excluded from the list:
Documentation, Help, Install, More Info, Readme, Read me, Read First, Setup, Support, and
What's New. Additionally, the following executables are excluded from the list: Setup.exe,
Install.exe, Isuninst.exe, Unwise.exe, Unwise32.exe, St5unst.exe, Rundll32.exe,
Explorer.exe, Icwconn1.exe, Inoculan.exe, Mobsync.exe, Navwnt.exe, Realmon.exe, and
Sndvol32.exe.
Run the Registry Editor and go to HKEY_CLASSES_ROOT\Applications. Underneath this
key, you'll find a series of subkeys, each representing an application. The primary purpose of
these su-keys is to determine whether the program appears on the Open With dialog box that
appears whenever you try to open an unknown file type. But you can also add a value to any
of the subkeys which will ban programs from appearing on the Most Frequently Used
Programs List.
Look for a subkey that is the executable name of the application you want to ban from the
list; for example, visio.exe for the Visio business illustration program. Once you find the
application's subkey, create a new String value for that subkey, named NoStartPage. Leave
the value blank. Exit the Registry. You might have to reboot for the setting to take effect and
the program to be banned from the list.
Change the Number of Programs That Appear on the List
By default, the Most Frequently Used Programs List has room for six programs, but you can
change that default and have more or fewer programs appear. Right-click the Start button and
choose Properties. Then choose the tab “Start Menu”. Under this tab, choose Start Menu
Customize General. To customize the number of programs to include on the list, edit the
"Number of programs on Start menu" box. You can choose any number between 0 and 30.