2013
04.12

Here’s a way to group your collection data via exact attribute values using BackboneJS and UnderscoreJS.

this.categories = _.groupBy(this.collection.models, function(row) {
	return row.attributes.{attribute you want to group by};
});

this.categories should be a new object with your data grouped by the attribute you selected.

The tricky part was returning back the attributes of each model by going row.attributes.

2013
03.31

I’ve been an enthusiast of XBMC and HTPCs now for a couple years now and I’m almost always looking for a more efficient way to stream/watch my media across different devices in my apartment (my current project is finding a cheap NAS setup to be somewhat expandable). Since I love messing around with hardware and software, I got a Raspberry Pi. The perfect little linux computer that is insanely cheap, and easy to get up and running.

Putting XBMC and RPi together, The Raspberry Pi showcased that you can run 1080p video from the Raspberry Pi through HDMI. Before this I used a Zotac ZBox ID41, but for the price of it and the amount of times I actually used it, I decided to switch to the Raspberry Pi approach.

After months of messing with Raspbmc (and other XBMC oriented versions of Raspbian) and having a bit of trouble, I finally tried the new build of OpenELEC made for Raspberry Pis running XBMC 12.1.

Read More >>

2013
03.14

Just want to post a solution to an error I was getting when I was trying to build my Titanium app for Android.

I always got this error

[ERROR] Application Installer abnormal process termination. Process exit value was 1

Turns out I had to set the API version in the tiapp.xml like this where my API version is 17

<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>17</tool-api-level>
</android>

Hope this helps someone else.

2013
01.15

To find the string ‘foo’ inside the array $array and remove it, you can do this.

unset($array[array_search('foo', $array)]);
2013
01.03

You don’t need SSH access, just use this command:

mysql -h db.server -u user -p dbname

You’ll need mysql installed on your machine to run it. If you’re on a Mac, you can install mysql through homebrew by typing in terminal:

homebrew install mysql

This can be really handy if you don’t have phpMyAdmin access or your Navicat is acting up.