Posts

  • 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
  • Magic Cauldron: Harry Potter Themed Gender Reveal Party - #Aurdino

    Earlier this year, we had a very fun filled Harry Potter themed gender reveal party. For the reveal, I built a Magic Cauldron which would reveal the gender. Check it out for yourself! For this I needed: A Cauldron. WS2812B LED array. Aurdino UNO. Bread board and jumper wires. Dry ice. Kasa Smart bulbs I will go over in the following sections The Mist.

  • Kakashi: The Copycat Robot - #Aurdino #image processing

    In this post, I want to share about "Kakashi: The Copycat Robot"—a fun side project I built a few years ago. The name is inspired by the famous character from Naruto, Kakashi Hatake, also known as the Copycat Ninja.The goal of this robot was to mimic Kakashi's ability to copy movements—though, of course, in a more limited way. Check it out for yourself!Here are the things I used to build this:

  • Neural network inference pipeline for videos in Tensorflow - #Deeplearning #Tensorflow

    Just as we saw a huge influx of images in the past decade or so, we are now seeing a lot of videos being produced on social media. The need to understand and moderate videos using machine learning has never been greater. In this post, I will show you how to build an efficient pipeline to processes videos in Tensorflow.  For simplicity, let us consider a Resnet50 model pre-trained on

  • Finding Where's Waldo using Mask R-CNN - #Deeplearning #ML

    When I was a kid, I really loved solving Where's Waldo. There were few books (it used to be called Where's Wally) in our school library on which I spent hours finding Waldo. For people who do not know what it is, basically Waldo - a unique character is hidden among hundreds of other characters and you have to find him in all the chaos in the image. Now that I am too old to be solving it and

  • Higher level ops for building neural network layers with deeplearn.js - #Deeplearning #javascript #ML

    I have been meddling with google's deeplearn.js lately for fun. It is surprisingly good given how new the project is and it seems to have a sold roadmap. However it still lacks something like tf.layers and tf.contrib.layers which have many higher level functions that has made using tensorflow so easy. It looks like they will be added to Graphlayers in future but their priorities as of now is to

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!