Monthly Archives: June 2009

Mobile Search Engine

Best Search Engines

Happy Searching……  🙂

Leave a comment

Posted by on June 27, 2009 in Mobiles, Web Application


Tags: , , , , , , ,

Run C program in Linux

This is the simple C file “svnlabs.c” to execute on linux terminal


int main()
int i;

printf(”n%d %s”,i,””);

return 0;


[root@localhost ~]# gcc svnlabs.c
[root@localhost ~]# make svnlabs
cc svnlabs.c -o svnlabs
[root@localhost ~]# ./svnlabs

[root@localhost ~]#

Leave a comment

Posted by on June 27, 2009 in Linux, Tips, Tricks


Tags: , , ,

Run Java program in Linux

This is the sample java file “” to be executed on linux command line…..

import java.lang.*;

public class Svnlabs

public static void main(String args[])



[root@localhost ~]# javac
[root@localhost ~]# java Svnlabs
[root@localhost ~]#

Leave a comment

Posted by on June 27, 2009 in Linux, Tips, Tricks


Tags: , , , ,

wine – run Windows programs on Linux

wine – run Windows programs on Linux/Unix

wine program.exe [arguments …]
wine –help
wine –version

wine loads and runs the given program, where the program is a DOS, Win-       dows 3.x, or Win32 executable (x86 binaries only).

This will display all the output in a  separate  win-dows (this requires X11 to run).

Install wine on linux (RedHat, Fedora, CentOS…)

# yum install wine

# man wine


# wine /opt/test.exe

Leave a comment

Posted by on June 27, 2009 in Linux, Tips, Tricks


Tags: , , , , , ,


Xmanager is a powerful and easy-to-use PC X server that runs on Windows platforms. It allows you to bring remote Unix/Linux desktops to your Windows PC seamlessly. You can also run remote X applications securely through the SSH (Secure Shell) protocol even when your Windows PC is inside a private network and a firewall is between your PC and the remote server.



Xmanager is used in various fields of work including large-scale craft and semiconductor designing and server management in an IDC (Internet Data Center). It is widely used by server administrators of universities and corporations, and personal users who simply want to connect to remote hosts over the internet. Xmanager is an easy and powerful PC X server designed to satisfy the needs and wants of these various users.


1 Comment

Posted by on June 22, 2009 in Linux, Tips, Tricks


Tags: , , , , , , , , ,

Lab Tips

1. Delete all information from databse related to, if deleting user or any content from CMS.
2. Use PDO, ADO, Pear, Zend etc. library to connect to database.
3. Take regular backup for database.
4. Use better naming convension.

1. Use better naming convension.
2. Take regular backup for folders.
3. Protect project’s folder to unauthorized access, just put index.html or use apache security.
4. Folder name are case sensitive on servers like linux.
5. Don’t use 0777 permission on any folder use 0755.

1. Use better naming convension.
2. Use better documentation for web files, apply comments for coding and indent it.
3. Make consistency in DB, Filesnames, Variables, Page design.
4. Take regular backup for files.
5. Use caching for file to make site speed more fast.
6. Create debug files .txt, .log, .html etc. (fopen() | fwrite()) for tracking logical bugs.

1. Use version number in image URL to avoid image caching.
(<img src=”san.jpg?ver=123″ alt=”san” />)
2. Images should have Etags, Max Age and far future expired header for caching.
3. Use a global funtion to display images ( draw_images($src, $attr); )

1. Use better naming convension.
2. Use encryption class (md5, sha, base64 etc. with salt) for storing password and important data into database.
3. Spidering web page (Curl, Pear etc.) is used for getting content of web page.

1. Use function or include files for multiple use of web data to make reusability, integrity and productivity.
2. Use PHP session ID, remote IP and page name on increment views/hits.
3. Make function to load CSS, JS, Links, Forms & Elements, Images, Iframes etc. on webpage. (load_css_file(), load_js_file()….)
4. Looping should be start from Left to Right…

1. Use better naming convension.
2. Use defined variables/constants for folder names, DB table names, Files and global variables (avoid hard coding, be happy coder).

1. Avoid inline CSS on pages because it effect the page load time & speed also it matter in W3C validation.
2. Combine multiple CSS file in a single file with cached version.
3. Avoid conflict in CSS.
4. Avoid CSS expressions.
5. Use CSS Sprite for images.

1. Avoid inline JS on pages because it effect the page load time & speed also it matter in W3C validation.
2. Combine multiple JS file in a single file with cached version.
3. Use valid syntax for browser checking in javascript.
4. Avoid duplicate JS function.

1. Minimize the errors in HTML closing tags etc.
2. Use proper hyrarchy for HTML tags.
3. Use Math.random() in Ajax URL as parameter.
4. Send URL as parameter after encodeURIComponent() similar to urlencode() in PHP.
5. Use file_get_contents($url) for first time filling Ajax DIV.
6. Use new window to display javascript alert debug messages as append messages in log files.
7. Use Ajax Cached version.

