findingaids
– Django-based Finding Aids site¶
findingaids
is a django site for search, browse, and display of
EAD xml finding aids, based on the eXist-db xml database.
Models¶
Because finding aids is an eXist/xml-based site, models are based on
eulcore.xmlmap.XmlObject
and make use of
eulcore.existdb.query.QuerySet
for easy access to sections of
EAD xml, and for search and retrieval within the eXist database.
Finding Aid (EAD)¶
-
class
findingaids.fa.models.
FindingAid
(node=None, context=None, **kwargs)¶ Customized version of
eulxml.EncodedArchivalDescription
EAD object.Additional fields and methods are used for search, browse, and display.
-
absolute_eadxml_url
()¶ Generate an absolute url to the xml view for this ead for use with external services such as Aeon
-
admin_info
()¶ Generate a list of administrative information fields from the archive description. Only includes MARBL-designated fields to be displayed as administrative information, in a specified order. Any fields not present in the finding aid will not be included in the list returned.
These fields are included, in this order: access restrictions, use restrictions, alternate form, related material, separated material, acquisition info, custodial history, preferred citation
Return type: list of eulxml.xmlmap.eadmap.Section
-
collection_description
()¶ Generate a list of collection description fields from the archive description. Only includes MARBL-designated fields to be displayed as collection description, in a specified order. Any fields not present in the finding aid will not be included in the list returned.
These fields are included, in this order: biography/history, bibliography, scope & content, arrangement, other finding aid
Return type: list of eulxml.xmlmap.eadmap.Section
-
dc_contributors
= <eulxml.xmlmap.fields.StringListField>¶ control access fields that should be mapped to Dublin Core contributor, based on encodinganalog attribute
-
dc_fields
()¶ Generate a dictionary of Dublin Core fields from an EAD. Dictionary key: base name of a Dublin Core field (e.g., creator, title) Dictionary value: a list of values corresponding to the DC field. Note that some keys may have empty lists as their values.
Return type: dict
-
dc_subjects
= <eulxml.xmlmap.fields.StringListField>¶ control access fields that should be mapped to Dublin Core subject, based on encodinganalog attribute
-
first_letter
= <eulxml.xmlmap.fields.StringField>¶ First letter of list title
-
has_digital_content
¶ boolean to indicate whether or not this EAD includes public digital content.
Note
If using partial xml return, requires that public_dao_count is included.
-
is_empty
()¶ Returns True if the root node contains no child elements, no attributes, and no text. Returns False if any are present.
-
is_valid
()¶ Determine if the current document is valid as far as we can determine. If there is a schema associated, check for schema validity. Otherwise, return True.
Return type: boolean
-
list_title
= <eulxml.xmlmap.fields.NodeField>¶ list title used for alphabetical browse - any origination name, or unittitle if there is none
-
list_title_normalized
= <eulxml.xmlmap.fields.StringField>¶ list title variant with normalized whitespace, for searching
-
objects
= <eulexistdb.manager.Manager object>¶ eulexistdb.manager.Manager
- similar to an object manager for django db objects, used for finding and retrieving FindingAid objects in eXist.Configured to use /ead as base search path.
-
origination_name
= <eulxml.xmlmap.fields.NodeField>¶ origination name, as an instance of
Name
-
public_dao_count
= <eulxml.xmlmap.fields.IntegerField>¶ count of public dao elements in a record, to support search filtering “public” is defined as audience external or not set, xlink:href present, and show not set to none.
-
request_materials_url
()¶ Construct the absolute url for use with external services such as Aeon
-
requestable
()¶ Determines if the EAD is applicable for the electronic request service.
-
schema_valid
()¶ Determine if the current document is schema-valid according to the configured XSD Schema associated with this instance of
XmlObject
.Return type: boolean Raises: Exception if no XSD schema is defined for this XmlObject instance
-
schema_validation_errors
()¶ Retrieve any validation errors that occured during schema validation done via
is_valid()
.Returns: a list of lxml.etree._LogEntry
instancesRaises: Exception if no XSD schema is defined for this XmlObject instance
-
serialize
(stream=None, pretty=False)¶ Serialize the contents of the XmlObject to a stream. Serializes current node only; for the entire XML document, use
serializeDocument()
.If no stream is specified, returns a string. :param stream: stream or other file-like object to write content to (optional) :param pretty: pretty-print the XML output; boolean, defaults to False :rtype: stream passed in or an instance of
cStringIO.StringIO
-
serializeDocument
(stream=None, pretty=False)¶ Serialize the contents of the entire XML document (including Doctype declaration, if there is one), with an XML declaration, for the current XmlObject to a stream.
If no stream is specified, returns a string. :param stream: stream or other file-like object to write content to (optional) :param pretty: pretty-print the XML output; boolean, defaults to False :rtype: stream passed in or an instance of
cStringIO.StringIO
-
stored_offsite
¶ boolean to indicate if collection materials are stored offsite, based on text in the collection access restriction note.
Note
If using partial xml return, requires that archdesc__access_restriction is included.
-
validation_errors
()¶ Return a list of validation errors. Returns an empty list if the xml is schema valid or no schema is defined. If a schema is defined but
schema_validate
is False, schema validation will be skipped.Currently only supports schema validation.
Return type: list
-
xmlschema
¶ A parsed XSD schema instance of
lxml.etree.XMLSchema
; will be loaded the first time it is requested on any instance of this class if XSD_SCHEMA is set and xmlchema is None. If you wish to load and parse the schema at class definition time, instead of at class instance initialization time, you may want to define your schema in your subclass like this:XSD_SCHEMA = "http://www.openarchives.org/OAI/2.0/oai_dc.xsd" xmlschema = xmlmap.loadSchema(XSD_SCHEMA)
-
xsl_transform
(filename=None, xsl=None, return_type=None, **params)¶ Run an xslt transform on the contents of the XmlObject.
XSLT can be passed in as an XSLT object generated by
load_xslt()
or as filename or string. If a params dictionary is specified, its items will be passed as parameters to the XSL transformation, and any string values will automatically be encoded as XSL string parameters.Note
If XSL is being used multiple times, it is recommended to use :meth`:load_xslt` to load and compile the XSLT once.
Parameters: - filename – xslt filename (optional, one of file and xsl is required)
- xsl – xslt as string OR compiled XSLT object as returned by
load_xslt()
(optional) - return_type – type of object to return; optional, defaults to
XmlObject
; specify unicode or string for text output
Returns: an instance of
XmlObject
or the return_type specified
-
Series and other Finding Aid sections¶
-
class
findingaids.fa.models.
Series
(node=None, context=None, **kwargs)¶ Top-level (c01) series.
Customized version of
eulxml.xmlmap.eadmap.Component
-
contains_correspondence
¶ Boolean property indicating if this series containes correspondence.
-
display_label
()¶ Series display label - unitid : unittitle (if unitid) or unittitle (if no unitid)
-
ead
= <eulxml.xmlmap.fields.NodeField>¶ findingaids.fa.models.FindingAid
access to ancestor EAD element
-
first_file_item
¶ Boolean: True if this component is the first file item in a series/container list
-
generic_rdf_type_by_series
()¶ Calculate a generic RDF type based on the series an item belongs to. Using bibo:Document for printed material, bibo:Image for photographs, bibo:AudioVisualDocument for audio/visual materials, with a fallback of bibo:Manuscript.
-
hasSubseries
()¶ Check if this component has subseries or not.
Determined based on level of first subcomponent (series or subseries) or if first component has subcomponents present.
rtype: boolean
-
has_semantic_data
¶ Does this item contains semantic data that should be rendered with RDFa? Currently checks the unittitle for a tagged person, corporate, or geographic name or for a title with source and authfilenumber attributes.
-
is_empty
()¶ Returns True if the root node contains no child elements, no attributes, and no text. Returns False if any are present.
-
is_valid
()¶ Determine if the current document is valid as far as we can determine. If there is a schema associated, check for schema validity. Otherwise, return True.
Return type: boolean
-
match_count
= <eulxml.xmlmap.fields.IntegerField>¶ findingaids.fa.models.FindingAid
number of keyword matchs
-
objects
= <eulexistdb.manager.Manager object>¶ eulxml.django.existdb.manager.Manager
- similar to an object manager for django db objects, used for finding and retrieving c01 series objects in eXist.Configured to use //c01 as base search path.
-
rdf_type
¶ ‘rdf type to use for a semantically-tagged component item
-
schema_valid
()¶ Determine if the current document is schema-valid according to the configured XSD Schema associated with this instance of
XmlObject
.Return type: boolean Raises: Exception if no XSD schema is defined for this XmlObject instance
-
schema_validation_errors
()¶ Retrieve any validation errors that occured during schema validation done via
is_valid()
.Returns: a list of lxml.etree._LogEntry
instancesRaises: Exception if no XSD schema is defined for this XmlObject instance
-
serialize
(stream=None, pretty=False)¶ Serialize the contents of the XmlObject to a stream. Serializes current node only; for the entire XML document, use
serializeDocument()
.If no stream is specified, returns a string. :param stream: stream or other file-like object to write content to (optional) :param pretty: pretty-print the XML output; boolean, defaults to False :rtype: stream passed in or an instance of
cStringIO.StringIO
-
serializeDocument
(stream=None, pretty=False)¶ Serialize the contents of the entire XML document (including Doctype declaration, if there is one), with an XML declaration, for the current XmlObject to a stream.
If no stream is specified, returns a string. :param stream: stream or other file-like object to write content to (optional) :param pretty: pretty-print the XML output; boolean, defaults to False :rtype: stream passed in or an instance of
cStringIO.StringIO
-
series_info
()¶ ” Generate a list of sereies information fields. Only includes MARBL-designated fields to be displayed as part of series description, in a specified order. Any fields not present in the finding aid will not be included in the list returned.
These fields are included, in this order: biography/history, scope & content, arrangement, other finding aid, use restrictions, access restrictions, alternate form, location of original, bibliography
Return type: list of eulxml.xmlmap.eadmap.Section
-
series_title
= <eulxml.xmlmap.fields.StringField>¶ title of the nearest ancestor series; used to determine what kind of content this is, for default rdf type
-
short_id
¶ Short-form id (without eadid prefix) for use in external urls.
-
unittitle_name
= <eulxml.xmlmap.fields.NodeField>¶ name in the unittitle, as an instance of
Name
-
unittitle_names
= <eulxml.xmlmap.fields.NodeListField>¶ names in the unittitle, as a list of
Name
-
unittitle_titles
= <eulxml.xmlmap.fields.NodeListField>¶ list of titles in the unittitle, as
Title
-
validation_errors
()¶ Return a list of validation errors. Returns an empty list if the xml is schema valid or no schema is defined. If a schema is defined but
schema_validate
is False, schema validation will be skipped.Currently only supports schema validation.
Return type: list
-
xmlschema
¶ A parsed XSD schema instance of
lxml.etree.XMLSchema
; will be loaded the first time it is requested on any instance of this class if XSD_SCHEMA is set and xmlchema is None. If you wish to load and parse the schema at class definition time, instead of at class instance initialization time, you may want to define your schema in your subclass like this:XSD_SCHEMA = "http://www.openarchives.org/OAI/2.0/oai_dc.xsd" xmlschema = xmlmap.loadSchema(XSD_SCHEMA)
-
xsl_transform
(filename=None, xsl=None, return_type=None, **params)¶ Run an xslt transform on the contents of the XmlObject.
XSLT can be passed in as an XSLT object generated by
load_xslt()
or as filename or string. If a params dictionary is specified, its items will be passed as parameters to the XSL transformation, and any string values will automatically be encoded as XSL string parameters.Note
If XSL is being used multiple times, it is recommended to use :meth`:load_xslt` to load and compile the XSLT once.
Parameters: - filename – xslt filename (optional, one of file and xsl is required)
- xsl – xslt as string OR compiled XSLT object as returned by
load_xslt()
(optional) - return_type – type of object to return; optional, defaults to
XmlObject
; specify unicode or string for text output
Returns: an instance of
XmlObject
or the return_type specified
-
-
class
findingaids.fa.models.
Series2
(node=None, context=None, **kwargs)¶ c02 level subseries
Customized version of
eulxml.xmlmap.eadmap.Component
; extendsSeries
-
objects
= <eulexistdb.manager.Manager object>¶ eulexistdb.manager.Manager
Configured to use //c02 as base search path.
-
series
= <eulxml.xmlmap.fields.NodeField>¶ findingaids.fa.models.Series
access to c01 series this subseries belongs to
-
-
class
findingaids.fa.models.
Series3
(node=None, context=None, **kwargs)¶ c03 level subseries
Customized version of
eulxml.xmlmap.eadmap.Component
; extendsSeries
-
objects
= <eulexistdb.manager.Manager object>¶ eulexistdb.manager.Manager
Configured to use //c03 as base search path.
-
series
= <eulxml.xmlmap.fields.NodeField>¶ findingaids.fa.models.Series
access to c01 series this sub-subseries belongs to
-
series2
= <eulxml.xmlmap.fields.NodeField>¶ findingaids.fa.models.Subseries
access to c02 subseries this sub-subseries belongs to
-
-
class
findingaids.fa.models.
Index
(node=None, context=None, **kwargs)¶ EAD Index, with index entries.
Customized version of
eulxml.xmlmap.eadmap.Index
-
ead
= <eulxml.xmlmap.fields.NodeField>¶ findingaids.fa.models.FindingAid
access to ancestor EAD element
-
objects
= <eulexistdb.manager.Manager object>¶ eulexistdb.manager.Manager
- similar to an object manager for django db objects, used for finding and retrieving index objects in eXist.Configured to use //index as base search path.
-
short_id
¶ Short-form id (without eadid prefix) for use in external urls.
-
Views¶
-
findingaids.fa.views.
browse_titles
(request)¶ List all first letters in finding aid list title, with a link to browse by letter.
-
findingaids.fa.views.
document_search
(request, *args, **kwargs)¶ Keyword search on file-level items in a single Finding Aid.
-
findingaids.fa.views.
eadxml
(request, id, *args, **kwargs)¶ Display the full EAD XML content of a finding aid.
Parameters: - id – eadid for the document to be displayed
- preview – boolean indicating preview mode, defaults to False
-
findingaids.fa.views.
fa_listfields
= ['eadid', 'list_title', 'archdesc__did']¶ List of fields that should be returned for brief list display of a finding aid.
-
findingaids.fa.views.
findingaid
(request, id, *args, **kwargs)¶ View a single finding aid. In preview mode, pulls the document from the configured eXist-db preview collection instead of the default public one.
Parameters: - id – eadid for the document to view
- preview – boolean indicating preview mode, defaults to False
-
findingaids.fa.views.
full_findingaid
(request, id, *args, **kwargs)¶ View the full contents of a single finding aid as PDF or plain html.
Parameters: - id – eadid for the document to be displayed
- mode – one of ‘html’ or ‘pdf’ - note that the html mode is not publicly linked anywhere, and is intended mostly for development and testing of the PDF display
- preview – boolean indicating preview mode, defaults to False
-
findingaids.fa.views.
search
(request, *args, **kwargs)¶ Simple keyword search - runs exist full-text terms query on all terms included.
-
findingaids.fa.views.
series_or_index
(request, *args, **kwargs)¶ View a single series or subseries (c01, c02, or c03) or an index from a finding aid.
Parameters: - id – eadid for the document the series belongs to
- series_id – c01 series or index id
- series2_id – c02 subseries id (optional)
- series3_id – c03 sub-subseries id (optional)
- preview – boolean indicating preview mode, defaults to False
-
findingaids.fa.views.
site_index
(request)¶ Site home page. Currently includes browse letter links.
-
findingaids.fa.views.
titles_by_letter
(request, *args, **kwargs)¶ Paginated list of finding aids by first letter in list title. Includes list of browse first-letters as in
browse_titles()
.
-
findingaids.fa.views.
xml_titles
(request, *args, **kwargs)¶ List all findingaids in the database and link to the EAD xml, as a simple way to make content available for harvesting.
Other Functions¶
-
findingaids.fa.utils.
alpha_pagelabels
(paginator, objects, label_attribute)¶ Generate abbreviated, alphabetical page labels for pagination items. Label format should be something like ‘Ab - Ad’, ‘Ard - Art’.
Parameters: - paginator – a django paginator
- objects – the complete list of objects paginated by the paginator
- label_attribute – attribute on the object to use to generate page labels
Returns: dictionary appropriate for use with
pages_to_show()
, keyed on page numbers
-
findingaids.fa.utils.
collection_lastmodified
(request, *args, **kwargs)¶ Get the last modification time for the entire finding aid collection. Used to generate last-modified header for views that are based on the entire collection (e.g.,
titles_by_letter()
browse view,findingaids.fa.views.search()
search view).If no documents are found in eXist and there are no deleted records, no value is returned and django will not send a Last-Modified header.
-
findingaids.fa.utils.
ead_etag
(request, id, preview=False, *args, **kwargs)¶ Generate an Etag for an ead (specified by eadid) by requesting a SHA-1 checksum of the entire EAD xml document from eXist.
Parameters: - id – eadid
- preview – requested document is in the preview collection; defaults to False
Return type:
-
findingaids.fa.utils.
ead_gone_or_404
(view_method)¶ This decorator is intended for use with single-ead views to determine if an EAD not found in eXist is gone or really not found. If a requested EAD document is not found in the eXist database, the view method should raise a
django.http.Http404
exception. This decorator will catch that and check for a deleted record which indicates the EAD has been removed.View method is expected to take a request parameter and an eadid.
Raises an
django.http.Http404
when requested EAD was not found in the original view method and no deleted record was found.Returns: django.http.HttpResponse
with status 410 and a notice indicating that the document has been removed
-
findingaids.fa.utils.
ead_lastmodified
(request, id, preview=False, *args, **kwargs)¶ Get the last modification time for a finding aid in eXist by eadid. Used to generate last-modified header for views based on a single EAD document.
Parameters: - id – eadid
- preview – load document from preview collection; defaults to False
Return type:
-
findingaids.fa.utils.
exist_datetime_with_timezone
(dt)¶ Convert an ‘offset-naive’ datetime object into an ‘offset-aware’ datetime using a configured timezone.
The current version of xmlrpclib ignores timezones, which messes up dates (e.g., when used for last-modified header). This function uses a configured timezone from django settings to convert a datetime to offset-aware.
-
findingaids.fa.utils.
get_findingaid
(eadid=None, preview=False, only=None, also=None, order_by=None, filter=None)¶ Retrieve a
FindingAid
(orFindingAid
eulexistdb.manager.Manager
) from eXist by eadid, with any query options specified. Raises adjango.http.Http404
if the requested document is not found in eXist.Handles switching to preview collection and then switching back when preview is set to True.
Parameters: - eadid – eadid of the
FindingAid
to retrieve; if not specified, aeulexistdb.manager.Manager
will be returned instead - preview – optional; set to True to load the finding aid from the preview collection; defaults to False
- only – optional list of fields to return (only return the specified fields)
- also – optional list of additional fields to return
- order_by – optional field to use for sorting
- filter – optional queryset filter to apply, in dictionary form
Returns: FindingAid
(when eadid is specified) or aFindingAid
eulexistdb.manager.Manager
(if no eadid is specified)- eadid – eadid of the
-
findingaids.fa.utils.
html_to_xslfo
(template_src, context_dict)¶ Takes a template and template arguments, renders the template to get html, and then converts from html to XSL-FO. Any template used with this function should produce well-formed xhtml so it can be parsed as xml.
Parameters: - template_src – name of the template to render
- context_dict – dictionary to pass to the template for rendering
Returns: result of generated html, converted to XSL-FO, as an instance of
lxml.etree.ElementTree
-
findingaids.fa.utils.
pages_to_show
(paginator, page, page_labels={})¶ Generate a dictionary of pages to show around the current page. Show 3 numbers on either side of the specified page, or more if close to end or beginning of available pages.
Parameters: - paginator – paginator object, populated with objects
- page – number of the current page
- page_labels – optional dictionary of page labels, keyed on page number
Return type: dictionary
-
findingaids.fa.utils.
render_to_pdf
(template_src, context_dict, filename=None)¶ Generate and return a PDF response.
Takes a template and template arguments; the template is rendered as html, converted to XSL-FO, which is run through the configured XSL-FO processor to generate a PDF. Any template used with this function should produce well-formed xhtml so it can be parsed as xml.
Parameters: - template_src – name of the template to render
- context_dict – dictionary to pass to the template for rendering
- filename – optional filename, to specify to the browser in the response
Returns: django.http.HttpResponse
with PDF content, content-type, and, if a filename was specified, a content-disposition header to prompt the browser to download the response as the filename specified
Custom Template Filters & Tags¶
Custom template filters for converting EAD tags to HTML.
Custom django filter to convert structured fields in EAD objects to HTML.
XmlObject
values are recursively processed, escaping text nodes and converting elements to <span> objects where appropriate. Other values are simply converted to unicode and escaped.- Currently performs the following conversions:
- elements with
@render="doublequote"
are wrapped in double quotes after stripping the element - elements with
@render="bold"
are replaced with<span class="ead-bold">
- elements with
@render="italic"
are replaced with<span class="ead-italic"
<emph>
elements are replaced with<em>
<title>
elements are replaced with<span class="ead-title">
- other elements are stripped
- text nodes are HTML escaped where the template context calls for it
- elements with
Custom filter to convert EAD to HTML, with support for converting name tags such as persname, corpname, and geogname to RDFa.
Parameters: default_rel – relationship to use for all entities found under this node
Customized version of Django’s template tag url.
Takes a condition and two view names, followed by any arguments taken by url. If the condition is true, will render the url with the first view name specified, otherwise will use the second.
For example:
{% ifurl preview 'preview:doc' 'main:doc' arg1=foo %}
When preview is true in the template context, url will be generated as preview:doc, otherwise it will be generated as main:doc.
Admin Site¶
The admin section of the finding aids site is designed to allow archivists to manage the finding aids content.
Admin Views¶
-
findingaids.fa_admin.views.
delete_ead
(request, *args, **kwargs)¶ Delete a published EAD.
On GET, display a form with information about the document to be removed.
On POST, actually remove the specified EAD document from eXist and create (or update) a deleted record for that document in the relational DB.
-
findingaids.fa_admin.views.
init_ldap_user
(request, *args, **kwargs)¶ Use django-auth-ldap to initialize a new user account from LDAP.
-
findingaids.fa_admin.views.
list_files
(request, *args, **kwargs)¶ List files associated with an archive to be prepped and previewed for publication. Expected to be retrieved via ajax and loaded in a jquery ui tab, so only returns a partial html page without site theme.
-
findingaids.fa_admin.views.
list_published
(request, *args, **kwargs)¶ List all published EADs, optionally restricted to a single archive.
-
findingaids.fa_admin.views.
logout
(request, *args, **kwargs)¶ Admin Logout view. Displays a message and then calls
django.contrib.auth.views.logout_then_login()
.
-
findingaids.fa_admin.views.
main
(request, *args, **kwargs)¶ Main admin page.
Displayes a paginated list of files configured source directory (sorted by most recently modified) to be previewed, published, or prepared for preview/publish.
-
findingaids.fa_admin.views.
prepared_ead
(request, *args, **kwargs)¶ Display information about changes made by preparing an EAD file for publication. If no changes are made, user will be redirected to main admin page with a message to that effect.
In summary mode, displays a brief, color-coded summary of changes between original and prepped version of the file. In diff mode, displays a full, side-by-side diff generated by
difflib.HtmlDiff
. (Note: because it is very large, the full diff is not embedded in the site template, and is intended to be opened in a new window.)Parameters: - filename – name of the file to prep; should be base filename only, document will be pulled from the configured source directory.
- mode – one of diff or summary
-
findingaids.fa_admin.views.
prepared_eadxml
(request, *args, **kwargs)¶ On GET, serves out a prepared version of the EAD file in the specified archive subversion directory. Response header is set so the user should be prompted to download the xml, with a filename matching that of the original document.
On POST, commits the prepared version of the EAD file to the subversion directory of the specified archive, with a log message indicating the user who requested the commit.
Steps taken to prepare a document are documented in
prep_ead()
.Parameters: filename – name of the file to prep; should be base filename only, document will be pulled from the configured source directory.
-
findingaids.fa_admin.views.
publish
(request, *args, **kwargs)¶ Admin publication form. Allows publishing an EAD file by updating or adding it to the configured eXist database so it will be immediately visible on the public site. Files can only be published if they pass an EAD sanity check, implemented in
check_ead()
.On POST, sanity-check the EAD file specified in request from the configured and (if it passes all checks), publish it to make it immediately visible on the site. If publish is successful, redirects the user to main admin page with a success message that links to the published document on the site. If the sanity-check fails, displays a page with any problems found.
Admin Functions¶
-
findingaids.fa_admin.utils.
check_ead
(filename, dbpath, xml=None)¶ Sanity check an EAD file before it is loaded to the configured database.
- Checks the following:
- EAD schema valid
- eadid matches expected pattern– filename without .xml
- check that eadid is unique within the database (only present once, in the file that will be updated)
- additional checks done by
check_eadxml()
Parameters: - filename – full path to the EAD file to be checked
- dbpath – full path within eXist where the document will be saved
Returns: list of all errors found
Return type:
-
findingaids.fa_admin.utils.
check_eadxml
(ead)¶ Sanity checks specific to the EAD xml, independent of file or eXist.
- Checks the following:
series and index ids are present
- fields used for search/browse title match code expectations:
- at most one top-level origination
- no leading whitespace in list-title (origination or unittitle)
- alphabetical first letter (for first-letter browse)
eadid matches site URL regex
Parameters: ead – FindingAid
ead instance to be checkedReturns: list of all errors found Return type: list
-
findingaids.fa_admin.utils.
check_series_ids
(series)¶ Recursive function to check that series and subseries ids are present.
Parameters: series – findingaids.fa.models.Series
Returns: list of errors, if any
-
findingaids.fa_admin.utils.
generate_ark
(ead)¶ Generate an ARK for the specified EAD document. ARK will be created with a default target of the url for the main page of the specified EAD document in this site.
Parameters: ead – findingaids.fa.models.FindingAid
instanceReturns: resolvable URL for generated ARK on success
-
findingaids.fa_admin.utils.
prep_ead
(ead, filename)¶ Prepare EAD xml for publication. Currently does the following:
- sets the eadid and ids on any series, subseries, and index elements based on filename and series unitid or index number.
- removes any leading whitespace from controlaccess terms
Parameters: - ead –
FindingAid
ead instance to be prepared - string – filename of the EAD file (used as base eadid)
Return type:
-
findingaids.fa_admin.utils.
set_series_ids
(series, eadid, position)¶ Recursive function to set series and subseries ids. Series id will be set to something like ‘’eadid_series1’‘, where series1 is a lower-case, spaceless version of the series unitid. If no unitid is present, the second half of the series id will be set based on the series level (e.g., series, subseries) and its position in the list of series in the document.
Parameters: - series –
findingaids.fa.models.Series
- eadid – eadid of the document this series belongs to
- position – numerical position in series– used as fall-back to generate series id when series does not have a unitid
Returns: list of errors, if any
- series –
Custom manage commands¶
The following management commands are available. For more details, use
manage.py help <command>
. As much as possible, all custom commands honor the
built-in django verbosity options.
- check_ead
- class
findingaids.fa.management.commands.check_ead.
Command
(stdout=None, stderr=None, no_color=False)¶Check the specified field in all Finding Aids loaded in the configured eXist collection against the regular expressions used for URLs in the site, and reports on any documents that fail.
If
eadid
is specified, checks that each eadid matches the regular expression in the single document URL pattern.If
title
is specified, checks that the first letter of the list title is included in the allowed first-letters for the browse URL.
- prep_ead
- class
findingaids.fa_admin.management.commands.prep_ead.
Command
(stdout=None, stderr=None, no_color=False)¶Prepare all or specified EAD xml files in the configured source directory.
Runs EAD xml files through a prep process to set ids, etc., as needed to be published, verifies that the resulting EAD is valid and passes all checks, and if so, updates the original file with the new, prepared EAD xml.
If filenames are specified as arguments, only those files will be prepared. Files should be specified by full path. Otherwise, all .xml files in each of the defined Archives will be prepared.
- load_ead
- class
findingaids.fa_admin.management.commands.load_ead.
Command
(stdout=None, stderr=None, no_color=False)¶Load all or specified EAD xml files in the configured source directory to the configured eXist collection. For each document successfully loaded to eXist, this script will trigger a celery task to reload the PDF in the cache; the script will not exit until all tasks have completed.
If filenames are specified as arguments, only those files will be loaded. Files should be specified by basename only (they will be loaded from the configured EAD source directory). Otherwise, all .xml files in the configured EAD source directory will be loaded.
- response_times
-
class
findingaids.fa.management.commands.response_times.
Command
(stdout=None, stderr=None, no_color=False)¶ Benchmark response times for running queries against the configured eXist database, and warn if any take longer than the current threshold of 5 seconds.
In browse mode, tests eXist Finding Aid browse query for all browse letters.
In pages mode, tests a few pre-specified page urls.
-
threshold
= 5000¶ warning-level threshold, in ms (queries that take longer than this will generate warnings)
-
-
class
- check_pdfcache
-
class
findingaids.fa_admin.management.commands.check_pdfcache.
Command
(stdout=None, stderr=None, no_color=False)¶ Check status of Finding Aid PDFs in the configured cache. If any eadids are specified, checks only those documents; otherwise, checks all published Finding Aids, up to any maximum number specified.
In verbose mode, reports the cache age and any warnings for cached items.
-
class
- ead_to_xsd
-
class
findingaids.fa_admin.management.commands.ead_to_xsd.
Command
(stdout=None, stderr=None, no_color=False)¶ Convert DTD-based EAD to XSD schema-based EAD.
If filenames are specified as arguments, only those files will be converted. Files should be specified by basename only (assumed to be in the configured EAD source directory). Otherwise, all .xml files in the configured EAD source directory will be converted.
-
class


