How To Open 2 Gmail accounts with the same Firefox Version

Here’s the trick below to open multiple gmail accounts with the same version of firefox.

  1. Open the Run dialog. In linux, press Alt+F2. On Windows, press WinKey+R.
  2. In the dialog box, type “firefox -p -no-remote”. This will bring up firefox’s profiles dialog box.
  3. Click on “Create Profile” and follow the wizard. Lets assume you named the profile as “gmail2“.
  4. Now close the dialogs and return to desktop.

Now, open the Run dialog again. In the dialog box, type “firefox -p gmail2 -no-remote“.

“-no-remote” option is very important because it creates an isolated session that is different from the currently open firefox windows of other profiles. If -no-remote option is not given, then a new window of the currently running profile or the default profile is opened, where session sharing happens (which we don’t want).

Now, since sessions aren’t shared between different profiles, you can open two accounts and happily have them.

PHP – Prevent SQL Injection

sqlinjectionSQL injection vulnerabilities have been described as one of the most serious threats for Web applications. Web applications that are vulnerable to SQL injection may allow an attacker to gain complete access to their underlying databases.

Because these databases often contain sensitive consumer or user information, the resulting security violations can include identity theft, loss of confidential information, and fraud. In some cases, attackers can even use an SQL injection vulnerability to take control of and corrupt the system that hosts the Web application.

SQL injection refers to a class of code-injection attacks in which data provided by the user is included in an SQL query in such a way that part of the user’s input is treated as SQL code.By lever-aging these vulnerabilities, an attacker can submit SQL commands directly to the database. These attacks are a serious threat to any Web application that receives input from users and incorporates it into SQL queries to an underlying database.

The cause of SQL injection vulnerabilities is relatively simple and well understood: insufficient validation of user input.

ypes of SQL injection attacks:
__________________________

____

Union Query:
In union-query attacks, an attacker exploits a vulnerable parameter to change the data set returned for a given query. With this technique, an attacker can trick the application into returning data from a table different from the one that was intended by the developer.

Attackers do this by injecting a statement of the form: UNION SELECT <rest of injected query>.

Because the attackers completely control the second/injected query, they can use that query to retrieve information from a specified table. The result of this attack is that the database returns a dataset that is the union of the results of the original first query and the results of the injected second query.

1:
2:
3:
SELECT accounts FROM users WHERE login='' UNION
SELECT cardNo from CreditCards where
acctNo=10032 -- AND pass='' AND pin=

Assuming that there is no login equal to , the original first query returns the null set, whereas the second uery returns data from the CreditCards table. In this case, the database would return column cardNo for account 10032. The database takes the results of these two queries, unions them, and returns them to the application.
In many applications, the effect of this operation is that the value for cardNo is displayed along with the account information.

Read more about this article

How To Create Stylesheet only for IE

Sometimes it is better to create alternate css files for different browsers (esp. IE), than using hacks. It is important in big projects, when client requires the site to be fully cross-browser. The basic technique to attach an IE-Only stylesheet is using the HEAD section conditions:

CSS FILE LOADED FOR BROWSERS OTHER THAN Internet Explorer:

<![if !IE]>
<link rel=“stylesheet” type=“text/css” href=“NOT-IE.css” />
<![endif]>


 IE 6 ONLY CSS FILE:
<!??[if IE 6]>
<link rel=”stylesheet” type=”text/css” href=”IE-6-SPECIFIC.css” />
<![endif]??>

IE 5 ONLY:

<!??[if IE 5]>

<link rel=”stylesheet” type=”text/css” href=”IE-5-SPECIFIC.css” />
<![endif]??>

IE 5.5 ONLY:

<!??[if IE 5.5000]>

<link rel=”stylesheet” type=”text/css” href=”IE-55-SPECIFIC.css” />
<![endif]??>

VERSION OF IE VERSION 6 OR LOWER: (I find this one pretty handy)

<!??[if lt IE 7]>

<link rel=“stylesheet” type=“text/css” href=“IE-6-OR-LOWER-SPECIFIC.css” />
<![endif]??>

IE 7 ONLY:

<!??[if IE 7]>
<link rel=“stylesheet” type=”text/css” href=“ie7.css” />
<![endif]??>

The biggest advantage of using this methos is that it passess W3C validation and you don’t have a mess of different hacks in your css code.

10 Steps to Professionalise Your Joomla Web Site

