FailOverResolver

Often the software we develop depends on some external service like a database, fileserver etc. To reach to healthy and best service (fastest response time, least loaded etc ) we typically use a loadbalancer or use dns as loadbalancer. loadbalancer service is good but you make decisions on how the laodbalancer service sees the external secive you depend on. The loadbalancer service may be in a difference network and what it sees as a best server maynot be the best server from your network. Failover Resolver helps your software determine the best server from the box on which your software is running.

Read More

Smart Home Watcher

I get phone call every morning from my wife asking if I locked the home and if I turned off the gas stove. I simply reply yes although I should watch live feed to look at front door and gas stove to be certain. This christmas weekend I have decided to solve this problem by calibrating camera to look at door and stove and find if its on or off and send alert.

Read More

raspberry py live streaming

I was going on a month long vacation and I wanted to monitor my appartment. Given I have pan tilt camera with facial recognition, I thought of implementing a live feed, control camera and add motion detection to it. Its been working for two months and not even a glitch. I just need to implement motion detection though.

Read More

m first dig @ ycombinator.

It all started when I visited a restaurant and liked it so much that I wanted to give a review. At that point lazyness struck me who will download the app, signup, lookup for the restaurant and give review. I wanted to make it easy for people to give reviews. Put a tablet with app runnin in the restraunt.This will encourage people to give reviews (hypothesis one) Also always show one days worth of reviews. As a user I want to know how customers are liking the place today ..now.(hypothesis 2) It is also good for businesses because they can focus on how they want to do today .. tomorrow not worrying about one of review thats stuck on the website for ever. (hypothesis three). I am working on putting my hypothesis to test. Will write up a blog publishing my results soon. Checkout the server and app in my repos(digelpapp/digelpserver) Demo Video

Read More

pan/tilt camera with facial recognition (attempt 1)

Used i2c servo controller to control the pan tilt servo's. Servo's work accurately now and servo controller takes responsibility of maintaining the pulse. Disabled facial recognition for this excercise and simply used facial detection. Used opencv's haarcascadefrontalfacealt.xml for this purpose. Now that I can draw a window around the faces, All I need to do is follow the face. As the face moves the coordinates of the rectangle shift. Keep moving the servo's to ensure the rectangle is always in facus. Checkout my public repos for servo controller code. Will publish facial detection program soon.

Read More

Fast CIDR lookup

Say you have list of CIDR's and want to check if given IP falls in the CIDR. This is useful for making fast routing decisions.

Read More

Failed pan/tilt camera with facial detection.

Used raspberry pi to design this pan tilt camera. Raspberry can control pan/tilt smoothly. Face detection works fairly well on its own. When I run both the features symultaneously on threads the servo control goes haywired. The Servo goes into fits. The pi is not able to skedule the thread controlling the servo's at exact 20 millisecond intervals. Now its time to invest in a i2c servo controller..

Read More