#include <ERSampling.hpp>
|
| | ERSampling (const gSparse::Graph &graph, double C=4.0f, double Epsilon=0.3f, gSparse::SpectralSparsifier::ER_METHODS ERPolicy=gSparse::SpectralSparsifier::APPROXIMATE_ER) |
| |
| virtual gSparse::COMPUTE_INFO | Compute () |
| |
| virtual gSparse::Graph | GetSparsifiedGraph () |
| |
| void | SetERPolicy (ER_METHODS policy) |
| |
| void | SetC (double C) |
| |
| void | SetEpsilon (double Epsilon) |
| |
|
double | GetC () const |
| | Get the sparsifier's current configuration for hyper-parameter C.
|
| |
|
double | GetEpsilon () const |
| | Get the sparsifier's current configuration for hyper-parameter Epsilon.
|
| |
|
gSparse::SpectralSparsifier::ER_METHODS | GetERPolicy () const |
| | Get the sparsifier's current Effective Resistance policy.
|
| |
|
gSparse::COMPUTE_INFO | GetInfo () const |
| | Get the sparsifier's current computation information.
|
| |
|
const gSparse::PrecisionRowMatrix & | GetEffectiveResistance () const |
| | Get the effective resistance of the graph specified at construction.
|
| |
|
|
double | _c |
| | C-hyper parameter.
|
| |
|
double | _eps |
| | epsilon hyper-parameter.
|
| |
|
gSparse::COMPUTE_INFO | _computeInfo |
| | Status of sparsifier.
|
| |
|
gSparse::Graph | _graph |
| | Graph to Sparsify.
|
| |
|
gSparse::PrecisionRowMatrix | _er |
| | Effective Resistance.
|
| |
|
gSparse::EffectiveResistance | _erCalculator |
| | Pointer to EffectiveResistance module.
|
| |
|
gSparse::SpectralSparsifier::ER_METHODS | _erPolicy |
| | EffectiveResistance Calculation Policy.
|
| |
This class implements Spectral Sparsifier by Effective Weight Sampling. Original paper https://arxiv.org/pdf/0803.0929.pdf
◆ ERSampling()
| gSparse::SpectralSparsifier::ERSampling::ERSampling |
( |
const gSparse::Graph & |
graph, |
|
|
double |
C = 4.0f , |
|
|
double |
Epsilon = 0.3f , |
|
|
gSparse::SpectralSparsifier::ER_METHODS |
ERPolicy = gSparse::SpectralSparsifier::APPROXIMATE_ER |
|
) |
| |
|
inline |
Constructor to create a ISparsifier object to perform Spectral Sparsification by Effective Resistance
- Parameters
-
| graph | Smart Pointer to the IGraph object. This is the dense graph for the sparsifier. |
| C | C hyper-parameter of Spectral Sparsifier by Effective Resistance. As described by paper. This should be a large constant. Default value is 4.0. |
| Epsilon | Epsilon hyper-parameter. This should be between 0.0 and 1.0 The sparsifier will generate (m log m ) / (Epsilon^2) edges. Thus, lower epsilon will yeild denser sparsifier. High epsilon could yeild a disconnect graph. |
| ERPolicy | EffectiveResistance calculation method. APPROXIMATE_ER: Default. Approximate EffectiveResistance with an error. This should be sufficient for Spectral Sparsifier.
EXACT_ER: Calculate graph exact EffectiveResistance. This is very slow and not recommended. |
◆ Compute()
| virtual gSparse::COMPUTE_INFO gSparse::SpectralSparsifier::ERSampling::Compute |
( |
| ) |
|
|
inlinevirtual |
Calculate Effective Resistance of the graph specified in the constructor.
Implements gSparse::ISparsifier.
◆ GetSparsifiedGraph()
| virtual gSparse::Graph gSparse::SpectralSparsifier::ERSampling::GetSparsifiedGraph |
( |
| ) |
|
|
inlinevirtual |
Sampling a sparsifier from a dense graph based on calculate effective weight. As this is a random algorithm, it may need several attempts to get an acceptable graph.
Implements gSparse::ISparsifier.
◆ SetC()
| void gSparse::SpectralSparsifier::ERSampling::SetC |
( |
double |
C | ) |
|
|
inline |
Set Hyper-parameter C
- Parameters
-
| C | C hyper-parameter of Spectral Sparsifier by Effective Resistance. As described by paper. This should be a large constant. |
◆ SetEpsilon()
| void gSparse::SpectralSparsifier::ERSampling::SetEpsilon |
( |
double |
Epsilon | ) |
|
|
inline |
Set Hyper-parameter Epsilon
- Parameters
-
| Epsilon | Epsilon hyper-parameter. This should be between 0.0 and 1.0 The sparsifier will generate (m log m ) / (Epsilon^2) edges. Thus, lower epsilon will yeild denser sparsifier. High epsilon could yeild a disconnect graph. |
◆ SetERPolicy()
| void gSparse::SpectralSparsifier::ERSampling::SetERPolicy |
( |
ER_METHODS |
policy | ) |
|
|
inline |
Set EffectiveResistance calculation methid.
- Parameters
-
| ERPolicy | EffectiveResistance calculation method. APPROXIMATE_ER: Default. Approximate EffectiveResistance with an error. This should be sufficient for Spectral Sparsifier. |
The documentation for this class was generated from the following file:
- /Users/Bomb/Documents/Project/gSparse/include/gSparse/SpectralSparsifier/ERSampling.hpp


