The Magic Door – Solution

May 31st, 2011 § 5 comments § Categories: Projects, Tech

- A 21st century implementation of Open Sesame from Ali Baba and Forty Theives!

Most of the apartment communities in big cities in US are gated community, residents need a secure key fob to open the car or building door to enter. Guests who are visiting residents need to call the resident from the directory phone in front of the apartment, so that the resident can open the door remotely from their phone after verifying who is visiting them.

I also stay in a gated community with two other roommates with friends from outside visiting often. So when our friends are visiting us, they would call twice, one from the car door and one from building door to let them in. It was getting cumbersome to take call for each one of them and then press a key to open the door. Also, when my friends are visiting and when they call from directory, it goes to my roommates as it’s his number which has been added to directory and he should be available to answer the call, otherwise I need to go downstairs to open the door. Also another problem is, sometimes we won’t receive call because there is no signal and friends would be waiting outside for someone to let them in and it would be pretty frustrating for them.

So to avoid all this and to make life easier, I created a solution called The Magic Door!

What does this do?

Instead of using one of our numbers in the directory, I created a new phone through Twilio which can be managed programmatically and we have added this number to the directory of our apartment. So when someone calls, we don’t need to answer the call, it is answered automatically by the phone which is running on the server.

It says:

Hello there!

>Press 0 to enter pin.

>> Please enter pin

>>> Correct Pin?

>>>> Send signal to open the door

>>> Incorrect Pin?

>>>> Start over

>Press 1 to call <Friend1>

>> Call <Friend1> phone

> Press 2 to call <Friend2>

>> Call <Friend2> phone

Now this new phone acts as the interface between us and our visiting friends. Visitors depending on whom they are visiting, can choose whom to call by the pressing the appropriate key. Also, the cool part is, to our close friends who are visiting often, we created a secret pin which we share with them and by entering that pin, the door open automatically or magically if you like : D So now, we receive call only if someone new is visiting and also the one whose friend is visiting would get the call.

Doesn’t this create a security problem by opening the door automatically?

The secret pin is shared only with our close friends and this can be changed easily by editing a file in the server. So we can create a new pin, every other week or a special pin for a party night and share it with our friends.

How reliable is this? What if the server goes down?

It is pretty reliable, but sometimes if the server goes down, then we would have to go down to open the door or call the leasing office to change the number in the directory. To avoid this, I created a another layer of interface with Google Voice. We have a Google Voice number which is added to the directory and the Google Voice would forward the call to the Twilio number. When the Twilio server or my server goes down, I just need to change the forwarding number from Google Voice and I would receive the call. Once the server is up, I can change it back to the Twilio number.

Just wanted to try something like this and Twilio is uber cool to control phone programmatically.  Also,  its cool to know that all the key presses on cell phones to make calls are nothing but DTMF signals which are basically sounds from particular frequency. So I just used this by playing a sound to interact with Google Voice and the directory phone.

PS: If you are also facing some problem like this and want someone to help you out, just ping me @ njrahulkanna at gmail.com.

Angels and Demons

March 27th, 2011 § 3 comments § Categories: General, Tubelight Dreamz

Yesterday, I had an interesting dream. As I traveled across the world from Asia to Africa to America, I met Angels and Demons. Angels were nice, smiling and spreading the human love whereas Demons were cruel, wicked and causing harm to humans. Thankfully, I didn’t meet many Demons and believe there are not many in the world either, after all our world is a beautiful place! I met lot of Angels though and even bought down few more using this ; )

As I met each one of them, I could easily say whether they are an Angel or a Demon, except for one person! I was wondering why :–?

Here it goes, a small kavithai in Tamil.

ne ennai parthu sirithal,
          andru ennaku thookam illai;

ne ennidam pesinal,
          andha vaaraththirku ennaku pasi illai;

ne ennodu sila neram irunthal,
          andha mathaththirku  ennaku muulai veelai seiya villai;

ne enn …

ne ennai ippadi kollamal kondru puthaikiraye,
          ne ennathu devathai ah illai ratchasi ah yendru theriya villai!

Tubelight Dreamz

Dark Chocolate

March 26th, 2011 § 0 comments § Categories: General

Happened yesterday @ work!

Teammate: Wahoo (that’s me btw), do you want some dark chocolate?
Me: Sure! But why is there a Zebra in the wrapper? (there was a pic of Zebra in the chocolate wrapper)
Teammate: (trying to be smart : P) B’cos the chocolate is made up of Zebra’s skin!
Me: Orly! Then where are the white stripes in the chocolate? : P
* Teammate: Grrr, Why am I working with this guy? : ) *

Just trying a post via iPhone as I wait for my Black Beauty to be serviced : )

Tubelight Dreamz

March 23rd, 2011 § 0 comments § Categories: General, Tubelight Dreamz

Lately, I have been falling asleep without switching off tube lights in my room. It happened for a while then I realized something interesting was happening. Whenever tube lights were on, I was getting some weird or funny dreams : ) So I started experimenting with it by trying with various lights, different position of lights or even closing the window and door to eliminate external light. Each time results were different and after some intense research into this subject, I concluded that I should have two lights one 60 watts and another 26 watts and that too at exactly 5 feet from the bed to get a clear dream. This was the secret sauce I was looking for and finally I nailed it :-B

So what happens then? That’s the interesting part! I meet new people, think of funny one liners, get crazy ideas … and all things that won’t make any sense in the morning but sure will give me lolz whenever I think about it. I credit all these to an awesome phenomenon I call Tubelight Dreamz : )

And here, I plan to publish some of my one liners and any other mokkai (PJs) under Tubelight Dreamz Creations. Stay tuned!

PS: If you are actually smart enough to be convinced of this awesome discovery and phenomenon and want to try it out, then go for it! Today is your day buddy!  As with everything, you need to believe in it and have the commitment to get the best results. If you are happy and experience something funny and smile then leave a comment, I would feel good. But if you suffer from head ache, sleep deprivation or keep yawning the next day, then I am not responsible. Because, as I read what I have written above, it didn’t make any sense what so ever to me. But wait, may be it would in my tonight’s Tubelight Dreamz! \m/

Friends Vizearch – Facebook App

March 13th, 2011 § 0 comments § Categories: Projects, Tech

Friends Visualization + Search > Friends Vizearch

Created this Facebook app to visualize friends in a world map based on their current location. This is utility as well as fun app where it can be used to search for friends location, see friends in a location you are travelling to or just to see where all in the world you have friends. It uses Facebook SDK and Google Maps to visualize the data in the world.

Hitler conquered the world with force, lets conquer the world with friends! Check out where all in the world you have friends using Vizearch.