1. On login page username/password should be case sensitive.
2. Open terms of use page in popup window on registration page.
3. Use better UI for Errors/Success messages.
4. Use cancle button near submit button.
5. Use captcha code on pages by session value to avoid Spams.
6. Put valid ALT values in IMG tags.
7. Use Enter button event on form’s submit control.
8. Use scrolling DIV on webpages for better GUI.
9. Use returnto parameter for redirecting page after login.
10. Use remember option on login page.
11. Use valid/correct statements in error/success/warning messages.
12. Use dynamic Title and Meta tags on page.
13. Use error pages like 404, 500 etc. by .htaccess
14. Use good NO/Blank image for image not found.
15. Use htmlspecialchars() in strings displayed on webpages for W3C validations.
16. Use favicon for webpages for better GUI.

1. Use good words like Dear, Regards, Thanks etc. in emails.
2. Attach some links, images, videos etc. for proper understanding.
3. Use reference and ref. # in emails.

1. Use IDE like APTANA, Dreamweaver, Zend Editor.
2. Use DW’s context menu for HTML/PHP code to avoid W3C errors/warnings.
3. Use FireFox plugins for development (Web Developer, Firebug, Scribefire, ColorZilla, FireFTP, S3Fire, ElastoFox, Gtalk, GrabScreen, YSlow, FireShot etc.) for site’s speed, performance and optimization.
4. Make sure we are using secure FTP, Email Client….
5. Command Line tools (putty, CMD etc.) are very good utilities for batch processes and large files.

1. View source and display function (echo, print etc.) are very useful for finding bugs and faults.
2. Try to search visual concept like jQuery, Ajax etc. on google images search engine.
3. Use google operator for getting better results.

Keep browsing, happy coding…………

1 Comment

Posted by on June 21, 2009 in Linux, MySQL, php, Tips, Tricks, Web Services


Tags: ,

Automating Amazon S3 Backup on Windows with CloudBerry S3 Backup

CloudBerry S3 Backup is a Windows application that automates backup and restore
processes to Amazon S3 secure cloud storage. CloudBerry S3
Backup provides a powerful Backup and Restore program designed
to leverage Amazon S3storage to make your disaster recovery plan simple,
reliable, and affordable.

Disaster recovery planning is often times an afterthought that comes to
light when disaster strikes.

Very seldom do companies fully recover from loss of critical data which could
lead to loss of business.


What is Amazon S3

To use CloudBerry S3 Backup you should create your Amazon S3 account. Amazon S3 is unlimited
secure internet storage that leverages Amazon infrastructure. Amazon S3 is
primarily designed for software developers who want to take advantage of
scalable internet storage in their applications. However, the products like
CloudBerry S3 Backup unleash the power of Amazon S3 and make it available for
less sophisticated consumers.

There are no sign-up or minimum fees. You only pay
for what you use. In many cases your monthly checks will be less than a dollar!
The costs start at $0.15 per GB of data storage a month and ONLY (!) $0.03 per
GB of data transfer until June, 30 2009. The data transfer costs will return
to the normal $0.1 per GB as of July, 1 2009. So hurry up to do the initial

Check here
for more info on Amazon S3 pricing.

With CloudBerry S3 Backup you can

  • Setup your backup process in a couple of minutes
  • Strong data encryption protects your data
    from unauthorized access
  • Data compression allows you to lower your Amazon S3
    storage and transfer costs
  • Scheduling capabilities automate the backup
  • Backups are available for recovery 24/7
  • Intuitive interface provides easy file and folder
    selection capabilities
  • No proprietary storage format. You can access your
    files using other Amazon S3 tools.
  • Control bandwidth utilization to do other tasks
    online when backup is running
  • Support multiple storage clouds in the future such
    as Microsoft Azure, Sun Cloud Storage Service


This is a list of CloudBerry S3 Backup features.

  • Easy installation and configuration
  • Scheduling capabilities
  • Data encryption
  • Data retention schedule
  • Secure online storage
  • Backup verification
  • Alerting notifications
  • Indication for successful/failed backup status
  • The ability to restore to a particular date
  • Backup open files
  • Bandwidth throttling
  • Support SSL for secure data connection
  • Minimize to tray
  • Built-in feedback form


CloudBerry S3 Backup is a fully functional backup product that can help computer users ranging from private individuals to small and mid size business leverage Amazon S3 secure and reliable Cloud storage to automate data backup and restore processes. If you are considering using Amazon S3 for data backup purposes it is a good reason to start now and download CloudBerry S3 Backup from CloudBerry Lab website at


Posted by on June 10, 2009 in 1, Amazon S3, php, Web Services


Tags: , , , , ,