How to run Android Applications on Windows PC

Android is now World’s No 1 Mobile Operating System. To take advantage of this ever-increasing applications on various platforms like Windows OS is already getting attention. To run Android applications on Windows platfor BluStacts is out now enabling users to run Android apps on Windows Computers with instant switching between the two.

BlueStacks helps Windows Users to run Android by enabling Android applications on x86 based tablets, notebooks, netbooks, with the new hybrid convertible form factors. BlueStacks completely elimates the need to carry two devices so consumers gets benefit of getting both Windows and Android features on Single PC.

Download :

Include flash file in HTML

Before few days I have a requirement to include flash file in my html code.

To fulfill my requirement I have used html embed tag as under:

<object width="550" height="400">

<param name="movie" value="MyFlahFileName.swf">

<embed src="MyFlahFileName.swf" width="550" height="400">




Now to use the above example one should have to put proper path of their flash file at “MyFlahFileName.swf”.

Hope this will help you.

Import /Export csv file into mysql using php

If you are in trouble due to importing csv data into your mysql database and if you want do some operation on your csv data but you face limitation of csv then this post is for you because in php importing data from csv is very tedious work. And in csv operations on data are also difficult to handle.
MS Excel helps in csv data management and operations but it requires knowledge of excel functions. I had faced this trouble in our project where we needed to import csv file that contained product data with magento dataflow import export profile, but our product.csv file was not in proper format. If we do changes in csv file manually we require a lot of time so, we finally decided to first import csv data in mysql database and then with help of sql query make all the changes into data then we export data. We spent a lot of time to get this to work.  That’s why I am uploading this code to help people who are in are having same problems as we had with importing and exporting data into mysql. This code will also help magento users who do not have properly formatted csv files. For that first import data into mysql with given script then create a new table with mysql query as per reqired format then export your mysql data into csv format.

downlaod script for import/export csv into mysql

IE hack for CSS padding property

It is very frustrating sometimes when we do everything right and by the book but still our page will look different in one browser and totally different in another. Here is a very simple hack to implement your CSS padding property perfect in all the versions of Internet Explorer.
Say you have an image or a text that is being displayed with 10 pixels top-padding on your page. It looks fine on other browsers but wouldn’t implement properly in IE7 (or some other versions of IE). It is also known as double padding problem because your IE displays double padding than originally implemented. To remove that fault you can write your css properties as follows:

      padding-top: 10px;
     *padding-top: 10px; // Read by IE7 and earlier versions
     _padding-top: 10px; // Read by IE6 and earlier versions

Properties prefixed by asterisk (*) will be read by IE7 and earlier versions; prefixed by underscore will be read by IE6 and earlier versions and your padding will be implemented perfectly.
Before using IE hacks it is advisable to make sure that you are not making any mistakes in your coding. If everything is working alright and coded perfectly and still you don’t get desired output, then only go for hacks.

Happy coding. 🙂

Posted in CSS. Tags: . 1 Comment »

Magento: Change copyright text at footer

Hello friends,

In last week while working with magento store, we have a requirement to change the copyright text at footer.

At that time I haven’t proper idea to change copyright text at footer.

So I have searched the web and found proper way to satisfy our requirement.

And here is the proper way:

First go to your magento store admin.

Then click on System -> Configuration from header menu.

Now go to Design from left side.

And change Footer -> Copyright text according to your requirement.

Hope this will help you.

Posted in Magento. 1 Comment »

PHP: Email Validation

Hello friends,

Just before few days, while working with a form, we required to validate email address.

To satisfy our requirement, we have searched the web and find a “filter_var()” function.

And to validate email address using “filter_var()” function, we have passed two arguments in it.

Where first argument is an email address and second is a type of filter.

For Example:

filter_var('abc@def.ghi', FILTER_VALIDATE_EMAIL);

The above code returns email address on success and returns false if the given email address is not proper.

Hope this will help you.

Customize front page of your website [Joomla]

For Customizing joomla front page, there are so many methods and modules for customizing home page with your articles layout. But below code works at module level where you want to display some module only on front page, not other pages and some module display only on other pages except front page then this code is useful.

You can write the code given below in index.php in your template folder where you want to put module on front page, put below condition with your HTML code in index.php file.

Here i have shown two methods. Both are working well.

//HTML code
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
<?php } ?>

2. This method works front-page component.

if ($view=='frontpage')