March 17th, 2008 Bala Krishna Posted in Blogging, Browser Stuff, Bug Fix, FFMPEG, FFMPEG-PHP, Firefox Add-On, Gallery2, General, Linux, Linux Commands, Tips and Tricks, Web Development, Web Technology, Word Press, Wordpress Plugin No Comments »
This is common error occur due to wrong permission setting in Gallery2 data directory. During module uninstall, gallery2 restore directory permission and other changes as it was before the module installation. This feature sometime break gallery directory permission and directory does not work. See Image bellow for exact error description.

Solution:
Try changing gallery data directory “/g2data” permission to 777. If this does not fix your problem then try changing permission to “/g2data/smarty/templates_c“. After this step delete all content including directory inside “/g2data/smarty/templates_c” directory. This should fix ERROR_PLATFORM_FAILURE problem.
February 4th, 2008 Bala Krishna Posted in Blogging, Browser Stuff, Bug Fix, CentOS, Crawler, FFMPEG, FFMPEG-PHP, Linux, Linux Commands, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, VBScript, Web Development, Web Directory, Web Hosting, Web Technology, uber-uploader, windows xp No Comments »
You may receive “Failed To Find Flength File” error during file upload using uber uploader. The main cause of this problem is due to apache mod_security enabled on your host. Apache mod_security may prevent writing flength file duing file upload. This will cause uploder to determine file length for percentage calculation and uploader produce file length error.
Solution: This problem can be easily solve by turn off mod_security through .htaccess . We need to turn off mod_security for uploader directory. To solve this problem, create .htaccess file with the following line and upload file to the directory where uploader files reside.
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn’t needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
January 24th, 2008 Bala Krishna Posted in Advertising, Blogging, Bug Fix, CentOS, FFMPEG, FFMPEG-PHP, Firefox Add-On, General, Gmail Stuff, Linux, Linux Commands, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, VBScript, Web Design, Web Development, Web Directory, Web Hosting, Web Technology, Word Press, Wordpress Plugin, Wordpress Theme, Wordpress Widget No Comments »
Word Press default widget does not allow you to use php code. You can do this by simply editing template files but this is not overall solution. By doing this you are loosing beauty of widget drag and drop functionality. The Samsarin PHP Widget available as plug-in that allow user to create new widget and add php code inline with text.

Installation & Usage
- Go to the Samsarin PHP Widget website.
- Download and Extract the zip file in wordpress plugins directory.
- Enable the Samsarin PHP Widget from Admin Panel.
- In your admin console, go to Presentation, and then go to Sidebar Widgets
- Create number of PHP Widgets you are required to add.
- Drag one of the available Samsarin PHP Widgets to your sidebar.
- Click on the widget button add title and php code.
- All you have done..
January 17th, 2008 Bala Krishna Posted in Blogging, Browser Stuff, Bug Fix, Crawler, Error Log, FFMPEG, FFMPEG-PHP, General, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, windows xp No Comments »
Tar is commonly used archive in Linux/Unix platform. Tar is capable to create new archive and can add or extract files files in a archive .
Syntax
tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tarfile ] [ exclude-file ] {-I include-file | -C directory | file | file }
tar r [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] {-I include-file | -C directory | file | file }
tar t [ BefFhiklnqvX [ 0-7 ] ] [ tarfile ] [ exclude-file ] {-I include-file | file } …
tar u [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] [ tarfile ] file …
tar x [ BefFhiklmnopqvwX [ 0-7 ] ] [ tarfile ] [ exclude-file ] [ file ... ]
Switches
Read the rest of this entry »
January 13th, 2008 Bala Krishna Posted in CentOS, Crawler, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Financial, Firefox Add-On, General, Gmail Stuff, Linux, Linux Commands, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Page Rank, Tips and Tricks, Web Development, Web Technology, Window Application, windows xp No Comments »
Like the windows, gz is common compression utility in Linux. This guide is to extract content of the .gz file by gunzip utility. Here is the command to see and extract content of the gz file.
View gz file content
gunzip -c mybackup.gz
Extract file file content in another file. you can use different file extension depend on the content of file.
gunzip -c mybackup.gz > mybackup.sql
Compress the mybackup.sql file as mybackup.gz in the current directory.
gunzip -c mybackup.sql > mybackup.gz
Here is the full details of the gzip command.
Read the rest of this entry »
January 10th, 2008 Bala Krishna Posted in ASP.Net, Asp.Net Tips, Blogging, Browser Stuff, Bug Fix, Dot.Net, FFMPEG, FFMPEG-PHP, Linux, Linux Commands, Operating System Tutorial, Tips and Tricks, Web Design, Web Development, Web Hosting, Web Technology, Window Application, windows xp No Comments »
To run ffmpeg commands in asp.net you need to use Media Handler class. Here is an example how to use media handler class to run ffmpeg commands.
//Create media handler object of Media_handler class
Media_handler mymediahandler=new Media_handler();
// Get web site application path
string webapppath =Server.MapPath(Request.ApplicationPath);
//Get ffmpeg.exe full path from mapping
string ffmpeg_path=HttpContext.Current.Server.MapPath(”ffmpeg.exe”);
//Run FFMPEG command by calling Execute_FFMPEG function of Media_handler class
mymediahandler.Execute_FFMPEG(ffmpeg_path, “-i c:\\clock.avi -vcodec mp3 c:\\clock.flv”);
January 2nd, 2008 Bala Krishna Posted in Browser Stuff, Bug Fix, CentOS, Crawler, FFMPEG, FFMPEG-PHP, FLVTool, Firefox Add-On, General, Google, Linux, Linux Commands, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology No Comments »
Installing FFMPEG from the source in window platform is easy as you do for other window application. Here is the complete instructios how to build FFMPEG in windows. To install FFMPEG on windows you need to install third party MinGW and MSys library that is compatible with GCC. This library is required to build ffmpeg in windows and support shell to run commands.
Download MinGW and MSys
MinGW: MinGW Direct download link
MSys: MSys Direct download link
SF Link: Sourceforge MinGW MSys Package Download Page
FFMPEG: FFMPEG Download fully patched version

