Getting Started with Android Studio

Android Studio is a new Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging. On top of the capabilities you expect from IntelliJ, Android Studio offers:

  • Gradle-based build support.
  • Android-specific refactoring and quick fixes.
  • Lint tools to catch performance, usability, version compatibility and other problems.
  • ProGuard and app-signing capabilities.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that allows you to drag-and-drop UI components, preview layouts on multiple screen configurations, and much more.

 

read more and download: http://developer.android.com/sdk/installing/studio.html#download

What’s happening to Google+ Games?

As announced on May 15, 2013, games inside plus.google.com will be retired on June 30, 2013. If you would like to continue playing a particular game, contact the game’s developer to find out if there’s a new destination site for the game. Some of the game pages on plus.google.com/games have a link to an alternative site where you can continue to play the game.

 

more: https://support.google.com/plus/answer/3123176?p=plus_games&rd=1

 

 

Google App Engine finally supports PHP, the language that runs 75% of the web

Two days ago, Google announced it would finally support the most popular computing language on the planet, PHP, in its platform-as-a-service offering, Google App Engine.

That means that yes, at some point you’ll be able to run your little WordPress-powered blog on the biggest server farms on the planet. But it also means that major companies will be able to use Google’s famously reliable services to run their enterprise-scale “big data,” backend, and, yes, consumer web projects, all in the PHP language that that is increasingly penetrating corporations.
Read more at http://venturebeat.com/2013/05/17/google-app-engine-finally-supports-php-the-language-that-runs-75-of-the-web/#7COJZXLjFgLfc5L6.99

Get started with App Engine for PHP: scalable, secure and reliable By Andrew Jessup, Product Manager

At Google I/O, we announced PHP as the latest supported runtime for Google App Engine in Limited Preview. PHP is one of the world’s most popular programming languages, used by developers to power everything from simple web forms to complex enterprise applications.

Now PHP developers can take advantage of the scale, reliability and security features of App Engine. In addition, PHP runs well with other parts of Google Cloud Platform. Let’s look at how this works.

 

more: http://googledevelopers.blogspot.com/2013/05/get-started-with-app-engine-for-php.html

PHP Pagination Class (PS_Pagination)

Here it is in action:

//Include the PS_Pagination class
include('ps_pagination.php');

//Connect to mysql db
$conn = mysql_connect('localhost', 'username', 'password');
mysql_select_db('testdb',$conn);

//Query to pass to pagination class
$sql = 'SELECT * FROM pages';

//Create a PS_Pagination object
$pager = new PS_Pagination($conn, $sql, 8, 3);

//The paginate() function returns a mysql result set for the current page
$rs = $pager->paginate();

//Loop through the result set just as you would loop
//through a normal mysql result set
while($row = mysql_fetch_assoc($rs)) {
echo $row['title'];
}//Display the navigation
echo $pager->renderFullNav();

View more and for download: http://phpsense.com/2007/php-pagination-script/

array_unique in php

array_unique — Removes duplicate values from an array (available from PHP4)

here is the definition,


array array_unique ( array $array[, int $sort_flags = SORT_STRING ] )


It takes an input array and returns a new array without duplicate values.

Note that keys are preserved. array_unique() sorts the values treated as string at first, then will keep the first key encountered for every value, and ignore all following keys. It does not mean that the key of the first related value from the unsorted array will be kept.

Short flags:

  • SORT_REGULAR - compare items normally (don’t change types)
  • SORT_NUMERIC - compare items numerically
  • SORT_STRING - compare items as strings
  • SORT_LOCALE_STRING - compare items as strings, based on the current locale.

example:


<?php
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
?>

read more: http://php.net/manual/en/function.array-unique.php