You can unsubscribe at any time by clicking the link in the footer of our emails. Read more about our privacy policy.
We use Mailchimp. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.


| Constructor and Description |
|---|
CmtWithDifferenceCommitter(byte[][] x,
int numCircuits,
int statisticalParameter,
Channel channel,
java.security.SecureRandom random,
CryptographicHash hash)
A constructor that sets the given parameters and initialize them.
|
CmtWithDifferenceReceiver(CutAndChooseSelection selection,
int numCircuits,
int statisticalParameter,
Channel channel,
java.security.SecureRandom random,
CryptographicHash hash)
A constructor that sets the given parameters and initialize them.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.crypto.SecretKey |
KeyUtils.hashKey(javax.crypto.SecretKey key,
CryptographicHash hash,
KeyDerivationFunction kdf,
int keyLength)
Hashes the given key, then convert the result to a new key.
|
| Modifier and Type | Method and Description |
|---|---|
CryptographicHash |
CryptoPrimitives.getCryptographicHash()
Returns the default CryptographicHash.
|
| Modifier and Type | Method and Description |
|---|---|
CryptoPrimitives.Builder |
CryptoPrimitives.Builder.hash(CryptographicHash hash)
Sets the given CryptographicHash.
|
| Constructor and Description |
|---|
HashingMultiKeyEncryption(int keySize,
CryptographicHash hash,
java.security.SecureRandom random)
Constructor that sets the given values.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
FastGarbledBooleanCircuitExtendedImp.getHashedCircuit(CryptographicHash hash) |
byte[] |
FastGarbledBooleanCircuitExtended.getHashedCircuit(CryptographicHash hash)
Compute the hash function on the garbled tables and translation table of the circuit.
|
boolean |
FastGarbledBooleanCircuitExtendedImp.verify(byte[] seed,
byte[] allInputGarbledValues,
byte[] allOutputGarbledValues,
CryptographicHash hash,
byte[] hashedCircuit) |
boolean |
FastGarbledBooleanCircuitExtended.verify(byte[] seed,
byte[] allInputGarbledValues,
byte[] allOutputGarbledValues,
CryptographicHash hash,
byte[] hashedCircuit)
The verify method is used in the case of malicious adversaries.
|
boolean |
FastGarbledBooleanCircuitExtendedImp.verifyHashedCircuit(CryptographicHash hash,
byte[] hashedCircuit) |
boolean |
FastGarbledBooleanCircuitExtended.verifyHashedCircuit(CryptographicHash hash,
byte[] hashedCircuit)
Verifies that the given hashedCircuit is indeed the result of the given hash on the circuit's garbled tables and translation table.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
GarbledBooleanCircuitExtendedImp.getHashedCircuit(CryptographicHash hash) |
byte[] |
GarbledBooleanCircuitExtended.getHashedCircuit(CryptographicHash hash)
Compute the hash function on the garbled tables and translation table of the circuit.
|
boolean |
GarbledBooleanCircuitExtendedImp.verify(byte[] seed,
java.util.Map<java.lang.Integer,javax.crypto.SecretKey[]> allInputGarbledValues,
java.util.Map<java.lang.Integer,javax.crypto.SecretKey[]> allOutputGarbledValues,
CryptographicHash hash,
byte[] hashedCircuit) |
boolean |
GarbledBooleanCircuitExtended.verify(byte[] seed,
java.util.Map<java.lang.Integer,javax.crypto.SecretKey[]> allInputGarbledValues,
java.util.Map<java.lang.Integer,javax.crypto.SecretKey[]> allOutputGarbledValues,
CryptographicHash hash,
byte[] hashedCircuit)
The verify method is used in the case of malicious adversaries.
|
boolean |
GarbledBooleanCircuitExtendedImp.verifyHashedCircuit(CryptographicHash hash,
byte[] hashedCircuit) |
boolean |
GarbledBooleanCircuitExtended.verifyHashedCircuit(CryptographicHash hash,
byte[] hashedCircuit)
Verifies that the given hashedCircuit is indeed the result of the given hash on the circuit's garbled tables and translation table.
|
| Constructor and Description |
|---|
CmtElGamalHashCommitter(Channel channel,
DlogGroup dlog,
CryptographicHash hash,
java.security.SecureRandom random)
This constructor receives as arguments an instance of a Dlog Group and an instance
of a Cryptographic Hash such that they keep the condition that the size in bytes
of the resulting hash is less than the size in bytes of the order of the DlogGroup.
|
CmtElGamalHashReceiver(Channel channel,
DlogGroup dlog,
CryptographicHash hash)
This constructor receives as arguments an instance of a Dlog Group and an instance
of a Cryptographic Hash such that they keep the condition that the size in bytes
of the resulting hash is less than the size in bytes of the order of the DlogGroup.
|
| Constructor and Description |
|---|
CmtPedersenHashCommitter(Channel channel,
DlogGroup dlog,
CryptographicHash hash,
java.security.SecureRandom random)
This constructor receives as arguments an instance of a Dlog Group and an instance
of a Cryptographic Hash such that they keep the condition that the size in bytes
of the resulting hash is less than the size in bytes of the order of the DlogGroup.
|
CmtPedersenHashReceiver(Channel channel,
DlogGroup dlog,
CryptographicHash hash,
java.security.SecureRandom random)
This constructor receives as arguments an instance of a Dlog Group and an instance
of a Cryptographic Hash such that they keep the condition that the size in bytes
of the resulting hash is less than the size in bytes of the order of the DlogGroup.
|
| Constructor and Description |
|---|
CmtSimpleHashCommitter(Channel channel,
CryptographicHash hash,
java.security.SecureRandom random,
int n)
Constructor that receives a connected channel (to the receiver), the hash function
agreed upon between them, a SecureRandom object and a security parameter n.
|
CmtSimpleHashReceiver(Channel channel,
CryptographicHash hash,
int n)
Constructor that receives a connected channel (to the receiver), the hash function
agreed upon between them and a security parameter n.
|
| Constructor and Description |
|---|
SigmaCramerShoupEncryptedValueProverComputation(DlogGroup dlog,
CryptographicHash hash,
int t,
java.security.SecureRandom random)
Constructor that gets the underlying DlogGroup, CryptographicHash, soundness parameter and SecureRandom.
|
SigmaCramerShoupEncryptedValueSimulator(DlogGroup dlog,
CryptographicHash hash,
int t,
java.security.SecureRandom random)
Constructor that gets the underlying DlogGroup, CryptographicHash, soundness parameter and SecureRandom.
|
SigmaCramerShoupEncryptedValueVerifierComputation(DlogGroup dlog,
CryptographicHash hash,
int t,
java.security.SecureRandom random)
Constructor that gets the underlying DlogGroup, CryptographicHash, soundness parameter and SecureRandom.
|
| Constructor and Description |
|---|
BcRSAPss(CryptographicHash hash)
Constructor that receives hash to use.
|
BcRSAPss(CryptographicHash hash,
java.security.SecureRandom random)
Constructor that receives hash and secure random to use.
|
ScDSA(CryptographicHash hash,
DlogGroup dlog)
Constructor that receives hash function and DlogGroup to use.
|
ScDSA(CryptographicHash hash,
DlogGroup dlog,
java.security.SecureRandom random)
Constructor that receives hash, dlog and secure random to use.
|
| Constructor and Description |
|---|
CramerShoupAbs(DlogGroup dlogGroup,
CryptographicHash hash)
Constructor that lets the user choose the underlying dlog and hash.
|
CramerShoupAbs(DlogGroup dlogGroup,
CryptographicHash hash,
java.security.SecureRandom random)
Constructor that lets the user choose the underlying dlog, hash and source of randomness.
|
ScCramerShoupDDHOnByteArray(DlogGroup dlogGroup,
CryptographicHash hash,
KeyDerivationFunction kdf)
Constructor that lets the user choose the underlying dlog and hash.
|
ScCramerShoupDDHOnByteArray(DlogGroup dlogGroup,
CryptographicHash hash,
KeyDerivationFunction kdf,
java.security.SecureRandom random)
Constructor that lets the user choose the underlying dlog, hash and source of randomness.
|
ScCramerShoupDDHOnGroupElement(DlogGroup dlogGroup,
CryptographicHash hash)
Constructor that lets the user choose the underlying dlog and hash.
|
ScCramerShoupDDHOnGroupElement(DlogGroup dlogGroup,
CryptographicHash hash,
java.security.SecureRandom random)
Constructor that lets the user choose the underlying dlog, hash and source of randomness.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SHA1
Marker interface.
|
interface |
SHA224
Marker interface.
|
interface |
SHA256
Marker interface.
|
interface |
SHA384
Marker interface.
|
interface |
SHA512
Marker interface.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BcHash
A general adapter class of hash for Bouncy Castle.
|
class |
BcSHA1
Concrete class of cryptographicHash for SHA1.
|
class |
BcSHA224
Concrete class of cryptographicHash for SHA224.
|
class |
BcSHA256
Concrete class of cryptographicHash for SHA256.
|
class |
BcSHA384
Concrete class of cryptographicHash for SHA384.
|
class |
BcSHA512
Concrete class of cryptographicHash for SHA512.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CryptoPpHash
A general adapter class of hash for Crypto++.
|
class |
CryptoPpSHA1
Concrete class of cryptographicHash for SHA1.
|
class |
CryptoPpSHA224
Concrete class of cryptographicHash for SHA224.
|
class |
CryptoPpSHA256
Concrete class of cryptographicHash for SHA256.
|
class |
CryptoPpSHA384
Concrete class of cryptographicHash for SHA384.
|
class |
CryptoPpSHA512
Concrete class of cryptographicHash for SHA512.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OpenSSLHash
A general adapter class of hash for OpenSSL.
|
class |
OpenSSLSHA1
Concrete class of cryptographicHash for SHA1.
|
class |
OpenSSLSHA224
Concrete class of cryptographicHash for SHA224.
|
class |
OpenSSLSHA256
Concrete class of cryptographicHash for SHA256.
|
class |
OpenSSLSHA384
Concrete class of cryptographicHash for SHA384.
|
class |
OpenSSLSHA512
Concrete class of cryptographicHash for SHA512.
|
| Constructor and Description |
|---|
BcKdfISO18033(CryptographicHash hash)
creates the related bc kdf, with the given hash
|
| Constructor and Description |
|---|
BcHMAC(CryptographicHash hash)
This constructor gets a SCAPI collision resistant hash to be the underlying hash and retrieves the name of the hash in
order to create the related digest for the BC Hmac this class uses.
|
BcHMAC(CryptographicHash hash,
java.security.SecureRandom random)
This constructor gets a random and a SCAPI collision resistant hash to be the underlying hash and retrieves the name of the hash in
order to create the related digest for the BC Hmac this class uses.
|
| Constructor and Description |
|---|
OpenSSLHMAC(CryptographicHash hash)
This constructor gets a SCAPI CryptographicHash to be the underlying hash and retrieves the name of the hash in
order to create the related OpenSSL's hash.
|
OpenSSLHMAC(CryptographicHash hash,
java.security.SecureRandom random)
This constructor gets a random and a SCAPI CryptographicHash to be the underlying hash and retrieves the name of the hash in
order to create the related OpenSSL's hash.
|
| Constructor and Description |
|---|
HashBasedRO(CryptographicHash hash)
Constructor that gets a cryptographic hash object and sets it to the class member.
|
| Modifier and Type | Method and Description |
|---|---|
CryptographicHash |
CryptographicHashFactory.getObject(java.lang.String algName) |
CryptographicHash |
CryptographicHashFactory.getObject(java.lang.String algName,
java.lang.String provider) |
| Constructor and Description |
|---|
MessageDigestProvider(CryptographicHash crHash) |


