Thursday, March 24, 2011

Migrated to Blogger

After several years of hosting my own Wordpress, I have decided to move it to the cloud.  Working for a SaaS (Software as a Service) company has grown on me quite a bit and am looking to move more of the services I host as well (Asterisk, Misterhouse, Apache, Gallery2, etc)

Wednesday, March 9, 2011

Connect Microsoft Kinect to Ubuntu (Mouse Control)

Just purchased a used Microsoft Kinect on Ebay for $75 in hopes of integrating this as a robotic vision device. In the mean time, I got it hooked up to Ubuntu for a sort of "Minority Report" Mouse Control.


Here is what I did to get it installed with Ubuntu Meerkat 10.10:
1.  Add the PPA for Freenect from https://launchpad.net/~arne-alamut/+archive/freenect
2. Install the following:
$ sudo apt-get install freenect libncurses5-dev libglut3-dev libX11-dev libxtst-dev libxmu-dev cmake git
3. Plug in Kinect to usb port on machine (unplug/replug if it already was)
4. Test the installation
$ freenect-glview
5. Should see a depth / video feed appear on the screen confirming the usb driver works

6. To get mouse cursor working (from https://github.com/Ooblik/Kinect-Mouse):
$ mkdir ~/kinect
$ cd ~/kinect
$ git clone https://github.com/Ooblik/Kinect-Mouse.git
$ cd ~/kinect/Kinect-Mouse
$ mkdir build
$ cd build
$ cmake ..
$ make
7. Run mouse client
$ ./kmouse
8. Enjoy mouse cursor control.

*Notes: The mouse control only works at a certain depth range. The video window will show whatever is "in-range" by highlighting it in red. To "click" you need to stop moving briefly and it will auto left-click.

As much as you would like to wave your open hands in the air to recreate Tom Cruise in the movie, I find that just using a single finger tip in range is usually the best method of control. :)

Sunday, December 5, 2010

Ubuntu Maverick DLNA Server - MediaTomb (fix: for Samsung Devices)

To setup a DLNA media server (watch videos, music, pictures on a networked AV Device) on Ubuntu:

#apt-get install mediatomb
#/etc/init.d/mediatomb start

Using web browser, navigate to http://localhost:49152 and setup your paths to media files on your machine. Start viewing content on your TV / BD Players!

Further Help here: https://help.ubuntu.com/community/MediaTomb

For Samsung devices: they need a header hack so add this section to the Mediatomb /etc/mediatomb/config.xml (found here):
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"/>
</custom-http-headers>

Sunday, November 28, 2010

Problems with Samsung 3D glasses losing sync?

Do you have a problem with your Samsung 3D glasses losing sync? I was having an issue where the glasses where losing its sync every few minutes (3D fading, switching eyes, etc) due to too much IR crosstalk and interference. I fixed it by doing the following:

- Cut a small section of electrical tape as big as the sensor on the front of the glasses (the little rectangle in between the eyes)
- Place the electrical tape over the sensor leaving just a small sliver of the sensor exposed on the bottom edge.
- Turn on and enjoy a stable 3D picture.