Wednesday, November 26, 2014

Installing Memcached with WAMP

How to install memcache on wamp server

Follow below instructions
1> The first thing in installing memcached with wamp is to install the Memcached service. download here the Win 32 binary version.
2> Inside the download you will find a memcached.exe file. Extract this to C:\memcached
3> Now to install the service, open a command window and enter the following

- Install the memcached service by running:
C:\memcached\memcached.exe -d install

- Start the memcached service by running:
C:\memcached\memcached.exe -d start

- You can verify if memcached is running by executing this command (You have to see full path of memcached.exe):
C:\memcached\wmic process get description, executablepath | findstr memcached.exe

Install PHP Memcache extension (php_memcache.dll)
- If you don’t have php_memcache.dll in folder C:\wamp\bin\php\php5.x\ext, download it from here and extract into this directory.
- Open php configuration file php.ini from C:\wamp\bin\apache\Apache2.x\bin directory, and add the following line to the end of Dynamic Extensions block which lies between lines 920 and 990 roughly.

extension=php_memcache.dll

- Restart all services of Wamp Server through the system tray menu.

Testing Memcached with PHP

</?php
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect to memcache");
$version = $memcache->getVersion();
echo "version: ".$version."
";
$tempObject = new stdClass;
$tempObject->strAttr = 'Testing';
$tempObject->intAttr = 0123456789;
$memcache->set('keys', $tempObject, false, 10) or die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)
";
$get_result = $memcache->get('keys');
echo "Data from the cache:
";
var_dump($get_result);
?>

Monday, November 24, 2014

How to Upload New Android Apps on Google Play Store

Its very easy to upload or publish Android Apps on google play store
Follow below steps.

1. Generate APK File.
      a. Edit AndroidManifest.xml write (android:debuggable="false") in application tag
              android:debuggable="false" >
      b. Click on File -> Export -> Export Android Application -> Next -> Browse Project -> Next -> Create new keystore and select Location folder and then write File name same to your application name and click on Save -> Write Password and confirm password -> Next
      c. Fill and Write complete form Alias name, password and confirm password same as previous window. Validity years 25. First and Last Name, Organizational Unit, Organization, City or Location, Sate or Province, Country Code like "India". and click Next
      d. Browse location or Destination APK file and Click Finish

2. Create Account and Upload APK for publish Apps
     a. Buy Account on Google play store with $25
     b. Go to your Google Play Developer Console ( https://play.google.com/apps/publish/ )
     c. Near the top of the screen, click Add new application.
     d. Using the drop down menu, select a default language and add a title for your app.
     e. Type the name of your app as you want it to appear in Google Play.
     f. Select Upload APK or Prepare Store Listing to add your app's information.
     g. Browse your APK and upload

3. Compleate fill information which is show in 3 tab
     a. APK
           i. Upload APK file
     b. Store Listing
           i. Fill compleate information which show in form
                  Title, Short description, Full description, At least 2 screenshots and Max 8, screenshots, 7-inch tablet, 10-inch tablet, Hi-res icon, 32-bit PNG (with alpha), Feature Graphic, JPG or 24-bit PNG (no alpha), Application type , Category, Content rating , Website, Email , Privacy Policy and click sate.
     c. Pricing & Distribution
           i. Check countries which you want to live.
4. Select published on drop down right side up corner