Posted by david on 31. January 2009 21:21
“A well-designed web application written for ASP.NET will include separate components that may be organized into distinct data and business tiers. Once you’ve created these components, you can use them from any ASP.NET web page seamlessly.” (1) ( i really need to figure out how to cite book in blogs )
2 ways
Create a new .cs file in the App_Code subdirectory
Create a new class library project ( inside or outside your solution, as mentioned in the last post)
Don’t use the first unless the component is tightly coupled to the app … if you have any intention of reusing the code, stick it in a library.
Macdonald’s explanation of all this, in Pro ASP.NET 3.5, is really, really clear. The example code is nice, too.
1. Macdonald Pro, chap5
Posted by david on 31. January 2009 19:29
just playing around a little … making yesterday’s work a litle better
2008_01_31
I put the input/output boxes inside of an AJAX updatepanel,
added an updateprogress image –
a) cuz the geocode takes a few seconds &
b) cuz I had never done it before.
the time it takes to geocode is of concern …
is there a way to batch ‘em?
animated gifs More...
Posted by david on 29. January 2009 22:02
In the last episode of 24, we managed to get the structure & namespaces working … or, at least, not redlined. I used the svcutil command line to consolidate the VEWS into one Service Reference – & things looked OK on the surface.
-------------------------------------
now to start getting all the parts working together. First, since everything looks legal, let’s go ahead & try connecting to the geocode service ..
add a “var geoRequest = new GeocodeRequest();” … GeocodeRequest fails. More...
Posted by david on 28. January 2009 23:56
the previous few posts are all out of order .. they were unsaved posts from various dates.
I’ve, once and for all, settled on using VEWS to power the geocode stuff.
I have been trying to get it working for an embarrassingly long time.
but but but, fortunately, it’s not entirely my fault.
due to two bugs/glitches/challenges:
id/password acceptance when adding a service
the added services not actually being usable & causing a parser error, which shut the entire app down, at the top level page.
More...
Posted by david on 28. January 2009 22:09
ultimately, the geocode service will be used to generate lat longs whenever my data only has a street address. I expect it will be automagic when the grid runs, or when the data is initially added to the db. for user generated points, this would be quick .. but what I am aiming for is being able to do bulk work … particularly because I have a table of 3-400 seattle parks with only addresses.
So, I’ve got the webservice setup … now i just gotta figure out how to use it at will. First test is a text box for a user entered address, output the lat and long to the page.
BTW, books247 on the kcls.org has an online copy of
Professional Web APIs: Google, eBay, Amazon.Com, MapPoint, FedEx by Denise M. Gosnell
Chapter 3 is a detailed step through of the MapPoint API, with detailed setup steps.
More...
Posted by david on 28. January 2009 22:09
miata alternator replacement
Lake City Auto Works 206-364-710 $370
Earls 206-364-7400 $327
Midas 425-673-7470 $460
WikiAnswers - How do you remove the alternator on a 1999 Mazda Miata
A snarky howto from miata.net
Comments: 40
Filed Under:
Tags:
miata
Posted by david on 28. January 2009 22:08
using VEWS is to use WCF, on the server side. Since I’m not using it on the client side, there arises some trouble with the calls to the web service. Specifically, the whole app crashed with this error:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Reference.svcmap: Specified argument was out of the range of valid values.
Parameter name: site
Source Error:[No relevant source lines]
Source File: /App_WebReferences/VEWSGeocode/ Line: 1
LiveSide - Windows Live news and interviews
Reference.svcmap Specified argument was out of the range of valid values. - ASP.NET Forums
Posted by david on 27. January 2009 17:20
this came out pretty good … I worked from a recipe found at this blog, his third attempt at the recipe.
& modified a little:
1 hams shank ( my grocer didn’t have a ham hock, but he said this would work the same )
2 cans light red beans (rinsed)
1 can black beans (rinsed)
tab of butter
3 slices bacon, cut into thirds
2-3 tbs finely minced green pepper
2-3 tbs finely minced onion ( I just realized I forgot the onion when i cooked this )
1 tbs finely minced shallot
beef broth to keep everything wet.
drop tab of butter into a pot, render the bacon. Pull bacon out when done and set aside.
drop the pepper and onion and shallot mix into the pot, cook till soft. strip off some of the meat of the ham shank & thrown the meat & bone into the pot. add the beans. qtr tsp of salt. add some broth till things are soupy, to give the shank something to dissolve into. mash up some of the beans with the back of a spoon. bring it all to a boil then set it down to the lowest & let sit for at least an hour. add broth if things start getting too thick.
I also added a few splashes of chipotle tabasco.
Pull out the ham bones when the meat has fallen off & any too big hunks of fat.
The shank produced a surprising amount of meat.
Comments: 28
Filed Under:
Tags:
food,
pork
Posted by david on 24. January 2009 18:40
http://www.ralphrobertmoore.com/lately030105.html
http://www.recipesecrets.net/forums/recipe-exchange/18000-popeyes-red-beans-rice.html
http://www.cajuncookingrecipes.com/popeyes.htm
POPEYE'S RED BEANS AND RICE
Serving Size : 6 Preparation Time :0:00
Categories : Beans/Red
Amount Measure Ingredient -- Preparation Method
-------- ------------ --------------------------------
1 c Uncle ben's long grain rice
- cooked
2 cn Red chili beans in chili
- gravy--1 lb each
1 t Chili powder
1/4 t Cumin
1 Dash garlic salt
In saucepan heat beans without letting it boil and
stir in chili powder, cumin and garlic salt. When
piping hot, spoon chili mixture into 6 small dishes,
adding a few tb of hot, cooked rice to each serving.
Season with Chili Seasoning Mix, if desired. 270 cal,
5.9 gr fat, 60% fat.
Comments: 23
Filed Under:
Tags:
food
Posted by david on 23. January 2009 09:07
Windows Movie Maker on Windows Server 2008
Ing. Lele's Blog - HeadQuarter Windows Movie Maker on Windows Server 2008 x64
Comments: 35
Filed Under:
Tags:
tools