Oceanic Blogger Template

Thursday, April 1, 2010

Mobile MIME Types

Posted by Raj at 8:44 AM 0 comments

Mobile MIME types identify the format of mobile web content: textual mobile markup documents, binary viewable and playable content like ringtones, wallpaper and videos and binary executable mobile applications intended for mobile devices.

Common Mobile MIME Types

Here are the most common mobile MIME types:
MIME Type(s)File Extension(s)File ContentsCommon Uses
application/vnd.wap.xhtml+xml
application/xhtml+xml
xhtmlXHTML-MP markupMobile web pages
text/htmlhtmlHTMLMobile web pages for smartphones
text/csscssCSS1, CSS2 and Wireless CSSCascading style sheets for mobile web documents
text/vnd.wap.wmlwmlWML markupLightweight mobile web pages for older or low-end mobile devices
image/vnd.wap.wbmpwbmpWireless Bitmap ImageBlack-and-white image format used for older or low-end mobile devices that support only WML in the microbrowser.
text/vnd.wap.wmlscriptwmlsWML ScriptScripting language used with WML
text/vnd.sun.j2me.app-descriptorjadJava Application DescriptorMetadata about a Java ME application for mobile devices. Contains URI to a JAR file that is the mobile application binary.
application/java-archiveBinaryJava ArchiveArchive of compiled binary Java class files. Used as packaging format for Java ME mobile applications.
audio/x-midimidMIDI Audio FileMIDI ringtones
audio/vnd.qcelpqcpQCELP Audio filemobile audio
video/3gpp3gp3GP Video File3GP encoding for mobile video files
video/mp4mp4MPEG4 Video FileMPEG4 encoding for mobile video files
x-nokia-widgetwgzNokia Widget ArchiveHome screen widget for Nokia mobile phones
application/vnd.wap.mms-messagemmsBinary MMS in MMS Encapsulation Protocol formatViewing and sending MMS messages
application/vnd.symbian.installsisSymbian installerOlder file format for Symbian application installers
x-epoc/x-sisx-appsisxSymbian installerNewer file format for Symbian application installers

How Mobile MIME Types are Used in HTTP

MIME types are used in several ways during a HTTP transaction between a mobile web browser and web server:
Mobile Web Browser: The mobile web browser sends a list of supported MIME types as the value of the Accept HTTP request header. The Accept request header value advertises the mobile content types supported on the device. Web servers optimized for delivering mobile content use the header’s value (and also a device database) to determine the best content to send in the HTTP response.
Web Server: The MIME type associated with a web document is used as the value of the Content-Type HTTP response header. The web server is configured to associate file extensions of mobile content with mobile MIME types. (Web servers generally do not come pre-configured to support mobile MIME types. The webmaster must manually add the MIME types.) When the web server sends a file to a mobile browser and uses the correct mobile MIME type, the mobile browser client knows how to interpret the file: as a web page, mobile application, wallpaper, ringtone, video, etc.
Web Server Template Languages: The MIME type associated with for a document can be manually overridden using a server-side template language like PHP. Here is a PHP example that uses the built-in header function to override the MIME type for a HTTP response:

header('Content-Type: text/vnd.wap.wml');
?>
It is important to correctly configure mobile MIME types on the web server because the mobile browser uses the MIME type (value of Content-Type HTTP response header) to determine whether the web file is viewed in the browser or by launching phone UI (to set a GIF as wallpaper, etc.) or by launching a native application (playing a video in the video player, etc).
Bookmark and Share

XHTML MP MIME Types and File Extension

Posted by Raj at 8:41 AM 0 comments

The following three MIME types can be used for XHTML MP documents:
  1. application/vnd.wap.xhtml+xml
  2. application/xhtml+xml
  3. text/html
The MIME type specified by the Open Mobile Alliance [OMA] for XHTML MP documents is "application/vnd.wap.xhtml+xml". This MIME type is required for some WAP browsers (for example, some Nokia Series 60 browsers) to display XHTML MP documents correctly.
Another choice is the "application/xhtml+xml" MIME type. It is the MIME type for XHTML Family document types.
The "text/html" MIME type is also a possible choice. It is the MIME type of HTML documents. Using "text/html" for XHTML MP documents has the benefit that your XHTML MP pages will be viewable on ordinary web browsers without any problems. (Some web browsers like IE 6 do not show documents with MIME types "application/vnd.wap.xhtml+xml" or "application/xhtml+xml" but will bring up a dialog box to let you open the file in an external program or choose a location to save the file.) The drawback is that the user agent will not treat your XHTML MP pages as XML documents, which means the user agent may not complain even if the markup code does not follow strictly the XML rules.

