Sunday, January 22

Top 10 richest people in the world


Top 10 richest people in the world

Top 10 richest people in the world, Bill Gates at no. 1: Bloomberg ranking
  • Bill Gates
  • Amancia Ortega
  • warren Buffett
  • Jeff Bezos
  • Chaeles Koch
  • David Koch
  • Carlos Slim
  • Mark Zuckerberg
  • Larry Ellison
  • Ingvar Kamprad
Free Download

Top 10 Best Hindi Comedy Movies of All Time


Top 10 Best Hindi Comedy Movies of All Time

  • 1. Andaz Apna Apna
  • 2. Angoor
  • 3. Chupke Chupke
  • 4. Hera Pheri
  • 5. Gol Maal
  • 6. Munna Bhai MBBS and Lage Raho Munna Bhai
  • 7. Padosan
  • 8. Jaane Bhi Do Yaaro
  • 9. 3 Idiots
  • 10. Chameli Ki Shadi

Free Download

ViewData, ViewBag and TempData in ASP.Net MVC

ViewBag

– ViewBag is used to send a small amount of data to the view.
– There may be some situation where you want to transfer some temporary data to view which is not included in the model object.
– The viewBag is a dynamic type property of ControllerBase class.
– It does not retain value when redirection occurs,it is available only for Current Request.
– ViewBag is a dynamic property and it makes use of the C# 4.0 dynamic features.
public class DemoController : Controller
{
IList CarList = new List() {
new Car(){ CarName=”i10″, CarColor=”Black”,CarMileage=18.2 },
new Car(){ CarName=”EON”, CarColor=”Silver”, CarMileage=18.2 },
new Car(){ CarName=”Swift”, CarColor=”Red”, CarMileage=18.2},
new Car(){ CarName=”Verna”, CarColor=”Black”, CarMileage=18.2},
new Car(){ CarName=”Ciaz”, CarColor=”Silver”, CarMileage=18.2}
};
public ActionResult Index()
{
ViewBag.TotalCar = CarList.Count();
return View();
}
}

ViewData

– ViewData is similar to ViewBag, It can be used to send data from controller to view.
– It is a dictionary , which possese key-value pairs, where each key must be string.
– Viewdata last long only for current http request.
public class DemoController : Controller
{
public ActionResult Index()
{
ViewData[“Simple”] = “This string is stored in viewData.”;
return View();
}
}
To get back value from viewData write below line in view.

@ViewData[“Simple”]

TempData

– TempData retain value across subsequent HTTP Request
– It can be use to maintain data between controller actions as well as redirects.
– It internally stores data in session but it get destroyed earliar than session.
In the below example, a string value is stored in the TempData object in JupiterController
and it is redirected to EarthController and finally it is displayed in View.
public class JupiterController : Controller
{
// GET: First
public ActionResult Index()
{
TempData[“Message”] = “Jupiter is largest planet in solar system”;
return new RedirectResult(@”~\Earth\”);
}
}
public class EarthController : Controller
{
// GET: Second
public ActionResult Index()
{
return View();
}
}
View of EarthController
<html>
<head>
<meta name=”viewport” content=”width=device-width”/>
<title>Solar System</title>
</head>
<body>
<div>
@TempData[“Message”];
</div>
</body>
</html>

Saturday, January 14

How to Get AdSnse Account Approved for Blogspot with Little Trick

Get Google Adsense Approval within 3 days – Top 12 Working Strategies

Google AdSense! One of the most easiest, trusted and professional way of earning money by showing your passion towards writing and sharing the knowledge. Google AdSense is trusted by many advertisers and publishers from the past few years, and usually they never accept anyone randomly who is trying to apply for an account. You need to show them the most professional approach of getting your account accepted, else Google will simply throw your application aside.

We all know that AdSense contextual ads are best-paying Ad program for Bloggers. Though, I have already shared my tutorial on: Create Adsense account but question remains the same: How to get Adsense account approval for BlogSpot bloggers, getting an AdSense approval is not that easy. Google AdSense have some strict account approval policies, and one of them is blog should be six months old. Though, it’s not always true, and if you have created a quality Website, you can get an approved AdSense account easily.
The major problem is for BlogSpot bloggers, for some reasons Google AdSense, doesn’t entertain BlogSpot bloggers. One of the most common reason BlogSpot bloggers get is Issue with page type.  One easy way to get AdSense account with a BlogSpot blog is grabbed a custom domain, create a professional Email address and apply for AdSense account. This works, in 70% of cases. But, in case if you don’t have money to spend on a domain, here is a free trick which will get you an AdSense account approval with co.cc domain.
how to get adsense account
There is a simple trick which you can use to get your AdSense account approved for Blogspot domain quickly.
If your BlogSpot account have sufficient number of post (minimum 20+) then it’s easy to get your AdSense account approved. If you have personal domain and host chances of AdSense approval are very high.
Now the question is:

