Word 2010: Add text to a table of contents

Select some of the text that you want to add.

On the Home tab, in the Styles group, click the More button and then click Save Selection as a New Quick Style.


Give your new style a name–for example, TOCBody.

Now, on the References tab, click Table of Contents, and then click Insert Table of Contents.

Click Options.

In the dialog box that opens, scroll down until you see the new style that you just created, and then assign it a level.


For example, if your table of contents will show level 1, level 2, and level 3 headings, type 4 for the level of your new style.

Click OK.

Now, select the text that you want to appear in the table of contents, and then in the Styles group, click your style.

If you’ve already inserted a table of contents, you can click Yes to update your table of contents. Or you can click Insert Table of Contents to insert a new one.


Netbeans: Display .gitignore File in Projects/Files

By default, Netbeans will ignore files such as CVS files, SVN files, dot files, etc. If you would like to have your .gitignore file displayed in your Projects or Files views:

  • open up your Netbeans options,
  • go to the the Miscellaneous tab at the top,
  • then click on the Files tab.
  • You’ll see a Files Ignored by the IDE section there. That field accepts a regular expression string that allows you to hide files. I have Netbeans NOT ignoring my .htaccess and my .gitignore files, but ignoring all other dot files. Here is what my pattern looks like:


via http://prattski.com/2011/04/25/netbeans-display-gitignore-file-in-projectsfiles/


Windows 8: How to Turn Airplane Mode On or Off

This will show you how to turn Airplane mode on or off in Windows 8 to disable or enable all wireless network connections at once.

To Turn “Airplane Mode” On or Off from Taskbar

  1. Go to the Desktop (Win + D),
  2. Click on the Network icon in the taskbar system icons area,
  3. At the top of the Charms bar under Airplane mode, move the sliders right or left to turn it on or off.

To Turn “Airplane Mode” On or Off from Charms Bar

  1. Open the Charms (Win + C) bar, click on the Settings charm, and click on your wireless network icon (or Win + I),
  2. At the top of the Charms bar under Airplane mode, move the slider right or left to turn it on or off.

To Turn “Airplane Mode” On or Off from Control Panel

  1. Open the Control Panel, click on the Network and InternetNetwork and Sharing Center link, and click on the Connect to a network link,
  2. At the top of the Charms bar under Airplane mode, move the slider right or left to turn it on or off.

To Turn “Airplane Mode” On or Off from PC Settings

  1. Open PC Settings, and click on Wireless in the left pane,
  2. In the right pane under Airplane mode, move the slider right or left to turn it on or off.

IE10: Clearing Cache and Cookies

Select Tools > Safety > Delete browsing history….

Make sure to uncheck Preserve Favorites website data and check both Temporary Internet Files and Cookies then click Delete.

You will get a confirmation at the bottom of the window once it has successfully cleared your cache and cookies.

via http://kb.wisc.edu/page.php?id=15141


Windows 8: How To Set Lock Screen Background Using Bing Picture

All you need to to is fire up Bing Windows app from start screen, bring up the bottom App bar (wipe from bottom up on Tablet, mouse right click on non-tablet), and tap/click Set As Lock Screen.

As always, you can pick your own picture and set it as the lock screen background image by going to Personalize section in PC Settings (Win + I and select Change PC Settings).


Windows 8: Shut down with one click

Windows 8 hides the Power button in the Settings menu, forcing a multistep process just to shut down one’s PC. But you can pin a Shutdown button right onto the bottom of your desktop.

Create a shortcut on your desktop (right-click, go to New, then Shortcut). Enter “shutdown /s /t 0” (with no quotes, and, yes, that’s a zero not an “O”) as the location of the item, and press Next. Now name the shortcut (prefereably “Shutdown”) and press Finish.

Right-click the shortcut, and navigate to Properties. Choose Change Icon in the Shortcut tab, and then OK to leave the warning box. Choose an icon of your choice from the list. In the screenshot above, you’ll see we chose a Power button.

Right-click the shortcut again, and select Pin to Start. You can place the icon on your Start screen wherever it’s convenient. Clicking it will instantly shut down your computer.


How to Reset Windows 8 Screenshot Counter

Windows 8 comes with a very useful and convenient improvement. On it if you press Win + PrtScr, your entire desktop is captured, with a nice dim effect, and is automatically saved as a PNG file in your Pictures folder (%UserProfile%\Pictures\Screenshots).

Screenshots are sequentially named in the form Screenshot ().png. Windows maintains a count of captured images in the Registry, so even if you move or delete existing screenshots in the Pictures folder the index is not reset. If for any reason you wish to reset it, here’s how to go about it:

  1. Open Registry Editor (Win + R > type in regedit > hit Enter).
  2. Then navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer.
  3. In the right-pane, look for a DWORD value named ScreenshotIndex.
  4. Now change its value to 1 by double-clicking on it.

That’s it!

Do note that if you already have existing screenshots in the Screenshots folder, they will not be overwritten after the index reset. So if you already had a file named Screenshot (1).png in the folder, the next capture will start from Screenshot (2).png.

via http://sumtips.com/2012/10/reset-windows-8-screenshot-counter.html


Windows 8: Add a network location

  1. Open Computer
  2. Now Click on Add a network location button from the standard toolbar.
  3. Click Next (Add network location), Choose a custom network location, Next
  4. Click on “Browse” to select a network drive of the folder; otherwise if you know the folder or drive you can type it directly into the “Internet or network address” text box. Click Next.
  5. Enter your username and password, check Remember my credentials, click OK
  6. Type a name for this network location, click Next and Finish 

How To Make A USB Installation Disk For Windows 8 Without Extra Software

Open An Elevated Command Prompt

Click Start -> All Programs -> Accessories and right-click on Command Prompt. Select Run As Administrator. Of course, you need to be able to authenticate as the administrator on the PC you’re using.

Partitioning The Disk



This will open up the partitioning application. Next, type:

Figure out which of the drives listed is your USB drive, and note the number. It’s crucial you get this right, or you’re going to end up losing data on other drives.Next, type the following series of commands, but replace the DISK number in the first line with the appropriate number from the above list. Here, my disk is number 1. Don’t confuse this with PARTITION 1. That number should not change, even if your disk is 3.

Make It Bootable!

The format step may take a little while (it actually took about 30 minutes on my machine). When you’re done, put in your installation DVD if you haven’t already. Note down which drive letter your USB disk and Windows installation DVD are located at.

Go back to your command prompt and type – assuming D: is your DVD drive with the install DVD, and U: is your USB drive:


This will basically make your USB drive bootable.Copy Everything

The final step can be done from My Computer. Just open up the installation DVD, highlight everything, and drag it over to your USB drive.This will also take a while.Now you should be all set – just insert the USB disk into your new PC, and enter the BIOS to adjust the boot order, or choose the option during start up which says Choose Boot Device.

via http://www.makeuseof.com/tag/usb-installation-disk-windows-7-extra-software/


Windows 8: Four Ways to Open the Charms Bar

  • Press Windows + C hotkey. With this method the Charms menu will stay open until you click something.
  • Hover the mouse pointer over the top right corner of the main screen, and then scroll up and click a charm.
  • Hover the mouse pointer over the bottom right corner of the main screen, and then scroll up and click a charm.
  • On a touch screen you can swipe from the right edge towards the left and the Charms menu will appear.

Each individual Charm can be accessed by these Windows Key shortcuts:

  • Windows + Q – Search
  • Windows + H – Share
  • Windows + K – Devices
  • Windows + I – Settings
  • Pressing the Windows key by itself opens the Metro Start Menu.