Tuesday, 21 July 2015

Error 500: The template is updated in other place. Please reload the original page and retry it again

When I edited my layout in Blogger and tried to preview it, I used to get the following error:
The template is updated in other place. Please reload the original page and retry it again
Then when i tried to save the layout, I used to get this error
The server was unable to save the form at this time. Please try again
After searching a lot on google, I found out that adding mobile only widgets causes this problem.
So, I followed the following steps to fix the issue.

Go to Template -> Edit HTML

Then search for mobile="only". You might find something like this:

<b:widget id='HTML4' locked='false' mobile='only' title='Mobile ad' type='HTML'>

Change this to:

<b:widget id='HTML4' locked='false' mobile='yes' title='Mobile ad' type='HTML'>


This will solve the problem. I think google should do something regarding this problem as it is not that straightforward to fix this.

Wednesday, 15 July 2015

ERR_TUNNEL_CONNECTION_FAILED on mobile network on android

For the past few days, whenever I tried to access any site with HTTPS, I used to get this error.


"This webpage is not available
ERR_TUNNEL_CONNECTION_FAILED"

This used to occur only on mobile network (airtel) and not on WiFi. At first it seemed to be a problem with chrome. But the same problem was there in other browsers. After breaking my head for a while I read somewhere that android doesn't support SSL over any port other than 443 (too weird to be true). But this couldn't be the issue because https://google.com , https://twitter.com etc use 443. 

Upon investigating further, I realized that it is a very silly issue. It is because the default Access Point (Airtel Live) that came with my carrier (airtel) had a proxy that was not allowing SSL Tunneling.



After setting Proxy and Port to nothing, the problem was solved!

Monday, 6 July 2015

Celebrating the return of Dragon Ball: Kamehameha boot animation


I am sure many of you are excited about the return of DragonBall after 18 years as DragonBall Super! Although I saw the original series much after it ended, I am a great fan of it and the fact that it gave birth to a new generation of anime is just amazing. Hats off to you Akira Toriyama!

To celebrate the return of DragonBall, I made a video of me performing the classic Kamehameha attack and made it my phone's boot animation. Here is the Vine of the video I made:

.

Grab the Adobe After Effects project of this video from here.

Here is how it looks while phone is booting:


Boot animation in android comes from the file called bootanimation.zip which is at /system/media. This file essentially consists of sets of sequences of images which have to be shown one after the other. Here we need to generate bootanimation.zip with just one sequence of images (extracted from the video) which runs in a loop. As there is no tool which can do this, I wrote a simple shell script.

Here we have to generate two things.

1. Folder with sequence of images.
2. Description of bootanimation.zip, which tells what to do with the images.


After running this script,  bootanimation.zip is generated. Now move it to /system/media and set the permissions to 0644 (rw-r--r--)



Now reboot the phone and you are done!

KAAAAAAMEEEEEEEHAAAAAAMEEEEEHAAAAAAAAAAA!