How to get Adsense account approval for BlogSpot blog:

Even I got my AdSense account approved after almost 8 re-submission.


Get Google Adsense Approval within 3 days – Top 12 Working Strategies

Google AdSense! One of the most easiest, trusted and professional way of earning money by showing your passion towards writing and sharing the knowledge. Google AdSense is trusted by many advertisers and publishers from the past few years, and usually they never accept anyone randomly who is trying to apply for an account. You need to show them the most professional approach of getting your account accepted, else Google will simply throw your application aside.

Statistics say that Google AdSense accepts only 3 accounts of every 1000 applications they receive each day. If you are trying to get onto the account or has been rejected earlier, follow these simple guidelines to get your own AdSense account in just 3 simple days. Though these below tips won’t get you the account approved instantly, but will surely work if you try inheriting each step mentioned below. I’m sure it worked for 60% of people who commented here and mailed me from the past couple of years.

Get Google AdSense Approval Within 3 Days:

So before getting started, make sure you follow these guidelines without fail, else your application will be rejected without any further pending approval. Remember that everything which I mentioned below counts. Don’t compromise on number of posts, own domain, good design and other metrics, else the chances of rejection is higher at your end. So here we go, the 15 most important guidelines to follow before applying to Google AdSense.



Minimum Posts/Articles/Pages:

If you are using WordPress, make sure your website/blog has at least 40 quality articles which are not copied from anywhere else. Your content on the articles should be extremely rich and make sure you use relevant images where ever required. Try to include two lengthy articles of 2000 words each, which should be absolutely stunning while anyone reads them on your website. If you are using HTML website or any other non CMS version of blog, make sure you have atleast 50 pages on your website in form or articles or landing pages.
If you miss providing this any of the above information on your website, Google might reject your application saying Insufficient Content or Unacceptable Site Content. So make sure they see enough content on your website before applying the program. The more the content, the better chances of approval.

Prohibited Website Niches:

Statistics show that your account will go through a faster approval process if you have more quality articles on Health, Internet Marketing, Business, Law, Technology, Entrepreneurship, Travel, Lifestyle and Social Media. Google will take your application as a serious offense if your website contain any of the prohibited content mentioned in this link here.
Some studies have also proved that Google AdSense might reject your approval if your website is on event blogging and micro niche blogging. In this particular blogging, you limit your blog content to only one particular subject and create a spam domain around it to rank higher. Eg: www.mayweathervspacquiaomatchonline.com (Mayweather vs Pacquiao Match Online). In some cases, if you have observed Google Ads in these of websites, probably they have applied the account through an another account and placed the ads in this event niche blogging to earn quick money.

No Third Party Ads or Programs:

Before applying to AdSense, make sure you don’t allow or place any other third party banner ad code on your website. Google (employees) will strictly look into your website manually and they hate seeing some third party ads installed in your website. Stay away from Infolinks, Chitika, Yahoo Ads or any other third party network to get the first impression clean on your website. Make sure you put only the fresh content and some regular widgets on the website.
Also, stay away from affiliate links such as hosting programs, Amazon affiliates, Clickbank or anyother until your account is approved.

Website Design and User Experience:

Google always want their users to get the best experience while browsing through any website they refer. Maintaining a clean design with good navigation and user experience will boost your chances of getting AdSense approved in the first attempt itself. This is one of the major guidelines where lot of people miss the basics. Google believes that if you maintain professional color scheme on your website, the user might be willing to come back and click on the relevant ads which are displayed under your content.
So make sure you maintain a neat and clean design before applying to AdSense. I would recommend you to buy one professional template anywhere and get it installed on your website without effecting the loading speed or easy navigation.

Google Analytics Code:

Adding Google Analytics code on your website is a trusted factor for the approval. Adding Analytics onto your website show that you are actively tracking your visitors and is much serious about the statistics of your users who visit your website. If you haven’t created one, click here to register the program. Once registered, get your tracking code by creating new account under the accounts tab and enter your website name, URL and other required details. Place the code on each page of your website to track the data instantly.

Google/Bing Webmasters Verification Page:

Just like Google Analytics, you need to even verify with Google Webmaster program, which has the complete access to your website in search perspective. With Google Webmaster Tools, you can track your website critical errors and fix them on a daily basis. Click here to register and click on “Add a Site” to enter your website URL. Verify your website ownership through any of the recommended method and complete the process to keep your account functioning actively.
Also, adding the Bing Webmaster Tools to your website will add more credibility to your domain that you are serious about the website search visibility. Though this guideline is pretty easy to perform, many people will get comfortable without knowing the importance of installing these tools.
Adding these two verifications on your website code or server will show good results on search visibility as well.

XML Sitemap Page: 