Rename Mail File Dialog Box
Previous
Top
Next
(
Route
:
Mail Menu
,
Rename File Command
)
The Rename Mail File dialog box allows you to rename a file that is held in your mail directory on CIX Forums.
If the file whose name you wish to change is not in the
From
text box, click the
Filename
button to select it from your Mail Directory file list.
In the
To
text box enter the new name for the file.
Click the
OK
button to rename the file the next time Ameol connects to CIX Forums.


Buka
Spot
Home
Orders
All your orders
Orders
Total Cost
Action
Rice, Beans, Meat
1500
Edit
Delete
Eba and Eforiro
900
Edit
Delete
Amala, Ewedu
900
Edit
Delete
Ewa Agoin and stew
500
Edit
Delete
Shawarma
500
Edit
Delete
Pottage
300
Edit
Delete
×
Select Quantity
1 packs - 1500 Naira
2 packs - 3000 Naira
3 packs - 4500 Naira


Home
Review
Approve
Reject
A Longer Menu containing Bookmarks
PHP MVC Framework References
Cakephp
Controllers
Components
Auth
Security
Helpers
Form
Session
Zend
NSFW
Help


MONUMENT
OF A
PANDEMIC
This is an interactive documentary about COVID19.
It uses AI recognition to interact with the viewers
and it only plays if you are wearing a face mask.
To see the film, put on a face mask
and let the camera scan you.
The film is made by viewers
that have shared their COVID story.
To become part of the film,
record and share your story with us.
2.Put On A Medical Mask
Although we aim to keep the film free for everyone, we have suggested viewing prices depending on your circumstances. By purchasing a ticket you help our team create more content as well as help with the fight against COVID-19 by supporting the promotion of our documentary.
Official supporters will be listed in the credits of the website. For larger donations or official sponsorships and advertisments please contact us personally.
By sharing this documentary you help with the longterm fight against COVID-19.
Monument of a Pandemic is an interactive documentary about the COVID-19 pandemic. The film can only be seen if the viewer is wearing a face mask, otherwise, the video will not play. To achieve this, the project uses AI object recognition to detect whether the viewer is wearing a mask and plays the film accordingly. The aim of the AI object recognition model is to make the audience an essential part of the experience, as the media only becomes available if they interact with it. In this case, making the viewers wear a mask is a reflection of the current healthcare regulations. Furthermore, the viewers can become part of the film by recording sharing their covid story. This also makes this project a participatory documentary as everyone is given the opportunity to share their voice.
Want to get in touch with us?
We are looking forward to hearing your ideas and suggestions regarding our work or future projects.
Feel free to send an email at lazarmikov@gmail.com