Create a new favicon.ico.
Yes, the default black Joomla logo is pretty, but people bookmarking your site they need to see a icon that identifies your site rather than Joomla or others using Joomla default icon. If you don’t want to design on a 16×16 pixels scale, there are sites that will generate a favicon for you. Then upload it to /template//favicon.ico
Make sure you backup your database everyday.
We recommend the JoomlaPack – AJAX powered backup and restore

Don’t cut and paste from Microsoft Word.
It may be easy but MS Word produces some of the worst HTML ever. Cut and paste into a text editor such as Notepad or WordPAD before adding that content to your site.

Make sure you put the Search button in an observable position.
A search of the latest 20 sites on the Joomla forums showcase reveals that more than half doesn’t have a clearly visible search button.  Low on the left or right hand column is not good places. Try and put it close to the menu so that people’s eyes are logically drawn to it.

Utilize “Read More”.
Lots of visitors will never get past your homepage. Make sure that your homepage is not a long text area and start creating some “tease” –short content. In general, articles should not be longer than 4 or 5 sentences, followed by a “Read More…” link.

Content >> Unpublish the PDF and Print options.
These generate duplicate content problems in Google and may delay your SEO success.

Server >> Use Server Defaults.
Setting this to 777 or 775 creates a big security hole on your site.
Metadata. Don’t overload here. Keep it to a maximum of 6 description words and keywords. These will show on every page and you want to allow each page to have its own keywords.

Cache. Turn cache on from Global Configuration-> System.
Your site will run faster. The cache function saves copies of the web page as file so that users don’t have to load your whole page and make many database connections every time they visit.

Statistics. Turn them off!
T
hey’ll slow your site performance down. Go and get Google Analytics instead. Click here to see how to insert Google analytics to your joomla site.

10 useful php framework for Rapid Web development

PHP is everywhere . PHP is popular server-side scripting language,mostly you seen in wordpress blog platforms. wordpress blog platforms totally build in PHP. PHP is a powerful server-side scripting language for creating dynamic and interactive websites. It is the widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.

Frameworks allow for structure in developing applications by providing reusable classes and functions which can reduce development time significantly. PHP is perfectly suited for Web development and can be embedded directly into the HTML code. The PHP syntax is very similar to Perl and C.

CodeIgniter PHP Framework:

CodeIgniter

CodeIgniter: an open source Web Application Framework that helps you write PHP programs. CodeIgniter is a very light, well performing framework.The main motive of CodeIgniter enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks.  CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

CakePHP PHP Framework:

cakephp

CakePHP is an open source web application framework for producing web applications written in PHP . CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

Zend PHP Framework:

Zend-Framework

Zend Framework (ZF) is an open source, object-oriented web application framework written in PHP 5 and released under the New BSD License. Zend Framework (ZF) is an AJAX support through JSON . Zend Framework aims to be the premier place to consume & publish web services.   Zend Framework (ZF) have Flexible architecture which No configuration files required to start using . Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and using  widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers  like StrikeIron and ProgrammableWeb.

PHPDevShell PHP Framework:

PHPDevShell

PHPDevShell is an Open Source PHP framework for the development of admin-based applications.  The main aim of PHPDevShell is to developed admin based applications as plugins, where speed, security, stability and flexibility are essentials. It is designed to have a very easy learning curve without complicated new terms to learn.

The need for a light, fully functional GUI with limitless configuration brought forward PHPDevShell.  PHPDevShell is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation .

Symfony PHP Framework:

Symfony

Symfony is a web application framework for PHP projects. The main aim of Symfony is to developed robust applications in an enterprise context and speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure. This means that you have full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized.  symfony easy to install on any configuration with very small number of prerequisites . you just need Unix or Windows with a web server and PHP installed. Symfony is compatible with almost every database system. Symfony completely free and released  under the MIT license.

Yii PHP Framework :

Yii

Yii is a high-performance component-based PHP framework best for developing large-scale Web applications. Yii comes with a full stack of features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, authentication and role-based access control, scaffolding, input validation, widgets, events, theming, Web services, and so on. Written in strict OOP, Yii is easy to use and is extremely flexible and extensible.

Akelos PHP Framework :

Akelos-PHP-Framework

The Akelos PHP Framework is a web application development platform based on the MVC (Model View Controller) design pattern.  The main aim of Akelos PHP Framework is to Speed up the creation of complex web applications with writing less code. Provide all the means for creating applications that can run on cheap PHP4/PHP5 hosts and in the developer desktop without complex configurations. Akelos PHP Framework help you to creating and maintaining applications with data and views in multiple languages.

