Bittorrent Sync - File syncing for developers

Bittorrent sync is a new file sharing app released by Bittorrent Labs. People are saying its an alternative to popular file syncing services such as Dropbox, SkyDrive, etc. However I don鈥檛 currently see it as being a true replacement for these services but after playing with for the last few weeks I must say I鈥檓 impressed and I feel it does sport some cool features I鈥檝e long wished for in a file syncing app....

June 16, 2013 路 3 min 路 Brandon Pugh

The Obligatory Octopress Post

I finally migrated my blog from Wordpress to Octopress and given all the blog posts I came across while getting it setup it seems almost like a rite of passage to blog about it once you鈥檝e migrated. Why make the move?! For the hacker street cred of course. But seriously, I was growing really tired with the performance of Wordpress and dealing with shared hosting on Godaddy and my colleague suggested I give Octopress a try and so here I am....

January 24, 2013 路 1 min 路 Brandon Pugh

Checking if a dom element exists with JQuery [Byte sized tips]

This is a simple tip but one I feel makes my code a bit easier to read. I was never very pleased with the standard way of checking if a dom element exits in jquery: if($('#userName').length !== 0){ //do something with $('#firstName') } The solution I like is to create a very simple jQuery plugin to encapsulate this logic: // this extension reads better when selecting elements $.fn.exists = function () { return this ....

June 25, 2012 路 1 min 路 Brandon Pugh

How to use jQuery .on() instead of .live()

One of the most used features of jQuery is the easy methods it provides to to attach event handlers to dom elements like this simple example: $('.submitButton').click(function() { validateForm(); }); It doesn鈥檛 get much easier than that. However, a lot of times we鈥檒l want to attach events to elements that were loaded after the initial page load such as from the result of an ajax request. This is where the ....

January 15, 2012 路 3 min 路 Brandon Pugh

My thoughts on the Global Day of Coderetreat

Last weekend I attended the Global Day of Coderetreat in Dallas, TX which was not only my first Coderetreat but also my first time attending a developer community event and I have to say that it was a great and worthwhile experience. If you鈥檙e unfamiliar with the format of a Coderetreat you can read all about it at coderetreat.com but its basically a code kata where you spend most of the day pairing up in 45 min sessions and attempt to solve Conway鈥檚 Game of Life (a fascinating problem by itself)....

December 9, 2011 路 3 min 路 Brandon Pugh