Creating a sitemap doesn’t take too much of your time. If you are using WordPress, I recommend Google XML Sitemaps By Arne Brachhold. And if you are using any other platform, I recommend you to checkout XML-Sitemaps website for more info. Installing a sitemap on your website can help search engine bots to index your website faster, which is again a trust factor to bots about the website trustworthiness.

Robots.txt

Creating Robots.txt file on your website will get rid of indexing unwanted junk onto Google. I have written a detailed post few days back on how to write perfect robots.txt for your website. Else you can also check SEOSiren.com own robots.txt file and simply copy it to your WordPress website. I have restricted all the unwanted data indexation to search engines, which adds a lot of value to your SEO efforts of ranking the pages higher on Google. Plus, robots.txt file is another great feature to add it your website as a trust factor.

Alexa Rank:

Google AdSense considering the Alexa rank has always been a controversy, as many people disagree that Google doesn’t care about your global rankings. Trust me, I strongly believe that this is one of the most important checklist any manual operator checks before even opening your website statistics. How can anyone quickly judge about a website performance? The answer is simple, and its Alexa ranking. So make sure you install the Alexa toolbar and read my eBook on how to boost Alexa ranking within 30days.
Note: Before applying to AdSense, make sure your website global Alexa ranking is less than 400K for faster approval process. Usually the website above this rank is considered to be new and underestimated that no much data is seen on them.

Important Pages:

Google wants to know your identity before you signup to their AdSense program. So make sure your create the following pages on your website as soon as possible.
  1. Privacy Policy
  2. Disclaimer Policy
  3. Terms of Usage
  4. Contact Us
  5. About Us (Write your name and address through which you applied the AdSense account)
In the about us section, clearly mention who you are, and why is this website made for, what is the benefit people get out of your website. The more clear, the better the chances of your approval. Keep your spelling mistakes, grammar and punctuation clear when you do this.

Custom Domain and Email ID:

A lot of people get create websites through blogspot and free WordPress platforms to apply AdSense. Note that AdSense team will take a custom domain more seriously rather than the free domain name. Investing 2$ on a domain name is not a big deal when you have health chances of getting approval with other factors like mentioned above. So don’t give yourself a second chance to apply the AdSense program and get your own domain as early as possible.
Once you have your own domain, create an email ID with your name (name@website.com) to apply the AdSense program. Eg: satish@seosiren.com will get more attention compared to satishseosiren@gmail.com. Note that your free website programs give you the privilege or adding your custom domains without paying any additional fee.

Decent Traffic: 

Though a lot of portals, forums mention that Google AdSense doesn’t require any certain amount of pageviews to approve your account, I still feel and experienced the treatment if you have a decent traffic. Let your blog age a few weeks (atleast 2 months) before you rush to apply the AdSense program. I would always recommend you to stay until your website get a minimum of 50+ visitors per day. If your website is not getting enough traffic, the chances of rejection is much higher when compared to other guidelines.
Once your website is ready with all these above guidelines, click here to apply to Adsense, and make sure you have gone through the Google AdSense TOC for more information on the program.
Leave your comments to check if your doing good with the process. And if your AdSense was rejected despite of following all these above mentioned guidelines, shoot me a mail to satish@seosiren.com and I will help you out with a free AdSense consultation. Stay tuned to SEOSiren for more such interesting topics!
Also, I have made a step by step video guide on how to apply Adsense if you are looking for more information. Check out the below video and let us know if you still have trouble in getting your account approved.

 

How To Create and Setup a Google Account In 7 Steps

Google Account

Creating a Google Account

Introduction

Creating a Google account is fairly simple. You'll need to provide some basic information, like your name, age, and location. Once you create and verify your account, you'll be able to use Gmail, Google Docs, Google Calendar, Google+, and many other services.
In this lesson, we'll show you how to create an account.

Creating an account

In order to create a Google account, you'll need to enter some information, like your name, birth date, and location. Creating a Google account will automatically create a Gmail email address and a Google+ profile.
If you have a Gmail address, you already have a Google account so you won't need to create an account. You can simply sign in to Google using your Gmail information.

To create a Google account:

 Go to www.google.com. Locate and select the Sign in button in the top-right corner of the page.

Click Create an account.

The signup form will appear. Follow the directions by entering the required information, such as your name, birth date, and gender.

Review Google's Terms of Service and Privacy Policy, click the checkbox, then click Next step.

The Create your profile page will appear. Click Add a photo if you want to add a photo to your Google+ profile. If you don't want to set a profile photo at this time, click Next step.

Your account will be created, and the Google welcome page will appear.

 

Create a Cross-platform App with Visual Studio

Introduction

Did you know that you can write mobile applications with great user interfaces that are cross-platform — supporting Android, iOS, and Microsoft phones and tablets — with just HTML, JavaScript, and CSS?
That's right, times are changing and it is easier than ever with Visual Studio Community Edition's Ionic templates which are free. Believe it or not, Visual Studio is ahead of the game for Ionic development under Windows providing a first-class IDE with excellent stock projects that run on mobile devices out-of-the-box.

