With the advent of Web 2.0 the Web Application has now become more interactive in nature thanks to AJAX. But this interactive using AJAX comes with some mistakes that people generally doesn't follows.
Below are the list of mistakes that AJAX gives you as a gift.
1. No Back Button Functionality.
By default the browser stores the webpage visited in the History Folder, but with AJAX the browser is unable to retrieve the dynamic data.
2. Waiting Endlessly.
The AJAX functionality largely depend on the network connection and the bandwidth. AJAX works well with good Internet Connection so if you are using dial-up you will have to wait until the response comes from the server. But if your browser get struck in between the AJAX call irrespective of the internet connection then your browser window is dead until the user reloads the page or opens a same page and writes the same content again and submit.
3. Using AJAX for the sake of AJAX.
AJAX is a very good feature to implement in todays web world but you also have to make count of the usability of it.
4. Cross Browser Compatible.
If your web application is targeting multiple browsers you will have to make sure that the AJAX object gets created and will work seamlessly on all the browsers.
5. Browsers Load.
Making too much AJAX calls will degrade the browser performance and it will become slow. This will make the user experience horrible for your site.
6. Bookmark Links
Users cannot bookmark the page having dynamic content fetched using AJAX. The reason is AJAX will fetch the data dynamically from the server and the bookmark link will only store the static data stored in the internet cache folder.
7. Enable/Disable JavaScript.
AJAX purely works with JavaScript and if the users browsers has JavaScript disabled then the AJAX functionality will not work.
Tuesday, September 18, 2007
Common AJAX Mistakes
Posted by Hitesh at 9:22 PM 0 comments
Labels: Ajax, CrossBrowser Ajax
Tuesday, September 4, 2007
Install FFMPEG on Linux
FFmpeg is a simple open source application that allows Linux users to convert video files easily between a variety of different formats. It supports most industry-standard codecs and can convert from one file format to another quickly and easily. It also lets you capture video and audio from a live source and process it.
Requirements:
FFMPEG
LAME Mp3 Audio Codec (Requred for mpg, flv, avi, wmv etc files)
AMR Audio Codec (Required for 3gp video files)
XVID Audio Codec (Required for Divx video files)
FFMPEG - PHP (Extension for using FFMPEG in PHP)
Note:
All the Audio Codecs getting used in FFMPEG are not part of FFMPEG Source base.
All the download files are source code will need to:
configure
make
make install
FFMPEG Download URL:
http://ffmpeg.mplayerhq.hu/download.html
On the download page apart from the SVN they have also given download to the checkout-snapshot but i would suggest to use SVN source code base.
The url for the SVN source code for FFMPEG is:
svn://svn.mplayerhq.hu/ffmpeg/trunk
To download from SVN you will have to install subversion for Linux located at subversion.tigris.org, or you can use "TortoiseSVN" for Windows located at tortoisesvn.tigris.org.
LAME Mp3 Download URL:
http://lame.sourceforge.net/index.php
AMR Audio Download URL:
http://www.penguin.cz/~utx/amr
To install the AMR codec you will require both AMR-WB and AMR-NB files.
XVID Audio Download URL:
http://www.xvid.org/
Installation Steps:
It is a good practice to install all the external liraries first and then install the main files. i.e. For FFMPEG to work smoothly it's a best practice to install all the Audio Codec Libraray first.
- Installing LAME MP3 Encoder
- Untar the lame file bu using tar zxvf
- Assign 777 permission rights to the lame folder by typing
chmod 777-R> - Traverse to the root of lame folder and type>
Step1:
./configure ---> Creates Make File
Step2:
make
Step3:
make install
Installing AMR Codec:
- For installing the AMR codec there are two separate files that needs to be installed are AMR-WB and AMR-NB.
- Untar the AMR file bu using tar zxvf
- Assign 777 permission rights to the amr folder by typing
chmod 777-R - Traverse to the root of amr folder and type
Step1:
./configure ---> Creates Make File
Step2:
make
Step3:
make install
- Installing Xvid Codec
- Untar the xvid file bu using tar zxvf
- Assign 777 permission rights to the lame folder by typing
chmod 777-R - Traverse to the root of xvid folder
- Goto Build/generic folder from the root of xvid folder and type
Step1:
./configure ---> Creates Make File
Step2:
make
Step3:
make install
Installing GCC
- Installing FFMPEG:
- Unzip the ffmpeg file bu using unzip command in linux shell
- Assign 777 permission rights to the ffmpeg folder by typing
chmod 777-R - Traverse to the root of ffmpeg folder and type
Step1:
./configure ---> Creates Make File
Step2:
make
Step3:
make install
NOTE:
You might get installation error while making the file related to html or texti files in doc folder.
Solution for this is to just create a empty file by using touch command.
Posted by Hitesh at 4:58 PM 0 comments
Labels: AVI to FLV, FFMPEG, LAME MP3 Encoder, MPG to FLV, Video to FLV