<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on David Hamp-Gonsalves</title><link>https://davidhampgonsalves.com/tags/python/</link><description>Recent content in Python on David Hamp-Gonsalves</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 02 May 2014 00:00:00 +0000</lastBuildDate><atom:link href="https://davidhampgonsalves.com/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>The Music Player/Organizer For the Rest of Us</title><link>https://davidhampgonsalves.com/the-music-player/organizer-for-the-rest-of-us/</link><pubDate>Fri, 02 May 2014 00:00:00 +0000</pubDate><guid>https://davidhampgonsalves.com/the-music-player/organizer-for-the-rest-of-us/</guid><description>&lt;p&gt;Everyone has their own &lt;em&gt;(strong)&lt;/em&gt; opinions about this but I think I&amp;rsquo;ve figured it out. First to organize your music &lt;a href="http://beets.radbox.org/"&gt;Beets&lt;/a&gt; is amazing. Its light, easy to use and lets you tweek things exactly how you want them.&lt;/p&gt;
&lt;p&gt;The limitation with Beets was that it was just an organizer and you still needed a full GUI application to conveniently find and play your music. This weekend I wrote the Play plugin which lets you harness the might of Beets queries and send those results to your choice of lightweight music player.&lt;/p&gt;</description></item><item><title>Building a Basic Android Bot</title><link>https://davidhampgonsalves.com/building-a-basic-android-bot/</link><pubDate>Thu, 14 Nov 2013 00:00:00 +0000</pubDate><guid>https://davidhampgonsalves.com/building-a-basic-android-bot/</guid><description>&lt;p&gt;Last week I started playing a new game on my phone called Castle Crash. I don&amp;rsquo;t play often play video games but when I do, I play them obsesively until they are defeated. In this case you can&amp;rsquo;t beat the game since you are playing against the internet so I decided to tap out and let my computer take over.&lt;/p&gt;
&lt;h2 id="monkeyrunner"&gt;MonkeyRunner&lt;/h2&gt;
&lt;p&gt;Android has a great tool for writing simple automated tests on a device called MonkeyRunner. It uses Jython to let you write Python scripts that simulate user interactions and events on your device. &lt;a href="http://developer.android.com/tools/help/monkeyrunner_concepts.html"&gt;MonkeyRunner&lt;/a&gt; can be found in the tool directoy after you have installed the Android SDK.&lt;/p&gt;</description></item><item><title>DIY Photobooth</title><link>https://davidhampgonsalves.com/diy-photobooth/</link><pubDate>Mon, 12 Nov 2012 00:00:00 +0000</pubDate><guid>https://davidhampgonsalves.com/diy-photobooth/</guid><description>&lt;p&gt;Last week I got married(it was amazing and surreal). When planning the wedding we really wanted to make the whole night reflect &amp;ldquo;us&amp;rdquo;. This meant an all vegan menu from hearty catering(amazing) and a lot of elbow grease as we built and crafted mostly everything ourselves. Our signs were life sized pictures, the cupcake stand was wooden slabs of a tree and I build a photobooth which is what I&amp;rsquo;m going to talk about in this post.
&lt;img src="https://davidhampgonsalves.com/images/photobooth/photobooth-01.png" alt=""&gt;&lt;/p&gt;</description></item><item><title>OpenCV/Python Color Tracking</title><link>https://davidhampgonsalves.com/opencv/python-color-tracking/</link><pubDate>Mon, 30 May 2011 00:00:00 +0000</pubDate><guid>https://davidhampgonsalves.com/opencv/python-color-tracking/</guid><description>&lt;p&gt;&lt;img src="https://davidhampgonsalves.com/images/color_tracking.png" alt=""&gt;&lt;/p&gt;
&lt;h2 id="preamble"&gt;Preamble&lt;/h2&gt;
&lt;p&gt;I needed some color based object tracking for a project I was hacking together last weekend. I choose to use the OpenCV Python bindings since I knew that I wouldn&amp;rsquo;t be doing anything fancy and I thought it would simplify the learning process. While the Python bindings are great I wasn&amp;rsquo;t able to find much documentation and what I thought would be an easy 10 minutes turned into a bit of an afternoon project. Admittedly I got side tracked with CamShifts, Histograms, Moments and the example code.&lt;/p&gt;</description></item></channel></rss>