Table 1 - Data to be collected by PIRCS archive
(a) REFERENCE
Latitude of each point on the horizontal grid used to report model output
Longitude of each point on the horizontal grid used to report model output
The vertical levels used to report model output.
Two-dimensional field giving the terrain height in meters above mean sea level.
Two-dimensional field giving the land fraction of each grid cell.
(b) THREE-HOURLY
Model output reported at 00,03,06 ..., 21 UTC. For fluxes, the output is a three-hour accumulation (e.g. output at 12 UTC is accumulated from 9 UTC- 12 UTC). For mass and temperature, output is the value at the reporting time. Values are reported on the horizontal grid of the participating model.
All fluxes are positive downward.
(b1) Surface fluxes
incident solar (shortwave) radiation
reflected solar (shortwave) radiation
upward terrestrial (longwave) radiation
downward terrestrial (longwave) radiation
sensible heat flux
latent heat flux (evapotranspiration)
heat flux from the atmosphere into the model domain below the atmosphere
convective precipitation
stable precipitation
momentum flux into the ground: E-W component
momentum flux into the ground: N-S component
(b2) Top-of-atmosphere fluxes
net solar (shortwave) radiation
upward terrestrial (longwave) radiation
(b3) Mass
surface pressure
sea level pressure
precipitable water (water vapor only)
(b4) Temperature
surface air temperature (2 m level)
skin temperature
(c) SIX-HOURLY
Atmospheric output sampled at 00, 06, 12, and 18 UTC. Output reported on the three-dimensional grid of the participating model.
Temperature
Specific Humidity
Zonal (east-west) wind
Meridonal (north-south) wind
Geopotential height
Pressure
(d) DAILY
Output reported on the horizontal grid of the participating model.
(d1) Air temperature at 2 meter elevation
Daily maximum (period: 00 UTC - 00 UTC)
Time of daily maximum
Daily minimum (period: 0 UTC - 0 UTC)
Time of daily minimum
(d2) Soil moisture
Total amount of water in the soil column at 12 UTC
(d3) Runoff
Accumulation over prior 24 hours (period: 0 UTC - 0 UTC)


