Replace a bad hard drive on a Synology DiskStation RAID 5 with DSM 5.0

I received an alert from my Synology RAID regarding a few bad sectors on a hard drive. Even though the RAID is still operational, it’s best practice to replace the hard drive before any data gets corrupted due to the bad sectors.

Read More
Jun 28, 2014 3 min read

jQuery CORS fix for IE8 and IE9

No browser is left behind

Who can blame jQuery for not wanting to support Internet Explorer? Despite whatever the reason, it doesn’t always make business sense and we must support it. I found this piece of code that patches the issue with jQuery.

Read More
Jun 20, 2014 1 min read

Chef Gearman Cookbook v0.1.0

A little Gearman cookbook I put together for Chef. Supports installing multiple versions by source. Also has a recipe for the PHP extension.

Grab it from GitHub!

kthxbye.

Read More
Jun 12, 2014 1 min read

Update Chef Solo on your Vagrant

Install vagrant-omnibus:

vagrant plugin install vagrant-omnibus

Configure your Vagrantfile before provisioning to the latest version of Chef:

config.omnibus.chef_version = :latest

You can also upgrade to a specific version like so:

config.omnibus.chef_version = "11.12.8"
Read More
Jun 10, 2014 1 min read

Design Patterns Cheat Sheet

Here’s a quick cheat sheet for lots of design patterns. The examples in this post are linked to Java examples however they are not limited to a single language implementation. Special thanks to Derek Banas.

Read More
Jun 2, 2014 5 min read

Backing up and Restoring with MongoDB

Dump You can dump the database locally using the following mongodump: mongodump --host DATABASE_HOST --port PORT -d YOUR_DATABASE_NAME -u YOUR_DB_USERNAME -p YOUR_DB_PASSWORD This will create a dump folder containing a subfolder named after your database. The default port for MongoDB is 27017. Import You can import the same dump to a local MongoDB instance using something like the following mongorestore after changing into the dump directory: mongorestore --host DATABASE_HOST --port PORT -d DATABASE_NAME_TO_IMPORT_TO --drop DATABASE_NAME_TO_IMPORT_FROM Note: This will drop the collections in the DATABASE_NAME_TO_IMPORT_TO database before restoring the same collections from your database dump.
Read More
May 30, 2014 1 min read

Converting Windows Network Path for Mac

If you’re given a Windows network path such as \\Foo\Bar then that basically means connect to shared folder Bar on the server Foo. To do this, you can go Finder -> Go -> Connect to Server... and type smb://Foo/Bar which is the equivalent.

Read More
May 30, 2014 1 min read

How to unlink Netflix from Panasonic Viera Cast VT25

Unfortunately you can’t on a Panasonic VT25. Someone managed to forget about that feature on the Netflix app. Weird because it’s there for YouTube, Pandora, Amazon, etc… The only way you can is by resetting your TV to the factory settings and starting from scratch. You’re wrong if you think you can just log into your Netflix account and click the unlink all devices link from your profile. On the plus side… Never mind, there is no plus side.

Read More
May 25, 2014 1 min read

iOS Simulator Link

The iOS Simulator is obviously a must have tool for development. Web development is no exception but Apple makes you jump through a few hoops (Xcode) to get to it. Luckily you can run it as a standalone application.

Read More
May 14, 2014 1 min read

Assembla SVN SSL Certificate Issue

I kept getting the following message when I tried running svn commands on my computer. I tried to accept the certificate permanently with no luck:

Error validating server certificate for 'https://subversion.assembla.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.assembla.com
 - Valid: from Wed, 16 Apr 2014 13:31:17 GMT until Thu, 24 Mar 2016 19:30:40 GMT
 - Issuer: http://certs.godaddy.com/repository/, GoDaddy.com, Inc., Scottsdale, Arizona, US
 - Fingerprint: ec:9f:9d:b2:39:e1:34:81:7b:27:f6:51:30:8b:ac:41:5b:62:09:19
(R)eject, accept (t)emporarily or accept (p)ermanently?
Read More
May 12, 2014 1 min read