GocekUtilitiesWork
Utilities for generating a CAPTCHA.
Constructor
Returns an arraylist describing an image.
The char to be displayed in a CAPTCHA.
Four string elements - URL, alt text, width, height
The first term of the arithmetic problem
The operation of the arithmetic problem: +, -, x, d
The second term of the arithmetic problem
Equals, for the end of the arithmetic problem
The answer for the arithmetic problem
Load.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Load HTML source code from a server,
and provide access methods.
The URL of the HTML file.
Return the string containing the contents of the URL provided to the constructor.
Summary description for HtmlUtilities.
Empty constructor class containing static methods.
Load HTML source code from a server.
The URL of the HTML file
The source HTML markup of the provided URL.
Methods and properties for getting data from the National Weather Service.
Instantiate the weather service class.
Cache the time stamp and weather data for the provided location.
The URL for current conditions.
The location latitude.
The location longitude.
A short name for the location used to generate the cache name and point forecast name.
Cache the time stamp and incident data for the provided location.
The or-bar separated URLs for incident reports.
A short name for identifying the location.
Get the current conditions from the web.
The URL for the current conditions XML file.
Should correspond to schema http://www.weather.gov/data/current_obs/current_observation.xsd
A short name for the location used to generate the cache name and point forecast name.
Parse the XML root node containing info on current conditions.
The XML node that is the root of the current conditions XML document.
A short name for the location used to generate the cache name and point forecast name.
Cache a human readable string for the current conditions.
A short name for the location used to generate the cache name and point forecast name.
Get the current incidents from the web.
The or-bar separated URLs for incident reports.
Look for incidents near this latitude.
Look for incidents near this longitude.
A short name for identifying the location.
Cache a human readable string for the current incidents.
The HTML markup for incident reports.
A short name for idntifying the location.
Get the forecasted conditions from the web for the provided location.
The latitude of the location.
The longitude of the location.
A short name for the location used to generate the cache name and point forecast name.
Parse the XML root node containing info on forecasted conditions.
The start time of the desired forecast.
The end time of the desired forecast.
A short name for the location used to generate the cache name and point forecast name.
Cache a human readable string for the forecast.
A short name for the location used to generate the cache name and point forecast name.
Cache a short human readable string for the forecast.
A short name for the location used to generate the cache name and point forecast name.
Find a data node in the forecast XML given its xPath search string. The resulting node should have a name child
and a number of value children. The number will be the same number of time slots defined by the node's time layout key,
which names a time-layout node that has start or start/end elements.
Return the data values as a string array for use by the caller. The number of array elements must match the global number of
data time slots defined by numTimeSlots.
An xPath search string that finds the data node consisting of a name and value child elements.
A string array with the value for each time slot. In some cases, the number of values is not the same
as the number of time slots, so this method loads an empty string into unused slots. If the caller needs to
do some post processing such as to add a degree symbol after a temperature value, the caller should check
for the empty string.
Calculate markup for cells in a table returned by ForecastFriendlyWork.
An array of XML forecast items calculated before calling this method.
A set of numTimeSlots table columns. This is not the whole row, just the data items.
The columns are represented by td items, but the number of items may be less than the number of columns.
Colspan is used to combine empty slots.
Get a string with leading zeroes for the integer argument.
A positive integer from 0-99.
The int as a string with a leading zero if necessary.
Parse a W3C string date-time into a C# date-time
A string that is parseable into a date-time, 2007-01-12T17:21:18Z.
The data-time object.
Get a direction from the degrees.
Any number - corrected to be from 0 to 360.
A short string for the compass, such as E or SSW.
Get a direction GIF from the degrees. Note that SSW means that the winds are blowing from the SSW,
so the GIF arrow points to the NNE to indicate the direction observed by a person.
Any number - corrected to be from 0 to 360.
A GIF file name, such as /utilities/compass/dir01nne.gif.
Determine an English string according to the percent of cloud cover, such as Partly sunny.
The hour of the time slot for which the cloudiness string is needed,
used to choose between sunny for daytime and clear for nighttime.
The percent of cloud cover.
A simple string, like Clear or Partly cloudy.
Predict a snowfall amount based on a rainfall amount.
The predicted QPF.
The month, Jan=1, Dec=12
The predicted wind speed in miles per hour (possibly adjusted from knots)
The predicted relative humidity
The predicted temperature
Set app variables to an error message and a date app variable to the empty string.
If non-empty, the application variable by this name is set to eCode or eMsg.
If non-empty, the application variable by this name is set to eCode or eMsg.
If non-empty, the application variable by this name is set to eCode or eMsg.
If non-empty, the application variable by this name is set to null.
This should be the time stamp variable for some feature.
A short identifier appended to "There was an error: " Used when the page URL does not contain localhost.
An error message such as from an exception. Used when the page URL contains localhost.
Returns a human readable string for the current conditions near Gary's cam.
A human readable string for the current conditions.
Returns a human readable string for the current conditions near the provided location.
A URL for current observations.
Latitude, north is positive, for a point forecast.
Longitude, west is negative, for a point forecast.
Keep this name very short, used as a table header.
A human readable string for the current conditions.
Returns a human readable string for the current incidents near Gary's cam.
A human readable string for the current incidents.
Returns a human readable string for the current incidents near the provided location.
URLs for incident reports.
Latitude, north is positive, for a point forecast.
Longitude, west is negative, for a point forecast.
Keep this name very short, an identifier for the location.
Returns a human readable string for the forecast at Gary's cam.
A human readable string for the forecast at Gary's cam.
Returns a short human readable string for the forecast at Gary's cam.
A short human readable string for the forecast at Gary's cam.
Returns a human readable string for the forecast near the provided location.
A URL for current observations.
Latitude, north is positive, for a point forecast.
Longitude, west is negative, for a point forecast.
Keep this name very short, used as a table header.
A human readable string for the forecast near the provided location.
Returns a short human readable string for the forecast near the provided location.
A URL for current observations.
Latitude, north is positive, for a point forecast.
Longitude, west is negative, for a point forecast.
Keep this name very short, used as a table header.
A short human readable string for the forecast near the provided location.
Summary description for OpenidUtilities.
Constructor
Calculate a value of discovered info, e.g., v2 is worth more than v1.
The state
The version
A simple value
Get the HTTP headers for a URL. The URL should be normalized and validated.
The full URL.
The collection of headers.
Download the HTML data for a URL. The URL should be normalized and validated.
The full URL.
The data.
Get the head section, including the HEAD and /HEAD tags, from the overall HTML markup.
The markup for the whole page.
The HEAD section, or empty string or null.
Parse the HEAD data for META tags.
The HEAD section of some web page.
The META tags in the HEAD section with an http-equiv attribute.
Each key is the value of the http-equiv attribute, the value is the content attribute value.
Parse the HEAD data for LINK tags.
The HEAD section of some web page.
The LINK tags in the HEAD section with a rel attribute.
Each key is the value of the rel attribute, the value is the href attribute value.
Read the XRDS file at the URL.
The URL for the XRDS file, already validated and normalized.
The relevant contents (server, local id, spec version) of the XRDS file.
Gets the value from the collection of the first name/value pair
with the privided name. Tests the value against the provided test value.
If the values do not match, then the return value is null.
The collection to search
The name to use to search
Compared with the value that is found, if any.
The value of the first pair with the provided name, or null if no pairs for that name.
If testValue is non-empty, it is compared with the value of the first pair with the provided name.
If testValue is not contained in the value, then the return value is null. If testValue is empty, no
comparison is attempted, i.e., any value is returned that can be found for the name.
For a block of HTML data, looks for 'name'='value' and returns the value or null.
This works for META and LINK tags, which start with one less-than and end with one greater-than,
but do not use end tags with a slash.
A small chunk of HTML, such as a META tag, possibly with newlines
and arbitrary whitespace.
The name to look for.
A specific case-sensitive value to find.
The value for the first name attribute in the block, or null of the name is
not found. If testVal is specified and found, returns the value matching testVal, else null.
Validate and adjust a URL, such as by prefixing http://.
The URL, possibly straight from the user.
The normalized URL beginning with http, or if there is a validation problem,
a string beginning with Error:.
Follow the links starting at a normalized end user URL to get the endpoint URL
at which the user can log in.
The validated and normalized URL from the end user.
The URL and query string for the openid provider endpoint, or a string starting with Error:.
Recurse through each provider link until an endpoint is found, or until five hops have occurred.
The info on the previous hop, which tells the next hop where to go.
The result of the hop.
Calculate the query string for the base openid request.
The openid version is pulled from the endpoint.
Info about the request
A query string with no question mark and does not end with an ampersand.
Calculate an authentication query string for openid versions prior to 2.0.
Info about the request
A query string with no question mark and does not end with an ampersand.
Calculate an authentication query string for openid version 2.0.
Info about the request
A query string with no question mark and does not end with an ampersand.
Calculate a simple registration query string.
Info about the request
A query string with no question mark and does not end with an ampersand.
For testing an openid end user URL that does not work. Gets the headers and html data.
Do not call this from the production web page.
A URL.
The HTTP headers and the HTML data for the URL.
img markup for login textbox or fully authenticated users.
img markup for partially authenticated users.
Site path to the icon for login textbox or fully authenticated users.
Site path to the icon for partially authenticated users.
Describes the things that were found during a discovery hop.
The version of the authentication spec associated with a discovery hop result.
Information about a discovery hop.