Arduino & Python Soundlight Spectrum

Continuing with my initial Soundlight project, I have modified the code to produce six distinct lights depending on the frequency of the music! Why six? Well, that’s the limit of the Arduino’s PWM (analog out) pins, so that’s as much as you can get with a single Arduino Uno. It works by using Fast Fourier Transforms to analyze the sound frequencies and find how much sound is coming out from each frequency range (special shout out to Luis for helping me understand this beautiful math!)

Here’s a quick demo video:

Continue reading Arduino & Python Soundlight Spectrum

Memechat: Use ragefaces and memes in Gmail and Facebook chat

Memechat on GmailMemechat on Faceboook

Have you ever wanted to use ragefaces or memes like Forever Alone Guy or Philosoraptor in Gmail or Facebook Chat? Well now you can! Using my super handy Chrome extension, just type ra.ge/[keyword] in your chat and the extension will automagically convert it to an image.

Examples include ra.ge/forever (forever alone), ra.ge/praptor (philosoraptor), ra.ge/fu (classic f7u12), and ra.ge/megusta (ME GUSTA face). For the whole list, visit http://bit.ly/allrages and http://bit.ly/allmemekeys

Note: Both users will need to have the extension installed to see the rage faces and memes.

Get Memechat at the Chrome Webstore

Open source! Grab the code at GitHub. Based on the Facebook rage face extension by josePhoenix.

APPLE, Y U NO SHUT UP AND TAKE MY MONEY

Warning: Rant ahead.

TL;DR: Tried to buy an in-app purchase for an iPad app. Despite having two iTunes accounts, two banks, and two PayPal accounts and trying numerous combinations of these, I have yet to be successful.

Y U NO SHUT UP AND TAKE MY MONEY

OK, a bit of background: I’m Colombian, I’ve worked in the US, and right now I’m living in Mexico. I have three bank accounts, one for each country, each with its own debit card. I mainly use my US account for online purchases.

Continue reading APPLE, Y U NO SHUT UP AND TAKE MY MONEY

Updating the badge in a Windows 8 JavaScript App

Windows 8 apps can have notification badges in the tiles. It’s easy to update the badge, but it’s still not well documented, so here is a small snippet to show you how it’s done:

var Notifications = Windows.UI.Notifications;
var updater = Notifications.BadgeUpdateManager.createBadgeUpdaterForApplication();
var xml = Notifications.BadgeUpdateManager.getTemplateContent(
    Notifications.BadgeTemplateType.badgeNumber
);

xml.getElementsByTagName('badge')[0].setAttribute('value', 5);

var notification = Notifications.BadgeNotification(xml);
updater.update(notification);

Replace the 5 in line 7 with the number of your choice. The end result looks like this:

Badge update example

More info on badge updates is available in the Windows.UI.Notifications namespace of the WinRT and the Badge Update XML Schema.