Skip to content

Instantly share code, notes, and snippets.

[Async_ExceptionOccurred]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60831.0&File=System.dll&Key=Async_ExceptionOccurred
[HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60831.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at AdSmart360.AdTrak.Services.MediaCenterServiceReference.GetMediaDataCompletedEventArgs.get_Result()
at AdSmart360.AdTrak.MediaCenter.ViewModel.MediaVisualViewModel.MediaClient_GetMediaDataCompleted(Object sender, GetMediaDataCompletedEventArgs e)
@joshsmith
joshsmith / gist:1932988
Created February 28, 2012 15:06
CSS code conventions

CSS code conventions

Block style

selector {
    property: value;
}
  • Each selector is on its own line.
@joshsmith
joshsmith / gist:2041454
Created March 15, 2012 02:49
Geoffrey Moore's positioning framework (for products)

Product Positioning Framework

  • For (target customers)
  • Who must (solve a specific problem)
  • Our product is a new (new product category)
  • That provides (key breakthrough benefit vs. current way of doing things – which solves dilemma)
  • Unlike (competitor in new category)
  • We have (whole product most relevant for you)
export EDITOR="mate -w"
export PATH=~/bin:$PATH
export PATH=/Applications/MAMP/Library/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin/node:$PATH
export PATH=/usr/local/php5/bin/pear:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql83/bin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/pg_config/bin:$PATH
# Directories
alias ..='cd ..'
alias cdd="cd -"
# Git
alias g='git status'
alias ga='git add -A'
alias gc='git commit -a -s'
alias gcb='git checkout -b' # Check out a new branch
alias hack='bash ~/hack.sh' # Hack on the branch
@joshsmith
joshsmith / gist:3949595
Created October 24, 2012 23:30
sign_up_spec.rb
require 'spec_helper'
feature 'Signing up' do
scenario 'Successful sign up' do
visit '/signup'
fill_in "Name", :with => "Test User"
fill_in "Username", :with => "testuser"
fill_in "Email", :with => "[email protected]"
fill_in "Password", :with => "password"
click_button "Create Account"
require 'spec_helper'
feature 'Signing in' do
before do
create(:user)
visit '/signin'
end
scenario 'Successful sign in' do
fill_in "Login", :with => "[email protected]"
<div id="controls">
<% if signed_in? %>
<div class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><%= current_user.name %> <b class="caret"></b></a>
<ul class="dropdown-menu pull-right" role="menu">
<li>
<%= link_to("View Profile", user_path(current_user.username)) %>
</li>
<li>
<%= link_to("Edit Profile", edit_user_path(current_user.username)) %>
require 'spec_helper'
feature 'Reset password' do
attr_accessor :current_email_address
scenario 'Successful password reset' do
user = create(:user)
original_password = user.password
visit '/signin'
click_link "Forgot your password?"
%h2 Edit your profile
= form_for @user, :html => { :class => "form-horizontal" } do |f|
.control-group
= f.label :first_name, :class => "control-label"
.controls
= f.text_field :first_name
.control-group
= f.label :last_name, :class => "control-label"