Choosing MIME Types Dynamically

Another option is to detect the MIME types that can be handled by a user agent and choose the MIME type dynamically. For example, if your server finds out that a certain user agent can handle the "application/vnd.wap.xhtml+xml" MIME type, then all your XHTML MP documents will be delivered as "application/vnd.wap.xhtml+xml" to this user agent.
To choose the MIME type dynamically, you need to write a few lines of code using a server-side scripting language (e.g. ASP, JSP, Perl, PHP). The pseudo-code is shown below:
  1. Obtain the accept header value of the HTTP request received. The accept header contains all MIME types that can be handled by the client user agent that sends the request.
  2. If the accept header value contains "application/vnd.wap.xhtml+xml", set the MIME type of the XHTML MP document to "application/vnd.wap.xhtml+xml".
    Else if the accept header value contains "application/xhtml+xml", set the MIME type of the XHTML MP document to "application/xhtml+xml".
    Else set the MIME type of the XHTML MP document to "text/html".
The following example demonstrates how to use JSP to write the code. If you use a server-side technology other than JSP, the code will be slightly different but the idea is the same.


Here are some descriptions of the above JSP code:
1. The accept header value is obtained from the HTTP request. It is then stored in the variableacceptHeader.

String acceptHeader = request.getHeader("accept");

2. After that, the variable acceptHeader is checked to see if it contains the words "application/vnd.wap.xhtml+xml" or "application/xhtml+xml". The indexOf(String str) method of the String object returns the index of the first occurrence of the str substring. If str is not found, -1 is returned by theindexOf(String str) method. In other words, if str is found, the return value will not be -1.

if (acceptHeader.indexOf("application/vnd.wap.xhtml+xml") != -1)
...
else if (acceptHeader.indexOf("application/xhtml+xml") != -1)
...

3. The method
response.setContentType(...);
is used to set the MIME type of a document.

The following example illustrates how to use the JSP code in an actual XHTML MP document. What you need to do is very simple -- Just copy and paste the JSP code into the XHTML MP document and use ".jsp" as the file extension. (The XHTML MP markup in this example will be discussed in detail in the following sections.)





 
   
 

 
    
Hello world. Welcome to our XHTML MP tutorial.

 




File Extension

The file extensions of static XHTML MP documents are ".xhtml", ".html" and ".htm" typically. You can use other file extensions you like, as long as the MIME type associated with the file extension is set correctly at your WAP server's configuration file. If you are going to use a server-side technology such as ASP, JSP, Perl, PHP or SSI (Server Side Includes) to add content to XHTML MP documents dynamically, you may need to change the file extension of your XHTML MP documents to that used by the server-side technology. For example, the typical file extension used by PHP is ".php", while that used by SSI is ".shtml".

Wednesday, March 31, 2010

10+ Gtalk Tricks Guides And Tutorials

Posted by Raj at 3:15 AM 0 comments

Enter your Email Address:  
Gtalk is the Widley Used Messenger all over the Internet ,People are now switching to  Gtalk slowly and slowly leaving yahoo messenger due to some enhanced feature.So its necessary for new gtalk users to know more about  Gtalk ,for this we have created a short Gtalk Tutorials that will help users while surfing gtalk .
Send Bold Text: Text embedded between two * characters is displayed as bold text. Example: This is a *bold* statement.

