thecodeabode.blogspot.com
The Code Abode: July 2012
http://thecodeabode.blogspot.com/2012_07_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Friday, July 20, 2012. 3 Character to 2 Character Country Codes. For anyone else who needs to map 3 character to 2 character country codes in ruby, I have provided the following class based on the ISO 3166-1 country code list found at http:/ en.wikipedia.org/wiki/ISO 3166-1#Current codes. Saturday, July 14, 2012. Google-api-client Authorizing with an API Key in Ruby. THE MOST IMPORTANT BIT. Was the :authorization param when constructing ...
thecodeabode.blogspot.com
The Code Abode: November 2010
http://thecodeabode.blogspot.com/2010_11_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Thursday, November 25, 2010. CodeIgniter and PHP Howto - Embedding images in Email. DOWNLOAD THE CODEIGNITER EMAIL EXTENSION HERE. I recently had an issue in a client's development which required images to be embedded in html email code ( img src='cid:embeddedImage' / ), rather than referenced via a public url (i.e. img src='http:/ www.mysite.com/myImage.png' / ). QUICK OVERVIEW - THE PUNCH LINE. Images are immediately displayed when ope...
thecodeabode.blogspot.com
The Code Abode: Why you shouldn't choose Spine.JS
http://thecodeabode.blogspot.com/2014/02/why-you-shouldnt-choose-spinejs.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Tuesday, February 25, 2014. Why you shouldn't choose Spine.JS. This is really for my own benefit. something to remind me of the reasons why I shouldn't ever choose Spine.JS over other client side MVC frameworks. Shoot me a comment if you'd like to add to this list. In order of importance:. Its Backbone's red headed stepchild. Just chose Backbone. It uses global collection helpers, and caches (i.e. MyModel.all). This sound...Itemsave() do...
thecodeabode.blogspot.com
The Code Abode: April 2013
http://thecodeabode.blogspot.com/2013_04_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Sunday, April 21, 2013. Git: patching diffs between branches. Recently I accidentally committed changes to master that I want to commit in a feature branch. I made the mistake of. Branching master (to a feature branch) from my erroneous commit - then. Resetting (HARD) master to the previous commit. This axed all my history in my feature branch as the commit which I branched from in master no longer existed. Then apply the patch:. SafeRea...
thecodeabode.blogspot.com
The Code Abode: Backbone.JS and SEO: Google Ajax Crawling Scheme
http://thecodeabode.blogspot.com/2013/03/backbonejs-and-seo-google-ajax-crawling.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Tuesday, March 26, 2013. Backbone.JS and SEO: Google Ajax Crawling Scheme. Most search engines hate client side MVC, but luckily there's a few tools around to get your client side routes indexed. Which basically states that IF you want js rendered DOM content to be indexed (i.e. rendering ajax call results), you must be able to:. Trigger a page state (javascript rendering) via the url using hashbangs #! Ie http:/ www.mysite.com/#! Source...
thecodeabode.blogspot.com
The Code Abode: October 2010
http://thecodeabode.blogspot.com/2010_10_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Friday, October 15, 2010. Google Analytics - multi domain named site tracking. Another quick blog. Recently I added analytics to a couple of sites with more than one domain name. Its easy to see how much of your traffic is from each hostname (Vistors- Network Properties- Hostnames), but. I wanted to be able to overlay how much traffic was arriving to the site from each domain (to see which one was most effectively being advertised).
thecodeabode.blogspot.com
The Code Abode: IE Ajax requests returning 401 Unauthorized in Rails / Sinatra
http://thecodeabode.blogspot.com/2013/04/ie-ajax-requests-returning-401.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Thursday, April 11, 2013. IE Ajax requests returning 401 Unauthorized in Rails / Sinatra. Here's a quick little nugget of info for any devs experiencing ajax issues in IE. Firstly, earlier ( = IE 8) versions of IE cache everything ajax, and it can be a pain to resolve without compromising (breaking through) server side cache. I wrote an article here. Not a fun bug. The solution is to either downcase the header client side for all ajax re...
thecodeabode.blogspot.com
The Code Abode: February 2014
http://thecodeabode.blogspot.com/2014_02_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Tuesday, February 25, 2014. Why you shouldn't choose Spine.JS. This is really for my own benefit. something to remind me of the reasons why I shouldn't ever choose Spine.JS over other client side MVC frameworks. Shoot me a comment if you'd like to add to this list. In order of importance:. Its Backbone's red headed stepchild. Just chose Backbone. It uses global collection helpers, and caches (i.e. MyModel.all). This sound...Awesome Inc&#...
thecodeabode.blogspot.com
The Code Abode: January 2011
http://thecodeabode.blogspot.com/2011_01_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Tuesday, January 18, 2011. Detect the Adobe Reader Plugin. Recently I had to be able to detect the Adobe Reader Plugin in Javascript. I have included the code I used to flag if the Adobe Reader Plugin is installed, as well as get the version of the current adobe reader plugin. This code will detect:. Adobe Reader Plugin for Firefox. Adobe Reader Plugin for IE ( 5 and 5 ). Adobe Reader Plugin for Chrome and. WebKit PDF Reader for Safari.
thecodeabode.blogspot.com
The Code Abode: March 2013
http://thecodeabode.blogspot.com/2013_03_01_archive.html
All things code from Ruby to PHP, C#, Backbone.JS and Coffeescript. Tuesday, March 26, 2013. Backbone.JS and SEO: Google Ajax Crawling Scheme. Most search engines hate client side MVC, but luckily there's a few tools around to get your client side routes indexed. Which basically states that IF you want js rendered DOM content to be indexed (i.e. rendering ajax call results), you must be able to:. Trigger a page state (javascript rendering) via the url using hashbangs #! Ie http:/ www.mysite.com/#! Source...