Saturday, March 6, 2010

How to restore the Desktop.ini files for folders in My Documents

Click Start > Run and type:

rundll32 mydocs.dll,PerUserInit

Saturday, January 16, 2010

List All Windows Shared Folders

Open a command prompt and type:

wmic share get caption,name,path

To output the results to a text file, type:

wmic /output:c:\sharedFolders.txt share get caption,name,path

Monday, July 6, 2009

Centre text within other text in LaTeX

LaTeX function which centres the second argument within the first argument and leaves the correct amount of space at the end.


Usage Example:

$\bigcirc$ bb

\centretext{$\bigcirc$}{{\scriptsize ai}} bb

Note that the text 'ai' is centred within the circle and the text 'bb' at the end of the two lines are aligned with each other.

Measure Width of Text in LaTeX





Thursday, July 2, 2009

Always show the Go button in Firefox 3

In Firefox 3, the Go button only shows up when you’re typing in the Location bar. You can show the Go button permanently by following these instructions.
  1. Open the folder that contains your Firefox profile (if you don’t know where that is you can read this page in the Mozillazine Knowledge Base).
  2. Look for a directory named chrome and open it. If the directory does not exist, create it.
  3. Open the file called userChrome.css. If the file does not exist, create a blank text file and call it userChrome.css.
  4. Make sure that the following is the first line of the file (taken from the file \chrome\userChrome-example.css):
    @namespace url(""); /* set default namespace to XUL */
  5. At the end of the file, add the following line:
    #urlbar[pageproxystate="valid"] > #urlbar-icons > #go-button { visibility: visible !important;} /* Show the Go button permanently in the location bar */
  6. Restart Firefox.

Disable Extension Compatibility Checking in Firefox 3

  • Type about:config into Firefox's address bar and click the "I'll be careful, I promise!" button.
  • Right-click anywhere. Choose New>Boolean. Name the new config value extensions.checkCompatibility and set it to false.
  • Right-click anywhere and choose New>Boolean again. Name this new boolean pair extensions.checkUpdateSecurity and set the value to false.
  • Right-click anywhere. Choose New>Boolean. Name the new config value extensions.checkCompatibility.VERSION and set it to false
    • e.g. extensions.checkCompatibility.3.6
    • Note the capital C in checkCompatibility - it's important.
    • VERSION is the version number of firefox, e.g. 3.6
    • If using an Alpha version, the version number would be VERSIONa, e.g. 3.6a
    • If using a Beta version, the version number would be VERSIONb, e.g. 3.6b 
  • Restart Firefox.

How to uninstall Microsoft .NET Framework Assistant from Firefox

  1. Open the Registry Editor (Start > Run: regedit)
  2. Navigate to the key
    (or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\extensions for 64-bit versions of Windows)
  3. Delete the value with name
  4. Restart Firefox.

Saturday, April 18, 2009

'microsoft' folder appearing in Shared Documents

A folder called 'microsoft' appears in Shared Documents (Public Documents on Vista).
The whole folder tree which is created is: \microsoft\IdentityCRL\production
These folders keep appearing even after they are deleted.

To get rid of these folders, uninstall Windows Live Sign-in Assistant and then delete the folders.