Send Italics Text: Text embedded between two _(underscore) characters is displayed as italics text. Example: This is an _italics_ statement
Insert Line Breaks: If you want to have a message that spans multiple paragraphs, just hold shift and hit enter
Send mail: Press F9 to send a mail to the contact with whom you are chatting
Restore Google Talk Window: Press Windows Key + Esc to restore Google Talk window from system tray
Call a Contact: Press F11 to start a voice call with the chat contact and F12 to end the voice call
Insert Line Breaks – If you want to have a message that spans multiple paragraphs, just hold shift and hit enter. You can add as many new lines as you want to create.
Switch Windows – Hitting tab will cycle through open windows. It will select minimized conversations, to expand them just hit enter. If you just want to cycle through IM’s and don’t care about the buddy list, control-tab will do that and will automatically expand a minimized conversation if you settle on one.
Length Of A Single Message – A message can be max 32767 characters long.
Use Keyboard shortcuts while talking in Gtalk ,It will make yours work fastand talk Easy ,Below are some keyboard shortks for Gtalk User.

  • Ctrl + 5 (KeyPad- Selects all the text typed.
  • Ctrl + 1 (NumPad) - It goes at the end of the last line.
  • Ctrl + 7 (NumPad) - It goes at the begin of the last line.
  • Ctrl + F4 – It closes the current window.
  • Alt + F4 - It closes the current window.
  • Alt + Esc – It Minimize the current open window.
  • Windows + ESC – Open Google Talk (if it’s minimized, or in the tray).
  • F9 - Open Gmail to send an email to the current contact.
Nickname & Status Message:You can’t change your nickname in a way that other people will see it change. Every nickname in the Google Talk contactlist is the part that is before @gmail.com (only the alphabetical characters are used) or the name you chosen for your GMail account. To change the nickname need to go to your Gmail account and change the name there. Choose Settings, Accounts, and then Edit info. Click on the second radio button, and enter your custom name. As a result all of your emails will have that nick as well, there is no way to seperate the two. You can add a website in your custom message, it will be clickable when someone opens a conversation window with you.
  • F11 – It initiates a telephonic call with your friend.
  • F12 – It cancels a telephonic call.
  • Esc – It closes the current window
How To Make Conference Calls:To have conference calls in Gtalk: Open up a copy of Google Talk on all computers with which you wish to conference. After one copy is opened make a new shortcut for Google Talk but at the end of the target add /nomutex. If you installed it to the default folder then your shortcut should read
C:\Program Files\Google\Google Talk\googletalk.exe” /nomutex.
Open Second instance of the software on every user’s computer.After this start a chain: User should connect on one instance to user 2. User 2 will connect on his second instance to user 3. User 3 will connect using his second instance back to user 1. With this chain everyone is connected to everyone.
Login to multiple Google Talk accounts simultaneously with a very easy hack. Follow these steps
  1. Create a shortcut of Google Talk messenger on your desktop or any other preferred location .(To create a shortcut, right click on your Google Talk messenger application and select Send To–>Desktop(create shortcut))
  2. Right click on the Google Talk messenger icon and select Propertiesoption
  3. Modify target location text “c:\program files\google\google talk\googletalk.exe” /startmenu to
“c:\program files\google\google talk\googletalk.exe” /nomutex
  1. Click Ok and you are done with this .
Contacts: Don’t need to say yes or no when someone wants to add you as a friend; you can simply ignore it, the request will go away. (On the other hand, someone with whom you chat often will automatically turn to be your friend, unless you disable this). Wierd: The Gmail account ‘user@gmail.com’ can’t be invited as your friend.

Gmail Orkut Or Google Account is Hacked

Posted by Raj at 3:13 AM 0 comments

Enter your Email Address:  
It can be a nightmare if someone else takes control of your Google Account because all your Google services like Gmail, Orkut, Google Calendar, Blogger, AdSense, Google Docs and even Google Checkout are tied to the same account. X-(Here are some options suggested by Google Support when your forget the Gmail password or if someone else takes ownership of your Google Account and changes the password:GMail Lost Password
1. Reset Your Google Account Password:
Type the email address associated with your Google Account or Gmail user name at ForgotPassward – you will receive an email at your secondary email address with a link to reset your Google Account Password.
This will not work if the other person has changed your secondary email address or if you no longer have access to that address.
2. For Google Accounts Associated with Gmail
If you have problems while logging into your Gmail account, you can consider contacting Google by filling this form. It however requires you to remember the exact date when you created that Gmail account.
3. For Hijacked Google Accounts Not Linked to Gmail
If your Google Account doesn’t use a Gmail address, contact Google by filling this form. This approach may help bring back your Google Account if you religiously preserve all your old emails. You will be required to know the exact creation date of your Google Account plus a copy of that original “Google Email Verification” message.
It may be slightly tough to get your Google Account back but definitely not impossible if you have the relevant information in your secondary email mailbox.


Enter your Email Address:  

Disable Don’t Send OR Send Error Report To Microsoft

Posted by Raj at 3:03 AM 0 comments

Showing ” Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience ” Click “Don’t Send ” and everything get closed ,This Window error Report generated by microsoft is sometimes create problems for you , it is suggested you to dont ever click Send Error Reports or ” Please tell Microsoft about this problem ” because it will send all yours computer details to Microsoft , and creating problems for you.so its better to disable that error repor,so that such problem not arise in future,There are three methods to disable Microsoft error reporting.

Disable Error Reporting


  • To get rid of this MS Error Reporting, Right-click the My Computer iconon your desktop and choose Properties.
  • In the System Properties , go to the Advanced tab and click Error Reporting.
  • Select disable error reporting This will make any crashing program’s window simply close itself.
  • Disable Error Reporting 
  • You could also click But Notify Me When Critical Errors Occur, but it might be even safer if you select Enable Error Reporting.
Inspite of this technique you can also disable error reporting via control panelas well as via editing registry . :)

Popular Posts

 

Copyright © 2018 Coding Talk | Designed by Web Hosting Dedicated server