one year later
Trump's victory speech vs reality
A year has passed since Donald Trump took the stage in a ballroom at the New York Hilton in Midtown Manhattan following his stunning election night victory over Hillary Clinton. The President’s acceptance speech included an uncharacteristically gracious tip of the cap to his opponent and several promises that remain unfulfilled.
Here’s an annotated transcript of Trump’s speech showing what the president has accomplished since Election Night 2016, the status of his relationship with the colleagues he name-dropped, and a look at his many incomplete plans.
Thank you. Thank you very much, everybody. Sorry to keep you waiting. Complicated business, complicated. Thank you very much. I've just received a call from Secretary Clinton. She congratulated us.
Trump and his associates continue to attack his former Democratic opponent, Hillary Clinton, calling for investigations into funding from Clinton's campaign and the DNC for the research behind the Trump/Russia dossier and questioning Clinton's involvement in the Uranium One deal.
It is about us. On our victory, and I congratulated her and her family on a very, very hard-fought campaign I mean she fought very hard. Hillary has worked very long and very hard over a long period of time, and we owe her a major debt of gratitude for her service to our country.
Clinton retreated to the woods of Chappaqua during the first months of Trump’s fledgling presidency. She made few public appearances other than Trump’s inauguration.
More recently, Clinton has thrust herself back into the public eye, releasing a book titled “What Happened,” her take on the tumultuous election that resulted in a Trump win.
I mean that very sincerely. Now it is time for America to bind the wounds of division, have to get together, to all Republicans and Democrats and independents across this nation I say it is time for us to come together as one united people. It’s time. I pledge to every citizen of our land that I will be president for all of Americans, and this is so important to me.
Trump has been called divisive by everyone from Gold Star Families to NFL commissioner Roger Goodell. A recent poll by The Washington Post-University of Maryland, conducted nine months into Trump's presidency, found that 70% of Americans say the nation’s political divisions are at least as big as during the Vietnam War.
For those who have chosen not to support me in the past, of which there were a few people, I'm reaching out to you for your guidance and your help so that we can work together and unify our great country.
The Fake News Media works hard at disparaging & demeaning my use of social media because they don't want America to hear the real story!
— Donald J. Trump (@realDonaldTrump) May 29, 2017
A frustrated Trump, upset over Republicans’ inability to repeal and replace Obamacare, said this month that he had reached out to Senate Minority Leader Charles Schumer (D-N.Y.) in hopes of brokering a deal for a "great HealthCare Bill."
I called Chuck Schumer yesterday to see if the Dems want to do a great HealthCare Bill. ObamaCare is badly broken, big premiums. Who knows!
— Donald J. Trump (@realDonaldTrump) October 7, 2017
Despite occasionally reaching across the aisle, the President has continued to use the heated, inflammatory rhetoric that became a staple of his campaign rallies, attacking his former election opponent, railing against the “fake news” media, protesters, Muslims, Mexican immigrants and NFL players.
As I've said from the beginning, ours was not a campaign but rather an incredible and great movement, made up of millions of hard-working men and women who love their country and want a better, brighter future for themselves and for their family.
It’s a movement comprised of Americans from all races, religions, backgrounds and beliefs, who want and expect our government to serve the people, and serve the people it will.
Forty-nine percent of voters believe Trump should be impeached, compared to only 41 percent who oppose the measure, according to a new national survey by Public Policy Polling. His overall approval rating has dipped to 38 percent.
Working together we will begin the urgent task of rebuilding our nation and renewing the American dream. I've spent my entire life in business, looking at the untapped potential in projects and in people all over the world.
That is now what I want to do for our country. Tremendous potential. I've gotten to know our country so well. Tremendous potential. It is going to be a beautiful thing. Every single American will have the opportunity to realize his or her fullest potential. The forgotten men and women of our country will be forgotten no longer.
We are going to fix our inner cities and rebuild our highways, bridges, tunnels, airports, schools, hospitals. We're going to rebuild our infrastructure, which will become, by the way, second to none, and we will put millions of our people to work as we rebuild it.
America is going to build again. Under budget and ahead of schedule. Time to put #AmericaFirst! #InfrastructureWeek https://t.co/7JBYklQeHE pic.twitter.com/gfzFXGmYhU
— Donald J. Trump (@realDonaldTrump) June 10, 2017
Infrastructure week didn’t quite go as planned. Trump touted an infrastructure plan throughout the campaign that promised to combine private and public funds. A White House spending proposal in May included a brand new section that would “provide an infrastructure plan to support $1 trillion in private/public infrastructure investment.” That plan was scrapped this month when Trump told members of the House Ways and Means Committee last week that he no longer favored private investment.
We will also finally take care of our great veterans who have been so loyal, and I've gotten to know so many over this 18-month journey. The time I've spent with them during this campaign has been among my greatest honors. Our veterans are incredible people.
Today, I announced another historic breakthrough for the VA. We are working tirelessly to keep our promises to our GREAT VETERANS! #USA pic.twitter.com/LexSINeM1J
— Donald J. Trump (@realDonaldTrump) August 3, 2017
Trump has touted changes and reforms at the Department of Veterans Affairs despite nominating Obama holdover David Shulkin as secretary.
We will embark upon a project of national growth and renewal. I will harness the creative talents of our people and we will call upon the best and brightest to leverage their tremendous talent for the benefit of all. It is going to happen. We have a great economic plan.
Despite having a Republican majority in both houses, Trump has been unable to claim any legislative victories.
The GOP is hammering out a tax reform plan that Trump wants on his desk before Christmas.
We will double our growth and have the strongest economy anywhere in the world. At the same time we will get along with all other nations, willing to get along with us. We will be. We will have great relationships. We expect to have great, great relationships.
Trump has sown a sense of uncertainty on the international stage after pulling the U.S. out of the Paris climate accord, engaging in a series of embarrassing phone calls with world leaders and threatening to pull out of longstanding trade deals such as NAFTA.
No dream is too big, no challenge is too great. Nothing we want for our future is beyond our reach. America will no longer settle for anything less than the best. We must reclaim our country's destiny and dream big and bold and daring. We have to do that. We're going to dream of things for our country, and beautiful things and successful things once again.
I want to tell the world community that while we will always put America's interests first, we will deal fairly with everyone, with everyone. All people and all other nations. We will seek common ground, not hostility, partnership, not conflict.
In September, Trump delivered one of his most stunning speeches yet as president. Speaking to the United Nations General Assembly, Trump vowed to “totally destroy” North Korea if the country doesn’t rein in its nuclear weapons program. He also vowed to “decertify” the international deal regarding Iran’s nuclear program, drawing condemnation from allies and critics alike.
And now I would like to take this moment to thank some of the people who really helped me with this, what they are calling tonight very, very historic victory. First I want to thank my parents, who I know are looking down on me right now. Great people. I've learned so much from them. They were wonderful in every regard. I had truly great parents.
I also want to thank my sisters, Marianne and Elizabeth who are here with us tonight. And -- Where are they? They're here someplace. They're very shy actually. And my brother Robert, my great friend. Where is Robert? Where is Robert? My brother Robert, and they should all be on this stage, but that's okay. They're great.
Where is Robert, indeed. Trump’s younger brother and his two sisters have maintained a low profile throughout the first nine months of their sibling’s term in office.
And also my late brother Fred, great guy. Fantastic guy. Fantastic family. I was very lucky.
During an Oct. 26 speech declaring the nation’s opioid epidemic a public health emergency, Trump invoked the story of his late brother, Fred Trump, who died of complications related to alcoholism. The President credited Fred for warning him against drinking and called for an advertising campaign he believes will keep people from becoming addicted to opioids and other drugs. “I learned because of Fred; I learned,” Trump said.
Great brothers, sisters, great, unbelievable parents. To Melania and Don and Ivanka and Eric and Tiffany and Barron, I love you and I thank you, and especially for putting up with all of those hours. This was tough. This was tough. This political stuff is nasty and it is tough. So I want to thank my family very much. Really fantastic.
Trump kept his daughter Ivanka and son-in-law Jared Kushner close, giving them both advisory roles in the White House. But, frustrated by special counsel Robert Mueller’s investigation into Russia’s meddling in the election and possible collusion between the Trump campaign and the Kremlin, Trump has grown wary of Kushner’s influence.
Thank you all. Thank you all. And Lara, unbelievable job. Unbelievable. Vanessa, thank you. Thank you very much. What a great group. You've all given me such incredible support, and I will tell you that we have a large group of people. You know, they kept saying we have a small staff. Not so small. Look at all of the people that we have. Look at all of these people. And Kellyanne and Chris and Rudy and Steve and David.
Trump appears to have given brief shoutouts to his White House counselor Kellyanne Conway and his soon-to-be former chief strategist Stephen Bannon, who has since returned to his post as head of alt-right Breitbart.
Conway continues to appear as a Trump surrogate on TV, despite her disdain for “fake news” media, frequently targeting Clinton and other Trump opponents.
We have got tremendously talented people up here, and I want to tell you it's been very, very special. I want to give a very special thanks to our former mayor, Rudy Giuliani. He's unbelievable. Unbelievable. He traveled with us and he went through meetings, and Rudy never changes. Where is Rudy? Where is he?
A constant companion during Trump’s campaign, Giuliani was rumored to be one of Trump’s top picks for attorney general. The former New York mayor didn’t get the gig, something he may be secretly pleased with after the troubles faced by Attorney General Jeff Sessions.
Governor Chris Christie, folks, was unbelievable. Thank you, Chris.
The New Jersey governor, passed over for a cabinet position, remains a staunch supporter of the President and helms his opioid commission.
On Nov. 1, the commission released its final report. Christie backed Trump’s decision to declare a public health emergency, despite the lack of federal funds associated with the designation. Christie said Trump’s emergency declaration was the president’s way of “handing the baton to Congress.”
The first man, first senator, first major, major politician -- let me tell you, he is highly respected in Washington because he is as smart as you get, senator Jeff Sessions. Where is Jeff?
Trump spent the summer publicly shaming and attacking his top prosecutor for recusing himself from the ongoing Russia probe. Sessions has come under renewed scrutiny in recent days after it was reported that he shot down a suggestion from an adviser that Trump meet with Putin during a 2016 campaign meeting.
Sessions has said under oath that he knew of no one in the campaign who had “conversation with any Russians or any foreign officials.” George Papadopoulos, the adviser who offered to set up the meeting between Trump and Putin was arrested in July for lying to the FBI. His guilty plea indicates he’s cooperating with federal investigators.
A great man. Another great man, very tough competitor. He was not easy. He was not easy. Who is that? Is that the mayor that showed up? Is that Rudy? Oh, Rudy got up here. Another great man who has been really a friend to me, but I'll Tell you, I got to know him as a competitor, because he was one of the folks that was negotiating to go against those democrats. Dr. Ben Carson. Where is Ben? Where is Ben?
The neurosurgeon is serving as Secretary of Housing and Urban Development. The Trump Administration has proposed a $6 billion, or 13%, cut to HUD’s budget next fiscal year.
By the way, Mike Huckabee is here someplace, and he is fantastic. Mike and his family, Sarah, thank you very much.
The former Arkansas governor, an early Trump supporter, is now hosting a talk show on the Christian Trinity Broadcasting Network. His daughter, Sarah Huckabee Sanders, is the White House press secretary. She took over the role after Sean Spicer resigned in July.
General Mike Flynn. Where is Mike?
Trump’s disgraced national security advisor is believed to be at the center of Mueller’s Russia probe. Flynn stepped down in February after less than a month on the job after he was caught lying about contacts with Russian officials. The former Army general was also paid more than $500,000 in 2016 for lobbying that benefitted the Turkish government and discredited U.S.-based Turkish cleric Fethullah Gulen.
And General Kellogg.
Mueller’s team recently interviewed retired Army general Keith Kellogg, the chief of staff of the White House National Security Council under both Flynn and his successor, H.R. McMaster.
We have over 200 generals and admirals that have endorsed our campaign, and they're special people and it is really an honor. We have 22 congressional medal of honor recipients.
We have just tremendous people. A very special person who believe me, and, you know, I would read reports that I wasn't getting along with him. I never had a bad second with him. He's an unbelievable star. He is -- that's right, how did you possibly guess? So let me tell you about Reince, and I have said this. I said, reince -- and I know it, I know it. Look at all of those people over there. I know it. Reince is a superstar, but I said they can't call you a superstar, Reince, unless we win. Because you can't be called a superstar, like Secretariat, if Secretariat came in second, would not have the beautiful bronze bust at the track at belmont.
Priebus served as Trump’s first chief of staff, overseeing a tumultuous tenure in the White House. He recently announced that he is rejoining a Wisconsin-based law firm as president and chief strategist and is signing with the Washington Speakers Bureau.
His time with Trump was beset with stories of strife as he attempted to rein in warring factions within the West Wing. His replacement, retired general John Kelly, has only added to the chaos in recent weeks by making public statements attacking a Florida Congresswoman and calling Confederate general Robert E. Lee an “honorable man.”
But I will tell you Reince is really a star. And he is the hardest working guy, and in a certain way I did this -- where is reince? Get up here, Reince. Get over here, Reince. Boy, oh boy. It is about time you did this, Reince. Huh, my God. Say a few words.
REINCE PRIEBUS: No, no, no.
DONALD TRUMP: No, come on, say something.
REINCE PRIEBUS: Ladies and gentlemen, the next president of the United States, Donald Trump! Thank you. It's been an honor. God bless. Thank God. You bet.
DONALD TRUMP: Amazing guy. Our partnership with the RNC was so important to the success in what we have done. So I also have to say I've gotten to know some incredible people, the Secret Service people. They're tough and they're smart and they're sharp, and I don't want to mess around with them, I can tell you.
President Trump’s penchant for weekends away from the White House have reportedly brought the Secret Service to the edge of bankruptcy. The agency has placed caps on overtime for agents and taken other measures to cut costs.
Trump’s trips to his properties, including weekends in Florida, New Jersey and Virginia have added up. According to reports, the Secret Service spent $59,585 on golf cart rentals alone through August. The agency was also booted from their command post in Trump Tower due to a rent disagreement with the building.
And when I want to go and wave to a big group of people and they rip me down and put me back down in the seat, but they are fantastic people. So I want to thank the secret service. And law enforcement in New York City, they're here tonight. These are spectacular people, sometimes underappreciated unfortunately, but we appreciate them.
We know what they go through. So it has been what they call a historic event, but to be really historic we have to do a great job. And I promise you that I will not let you down. We will do a great job. We will do a great job. I look very much forward to being your president, and hopefully at the end of two years or three years or four years, or maybe even eight years, you will say, so many of you worked so hard for us, but you will say that that was something that you really were very proud to do, and I can thank you very much.
Christie suggested last week that he isn’t sure if Trump will seek a second term. The President has already held several fundraisers, filling his coffers with millions for another run. But Christie said four years is a long time in the White House for a political neophyte like the President. “If he runs again I would support him, yes, but I'm not so sure what would happen," Christie told NBC’s “Today Show.”
I can only say that while the campaign is over, our work on this movement is now really just beginning. We're going to get to work immediately for the American people, and we're going to be doing a job that, hopefully, you will be so proud of your president, you will be so proud. Again, it’s my honor. It was an amazing evening. It's been an amazing two-year period, and I love this country.
Thank you. Thank you very much. Thank you to Mike Pence. Thank you to everybody.
Vice President Pence was brought on to the Trump ticket by none other than Paul Manafort, the former campaign chairman recently indicted on 12 federal charges including money laundering. Pence has maintained his role as a loyal right-hand man to the President even as Trump has reportedly mocked his Veep’s deeply held religious views and even joked that Pence wants to “hang” gay people.


Projects
Javascript visualization of the word "aligned". Created using d3 and jquery for a data visualization course.
See MoreSudoku solver written in Python with a simple user interface. Originally created for an Artificial Inteligence course
See More


households.identity¶
Defines categorical identities that Persons can have, such as sex.
Because identity is key to a social simulation, the identities module defines different classes that can be used to identify and discriminate between agents who have contrasting identities. These identities include:
sex
marriage status
life status
Each identity typically includes attributes for use in narrative, such as adjective, noun, possessive, etc. By convention these are all lowercase and can be capitalized when need be by stirng functions.
Further planned identities include social status, race, ethnicity, gender, and sexuality, to allow more nuanced simulations of diverse societies.
This module is a pre-requisite for almost every other module.
See Also¶
- narrative
The module for creating legible text and histories from simulation runs, and which often takes identities as inputs from Person objects.
-
class
identity.
LifeStatus
(adjective)¶ The class for being alive or dead.
- adjectivestr
The adjective of this sex for use in text-based output
-
class
identity.
MarriageStatus
(adjective)¶ The class for being married, unmarried, or ineligible.
- adjectivestr
The adjective of this sex for use in text-based output
-
class
identity.
Sex
(adjective, noun, possessive)¶ The class for sex objects.
- adjectivestr
The adjective of this sex for use in text-based output.
- nounstr
The noun for use in text-based output.
- possessivestr
The possessive to use for text-based output.
- adjectivestr
The adjective of this sex for use in text-based output.
- nounstr
The noun for use in text-based output.
- possessivestr
The possessive to use for text-based output.


The number of employment in the United States economy dropped dramatically by the end of the 2020 fiscal year compared to previous years as the country battled with the COVID-19 pandemic. According to research conducted by the Urban Institute, 12% of volunteers who participated in the December 2020 Census Bureau Household Pulse Survey reported to not have had enough to eat, while one-fifth of renters reported being behind on their rent amid the pandemic. The institution projected a poverty rate of 7.7% for 2021. The projected poverty rate was much higher for Black non-Hispanic people, Hispanic people, non-Hispanic Asian American people and Pacific Islanders than for White, non-Hispanic people.
This report will document the poverty status of different racial and ethnic populations in Manhattan Community District 7 which include: the Upper West Side, Manhattan Valley, and Lincoln Square, over the last 12 months.
6.5% of the 144,955 White alone population in the District have an income below poverty level. An estimated 93.5% have an income at or above the poverty level.
33.2% of the 12,525 Black or African American alone population reported to have an income below the poverty level, while 66.8% of the population has an income at or above the poverty level.
10.8% of the 18,999 Asian alone population have an income that falls below the income poverty level. An estimated 89.2% of the population is projected to have an income at or above the poverty level.
18.0% of the 27,704 Hispanic or Latino population have an income that is below the poverty level. The remaining 82.0% of the population have an income at or above the poverty level.
13.9% of the 5,912 population that fall under Two or More races have an income below the poverty level. 86.1% of the population have an income at or above the poverty level.
21.5% of the 8,584 population that fall under the Other Race Alone category have an income below the poverty level, while 78.5% of the population have an income at or above the poverty level.


