RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • About
  •  

    Show AM/PM For Clock in System Tray (Windows 7)

    March 25th, 2010

    When I started using Windows 7, I felt missing a few features which I used to enjoy in the previous versions of MS Windows. One among them was that I couldn’t make the system tray clock display the 12 hour format and it continued until I found the following trick.

    How to do it

    1. Open Region and Language settings in Windows 7 (You can invoke it by the command intl.cpl typed in the Run or Start Menu Search box).
    2. Click the button Additional Settings.
    3. Go to the Time tab.
    4. Change the Long Time format to HH:mm:ss tt (That is, append a tt).
    5. Now the AM/PM will be added to the time in system tray, on pressing Apply. However, the time will be still in 24 hour format.
    6. To change it to 12 hour format, change the HH to hh (That is, hh:mm:ss tt).


    God Mode In Windows 7

    March 24th, 2010

    The hidden “God Mode” in Windows 7 allows the users to collect the entire controls panels in a single folder. A variety of utilities ranging from modifying mouse pointer to partitioning hard drives and setting up network can be found in a single folder.

    How to do it

    1. Make a new folder in Windows 7
    2. Rename it to GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

    The folder will have a name GodMode with the icon of control panel. It is the place you will find all the above utilities.


    Operators which can not be overloaded in C++

    February 20th, 2010

    Any operator which operates on value(s) can be overloaded.

    For example,

    
    c = a + b;
    

    As the operator + operates on two values, it can be easily overloaded.

    Now look at the unary operator *. It operates on the variable name, not on the value.

    
    b = *a;
    

    where a is not a value, but a name.

    Similarly the following operators can not be overloaded.

    sizeof - The operator to find the size of a variable in memory

    ? -The ternary operator

    :: – The scope resolution operator

    . – The operator to access class members

    -> – The operator to access class members from a class pointer type variable

    * – The indirection operator