if your ISP supports ESPN3 they have live and replay streams for 2011 Roland Garros
The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Wednesday, May 25, 2011
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
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
Labels:
WTF
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
Resources
took me awhile to figure out the proper way to establish a connection with Simple.Data.MongoDB
Resources
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 127.0.0.1:
Labels:
mongoDB
Friday, April 22, 2011
Fixing asp.net MVC AuthorizeAttribute
With very little code we can fix asp.net MVC AuthorizeAttribute
What problems does it have? Too much redirection.
What problems does it have? Too much redirection.
- When making ajax calls a HTTP 401 (Unauthorized) would be better than a redirection
- If I am already logged in but access a secure resource (controller / action) redirecting to the login page is far from ideal, an access denied view makes more sense
When is the built in redirection appropriate? When making standard HTTP request and the user is not authenticated.
it turns out it is relatively easy to fix these issues
- inherit AuthorizeAttribute
- override HandleUnauthorizedRequest
#1: Ajax request should not return redirection / html response
if the user cannot authorize an action and the request is made via ajax we don't want 200 or 302 response codes
we do want 401 Unauthorized, but we have to settle for a 403 Forbidden
The code to fix this
#2: Authenticated users should not redirect to the login page, they should get an Access Denied page
The code to fix this
Turns out very little code is needed - but seems like some of this should just be built in? Using the 401 response won't work because the asp mvc framework must be picking that up later on and forcing the redirection to the login page, the 403 is not ideal but it is effective.
The code for our class - AuthorizeFor
Usage of our AuthorizeFor attribute
Resources
- MSDN AuthorizeAttribute
- Stack Overflow post about the 401 403 issue
Labels:
javascript,
mvc
Friday, April 15, 2011
Log: Wildlife sightings summer 2010
Came across some notes from my vacation last summer, figured I might as well post them on the net (better late then never). Not in any order and contains both spelling and grammer errors, enjoy:
2010-06-27 UT,AZ,ID:
Swainsons Hawk
Black Throated Sparrow
2010-06-30 Zion
Rocky Mountain Bighorn Sheep
2010-07-01 Uinta, UT:
Tanager
Kestrel
Robins
2010-07-01 Near Yellowstone:
Bald Eagle
Osprey
2010-07-01 - 2010-07-04 Yellowstone:
Grizzley Bear + 2 cubs
Girizley Bear + 3 cubs
Red Tail
Gray Jay
Mtn Blue Bird
Mule Deer
Cyotes
Otters
Junco
Common Muskrat
Deer Mouse
Chipping Sparrow
Cassins Finch
Cliff Swallow
Brewers Blackbird
Cowbird
2010-07-04 Leaving Yellowstone -> Cody, WY:
Black Bears
Sandhill Cranes
2 Coopers Hawks
2 Golden Eagles
Harrier (Male)
Waxwings
Terns
2010-07-06 Big Horn National Forest, WY:
Moose
Marmots
we went on to the Black Hills of South Dakota, Montana, and Alberta after this, but I must have stopped keeping track of sightings, there were plenty more...
2010-06-27 UT,AZ,ID:
Swainsons Hawk
Black Throated Sparrow
2010-06-30 Zion
Rocky Mountain Bighorn Sheep
2010-07-01 Uinta, UT:
Tanager
Kestrel
Robins
2010-07-01 Near Yellowstone:
Bald Eagle
Osprey
2010-07-01 - 2010-07-04 Yellowstone:
Grizzley Bear + 2 cubs
Girizley Bear + 3 cubs
Red Tail
Gray Jay
Mtn Blue Bird
Mule Deer
Cyotes
Otters
Junco
Common Muskrat
Deer Mouse
Chipping Sparrow
Cassins Finch
Cliff Swallow
Brewers Blackbird
Cowbird
2010-07-04 Leaving Yellowstone -> Cody, WY:
Black Bears
Sandhill Cranes
2 Coopers Hawks
2 Golden Eagles
Harrier (Male)
Waxwings
Terns
2010-07-06 Big Horn National Forest, WY:
Moose
Marmots
we went on to the Black Hills of South Dakota, Montana, and Alberta after this, but I must have stopped keeping track of sightings, there were plenty more...
Labels:
birds
Saturday, April 9, 2011
Notes - TeamCity setup on Ubuntu
Notes from setting up TeamCity on Ubuntu
TeamCity on Ubuntu ================================================================== Go to http://www.jetbrains.com/teamcity/download/ and download the linux distribution set JAVA_HOME : update .bashrc add the following lines -------------------------- export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk/bin/java export PATH=$PATH:/usr/lib/jvm/java-1.6.0-openjdk/bin tar xfz TeamCity-6.0.3.tar.gz put extracted TeamCity directory under ~/TeamCity open terminal and run bin/runAll.sh start from the ~/TeamCity directory install tcWebHook plugin ================================================================== http://tcplugins.sourceforge.net/files/tcWebHooks - http://sourceforge.net/apps/trac/tcplugins/wiki/TcWebHooks create directory at ~/.BuildServer/plugins - tcWebHooks put the jar file in that directory restart the teamcity server there should be a new tab 'web hooks' on the build results, not in the admin section
Subscribe to:
Posts (Atom)






