Yesterday my Windows 8 messed up after I installed AMD CodeAnalyst. I was left with a computer that took ~5 minutes to boot as compared to 18 seconds. First thing that came to mind was Refresh the system, which worked great but I lost all my installed applications as I never had any custom refresh image. Also one of the applications that I wanted is not currently supported to be installed on Windows 8 but works if I upgrade, with refresh that was gone. And I ended up redoing the installation. You can imagine I had fun time installing Windows 7 and then my applications and then upgrading to Windows 8. This was all night job.
All of this would have avoided if I had created my custom Refresh Image, as I learnt from Mr. Sinofsky Windows 8 has built-in options to Refresh and Reset your computer without much geekiness.
These options are quite useful when your PC is all messed up and you want to go back to sane state. Refresh will just redo the installation while keeping all of you data files but will remove all the applications and apps, while Reset is brand new installation.
Now most of us would rather Refresh rather than Reset our PC, but the few would like a pristine environment and would Reset.
I won’t duplicate what others have already said and done, but would rather point to links that can provide more detailed information on this:
- Windows 8 Blog by Sinofsky – Refresh and Reset your PC
- Creating a Custom Refresh Image – HowToGeek
I was looking for a unique identifier for some work, and UUID (Universally Unique Identifier) comes to mind right away. What makes UUID so special is that practically (not guaranteed ) they will be unique. This link talks about various ways a UUID can be generated.
Now for most of us, we want to generate UUIDs to work along with admiring it’s rich history. UUID (GUID has more inclination towards MS) can be generated using various ways:
- On Internet, obviously using websites
For Internet sites you can search and find various sources. I am going to concentrate on generating the same Interactively and Programmatically.
UIDs can be generated from CLI by starting command prompt from Visual Studio (Tools – VS Command Prompt) and run uuidgen utility. This will dump a guid/uuid for you. Command line switches for uuidgen can be found here.
If you have VS installed, the steps are very similar. Go to Tools – Create GUID. This will launch a dialog and you can generate UID in different formats. This invokes guidgen.exe
To generate UID from shell use uuidgen utility. Also UID generation is core part of CoreFoundation Framework. CFUUIDCreate is good reference for the same.
Most convenient would be to generate it programmatically on any platform. Here comes boost library, technically Qt also has support for UIDs but it is not free.
I have a quad-core and oct-core machines and one of the things I generally do is to run my code only on single core. However to do this one needs to boot OS with single core configuration. With windows it is fairly easy to do:
- Go to run (Windows + R button)
- type msconfig
- press enter
- In boot click Advanced options.. button (more…)
Overall Windows 8 is pretty slick and very responsive. It boasts of impressive start up time and superior memory management. However I am annoyed by the Metro UI and wanted to disable it.
While searching online people have gone to great lengths to disable this:
Rename c:\Windows\System32\shsxs.dll to something else =)
But registry tweaks can do the job as well, steps are: