Monday, April 11, 2011

Changing and adding file extensions recognized by Dreamweaver

Introduction
This TechNote applies to the following related symptoms in Adobe Dreamweaver:
  • When opening a file, you see this error message: "Can't find a valid editor for this file extension."
  • The color-coding in Code view isn't matching the color-coding for the file type you want.
  • The server-model functionality isn't available for your file type.
  • You cannot open a page in Design view. It only opens in Code view.
  • When you go to File > Save, or File > Open, you don't see the file type you want.
Dreamweaver ships with the ability to edit and display many different file types. This TechNote focuses on customizing Dreamweaver to recognize new file types by editing the Extensions.txt and MMDocumentTypes.xml files, and setting the Open In Code View settings to see the new file types in Design view.
  • The Extensions.txt file
    The Extensions.txt file is a text file listing all file types recognized by Dreamweaver. This file can be edited in any external text editor like Notepad or Text Editor to add to the list of recognized file types. Do not modify the Dreamweaver configuration files in Dreamweaver itself.
  • The MMDocumentTypes.xml file
    The MMDocumentTypes.xml file contains definitions of document types as well as a list of file extensions associated with each recognized document type. Adding file extensions to the Extensions.txt file allows Dreamweaver merely to recognize a file extension and allow files of this type to be opened in Dreamweaver. Adding file extensions to the MMDocumentTypes.xml file tells Dreamweaver how to treat this new file extension and to which document type this file extension belongs.
    Note: For the purpose of this TechNote, only basic aspects of editing the MMDocumentTypes.xml file will be discussed. For a detailed overview of editing this file, see Extending Dreamweaver (from within Dreamweaver, choose Help > Extending Dreamweaver, and search on MMDocumentTypes.xml).
  • Open in Code View
    The Open in Code View preference identifies file extensions that do not allow Design view. After following the instructions in this TechNote, be sure to remove the file extension (if it is listed) from the Open In Code View preference to allow file editing in Design view. To set this preference, choose Edit > Preferences (Windows) or Dreamweaver > Preferences (Mac OS), and locate the File Types / Editors category.
Editing the Extensions.txt file
When opening a file that Dreamweaver doesn't recognize, you see this error message: "Can't find a valid editor for this file extension." New extensions can be added to the list of extensions that Dreamweaver recognizes. To add new extensions, edit the Extensions.txt file. Entries in the Extensions.txt file also control the order in which files are listed in the File > Open and File > Save dialog boxes. For the purpose of demonstration, we will add the .inc file type to Dreamweaver.
Note: This procedure requires you to locate hidden files, hidden folders and extensions for known file types. By default, Windows Explorer doesn't show hidden files, hidden folders, and file name extensions that it recognizes.
To show hidden files, hidden folders, and extensions for known file types:
  1. In Windows Explorer, do one of the following:
    • In Windows XP, choose Tools > Folder Options.
    • In Windows Vista, choose Organize > Folder and Search Options.
  2. Click the View tab in the Folder Options dialog box.
  3. In Advanced Settings, select Show Hidden Files And Folders.
  4. Deselect Hide Extensions For Known File Types.
  5. Click OK.
To add file types to the Extensions.txt file:
  1. Locate the Extensions.txt file within the Dreamweaver user configuration folder. The location of this folder depends on the operating system and the version of Dreamweaver:
    • Dreamweaver CS3 on Windows Vista:
      C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
    • Dreamweaver 8 on Windows Vista:
      C:\Users\[username]\AppData\Roaming\Macromedia\Dreamweaver 8\Configuration
    • Dreamweaver CS3 on Windows XP:
      C:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver 9\Configuration
    • Dreamweaver 8 on Windows XP & 2000:
      C:\Documents and Settings\[username]\Application Data\Macromedia\Dreamweaver 8\Configuration
    • Dreamweaver CS3 on Mac OS X:
      Mac HD:Users:[username]:Library:Application Support:Adobe:Dreamweaver 9:Configuration
    • Dreamweaver 8 on Mac OS X:
      Mac HD:Users:[username]:Library:Application Support:Macromedia:Dreamweaver 8:Configuration
    Note: Edits to this file will only be available to the current user. Changes made to files within the user profile will not be available to other users. For more information about manually editing Dreamweaver configuration files in a multi-user environment, please see Customizing Dreamweaver.
  2. Open Extensions.txt in any external text editor like Notepad or Text Editor. Do not modify the Dreamweaver configuration files in Dreamweaver itself.
  3. Add the extension to the All Documents line. Extensions must be in uppercase letters and separated by commas. (INC should already be listed by default. If not, add it.)
    Example: HTML,HTM,SHTM,SHTML,INC
  4. To add extensions to an existing document group, add the extension to the extension list for the desired group. To add a new document group, add a new line that contains the new document type as well as a listing of associated extensions.
    Example: INC:Include Files
    (This can also be added to the Server Side Include list already within the file.)
  5. Save the file and restart Dreamweaver.
  6. To see the changes, open Dreamweaver and open a file with the newly added file extension. It should now open in Code view only in Dreamweaver. Select File > Save As, and click the Save As Type pop-up menu. You should now see an option for Include Files with *.inc as the recognized file extension. It's the same for the Files Of Type pop-up menu in File > Open.
Note: The order in which extensions are listed is the order in which they will appear in the File > Open and File > Save dialog boxes.
To get Design view, color coding, and server behavior functionality (if applicable) working, you need to edit the MMDocumentTypes.xml file, as described below.
The MMDocumentTypes.xml file
Where the Extensions.txt file contains the list of extensions recognized by Dreamweaver, the MMDocumentTypes.xml file contains information about the server model, color coding style, descriptions, and so forth for each known document type.
In addition to adding extensions to the Extension.txt file, new extensions must also be added to the file extension lists for the associated document type. If not, Dreamweaver will not know how to display this file type and will open it in Code view by default. If this extension is not associated with any defined document type, a new document type should be created. To create a new document type, see Extending Dreamweaver (from within Dreamweaver, choose Help > Extending Dreamweaver, and search on MMDocumentTypes.xml).
Note: For the purpose of this TechNote, 'document type definition' refers to files that contain information about documents recognized by Dreamweaver and are not to be confused by 'DTDs' mentioned in XML documentation.
Steps to add extensions to a document type definition in the MMDocumentTypes.xml file:
  1. Locate the MMDocumentTypes.xml file in the main Dreamweaver configuration folder (not the Dreamweaver user configuration folder). The location of this folder depends on the operating system and the version of Dreamweaver:
    • Dreamweaver CS3 on Windows Vista & XP:
      C:\Program Files\Adobe\Adobe Dreamweaver CS3\Configuration\DocumentTypes
    • Dreamweaver 8 on Windows Vista, XP & 2000:
      C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes
    • Dreamweaver CS3 on Mac OS X:
      Mac HD:Applications:Adobe Dreamweaver CS3:Configuration:Document Types
    • Dreamweaver 8 on Mac OS X:
      Mac HD:Applications:Macromedia Dreamweaver 8:Configuration:Document Types
  2. Open MMDocumentTypes.xml in any external text editor like Notepad or Text Editor. Do not modify the Dreamweaver configuration files in Dreamweaver itself.
  3. Find the tag set for the desired document type. Below is the default document type definition for HTML documents from the MMDocumentTypes.xml file:

  4. Add the desired extension to the winfileextension and macfileextension attributes of thedocumenttype tag. For example:
    winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,inc"
    The code above adds the INC file extension to the list of files that Dreamweaver treats as HTML files. Adding extensions to the Mac OS and Windows lists for this file types allows Dreamweaver to open this file type in Design view as other files with defined HTML file extensions.
  5. Save MMDocumentTypes.xml and restart Dreamweaver.
  6. To see the changes, open Dreamweaver and open a file that has the newly added file extension. You should see that Design view, code coloring and server behavior functionality (if applicable) are working now.
Note: The order in which extensions are listed is important. The first extension in the extensions lists will be the default extension used for this file type.
Note: If you made a backup of the MMDocumentTypes.xml and left it in the Configuration/DocumentTypes folder, you will see multiple warning messages pop up when you launch Dreamweaver that look like this:
'The Document Type "HTML" will not be added because it uses a file extension that is already associated with a prior Document Type.'
To stop these warning messages, move your backup copy of the MMDocumentTypes.xml file outside the Configuration/DocumentTypes folder. For example, move it to the desktop. You will also get this error message if you have the same file type listed more than once in the MMDocumentTypes.xml.
Edit in Code View preference
The final step is to check the File Types / Editors preference settings (Edit > Preferences) and make sure that this file extension is not listed in the Open In Code View field. By default, the INC file extension appears on this list. Remove ".inc" from the Open in Code View list and files with this extension should now be viewable in Design view.

Thursday, March 17, 2011

To Fall In 'Second Love'

We have all heard stories about first love and the first time experience of falling head over heels for someone etc but what about second love. The second time you find friend whom I have seen suffering her first break up and then falling in love again, was very upset yesterday night, as she could feel that her second relationship was also at stake for certain situations. She then asked me 'why don't we learn? Why do we find second love?' This is what I told her -

1.Law Of Attraction – The universal truth is that there is always a factor of attraction between a boy and a girl. That's why it is often said that a girl and boy can never remain friends, they tend to fall in love. Thus, during a break up, when you get support from the opposite sex who happens to be your friend, finally concludes to be the second love.

2.Expectations Met – The basis of every break up is unfulfilled expectations. When we don't get something from someone we expected it most from, we move away and at that time when another person fulfills all the expectations without even having to ask him/her, one cannot help but fall in love.

3.Emotional Support – A break up has an inverse effect on our emotions and more than the feeling of loosing someone, it's the fear of being alone once again, hurts the most. The position of a lover is of great importance in everyone's life and to find that place suddenly empty, is painful. Thus, to fill up the gap, to maintain the emotional support, we tend to find love again.

4.Was A Friend, Now A Lover – Most of the time if you notice, the second person in your life is mostly the friend. Believe it or not, he/she becomes our love as it's the safest option. We know him, we can trust him, the risk of getting hurt again is less and thus, he is the best choice.

5.Expectation Of A Better Future – No matter how much fun we make of Karan Johar romantic dreamland movies, deep in our heart that is exactly what we wish. A perfect lover and specially after a break up, the needs becomes a necessity. With the perfect person standing right next to us, expectation of a better future gets us involve into second love.

To fall in love for the second time for these five reasons most likely may or may not end up being successful. So, the next time you are on the verge of falling in love for the second time, check yourself for these five factors.

Tuesday, February 1, 2011

How to stop pesky calls and SMSes

How to stop pesky calls and SMSes

Don't want to be annoyed by unwanted commercial calls and SMSes? Here's all that you should know about Telecom Regulatory Authority of India's (TRAI) new regulations to give your mobile phone a little rest.

The new guidelines set by TRAI is supposed to be effective on February 1, 2011. The initial deadline of January 1 was extended by a month.

A new set of guidelines became necessary due to the limited success of TRAI's earlier initiatives. The National Do Not Call Registry was somewhat effective in reducing the number of unsolicited calls but indirectly led to an increase in the number of unsolicited SMSes landing in consumers' inboxes.

Feb 1: How to stop pesky calls and SMSes

Under the new guidelines consumers can choose their preference to receive or not to receive commercial communication from seven pre-defined categories. Users also have the option to either block all commercial calls and SMSes or to block only commercial calls while receiving SMSes of their choice.

Consumers have two choices, they can register in one of the two categories:

1. Fully blocked category: Consumers will not receive any commercial communication on their phones either as voice calls or SMSes.

2. Partially blocked category: Consumer will not receive any voice calls, but can choose to receive SMSes on any or some or all from seven pre-defined subjects:

a. Banking/insurance/financial products/credit cards

b. Real estate

c. Education

d. Health

e. Consumer goods and automobiles

f. Communication/broadcasting/entertainment/IT

g. Tourism and leisure

For users already registered with the National Do Not Call Registry (NDNC) do not have to re-register, their registration will automatically continue under the 'fully blocked' category.

The request for registration on the National Customer Preference Register (NCPR) will effective in seven days from the date of request for registration.

There are no charges involved in the registration, re-registration or change in registration process.

HOW TO REGISTER

There are four ways to activate your choice:

1. Via SMS sent to 1909

2. Dial 1909 and register through IVRS (Interactive Voice Response System)

3. Dial 1909 and register with the help of a customer care executive

4. Through the websites of mobile service providers

Registration via SMS

To opt for the fully blocked category, send SMS "START 0" to 1909.

To opt for the partially blocked category, send SMS "Start [option]" to 1909. The options are explained:

- "START 1" for receiving SMS relating to banking/insurance/financial products/credit cards

- "START 2" for receiving SMS relating to real estate

- "START 3" for receiving SMS relating to education

- "START 4" for receiving SMS relating to health

- "START 5" for receiving SMS relating to consumer goods and automobiles

- "START 6" for receiving SMS relating to communication/broadcasting/entertainment/IT

- "START 7" for receiving SMS relating to tourism and leisure

To opt for multiple preferences from the categories send SMS "Start [option1, option2, option3,...]" to 1909. For example, for receiving commercial SMSes from banking/insurance/financial products/credit cards and real estate, send the SMS as "START 1, 2".

In case a preference "0" is mentioned in the SMS, it will override other preferences and will be treated as 'fully blocked.' For example, "START 0,1,7", will be considered as a fully blocked option.

On sending the SMS, users will receive a confirmation SMS and need to reply to the message to ensure the options chosen are implemented.

On receiving the confirmation SMS from the subscriber, the service provider will send another SMS indicating the user's preferences along with a unique registration number. It is advisable to save the unique registration number as this will serve as a reference for the subscriber's registration of preference.

Registration via IVRS

Consumers can call the toll-free number 1909 and then follow the instructions to indicate their choice of blocked voice calls and SMSes. On successful competition of the IVRS process the consumer will receive a confirmation SMS that also mentions the consumer's unique registration number.

Registration through customer care executive

Consumers can call the toll-free number 1909 and speak to a customer care executive to indicate their preferences. The consumer will receive a confirmation SMS along with their unique registration number.

Registration via service provider websites

Users can also log in to their respective access providers' websites to register their preferences.

List of mobile service providers' websites:

Aircel: http://www.aircel.com

Bharti Airtel: http://www.airtel.in/

BSNL: http://www.bsnl.co.in

HFCL: http://www.hfclconnect.com

IDEA: http://www.ideacellular.com

Loop Mobile: http://www.bplmobile.com

MTNL Delhi: http://www.mtnldelhi.in

MTNL Mumbai: http://mumbai.mtnl.net.in

Reliance Communication: http://www.rcom.co.in

Reliance Telecom: http://www.reliancemobile.com

Shyam: http://www.hellorainbow.com

Spice Punjab: http://spiceindia.com

Spice Karnatka: http://spicetele.com

Tata: http://tataindicom.com

Unitech: http://www.uninor.in

Videocon: http://www.videocon.com

Vodafone: http://www.vodafone.in

HOW TO CHANGE PREFERENCES

Consumers can change their preferences after three months of the date of registration or three months after the last change of request. This can be done through any of the four methods described above, i.e., SMS, IVRS, customer care executive or online.

For changing preferences through SMS consumers will have to SMS "START [option]" to 1909 to receive communication on a certain category or "STOP [option]" to stop receiving messages from the indicated category. In case a consumers want to fully block all categories they can SMS "START 0" to 1909.

Users can alternately change their preferences via IVRS or speaking to a customer care executive by dialling 1909 or by visiting the mobile service providers' websites. On successful completion a confirmation SMS will be sent.

HOW TO DE-REGISTER

Consumers can opt out of the service through SMS by sending "STOP" to 1909. They can also call 1909 to de-register through IVRS or by speaking to the customer care executive.

HOW TO REGISTER A COMPLAINT

If a consumers receives unsolicited commercial communication even after seven days of registering with the NCPR they can file a complaint either by SMS or dialling the toll-free number 1909.

To register a complaint via SMS a message in the format "COMP TEL NO XXXXXXXXXX, dd/mm/yy, Time hh:mm" to 1909, where "XXXXXXXXXX" is the telephone number or the ID from which the SMS was sent from and also mentioning the date and time when the unsolicited communication was received.

On submission of the complaint the user will be sent a unique complaint number through SMS and will be informed of the action taken on the complaint within seven days of the complaint booking.

Source: http://ibnlive.in.com/news/how-to-stop-pesky-calls-and-smses/141996-11.html

Sunday, August 1, 2010

John Abraham Talks about his New Website


If you thought John Abraham was just about Bollywood, bikes and Bips, think again. We say this because this heartthrob is a tech lover too!

John says he uses multiple phones all for different purposes. Since he endorses LG, he obviously owns one. RIM's BlackBerry takes care of his professional work.

Also, he has joined hands with UTV New Media to start a unique voice blog service through which his fans can know him better. For this purpose, he uses a Nokia N79. He is also very excited about his revamped website www.johnabraham.com where users can get a lot of dope on John's activities and life. However, John warns his fans that he is not on social networks like Twitter and Facebook and asks them to not fall for the fake Johns out there.

He proudly says he is an audiophile and has invested lots in his Genelec Speakers and custom made stands. He says, they are totally worth all the money.

Take a look at the video to know which is the one gadget that tops his wish list and the machine he cannot live without.





Thursday, May 27, 2010

Apple overtakes Microsoft as biggest tech co

Apple Inc shot past Microsoft Corp as the world's biggest tech company based on market value, the latest milestone in the resurgence of the maker of the iPhone, which nearly went out of business in the 1990s.

Apple's shares rose as much 2.8 per cent on Nasdaq on Wednesday, as Microsoft shares floundered, briefly pushing its market value above $229 billion, ahead of its longtime rival.

Both stocks ended down after a late-day sell-off, but Apple emerged ahead with a market value of about $222 billion, compared with Microsoft's $219 billion, according to Reuters data.

Apple shares closed down 0.4 per cent at $244.11 on Nasdaq, while Microsoft fell 4 per cent to a seven-month low of $25.01.

Shares of Apple are worth more than 10 times what they were 10 years ago, as it has profited from revolutionising consumer electronics with its stylish, easy to use products such as the iPod, iPhone and MacBook laptops.

The last time Apple had a higher market value than Microsoft was December 19, 1989, according to Thomson Reuters Datastream.

Microsoft, whose operating system runs on more than 90 per cent of the world's personal computers, has not been able to match growth rates from its hey-day 1990s. Its stock is down 20 per cent from 10 years ago.

Apple, which struggled for many years to get its products into the mainstream, resorted to a $150 million investment from the much larger Microsoft in 1997 in order to keep it afloat. At that time, Microsoft's market value was more than five times that of Apple.

Microsoft still leads Apple in sales. In the latest quarter, Microsoft reported $14.5 billion in revenue compared with Apple's $13.5 billion.

Cupertino, California-based Apple is now the second-largest company on the Standard & Poor's 500 index by market value, behind energy behemoth Exxon Mobil Corp.

Search