Easiest parallax in the world Jun 10, 2013
Almost no CSS and a couple of lines of Jquery are all you need for this extremely simple parallax demo. This is not really something I would recommend to use on a production site but it's a very good way to start to understand how you can write your own parallax.
Warning: the demo is very basic and that's on purpose, the idea here is to really understand exactly what's going on so I have kept the code to an absolute minimum. This means that looking through the source code shouldn't be confusing for anyone.
With the warning over check out the demo.
In the demo the black and white Pulp Fiction poster moves upwards at half the speed at which you scroll. All the code to understand how that happens is in the source code of the file and it's only a couple of lines but I'm going to run through it here anyway:
$(window).scroll(function() {
var scroll = $(window).scrollTop();
$(".parallax").css("transform","translateY(" + (scroll/2) + "px)");
});
What's going on here? To translate it into normal speak line by line:
- When the user scrolls the window
- Check how many px from the top have been scrolled, store this data in an object called "scroll"
- Apply inline CSS to the element with the class "parallax" so that it has a translateY value of half the amount of pixels scrolled
The key is what's being done in line 3, basically pushing the Pulp Fiction image down the screen at half the speed that the scroll is pulling it up the screen, creating this parallax effect.
There isn't really any important CSS going on here, I gave the div below the
image position:relative
just to make sure that
it stayed above the image. If you had more elements on the page you might want
to explicitly assign a z-index.


App Engine Note: This method is a no-op.
| def httplib.HTTPConnection.close |
( |
|
self | ) |
|
Close the connection to the HTTP server.
| def httplib.HTTPConnection.connect |
( |
|
self | ) |
|
Connect to the host and port specified in __init__.
App Engine Note: This method is a no-op.
| def httplib.HTTPConnection.connect |
( |
|
self | ) |
|
Connect to the host and port specified in __init__.
| def httplib.HTTPConnection.endheaders |
( |
|
self, |
|
|
|
message_body = None |
|
) |
| |
Indicate that the last header line has been sent to the server.
This method sends the request to the server. The optional
message_body argument can be used to pass message body
associated with the request. The message body will be sent in
the same packet as the message headers if possible. The
message_body should be a string.
| def httplib.HTTPConnection.endheaders |
( |
|
self, |
|
|
|
message_body = None |
|
) |
| |
Indicate that the last header line has been sent to the server.
This method sends the request to the server. The optional
message_body argument can be used to pass a message body
associated with the request. The message body will be sent in
the same packet as the message headers if it is string, otherwise it is
sent as a separate packet.
| def httplib.HTTPConnection.getresponse |
( |
|
self, |
|
|
|
buffering = False |
|
) |
| |
Get the response from the server.
App Engine Note: buffering is ignored.
| def httplib.HTTPConnection.putheader |
( |
|
self, |
|
|
|
header, |
|
|
|
values |
|
) |
| |
Send a request header line to the server.
For example: h.putheader('Accept', 'text/html')
| def httplib.HTTPConnection.putheader |
( |
|
self, |
|
|
|
header, |
|
|
|
values |
|
) |
| |
Send a request header line to the server.
For example: h.putheader('Accept', 'text/html')
| def httplib.HTTPConnection.putrequest |
( |
|
self, |
|
|
|
method, |
|
|
|
url, |
|
|
|
skip_host = 0 , |
|
|
|
skip_accept_encoding = 0 |
|
) |
| |
Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
App Engine Note: `skip_host' and `skip_accept_encoding' are not honored by
the urlfetch service.
| def httplib.HTTPConnection.putrequest |
( |
|
self, |
|
|
|
method, |
|
|
|
url, |
|
|
|
skip_host = 0 , |
|
|
|
skip_accept_encoding = 0 |
|
) |
| |
Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
| def httplib.HTTPConnection.request |
( |
|
self, |
|
|
|
method, |
|
|
|
url, |
|
|
|
body = None , |
|
|
|
headers = None |
|
) |
| |
Send a complete request to the server.
| def httplib.HTTPConnection.request |
( |
|
self, |
|
|
|
method, |
|
|
|
url, |
|
|
|
body = None , |
|
|
|
headers = {} |
|
) |
| |
Send a complete request to the server.
| def httplib.HTTPConnection.send |
( |
|
self, |
|
|
|
data |
|
) |
| |
Send `data' to the server.
| def httplib.HTTPConnection.send |
( |
|
self, |
|
|
|
data |
|
) |
| |
Send `data' to the server.
| def httplib.HTTPConnection.set_tunnel |
( |
|
self, |
|
|
|
host, |
|
|
|
port = None , |
|
|
|
headers = None |
|
) |
| |
Sets up the host and the port for the HTTP CONNECT Tunnelling.
The headers argument should be a mapping of extra HTTP headers
to send with the CONNECT request.
App Engine Note: This method is not supported.
| def httplib.HTTPConnection.set_tunnel |
( |
|
self, |
|
|
|
host, |
|
|
|
port = None , |
|
|
|
headers = None |
|
) |
| |
Sets up the host and the port for the HTTP CONNECT Tunnelling.
The headers argument should be a mapping of extra HTTP headers
to send with the CONNECT request.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/dist27/gae_override/httplib.py


by Curtis Edmonds --<EMAIL_ADDRESS>By it's very nature, Tomorrow Never Dies is a film that invites comparisons. The film itself with earlier Bond pictures, Pierce Brosnan with Sean Connery and Roger Moore, the Bond car and gadgets of today with those of yesteryear... the list goes on. And I think it's a fun game to play, if you're into that sort of thing.
But if we're going to make comparisons...
Is Tomorrow Never Dies a better film than The Peacemaker?
I think that's a fair question. All of the Bond heritage aside, we still have to judge Tomorrow Never Dies on its merits rather than on its illustrious predecesors.
Tomorrow Never Dies employs the same basic plot foundation as The Peacemaker -- an irresponsible madman has control of a nuclear device and plans to explode it to further an irrational agenda. (Given the relative stability of geopolitics nowadays, this seems to be the most popular plotline going. Mission: Impossible and True Lies used similar nuclear plots, and it's even used, in a backhanded, satirical way, in the current Wag The Dog.) However, the villian in Tomorrow Never Dies is a megolamaniacal news tycoon (Jonathan Pryce) whose true enemy is, in fact, CNN. His ultimate weapon is a "stealth boat" which can't be seen on radar, has video teleconference capability, and is much bigger on the inside than the outside. And he's trying to start a war between Great Britain and China to increase TV ratings. And...
I'm sorry, the plot is just too ridiculous for words. It really is. There's just so much about it that's implausible and quite a bit that doesn't make any sense whatsoever. It just ambles along with motorcycle chases and car chases and whatnot until the final confrontation between Bond and this Rupert Murdoch guy. (I won't tell you who wins.)
Tomorrow Never Dies is a formula movie. And there's nothing intrinsically wrong with that, mind you. It's just that if you're going to make a formula movie, it needs to have something extra to differentiate it from the other formula movies out there -- and by itself, vodka-martini-shaken-not-stirred dialogue and Pierce Brosnan's suave performance don't cut it. To its credit, Tomorrow Never Dies does try to shake up the formula by adding Michelle Yeoh, best known in the States as a Jackie Chan sidekick. (Or "sidechick"?) Unfortunately, she's not given nearly enough opportunity to flex her kung-fu muscles, and the one scene where she does get to stomp some bad guys looks tacked-on.
All that aside, though, this is still a James Bond movie, which means that things are done with class. Brosnan's 007 has made everyone forget about Timothy Dalton -- and maybe even Roger Moore. The chase scenes are well-done, although they're not compelling. The plot is nonsense, but it's well-photographed and well-staged nonsense. The Bond support team (M, Q, Moneypenny) do a workmanlike job, as does Teri Hatcher in a brief role.
So, to answer my question, is Tomorrow Never Dies better than The Peacemaker? Let's put it this way: does anybody want to see George Clooney in seventeen sequels?
Rating: B
-- Curtis "BlueDuck" Edmonds<EMAIL_ADDRESS>The Hollywood Stock Brokerage and Resource http://www.hsbr.org/brokers/blueduck/
"I don't want to study law," she said with the same tone as if she had been saying, "I don't want to turn into a cockroach."
-- Mark Helprin, "A Soldier of the Great War"
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.FrontendAppConfig @import views.html.layouts.FullLayoutMainContent @this( printLink: components.printLink, govukLayoutWrapper: GovukLayoutWrapper, fullLayoutMainContent: FullLayoutMainContent ) @(appConfig: FrontendAppConfig, c: Case, getCountryName: String => Option[String])(implicit request: Request[_], messages: Messages) @createLink(path: String)(implicit req: play.api.mvc.Request[_]) = @{ s"${appConfig.host}${routes.Assets.versioned(path)}" } @additionalCSS = @{ //Html(s"""""") Html(s"""""") } @govukLayoutWrapper( pageTitle = messages("rulingInformation.title"), optCustomLayout = Some(fullLayoutMainContent(_)), additionalCSS = Some(additionalCSS) ) {
@rulingCoverLetterTemplate(appConfig, c, c.decision.get, getCountryName: String => Option[String], compositeMode = true)


{% extends "base.html" %} {% block title %}
Medieval catalogues > SECULAR INSTITUTIONS: Secular Colleges > Windsor > Excerpts from the Precentors' Rolls, 1363-4 to 1383-4
{% endif %}1 identified entry found.
All data was derived from the List of Identifications by Professor Richard Sharpe.
{% if not printing %}
A key to codes used in the List is available (opens in new tab).{% endif %}


Username: {{currentUser.name}}
My ID (email): {{currentUser.email}}
{{displayUser}}
Manage my Skills:
Add a skill
Add Skill
send
delete
{{skill.$value}}
Notification Center
Invitations
Notifs
All of my invitations:
{{display.$value}}
Accept
Turn down
All of my notifications:
{{notif.content}}
Admin
Leader
Member
Applying
Events administrating by me
{{event}}
I am team leader
{{team}}
I am a member in these teams
{{team.$value}}
I have pending applications to these teams:
ID of this team:{{pendingTeam.teamID}}
Name of this team:{{pendingTeam.teamName}}
WITHDRAW