Thursday, February 24, 2011

Fun with HTTP Response Codes

I’ve been looking at REST and hypermedia for a current project and wanted to get to know the response codes that are possible. I also wanted to see how conversational they really are so I used a semi-fictitious conversation I had with my wife about private school where she was making requests and I was responding in HTTP Response codes.

A: Steve? What do you think of sending Ayda to private school at 650/month

Me: 102 Processing

Me: 409 Conflict

Me: 400 Bad Request -  No

A: Listen to me! If she doesn’t go to a good school her potential could be lost. Look at these scores of the current school?

Me: 202 Accepted – They look pretty Bad

Me: 307 Temporary Redirect I’m watching football can we talk about this later

A: No Look at the curriculum of the private school

Me: 202 Accepted – This looks pretty good. Science taught in the 1st grade.

Me 204 No Content

A: I was talking to the teacher at the private school and she said blah blah blah blah

Me: 414 Request-URI Too Long

A: Can we afford it?

Me: 507 Insufficient Storage and 509 Bandwidth Limit Exceeded

A: We could pay for it by getting credit cards

Me: 403 Forbidden or  406 Not Acceptable

A: Do you think we could ask for help from a you Mom to pay for this.

Me: 407 Proxy Authentication Required

A: Well, You don’t have a choice

Me: 402 Payment Required

Friday, April 16, 2010

Making NC BBQ

Detailed instructions on making NC BBQ

When buying the meat look for Boston Butt, Pork Shoulder or Picnic Roast. You may have to ask the butcher. In NC, these are in the meat case in every store.

The Night Before

1) Soak your wood chips. I usually soak about 2 lbs or 1/2 a bag
2) Make the rub
a. This is Neely's rub and is very simple. Modify as you see fit.
1 1/2 cups paprika
3/4 cup sugar
3 3/4 tablespoons onion powder
b. Mix Neely's rub 50/50 with Brown Sugar. I like the brown sugar because it adds sweetness and crust to the BBQ.
3) Rinse the Pork shoulder and pat dry
4) Apply the rub to all sides, Cover and put in the fridge.


The Day of cooking
1) Preheat the Grill to 250. Get a 5 dollar
2) If on gas make 4-5 smoking pouches using tin foil. Poke holes in the top to release smoke.
3) When grill is preheated put Pork on side opposite the heat source for indirect grilling
4) Replace chips/smoking pouches every 45 minutes. for 4 hours
5) After 4 hours the pork has taken as much smoke as it's going to. If your on gas and your temp is steady 250 then you can keep cooking for 4 more hours. You can also wrap the pork with a double wide sheet of foil very loosely. This will hold in moisture and insure tenderness
I like to bring mine in and put in a dutch oven. This is only because I cannot maintain a consistent temperature and I have kids.

After 8-9 hours of cooking you should be done. The meat should pull back from the bone and the bone should be easy to pull out.
Put the meat on a plate cover with foil and let cool about 1 hours.

Now you can pull or chop the meat. I like to put a cutting board on a towel to catch the juices. I use 2 forks to pull it and leave longs strands.
Be sure to remove any fat you see.
Then I put it in a crock pot on low and add the BBQ sauce. Add to taste (about 1 cup) BBQ sauce can be added at serving time.

Here is a standard NC BBQ Sauce.
http://allrecipes.com/Recipe/Eastern-North-Carolina-BBQ-Sauce/Detail.aspx

Ingredients
1 cup white vinegar
1 cup cider vinegar
1 tablespoon brown sugar
1 tablespoon cayenne pepper
1 tablespoon hot pepper sauce (e.g. Tabasco™), or to taste
1 teaspoon salt
1 teaspoon ground black pepper
Directions
1.Combine the white vinegar, cider vinegar, brown sugar, cayenne pepper, hot pepper sauce, salt and pepper in a jar or bottle with a tight-fitting lid.
Refrigerate for 1 to 2 days before using so that the flavors will blend.
Shake occasionally, and store for up to 2 months in the refrigerator.

Wednesday, November 25, 2009

New China Cabinet

Built this this weekend to hold all the nice china we've been accumulating.

Designed the whole thing in SketchUp.
Made the doors as well.
Need to work on my finishing techniques.





Friday, January 23, 2009

Kids Playing

Emma Walking. She is 16.5 months old here


Ayda Sledding


Ayda at Karate


Ayda Singing

Tuesday, August 26, 2008

My Car

Here is a pic of the first new car I ever owned. I
The first day I brought it home is snowed 7 inches, and I had a blast getting to work
traded in my Harley to get it. I had been in 2 accidents on the bike and didn't want to take a chance with a third. But I did buy a fun fast car.

.

Tuesday, July 15, 2008

Wednesday, October 31, 2007

Silverlight Examples

I have a couple silverlight examples here. I created these prior to having a blog and like the full control I get from my own website

One is a Bezier curve and the other is a filmstrip written in Silverlight