Query of the day: Meal Times
I have a table like this: id name starttime endtime 1 Breakfast 01:00:00 11:00:00 2 Lunch 11:00:00 16:00:00 3 Dinner 16:00:00 23:00:00 This query will figure out which time range the current time fits...
View ArticleUse Media Queries in IE6+
Recently I had to use Media Queries to handle a responsive site so that it could be viewed in mobile. I really didn’t want to redo it all so it would work in IE, so I found this amazing time saving...
View ArticleLogin remotely to a MySQL server through terminal
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...
View ArticleSnippet: Remove item from Array in PHP
To find the string ‘foo’ inside the array $array and remove it, you can do this. unset($array[array_search('foo', $array)]);
View ArticleTitanium: Application Installer abnormal process termination Android solution
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....
View ArticleOpenELEC and Raspberry Pi
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...
View ArticleSnippet: Group By with Collections in BackboneJS
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...
View ArticleMicrosoft Surface Pro, or how I learned to stop using Apple products
So, I quit my job about a month ago to start working at Digital Extremes (by the way, play Warframe) and finally I was able to rid myself of Apple devices. The only reason I had a Macbook pro in the...
View ArticleRipping Blu Rays and DVDs is a chore
I’ve been ripping a lot of my personal DVD and Blu-Ray collection to be put on my NAS system instead (see my multiple posts about how XBMC is awesome). I usually use Handbrake or MeGUI to encode to...
View ArticleGigabyte Brix Pro and Hyperspin vs GameEx
I recently acquired a Gigabyte Brix Pro (this one) and decided to turn it into an emulator/steam powerhouse. For what it is, its pretty impressive for its size. I’m able to fit an mSATA drive (64gb)...
View Article