Category Archives: Windows

How to enable Javascript in any browser

Enable Javascript In Firefox 1.5
Load Options Dialog In Windows

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Options”

Load Options Dialog In Linux

  • Click on the “Edit” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”

Continue for all operating systems:

  • Select the “Content” tab
  • Check box for “Javascript” or “Enable Javascript”
  • Click “Ok”. The Options dialog will close and scripting is now enabled.

Enabling Javascript In Internet Explorer 4/5/6

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Internet Options”
  • Select the “Security” tab
  • Click on the “Custom Level” button
  • Towards the bottom of the list, look for and enable “Active Scripting”,under the “Scripting” group.
  • Click “OK”. You will be promted to confirm, click “Yes”
  • Click “Ok”. The Internet Options dialog will close and scripting is now enabled.

Enabling Javascript In Internet Exporer 7

  • Click on the “Tools” menu item.
  • From the drop menu, click on “Internet Options”
  • Select the “Security” tab
  • Click on the “Custom Level” button
  • About 4/5 way down the list, look for and enable “Active Scripting”, under the “Scripting” group.
  • Click “OK”. You will be promted to confirm, click “Yes”
  • Click “Ok”. The Internet Options dialog will close and scripting is now enabled.

Enabling Javascript In Safari

  • Click on “Safari” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Security” tab
  • Check the box for “Enable Javascript For”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Netscape

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Advanced” tab
  • Check the box for “Enable Javascript”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Konqueror

  • Click on “Settings” menu bar at the top of the window.
  • From the drop menu, click on “Configure Konqueror”
  • Select the “Java & Javascript” item from the left menu pane.
  • Select the “Javascript” tab in the right pane
  • Check the box for “Enable Javascript globally”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Opera 9

  • Click on “Tools” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Advanced” tab
  • Check the box for “Enable Javascript”
  • Click “Ok”. The Preferences dialog will close and scripting is now enabled.

Enabling Javascript In Epiphany

  • Click on “Edit” menu bar at the top of the window.
  • From the drop menu, click on “Preferences”
  • Select the “Privacy” tab
  • Check the box for “Enable Javascript”
  • Click “Close”. The Preferences dialog will close and scripting is now enabled.

Windows: How to Change Internet Explorer View Source Editor (i.e. Notepad)

Whenever you open the source of any webpage in Internet Explorer, it opens the source code with Notepad but format is not viewed in notepad. So, I will let you know how to do it:-
1. Copy and paste the following code in Notepad:-

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerView Source EditorEditor Name]
@=”wordpad.exe”

2. Replace “wordpad.exe” in the code to the location of your editor with double slashes.
3. In notepad click on File-> Save as… and save the file with any name and the extension .REG. eg. “test.reg”
4. Now double-click on the file you have saved and click on Yes.

Note: Your default source editor in Internet Explorer will be changed to wordpad.

Windows 2003 GPT disk layout

Microsoft Windows 2003 introduced a new type of disk layout called GUID Partition Table (GPT) disks. This layout is designed to overcome some problems and deficiencies associated with the traditional master boot record (MBR) style disks. The advantages of GPT disks include:

  • Partition size that can be up to 18 exabytes.
  • A GPT disk can contain up to 128 partitions.
  • Integrity of primary and backup partition tables that allows redundancy.
  • Partition format that is well defined, fully self-identifying and accommodates future expansion with version number and size fields.
  • Unique ID for each partition that prevents partition identifier collision.

Initially, only the IA64 (Itanium) version of Windows 2003 supported GPT disks. An IA64 system cannot boot unless the boot disk is a GPT disk. With Service Pack 1, support was added to 32-bit versions of Windows 2003, but a GPT disk is still not supported as the boot disk.

Note: The next version of Windows (currently called Longhorn or Vista) is planned to have boot-from-GPT support for 32-bit processors.

The only way to create a basic GPT disk is to convert an existing empty MBR disk. There can be no partitions or data on the disk. The Microsoft tools to convert the disk will not function if there are existing partitions.
Once you have created a GPT disk, the layout is as follows:

How to change all file extensions in a folder

To make sure that you do not destroy your real files make a copy to temporary folder.

# mkdir /tmp
# cd tmp

Now, I’m in the folder /tmp. Currently, this is a empty working directory. We  make 500 new files in the extension .dot as the following:

# for x in {1..500};

do

touch “file$x.dot”;

done

And 200 new files as Gif images

# for x in {1..200};

do

touch “testimage$x.gif”;

done

Now, how can I rename all files .dot to .bak in the folder /tmp? The following command can solve this problem.

# for x in *.dot;

do

mv “$x” “${x%.dot}.bak”;

done

Other example :

# for x in *.mov;

do

mv “$x” “${x%.mov}.flv”;

done