The blog has moved to ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Sunday, May 29, 2011

rails 3.1 javascript execution

Looking at a few different ways to execute javascript in rails 3.1. By default all javascript is compiled into one file and embedded in anonymous functions which all execute on each page.

We often want to be selective in how our javascript executes, based on controller and actions. We look at 3 different approaches

  • use selectors based on form id
  • use selectors based on css classes on the body
  • namespaced javascript objects

if you know of any other approaches I would love to hear those as well

I recommend you click the HD link on the player and view it on Vimeo in full screen mode, this embed version is not so crisp.


Thursday, May 26, 2011

rails 3.1 asset pipeline

a quick look at app, lib, vendor and gem assets for rails 3.1 rc1

It is a pretty rough screen cast, but hopefully has some useful information for you

I recommend you click the HD link on the player and view it on Vimeo in full screen mode, this embed version is not so crisp.


UPDATE: see "Unholy Rails: External Scripts, jQuery Plugins, and Page-Specific JavaScript" for a detailed look at using the asset pipeline with rails. 

Wednesday, May 25, 2011

Stream Tennis - 2011 Roland Garros

if your ISP supports ESPN3 they have live and replay streams for 2011 Roland Garros

Sunday, May 8, 2011

AT&T site has some serious issues

I went to check on the price of DSL, I've been a long time Comcast customer and getting tired of the high cost. So I went to check it out on AT&T - all I can say is WTF?

Select 'DSL without phone', but then my choices are everything except what I am looking for?
I think they need to go back and do some more QA

Now I get to choose my phone service - WTF: I selected 'without phone service' for a reason

Tuesday, May 3, 2011

Simple.Data and MongoDB

Get really dynamic with Simple.Data and MongoDB

took me awhile to figure out the proper way to establish a connection with Simple.Data.MongoDB


You can install all of the dlls using Nuget, search for Simple.Data.MongoDB and install that package it will bring in the rest

Some of the errors I received on my journey

From Simple.Data
Message=No valid exports were found that match the constraint '((exportDefinition.ContractName == "Ado") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "Simple.Data.Adapter".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.
And from mongo driver when my connection string was not in the correct format, I was using the wrong port
Message=No connection could be made because the target machine actively refused it