Code Samples

Below are the complete code samples of the Ionic project files modified in the tutorial.

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="css/ionic.app.css" rel="stylesheet">
    -->

    <script src="js/platformOverrides.js"></script>

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- your app's js -->
    <script src="js/app.js"></script>
  </head>
  <body ng-app="starter">

    <ion-pane>
      <ion-header-bar class="bar-positive" align-title="center">
        <h1 class="title">First Ionic App</h1>
      </ion-header-bar>
      <ion-content ng-controller="HomeCtr">

          <br /><br />

          <div class="row">
              <div class="col">
                  <button class="button button-royal icon-left ion-home" ng-click="message='Home clicked!'">Home</button>
              </div>
              <div class="col">
                  <button class="button button-calm icon-left ion-edit" ng-click="message='Edit clicked!'">Edit</button>
              </div>
          </div>

          <div class="row">
              <div class="col">
                  <button class="button button-balanced icon-left ion-ios-copy-outline" ng-click="message='Copy clicked!'">Copy</button>
              </div>
              <div class="col">
                  <button class="button button-assertive icon-left ion-search" ng-click="message='Search clicked!'">Search</button>
              </div>
          </div>

          <br />
          <br />

          <h2>{{message}}</h2>

      </ion-content>
    </ion-pane>
  </body>
</html>
 
app.js

angular.module('starter', ['ionic'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    if(cordova.platformId === 'ios' && window.cordova && window.cordova.plugins.Keyboard) {
      // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
      // for form inputs)
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

      // Don't remove this line unless you know what you are doing. It stops the viewport
      // from snapping when text inputs are focused. Ionic handles this internally for
      // a much nicer keyboard experience.
      cordova.plugins.Keyboard.disableScroll(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });

}).controller('HomeCtr', function ($scope) {

    $scope.message = "Okay are you going to click a button?";

});
 

Conclusion

I hope you've found this tutorial for developing cross-platform mobile apps helpful. Best wishes for your mobile app development projects.
 

 


how to connect database with mysql, MySQLi , pdo – php

how to connect database with mysql, MySQLi , pdo in php

Mysql database connection

$database_host = 'localhost'; // database host name
// if using port then add port $database_host = 'localhost:3036'; 
$database_user = 'database_user'; // database user name
$database_pass = 'database_password'; // database user password

// connect with database
$database_conn = mysql_connect($database_host, $database_user, $database_pass);

// check database connection
if(! $database_conn )
{
    // error in database connection
    die('Could not connect to database : ' . mysql_error());
}
// connected to database
echo 'Connected successfully with database';

// close connection with Mysql database
mysql_close($database_conn); 


MySQLi Object-Oriented database connection

$database_host = 'localhost'; // database host name
// if using port then add port $database_host = 'localhost:3036'; 
$database_user = 'database_user'; // database user name
$database_pass = 'database_password'; // database user password

// connect with database
$database_conn = new mysqli($database_host, $database_user, $database_pass);

// check database connection
if ($database_conn->connect_error)
{  
    // error in database connection
    die("Could not connect to database : " . $database_conn->connect_error);
}

// connected to database
echo 'Connected successfully with database';

// close connection with MySQLi database
$database_conn->close();

MySQLi Procedural database connection

$database_host = 'localhost'; // database host name
// if using port then add port $database_host = 'localhost:3036'; 
$database_user = 'database_user'; // database user name
$database_pass = 'database_password'; // database user password

// connect with database
$database_conn = mysqli_connect($database_host, $database_user, $database_pass);

// check database connection
if (!$database_conn)
{
    // error in database connection
    die("Could not connect to database : " . mysqli_connect_error());
}

// connected to database
echo 'Connected successfully with database';

// close connection with MySQLi Procedural
mysqli_close($database_conn);

PDO database connection

$database_host = 'localhost'; // database host name   
$database_user = 'database_user'; // database user name
$database_pass = 'database_password'; // database user password
$database_name = 'your_database_name'; // database name

try
{
    $database_conn = new PDO("mysql:host=$database_host;dbname=$database_name", $database_user, $database_pass);
    // if using port then use port id in PDO 
    //$database_conn = new PDO('mysql:host=$database_host;port=5432;dbname=$database_name', $database_user, $database_pass);
    
    // exception for PDO connection error
    $database_conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    
    // connected to database
    echo 'Connected successfully with database';
}
catch(PDOException $exception)
{
    // error in database connection
    echo "Could not connect to database : " . $exception->getMessage(); // exception
}

// close connection with PDO
$database_conn = null;


10 Best Chatting Apps In India

  The modern world is all about Internet. There was a time when people use to pay high telephone bills to stay in touch with their friends a...