Building FFMPEG
It is time to install ffmpeg. Extract downloaded ffmpeg archive in c: folder. If you have not downloaded yet please download now then run MSys.bat file from C:\msys\1.0\ folder. This location will be depend on you MinGW and MSys installation. In the command prompt run the following commands:
$ cd c:/ffmpeg-0.4.7
$ ./configure –extra-cflags=”-mno-cygwin -mms-bitfields” –extra-ldflags=”-Wl,–add-stdcall-alias” –enable-mingw32 –enable-shared –disable-a52 –disable-pp –disable-ffserver –disable-ffplay
$ make

December 28th, 2007 Bala Krishna Posted in Bug Fix, CentOS, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Google, Linux, Linux Commands, Tips and Tricks, Web Development, Web Hosting, Web Technology, Wordpress Theme 3 Comments »
Clip-Share is mature script to run your own video sharing website like YouTube. This script is available variety of features and options at low cost. Unfortunately, they don’t have good knowledge base to short out technical problems related to script installation. The common problem with Clipshare and other video sharing script is in video upload and conversion module. Here is the error i received while i tried to upload video. The script produce error in initialization of progress bar.
Error:Â “returned status code 500 Internal Server Error”

Possible Solution:
- Check cgi-bin directory and files permission. In the script, upload progress monitored by perl script so that cgi-bin directory and files inside directory should have 755 permission. Make the changes if applicable.
- Check temp and video path setting in “cgi-bin/configs/uu_default_config.pm” file. It should point to correct folder. Both these folder should be writable by webserver.
temp_dir                => ‘/home/domain/public_html/tmp/’,
upload_dir              => ‘/home/domain/public_html/video/’,
- Check flvideo folder permission in your installation directory. It should be writable by webserver.

December 20th, 2007 Bala Krishna Posted in CentOS, FFMPEG, FFMPEG-PHP, FLVTool, Godaddy Hosting, Hardware, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Design, Web Development, Web Hosting, Web Technology No Comments »
WHM is a Web Host Manager tool that allows server administrators to quickly and easily add new web hosting accounts on a WHM enabled Web server. Here is steps to create new hosting account without hassle.
- Log into WHM account with your username and password.
- Click the Create a New Account link from the Account Functions menu.
- Enter the domain name into the Domain field, and the username into the UserName field. The UserName field will initially default to a name based on the domain you enter, but you may change it if you wish.
- Enter a password into the Password field, and the disk quota into the Quota field. The Quota field, measured in MegaBytes, controls how much hard-disk space the new account is allotted.
- Decide whether to allow CGI access, Shell access and FrontPage extensions, then check the respective boxes accordingly.
- Decide on limits for the following boxes and enter values for each in the text field for each: Max FTP Accounts, Max Email Accounts, Max Email Lists, Max SQL Databases and Max Sub Domains.
- Enter the maximum bandwidth for the account (in MegaBytes) into the Bandwidth Limit field.
- Click on “Create” button.

December 19th, 2007 Bala Krishna Posted in FFMPEG, FFMPEG-PHP, Hardware, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, Web Design, Web Development, Web Technology, Word Press No Comments »
There are lot of commands to manage users in Linux box but i could not find a single command to list all users in system. The “users” command only show login users not all user in system. After a tremendous research i found a way to list down all users in command shell. This is necessary in some event when you don’t know users in Linux box.. for example. you want to see Cron job setup in Linux box for a particular user. The Linux does not have any command to list down Cron job unless you know user name.
List Cron Job of current login user
# crontab -l
List Cron Job of other user from root
# crontab -u username -l
Here is various list command to get user list.
- All user list including special user created.
cat /etc/passwd
- Only show normal users created by root. Normal user id is 500 or above so this command will normal users.
cat /etc/passwd |grep 500*
- Shows users with a home directory.
cat /etc/passwd | grep /home | cut -d: -f1