PRADO PHP Framework :

PRADO-PHP-Framework

PRADO is PHP Rapid Application Development Object-oriented web application framework for producing web applications written in PHP 5 . PRADO is a component-based and event-driven framework for rapid Web programming in PHP 5. PRADO reconceptualizes Web application development in terms of components, events and properties instead of procedures, URLs and query parameters.

A PRADO component is a combination of a specification file (in XML), an HTML template and a PHP class. PRADO components are combined together to form larger components or complete PRADO pages.

The main aim of PRADO PHP Framework is to instantiating prebuilt and application-specific component types, configuring them by setting their properties, responding to their events by writing handler functions, and composing them into application tasks.

Zoop PHP Framework :

Zoop-PHP-Framework

Zoop is a recursive acronym which stands for Zoop Object Oriented PHP Framework. Zoop Framework is stable, scalable, and portable and It’s designed to be fast, efficient, modular, and extensible. Although it predates the recent proliferation of PHP MVC frameworks, it not only supports but encourages separation of display, logic and data layers. Zoop is a well-organized, fully-featured front controller. A Smarty based view layer enhanced your form generation and rich UI controls.

Screencast: Building a PHP contact form with the Zoop Framework :

QPHP PHP Framework :

QPHP-PHP-Framework

QPHP (MVC, Component based, Ajax enabled) PHP framework. QPHP stands for Quick PHP and is a MVC framework similar as architecture to ASP.NET.  This framework tries to get the best of the above platforms as well as to avoid the problematic parts. Basically it:

  • Brings the elegance of Java and C#
  • Drops all Perl like bizzare statements that other PHP frameworks use
  • Relies extensively on OOP concepts

25 Alltime need WordPress Plugins!!!

hi frends

i have collected this plugins from different sources. i hope you like it and use it in your blog.

  1. Akismet :Is a spam filter that checks your comments against the Akismet web service to see if they are spam or not, also checks the trackbacks for spam.
  2. Ultimate Tag Warrior : Best Tag system for wordpress. You can use categories and tag system on one website which is very cool.
  3. Exec-PHP : Execute PHP code in posts or static pages. When this plugin is on you can add php code to static pages or even posts.
  4. Google Sitemaps : This generator will create a Google compliant sitemap of your WordPress blog.
  5. No Ping Wait : Speeds up posting by moving generic pings to execute-pings.php.
  6. PXS Mail Form : Creates a mail form with multipart verification, various messages and an auto redirect on successful send. It is much more easy to contact with website author.
  7. Super Archive : Implements a dynamic archive, the best archives system i know.
  8. SRG Clean Archives : Super clean archive. Very simple and useful.
  9. WP lightbox 2 : Overlay images on the current page for WordPress. You can turn it on and all images are now working with it.
  10. fQuick : Sidenotes, short notes for WordPress. You can place it for example in sidebar.
  11. CG-FlashyTitles : Nice graphical flash titles for WP. Very easy to install.
  12. flickrRSS : Integrate the photos from a flickr rss feed into your site. Show flickr photos on your website.
  13. Feedburner Feed Replacement : Forwards all feed traffic to Feedburner while creating a randomized feed for Feedburner to pull from.
  14. Gravatars : Adds a nice looking graphic next to the persons comments.
  15. Get Recent Comments : Display the most recent comments or trackbacks with your own formatting in the sidebar or where you want.
  16. WP Paginate : Create pagination for pages. It is the best plugin for that makes navigation easy with many static pages.
  17. wp-notable : Add social bookmark links such as digg or del.icio.us to each blog entry
  18. Adsense-Deluxe : Support for adsense ads and allows you to add ads to posts.
  19. WP-ContactForm : A way for people to contact you without actually emailing you, saves time, and great way to avoid spam.
  20. PodPress : Got a podcast? PodPress makes it really easy to post podcasts, also includes an inline media player.
  21. Related Posts : Link to related posts on your blog, which is based on the content of the post.
  22. WP-Cache : An extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests.
  23. Live Comment Preview: Live Comment Preview Plugin is the simplest way to get live comment previews on your site. The preview is generated as the user types the comments.
  24. Reply to Comments: This plugin creates a “reply to comment” link for all the comments and allows readers to reply to a comment just below the comment itself.
  25. Popular Contest / Top Posts by Category: Popularity contest will help you see which of your posts are most popular and the Top posts plugin displays your top rated posts categorywise based on comments or page views.