Error : maximum number of update rollouts reached

You may get error "maximum number of update rollouts reached" while updating your Galaxy S4 over the phone. 




If this error appears frequently then install Samsung Kies on you computer/laptop and then try to update the device software.
Once you install the Kies on your PC, connect the mobile to PC. If Kies successfully connects to your device then it will automatically detect the software version on the device and if update is required it will prompt your for the device software update.

Removing duplicate images and videos from Gallery on Samsung Galaxy S4

If you are seeing duplicate images or videos in gallery of your Samsung Galaxy S4 or any other Android 4.2.2 running device, then you can easily clean  up those with a simple trick.

Go to Settings -> More -> Application Manager. 
Under All Applications, select for Gallery app. Now click on "Clear Cache" and then "Clear Data". Follow similar steps for the Media Storage app as well. 



Now restart your mobile. Once restart complete, wait for some time so that media service will search for the images, video and other media sources. 
Now open the Gallery application, all the duplicate images, videos should disappear.

Samsung Galaxy S4 GT-I9500 : Hard reset

Note: Make sure you backup your data and application before using steps below, as hard reset will result completely wipe your data and applications.Also make sure you have your phone battery fully charged.

There are multiple ways to hard reset your Galaxy S4.
  • Using factory reset option
Go to System -> Account -> Backup and Reset -> Factory data reset -> Reset Device -> Erase everything on your mobile.  


  • Using Galaxy S4 recovery mode
Enter to recovery mode using steps mentioned in the post How to enter to recovery mode.
Once you are on recovery screen select Wipe data /Factory reset with volume down and power button. The select Yes--delete all user data.
Once format is complete reboot your device using reboot now option.
  •  Using Factory Reset code
You can factory reset your phone using code *2767*3855# 

How to enter into recovery mode on Samsung Galaxy S4 GT-I9500

Note: Please make sure that you back up your data and application before using these steps.  Using below steps might result in to full wipe or data loss. Use at your own risk.
 
Using recovery mode you can do lot many things on android mobile, such as clear cache, apply update from the ADB or SDCard etc...
You can enter in the recovery mode using below steps:
  1. Power off your Samsung Galaxy S4.
  2. Press and Hold VOLUME UP, HOME button and keep pressing POWER button until phone vibrates.
  3. Wait until you see the Android logo and release all buttons. Keep pressing power button after vibrate might restart your mobile as default option on recovery screen.


You should see below screen once you enter the recovery mode. Use volume up & down button to select the available options and press power button to choose the option. 

Error : Remove SSL protocol prefix from P4PORT

If the SSL certificate on the perforce serve is changed then you may get error "Unable to connect to server. Remove SSL protocol prefix from P4PORT" while launching the perforce client.
In order to resolve this error you will have to remove the certificate stored on the client and also remove the perforce ticket stored under user settings directory. 



Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...