text
stringlengths 1
22.8M
|
|---|
```perl6
package IO::Uncompress::Bunzip2 ;
use strict ;
use warnings;
use bytes;
use IO::Compress::Base::Common 2.204 qw(:Status );
use IO::Uncompress::Base 2.204 ;
use IO::Uncompress::Adapter::Bunzip2 2.204 ;
require Exporter ;
our ($VERSION, @ISA, @EXPORT_OK, %EXPORT_TAGS, $Bunzip2Error);
$VERSION = '2.204';
$Bunzip2Error = '';
@ISA = qw(IO::Uncompress::Base Exporter);
@EXPORT_OK = qw( $Bunzip2Error bunzip2 ) ;
#%EXPORT_TAGS = %IO::Uncompress::Base::EXPORT_TAGS ;
push @{ $EXPORT_TAGS{all} }, @EXPORT_OK ;
#Exporter::export_ok_tags('all');
sub new
{
my $class = shift ;
my $obj = IO::Compress::Base::Common::createSelfTiedObject($class, \$Bunzip2Error);
$obj->_create(undef, 0, @_);
}
sub bunzip2
{
my $obj = IO::Compress::Base::Common::createSelfTiedObject(undef, \$Bunzip2Error);
return $obj->_inf(@_);
}
sub getExtraParams
{
return (
'verbosity' => [IO::Compress::Base::Common::Parse_boolean, 0],
'small' => [IO::Compress::Base::Common::Parse_boolean, 0],
);
}
sub ckParams
{
my $self = shift ;
my $got = shift ;
return 1;
}
sub mkUncomp
{
my $self = shift ;
my $got = shift ;
my $magic = $self->ckMagic()
or return 0;
*$self->{Info} = $self->readHeader($magic)
or return undef ;
my $Small = $got->getValue('small');
my $Verbosity = $got->getValue('verbosity');
my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Bunzip2::mkUncompObject(
$Small, $Verbosity);
return $self->saveErrorString(undef, $errstr, $errno)
if ! defined $obj;
*$self->{Uncomp} = $obj;
return 1;
}
sub ckMagic
{
my $self = shift;
my $magic ;
$self->smartReadExact(\$magic, 4);
*$self->{HeaderPending} = $magic ;
return $self->HeaderError("Header size is " .
4 . " bytes")
if length $magic != 4;
return $self->HeaderError("Bad Magic.")
if ! isBzip2Magic($magic) ;
*$self->{Type} = 'bzip2';
return $magic;
}
sub readHeader
{
my $self = shift;
my $magic = shift ;
$self->pushBack($magic);
*$self->{HeaderPending} = '';
return {
'Type' => 'bzip2',
'FingerprintLength' => 4,
'HeaderLength' => 4,
'TrailerLength' => 0,
'Header' => '$magic'
};
}
sub chkTrailer
{
return STATUS_OK;
}
sub isBzip2Magic
{
my $buffer = shift ;
# ASCII: B Z h 0 9
return $buffer =~ qr/^\x42\x5A\x68[\x30-\x39]$/;
}
1 ;
__END__
=head1 NAME
IO::Uncompress::Bunzip2 - Read bzip2 files/buffers
=head1 SYNOPSIS
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
my $status = bunzip2 $input => $output [,OPTS]
or die "bunzip2 failed: $Bunzip2Error\n";
my $z = IO::Uncompress::Bunzip2->new( $input [OPTS] )
or die "bunzip2 failed: $Bunzip2Error\n";
$status = $z->read($buffer)
$status = $z->read($buffer, $length)
$status = $z->read($buffer, $length, $offset)
$line = $z->getline()
$char = $z->getc()
$char = $z->ungetc()
$char = $z->opened()
$data = $z->trailingData()
$status = $z->nextStream()
$data = $z->getHeaderInfo()
$z->tell()
$z->seek($position, $whence)
$z->binmode()
$z->fileno()
$z->eof()
$z->close()
$Bunzip2Error ;
# IO::File mode
<$z>
read($z, $buffer);
read($z, $buffer, $length);
read($z, $buffer, $length, $offset);
tell($z)
seek($z, $position, $whence)
binmode($z)
fileno($z)
eof($z)
close($z)
=head1 DESCRIPTION
This module provides a Perl interface that allows the reading of
bzip2 files/buffers.
For writing bzip2 files/buffers, see the companion module IO::Compress::Bzip2.
=head1 Functional Interface
A top-level function, C<bunzip2>, is provided to carry out
"one-shot" uncompression between buffers and/or files. For finer
control over the uncompression process, see the L</"OO Interface">
section.
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
bunzip2 $input_filename_or_reference => $output_filename_or_reference [,OPTS]
or die "bunzip2 failed: $Bunzip2Error\n";
The functional interface needs Perl5.005 or better.
=head2 bunzip2 $input_filename_or_reference => $output_filename_or_reference [, OPTS]
C<bunzip2> expects at least two parameters,
C<$input_filename_or_reference> and C<$output_filename_or_reference>
and zero or more optional parameters (see L</Optional Parameters>)
=head3 The C<$input_filename_or_reference> parameter
The parameter, C<$input_filename_or_reference>, is used to define the
source of the compressed data.
It can take one of the following forms:
=over 5
=item A filename
If the C<$input_filename_or_reference> parameter is a simple scalar, it is
assumed to be a filename. This file will be opened for reading and the
input data will be read from it.
=item A filehandle
If the C<$input_filename_or_reference> parameter is a filehandle, the input
data will be read from it. The string '-' can be used as an alias for
standard input.
=item A scalar reference
If C<$input_filename_or_reference> is a scalar reference, the input data
will be read from C<$$input_filename_or_reference>.
=item An array reference
If C<$input_filename_or_reference> is an array reference, each element in
the array must be a filename.
The input data will be read from each file in turn.
The complete array will be walked to ensure that it only
contains valid filenames before any data is uncompressed.
=item An Input FileGlob string
If C<$input_filename_or_reference> is a string that is delimited by the
characters "<" and ">" C<bunzip2> will assume that it is an
I<input fileglob string>. The input is the list of files that match the
fileglob.
See L<File::GlobMapper|File::GlobMapper> for more details.
=back
If the C<$input_filename_or_reference> parameter is any other type,
C<undef> will be returned.
=head3 The C<$output_filename_or_reference> parameter
The parameter C<$output_filename_or_reference> is used to control the
destination of the uncompressed data. This parameter can take one of
these forms.
=over 5
=item A filename
If the C<$output_filename_or_reference> parameter is a simple scalar, it is
assumed to be a filename. This file will be opened for writing and the
uncompressed data will be written to it.
=item A filehandle
If the C<$output_filename_or_reference> parameter is a filehandle, the
uncompressed data will be written to it. The string '-' can be used as
an alias for standard output.
=item A scalar reference
If C<$output_filename_or_reference> is a scalar reference, the
uncompressed data will be stored in C<$$output_filename_or_reference>.
=item An Array Reference
If C<$output_filename_or_reference> is an array reference,
the uncompressed data will be pushed onto the array.
=item An Output FileGlob
If C<$output_filename_or_reference> is a string that is delimited by the
characters "<" and ">" C<bunzip2> will assume that it is an
I<output fileglob string>. The output is the list of files that match the
fileglob.
When C<$output_filename_or_reference> is an fileglob string,
C<$input_filename_or_reference> must also be a fileglob string. Anything
else is an error.
See L<File::GlobMapper|File::GlobMapper> for more details.
=back
If the C<$output_filename_or_reference> parameter is any other type,
C<undef> will be returned.
=head2 Notes
When C<$input_filename_or_reference> maps to multiple compressed
files/buffers and C<$output_filename_or_reference> is
a single file/buffer, after uncompression C<$output_filename_or_reference> will contain a
concatenation of all the uncompressed data from each of the input
files/buffers.
=head2 Optional Parameters
The optional parameters for the one-shot function C<bunzip2>
are (for the most part) identical to those used with the OO interface defined in the
L</"Constructor Options"> section. The exceptions are listed below
=over 5
=item C<< AutoClose => 0|1 >>
This option applies to any input or output data streams to
C<bunzip2> that are filehandles.
If C<AutoClose> is specified, and the value is true, it will result in all
input and/or output filehandles being closed once C<bunzip2> has
completed.
This parameter defaults to 0.
=item C<< BinModeOut => 0|1 >>
This option is now a no-op. All files will be written in binmode.
=item C<< Append => 0|1 >>
The behaviour of this option is dependent on the type of output data
stream.
=over 5
=item * A Buffer
If C<Append> is enabled, all uncompressed data will be append to the end of
the output buffer. Otherwise the output buffer will be cleared before any
uncompressed data is written to it.
=item * A Filename
If C<Append> is enabled, the file will be opened in append mode. Otherwise
the contents of the file, if any, will be truncated before any uncompressed
data is written to it.
=item * A Filehandle
If C<Append> is enabled, the filehandle will be positioned to the end of
the file via a call to C<seek> before any uncompressed data is
written to it. Otherwise the file pointer will not be moved.
=back
When C<Append> is specified, and set to true, it will I<append> all uncompressed
data to the output data stream.
So when the output is a filehandle it will carry out a seek to the eof
before writing any uncompressed data. If the output is a filename, it will be opened for
appending. If the output is a buffer, all uncompressed data will be
appended to the existing buffer.
Conversely when C<Append> is not specified, or it is present and is set to
false, it will operate as follows.
When the output is a filename, it will truncate the contents of the file
before writing any uncompressed data. If the output is a filehandle
its position will not be changed. If the output is a buffer, it will be
wiped before any uncompressed data is output.
Defaults to 0.
=item C<< MultiStream => 0|1 >>
If the input file/buffer contains multiple compressed data streams, this
option will uncompress the whole lot as a single data stream.
Defaults to 0.
=item C<< TrailingData => $scalar >>
Returns the data, if any, that is present immediately after the compressed
data stream once uncompression is complete.
This option can be used when there is useful information immediately
following the compressed data stream, and you don't know the length of the
compressed data stream.
If the input is a buffer, C<trailingData> will return everything from the
end of the compressed data stream to the end of the buffer.
If the input is a filehandle, C<trailingData> will return the data that is
left in the filehandle input buffer once the end of the compressed data
stream has been reached. You can then use the filehandle to read the rest
of the input file.
Don't bother using C<trailingData> if the input is a filename.
If you know the length of the compressed data stream before you start
uncompressing, you can avoid having to use C<trailingData> by setting the
C<InputLength> option.
=back
=head2 Examples
To read the contents of the file C<file1.txt.bz2> and write the
uncompressed data to the file C<file1.txt>.
use strict ;
use warnings ;
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
my $input = "file1.txt.bz2";
my $output = "file1.txt";
bunzip2 $input => $output
or die "bunzip2 failed: $Bunzip2Error\n";
To read from an existing Perl filehandle, C<$input>, and write the
uncompressed data to a buffer, C<$buffer>.
use strict ;
use warnings ;
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
use IO::File ;
my $input = IO::File->new( "<file1.txt.bz2" )
or die "Cannot open 'file1.txt.bz2': $!\n" ;
my $buffer ;
bunzip2 $input => \$buffer
or die "bunzip2 failed: $Bunzip2Error\n";
To uncompress all files in the directory "/my/home" that match "*.txt.bz2" and store the compressed data in the same directory
use strict ;
use warnings ;
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
bunzip2 '</my/home/*.txt.bz2>' => '</my/home/#1.txt>'
or die "bunzip2 failed: $Bunzip2Error\n";
and if you want to compress each file one at a time, this will do the trick
use strict ;
use warnings ;
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
for my $input ( glob "/my/home/*.txt.bz2" )
{
my $output = $input;
$output =~ s/.bz2// ;
bunzip2 $input => $output
or die "Error compressing '$input': $Bunzip2Error\n";
}
=head1 OO Interface
=head2 Constructor
The format of the constructor for IO::Uncompress::Bunzip2 is shown below
my $z = IO::Uncompress::Bunzip2->new( $input [OPTS] )
or die "IO::Uncompress::Bunzip2 failed: $Bunzip2Error\n";
Returns an C<IO::Uncompress::Bunzip2> object on success and undef on failure.
The variable C<$Bunzip2Error> will contain an error message on failure.
If you are running Perl 5.005 or better the object, C<$z>, returned from
IO::Uncompress::Bunzip2 can be used exactly like an L<IO::File|IO::File> filehandle.
This means that all normal input file operations can be carried out with
C<$z>. For example, to read a line from a compressed file/buffer you can
use either of these forms
$line = $z->getline();
$line = <$z>;
The mandatory parameter C<$input> is used to determine the source of the
compressed data. This parameter can take one of three forms.
=over 5
=item A filename
If the C<$input> parameter is a scalar, it is assumed to be a filename. This
file will be opened for reading and the compressed data will be read from it.
=item A filehandle
If the C<$input> parameter is a filehandle, the compressed data will be
read from it.
The string '-' can be used as an alias for standard input.
=item A scalar reference
If C<$input> is a scalar reference, the compressed data will be read from
C<$$input>.
=back
=head2 Constructor Options
The option names defined below are case insensitive and can be optionally
prefixed by a '-'. So all of the following are valid
-AutoClose
-autoclose
AUTOCLOSE
autoclose
OPTS is a combination of the following options:
=over 5
=item C<< AutoClose => 0|1 >>
This option is only valid when the C<$input> parameter is a filehandle. If
specified, and the value is true, it will result in the file being closed once
either the C<close> method is called or the IO::Uncompress::Bunzip2 object is
destroyed.
This parameter defaults to 0.
=item C<< MultiStream => 0|1 >>
Allows multiple concatenated compressed streams to be treated as a single
compressed stream. Decompression will stop once either the end of the
file/buffer is reached, an error is encountered (premature eof, corrupt
compressed data) or the end of a stream is not immediately followed by the
start of another stream.
This parameter defaults to 0.
=item C<< Prime => $string >>
This option will uncompress the contents of C<$string> before processing the
input file/buffer.
This option can be useful when the compressed data is embedded in another
file/data structure and it is not possible to work out where the compressed
data begins without having to read the first few bytes. If this is the
case, the uncompression can be I<primed> with these bytes using this
option.
=item C<< Transparent => 0|1 >>
If this option is set and the input file/buffer is not compressed data,
the module will allow reading of it anyway.
In addition, if the input file/buffer does contain compressed data and
there is non-compressed data immediately following it, setting this option
will make this module treat the whole file/buffer as a single data stream.
This option defaults to 1.
=item C<< BlockSize => $num >>
When reading the compressed input data, IO::Uncompress::Bunzip2 will read it in
blocks of C<$num> bytes.
This option defaults to 4096.
=item C<< InputLength => $size >>
When present this option will limit the number of compressed bytes read
from the input file/buffer to C<$size>. This option can be used in the
situation where there is useful data directly after the compressed data
stream and you know beforehand the exact length of the compressed data
stream.
This option is mostly used when reading from a filehandle, in which case
the file pointer will be left pointing to the first byte directly after the
compressed data stream.
This option defaults to off.
=item C<< Append => 0|1 >>
This option controls what the C<read> method does with uncompressed data.
If set to 1, all uncompressed data will be appended to the output parameter
of the C<read> method.
If set to 0, the contents of the output parameter of the C<read> method
will be overwritten by the uncompressed data.
Defaults to 0.
=item C<< Strict => 0|1 >>
This option is a no-op.
=item C<< Small => 0|1 >>
When non-zero this options will make bzip2 use a decompression algorithm
that uses less memory at the expense of increasing the amount of time
taken for decompression.
Default is 0.
=back
=head2 Examples
TODO
=head1 Methods
=head2 read
Usage is
$status = $z->read($buffer)
Reads a block of compressed data (the size of the compressed block is
determined by the C<Buffer> option in the constructor), uncompresses it and
writes any uncompressed data into C<$buffer>. If the C<Append> parameter is
set in the constructor, the uncompressed data will be appended to the
C<$buffer> parameter. Otherwise C<$buffer> will be overwritten.
Returns the number of uncompressed bytes written to C<$buffer>, zero if eof
or a negative number on error.
=head2 read
Usage is
$status = $z->read($buffer, $length)
$status = $z->read($buffer, $length, $offset)
$status = read($z, $buffer, $length)
$status = read($z, $buffer, $length, $offset)
Attempt to read C<$length> bytes of uncompressed data into C<$buffer>.
The main difference between this form of the C<read> method and the
previous one, is that this one will attempt to return I<exactly> C<$length>
bytes. The only circumstances that this function will not is if end-of-file
or an IO error is encountered.
Returns the number of uncompressed bytes written to C<$buffer>, zero if eof
or a negative number on error.
=head2 getline
Usage is
$line = $z->getline()
$line = <$z>
Reads a single line.
This method fully supports the use of the variable C<$/> (or
C<$INPUT_RECORD_SEPARATOR> or C<$RS> when C<English> is in use) to
determine what constitutes an end of line. Paragraph mode, record mode and
file slurp mode are all supported.
=head2 getc
Usage is
$char = $z->getc()
Read a single character.
=head2 ungetc
Usage is
$char = $z->ungetc($string)
=head2 getHeaderInfo
Usage is
$hdr = $z->getHeaderInfo();
@hdrs = $z->getHeaderInfo();
This method returns either a hash reference (in scalar context) or a list
or hash references (in array context) that contains information about each
of the header fields in the compressed data stream(s).
=head2 tell
Usage is
$z->tell()
tell $z
Returns the uncompressed file offset.
=head2 eof
Usage is
$z->eof();
eof($z);
Returns true if the end of the compressed input stream has been reached.
=head2 seek
$z->seek($position, $whence);
seek($z, $position, $whence);
Provides a sub-set of the C<seek> functionality, with the restriction
that it is only legal to seek forward in the input file/buffer.
It is a fatal error to attempt to seek backward.
Note that the implementation of C<seek> in this module does not provide
true random access to a compressed file/buffer. It works by uncompressing
data from the current offset in the file/buffer until it reaches the
uncompressed offset specified in the parameters to C<seek>. For very small
files this may be acceptable behaviour. For large files it may cause an
unacceptable delay.
The C<$whence> parameter takes one the usual values, namely SEEK_SET,
SEEK_CUR or SEEK_END.
Returns 1 on success, 0 on failure.
=head2 binmode
Usage is
$z->binmode
binmode $z ;
This is a noop provided for completeness.
=head2 opened
$z->opened()
Returns true if the object currently refers to a opened file/buffer.
=head2 autoflush
my $prev = $z->autoflush()
my $prev = $z->autoflush(EXPR)
If the C<$z> object is associated with a file or a filehandle, this method
returns the current autoflush setting for the underlying filehandle. If
C<EXPR> is present, and is non-zero, it will enable flushing after every
write/print operation.
If C<$z> is associated with a buffer, this method has no effect and always
returns C<undef>.
B<Note> that the special variable C<$|> B<cannot> be used to set or
retrieve the autoflush setting.
=head2 input_line_number
$z->input_line_number()
$z->input_line_number(EXPR)
Returns the current uncompressed line number. If C<EXPR> is present it has
the effect of setting the line number. Note that setting the line number
does not change the current position within the file/buffer being read.
The contents of C<$/> are used to determine what constitutes a line
terminator.
=head2 fileno
$z->fileno()
fileno($z)
If the C<$z> object is associated with a file or a filehandle, C<fileno>
will return the underlying file descriptor. Once the C<close> method is
called C<fileno> will return C<undef>.
If the C<$z> object is associated with a buffer, this method will return
C<undef>.
=head2 close
$z->close() ;
close $z ;
Closes the output file/buffer.
For most versions of Perl this method will be automatically invoked if
the IO::Uncompress::Bunzip2 object is destroyed (either explicitly or by the
variable with the reference to the object going out of scope). The
exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In
these cases, the C<close> method will be called automatically, but
not until global destruction of all live objects when the program is
terminating.
Therefore, if you want your scripts to be able to run on all versions
of Perl, you should call C<close> explicitly and not rely on automatic
closing.
Returns true on success, otherwise 0.
If the C<AutoClose> option has been enabled when the IO::Uncompress::Bunzip2
object was created, and the object is associated with a file, the
underlying file will also be closed.
=head2 nextStream
Usage is
my $status = $z->nextStream();
Skips to the next compressed data stream in the input file/buffer. If a new
compressed data stream is found, the eof marker will be cleared and C<$.>
will be reset to 0.
Returns 1 if a new stream was found, 0 if none was found, and -1 if an
error was encountered.
=head2 trailingData
Usage is
my $data = $z->trailingData();
Returns the data, if any, that is present immediately after the compressed
data stream once uncompression is complete. It only makes sense to call
this method once the end of the compressed data stream has been
encountered.
This option can be used when there is useful information immediately
following the compressed data stream, and you don't know the length of the
compressed data stream.
If the input is a buffer, C<trailingData> will return everything from the
end of the compressed data stream to the end of the buffer.
If the input is a filehandle, C<trailingData> will return the data that is
left in the filehandle input buffer once the end of the compressed data
stream has been reached. You can then use the filehandle to read the rest
of the input file.
Don't bother using C<trailingData> if the input is a filename.
If you know the length of the compressed data stream before you start
uncompressing, you can avoid having to use C<trailingData> by setting the
C<InputLength> option in the constructor.
=head1 Importing
No symbolic constants are required by IO::Uncompress::Bunzip2 at present.
=over 5
=item :all
Imports C<bunzip2> and C<$Bunzip2Error>.
Same as doing this
use IO::Uncompress::Bunzip2 qw(bunzip2 $Bunzip2Error) ;
=back
=head1 EXAMPLES
=head2 Working with Net::FTP
See L<IO::Compress::FAQ|IO::Compress::FAQ/"Compressed files and Net::FTP">
=head1 SUPPORT
General feedback/questions/bug reports should be sent to
L<path_to_url (preferred) or
L<path_to_url
=head1 SEE ALSO
L<Compress::Zlib>, L<IO::Compress::Gzip>, L<IO::Uncompress::Gunzip>, L<IO::Compress::Deflate>, L<IO::Uncompress::Inflate>, L<IO::Compress::RawDeflate>, L<IO::Uncompress::RawInflate>, L<IO::Compress::Bzip2>, L<IO::Compress::Lzma>, L<IO::Uncompress::UnLzma>, L<IO::Compress::Xz>, L<IO::Uncompress::UnXz>, L<IO::Compress::Lzip>, L<IO::Uncompress::UnLzip>, L<IO::Compress::Lzop>, L<IO::Uncompress::UnLzop>, L<IO::Compress::Lzf>, L<IO::Uncompress::UnLzf>, L<IO::Compress::Zstd>, L<IO::Uncompress::UnZstd>, L<IO::Uncompress::AnyInflate>, L<IO::Uncompress::AnyUncompress>
L<IO::Compress::FAQ|IO::Compress::FAQ>
L<File::GlobMapper|File::GlobMapper>, L<Archive::Zip|Archive::Zip>,
L<Archive::Tar|Archive::Tar>,
L<IO::Zlib|IO::Zlib>
The primary site for the bzip2 program is L<path_to_url
See the module L<Compress::Bzip2|Compress::Bzip2>
=head1 AUTHOR
This module was written by Paul Marquess, C<pmqs@cpan.org>.
=head1 MODIFICATION HISTORY
See the Changes file.
=head1 COPYRIGHT AND LICENSE
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
```
|
John Butrovich Jr. (March 22, 1910 – June 3, 1997) was an American businessman and politician from Alaska. He was a member of the Republican Party, and was that party's nominee in the 1958 gubernatorial election.
Life and career
Born in a mining camp near Fairbanks, Alaska, to a Croatian American family, Butrovich graduated from Fairbanks High School in 1929. He then went to Washington State University. He returned to Fairbanks and was in the insurance business. He married Grace Butrovich in 1936, and they had one daughter together. From 1944 to 1958, Butrovich served in the Alaska Territorial Senate and was a Republican. He was the speaker of the delegation sent to President Eisenhower to convince him to sign the statehood bill. In 1958, Butrovich ran in the election for Governor of Alaska and lost the election to Bill Egan, 59.6% to 39.4%. From 1963 to 1979, Butrovich served in the Alaska State Senate. He was named Alaskan of the Year in 1980, and awarded an honorary degree by the University of Alaska. The Butrovich Building, a building on the University of Alaska Fairbanks campus which runs the University of Alaska's statewide administration, is named after him.
Death
Butrovich died at his home in Fairbanks, Alaska after a battle with a long illness. He was 87.
Notes
1910 births
1997 deaths
Republican Party Alaska state senators
American businesspeople in insurance
American people of Montenegrin descent
Businesspeople from Fairbanks, Alaska
Insurance agents
Members of the Alaska Territorial Legislature
Politicians from Fairbanks, Alaska
University of Alaska people
Washington State University alumni
20th-century American politicians
20th-century American businesspeople
|
```rust
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(missing_docs, warnings)]
#[cfg(not(any(feature = "graphql-transport-ws", feature = "graphql-ws")))]
compile_error!(
r#"at least one feature must be enabled (either "graphql-transport-ws" or "graphql-ws")"#
);
#[cfg(feature = "graphql-transport-ws")]
pub mod graphql_transport_ws;
#[cfg(feature = "graphql-ws")]
pub mod graphql_ws;
mod schema;
mod server_message;
mod util;
use std::{
convert::Infallible,
error::Error,
future::{self, Future},
time::Duration,
};
use juniper::{ScalarValue, Variables};
pub use self::schema::{ArcSchema, Schema};
/// ConnectionConfig is used to configure the connection once the client sends the ConnectionInit
/// message.
#[derive(Clone, Copy, Debug)]
pub struct ConnectionConfig<CtxT> {
/// Custom-provided [`juniper::Context`].
pub context: CtxT,
/// Maximum number of in-flight operations that a connection can have.
///
/// If this number is exceeded, attempting to start more will result in an error.
/// By default, there is no limit to in-flight operations.
pub max_in_flight_operations: usize,
/// Interval at which to send keep-alives.
///
/// Specifying a [`Duration::ZERO`] will disable keep-alives.
///
/// By default, keep-alives are sent every 15 seconds.
pub keep_alive_interval: Duration,
}
impl<CtxT> ConnectionConfig<CtxT> {
/// Constructs the configuration required for a connection to be accepted.
pub fn new(context: CtxT) -> Self {
Self {
context,
max_in_flight_operations: 0,
keep_alive_interval: Duration::from_secs(15),
}
}
/// Specifies the maximum number of in-flight operations that a connection can have.
///
/// If this number is exceeded, attempting to start more will result in an error.
/// By default, there is no limit to in-flight operations.
#[must_use]
pub fn with_max_in_flight_operations(mut self, max: usize) -> Self {
self.max_in_flight_operations = max;
self
}
/// Specifies the interval at which to send keep-alives.
///
/// Specifying a [`Duration::ZERO`] will disable keep-alives.
///
/// By default, keep-alives are sent every 15 seconds.
#[must_use]
pub fn with_keep_alive_interval(mut self, interval: Duration) -> Self {
self.keep_alive_interval = interval;
self
}
}
impl<S: ScalarValue, CtxT: Unpin + Send + 'static> Init<S, CtxT> for ConnectionConfig<CtxT> {
type Error = Infallible;
type Future = future::Ready<Result<Self, Self::Error>>;
fn init(self, _params: Variables<S>) -> Self::Future {
future::ready(Ok(self))
}
}
/// Init defines the requirements for types that can provide connection configurations when
/// ConnectionInit messages are received. Implementations are provided for `ConnectionConfig` and
/// closures that meet the requirements.
pub trait Init<S: ScalarValue, CtxT>: Unpin + 'static {
/// The error that is returned on failure. The formatted error will be used as the contents of
/// the "message" field sent back to the client.
type Error: Error;
/// The future configuration type.
type Future: Future<Output = Result<ConnectionConfig<CtxT>, Self::Error>> + Send + 'static;
/// Returns a future for the configuration to use.
fn init(self, params: Variables<S>) -> Self::Future;
}
impl<F, S, CtxT, Fut, E> Init<S, CtxT> for F
where
S: ScalarValue,
F: FnOnce(Variables<S>) -> Fut + Unpin + 'static,
Fut: Future<Output = Result<ConnectionConfig<CtxT>, E>> + Send + 'static,
E: Error,
{
type Error = E;
type Future = Fut;
fn init(self, params: Variables<S>) -> Fut {
self(params)
}
}
```
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#ffa"
android:padding="32dp"
android:text="This is Test1Fragment"/>
</FrameLayout>
```
|
```kotlin
package org.jetbrains.kotlinx.jupyter.exceptions
import org.jetbrains.kotlinx.jupyter.messaging.ExecutionCount
/**
* Class wrapping metadata for locating the source of the error in the user's notebook.
*/
class ErrorLocation(val jupyterRequestCount: Int, val lineNumber: Int)
/**
* Errors resulting from evaluating the user's REPL code.
*/
class ReplEvalRuntimeException(
fileExtension: String,
scriptFqnToJupyterExecutionCount: Map<String, ExecutionCount>,
message: String,
cause: Throwable? = null,
) : ReplException(message, cause) {
// List of cell error locations for each line in the stacktrace. I.e.
// each index matches the current index in `Exception.stacktrace`
// There is only an entry if we can locate the cell and line number
// the exception line is referring to, otherwise it is null.
val cellErrorLocations: List<ErrorLocation?> =
if (cause != null) {
// Possible patterns we need to look out for:
// - Top-level cell code: `at Line_4_jupyter.<init>(Line_4.jupyter.kts:7)`
// - Method in cell: `at Line_5_jupyter.methodName(Line_5.jupyter.kts:7)`
// - Class inside cell: `at Line_7_jupyter$ClassName.<init>(Line_7.jupyter.kts:12)`
// - Lambda defined in cell: `at Line_4_jupyter$callback$1.invoke(Line_4.jupyter.kts:2)`
val pattern = "(?<scriptFQN>Line_\\d+_jupyter).*\\(Line_\\d+.$fileExtension:(?<lineNumber>\\d+)\\)".toRegex()
cause.stackTrace.map { stackLine: StackTraceElement ->
val line = stackLine.toString()
pattern.find(line)?.let { match: MatchResult ->
val scriptFQName: String? = match.groups["scriptFQN"]?.value
val requestCount: Int? = scriptFqnToJupyterExecutionCount[scriptFQName]?.value
val lineNumber: Int? = match.groups["lineNumber"]?.value?.toInt()
if (requestCount != null && lineNumber != null) {
ErrorLocation(requestCount, lineNumber)
} else {
null
}
}
}
} else {
emptyList()
}
override fun render(): String {
return cause?.messageAndStackTrace() ?: messageAndStackTrace()
}
}
```
|
San Pedro Pirates Football Club is a Belizean football team that competes in the Premier League of Belize (PLB). The team is based in San Pedro Town and plays home matches at Ambergris Stadium.
The team joined the PLB for the 2017–18 season. They won their first PLB championship in the 2018–19 closing season, defeating the Belmopan Bandits, who were defending champions. Head coach Tony Maldonado was named the season's Best Manager.
Current squad
References
Football clubs in Belize
Association football clubs established in 2017
2017 establishments in Belize
|
Plectranthias altipinnatus is a species of fish in the family Serranidae occurring in the North West Pacific Ocean.
Size
This species reaches a length of .
References
altipinnatus
Taxa named by Masao Katayama
Taxa named by Hajime Masuda
Fish described in 1980
|
Sciotoville Community School is a charter school in Sciotoville (within the city limits of Portsmouth), Scioto County, Ohio, United States. Their mascot is the Tartans and their colors are blue and white/gray. In 2000, East High School was supposed to be closed by the City of Portsmouth, but with public effort, they were able to convert the high school to a community school.
Athletics
There are ten school districts and eleven high schools in Scioto County along with one parochial school as well several private and community schools. The school's athletic affiliation is with the Ohio High School Athletic Association (OHSAA) and the Southern Ohio Conference (SOC), which has seventeen member schools and is divided into two divisions (SOC I & SOC II) based on the schools' enrollment. The SOC includes teams from four different Ohio counties - Jackson County (Oak Hill High School), Lawrence County (Saint Joseph Central High School and Symmes Valley High School), Pike County (Waverly High School, Eastern High School, and Western High School), and Scioto County (Clay High School, Green High School, Glenwood High School, Sciotoville Community School, Valley High School, Northwest High School, Minford High School, Portsmouth West High School, Notre Dame High School, South Webster High School, and Wheelersburg High School).
For the first time in their 97-year history, East High School has its own football and tennis athletic facilities in 2007. The Portsmouth city council sold Allard Park, a former city-owned park where the Tartans have played their contests, to the Sciotoville Community School for $1. In the ceremony, Bill Shope, Sciotoville Community School's governing body president, gave Jim Kalb, Portsmouth's mayor, a 1921 silver dollar representing the date in which Sciotoville became a part of Portsmouth.
Ohio High School Athletic Association championships and appearances
Boys' Baseball - 1973 (East def. Adena Buckeye West 5–3)
See also
Ohio High School Athletic Conferences
References
External links
High schools in Scioto County, Ohio
Public high schools in Ohio
Public middle schools in Ohio
Charter schools in Ohio
Portsmouth, Ohio
|
Panaramitee Style, also known as track and circle or Classic Panaramitee, is a particular type of pecked engravings found in Australian rock art, created by Aboriginal peoples of the continent. The style, named after Panaramitee sheep station, located in the Flinders Ranges of South Australia, where they were first identified, depicts a variety of animal tracks, including those of macropods, birds and humans, as well as radiating designs, circles, spots, crescents and spirals.
Style identification and characteristics
The style of petroglyph in discussion was originally identified at a number of sites located on Panaramitee sheep station as seen in figure 2. The first person to publish about the petroglyphs was Herbert Basedow, having examined several sites from the Panaramitee region. In this publication he also made the first qualified claims for the Pleistocene antiquity of rock art outside of Europe.
In 1976 Lesley Maynard published a paper called An archaeological approach to the study of Australian rock art which divided Australian rock art into three main styles: Panaramitee; simple figurative; and complex figurative. These styles were then considered to be chronological, morphing into more advanced styles as time progressed eventually evolving into more sophisticated art. This point of view is no longer widely accepted by the archaeological community.
Panaramitee Style rock art is produced by pecking on rock surfaces through indirect percussion, typically with a pointed hammer stone. There are some instances, however where tracks, circular designs and cupules have been produced by using a large blunt hammer as seen at two sites located in the Middle Arm Peninsula, south-east of Darwin, Northern Territory (see figure 4). It has been estimated that 60% of the style consists of animal tracks, 20% of circles, 10% lines and the other 10% miscellaneous motifs such as the lizard in picture 1.
Meanings
Circles in Australian Aboriginal art are often interpreted as being representative of water sources, while radiating lines indicate the path of an ancestral being.
A common interpretation is that motifs such as Panaramitee ones provide shared knowledge to travellers moving through the landscape; plotting important routes to resources. Meanings may nonetheless change over time, with the potential of multiple meanings to different groups of people at different times.
Site locations
Apart from Panaramitee sheep station and Middle Arm, Panaramitee Style engravings have been found in several other locations across Australia.
Panaramitee engravings exist at Wild Dog Creek, within the Woomera weapons range in South Australia. Carved by Kokatha people long ago, the shapes include kangaroo footprints, human footprints, and representations of shelter, which impart much information about the area.
Not restricted to South Australia, these engravings have been found in central Australia, New South Wales, the Northern Territory (NT), Queensland and Western Australia. Figure 3 shows a map of Australia with black dots indicating recorded Panaramitee-style sites.
Among these sites include Puritjarra rock shelter, N'Dhala Gorge, Ewaninga and Ooraminna in central Australia (NT), Ingladdi (NT), Early Man cave in the Laura region of Queensland and possibly the Nappapethera Waterhole in the southwest of the state, , Sturt's Meadows in NSW and Scott River in WA.
There have been some claims for Panaramitee style being present in Tasmania (locations marked on figure 3) however there has been a great deal of speculation being dated to the last 2,000 years which is inconsistent with Tasmania being sundered from the mainland.
Dating and ongoing practice
The Panaramitee Style has been argued to be over 7,000 years old based on archaeological dating techniques, anthropological research, the recent occurrence of geographic barriers and animal tracks which possibly portray extinct megafauna. Rock art is notoriously difficult to accurately date with very few examples of stratigraphic association which are conclusively related to the artwork (Mulvaney and Kamminga 1999:367). However, it has been long assumed that the Panaramitee Style is very old based on Basedow's aforementioned early publication.
Basedow justified a Pleistocene age by using four main arguments:
Petroglyphs located at two sites are inaccessible because of vertical erosion
Detached painted rock on the valley floor, the other part of the design situated high on the rock face
Dark patina covering the petroglyphs
Speculated megafauna tracks, said to reflect extinct diprotodon prints
This was furthered by later claims from Norman Tindale, suggesting genyornis and procoptodon tracks near Yunta Springs, and reports from Charles P. Mountford that a saltwater crocodile was depicted at Panaramitee station. Since the extinction of most megafauna transpired at least 20,000 years ago and the extinction of saltwater crocodiles in this region millions of years ago, these speculations would suggest a very late antiquity.
Modern dating techniques have not supported these claims, with the general consensus being that the style emerged during the first half of the Holocene epoch. Environmental changes allowed for the expansion of populations from refugia into more arid, central regions, subsequently spreading technological and social features including art.
The oldest conclusive date for Panaramitee Style rock art belongs to Early Man cave with a minimum date range of 13,000 to 14,000 years before present. The art in the Laura region, although fitting within the Panaramitee Style, has been recognised as different to "Classic Panaramitee" styles, with differing proportions of motifs, perhaps originating in the Laura region but changing geographically.
It is known that the practice of Panaramitee Style rock art is still practised in modernity through a number of ethnographic examples. From at least 13,000 years ago Australian Aboriginal people were producing the Panaramitee Style petroglyphs, and have continued that tradition to this day.
References
Rock art in Australia
Australian Aboriginal art
|
```xml
<vector android:height="24dp" android:tint="@android:color/black"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="path_to_url">
<path android:fillColor="@android:color/black" android:pathData="M3,18h18v-2L3,16v2zM3,13h18v-2L3,11v2zM3,6v2h18L21,6L3,6z"/>
</vector>
```
|
is a "flatland-mountain"-style Japanese castle that was built in 1603 on Mount Katsuyama, in the city of Matsuyama in Ehime Prefecture, Japan. The castle is one of twelve Japanese castles to still have its original tenshu. The castle has been protected as a National Historic Site since 1952. It is also called Iyo-Matsuyama Castle to disambiguate it from Bitchū Matsuyama Castle in Okayama. Tsuyama Castle and Himeji Castle were also built in a similar style around the same time period.
History
During the Muromachi period, central Iyo Province was ruled by the Kōno clan from their stronghold at Yuzuki Castle. However, after the start of the Sengoku period, the Kōno clan was weakened by internal conflicts and became subordinated to strong neighboring warlords such as Mōri clan or Chōsokabe clan. After Toyotomi Hideyoshi conquered Shikoku, his general Katō Yoshiaki was rewarded for his services at the Battle of Shizugatake and In 1583 was appointed lord of Masaki with a kokudaka of 60,000 koku. After Hideyoshi's death, Katō joined with Tokugawa Ieyasu at the Battle of Sekigahara, and in reward, was confirmed as daimyō of Iyo-Matsuyama Domain under the Tokugawa shogunate with his kokudaka increased to 200,000 koku. In1602, he relocated his seat to Matsuyama Castle. The castle was not completed until 1627, and just before its completion, Katō Yoshiaki was transferred to Aizu Domain and replaced by Gamō Tadatomo. Under Gamō Tadatomo]] a large five-story tenshu was completed. Gamō Tadatomo died in Matsuyama in 1634 without heirs, shortly after completing the Ninomaru bailey. The shogunate then assigned Matsudaira Sadayuki from Kuwana Domain to govern the territory, which was reduced in size to 150,000 koku. His branch of the Matsudaira clan, the "Hisamatsu-Matsudaira" was a shinpan daimyō clan, considered to be closely related to the ruling Tokugawa clan, and would govern Matsuyama to the Meiji restoration. Under Matsudaira Sadayuki, the tenshu was rebuilt on a smaller scale in 1642, reducing the height from five stories to three stories.
Despite the domain's constant financial issues, the tenshu was rebuilt in 1854 by the 12th daimyō, Matsudaira Katsuyoshi, although it had been destroyed by lightning seventy years previously in 1784.
Following the Meiji restoration, most of the castle gates, yagura watchtowers, and other structures were demolished by the new Meiji government and the vacated third bailey became the site of the prefectural headquarters, and the inner bailey became a public park in 1874. From 1886, the second bailey and part of the third bailey became the garrison and headquartered for the Imperial Japanese Army 12th Infantry Regiment. This area would be under military control until 1945.,
Current status of the castle
The tenshu, six yagura watchtowers]and several gates remain from the original castle, and there are also several reconstructed buildings. In 1935, the tenshu and 34 other structures were designated Important Cultural Properties; however, 11 buildings (including the Tenjin yagura) were destroyed in the Matsuyama Air Raid in World War II. In 1949, the Tsutsu Gate and its east and west ‘'yagura were destroyed by arson. In 1989, Matsuyama Castle Park was selected as one of Japan’s “Top 100 Cherry Blossom Spots”.
Matsuyama Castle was listed as one of Japan's Top 100 Castles by the Japan Castle Foundation in 2006. in 2019, an additional nine structures received the designation of Registered Tangible Cultural Properties.
The castle is located a 20 minute walk from JR Shikoku Matsuyama Station.
Castle Architecture
Matsuyama Castle consists of a Honmaru (main enclosure), a Ninomaru (secondary enclosure), and a Sannomaru (tertiary enclosure), spread over a flat hilltop area of about 400 meter long and 100 meter wide. This area has three masugata-style gates at south, northwest and northeast. The Honmaru is an inner square central area with three corner yagura connected by barrack gates surrounding the tenshu. The south and west edge of central area is protected by curved stone walls built utilizing the cliff as part of its natural defenses. The Ninomaru contains the daimyō residence and garden, and has area of about 200 meter long square. Entry into this secondary area was protected by tall stone walls and water moats.The Sannomaru was 500 meter long square, with tall clay walls and a 50 meter wide water moat. It is now a large park.
Matsuyama castle has a Doorless Gate (Tonashimon), and people who pass through it face the heavily fortified Tsutsuimon with the roof of the Tonashimon. Beside the Tsutsuimon, there is a hidden gate (Kakuremon) that could be used for surprise attacks.
The northern corner tower (left side) and the southern corner tower (right side) are connected to each other by corridors. There is a south-corner-turret (Minami-sumi-yagura) and a north-corner-turret (Kita-sumi-yagura).
On the Taka-ishigaki stone walls overlooking the Tonashimon there is a Drum Tower (Taiko-yagura'') with stone-dropping windows. Taiko drums were set up to warn of enemies approaching the inner enclosure of the castle.
Cultural Properties
National Important Cultural Properties
, rebuilt in 1854, but in its original style with black-colored wooden walls. It has three floors and one basement, and its interior is quite simple compared with the towers built at earlier period. It was designated an Important Cultural Property (ICP) in 1935.
Registered Tangible Cultural Properties
Photo gallery
Literature
References
External links
Matsuyama Castle (Matsuyama City official site)
Matsuyama Castle (Official site)
Castles in Ehime Prefecture
Gamō clan
Hisamatsu-Matsudaira clan
Historic Sites of Japan
100 Fine Castles of Japan
Matsuyama, Ehime
Iyo Province
Important Cultural Properties of Japan
Registered Tangible Cultural Properties
|
```xml
<window xmlns="path_to_url">
<data>
<instance id="lineDc"
class="com.haulmont.cuba.web.testmodel.sales.OrderLine"
view="_local">
<loader/>
<collection id="paramsDc" property="params"/>
</instance>
</data>
<layout>
<form id="form" dataContainer="lineDc">
<column width="250px">
<textField id="qtyField" property="quantity"/>
</column>
</form>
<table id="paramsTable" dataContainer="paramsDc">
<columns>
<column id="name"/>
</columns>
</table>
</layout>
</window>
```
|
```smalltalk
/*
Myrtille: A native HTML4/5 Remote Desktop Protocol client.
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
using System.Collections;
namespace Myrtille.Web
{
public class RdpScanCode
{
public int Value { get; private set; }
public bool Extend { get; private set; }
/// <summary>
/// rdp scancode
/// </summary>
/// <remarks>
/// rdp scancodes are directly mapped to a physical keyboard layout
/// </remarks>
/// <param name="value">decimal value</param>
/// <param name="extend">non alphanumeric characters must be extended</param>
public RdpScanCode(int value, bool extend)
{
Value = value;
Extend = extend;
}
}
public static class JsKeyCodeToRdpScanCodeMapping
{
public static Hashtable MapTable { get; private set; }
static JsKeyCodeToRdpScanCodeMapping()
{
// this mapping is not complete (latin characters only); fill it as needed (below values are those for qwerty (US) and azerty (FR) layouts)
// keys (javascript keycodes) and values (rdp scancodes) are decimals (scancodes are often expressed in hexadecimal). scancode value 0 means there is no available translation (at least for now)
// see path_to_url or path_to_url for js keycodes
// see path_to_url or path_to_url for rdp scancodes
// see path_to_url for javascript keycodes and more, or path_to_url
// see path_to_url for international keyboard layouts
// the left and right location distinction for key modifiers is not currently done
// while this is fine for most applications, some of them may need this distinction
// also, some keys are a combination of key modifiers (i.e.: alt+gr = left ctrl + right alt)
// TODO: make that distinction, by passing the key location from javascript (in addition to the key code),
// then use the appropriate rdp scancodes (currently disabled below)
MapTable = new Hashtable();
MapTable.Add(8, new RdpScanCode(14, false)); // backspace
MapTable.Add(9, new RdpScanCode(15, false)); // tab
MapTable.Add(13, new RdpScanCode(28, false)); // enter
MapTable.Add(16, new RdpScanCode(42, false)); // shift (left)
//MapTable.Add(16, new RdpScanCode(54, false)); // shift (right)
MapTable.Add(17, new RdpScanCode(29, false)); // ctrl (left)
//MapTable.Add(17, new RdpScanCode(29, true)); // ctrl (right)
//MapTable.Add(18, new RdpScanCode(56, false)); // alt (left) * disabled to prevent interfering with the browser alt+key menu *
MapTable.Add(18, new RdpScanCode(56, true)); // alt (right)
MapTable.Add(19, new RdpScanCode(256, false)); // pause/break
MapTable.Add(20, new RdpScanCode(58, false)); // caps lock
MapTable.Add(27, new RdpScanCode(1, false)); // escape
MapTable.Add(32, new RdpScanCode(57, false)); // space
MapTable.Add(33, new RdpScanCode(73, true)); // page up
MapTable.Add(34, new RdpScanCode(81, true)); // page down
MapTable.Add(35, new RdpScanCode(79, true)); // end
MapTable.Add(36, new RdpScanCode(71, true)); // home
MapTable.Add(37, new RdpScanCode(75, true)); // left arrow
MapTable.Add(38, new RdpScanCode(72, true)); // up arrow
MapTable.Add(39, new RdpScanCode(77, true)); // right arrow
MapTable.Add(40, new RdpScanCode(80, true)); // down arrow
MapTable.Add(45, new RdpScanCode(82, true)); // insert
MapTable.Add(46, new RdpScanCode(83, true)); // delete
MapTable.Add(48, new RdpScanCode(11, false)); // 0
MapTable.Add(49, new RdpScanCode(2, false)); // 1
MapTable.Add(50, new RdpScanCode(3, false)); // 2
MapTable.Add(51, new RdpScanCode(4, false)); // 3
MapTable.Add(52, new RdpScanCode(5, false)); // 4
MapTable.Add(53, new RdpScanCode(6, false)); // 5
MapTable.Add(54, new RdpScanCode(7, false)); // 6
MapTable.Add(55, new RdpScanCode(8, false)); // 7
MapTable.Add(56, new RdpScanCode(9, false)); // 8
MapTable.Add(57, new RdpScanCode(10, false)); // 9
MapTable.Add(65, new RdpScanCode(30, false)); // a qwerty
//MapTable.Add(65, new RdpScanCode(16, false)); // a azerty
MapTable.Add(66, new RdpScanCode(48, false)); // b
MapTable.Add(67, new RdpScanCode(46, false)); // c
MapTable.Add(68, new RdpScanCode(32, false)); // d
MapTable.Add(69, new RdpScanCode(18, false)); // e
MapTable.Add(70, new RdpScanCode(33, false)); // f
MapTable.Add(71, new RdpScanCode(34, false)); // g
MapTable.Add(72, new RdpScanCode(35, false)); // h
MapTable.Add(73, new RdpScanCode(23, false)); // i
MapTable.Add(74, new RdpScanCode(36, false)); // j
MapTable.Add(75, new RdpScanCode(37, false)); // k
MapTable.Add(76, new RdpScanCode(38, false)); // l
MapTable.Add(77, new RdpScanCode(50, false)); // m qwerty
//MapTable.Add(77, new RdpScanCode(39, false)); // m azerty
MapTable.Add(78, new RdpScanCode(49, false)); // n
MapTable.Add(79, new RdpScanCode(24, false)); // o
MapTable.Add(80, new RdpScanCode(25, false)); // p
MapTable.Add(81, new RdpScanCode(16, false)); // q qwerty
//MapTable.Add(81, new RdpScanCode(30, false)); // q azerty
MapTable.Add(82, new RdpScanCode(19, false)); // r
MapTable.Add(83, new RdpScanCode(31, false)); // s
MapTable.Add(84, new RdpScanCode(20, false)); // t
MapTable.Add(85, new RdpScanCode(22, false)); // u
MapTable.Add(86, new RdpScanCode(47, false)); // v
MapTable.Add(87, new RdpScanCode(17, false)); // w qwerty
//MapTable.Add(87, new RdpScanCode(44, false)); // w azerty
MapTable.Add(88, new RdpScanCode(45, false)); // x
MapTable.Add(89, new RdpScanCode(21, false)); // y
MapTable.Add(90, new RdpScanCode(44, false)); // z qwerty
//MapTable.Add(90, new RdpScanCode(17, false)); // z azerty
MapTable.Add(91, new RdpScanCode(347, true)); // left window key
MapTable.Add(92, new RdpScanCode(348, true)); // right window key
MapTable.Add(93, new RdpScanCode(0, true)); // select key
MapTable.Add(96, new RdpScanCode(82, false)); // numpad 0
MapTable.Add(97, new RdpScanCode(79, false)); // numpad 1
MapTable.Add(98, new RdpScanCode(80, false)); // numpad 2
MapTable.Add(99, new RdpScanCode(81, false)); // numpad 3
MapTable.Add(100, new RdpScanCode(75, false)); // numpad 4
MapTable.Add(101, new RdpScanCode(76, false)); // numpad 5
MapTable.Add(102, new RdpScanCode(77, false)); // numpad 6
MapTable.Add(103, new RdpScanCode(71, false)); // numpad 7
MapTable.Add(104, new RdpScanCode(72, false)); // numpad 8
MapTable.Add(105, new RdpScanCode(73, false)); // numpad 9
MapTable.Add(106, new RdpScanCode(55, false)); // multiply
MapTable.Add(107, new RdpScanCode(78, false)); // add
MapTable.Add(109, new RdpScanCode(74, false)); // subtract
MapTable.Add(110, new RdpScanCode(52, false)); // decimal point
MapTable.Add(111, new RdpScanCode(53, true)); // divide
MapTable.Add(112, new RdpScanCode(59, false)); // f1
MapTable.Add(113, new RdpScanCode(60, false)); // f2
MapTable.Add(114, new RdpScanCode(61, false)); // f3
MapTable.Add(115, new RdpScanCode(62, false)); // f4
MapTable.Add(116, new RdpScanCode(63, false)); // f5
MapTable.Add(117, new RdpScanCode(64, false)); // f6
MapTable.Add(118, new RdpScanCode(65, false)); // f7
MapTable.Add(119, new RdpScanCode(66, false)); // f8
MapTable.Add(120, new RdpScanCode(67, false)); // f9
MapTable.Add(121, new RdpScanCode(68, false)); // f10
MapTable.Add(122, new RdpScanCode(87, false)); // f11
MapTable.Add(123, new RdpScanCode(88, false)); // f12
MapTable.Add(144, new RdpScanCode(69, false)); // num lock
MapTable.Add(145, new RdpScanCode(70, false)); // scroll lock
MapTable.Add(186, new RdpScanCode(39, false)); // semi-colon qwerty
//MapTable.Add(186, new RdpScanCode(50, false)); // semi-colon azerty
MapTable.Add(187, new RdpScanCode(13, false)); // equal sign
MapTable.Add(188, new RdpScanCode(51, false)); // comma
MapTable.Add(189, new RdpScanCode(12, false)); // dash
MapTable.Add(190, new RdpScanCode(52, false)); // period
MapTable.Add(191, new RdpScanCode(53, false)); // forward slash
MapTable.Add(192, new RdpScanCode(41, false)); // grave accent qwerty
//MapTable.Add(192, new RdpScanCode(40, false)); // grave accent azerty
MapTable.Add(219, new RdpScanCode(26, false)); // open bracket
MapTable.Add(220, new RdpScanCode(43, false)); // back slash
MapTable.Add(221, new RdpScanCode(27, false)); // close bracket
MapTable.Add(222, new RdpScanCode(40, false)); // single quote qwerty
//MapTable.Add(222, new RdpScanCode(41, false)); // single quote azerty
MapTable.Add(223, new RdpScanCode(0, false)); // ?
MapTable.Add(226, new RdpScanCode(86, false)); // lesser than
}
}
}
```
|
Rhododendron gracilentum is a distinctive small, evergreen rhododendron species native to Papua New Guinea. It grows to a height of , with red flowers.
As it does not tolerate freezing temperatures, in temperate zones it must be grown with the protection of glass.
References
Trans. Roy. Soc. Victoria n.s., 1(2): 22 1889.
The Plant List
Encyclopedia of Life
Hirsutum.com
National Center for Biotechnology Information, U.S. National Library of Medicine
gracilentum
|
The Culturally Authentic Pictorial Lexicon is a dictionary database of images of various objects in a culturally authentic setting for language learning. All images are presented with a Creative Commons Attribution-NonCommercial-ShareAlike license, allowing for broad academic use by language teachers. The database is also useful for researchers in the field of applied linguistics, visual cognition, and automated image recognition. The database averages 30,000 hits per month and has been incorporated into the curricula of many college and high-school level German teachers.
The idea for the lexicon is partially based on Shaughnessy's experience with teaching materials that used American-based images and clip art to demonstrate German words and concepts. By presenting objects in their culturally authentic context, the CAPL is designed to prepare students to live in the environment where the language is spoken. The photographic entries are real photographs, not clip art, to force teachers to "teach terms for things that actually occur in everyday German life – instead of American concepts that have no direct European equivalent."
The project was founded in 2003 as a pilot project with over 1,000 unique entries for the German language. The first images were collected by Shaughnessy in Germany and Austria through a grant from W&J College. In 2006, it received a $200,000 appropriation from the U.S. federal government. In 2008, the project was expanded to include more languages thanks to an $85,480 grant from the U.S. Department of Education.
The CAPL was featured in an article in The Chronicle of Higher Education and has been recommended for use by the Goethe Institute, German Academic Exchange Office and the National Capital Language Resource Center. The book The Bilingual Mental Lexicon noted the Culturally Authentic Pictorial Lexicon's value in German language instruction for "naming and sorting activities, and in awareness-raising discussions."
References
External links
CAPL home page
Washington & Jefferson College
Creative Commons-licensed websites
Language education materials
Internet properties established in 2003
Online dictionaries
|
"The Scouring of the Shire" is the penultimate chapter of J. R. R. Tolkien's fantasy The Lord of the Rings. The Fellowship hobbits, Frodo, Sam, Merry, and Pippin, return home to the Shire to find that it is under the brutal control of ruffians and their leader "Sharkey", revealed to be the Wizard Saruman. The ruffians have despoiled the Shire, cutting down trees and destroying old houses, as well as replacing the old mill with a larger one full of machinery which pollutes the air and the water. The hobbits rouse the Shire to rebellion, lead their fellow hobbits to victory in the Battle of Bywater, and end Saruman's rule.
Critics have considered "The Scouring of the Shire" the most important chapter in The Lord of the Rings. Although Tolkien denied that the chapter was an allegory for Britain in the aftermath of World War II, commentators have argued that it can be applied to that period, with clear contemporary political references that include a satire of socialism, echoes of Nazism, allusions to the shortages in postwar Britain, and a strand of environmentalism.
According to Tolkien, the idea of such a chapter was planned from the outset as part of the overall formal structure of The Lord of the Rings, though its details were not worked out until much later. The chapter was intended to counterbalance the larger plot, concerning the physical journey to destroy the One Ring, with a moral quest upon the return home, to purify the Shire and to take personal responsibility. Tolkien considered other identities for the wicked Sharkey before settling on Saruman late in his composition process.
The chapter, which has been called one of the most famous anticlimaxes in literature, has been generally excluded from film adaptations of The Lord of the Rings. Peter Jackson's film trilogy maintains two key elements: a burning Shire, glimpsed by Frodo in the crystal ball-like Mirror of Galadriel; and the means of Saruman's death, transposed to Isengard.
Fictional history
Context
The chapter follows all the main action of The Lord of the Rings. The story tells how the One Ring, a ring of power made by the Dark Lord Sauron, lost for many centuries, has reappeared and is in the hands of a hobbit, Frodo Baggins, in the England-like Shire. If Sauron finds the Ring, he will use it to take over the whole of Middle-earth. A Wizard, Gandalf, tells Frodo the history of the ring and persuades him to leave the Shire to destroy the Ring. He is joined by three other hobbits, his friends Sam, Merry, and Pippin. They are pursued by Sauron's Black Riders, but escape to a stronghold of the Elves, Rivendell. There, they learn that it can only be destroyed in the volcano, Mount Doom, where Sauron forged the Ring, in the evil land of Mordor. They are joined by others opposed to Sauron, forming a Fellowship of the Ring, led by Gandalf. They face many perils on the journey, and the Fellowship is split up. Merry and Pippin become involved in wars against the evil Wizard Saruman and then against Sauron: Merry becomes a knight of Rohan, while Pippin becomes a guard of Gondor. With Sauron distracted, Frodo and Sam manage to travel to Mount Doom. The Ring is destroyed in the Cracks of Doom, and Sauron is overthrown. The hobbits, much changed by their experiences, ride home to the Shire, hoping to return to a peaceful rural life.
The scouring
The hobbits of the Fellowship – Frodo, Sam, Merry, and Pippin – returning home to the Shire, come to its border, the Brandywine Bridge, late at night. They are surprised to find it barred, but are taken in, after some convincing, by the Shiriffs, a kind of hobbit police, who are guarding the bridge. They are shocked at the state of the Shire, with endless rules, ugly new buildings, and wanton destruction of trees and old buildings. Sam recognises one of the Shiriffs and tells him he should be ashamed of himself for joining in with "such nonsense". All the cheerful inns are closed, so the Fellowship hobbits stay in the depressing, badly-built new Shiriff-house.
Setting off on ponies for Hobbiton at the centre of the Shire the next morning, the four hobbits are met by Shiriffs at the village of Frogmorton who attempt to arrest them for breaking several rules the night before. Unable to keep up with the ponies, the Shiriffs let the hobbits pass.
Reaching the village of Bywater, the four hobbits discover that Sandyman's mill has been replaced by a big, noisy one full of machinery that fouls the water and pollutes the air; Ted Sandyman is the only hobbit who likes it, and he works for the Men who built it, where his father was his own boss. Merry, Pippin and Sam use their swords and their height to scare away a group of ruffians. The hobbits decide to 'raise the Shire'; Merry blows the magic horn given to him by Éowyn of Rohan, while Sam recruits his neighbour Tom Cotton and his sons, who rouse the village. Cotton tells them that wagonloads of goods, including tobacco, have been sent "away", causing shortages; they were paid for with unexplained funds by Lotho Sackville-Baggins, known as the "Chief" or the "Boss", who moved into Frodo's home, Bag End, when Frodo left on the quest to destroy the Ring. Pippin rides to his home village, Tuckborough, to rally his kin, the large Took clan. A gang of twenty ruffians from Hobbiton try to take farmer Cotton prisoner; the leader of the gang is killed with arrows, and the other ruffians quickly surrender.
The next morning the hobbits at Bywater learn that Pippin's father, Thain Paladin II, has raised Tookland and is pursuing ruffians who have fled south; that Pippin will return with all the hobbits his father could spare; and that a much larger group of ruffians is heading towards them. Pippin returns with one hundred members of his family, before the ruffians arrive. Merry and Pippin lead the hobbits to victory in the brief Battle of Bywater. They ambush the ruffians by blocking a high-hedged lane with wagons in front of them and then behind them; most of the ruffians are killed. Frodo does not take part in the fighting.
The hobbits go to Hobbiton to visit Lotho. The whole area has been despoiled, and Bag End is apparently empty and unused. There they meet "Sharkey", alias the Wizard Saruman; he is accompanied by his servant Wormtongue. He has lost his Wizard's power, except for his deceptive voice; he tells them he has deliberately harmed their home in revenge. Frodo tells him to leave the Shire; Saruman in reply tries to stab Frodo, but the knife snaps on Frodo's hidden coat of chain-mail. Frodo asks the other hobbits not to kill Saruman and offers Wormtongue the opportunity to stay. Saruman reveals that Wormtongue killed Lotho, provoking Wormtongue to cut Saruman's throat. Wormtongue is shot dead by hobbit archers. A column of mist arises from Saruman's corpse and is blown away in the wind.
Aftermath
After the scouring, "the clearing up certainly needed a lot of work, but it took less time than Sam had feared". The cleanup is described in the first pages of the final chapter, "The Grey Havens"; the new buildings put up during Sharkey's rule are torn down and their materials reused "to repair many an old [hobbit] hole". Sam goes around the Shire planting saplings to replace lost trees, giving each one a grain of the dust from Galadriel's garden; the single nut he plants in the Party Field. The work is successful: "spring surpassed his wildest hopes", and "altogether 1420 in the Shire was a marvellous year". A mallorn sapling like those of Lothlórien replaces the Party Tree, many children are born with "a rich golden hair", and young hobbits "very nearly bathed in strawberries and cream".
Concept and creation
Formal structure
Tolkien scholars and critics have noted that the chapter implies some kind of formal structure for the whole work. The critic Bernhard Hirsch writes that "The Scouring of the Shire" has "provoked considerable critical debate", unlike the rest of the "homeward journey" in Book 6. Hirsch accepts Tolkien's statement in the foreword to the Fellowship of the Ring that the formal structure of The Lord of the Rings, namely a journey outward for the quest and a journey home, meant that the chapter, along with the other two chapters of the return journey, was "foreseen from the outset". Another critic, Nicholas Birns, notes approvingly David Waito's argument that the chapter is as important morally as the Fellowship's main quest to destroy the One Ring, "but applies [the morals] to daily life". The Tolkien scholar Paul Kocher writes that Frodo, having thrown aside his weapons and armour on Mount Doom, chooses to fight "only on the moral plane" in the Shire.
Birns goes further, arguing that the chapter has an important formal role in the overall composition of The Lord of the Rings, as Tolkien had stated. In Birns's view, the chapter's main surprise is the appearance of Saruman, and it was indeed, Birns writes, his presence that made it necessary to scour the Shire. Evidence that Tolkien had planned something of the sort is found, Birns notes, in Frodo's vision of the future of the Shire in peril when he looks in the Mirror of Galadriel in Lothlorien in The Fellowship of the Ring.
Origins
Scholars have identified several possible origins and antecedents for the chapter, and these have been added to by Christopher Tolkien's exploration of the literary history of his father's work on it over the years. Birns writes that the "Scouring" has an ancient pedigree, echoing Homer's Odyssey when after long years away Odysseus returns to his home island of Ithaca to scour it of Penelope's worthless suitors. Robert Plank echoes the comparison with the Odyssey, adding that Tolkien could have chosen as a pattern any number of other returning heroes. This theme, of a last obstacle to the heroic homecoming, was paradoxically both long-planned (certainly back to the time of writing of the Lothlorien chapter) and, in the person of Saruman-as-Sharkey, "a very late entry". David Greenman both likens the hobbits' scouring of the Shire to Odysseus's return, and contrasts it to Tuor's Aeneas-like escape from a wrecked kingdom as told in The Fall of Gondolin.
In Sauron Defeated, earlier drafts of the chapter show that Tolkien had considered giving Frodo a far more energetic part in confronting Sharkey and the ruffians. These throw light on Tolkien's choice of who Sharkey actually was, whether the "boss" hobbit Lotho Sackville-Baggins, a human leader of the gang of ruffians, or Saruman. Tolkien had thus hesitated over how to implement the "Scouring", only arriving at Saruman after trying other options. Birns argues that the effect is to bring the "consequentiality of abroad" (including Isengard, where Saruman was strong) back to the "parochialism of home", not only scouring the Shire but also strengthening it, with Merry and Pippin as "world citizens".
In his "Foreword to the Second Edition", Tolkien denies that the chapter is an allegory or relates to events in or after the Second World War:
The Tolkien critic Tom Shippey writes that the Shire is certainly where Middle-earth comes nearest to the 20th century, and that the people who had commented that the "Scouring of the Shire" was about Tolkien's contemporary England were not wholly wrong. Shippey suggests however that rather than seeing the chapter as an allegory of postwar England, it could be taken as an account of "a society suffering not only from political misrule, but from a strange and generalized crisis of confidence." Shippey draws a parallel with a contemporary work, George Orwell's 1938 novel Coming Up for Air, where England is subjected to a "similar diagnosis" of leaderless inertia.
Critics including Plank have noted that Tolkien denied that the "Scouring of the Shire" reflected England in the late 1940s, claiming instead that the chapter echoed his youthful experience of seeing his home at Sarehole, then in rural Warwickshire, being taken over by the growing city of Birmingham in the early 1900s. Tolkien related the chapter to his childhood experiences at the end of the 19th century:
Instead of a strict allegory with exact correspondences between the elements of the chapter and 20th century events and personages, Plank suggested that the chapter was "a realistic parable of reality". Birns and others note, too, that there is an echo in the chapter of the soldiers, including Tolkien, returning home from the trenches of the First World War, and meeting an unfair lack of appreciation of their contribution, as when Sam's father, Gaffer Gamgee, is more concerned with the damage to his potatoes than any "trapessing in foreign parts".
Significance
Satire on mid-20th century politics
Various commentators have noted that the chapter has political overtones. The critic Jerome Donnelly suggests that the chapter is a satire, of a more serious kind than the knockabout "comedy of manners" at the start of The Hobbit. Plank calls it a caricature of fascism. Donnelly agrees with Tolkien that the "Scouring" is not an allegory, but proposes that Saruman's "Ruffians" echo the tyrannical behaviour of the Nazis, as do "the use of collaborators, threats, torture and killing of dissenters, and internment".
Jay Richards and Jonathan Witt write that "conservatives and progressives alike" had seen the chapter as a "pointed critique of modern socialism", citing the scholar of politics Hal Colebatch's comment that the rule- and redistribution-heavy Saruman regime "owed much to the drabness, bleakness and bureaucratic regulation of postwar Britain under the Attlee Labour Government". They note similarly Plank's identification of "parallels" between the Shire under Saruman and both the German Nazi Party under Hitler and Italian Fascism under Mussolini. Plank discusses, for example, why the hobbits did not resist fascism, giving as reasons cowardice, lack of solidarity, and what he finds "the most interesting and the most melancholy": the shirriff-hobbit's statement "I am sorry, Mr. Merry, but we have orders." Plank comments that this recalls statements from the Nuremberg trials. He further compares Saruman with Mussolini, noting that they both came to "a miserable end". Richards and Witt concede that the chapter has wider themes, including the ugliness of Saruman's "vengeful heart", the nastiness of (sub)urban development, the hobbits' love-inspired defence of their homeland, and the need not to just obey orders, but state that Tolkien's letters demonstrate his dislike of socialism, and that in the chapter Tolkien deftly satirizes "socialism's pose of moral superiority".
Shippey comments that whatever Tolkien's protestations, readers back in the 1950s would have noticed some features of the Shire during the "Scouring" that "seem[ed] slightly out of place", such as the fact that wagonloads of "pipeweed" (tobacco) are being taken away, seemingly at the wizard Saruman's orders, with no visible in-universe explanation. What, Shippey asks, was Saruman doing with so much tobacco: a wizard was hardly going to be trading it for profit, nor "issuing" it to his orcs in Isengard. Instead, Shippey suggests, it echoes Britain's shortages just after the Second World War, routinely explained at that time with "the words 'gone for export'". Kocher adds that the devastation and people's responses in the Shire after the War would have been only too familiar to people in the 20th century.
Not all critics have seen the chapter as political; the medievalist Jane Chance notes the "domestic image" of the "Scouring" in the chapter's title, suggesting in her view a "rejuvenation" of the Shire. She describes the chapter's social cleansing of the Shire in similar terms, writing of washing and purifying it of "the reptilian monsters" Sharkey and Wormtongue.
A "novelistic" chapter
Tolkien critics have noted that the chapter has a distinctive novel-like quality. Birns echoes Plank's comment that the chapter is "fundamentally different from the rest of the book", and states that it is "the most novelistic episode in Tolkien's massive tale." He cites Janet Brennan Croft's description of it as "that deceptively anti-climactic but all-important chapter". Birns argues that it meets three aspects of Ian Watt's definition of the kind of novel read by the middle class, dominant among the reading public: firstly, it shows multiple social classes interacting; secondly, it is in a domestic context, the homely Shire; thirdly, it favours the point of view of the "emerging and aspiring middle classes". Birns concludes that "'The Scouring of the Shire' is where Tolkien's dark romance bends the most towards the realistic novel of domestic reintegration and redemption." Plank writes that the distinctive feature of the "Scouring" is that unlike in the rest of the book, there are no miracles and the laws of nature work with "full and undisputed force". Saruman, Plank notes, was once able to work magic, but in the chapter he works as a politician, without sorcery: the chapter is "realistic", not fantasy, except for the moment of Saruman's death.
Michael Treschow and Mark Duckworth, writing in Mythlore, note that the return to the Shire emphasises the protagonists' growth in character, so that they can deal with life's challenges for themselves. Just as at the end of The Hobbit Gandalf tells Bilbo that he is "not the hobbit that you were", having learnt from his adventures, so in The Lord of the Rings Gandalf tells Frodo and the other hobbits that he will not be coming to the Shire with them since "you will need no help. You are grown up now. Grown indeed very high; among the great you are, and I have no longer any fear at all for any of you."
Wish-fulfilment
Another element in the chapter is the appearance of Tolkien's own feelings about England. Shippey writes that there is a "streak of 'wish-fulfilment'" in the account, and that Tolkien would have liked "to hear the horns of Rohan blow, and watch the Black Breath of inertia dissolve" from England. More specifically, Shippey applies this idea to "The Scouring of the Shire", noting that Merry returns from Rohan with a horn, brought by Eorl the Young, founder of Rohan, from the dragon-hoard of Scatha the Worm from the North. The horn, he explains, is "a magic one, though only modestly so": blowing it brings joy to his friends in arms, fear to his enemies, and in the chapter, it awakens the "revolution against sloth and shabbiness and Saruman-Sharkey" and quickly gets the Shire purified. Shippey suggests that Tolkien wished to do the same, and notes that with his novels he at least succeeded in bringing joy.
Tolkien wrote in a letter that "the man-made ... is ultimately daunting and insupportable", and that "If a Ragnarök would burn all the slums and gas-works, and shabby garages, and long arc-lit suburbs, it [could] for me burn all the works of art – and I'd go back to trees." Caitlin Vaughn Carlos writes that Sam Gamgee's exclamation "This is worse than Mordor! ... It comes home to you, they say; because it is home, and you remember it before it was ruined" encapsulates the impulse to nostalgia, since Sam is longing for the remembered home, not the one which now exists.
Environmentalism
Critics since the 1970s have observed one more theme in the chapter: environmentalism. One of the first to note that "Tolkien was [an] ecologist" was Paul H. Kocher. Birns calls it "as much conservationist as it is traditionalist", writing that it presents a strong pro-environmentalist argument in addition to its other themes. Plank describes the chapter's emphasis on the "deterioration of the environment" "quite unusual for its time", with the returning hobbits finding needless destruction of the old and beautiful, and its replacement by the new and ugly; pollution of air and water; neglect; "and above all, trees wantonly destroyed". Matthew Dickerson and Jonathan Evans look at the chapter from the point of view of rousing people to environmental action in their "own backyard".
Other opinions
Brian Attebery, introducing Birns's article in Journal of the Fantastic in the Arts, notes that Birns calls The Scouring of the Shire "one of the most famous anticlimaxes in literature", and that conventional wisdom is to stop at once when the action has completed. Attebery begs to differ, saying that he likes anticlimaxes, as when Jane Austen's heroes and heroines work everything out in detail once they have at last reached agreement. In his view, the novel "would be much the less" without the chapter.
Tolkien critics John D. Rateliff and Jared Lobdell have compared the sudden shrivelling of Saruman's flesh from his skull at the moment of his death with the instantaneous aging of the protagonist Ayesha in Rider Haggard's 1887 novel She, when she bathes in the fire of immortality. Tolkien acknowledged Haggard as a major influence, especially She.
In an interview in 2015, the novelist and screenwriter George R. R. Martin called this section of the Lord of the Rings story brilliant, and said it was the tone he would be aiming for at the end of Game of Thrones.
Jonathon D. Langford, writing in Mythlore, describes the scouring as the hobbits' coming of age, the culmination of their individual quests. He states that Merry and Pippin have clearly matured on their journey, while Frodo and Sam see the success of their quest reassessed by hobbit society. He notes that a heroic quest as described by Joseph Campbell ends with the hero's return from the enchanted lands to the ordinary world, renewing his community, as the hobbits' return does.
Adaptations
The 1981 BBC The Lord of the Rings radio play covers "The Scouring of the Shire", including the original showdown and ending in which Saruman dies by Wormtongue's knife and Wormtongue is killed by arrows in the Shire.
The events of "The Scouring of the Shire" are retold in the Finnish miniseries Hobitit.
The chapter has been left out of the Lord of the Rings film trilogy, except as a brief flash-forward when Frodo looks into the crystal ball-like Mirror of Galadriel in Peter Jackson's 2001 The Fellowship of the Ring. In the extended edition of The Return of the King, Wormtongue kills Saruman (stabbing him in the back, not slitting his throat) and is in turn killed by an arrow as in the chapter; however, this takes place at Isengard instead of the Shire and it is Legolas who shoots Wormtongue. Peter Jackson called the chapter anticlimactic, and decided in 1998 not to include it in the film trilogy. He decided to merge Saruman's and Wormtongue's death scene with "The Voice of Saruman" chapter from The Two Towers, but did not wish to go back to Isengard after the Battle of Helm's Deep. Jackson explained that in post-production of The Return of the King, the scene felt like a seven-minute wrap up of The Two Towers, gave the film an unsteady beginning, and made the film too long, so it ended up in the extended DVD.
Alan Lee, in the last of his series of 50 illustrations of The Lord of the Rings, depicted the four hobbits of the Fellowship returning on horseback along a hedged lane, with the stumps of recently cut trees and felled trunks in the foreground, and a tall chimney making a plume of dark smoke in the background. The painting was reviewed for Mythlore by Glen GoodKnight, who wrote that it was "anti-clima[c]tic, containing no joy, and denying us even the hint of the bitter-sweet resolution of the story".
Notes
References
Primary
Secondary
Sources
Further reading
Scouring of the Shire
Shire (Middle-earth)
The Lord of the Rings
|
This the list of voivodes of Kiev. A Kiev voivode () was the major administrative position in Kiev Voivodship, in the Grand Duchy of Lithuania from 1471 until 1569 and in of the Crown of the Kingdom of Poland from 1569 until 1793.
In the 15–16th centuries, all of the voivodes were of Lithuanian or Ruthenian origin, such as Holszański and Radziwiłł. Later belonged to Eastern Orthodox families of Ostrogski and Zaslawski and for short period Movilești (Lozynski). From the beginning of the 17th century, the voivodes of Polish origin, along with Ruthenian, were chosen for the office, particularly Potocki.
Grand Duchy of Lithuania (1471–1569)
Martynas Goštautas (Marcin Gasztołd) (1471–1475)
Ivan Chodkiewicz (Jonas Ivanas Chodkevičius) (1480–1484)
Jerzy Pac (Jurgis Pacas) (1486–1492)
Dymitr Putiatycz (Dmytro Putyatych) (1492–1505)
Jerzy Montowtowicz (Jurgis Montovtt) (1505–1508)
Jan Gliński (Jonas Glinskis, Ivan Hlynsky) (1508)
Jerzy Holszański (Jurgis Alšėniškis, Yuriy Olshansky) (1508–1511)
Jerzy Radziwiłł (Jurgis Radvila) (1511–1514)
Andrzej Niemirowicz (Andriy Nemyrych) (1514–1541)
Jan Holszański (Ivan Olshansky) (1542–1544)
Fryderyk Proński (Semen Hlebovych Pronsky, Frederikas Prunskis) (1545–1555)
Hrehory Chodkiewicz (Grigorijus Chodkevičius) (1555–1559)
Konstanty Wasyl Ostrogski (Kostiantyn Vasyl Ostrozky) (1559–1569)
Crown of the Kingdom of Poland (1569–1793)
Konstanty Wasyl Ostrogski (1559–1608)
Stanisław Żółkiewski (1608–1618)
Tomasz Zamoyski (1619–1628)
Aleksander Zasławski (1629)
Stefan Chmielecki (1629–1630)
Janusz Tyszkiewicz (1630–1649)
Adam Kisiel (1650–1653)
since 1654 in Zhytomyr
Stanisław Rewera Potocki (1655–1658)
Jan Zamoyski (1658–1659)
Jan Wyhowski (1659–1664)
Stefan Czarniecki (1664–1665)
Michał Stanisławski (1665–1668)
Andrzej Potocki (1668–1681)
Feliks Kazimierz Potocki (1682)
Stefan Niemirycz (1682–1684)
Marcin Kątski (1684–1702)
Józef Potocki (1702–1744)
Stanisław Potocki (1744–1756)
Franciszek Salezy Potocki (1756–1772)
Stanisław Lubomirski (1772–1785)
Józef Gabriel Stempkowski (1785–1791)
Antoni Protazy Potocki (1791–1793)
Muscovy
Boyar Feodor Kurakin (1653), siege voivode
Vasiliy Buturlin (1654), envoy to the Pereyaslav Council
Andrei Buturlin (1656–1658)
Boyar Vasiliy Sheremetev (1658–1660)
Prince Yury Baryatinsky (1658–1663), comrade to Vasiliy Sheremetev (1658–1660) and Grigoriy Kurakin (1662–1663)
Ivan Chaadayev (1658–1661, 1663–1665)
Ivan Rzhevskiy (1661), siege voivode
Prince Nikita Lvov (1665–1666)
Vasiliy Sheremetev (1665–1669)
Peotr Sheremetev Senior (1665–1669)
Prince Grigoriy Kozlovskiy (1669–1673), first voivode
Prince Yuriy Trubetskoy (1673–1679)
Prince Daniil Veliko-Gagin (1672–1674)
Prince Aleksei Golitsyn (1675–1676)
Prince Ivan Troyekurov (1678–1680), first voivode
Daniil Baryatinsky (1678–1682), second voivode
Ivan Khitrovo Senior (1679–1681)
Yeremei Pashkov (1680–1683), third voivode
Leontiy Neplyuyev (1681)
Peotr Prozorovskiy Junior (1682–1683), first voivode
Boyar Feodor Sheremetev (1684–????), first voivode
Boyar Feodor Saltykov
Ivan Buturlin (1688–1689)
Prince Mikhail Romodanovskiy (1689–1692)
Prince Luka Dolgorukov (1691–1693)
Prince Peotr Khovanskiy Senior (1693–1696)
Lists of office-holders in Poland
History of Kyiv
Lists of office-holders in Lithuania
Lists of office-holders in Ukraine
|
```go
// Unless explicitly stated otherwise all files in this repository are licensed
// This product includes software developed at Datadog (path_to_url
//go:build linux_bpf
package dns
import (
"math"
manager "github.com/DataDog/ebpf-manager"
"golang.org/x/sys/unix"
ddebpf "github.com/DataDog/datadog-agent/pkg/ebpf"
"github.com/DataDog/datadog-agent/pkg/ebpf/bytecode"
"github.com/DataDog/datadog-agent/pkg/network/config"
netebpf "github.com/DataDog/datadog-agent/pkg/network/ebpf"
"github.com/DataDog/datadog-agent/pkg/network/ebpf/probes"
)
const probeUID = "dns"
type ebpfProgram struct {
*manager.Manager
cfg *config.Config
bytecode bytecode.AssetReader
}
func newEBPFProgram(c *config.Config) (*ebpfProgram, error) {
bc, err := netebpf.ReadDNSModule(c.BPFDir, c.BPFDebug)
if err != nil {
return nil, err
}
mgr := &manager.Manager{
Probes: []*manager.Probe{
{
ProbeIdentificationPair: manager.ProbeIdentificationPair{
EBPFFuncName: probes.SocketDNSFilter,
UID: probeUID,
},
},
},
}
return &ebpfProgram{
Manager: mgr,
bytecode: bc,
cfg: c,
}, nil
}
func (e *ebpfProgram) Init() error {
defer e.bytecode.Close()
var constantEditors []manager.ConstantEditor
if e.cfg.CollectDNSStats {
constantEditors = append(constantEditors, manager.ConstantEditor{
Name: "dns_stats_enabled",
Value: uint64(1),
})
}
kprobeAttachMethod := manager.AttachKprobeWithPerfEventOpen
if e.cfg.AttachKprobesWithKprobeEventsABI {
kprobeAttachMethod = manager.AttachKprobeWithKprobeEvents
}
err := e.InitWithOptions(e.bytecode, manager.Options{
RLimit: &unix.Rlimit{
Cur: math.MaxUint64,
Max: math.MaxUint64,
},
ActivatedProbes: []manager.ProbesSelector{
&manager.ProbeSelector{
ProbeIdentificationPair: manager.ProbeIdentificationPair{
EBPFFuncName: probes.SocketDNSFilter,
UID: probeUID,
},
},
},
ConstantEditors: constantEditors,
DefaultKprobeAttachMethod: kprobeAttachMethod,
BypassEnabled: e.cfg.BypassEnabled,
})
if err == nil {
ddebpf.AddNameMappings(e.Manager, "npm_dns")
}
return err
}
```
|
In Command (foaled 28 February 1994) is an Irish-bred, British-trained Thoroughbred racehorse and sire. Bred and owned by Maktoum Al Maktoum he was trained in England by Barry Hills. He showed his best form as a two-year-old in 1996 when he was placed in the Acomb Stakes, Champagne Stakes and Middle Park Stakes before recording his biggest success in the Dewhurst Stakes. He failed to win in four subsequent races and was retired from racing in 1998. He had no success as a breeding stallion.
Background
In Command was a bay horse bred in Ireland by his owner Maktoum Al Maktoum's Gainsborough Stud. The colt was sent into training in England with Barry Hills at Lambourn in Berkshire and was ridden in all of his races by Hills' son Michael.
In Command was from the ninth crop of foals sired by Sadler's Wells, who won the Irish 2000 Guineas, Eclipse Stakes and Irish Champion Stakes in 1984 went on to be the Champion sire on fourteen occasions. In Command's dam Flying Melody was a successful racehorse who became an outstanding broodmare, producing Royal Applause and Lyric Fantasy. As a descendant of the broodmare Oola Hills, Flying Melody was related to many notable Thoroughbreds including Park Top and Pappa Fourway.
Racing career
1996: two-year-old season
In Command began his racing career in a maiden race over six furlongs at Goodwood Racecourse on 31 July in which he started the 6/5 favourite in an eight-runner field. He took the lead a furlong out and won by half a length from the Mick Channon-trained Mile High. He was then moved up in class and distance for the Acomb Stakes over seven furlongs at York Racecourse on 20 August in which he started odds-on favourite but finished third behind Revoque and Symonds Inn. Despite his defeat In Command was stepped up again in class for the Group Two Champagne Stakes at Doncaster Racecourse on 13 September. Starting the 9/1 outsider of the four runners he took the lead a quarter of a mile from the finish but was overtaken and beaten three and a half lengths into second by the John Dunlop-trained Bahhare. On 3 October the colt was moved up to Group One class for the Group One Middle Park Stakes over six furlongs on good-to-firm ground at Newmarket Racecourse and started the 8/1 fifth choice in the betting behind Bahamian Bounty, Indian Rocket (Mill Reef Stakes), Hurricane State and Easycall (Richmond Stakes, Flying Childers Stakes). In Command was among the leaders from the start and stayed on well in the closing stages to finish third behind Bahamian Bounty and Muchea.
Fifteen days after his run in the Middle Park Stakes, In Command returned to Newmarket to contest Britain's most prestigious race for two-year-olds, the Dewhurst Stakes on rain-softened ground. Bahamian Bounty started 7/2 joint favourite alongside the Ed Dunlop-trained Kahal with In Command starting at odds of 10/1. The other five runners were Desert King, The West (runner-up in the Prix de la Salamandre), Musical Pursuit and Air Express. After tracking the leaders In Command took the lead approaching the final furlong and held off the challenges of the outsiders Musical Pursuit and Air Express to win by a head and a neck. After the race Barry Hills said "he horse was helped by the rain which has made a difference between winning and losing. He has done well since the Middle Park and I was very reassured to see the rain." Michael Hills commented "The extra furlong and the cut in the ground have made all the difference. He was getting a little tired close home and losing it a bit, but he will be much stronger next season. Very few of Sadler's Wells' offspring win Group One two-year- old races so he must be a bit special".
1997: three-year-old season
In Command began his second season in the Greenham Stakes (a major trial race for the 2000 Guineas) over seven furlongs at Newbury Racecourse on 19 April. After leading in the early stages he was overtaken in the last quarter mile and finished fourth behind Yalaietanee, Revoque and Muchea. In Command was off the racecourse for almost two months before he returned in the St James's Palace Stakes at Royal Ascot in which he started a 25/1 outsider and finished sixth behind Starborough. After another lengthy absence he contested the Park Stakes at Doncaster in September and finished seventh of the eight runners behind the four-year-old Almushtarak.
1998: four-year-old season
In Command remained in training as a four-year-old but made only one appearance. In the Doncaster Mile Stakes on 26 March he started the 9/4 favourite but finished last of the eight runners behind Hornbeam.
Assessment
In the 1997 International Classification of European two-year-olds In Command was given a rating of 117 making him the lowest-rated Dewhurst Stakes since Dr Devious in 1991.
Stud record
At the end of his racing career In Command was retired to become a breeding stallion. He had very little success as a sire of winners and by 2005 was standing at a fee of £1,500 at the Bracklynn Stud in Ireland.
Pedigree
References
1994 racehorse births
Racehorses bred in Ireland
Racehorses trained in the United Kingdom
Thoroughbred family 26
|
```javascript
/* __next_internal_action_entry_do_not_use__ {"188d5d945750dc32e2c842b93c75a65763d4a922":"$$ACTION_1","6d53ce510b2e36499b8f56038817b9bad86cabb4":"$$ACTION_0"} */ import { registerServerReference } from "private-next-rsc-server-reference";
import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption";
import deleteFromDb from 'db';
export function Item({ id1, id2 }) {
var deleteItem = registerServerReference("6d53ce510b2e36499b8f56038817b9bad86cabb4", $$ACTION_0).bind(null, encryptActionBoundArgs("6d53ce510b2e36499b8f56038817b9bad86cabb4", [
id1,
id2
]));
return <Button action={deleteItem}>Delete</Button>;
}
export async function $$ACTION_0($$ACTION_CLOSURE_BOUND) {
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("6d53ce510b2e36499b8f56038817b9bad86cabb4", $$ACTION_CLOSURE_BOUND);
await deleteFromDb($$ACTION_ARG_0);
await deleteFromDb($$ACTION_ARG_1);
}
export default function Home() {
const info = {
name: 'John',
test: 'test'
};
const action = registerServerReference("188d5d945750dc32e2c842b93c75a65763d4a922", $$ACTION_1).bind(null, encryptActionBoundArgs("188d5d945750dc32e2c842b93c75a65763d4a922", [
info.name,
info.test
]));
return null;
}
export async function $$ACTION_1($$ACTION_CLOSURE_BOUND) {
var [$$ACTION_ARG_0, $$ACTION_ARG_1] = await decryptActionBoundArgs("188d5d945750dc32e2c842b93c75a65763d4a922", $$ACTION_CLOSURE_BOUND);
console.log($$ACTION_ARG_0);
console.log($$ACTION_ARG_1);
}
```
|
Amada "Amy" Galvez Santos-Ocampo De Francesco (23 June 1925 – 20 December 2009) was a Philippine pianist and composer.
Biography
Amada Santos-Ocampo was born in Manila, Philippines, of parents Antonino Santos-Ocampo, Sr., and Juanita Galvez of Manila. She graduated with a bachelor's degree from Centro Escolar University in Manila, and a master's degree in music composition from De Pauw University in Indiana. She studied for her PhD in music composition at Indiana University.
Santos-Ocampo took a position in the Penn State University human kinetics programs where she worked for 24 years and composed music for ballet. She was one of the first members of the League of Filipino Composers founded in 1955. Santos-Ocampo died in San Jose, California.
References
1925 births
2009 deaths
20th-century classical composers
Filipino women classical composers
Filipino classical composers
Musicians from Manila
Centro Escolar University alumni
20th-century women composers
Filipino pianists
Filipino women pianists
Indiana University alumni
Filipino expatriates in the United States
|
Alin Vasile Bota (born 29 May 1983) is a Romanian football goalkeeper who plays for Liga III side Minaur Baia Mare. In his career he also played for teams such as: CFR Cluj, CS Otopeni, FC Baia Mare or Gloria Bistrița and is well known for scoring from penalties.
Honours
Baia Mare
Liga III : 2005–06, 2008–09, 2014–15, 2021–22
ACSF Comuna Recea
Liga III : 2019–20
References
External links
1983 births
Living people
People from Baia Mare
Romanian men's footballers
Men's association football goalkeepers
Liga I players
Liga II players
CFR Cluj players
ACF Gloria Bistrița players
CS Minaur Baia Mare (football) players
CS Academica Recea players
|
Black Country Communion (also known as Black Country) is the self-titled debut studio album by English-American hard rock band Black Country Communion. Recorded in early 2010 primarily at Shangri-La Studios in Malibu, California, it was produced by Kevin Shirley and released by Mascot Records in Europe on 20 September 2010, and by J&R Adventures in North America the following day. The album reached number 13 on the UK Albums Chart and number 54 on the US Billboard 200.
Glenn Hughes and Joe Bonamassa formed Black Country Communion in November 2009, with Shirley suggesting the addition of drummer Jason Bonham and keyboardist Derek Sherinian. Much of the material for the band's debut album was written by Hughes and Bonamassa (with Shirley, Sherinian and Bonham also contributing to a number of tracks), with the pair sharing vocal duties on several songs. The basic tracks for the album were reportedly completed within just four days of recording.
Black Country Communion received positive reviews from the majority of critics, who praised its effective revival of the 1970s classic rock sound of bands such as Deep Purple and Led Zeppelin, as well as the performances of the supergroup's individual members. The album topped the UK Rock & Metal Albums Chart, as well as reaching the top 20 of the Billboard Top Rock Albums and Hard Rock Albums charts. One music video was released from the record, for the track "The Great Divide".
Writing and recording
After forming Black Country Communion in November 2009, bassist Glenn Hughes and guitarist Joe Bonamassa wrote the majority of the band's debut album together in a matter of days. Producer Kevin Shirley, drummer Jason Bonham and keyboardist Derek Sherinian also contributed to the writing of several tracks. Speaking about the writing process in an interview with EspyRock, Hughes explained that he wrote four songs in December 2009 and presented them to the rest of the band in the new year, adding that he later "locked Joe away in my house for three afternoons on three different Thursdays for three hours at a time ... and we just sat down and wrote all the songs you’re hearing in my studio". Added to the original tracks was a cover version of "Medusa", originally recorded by Hughes' band Trapeze in 1970 on their album of the same name.
Recording was also completed quickly, both due to each individual band members' ongoing schedules and commitments, as well as the preference of the group – Hughes has noted that he likes to work "under the gun", while Bonamassa has suggested that he and Shirley do not believe in "spending too much time meandering in the studio". In the liner notes for the album, Bonham claims that "It took only 4 days to lay down the basic tracks and 10 days to record and mix the entire album". Similarly, Hughes claims that "The album was recorded, totally, in five or six days with vocals and instruments". Most of the recording took place at Shangri-La Studios in Malibu, California, with additional overdubs tracked at Shirley's Malibu studio The Cave and Germano Studios in New York City.
Promotion and release
Black Country Communion was officially announced on 10 June 2010. The first song to be released from the album was "One Last Soul", which was premiered on British radio station Planet Rock on 2 August. The track was later made available as a free digital download on the band's official website. The album was released in the UK and Europe by Mascot Records on 20 September 2010, and in North America by Bonamassa's label J&R Adventures the following day. On the night of its European release, the band played its first official show at the John Henry Rehearsal Studios in London in front of a limited crowd of "around 75–100 people". The performance was broadcast on Planet Rock that night, and again later on 24 September. In promotion of the album, Black Country Communion played two shows in the UK at the end of the year – the first at the Wolverhampton Civic Hall on 29 December and the second at the Shepherd's Bush Empire in London on 30 December.
Reception
Commercial
Black Country Communion debuted at number 54 on the US Billboard 200, selling 7,100 copies in its first week. It also registered at number 6 on the Independent Albums chart (the highest the band has achieved to date), number 18 on the Top Rock Albums chart, and number 19 on the Hard Rock Albums chart. In the UK, the album debuted at number 13 on the UK Albums Chart, number 15 on the Scottish Albums Chart, number 1 on the UK Rock & Metal Albums Chart, and number 2 on the UK Independent Albums Chart. It also reached the top 20 in Germany and Sweden, number 32 in the Netherlands, number 50 in Austria, number 54 in Switzerland, number 61 in Italy, number 62 in France, and number 81 in Ireland.
Critical
Media response to Black Country Communion was generally positive. Reviewing the release for AllMusic, Eduardo Rivadavia claimed that the band "delivers the goods for much of this album", suggesting that "Black Country Communion's debut takes the dread out of the supergroup equation". Similarly, Greg Moffitt for the BBC suggested that the band had "defied the odds to deliver a collection that's all gold and no albatross", highlighting tracks such as "Black Country" and "One Last Soul". Mojo magazine's Paul Elliott differentiated Black Country Communion from Them Crooked Vultures by praising the band's "great songs", particularly "One Last Soul" and "Song of Yesterday", concluding that "Black Country Communion is one supergroup that really lives up to its billing". Paul Cole of the Sunday Mercury hailed Black Country Communion as "a great rock and roll album and the assured debut you only get from players at the very top of their game".
Following the release of the album, Black Country Communion was recognised in several categories of the Planet Rock End of Year Poll 2010 – the album came third in the Album of the Year poll, while the band won Band of the Year and Best New Band. In announcing the results, Planet Rock praised the band by highlighting "An excellent album, several musicians at the top of their game and a bunch of songs that put the classic in classic rock". Black Country Communion was also included in the Albums of the Year 2010 feature published at the end of the year by Metal Hammer magazine, ranking at number 16 on the list.
Track listing
Personnel
Chart positions
References
External links
2010 debut albums
Black Country Communion albums
Albums produced by Kevin Shirley
Mascot Records albums
Albums recorded at Shangri-La (recording studio)
|
```yaml
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
enhancements:
- |
'agent status' command output is now parseable as JSON
directly from stdout. Before this change, the
logger front-matter made it hard to parse 'status'
output directly as JSON.
```
|
```objective-c
//
// SyncLogEntryTableViewCell.m
// Strongbox
//
// Created by Strongbox on 10/08/2020.
//
#import "SyncLogEntryTableViewCell.h"
@interface SyncLogEntryTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;
@property (weak, nonatomic) IBOutlet UILabel *logLabel;
@property (weak, nonatomic) IBOutlet UIImageView *stateImage;
@property (weak, nonatomic) IBOutlet UILabel *timestampLabel;
@end
@implementation SyncLogEntryTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
}
- (void)setState:(SyncOperationState)state log:(NSString*)log timestamp:(NSString*)timestamp {
self.logLabel.text = log;
self.timestampLabel.text = timestamp;
[self setStateLabelBasedOnState:state];
[self setImageBasedOnState:state];
}
- (void)setStateLabelBasedOnState:(SyncOperationState)state {
self.stateLabel.text = syncOperationStateToString(state);
}
- (void)setImageBasedOnState:(SyncOperationState)state {
switch(state) {
case kSyncOperationStateInProgress:
self.stateImage.image = [UIImage imageNamed:@"syncronize"];
self.stateImage.tintColor = UIColor.systemBlueColor;
break;
case kSyncOperationStateUserCancelled:
case kSyncOperationStateBackgroundButUserInteractionRequired:
self.stateImage.image = [UIImage imageNamed:@"syncronize"];
self.stateImage.tintColor = UIColor.systemYellowColor;
break;
case kSyncOperationStateError:
self.stateImage.image = [UIImage imageNamed:@"error"];
self.stateImage.tintColor = UIColor.systemRedColor;
break;
case kSyncOperationStateInitial:
self.stateImage.image = [UIImage imageNamed:@"ok"];
self.stateImage.tintColor = UIColor.systemBlueColor;
case kSyncOperationStateDone:
default:
self.stateImage.image = [UIImage imageNamed:@"ok"];
self.stateImage.tintColor = UIColor.systemGreenColor;
break;
}
}
@end
```
|
The 2023 Kilkenny Intermediate Hurling Championship was the 59th staging of the Kilkenny Intermediate Hurling Championship since its establishment by the Kilkenny County Board in 1929. The championship ran from 16 September to 22 October 2023.
The final was played on 22 October 2023 at UPMC Nowlan Park in Kilkenny, between Thomastown and Mooncoin, in what was their second meeting in the final overall and a first meeting in 23 years. Thomastown won the match by 1-29 to 0-17 to claim their second championship title overall and a first title in 40 years.
Thomastown's Robbie Donnelly was the championship's top scorer with 2-27.
Team changes
To Championship
Promoted from the Kilkenny Premier Junior Hurling Championship
Blacks and Whites
Relegated from the Kilkenny Senior Hurling Championship
Lisdowney
From Championship
Promoted to the Kilkenny Senior Hurling Championship
Danesfort
Relegated to the Kilkenny Premier Junior Hurling Championship
St Lachtain's
Fixtures/results
First round
Relegation playoff
Quarter-finals
Semi-finals
Final
Championship statistics
Top scorers
Overall
In a single game
References
External links
Kilkenny GAA website
Kilkenny Intermediate Hurling Championship
Kilkenny Senior Hurling Championship
|
Santa Barbara Restaurant Group was a restaurant holding company and was the parent company for the Green Burrito, La Salsa, JB's Restaurants, and the Timber Lodge Steakhouse restaurant chain.
The Santa Barbara Restaurant Group was originally created in 1986 as GB Foods Inc. to serve as the holding company for the Green Burrito fast-food Mexican restaurant chain. A large change in the company occurred when William P. Foley, the chairman for CKE Restaurants acquired a controlling interest in the company in 1997 and converted the company from a holding company that controlled a single chain to one that controlled many chains. The following year, GB Foods changed its name to the Santa Barbara Restaurant Group and started to acquire other restaurant chains, such as the Timber Lodge Steakhouse and in a different transaction, JB's Restaurants and other restaurants chains that were once a part of CKE.
After two years of negotiations, La Salsa was acquired in June 1999.
To focus on Mexican fast food and steakhouses, the JB's Restaurants chain was sold off to a group of investors that included JB's managers in 2000.
In March 2002, Santa Barbara Restaurant Group was acquired by CKE Restaurants in a swap of company stock. At the time of the acquisition, both companies shared many board members and Santa Barbara Restaurant Group operated 56 La Salsa restaurants, 25 Timber Lodge Steakhouse restaurants, and 5 Green Burrito restaurants while also franchising 39 La Salsa restaurants, 30 Green Burrito stand-alone restaurants, one Timber Lodge Steakhouse restaurant and 195 Green Burrito dual-concept restaurants. CKE was also the largest franchisee of the Green Burrito concept, all of which were sharing space at selected Carl's Jr. locations at the time of the acquisition, so the result of the acquisition made it easier for CKE to expand the Green Burrito dual-brand concept to additional Carl's Jr. locations.
To better focus on the fast food industry, CKE quickly sold off Timber Lodge to a consortium headed by Timber Lodge managers in 2004. CKE was not very successful in expanding the La Salsa concept to new territories before it gave up and sold the chain to Baja Fresh in 2007.
References
External links
CKE Restaurants acquires Santa Barbara Restaurant Group
Defunct companies based in California
Defunct restaurant chains in the United States
Companies based in Santa Barbara, California
American companies established in 1986
1986 establishments in California
2002 mergers and acquisitions
CKE Restaurants
|
Combe Pafford is a village in Torbay in the English county of Devon.
References
Villages in Devon
Areas of Torquay
|
Archeological Site No. 121-52B is a historic site in the Ambajejus Camps of Maine containing prehistoric Native American artifacts. The site was added to the National Register of Historic Places on October 31, 1995.
References
National Register of Historic Places in Piscataquis County, Maine
|
The 1986 Big League World Series took place from August 9–16 in Fort Lauderdale, Florida, United States. Maracaibo, Venezuela defeated Broward County, Florida twice in the championship game.
Teams
Results
References
Big League World Series
Big League World Series
|
Echinocereus berlandieri (Berlandier's hedgehog cactus) is a species of hedgehog cactus. Its range includes most of South Texas, and is commonly found along the Nueces River and the lower Rio Grande.
Description
Echinocereus berlandieri grows with many shoots and forms groups up to 1 meter in diameter. The dark green to somewhat purple-green, cylindrical shoots that taper towards their base are prostrate or have upright tips. They are 5 to 60 centimeters long and reach a diameter of 1.5 to 3 centimeters. There are five to seven ribs with barely any hint of humps. The one to three strong, outward-facing, yellowish to dark brown central spines are 2.5 to 5 centimeters long. The six to nine whitish marginal spines are 1 to 2.5 centimeters long.
The broadly funnel-shaped flowers are pink to reddish purple and appear below the tips of the shoots. They are 7 to 8 centimeters long and reach a diameter of up to 7 centimeters. The egg-shaped, green fruits are 2 to 2.5 centimeters long. The thorns on it fall off.
Distribution
Echinocereus berlandieri is widespread in the United States in the south of Texas and in the neighboring Mexican states of Nuevo León and Tamaulipas at altitudes of up to 600 meters.
Taxonomy
The first description as Cereus berlandieri by George Engelmann was published in 1856. The specific epithet berlandieri honors the plant collector Jean-Louis Berlandier (1803–1851). Friedrich Adolph Haage placed the species in the genus Echinocereus in 1859.
References
berlandieri
Flora of Texas
Flora of Mexico
|
The U.S. Department of Defense employs civilians who are stationed at military bases to work as firefighters. These personnel have their own uniforms and equipment, but are not considered to be members of a military unit. They are responsible for firefighting, but they may also receive aid from military units. Each U.S. Defense Department firefighter has his or her own uniform, usually a dark blue suit with a badge and a shoulder patch indicating his or her status. They wear dark blue pants per United States Army regulation, but shirts can be dark blue, light blue, or white depending on the person's rank. This only applies to this organization, and not the Department of Defense.
Various certifications exist for personnel in this organization. One major certification is referred to as "Department of Defense(DoD) Fire & Emergency Services Training." Firefighters must be Department of Defense Certified as Firefighter I, Firefighter II, HazMat Awareness and HazMat Operations, and Airport Firefighter. Additionally, the applicant must obtain and maintain a current Basic Life Support for the Healthcare Provider (CPR and AED) card.
See also
Firefighting
External links
Military Firefighter Heritage Foundation website.
U.S. Defense Dept. Fire & Emergency Services Certification Program web page.
History web page, dodfire.com
Website for US Army civilian firefighter units, U.S. Army Installation Management Command
fedfire.org, federal firefighters group in California.
Fort knox firefighters website
Fort knox firefighters patch website
US Government document authorizing use of uniforms for civilian firefighters
Dedication of memorial at military base in Texas
DODFireNews.Com News web site for DOD Firefighters.
References
United States Department of Defense
Fire departments of the United States
Military fire departments
United States Department of Defense agencies
|
```javascript
Computed property names in object literals
Using maps
Creating promises
Strings in ES6
Modules in ES6
```
|
The Turkmen Agricultural University named after Saparmurat Niyazov (), often abbreviated as TOHU, is the largest higher education institution in Turkmenistan. This university only provides studies in the fields of agriculture. It is named after Saparmyrat Nyýazow, Turkmenistan's first president.
History
In 1930, the Agricultural Institute was constructed in the capital city of Ashgabat. Until 1998, the institution was named after Mikhail Kalinin, after which, it was named after the then-serving president Saparmurat Niyazov. In 1998, was awarded university status, and had a name change. In 2012, the training center CLAAS was opened.
Faculties
The university consists of 8 departments:
Agronomy
Agricultural mechanization
Textile production
Processing of agricultural products
Veterinary
Hydromelioration
Agroecology
Economics and management of agriculture
Alumni
Annamurat Soltanov, Chief of General Staff of the Armed Forces of Turkmenistan
Esenmyrat Orazgeldiýew, former Agriculture Minister of Turkmenistan
Serdar Berdimuhamedow, President of Turkmenistan
References
Universities in Turkmenistan
Buildings and structures in Ashgabat
1930 establishments in the Soviet Union
Buildings and structures built in the Soviet Union
Education in the Soviet Union
Education in Turkmenistan
Educational organizations based in Turkmenistan
Universities and colleges established in 1930
Saparmurat Niyazov
|
```objective-c
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#pragma once
#include <string>
#include "paddle/fluid/framework/scope.h"
#include "paddle/fluid/inference/analysis/analysis_pass.h"
#include "paddle/phi/common/place.h"
namespace paddle {
namespace inference {
namespace analysis {
/*
* Load program and parameter to memory from the disk or directly from memory.
*/
class IrGraphBuildPass : public AnalysisPass {
public:
void RunImpl(Argument *argument) override;
std::string repr() const override;
private:
std::unique_ptr<framework::ProgramDesc> LoadModel(const std::string &path,
framework::Scope *scope,
const phi::Place &place);
std::unique_ptr<framework::ProgramDesc> LoadModel(
const std::string &program_path,
const std::string ¶ms_path,
framework::Scope *scope,
const phi::Place &place,
bool model_from_memory,
bool skip_load_params);
std::string model_binary_str_;
};
} // namespace analysis
} // namespace inference
} // namespace paddle
```
|
Sande (also known as Sande i Sunnfjord) is a village in Sunnfjord Municipality in Vestland county, Norway. The village is located along the Gaula River, about from where the river meets the Dalsfjorden. Sande Church is located in this village, serving the people of the central part of the municipality.
The village has a population (2019) of 888 and a population density of .
The European route E39 highway runs through the village of Sande, connecting it to the village of Vadheim to the south and the town of Førde to the north. Førde Airport, Bringeland is located about north of Sande along the E39 highway. The town of Sunnfjord is north of Sande, and the village of Vadheim in Høyanger is to the south.
The village was the administrative centre of the old Gaular Municipality until its dissolution in 2020.
Notable residents
Wenche Nistad (born 1952) – businessperson and civil servant
References
Villages in Vestland
Sunnfjord
|
```objective-c
// BZip2Encoder.h
#ifndef __COMPRESS_BZIP2_ENCODER_H
#define __COMPRESS_BZIP2_ENCODER_H
#include "../../Common/Defs.h"
#include "../../Common/MyCom.h"
#ifndef _7ZIP_ST
#include "../../Windows/Synchronization.h"
#include "../../Windows/Thread.h"
#endif
#include "../ICoder.h"
#include "../Common/InBuffer.h"
#include "../Common/OutBuffer.h"
#include "BitmEncoder.h"
#include "BZip2Const.h"
#include "BZip2Crc.h"
namespace NCompress {
namespace NBZip2 {
class CMsbfEncoderTemp
{
UInt32 _pos;
unsigned _bitPos;
Byte _curByte;
Byte *_buf;
public:
void SetStream(Byte *buf) { _buf = buf; }
Byte *GetStream() const { return _buf; }
void Init()
{
_pos = 0;
_bitPos = 8;
_curByte = 0;
}
void Flush()
{
if (_bitPos < 8)
WriteBits(0, _bitPos);
}
void WriteBits(UInt32 value, unsigned numBits)
{
while (numBits > 0)
{
unsigned numNewBits = MyMin(numBits, _bitPos);
numBits -= numNewBits;
_curByte = (Byte)(_curByte << numNewBits);
UInt32 newBits = value >> numBits;
_curByte |= Byte(newBits);
value -= (newBits << numBits);
_bitPos -= numNewBits;
if (_bitPos == 0)
{
_buf[_pos++] = _curByte;
_bitPos = 8;
}
}
}
UInt32 GetBytePos() const { return _pos ; }
UInt32 GetPos() const { return _pos * 8 + (8 - _bitPos); }
Byte GetCurByte() const { return _curByte; }
void SetPos(UInt32 bitPos)
{
_pos = bitPos >> 3;
_bitPos = 8 - ((unsigned)bitPos & 7);
}
void SetCurState(unsigned bitPos, Byte curByte)
{
_bitPos = 8 - bitPos;
_curByte = curByte;
}
};
class CEncoder;
const unsigned kNumPassesMax = 10;
class CThreadInfo
{
public:
Byte *m_Block;
private:
Byte *m_MtfArray;
Byte *m_TempArray;
UInt32 *m_BlockSorterIndex;
CMsbfEncoderTemp *m_OutStreamCurrent;
Byte Lens[kNumTablesMax][kMaxAlphaSize];
UInt32 Freqs[kNumTablesMax][kMaxAlphaSize];
UInt32 Codes[kNumTablesMax][kMaxAlphaSize];
Byte m_Selectors[kNumSelectorsMax];
UInt32 m_CRCs[1 << kNumPassesMax];
UInt32 m_NumCrcs;
UInt32 m_BlockIndex;
void WriteBits2(UInt32 value, unsigned numBits);
void WriteByte2(Byte b);
void WriteBit2(Byte v);
void WriteCrc2(UInt32 v);
void EncodeBlock(const Byte *block, UInt32 blockSize);
UInt32 EncodeBlockWithHeaders(const Byte *block, UInt32 blockSize);
void EncodeBlock2(const Byte *block, UInt32 blockSize, UInt32 numPasses);
public:
bool m_OptimizeNumTables;
CEncoder *Encoder;
#ifndef _7ZIP_ST
NWindows::CThread Thread;
NWindows::NSynchronization::CAutoResetEvent StreamWasFinishedEvent;
NWindows::NSynchronization::CAutoResetEvent WaitingWasStartedEvent;
// it's not member of this thread. We just need one event per thread
NWindows::NSynchronization::CAutoResetEvent CanWriteEvent;
UInt64 m_UnpackSize;
Byte MtPad[1 << 8]; // It's pad for Multi-Threading. Must be >= Cache_Line_Size.
HRESULT Create();
void FinishStream(bool needLeave);
THREAD_FUNC_RET_TYPE ThreadFunc();
#endif
CThreadInfo(): m_Block(NULL), m_BlockSorterIndex(NULL) {}
~CThreadInfo() { Free(); }
bool Alloc();
void Free();
HRESULT EncodeBlock3(UInt32 blockSize);
};
struct CEncProps
{
UInt32 BlockSizeMult;
UInt32 NumPasses;
UInt64 Affinity;
CEncProps()
{
BlockSizeMult = (UInt32)(Int32)-1;
NumPasses = (UInt32)(Int32)-1;
Affinity = 0;
}
void Normalize(int level);
bool DoOptimizeNumTables() const { return NumPasses > 1; }
};
class CEncoder :
public ICompressCoder,
public ICompressSetCoderProperties,
#ifndef _7ZIP_ST
public ICompressSetCoderMt,
#endif
public CMyUnknownImp
{
UInt32 m_NumThreadsPrev;
public:
CInBuffer m_InStream;
Byte MtPad[1 << 8]; // It's pad for Multi-Threading. Must be >= Cache_Line_Size.
CBitmEncoder<COutBuffer> m_OutStream;
CEncProps _props;
CBZip2CombinedCrc CombinedCrc;
#ifndef _7ZIP_ST
CThreadInfo *ThreadsInfo;
NWindows::NSynchronization::CManualResetEvent CanProcessEvent;
NWindows::NSynchronization::CCriticalSection CS;
UInt32 NumThreads;
bool MtMode;
UInt32 NextBlockIndex;
bool CloseThreads;
bool StreamWasFinished;
NWindows::NSynchronization::CManualResetEvent CanStartWaitingEvent;
HRESULT Result;
ICompressProgressInfo *Progress;
#else
CThreadInfo ThreadsInfo;
#endif
UInt64 NumBlocks;
UInt64 GetInProcessedSize() const { return m_InStream.GetProcessedSize(); }
UInt32 ReadRleBlock(Byte *buf);
void WriteBytes(const Byte *data, UInt32 sizeInBits, Byte lastByte);
void WriteBits(UInt32 value, unsigned numBits);
void WriteByte(Byte b);
// void WriteBit(Byte v);
void WriteCrc(UInt32 v);
#ifndef _7ZIP_ST
HRESULT Create();
void Free();
#endif
public:
CEncoder();
#ifndef _7ZIP_ST
~CEncoder();
#endif
HRESULT Flush() { return m_OutStream.Flush(); }
MY_QUERYINTERFACE_BEGIN2(ICompressCoder)
#ifndef _7ZIP_ST
MY_QUERYINTERFACE_ENTRY(ICompressSetCoderMt)
#endif
MY_QUERYINTERFACE_ENTRY(ICompressSetCoderProperties)
MY_QUERYINTERFACE_END
MY_ADDREF_RELEASE
HRESULT CodeReal(ISequentialInStream *inStream, ISequentialOutStream *outStream,
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
#ifndef _7ZIP_ST
STDMETHOD(SetNumberOfThreads)(UInt32 numThreads);
#endif
};
}}
#endif
```
|
```c++
// Use, modification and distribution are subject to the
// LICENSE_1_0.txt or copy at path_to_url
//
// This file is machine generated, do not edit by hand
// Unrolled polynomial evaluation using second order Horners rule
#ifndef BOOST_MATH_TOOLS_POLY_EVAL_12_HPP
#define BOOST_MATH_TOOLS_POLY_EVAL_12_HPP
namespace boost{ namespace math{ namespace tools{ namespace detail{
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T*, const V&, const mpl::int_<0>*) BOOST_MATH_NOEXCEPT(V)
{
return static_cast<V>(0);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<1>*) BOOST_MATH_NOEXCEPT(V)
{
return static_cast<V>(a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<2>*) BOOST_MATH_NOEXCEPT(V)
{
return static_cast<V>(a[1] * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<3>*) BOOST_MATH_NOEXCEPT(V)
{
return static_cast<V>((a[2] * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<4>*) BOOST_MATH_NOEXCEPT(V)
{
return static_cast<V>(((a[3] * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<5>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = static_cast<V>(a[4] * x2 + a[2]);
t[1] = static_cast<V>(a[3] * x2 + a[1]);
t[0] *= x2;
t[0] += static_cast<V>(a[0]);
t[1] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<6>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = a[5] * x2 + a[3];
t[1] = a[4] * x2 + a[2];
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[1]);
t[1] += static_cast<V>(a[0]);
t[0] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<7>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = static_cast<V>(a[6] * x2 + a[4]);
t[1] = static_cast<V>(a[5] * x2 + a[3]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[2]);
t[1] += static_cast<V>(a[1]);
t[0] *= x2;
t[0] += static_cast<V>(a[0]);
t[1] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<8>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = a[7] * x2 + a[5];
t[1] = a[6] * x2 + a[4];
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[3]);
t[1] += static_cast<V>(a[2]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[1]);
t[1] += static_cast<V>(a[0]);
t[0] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<9>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = static_cast<V>(a[8] * x2 + a[6]);
t[1] = static_cast<V>(a[7] * x2 + a[5]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[4]);
t[1] += static_cast<V>(a[3]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[2]);
t[1] += static_cast<V>(a[1]);
t[0] *= x2;
t[0] += static_cast<V>(a[0]);
t[1] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<10>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = a[9] * x2 + a[7];
t[1] = a[8] * x2 + a[6];
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[5]);
t[1] += static_cast<V>(a[4]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[3]);
t[1] += static_cast<V>(a[2]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[1]);
t[1] += static_cast<V>(a[0]);
t[0] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<11>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = static_cast<V>(a[10] * x2 + a[8]);
t[1] = static_cast<V>(a[9] * x2 + a[7]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[6]);
t[1] += static_cast<V>(a[5]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[4]);
t[1] += static_cast<V>(a[3]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[2]);
t[1] += static_cast<V>(a[1]);
t[0] *= x2;
t[0] += static_cast<V>(a[0]);
t[1] *= x;
return t[0] + t[1];
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<12>*) BOOST_MATH_NOEXCEPT(V)
{
V x2 = x * x;
V t[2];
t[0] = a[11] * x2 + a[9];
t[1] = a[10] * x2 + a[8];
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[7]);
t[1] += static_cast<V>(a[6]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[5]);
t[1] += static_cast<V>(a[4]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[3]);
t[1] += static_cast<V>(a[2]);
t[0] *= x2;
t[1] *= x2;
t[0] += static_cast<V>(a[1]);
t[1] += static_cast<V>(a[0]);
t[0] *= x;
return t[0] + t[1];
}
}}}} // namespaces
#endif // include guard
```
|
Musschia wollastonii is a species of flowering plant in the Campanulaceae family. It is endemic to Madeira Island.
Musschia wollastonii grows in scattered locations between 400 and 900 meters elevation, mostly on the northern slope of the island. It grows in humid valleys in the shade of laurisilva forests, where Ocotea foetens is the dominant tree. The species' estimated extent of occurrence is 524 km2.
References
Campanuloideae
Taxa named by Richard Thomas Lowe
Plants described in 1856
Endemic flora of Madeira
|
```xml
import { MissingQuery } from './missing.query';
describe('missing query format', () => {
// Set initial things
// set expected query format
var query: MissingQuery;
var expectedFormat = {
'missing': {
'field': 'name'
}
};
// instantiate query component and set the input fields
beforeEach(function() {
query = new MissingQuery();
query.queryName = 'missing';
query.fieldName = 'name';
});
function isValidJson(str: string) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
// Test to check if queryformat is valid json
it('is valid json', () => {
var format = query.setFormat();
var validJson = isValidJson(JSON.stringify(format));
expect(validJson).toEqual(true);
});
// Test to check if result of setformat is equal to expected query format.
it('Is setformat matches with expected query format', () => {
var format = query.setFormat();
expect(format).toEqual(expectedFormat);
});
})
declare var $;
describe("xhr call (missing)", function () {
var returnedJSON: any = {};
var status = 0;
beforeEach(function (done) {
var query = new MissingQuery();
query.queryName = 'missing';
query.fieldName = 'address';
var config = {
url: 'path_to_url
appname: 'mirage_test',
username: 'wvCmyBy3D',
password: '7a7078e0-0204-4ccf-9715-c720f24754f2'
};
var url = 'path_to_url
var query_data = query.setFormat();
var request_data = {
"query": {
"bool": {
"must": [query_data]
}
}
};
$.ajax({
type: 'POST',
beforeSend: function(request) {
request.setRequestHeader("Authorization", "Basic " + btoa(config.username + ':' + config.password));
},
url: url,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: JSON.stringify(request_data),
xhrFields: {
withCredentials: true
},
success: function(res) {
returnedJSON = res;
status = 200;
done();
},
error: function(xhr) {
returnedJSON = xhr;
status = xhr.status;
done();
}
});
});
it("Should have returned JSON and Should have atleast 1 record", function () {
expect(returnedJSON).not.toEqual({});
expect(returnedJSON).not.toBeUndefined();
expect(status).toEqual(200);
expect(returnedJSON.hits.hits.length).toBeGreaterThan(0);
});
});
```
|
Dieter Grabe (born 13 September 1945) is an East German former cyclist. He competed in the team time trial at the 1968 Summer Olympics.
References
External links
1945 births
Living people
People from Leipzig (district)
East German male cyclists
Cyclists from Saxony
Olympic cyclists for East Germany
Cyclists at the 1968 Summer Olympics
People from Bezirk Leipzig
|
```java
package openjoe.smart.sso.server.manager;
import openjoe.smart.sso.base.constant.BaseConstant;
import openjoe.smart.sso.base.entity.LifecycleManager;
import openjoe.smart.sso.base.entity.TokenUser;
import openjoe.smart.sso.base.util.HttpUtils;
import openjoe.smart.sso.server.entity.CodeContent;
import openjoe.smart.sso.server.entity.TokenContent;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/**
* AccessToken
*
* @author Joe
*/
public abstract class AbstractTokenManager implements LifecycleManager<TokenContent> {
/**
* accessToken
*/
private int accessTokenTimeout;
/**
* refreshToken
*/
private int refreshTokenTimeout;
public AbstractTokenManager(int accessTokenTimeout, int refreshTokenTimeout) {
this.accessTokenTimeout = accessTokenTimeout;
this.refreshTokenTimeout = refreshTokenTimeout;
}
/**
* AccessToken
*
* @param accessToken
* @return
*/
public abstract TokenContent getByAccessToken(String accessToken);
/**
* TGT
*
* @param tgt
*/
public abstract void removeByTgt(String tgt);
/**
* AccessToken
*
* @param tc
* @return
*/
public TokenContent create(TokenContent tc) {
return create(tc.getTokenUser(), tc.getLogoutUri(), tc);
}
/**
* AccessToken
*
* @param tokenUser
* @param codeContent
* @return
*/
public TokenContent create(TokenUser tokenUser, String logoutUri, CodeContent codeContent) {
String accessToken = "AT-" + UUID.randomUUID().toString().replaceAll("-", "");
String refreshToken = "RT-" + UUID.randomUUID().toString().replaceAll("-", "");
TokenContent tc = new TokenContent(accessToken, refreshToken, tokenUser, logoutUri, codeContent.getTgt(), codeContent.getClientId());
create(refreshToken, tc);
return tc;
}
/**
*
*
* @param redirectUri
* @param accessToken
*/
protected void sendLogoutRequest(String redirectUri, String accessToken) {
Map<String, String> headerMap = new HashMap<>();
headerMap.put(BaseConstant.LOGOUT_PARAMETER_NAME, accessToken);
HttpUtils.postHeader(redirectUri, headerMap);
}
public int getAccessTokenTimeout() {
return accessTokenTimeout;
}
public void setAccessTokenTimeout(int accessTokenTimeout) {
this.accessTokenTimeout = accessTokenTimeout;
}
public int getRefreshTokenTimeout() {
return refreshTokenTimeout;
}
public void setRefreshTokenTimeout(int refreshTokenTimeout) {
this.refreshTokenTimeout = refreshTokenTimeout;
}
}
```
|
```php
<?php
namespace Laravel\Passport;
use Illuminate\Support\Str;
use RuntimeException;
class ClientRepository
{
/**
* The personal access client ID.
*
* @var int|string|null
*/
protected $personalAccessClientId;
/**
* The personal access client secret.
*
* @var string|null
*/
protected $personalAccessClientSecret;
/**
* Create a new client repository.
*
* @param int|string|null $personalAccessClientId
* @param string|null $personalAccessClientSecret
* @return void
*/
public function __construct($personalAccessClientId = null, $personalAccessClientSecret = null)
{
$this->personalAccessClientId = $personalAccessClientId;
$this->personalAccessClientSecret = $personalAccessClientSecret;
}
/**
* Get a client by the given ID.
*
* @param int|string $id
* @return \Laravel\Passport\Client|null
*/
public function find($id)
{
$client = Passport::client();
return $client->where($client->getKeyName(), $id)->first();
}
/**
* Get an active client by the given ID.
*
* @param int|string $id
* @return \Laravel\Passport\Client|null
*/
public function findActive($id)
{
$client = $this->find($id);
return $client && ! $client->revoked ? $client : null;
}
/**
* Get a client instance for the given ID and user ID.
*
* @param int|string $clientId
* @param mixed $userId
* @return \Laravel\Passport\Client|null
*/
public function findForUser($clientId, $userId)
{
$client = Passport::client();
return $client
->where($client->getKeyName(), $clientId)
->where('user_id', $userId)
->first();
}
/**
* Get the client instances for the given user ID.
*
* @param mixed $userId
* @return \Illuminate\Database\Eloquent\Collection
*/
public function forUser($userId)
{
return Passport::client()
->where('user_id', $userId)
->orderBy('name', 'asc')->get();
}
/**
* Get the active client instances for the given user ID.
*
* @param mixed $userId
* @return \Illuminate\Database\Eloquent\Collection
*/
public function activeForUser($userId)
{
return $this->forUser($userId)->reject(function ($client) {
return $client->revoked;
})->values();
}
/**
* Get the personal access token client for the application.
*
* @return \Laravel\Passport\Client
*
* @throws \RuntimeException
*/
public function personalAccessClient()
{
if ($this->personalAccessClientId) {
return $this->find($this->personalAccessClientId);
}
$client = Passport::personalAccessClient();
if (! $client->exists()) {
throw new RuntimeException('Personal access client not found. Please create one.');
}
return $client->orderBy($client->getKeyName(), 'desc')->first()->client;
}
/**
* Store a new client.
*
* @param int|null $userId
* @param string $name
* @param string $redirect
* @param string|null $provider
* @param bool $personalAccess
* @param bool $password
* @param bool $confidential
* @return \Laravel\Passport\Client
*/
public function create($userId, $name, $redirect, $provider = null, $personalAccess = false, $password = false, $confidential = true)
{
$client = Passport::client()->forceFill([
'user_id' => $userId,
'name' => $name,
'secret' => ($confidential || $personalAccess) ? Str::random(40) : null,
'provider' => $provider,
'redirect' => $redirect,
'personal_access_client' => $personalAccess,
'password_client' => $password,
'revoked' => false,
]);
$client->save();
return $client;
}
/**
* Store a new personal access token client.
*
* @param int|null $userId
* @param string $name
* @param string $redirect
* @return \Laravel\Passport\Client
*/
public function createPersonalAccessClient($userId, $name, $redirect)
{
return tap($this->create($userId, $name, $redirect, null, true), function ($client) {
$accessClient = Passport::personalAccessClient();
$accessClient->client_id = $client->getKey();
$accessClient->save();
});
}
/**
* Store a new password grant client.
*
* @param int|null $userId
* @param string $name
* @param string $redirect
* @param string|null $provider
* @return \Laravel\Passport\Client
*/
public function createPasswordGrantClient($userId, $name, $redirect, $provider = null)
{
return $this->create($userId, $name, $redirect, $provider, false, true);
}
/**
* Update the given client.
*
* @param \Laravel\Passport\Client $client
* @param string $name
* @param string $redirect
* @return \Laravel\Passport\Client
*/
public function update(Client $client, $name, $redirect)
{
$client->forceFill([
'name' => $name, 'redirect' => $redirect,
])->save();
return $client;
}
/**
* Regenerate the client secret.
*
* @param \Laravel\Passport\Client $client
* @return \Laravel\Passport\Client
*/
public function regenerateSecret(Client $client)
{
$client->forceFill([
'secret' => Str::random(40),
])->save();
return $client;
}
/**
* Determine if the given client is revoked.
*
* @param int|string $id
* @return bool
*/
public function revoked($id)
{
$client = $this->find($id);
return is_null($client) || $client->revoked;
}
/**
* Delete the given client.
*
* @param \Laravel\Passport\Client $client
* @return void
*/
public function delete(Client $client)
{
$client->tokens()->update(['revoked' => true]);
$client->forceFill(['revoked' => true])->save();
}
/**
* Get the personal access client id.
*
* @return int|string|null
*/
public function getPersonalAccessClientId()
{
return $this->personalAccessClientId;
}
/**
* Get the personal access client secret.
*
* @return string|null
*/
public function getPersonalAccessClientSecret()
{
return $this->personalAccessClientSecret;
}
}
```
|
```shell
#!/bin/sh
# @cmd:
pyomo solve --solver=glpk -c abstract7.py
# @:cmd
rm -f results.yml results.json abstract7.pyomo abstract7.results
```
|
Richardson Lake may refer to:
Richardson Lake, Minnesota
Richardson Lakes (Maine)
Richardson Lakes, Antarctica
|
```c++
/*############################################################################
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
############################################################################*/
/// Main entry point for tiny member unit tests
/*! \file */
#include <gtest/gtest.h>
int main(int argc, char* argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
```
|
```python
import numpy as np
from .base import ScalarField
class NormalsScalarField(ScalarField):
def extract_info(self):
self.normals = self.pyntcloud.points[["nx", "ny", "nz"]].values
class InclinationDegrees(NormalsScalarField):
""" Vertical inclination with respect to Z axis in degrees.
"""
def compute(self):
inclination = np.arccos(self.normals[:, -1])
self.to_be_added["inclination_deg"] = np.rad2deg(inclination)
class InclinationRadians(NormalsScalarField):
""" Vertical inclination with respect to Z axis in radians.
"""
def compute(self):
inclination = np.arccos(self.normals[:, -1])
self.to_be_added["inclination_rad"] = inclination
class OrientationDegrees(NormalsScalarField):
""" Horizontal orientation with respect to the XY plane in degrees.
"""
def compute(self):
angle = np.arctan2(self.normals[:, 0], self.normals[:, 1])
# convert (-180 , 180) to (0 , 360)
angle = np.where(angle < 0, angle + (2 * np.pi), angle)
self.to_be_added["orientation_deg"] = np.rad2deg(angle)
class OrientationRadians(NormalsScalarField):
""" Horizontal orientation with respect to the XY plane in radians.
"""
def compute(self):
angle = np.arctan2(self.normals[:, 0], self.normals[:, 1])
# convert (-180 , 180) to (0 , 360)
angle = np.where(angle < 0, angle + (2 * np.pi), angle)
self.to_be_added["orientation_rad"] = angle
```
|
Wharfedale is one of the Yorkshire dales.
Wharfedale may also refer to:
Wharfedale (company), an electronics manufacturer
Wharfedale (ward), Bradford, West Yorkshire, England
Wharfedale Rural District, a former rural district in the West Riding of Yorkshire, England
Upper Wharfedale School, in North Yorkshire, England
See also
River Wharfe, Yorkshire, England
Wharf (disambiguation)
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package main
import (
"bytes"
"embed"
"flag"
"fmt"
"os"
"slices"
"strings"
"text/template"
anns "k8s.io/ingress-nginx/internal/ingress/annotations"
)
type Documentation struct {
Group string
Annotation string
Risk string
Scope string
}
var output string
//go:embed annotations.tmpl
var content embed.FS
func main() {
flag.StringVar(&output, "output", "", "where to write documentation")
flag.Parse()
if output == "" {
panic(fmt.Errorf("output field is required"))
}
docEntries := make([]Documentation, 0)
annotationFactory := anns.NewAnnotationFactory(nil)
for group, val := range annotationFactory {
annotations := val.GetDocumentation()
intermediateDocs := make([]Documentation, len(annotations))
i := 0
for annotation, values := range annotations {
doc := Documentation{
Group: group,
Annotation: annotation,
Scope: string(values.Scope),
Risk: values.Risk.ToString(),
}
intermediateDocs[i] = doc
i++
}
slices.SortStableFunc(intermediateDocs, func(a, b Documentation) int {
return strings.Compare(a.Annotation, b.Annotation)
})
docEntries = append(docEntries, intermediateDocs...)
}
slices.SortStableFunc(docEntries, func(a, b Documentation) int {
return strings.Compare(a.Group, b.Group)
})
tmpl, err := template.New("annotations.tmpl").ParseFS(content, "annotations.tmpl")
if err != nil {
panic(fmt.Errorf("error parsing template: %s", err))
}
tplBuffer := new(bytes.Buffer)
err = tmpl.Execute(tplBuffer, docEntries)
if err != nil {
panic(err)
}
tplBuffer.WriteString("\n")
//nolint:gosec // no need to check file permission here
if err := os.WriteFile(output, tplBuffer.Bytes(), 0o755); err != nil {
panic(err)
}
}
```
|
```kotlin
package mega.privacy.android.data.database
import androidx.sqlite.db.SupportSQLiteDatabase
/**
* Legacy database migration
*
*/
interface LegacyDatabaseMigration {
/**
* On upgrade
*
* @param db
* @param oldVersion old version of database
* @param newVersion new version of database
*/
fun onUpgrade(db: SupportSQLiteDatabase, oldVersion: Int, newVersion: Int)
/**
* On create
*
* @param db
*/
fun onCreate(db: SupportSQLiteDatabase)
}
```
|
René Tretschok (born 23 December 1968) is a German former professional footballer who played as a midfielder. As a player of Borussia Dortmund he was part of their Champions League victory in 1997. He scored an important goal in the semi-final of their victorious campaign against Manchester United, giving Dortmund a crucial 1–0 lead going into the second leg. He was then rewarded with a place on the bench in the final, however he remained unused for the entire match.
Coaching career
On 25 June 2009, he was named as the new manager of the Hertha BSC Under-19 squad. After Michael Skibbe was sacked as manager of Hertha on 12 February 2012, Tretschok was appointed caretaker.
Honours
Borussia Dortmund
Bundesliga: 1994–95, 1995–96
UEFA Champions League: 1996–97
DFL-Supercup: 1995
Hertha Berlin
DFL-Ligapokal: 2001, 2002
References
External links
Fussballschule Tretschok
1968 births
Living people
People from Bitterfeld-Wolfen
German men's footballers
East German men's footballers
Men's association football midfielders
Bundesliga players
2. Bundesliga players
Hallescher FC players
Borussia Dortmund players
Tennis Borussia Berlin players
1. FC Köln players
Hertha BSC players
Hertha BSC II players
SV Babelsberg 03 players
German football managers
Bundesliga managers
Hertha BSC managers
UEFA Champions League winning players
SV Babelsberg 03 managers
Footballers from Saxony-Anhalt
People from Bezirk Halle
|
Twisted may refer to:
Film and television
Twisted (1986 film), a horror film by Adam Holender starring Christian Slater
Twisted (1996 film), a modern retelling of Oliver Twist
Twisted, a 2011 Singapore Chinese film directed by Chai Yee Wei
Twisted (2004 film), a thriller starring Ashley Judd and Andy Garcia
Twisted (TV series), 2013
"Twisted" (Star Trek: Voyager), a television episode
Software and games
Twisted: The Game Show, a 1994 3DO game
Twisted (software), an event-driven networking framework
WarioWare: Twisted!, a 2005 game for the Game Boy Advance
Books
Twisted (short story collection), a short story collection by crime writer Jeffery Deaver
More Twisted, a second short story collection by Deaver
Twisted (Anderson novel), a novel by Laurie Halse Anderson
Twisted, a Pretty Little Liars novel by Sara Shepard
Brands
Creme Egg Twisted, a chocolate bar
Music
Twisted (musical), a parody of Disney's Aladdin
Record labels
Twisted Records (UK), a record label specializing in psychedelic trance
Twisted Records (U.S.), an electronic music record label
Albums
Twisted (Del Amitri album), 1995
Twisted (Hallucinogen album), 1995
Songs
"Twisted" (Annie Ross song), a 1952 jazz song, recorded by Lambert, Hendricks & Ross and covered by Bette Midler, Joni Mitchell and others
"Twisted" (Brian McFadden song)
"Twisted" (Keith Sweat song)
"Twisted" (Stevie Nicks song)
"Twisted" (Vandalism song)
"Twisted" (Wayne G song)
"Twisted", a song by Avail from their 1992 album Satiate
"Twisted", a song by Carrie Underwood from her 2007 album Carnival Ride
"Twisted", a song by Dio from their 1990 album Lock Up the Wolves
"Twisted", a song by Heidi Montag from her 2010 album Superficial
"Twisted", a song by Quiet Riot from their 1995 album Down to the Bone
"Twisted", a song by Phinehas from their 2013 album The Last Word Is Yours to Speak
"Twisted", a song by Skylar Grey, Eminem & Yelawolf from the 2014 album Shady XV
"Twisted", a song by rapper Tiffany Foxx
"Twisted (Everyday Hurts)", a song by Skunk Anansie from their 1996 album Stoosh
See also
Twiztid, an American hip hop duo
Twisted Pixel Games, an America game developer
Twist (disambiguation)
Twister (disambiguation)
sv:Twisted
|
Black Capes (Portuguese:Capas Negras) is a 1947 Portuguese musical film directed by Armando de Miranda and starring Amália Rodrigues, Alberto Ribeiro and Artur Agostinho. The film takes its name from the black capes worn by the students at the University of Coimbra. The film was an enormous success at the box office in both Portugal and Brazil, despite criticism in Coimbra that depictions of the city and its musical tradition were not accurately represented.
The film marked the debut of Amália Rodrigues, previously known as a radio star. The film's popularity led producers to rush out another film Fado: The Story of a Singer, which was loosely based on her own life story.
Cast
Amália Rodrigues as Maria de Lisboa
Alberto Ribeiro as José Duarte
Artur Agostinho as Manecas
Vasco Morgado as Jorge
Barroso Lopes as Coca-Bichinhos
Humberto Madeira as Já-Cá-Canta
António Sacramento as Judge
Graziela Mendes
Joaquim Miranda
Fernando Silva as Cunha, the pawnbroker
Manuela Bonito
Alfonso Branco
João Calazans
Cremilda de Sousa as Dancer
Maria Emília Vilas
Antonio Gonçalves as Dancer
Adozinda Mariano
Domingo Marques
Regina Montenegro
Passos Pereira
Génia Silva
Tomás de Macedo
References
Bibliography
Creekmur, Corey K. The International Film Musical. Oxford University Press, 2012.
External links
1947 films
1940s romantic musical films
Portuguese romantic musical films
1940s Portuguese-language films
Films directed by Armando de Miranda
Films set in Portugal
Films set in London
Films set in Madrid
Portuguese black-and-white films
|
```c++
//
// kern_compression.hpp
// Lilu
//
//
#ifndef kern_compression_hpp
#define kern_compression_hpp
#include <Headers/kern_config.hpp>
#ifdef COMPRESSION_SUPPORT
#include <Headers/kern_util.hpp>
#include <stdint.h>
/**
* CompressedHeader constants
*/
static constexpr uint32_t CompressedMagic {0x706D6F63}; //comp
static constexpr uint32_t CompressionLZVN {0x6E767A6C}; //lzvn
static constexpr uint32_t CompressionLZSS {0x73737A6C}; //lzss
/**
* CompressedHeader structure
*/
struct CompressedHeader {
uint32_t magic;
uint32_t compression;
uint32_t hash; // adler32
uint32_t decompressed;
uint32_t compressed;
uint32_t version;
uint32_t padding[90];
};
/**
* Typed decompressing function
*
* @param compression compression type
* @param dstlen decompression buffer size
* @param src compressed data
* @param srclen compressed data size
*
* @return decompressed buffer
*/
EXPORT uint8_t *decompressData(uint32_t compression, uint32_t dstlen, uint8_t *src, uint32_t srclen);
#endif /* COMPRESSION_SUPPORT */
#endif /* kern_compression_hpp */
```
|
```shell
# $OpenBSD: reconfigure.sh,v 1.9 2021/06/10 09:46:28 dtucker Exp $
# Placed in the Public Domain.
tid="simple connect after reconfigure"
# we need the full path to sshd for -HUP
start_sshd
trace "connect before restart"
${SSH} -F $OBJ/ssh_config somehost true
if [ $? -ne 0 ]; then
fail "ssh connect with failed before reconfigure"
fi
PID=`$SUDO cat $PIDFILE`
rm -f $PIDFILE
$SUDO kill -HUP $PID
trace "wait for sshd to restart"
i=0;
while [ ! -f $PIDFILE -a $i -lt 10 ]; do
i=`expr $i + 1`
sleep $i
done
test -f $PIDFILE || fatal "sshd did not restart"
trace "connect after restart"
${SSH} -F $OBJ/ssh_config somehost true
if [ $? -ne 0 ]; then
fail "ssh connect with failed after reconfigure"
fi
trace "reconfigure with active clients"
${SSH} -F $OBJ/ssh_config somehost sleep 10 # authenticated client
${NC} -d 127.0.0.1 $PORT >/dev/null & # unauthenticated client
PID=`$SUDO cat $PIDFILE`
rm -f $PIDFILE
$SUDO kill -HUP $PID
trace "wait for sshd to restart"
i=0;
while [ ! -f $PIDFILE -a $i -lt 10 ]; do
i=`expr $i + 1`
sleep $i
done
test -f $PIDFILE || fatal "sshd did not restart"
trace "connect after restart with active clients"
${SSH} -F $OBJ/ssh_config somehost true
if [ $? -ne 0 ]; then
fail "ssh connect with failed after reconfigure"
fi
```
|
Olympic Theatre was the name of five former 19th and early 20th-century theatres on Broadway in Manhattan and in Brooklyn, New York.
First Olympic Theatre (1800–1821)
Although perhaps best known as the Anthony Street Theatre, the first theatre in New York to bear the name Olympic (for only one year, in 1812–1813) was on 79–85 Anthony Street (later renamed Worth Street) in Manhattan. Converted in 1800 from a former circus building, it was named the Olympic Theatre in July 1812 under the management of actor-manager William Twaits along with Alexander Placide and Jean Baptiste Casmiere Breschard. Twaits and Placide had come to New York after the disastrous Richmond Theatre fire in Richmond, Virginia, where they had been co-managers of the theatre there. The Olympic was due to open with a production led by Charlotte Melmoth and Twaits, but while travelling to fulfil this engagement Melmoth was involved in a carriage accident, resulting in a severe fracture to her arm that failed to heal, forcing her to give up her acting career. Circus acts continued to appear there throughout this period.
The theatre was renovated and redecorated in 1813 when it was named the Anthony Street Theatre, becoming the Commonwealth Theatre in 1814 and the Pavilion Theatre in 1816 and reverting to Anthony Street Theatre in 1820. During the 1820–1821 season, the theatre was the home of the acting company of the Park Theatre while their own theatre was being rebuilt after having burnt down. With this company Edmund Kean made his first appearance to much acclaim in New York in Richard III. The theatre was demolished in 1821 shortly after the Park Theatre company left, following which the plot was bought for the Christ Episcopal Church.
Second Olympic Theatre (1837–1852)
The second Olympic Theatre was built on 444 Broadway, near Grand Street in New York, in 1837. It was designed by the architect Calvin Pollard, who modeled it on the Olympic Theatre in London, which concentrated on Victorian burlesque, a form of theatrical parody, often of opera or classic plays. It was built by Willard and Blake, who struggled as managers and leased it, at first, to a series of even less successful managers.
In 1839 actor-manager William Mitchell took over the theatre and offered parodies and comic entertainments at reduced prices. The house became known as Mitchell's Olympic Theatre. One of his entertainments was Amy Lee, or Who Loves Best? (1839), a parody version of Amilie, or the Love Test. Noteworthy musicals produced at the theatre included 1940! (1840) and A Glance at New York in 1848 (1848). After his retirement in 1850, it became a German-language theatre and minstrel hall. The theatre changed ownership in 1852 and continued to operate as "George Christy and Wood's Minstrels". The building burned down in December 1854 in a fire that destroyed several connected buildings, across which the City Assembly Rooms extended on an upper floor.
Productions
The Deep, Deep Sea (1835 and 1837) – musical play by Charles Dance and James Planché
Sam Parr, with His Red Coarse Hair (1839) – burlesque version of Zampa, the Red Corsair, by William Mitchell
Amy Lee, or Who Loves Best? (1939) – burlesque version of Amilie, or the Love Test, by William Mitchell
The Strange Gentleman/The Roof Scrambler (1839–1840) – musical burlesque
1940! (1840) – musical extravaganza by A. Allan
The Cat's in the Larder (1840–1841) – musical burlesque by James Henry Horncastle
The Bohea-man's Girl (1845) – burlesque of The Bohemian Girl, by B.A. Baker
A Glance at New York In 1848 (1848) – original musical
Third Olympic Theatre (1856–1880)
The third Olympic Theatre was located on 622 Broadway, near Houston Street in New York. It was built in 1856 to a design by architect John M. Trimble as Laura Keene's Theatre under the management of Laura Keene, a popular actress of the time. Keene had lost her lease on the Metropolitan Hall (Tripler Hall), and she relocated her Varieties to this theatre. The stage manager in the 1860s was Harry Eytinge. Many of Keene's productions had music by Thomas Baker and starred Joseph Jefferson.
Under Keene's management, the theatre saw a number of notable premieres including Our American Cousin in 1858 by English playwright Tom Taylor when the title character was played by Jefferson with Edward Askew Sothern as Lord Dundreary. Keene was acting in the play at Ford's Theatre in Washington, D.C., on 14 April 1865 when United States President Abraham Lincoln, in the audience, was assassinated by actor and Confederate sympathizer John Wilkes Booth. Other works to receive their premieres here included the melodrama The Colleen Bawn by Dion Boucicault (1860) and the long-running musical The Seven Sisters (1860–1861). In The Colleen Bawn, Keene played Anne Chute with Boucicault playing Myles na Coppaleen.
After Keene left in 1863 the theatre was renamed the Olympic and was managed by a number of actresses, including Mrs. John Wood (c. 1866). The theatre closed in 1880 and was demolished in the same year.
Productions (as Laura Keene's Theatre)
The Elves (1857) – musical with music by Thomas Baker
The Heir at Law (1857) – play by George Colman
The Lyons Mail (1858) – by Charles Reade
Our American Cousin (1858–1859) – play by Tom Taylor
The Colleen Bawn (1860) – by Dion Boucicault
Jenny Lind (1860) – musical farce by Joseph Jefferson, with music by Thomas Baker
The Seven Sisters (1860–1861) – original burlesque by Thomas B. DeWalden with music by Thomas Baker
Productions (as the Olympic Theatre)
L'Assommoir (1879) – play by Augustin Daly
The Scouts of the Plains; or, The Peril of the Frontier (1878) – western by Texas Jack Omohundro
Bluebeard (1872) – pantomime by Henry Brougham Farnie
Humpty Dumpty (1871–1872) – pantomime by Mon. F. Strebinger and George L. Fox
Horizon (1871) – play by Augustin Daly
Wee Willie Winkie (1870–1871) – pantomime with music by Mon. F. Strebinger; libretto by George L. Fox
The Fair One in the Golden Wig (1870) – burlesque: Mrs Alice Oates and her company
The Daughter of the Regiment, or the 800 Fathers (1870) – Mrs Alice Oates and her company
The Field of the Cloth of Gold (1870) – Mrs Alice Oates and her company
Little Faust (1870) – opera by Hervé: Mrs Alice Oates and her company
Macbeth (1870) – music by Matthew Locke
Hamlet (1870) – written by Thomas Cooper de Leon
Paul Pry (1870) – play by John Poole
The Writing on the Wall (1870) – play by John Maddison Morton
Under the Gaslight (1869) – play by Augustin Daly
The Streets of New York, or Poverty is No Crime (1869) – play by Dion Boucicault
Uncle Tom's Cabin (1869) – play by George Aiken
Hiccory Diccory Dock (1869) – pantomime by George L. Fox
Humpty Dumpty (1869) – pantomime with music by Anthony Reiff; written by George L. Fox
The Rose of Castile (1867) – opera with libretto by Augustus Harris and Edmund Falconer to a score by Michael William Balfe
The Bohemian Girl (1867) – opera by Michael William Balfe and Alfred Bunn
The Doctor of Alcantara (1867) – opera with music by Julius Eichberg; libretto by Benjamin Edward Woolf
Fra Diavolo (1867) – opera with music by Daniel Auber; original French libretto by Eugène Scribe
Maritana (1867) – opera with music by William Vincent Wallace; libretto by Edward Fitzball
Rip van Winkle or The Sleep of Twenty Years (1866) – play by Dion Boucicault
Po-Ca-Hon-Tas (1866) – musical with score by James Gaspard Maeder; written by John Brougham
The Rose of Castile (1864) – opera with libretto by Augustus Harris and music Edmund Falconer
The Bohemian Girl (1864) – opera with libretto by Alfred Bunn
Brother and Sister (1863) – musical with score by Sir Henry Bishop; libretto by William Dimond
Fourth Olympic Theatre (1908–1928)
The fourth Olympic Theatre in New York was located on 143 East 14th Street in Manhattan. Built in 1868 for the Tammany Society, the building had an auditorium big enough to hold public meetings, and a smaller one that became the Olympic Theatre. The structure was topped off by a larger-than-life statue of Saint Tammany. The smaller auditorium was renamed Bryant's Minstrel Hall in 1868 when it became the home of Don Bryant's Minstrels. After Bryant's Minstrels left, the theatre was leased to a German company:
Tammany Hall merged politics and entertainment, already stylistically similar, in its new headquarters. ... The Tammany Society kept only one room for itself, renting the rest to entertainment impresarios: Don Bryant's Minstrels, a German theater company, classical concerts and opera. The basement – in the French mode – offered the Café Ausant, where one could see tableaux vivant, gymnastic exhibitions, pantomimes, and Punch and Judy shows. There was also a bar, a bazaar, a Ladies' Café, and an oyster saloon. All this – with the exception of Bryant's – was open from seven till midnight for a combination price of fifty cents.
In 1881 Tony Pastor took over the lease, renaming the venue Tony Pastor's 14th Street Theatre and making the theatre New York's most famous vaudeville house during the 1880s and 1890s. After Pastor left in 1908 the theatre was renamed the Olympic and became a burlesque house until Tammany Hall was sold in 1928 and demolished in the same year.
Fifth Olympic Theatre (1925–1927)
The fifth theatre in New York to bear the name Olympic was located at 365 Fulton Street in Brooklyn, New York. Built by the impresarios Hyde and Benham, it was originally called Hyde & Behmans Theater and was one of the leading vaudeville theatres in America during the late 19th- and early 20th-centuries. This theatre was remodeled as the 2,000-seat Olympic Theatre, which opened on Labor Day, 1925. In 1926 an organ was installed in the theatre by the M. P. Moller company of Hagerstown, Maryland. In 1927 the Olympic became a movie theatre called the Tivoli Theatre. From 1942 the Tivoli was part of the Century Theatres circuit, and by 1950 it was operated by Liggett-Florin Booking Service. The Tivoli Theater closed in 1952 and, after being damaged by a fire in 1954, was demolished.
References
External links
List of Broadway theatres called "Olympic", Internet Broadway Database
Former theatres in Manhattan
1800 establishments in New York (state)
1837 establishments in New York (state)
1856 establishments in New York (state)
1908 establishments in New York City
Theatres completed in 1856
1821 disestablishments in New York (state)
1852 disestablishments in New York (state)
1880 disestablishments in New York (state)
1928 disestablishments in New York (state)
19th century in New York City
20th century in New York City
|
Eric MacKenzie (born 1938) is an educator and former political figure in New Brunswick, Canada. He represented Fredericton-Fort Nashwaak in the Legislative Assembly of New Brunswick from 1999 to 2003 as a Progressive Conservative member.
He was born in Moncton, New Brunswick, the son of Daniel MacKenzie. After graduating from high school, he served in the Canadian Navy. He went on to study at the University of New Brunswick and St. Thomas University. He was a math teacher in Fredericton, also teaching in Bagotville, Quebec and St. Andrews.
MacKenzie was defeated when he ran for reelection in 2003. He later served on the executive committee of the National Capital Commission in Ottawa. In 2007, he was named to the board of directors for the New Brunswick Capital Commission.
References
New Brunswick MLAs, New Brunswick Legislative Library (pdf)
1938 births
Living people
Politicians from Moncton
Progressive Conservative Party of New Brunswick MLAs
21st-century Canadian politicians
|
Lucy Hiller Lambert Cleveland (1780–1866) was an American writer, diarist, traveller, artist, and social reformer. She was a significant folk artist of antebellum America, as well as writing and illustrating over a dozen children's books.
Life
Lucy Hiller was born in Salem, Massachusetts, in 1780, the youngest daughter of Major Joseph Hiller (1748–1814), a clockmaker and silversmith, and Margaret Cleveland Hiller (1748–1804). In 1803, the family moved to Lancaster, Massachusetts, where Lucy married Captain William Lambert in 1806. She was widowed just a year later, and returned to Salem to live with her older sisters, Dorcas and Mary, who had married brothers. Lucy's father died in 1814, followed by her sister Mary in 1815. The next year, Lucy married her widowed brother-in-law, Captain William Cleveland.
The couple moved to Salem in 1821, William active in the maritime trade, and Lucy as an author of books for children. In November 1828, Lucy, along with her stepson James Cleveland, boarded the Zephyr, and embarked on a trading voyage with William Cleveland to Timor, where he was travelling to acquire sandalwood, for sale in China. A passport issued for the trip survives. The trip lasted just under a year, during which time Lucy kept a travel diary, and an illustrated sketchbook. Her two dozen sketches depicted scenes of everyday life in and around Timor and Macau. In Macau, the group encountered their fellow American, the writer Harriet Low, who described the meeting in her own diary.
Between 1827 and 1842, Lucy Hiller Cleveland wrote, illustrated, and anonymously published over a dozen books for children, on topics including temperance, abolition, and 'social benevolence'. As well as writing, Cleveland also produced a number of folk sculpture 'vignettes', showing various scenes of American life. She entered these 'figures of rags' into a number of charitable fairs. In 1844, aged 64, she was awarded a diploma by the Mechanics' Literary Association of Rochester, New York, for the best "Specimen of Figures of Rags". In 1852, an entry into the Shirtwoman's Union Fair in New York City raised twenty dollars to assist women garment workers.
From the 1830s to 1860s, Cleveland made at least eleven vignettes, using a wide range of materials, including cotton, silk, wool, leather, and human hair. She embellished them with beads, glass, embroidery, and paint. Aimee E. Newell quotes from a letter Cleveland wrote to her stepson, in which she describes her enjoyment of the process:I have been quite at my old trade since here stuffing + dressing, and 'hiking into shape'... It gives great satisfaction.Cleveland spent much of her life caring for sick and ailing relatives, and Newell notes that some of her vignettes likely drew on this experience, particularly in depicting the sick room. Towards the end of her life, Cleveland kept a book of poems, in which she wrote regarding her own thoughts, as well as to mark the special occasions of friends and family members.
Lucy Hiller Lambert Cleveland died in 1866 at the age of 86. Works of hers are held by the Peabody Essex Museum in Salem, as are her albums and manuscripts.
Bibliography
The little girl who was taught by experience (1827)
The black velvet bracelet (1828)
The closet (1828)
Early impressions (1828)
Original moral tales: intended for children and young persons, containing Temptation (1828)
Annette Warington, or, Sequel to The black velvet bracelet (1832)
The adventures of Willson Avery (1833)
Clara Newgent, or, The progress of improvement: a tale (1833)
The unveiled heart: a simple story (1835)
The carpenter and his family: also, Pride subdued (1835)
References
External links
List of works by Lucy Hiller Cleveland at WorldCat
1780 births
1866 deaths
American folk art
American women artists
American women writers
People from Salem, Massachusetts
Peabody Essex Museum
|
```javascript
import { END_TYPE, FREQUENCY } from '@proton/shared/lib/calendar/constants';
import getFrequencyModelChange from './getFrequencyModelChange';
const frequencyModel = {
type: FREQUENCY.CUSTOM,
frequency: FREQUENCY.DAILY,
interval: 1,
daily: {
type: 0,
},
weekly: {
type: 0,
days: [4],
},
monthly: {
type: 0,
},
yearly: {
type: 0,
},
ends: {
type: END_TYPE.UNTIL,
count: 2,
until: new Date('2020-07-16T00:00:00.000Z'),
},
};
describe('Form update', () => {
it('should update end date if new start date is in the future', () => {
const newDate = new Date('2020-09-09T11:30:00.000Z');
const { ends } = getFrequencyModelChange(
{
date: new Date('2020-05-16T00:00:00.000Z'),
},
{
date: newDate,
},
frequencyModel
);
expect(+ends.until).toBe(+newDate);
});
});
```
|
"The Wah Wah Collective" were a British, initially a London-based neo-soul underground music group, who released vinyl-only EPs and singles in the mid 2000s. The music group gained notoriety for their mixture of neo-soul, nu-jazz, Latin grooves with alternative dance. In more recent years the band have described their music as 'Eclectic Soul'. The Wah Wah Collective founding members were George Eyo and Najero Okenabirhire (The Elusive). The Wah Wah Collective were on the Greasy Geezers imprint label distributed by Kudos Records, Discograpgh (France), Goya and Pinnacle. The Greasy Geezers label was the creation of Najero Okenabirhie who previously worked with Sanctuary Music Management. The sister arm of the Wah Wah Collective were a Latin /acoustic based group called Gafanhoto Lingo an additional project created by The Wah Wah Collective founding members. Gafanhoto Lingo were accompanied by songwriter/ guitarist Mathieu Karsenti.
Critical reception
The Wah Wah Collective were warmly received by the UK underground urban media in the mid 2000s. Wah Wah releases were often reviewed by genre leading UK publications.
"Pete Mclntyre, IDJ Magazine – R&B Soul Tunes Review, March 2004"
" 'London's Wah Wah Collective under the guidance of veteran producer Georgeyo hit playdirt with this superb double-header. 'Tell Me Why' is a superb late night slinky groove featuring the feline purr of vocalist Fiona Faye; Flip-over to 'Gordo' for a breezy Cuban influenced dancer guaranteed to get you moving. Excellent.".
"Dom Servini, Straight No Chaser – Singles Review, Spring 2004"
" 'Not to be confused with the record label with the same name, The Wah Wah Collective come through with their second 12" release, and it's the best so far. Fiona Faye's vocals fit really nicely in to this downtempo jazz ditty with its tender fender rhodes and soulful strings. Perfect after-hours listening".
"Matilda Egere-Cooper, Blues & Soul Magazine – Singles Review, April 2004"
"'This is R&B jazz well done. Producer Georgeyo has built up an impressive track record over the last few years, and the track offers a snapshot of his predominantly jazz sound, with other styles sneaking in here and there. Track number two 'Gordo', provides more of an earthly vibrant percussive vibe-straight out of Cuba – and where 'Tell Me Why' whispers 'sun-down', this one is sunny Balearic beach bar music. If that's your thing. You'll dig it. (Verdict : Smooth soul vibrations for the sophisticated set)".
Radio reception
Several titles from the Wah Wah Collective roster were supported with UK National Radio airplay on shows such as Rosie Kendrick (Late Lounge) (Smooth 102.2 FM), Patrick Forge (The Cosmic Jam – Kiss 100 FM) and also on US radio with pioneering groove jazz radio DJ Rafe Gomez who hosted the nationally syndicated radio show "The Groove Boutique" from 2003 through to 2008.
The mid-2000s
After releasing several tiles on vinyl the music group decided to venture in to different projects. Georgeyo set up another left field group called Stark (Futuristica Music). Najero left the band and set up I-innovate Communications a video production / indie label. I-innovate (UK) who maintained ownership of the Greasy Geezers label roster and music archive. Greasy Geezers the imprint was disbanded and turned in to a dance production house under the I-innovate (UK) label.
Mathieu Karsenti former guitarist/vocalist for Gafanhoto Lingo went on to set up the production and composing company Intricuts music focusing on music compositions for TV, film, theatre and multimedia. Notable clients were the Britain's Got Talent, Series 3 (ITV, 2009) winners Diversity and BBC Children in Need.
2010 onwards
I-innovate (UK) used The Wah Wah Collective archive to resample and release a single by performer Bada Badoo from X-Factor, UK series 7 (ITV/SYCO, 2010). Conceptual Love was based on the unreleased Wah Wah Collective song 'Quartet Junkie'. A future Wah Wah Collective album was planned to be released by I-innovate (UK) showcasing unreleased material and digitally re-mastered versions of their original vinyl releases over the last ten years with additional contributions from affiliated artists.
Cry Baby Soul the long-awaited debut album by The Wah Wah Collective was released on 24 February 2014 showcasing remastered versions of previous releases alongside new recordings. The digital release was accompanied by vinyl re-issues.
Promotion
From September 2012, The Wah Wah Collective released rare groove hip hop based tasters to support their forthcoming album Cry Baby Soul. The tasters supported an 'eclectic soul' theme later found on the album.
In August 2013, wah wah promo material 'You Are Somebody (Eternal Inspiration)' featured on the US/San Francisco based compilation 'Earwax ZipTape Delta' (Allied Forces Press).
In 2014, The Wah Wah Collective twitter brand @thewahmama was nominated for The 2013 Shorty Awards for Best Social Media Campaign.
Discography
Singles and EPs
"Everytime" (Greasy Geezers, vinyl re-issue 2014)
"Prying Eyes" (Greasy Geezers, vinyl re-issue 2014)
"Tell Me Why" (I-innovate (UK), 2004–13)
"Gordo" (Greasy Geezers, vinyl re-issue 2014)
"Life on Your Mind" (Gafanhoto Lingo) (Greasy Geezers, 2004)
Albums
Cry Baby Soul (I-innovate (UK), 2014)
References
External links
MTV Artists Profile: The Wah Wah Collective
OneLuvFM (France) Featured Artists
Niji Magazine - The Wah Wah Collective Spotlight Feature
BBC Music - The Wah Wah Collective
Sound Fusion Radio (UK) Featured Artists
The Wah Wah Collective on Rootdown FM (US)
The Wah Wah Collective Discog's Page
Gafanhoto Lingo Discog's Page
English dance music groups
Alternative dance musical groups
Musical groups established in 2003
Musical groups from London
British electronic music groups
British soul musical groups
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>browser-esm-vite-react</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
```
|
Frederick Augustus Hervey, 4th Earl of Bristol, (1 August 1730 – 8 July 1803), was an 18th-century Anglican prelate.
Elected Bishop of Cloyne in 1767 and translated to the see of Derry in 1768, Hervey served as Bishop of Derry until his death in 1803.
He is remembered for designing mansions at Downhill and Ballyscullion, and he was known as the Edifying Bishop or the Earl-Bishop (in allusion to prince-bishop).
Early life
Frederick Hervey was born in Suffolk, and attended Westminster School before going up to Corpus Christi College, Cambridge, where he read Law. He took an MA degree in 1754 and was later awarded a DD (Cantab) in 1770.
Titles
Accorded the courtesy style The Honourable after his father's death in 1743, both of his brothers died without an heir. Thus he succeeded his immediate elder brother, Admiral Augustus Hervey, 3rd Earl of Bristol, in the title in December 1779, becoming the 4th earl. He also inherited the Hervey family's extensive ancestral estates centred on Ickworth House in Suffolk.
Hervey conceived the redevelopment of the Ickworth estate to a standard appropriate to his family's wealth, with the added practical purpose of housing his extensive art collection. Work started in 1794, but so ambitious was the project that by the time of his death in 1803 only the Rotunda had been constructed. However, his son Frederick (later Marquess of Bristol) took over and completed his father's vision for Ickworth House, eventually completing the wings and its gardens in 1830.
In 1799 the Howard de Walden barony by writ was called out of abeyance by the House of Lords Committee of Privileges in the 4th Earl of Bristol's favour. Thus he succeeded as 5th Baron Howard de Walden, a title which devolved upon him via his grandmother (Elizabeth, Countess of Bristol, the 1st earl's 2nd wife), who was daughter and heiress of Sir Thomas Felton and great-great-granddaughter of Sir Thomas Howard, KG (created a baron 1597).
Styled Bishop Hervey after his consecration on 31 May 1767, the following year he was translated as Lord Bishop of Derry, which became his formal ecclesiastical style until his death in 1803.
Church career
Hervey was ordained in 1754 as a Fellow of Corpus Christi College and then became Clerk of the Privy Seal in 1756 and Principal Clerk in 1761 before appointment as a Royal chaplain in 1763.
Hervey then set off on an extended Grand Tour while awaiting ecclesiastical preferment. During his European travels, he developed his already insatiable passion for art.
His eldest brother, George, 2nd Earl of Bristol, became Lord Lieutenant of Ireland in 1766 and helped to secure his election as Bishop of Cloyne in 1767. Hervey displayed great enthusiasm for improving the property of the see of Cloyne which opened the way for his translation to the well endowed bishopric of Derry a year later. As Bishop of Derry, Hervey quickly developed a reputation for being "the most worldly, most eccentric, most talked-about priest in the Church of Ireland".
Hervey was Derry's most generous philanthropist, although some of the clergy in his diocese came to regard him as cheerfully sadistic, for such instances as when he instructed any portly priests coveting plum promotions to compete in midnight runs through bogs and marshland.
Given his family's wealth, Hervey both enjoyed personal luxury and expended large sums on building roads and developing agricultural enterprise within his diocese, including within the City of Derry.
Hervey was especially keen on architectural design and built mansions at Downhill and Ballyscullion; he then filled them with works of art from Italy and elsewhere.
Political activity
Hervey favoured absolute religious equality, and opposed the feudal system of tithes. Having again passed some time in Italy, he returned to Ireland and in 1782 threw himself ardently into the Irish Volunteer Movement, quickly attaining a prominent position among the volunteers. With much pomp, he arrived at an Irish nationalist convention held at Dublin in November 1783. Buoyed by his status and popularity Bishop Hervey let slip some scurrilous talk of rebellion which led the British government to contemplate his arrest.
After this Hervey took no further part in British politics, spending his later years mainly on the continent of Europe. In 1798 he was imprisoned by the French at Milan for suspected espionage and was held in custody for eighteen months.
Upon his release, Hervey headed for Rome. En route at Albano, he needed overnight accommodation, which was offered by an Italian peasant by way of an outhouse; he and his wife were opposed to welcoming a Protestant into their house. The Lord Bishop died there outdoors at Albano. The earl's body was repatriated to England before being buried at Ickworth.
Elected a Fellow of the Royal Society in 1782, the following year Hervey received the Freedom of the City of Dublin as well as of Derry.
Personality
Varying estimates have been found of his character. He was considered clever and cultured, but licentious and eccentric. He was a great collector of art and in later life, he openly professed materialistic opinions. Hervey fell in love with Wilhelmina, Countess von Lichtenau, King Frederick William II of Prussia's mistress, and by his bearing and often unusual and ostentatious style of dress he gave fresh point to Voltaire's original saying: "when God created the human race, he made men, women and Herveys".
During his European travels, and especially during his frequent visits to Rome, Hervey was known to walk around wearing a broad-brimmed white hat, many gold chains and red breeches, in what was perceived as a possible attempt to upstage his Catholic rivals.
As a bishop, Hervey was industrious and vigilant (despite his long absences from Ireland) albeit having once declared himself an agnostic. King George III, bemused by his behaviour, began referring to Bishop Hervey as "that wicked prelate"!
It is said that Hervey's knowledge of fine things in Europe and love of travelling and staying in luxury inspired the fashion for naming a hotel the Hotel Bristol. The use of this name is meant to be synonymous with the finest accommodation and living throughout the Continent; the implication being that if Hervey were in town, that is where he would stay.
Family
The Hon. Frederick Hervey married, in 1752, Elizabeth Davers (*1733-02-01; †1800-12-19), daughter of Sir Jermyn Davers Bt MP, a great-granddaughter of Thomas, 2nd Baron Jermyn, as well as being sister and heiress of Sir Charles Davers Bt MP (1737–1807).
By their marriage, Hervey had four sons and three daughters:
Lady Mary Caroline Hervey (1753–1842); married John Crichton, 1st Earl Erne, the couple later separated.
George (1755–1765); died of illness aged nine, at Spa, Belgium, while the family was travelling.
John "Jack" Augustus Hervey, Lord Hervey (1757–1796); Captain RN, married Elizabeth Drummond and predeceased his father, leaving issue one daughter (qv. Baron Seaford)
Lady Elizabeth Christiana Hervey (1758–1824); longtime mistress and later second wife of William Cavendish, 5th Duke of Devonshire KG.
Short-lived son (b. and d. 1761)
Lady Louisa Theodosia Hervey (1767–1821); married Robert Jenkinson, 2nd Earl of Liverpool KG and Prime Minister, 1812–1827.
Frederick Hervey, 1st Marquess of Bristol (1769–1859); styled by courtesy Lord Hervey after 1796.
In 1782, after 30 years of marriage, Hervey and his wife separated. The two never saw each other again, although Hervey regularly corresponded with his children, including the youngest daughter Louisa, who lived with her mother.
When Hervey died in 1803 in Lazio, Italy, his son Frederick succeeded as 5th Earl of Bristol as well as to the family estates including Ickworth House. The title of Baron Howard de Walden however passed to his great-grandson Charles Ellis, son of the 1st Baron Seaford, son of The Hon. Elizabeth Hervey (only child of Jack, Lord Hervey).
See also
Ickworth House
Marquess of Bristol
Hotel Bristol
References
Notes
Caroline Chapman & Jane Dormer, Elizabeth and Georgiana, John Wiley & Sons Inc., 2002.
Brian Fothergill, The Mitred Earl: Frederick Hervey, Earl of Bristol and Bishop of Derry: An Eighteenth-Century Eccentric, Faber & Faber, London, 2011.
Stephen Price, The Earl Bishop, Great Sea, Port Stewart, 2011.
External links
burkespeerage.com
1730 births
1803 deaths
Frederick Hervey, 4th Earl of Bristol
104
105
Ordained peers
Doctors of Divinity
People educated at Westminster School, London
Alumni of Corpus Christi College, Cambridge
Fellows of Corpus Christi College, Cambridge
Anglican bishops of Derry
Anglican bishops of Cloyne
18th-century Anglican bishops in Ireland
19th-century Anglican bishops in Ireland
Members of the Privy Council of Ireland
Fellows of the Royal Society
|
Maximilian Joseph von Tarnóczy (Hungarian: Tarnózy Miksa) (24 October 1806 – 4 April 1876) was an Austrian Cardinal and Archbishop.
He was born in Schwaz on 24 October 1806, the son of Franz Xaver von Tarnóczy (Tarnóczy Ferenc), a Hungarian-Bavarian nobleman (1756–1837) and his second wife, Catherine von Sprinzenberg (1776–1837). He studied in Innsbruck and Salzburg and in 1829 became a priest. In 1832 he received a doctorate in theology and worked as a teacher at the Salzburg Lyceum.
In 1850 he was appointed Archbishop of Salzburg, a position he held until his death in 1876.
As Archbishop of Salzburg, Tarnóczy wielded huge power in Rome, so much so that when he arrived at the First Vatican Council, Pope Pius IX welcomed him with the words, "Ecco il mezzo papa, che puo far dei vescovi" ("See the demi-Pope, who can make Bishops"). The Archbishop of Salzburg had the power to ordain and consecrate the Bishop of Gurk; a power Tarnóczy exercised when he consecrated Prince-Bishop Valentin Wiery in 1858.
Pope Pius IX elevated Tarnóczy to the rank of Cardinal the consistory of 22 December 1873 and appointed him Cardinal-Priest of Santa Maria in Aracoeli.
He died on 4 April 1876 at age 69.
References
1806 births
1876 deaths
People from Schwaz
Roman Catholic archbishops of Salzburg
19th-century Austrian cardinals
Cardinals created by Pope Pius IX
|
The fall of Fallujah was a battle in the city of Fallujah in western Iraq that took place from late 2013 to early 2014, in which ISIL and other Sunni insurgents captured the city of Fallujah. It was one of the first Iraqi cities to fall out of the control of the Iraqi Government, and resulted in the Anbar campaign.
Battle
On 30 December 2013, Iraqi forces dismantled a Sunni protest camp, which angered many people. Gunmen proceeded to attack deployed army patrols on the highway.
On 2 January 2014, Al-Qaeda seized control of parts of the town, as well as nearby Ramadi. After the army withdrew from the area ISIS fighters and its allies entered both cities. Many videos showed ISIS forces clashing with police forces, and ISIS attacks and seizures on the main police station. 100 inmates were freed, weapons and ammunition were seized, and most police forces abandoned their posts.
On January 3, the town was reportedly under the control of Sunni Rebels, but Iraq said the city remained contested. The rebels raised their flag in Fallujah, took over all police stations, and military posts after security forces left the city, set police vehicles ablaze and brandished their weapons.
On January 4, the town was taken by Sunni Rebels and Al-Qaeda fighters. The Iraqi army shelled the city with mortars in an attempt to wrestle back the town, but resulted in the deaths of 8 people and wounded 30, while 60% of the town was reported to be under rebel control. Much later, Prime Minister Nouri al-Maliki vowed to eliminate "all terrorist groups" in a statement on national television. The police chief of the Anbar said that Iraqi forces were in control of the outskirts of Fallujah, but the city itself was held by ISIS and its allies. Sunni tribesmen refused to let Iraqi forces into the city, but held negotiations with them. Iraqi forces proceeded to shell the city from a nearby military base, before eventually withdrawing.
Aftermath
Four months later, the War in Iraq of 2013 to 2017 escalated. Two years later, Iraqi Government recaptured the city.
See also
Fall of Mosul
Second Battle of Tikrit
Anbar campaign (2015–2016)
Battle of Ramadi (2014–2015)
Battle of Ramadi (2015–2016)
List of wars and battles involving ISIL
References
Conflicts in 2013
Conflicts in 2014
Military operations of the Iraqi Civil War in 2014
Military operations of the War in Iraq (2013–2017) involving the Islamic State of Iraq and the Levant
Military operations of the War in Iraq (2013–2017) involving the al-Nusra Front
December 2013 events in Iraq
January 2014 events in Iraq
Battles in 2013
Fallujah, Fall of
|
```java
Using specific exception types in the `throws` clause
The distinction between checked and unchecked exceptions
Prevent `exceptions` while logging Data
Throwing an `exception`
Checking a double for `NaN` value
```
|
Terry and Lander Halls are two student residence halls of the University of Washington. They have occupied various buildings over the years, have always been residence halls and always next to each other until the current construction which has Maple Hall between them.
The set of buildings was named for Charles and Mary Terry and Judge Edward Lander, who contributed part of the land for the original Territorial University's Seattle campus in 1861.
History
The original Lander Hall was built in 1917 as the Aviation Dormitory for the U.S. Naval Training Camp, known as USNTC Building #39. After 1919 it served as the Men's Dormitory until it was torn down in 1928. It was designed by the Bremerton Navy Yard and was located southwest of the stadium along Montlake Boulevard. The original Terry Hall was built as the Naval Officers Dormitory in 1917 and known as USNTC Building #40. After the war it became the Men's Dormitory. It was located southwest of the stadium next to Lander Hall (#056). Also designed by the Bremerton Naval Yard, it was torn down in 1928.
From the 1950s to the 2012-2014, Terry and Lander Halls were two connected towers on the west campus of the University of Washington in Seattle, sharing common facilities on the bottom two floors. Their addresses were 1101 and 1201 NE Campus Parkway, respectively.
The ground floor of Lander Hall contained some of the central offices of the Department of Housing and Food Services.
Architects for both towers were the firm of Young, Richardson, Carleton and Deltie. Unit 1, completed in 1953, was called Terry Hall and Unit 2, completed in 1957, was called Lander Hall.
This Lander Hall was demolished in 2012 and replaced with a new standalone building
on the site, while its connected Terry Hall was demolished in 2014 and replaced by a new standalone building on the site along with an additional residence hall named Maple Hall between Terry and Lander.
Programming
Lander Hall is the home to the First Year Experience, Residential FIG and Honors Communities. Terry Hall is home to the Pre-Health Sciences Community.
References
External links
Plans for the Lander Building Replacement, 2011
University of Washington campus
Demolished buildings and structures in Washington (state)
|
The Régiment de Vermandois was an infantry regiment of the Kingdom of France created in 1643.
Lineage
December 24, 1669 : creation of the Régiment de l’Amiral de France, attached to the Levant Fleet
Following March 1671 : the regiment transferred to land service
January 1, 1791 : designated as 61 Line Infantry Regiment
October 10, 1794 : the 1st battalion was reformed by incorporation to the 121st Battle Demi-Brigade () during the formation of the demi-brigade.
June 19, 1795 : reformation, the 2nd battalion being incorporated to the 122nd Battle Demi-Brigade () during the formation of the demi-brigade.
Equipment
Regimental Colors
3 regimental colonels out of 1 "white" Colonel and 2 of Ordinance « yellow, red, green and violet by opposition, & white cross »
Uniform
History
Colonels & mestres de camp
December 24, 1669 : Charles de Goyon-Matignon, comte de Gacé, brigadier on February 13, 1674, † October 1674
November 1, 1674 : Charles Auguste de Goyon de Matignon (), chevalier de Thorigny then comte de Gacé, brigadier on August 24, 1688, maréchal de camp on March 29, 1689, lieutenant général on March 30, 1693, maréchal de France on February 18, 1708, † December 6, 1729
March 29, 1689 : N. de Seiglières-Belleforière, marquis de Soyecourt
July 19, 1690 : Armand de Béthune, marquis de Charost, brigadier on March 30, 1693, maréchal de camp on January 3, 1696, lieutenant général on December 23, 1702, † October 23, 1747
May 5, 1696 : Antoine de La Vove, marquis de Tourouvre, declared brigadier on November 1703 by an expedited brevet on April 2, † January 1, 1706
January 1705 : N. de La Vove, chevalier de Tourouvre
July 27, 1709 : François-Lazare Thomassin, marquis de Saint-Paul, brigadier on February 1, 1719, † August 10, 1734
August 26, 1733 : Louis Antoine, comte de l’Esparre then de Gramont, brigadier on February 1, 1719, maréchal de camp on February 20, 1734, lieutenant general on March 1, 1738, † May 11, 1745
March 10, 1734 : Louis Marie Bretagne Dominique de Rohan-Chabot (), duc de Rohan, brigadier on February 20, 1743, † 1791
April 16, 1738 : Armand Henri, marquis de Clermont-Gallerande
February 21, 1740 : N. de Froulay, chevalier de Tessé
April 16, 1743 : Pierre François, marquis de Rougé, declared brigadier in November 1745 by expedited brevet on May 1, déclaré maréchal de camp on December 1748 by brevet on May 10, lieutenant général on December 17, 1759, † July 17, 1761
February 1, 1749 : César Jean-Baptiste de Valence-Combes, marquis de Thimbrune
June 5, 1763 : Anne-Joseph-Hippolyte de Maurès de Malartic (), comte de Malartic
April 13, 1780 : Pons Simon de Pierre, vicomte de Bernis
March 10, 1788 : Jean François Béranger, vicomte de Thézan
February 5, 1792 : Jean-Joseph Christophe de Bazelaire ()
March 23, 1792 : Claude-Louis de Chartongne ()
April 11, 1794 : Étienne Alcher
Campaign and battles
The 1st battalion of the 61st Line Infantry Regiment participated in the wars from 1792 to 1794 in Corsica and in Italy; the 2nd battalion participated in the same époque with the Army of the Eastern Pyrenees ().
See also
Troupes de la marine
References
Sources and bibliographies
Chronologie historique-militaire, par M. Pinard, tomes 3, 4, 5 et 8, Paris 1761, 1761, 1762 et 1778
Military units and formations established in 1643
Military units and formations disestablished in 1795
Infantry regiments of the Ancien Régime
|
```html
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: Px1DConstraintFlag Struct Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>Px1DConstraintFlag Struct Reference<br>
<small>
[<a class="el" href="group__physics.html">Physics</a>]</small>
</h1><!-- doxytag: class="Px1DConstraintFlag" -->constraint row flags
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxConstraintDesc_8h-source.html">PxConstraintDesc.h</a>></code>
<p>
<p>
<a href="structPx1DConstraintFlag-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="structPx1DConstraintFlag.html#0d9f59379f0d8eba3bace01f8bb88b76">Type</a> { <br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eSPRING</a> = 1<<0,
<br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eACCELERATION_SPRING</a> = 1<<1,
<br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eRESTITUTION</a> = 1<<2,
<br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eKEEPBIAS</a> = 1<<3,
<br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eOUTPUT_FORCE</a> = 1<<4,
<br>
<a class="el" href="structPx1DConstraintFlag.html#your_sha256_hash>eHAS_DRIVE_LIMIT</a> = 1<<5
<br>
}</td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_CUDA_CALLABLE </td><td class="memItemRight" valign="bottom"><a class="el" href="structPx1DConstraintFlag.html#7257c40cb8c4724bd3dc33b357f9ab84">Px1DConstraintFlag</a> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
constraint row flags
<p>
These flags configure the post-processing of constraint rows and the behavior of the solver while solving constraints <hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="0d9f59379f0d8eba3bace01f8bb88b76"></a><!-- doxytag: member="Px1DConstraintFlag::Type" ref="0d9f59379f0d8eba3bace01f8bb88b76" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPx1DConstraintFlag.html#0d9f59379f0d8eba3bace01f8bb88b76">Px1DConstraintFlag::Type</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eSPRING" ref=your_sha256_hash args="" -->eSPRING</em> </td><td>
whether the constraint is a spring. Mutually exclusive with eRESTITUTION. If set, eKEEPBIAS is ignored. </td></tr>
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eACCELERATION_SPRING" ref=your_sha256_hash args="" -->eACCELERATION_SPRING</em> </td><td>
whether the constraint is a force or acceleration spring. Only valid if eSPRING is set. </td></tr>
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eRESTITUTION" ref=your_sha256_hash args="" -->eRESTITUTION</em> </td><td>
whether the restitution model should be applied to generate the target velocity. Mutually exclusive with eSPRING. If restitution causes a bounces, eKEEPBIAS is ignored </td></tr>
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eKEEPBIAS" ref=your_sha256_hash args="" -->eKEEPBIAS</em> </td><td>
whether to keep the error term when solving for velocity. Ignored if restitution generates bounce, or eSPRING is set. </td></tr>
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eOUTPUT_FORCE" ref=your_sha256_hash args="" -->eOUTPUT_FORCE</em> </td><td>
whether to accumulate the force value from this constraint in the force total that is reported for the constraint and tested for breakage </td></tr>
<tr><td valign="top"><em><a class="anchor" name=your_sha256_hash></a><!-- doxytag: member="eHAS_DRIVE_LIMIT" ref=your_sha256_hash args="" -->eHAS_DRIVE_LIMIT</em> </td><td>
whether the constraint has a drive force limit (which will be scaled by dt unless PxConstraintFlag::eLIMITS_ARE_FORCES is set) </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="7257c40cb8c4724bd3dc33b357f9ab84"></a><!-- doxytag: member="Px1DConstraintFlag::Px1DConstraintFlag" ref="7257c40cb8c4724bd3dc33b357f9ab84" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_CUDA_CALLABLE Px1DConstraintFlag::Px1DConstraintFlag </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxConstraintDesc_8h-source.html">PxConstraintDesc.h</a></ul>
</div>
<hr style="width: 100%; height: 2px;"><br>
</body>
</html>
```
|
```javascript
export default (styles = {}) => {
for (let i in styles) {
if (typeof styles[i] === 'undefined') {
delete styles[i]
}
}
return styles
}
```
|
```xml
//
//
// Microsoft Bot Framework: path_to_url
//
// Bot Framework Emulator Github:
// path_to_url
//
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
import { CardAction } from './cardAction';
export interface SigninCard {
text: string; // Title of the Card
buttons: CardAction[]; // Sign in action
}
```
|
```php
<?php
/**
* WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
*
* @package PHP
* @access private
*/
// If gettext isn't available
if ( !function_exists('_') ) {
function _($string) {
return $string;
}
}
/**
* Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use.
*
* @ignore
* @since 4.2.2
* @access private
*
* @staticvar string $utf8_pcre
*
* @param bool $set - Used for testing only
* null : default - get PCRE/u capability
* false : Used for testing - return false for future calls to this function
* 'reset': Used for testing - restore default behavior of this function
*/
function _wp_can_use_pcre_u( $set = null ) {
static $utf8_pcre = 'reset';
if ( null !== $set ) {
$utf8_pcre = $set;
}
if ( 'reset' === $utf8_pcre ) {
$utf8_pcre = @preg_match( '/^./u', 'a' );
}
return $utf8_pcre;
}
if ( ! function_exists( 'mb_substr' ) ) :
function mb_substr( $str, $start, $length = null, $encoding = null ) {
return _mb_substr( $str, $start, $length, $encoding );
}
endif;
/*
* Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit.
* For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence.
* The behavior of this function for invalid inputs is undefined.
*/
function _mb_substr( $str, $start, $length = null, $encoding = null ) {
if ( null === $encoding ) {
$encoding = get_option( 'blog_charset' );
}
// The solution below works only for UTF-8,
// so in case of a different charset just use built-in substr()
if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
return is_null( $length ) ? substr( $str, $start ) : substr( $str, $start, $length );
}
if ( _wp_can_use_pcre_u() ) {
// Use the regex unicode support to separate the UTF-8 characters into an array
preg_match_all( '/./us', $str, $match );
$chars = is_null( $length ) ? array_slice( $match[0], $start ) : array_slice( $match[0], $start, $length );
return implode( '', $chars );
}
$regex = '/(
[\x00-\x7F] # single-byte sequences 0xxxxxxx
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
| [\xE1-\xEC][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| [\xEE-\xEF][\x80-\xBF]{2}
| \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)/x';
$chars = array( '' ); // Start with 1 element instead of 0 since the first thing we do is pop
do {
// We had some string left over from the last round, but we counted it in that last round.
array_pop( $chars );
// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
$pieces = preg_split( $regex, $str, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
$chars = array_merge( $chars, $pieces );
} while ( count( $pieces ) > 1 && $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.
return join( '', array_slice( $chars, $start, $length ) );
}
if ( ! function_exists( 'mb_strlen' ) ) :
function mb_strlen( $str, $encoding = null ) {
return _mb_strlen( $str, $encoding );
}
endif;
/*
* Only understands UTF-8 and 8bit. All other character sets will be treated as 8bit.
* For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence.
* The behavior of this function for invalid inputs is undefined.
*/
function _mb_strlen( $str, $encoding = null ) {
if ( null === $encoding ) {
$encoding = get_option( 'blog_charset' );
}
// The solution below works only for UTF-8,
// so in case of a different charset just use built-in strlen()
if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
return strlen( $str );
}
if ( _wp_can_use_pcre_u() ) {
// Use the regex unicode support to separate the UTF-8 characters into an array
preg_match_all( '/./us', $str, $match );
return count( $match[0] );
}
$regex = '/(?:
[\x00-\x7F] # single-byte sequences 0xxxxxxx
| [\xC2-\xDF][\x80-\xBF] # double-byte sequences 110xxxxx 10xxxxxx
| \xE0[\xA0-\xBF][\x80-\xBF] # triple-byte sequences 1110xxxx 10xxxxxx * 2
| [\xE1-\xEC][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| [\xEE-\xEF][\x80-\xBF]{2}
| \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences 11110xxx 10xxxxxx * 3
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)/x';
$count = 1; // Start at 1 instead of 0 since the first thing we do is decrement
do {
// We had some string left over from the last round, but we counted it in that last round.
$count--;
// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
$pieces = preg_split( $regex, $str, 1000 );
// Increment
$count += count( $pieces );
} while ( $str = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.
// Fencepost: preg_split() always returns one extra item in the array
return --$count;
}
if ( !function_exists('hash_hmac') ):
function hash_hmac($algo, $data, $key, $raw_output = false) {
return _hash_hmac($algo, $data, $key, $raw_output);
}
endif;
function _hash_hmac($algo, $data, $key, $raw_output = false) {
$packs = array('md5' => 'H32', 'sha1' => 'H40');
if ( !isset($packs[$algo]) )
return false;
$pack = $packs[$algo];
if (strlen($key) > 64)
$key = pack($pack, $algo($key));
$key = str_pad($key, 64, chr(0));
$ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64));
$opad = (substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64));
$hmac = $algo($opad . pack($pack, $algo($ipad . $data)));
if ( $raw_output )
return pack( $pack, $hmac );
return $hmac;
}
if ( !function_exists('json_encode') ) {
function json_encode( $string ) {
global $wp_json;
if ( ! ( $wp_json instanceof Services_JSON ) ) {
require_once( ABSPATH . WPINC . '/class-json.php' );
$wp_json = new Services_JSON();
}
return $wp_json->encodeUnsafe( $string );
}
}
if ( !function_exists('json_decode') ) {
/**
* @global Services_JSON $wp_json
* @param string $string
* @param bool $assoc_array
* @return object|array
*/
function json_decode( $string, $assoc_array = false ) {
global $wp_json;
if ( ! ($wp_json instanceof Services_JSON ) ) {
require_once( ABSPATH . WPINC . '/class-json.php' );
$wp_json = new Services_JSON();
}
$res = $wp_json->decode( $string );
if ( $assoc_array )
$res = _json_decode_object_helper( $res );
return $res;
}
/**
* @param object $data
* @return array
*/
function _json_decode_object_helper($data) {
if ( is_object($data) )
$data = get_object_vars($data);
return is_array($data) ? array_map(__FUNCTION__, $data) : $data;
}
}
if ( ! function_exists( 'hash_equals' ) ) :
/**
* Compare two strings in constant time.
*
* This function was added in PHP 5.6.
* It can leak the length of a string.
*
* @since 3.9.2
*
* @param string $a Expected string.
* @param string $b Actual string.
* @return bool Whether strings are equal.
*/
function hash_equals( $a, $b ) {
$a_length = strlen( $a );
if ( $a_length !== strlen( $b ) ) {
return false;
}
$result = 0;
// Do not attempt to "optimize" this.
for ( $i = 0; $i < $a_length; $i++ ) {
$result |= ord( $a[ $i ] ) ^ ord( $b[ $i ] );
}
return $result === 0;
}
endif;
// JSON_PRETTY_PRINT was introduced in PHP 5.4
// Defined here to prevent a notice when using it with wp_json_encode()
if ( ! defined( 'JSON_PRETTY_PRINT' ) ) {
define( 'JSON_PRETTY_PRINT', 128 );
}
if ( ! function_exists( 'json_last_error_msg' ) ) :
/**
* Retrieves the error string of the last json_encode() or json_decode() call.
*
* @since 4.4.0
*
* @internal This is a compatibility function for PHP <5.5
*
* @return bool|string Returns the error message on success, "No Error" if no error has occurred,
* or false on failure.
*/
function json_last_error_msg() {
// See path_to_url
if ( ! function_exists( 'json_last_error' ) ) {
return false;
}
$last_error_code = json_last_error();
// Just in case JSON_ERROR_NONE is not defined.
$error_code_none = defined( 'JSON_ERROR_NONE' ) ? JSON_ERROR_NONE : 0;
switch ( true ) {
case $last_error_code === $error_code_none:
return 'No error';
case defined( 'JSON_ERROR_DEPTH' ) && JSON_ERROR_DEPTH === $last_error_code:
return 'Maximum stack depth exceeded';
case defined( 'JSON_ERROR_STATE_MISMATCH' ) && JSON_ERROR_STATE_MISMATCH === $last_error_code:
return 'State mismatch (invalid or malformed JSON)';
case defined( 'JSON_ERROR_CTRL_CHAR' ) && JSON_ERROR_CTRL_CHAR === $last_error_code:
return 'Control character error, possibly incorrectly encoded';
case defined( 'JSON_ERROR_SYNTAX' ) && JSON_ERROR_SYNTAX === $last_error_code:
return 'Syntax error';
case defined( 'JSON_ERROR_UTF8' ) && JSON_ERROR_UTF8 === $last_error_code:
return 'Malformed UTF-8 characters, possibly incorrectly encoded';
case defined( 'JSON_ERROR_RECURSION' ) && JSON_ERROR_RECURSION === $last_error_code:
return 'Recursion detected';
case defined( 'JSON_ERROR_INF_OR_NAN' ) && JSON_ERROR_INF_OR_NAN === $last_error_code:
return 'Inf and NaN cannot be JSON encoded';
case defined( 'JSON_ERROR_UNSUPPORTED_TYPE' ) && JSON_ERROR_UNSUPPORTED_TYPE === $last_error_code:
return 'Type is not supported';
default:
return 'An unknown error occurred';
}
}
endif;
if ( ! interface_exists( 'JsonSerializable' ) ) {
define( 'WP_JSON_SERIALIZE_COMPATIBLE', true );
/**
* JsonSerializable interface.
*
* Compatibility shim for PHP <5.4
*
* @link path_to_url
*
* @since 4.4.0
*/
interface JsonSerializable {
public function jsonSerialize();
}
}
// random_int was introduced in PHP 7.0
if ( ! function_exists( 'random_int' ) ) {
require ABSPATH . WPINC . '/random_compat/random.php';
}
```
|
```python
# Precision-recall curve for two hypothetical classifications systems.
# A is better than B.
import numpy as np
import matplotlib.pyplot as plt
try:
import probml_utils as pml
except ModuleNotFoundError:
%pip install -qq git+path_to_url import probml_utils as pml
fA = np.vectorize(lambda x: 1 - x**3)
fB = np.vectorize(lambda x: 1 - x ** (3 / 2))
x = np.arange(0, 1, 0.01)
plt.plot(x, fA(x), "r-", linewidth=3)
plt.plot(x, fB(x), "b-", linewidth=3)
plt.text(0.6, 0.8, "A", color="red", size="xx-large")
plt.text(0.1, 0.8, "B", color="blue", size="xx-large")
plt.axis([0, 1, 0, 1.01])
plt.xlabel("recall", fontsize=14)
plt.ylabel("precision", fontsize=14)
plt.legend()
pml.savefig("PRhand.pdf")
plt.show()
```
|
```smalltalk
/*
* PROJECT: Atomix Development
* LICENSE: BSD 3-Clause (LICENSE.md)
* PURPOSE: Virtual Table Implementation
* PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com)
*/
using System;
namespace Atomix
{
public static class VTable
{
public static unsafe uint GetEntry(uint* aTable, uint aTypeID, uint aMethodID)
{
uint TypeID, MethodID, Size;
while ((Size = *aTable) != 0)
{
TypeID = aTable[1];
if (TypeID == aTypeID)
{
aTable += 2;
while ((MethodID = *aTable) != 0)
{
if (MethodID == aMethodID)
return aTable[1];
aTable += 2;
}
throw new Exception("[VTable] Method Not Found!");
}
aTable += Size;
}
throw new Exception("[VTable] Type Not Found!");
}
}
}
```
|
Mandel Karlsson, also known as 91:an Karlsson or 91:an, is a Swedish comic book character and the main protagonist in the comic strip series 91:an (Eng: № 91). He was created in 1932 by Rudolf Petersson. The series is now published in its own bi-weekly comic book, 91:an, and also as a single strip in the popular weekly women's magazine Året Runt.
Mandel's personality
Mandel Karlsson is based on two people Rudolf Petersson met during his national service in the Halland Regiment. He based his characters 91:an Karlsson and 87:an Axelsson on a man named Smålandian. Mandel Karlsson is a sympathetic character. During the first three decades, Mandel was fond of fighting, but became a less aggressive, gentler character during the highly successful period of Nils Egerbrandt's work, starting in the 1960s.
Mandel Karlsson is a young man, aged perhaps 20 or 21, who is a military conscript in the Swedish Army. He is attached to the fictional Klackamo Regiment. His number is "91", thus he is widely known in Sweden as "91:an Karlsson", although in the comic strip itself he is almost always referred to as Mandel (Eng: Almond, an extremely unusual first name), or simply 91:an.
Mandel is the son of Mandolina and Johan Karlsson. From a working-class rural background, he often uses colloquial dialect expressions and vocabulary and possesses a connection to animals. He is a well-known accordionist. Previously, he was also a heavy smoker.
He is very keen on his girlfriend Elvira Olsson. Although they have regular fall-outs, and he has been known to express a lively interest in other young ladies who meet his acquaintance, although less so than other fellow conscripts at the Klackamo Regiment. Elvira often has to take the initiative in romantic matters. His sidekick, Lars Fjodor Axelsson, is a brasher, naughtier character, and has frequently tried to compete with Mandel for the attentions of Elvira.
Mandel is well liked by the senior officers at the regiment and is quickly forgiven his frequent transgressions of the rules. He often does chores for Överste Gyllenskalp at home, for example walking his Great Dane, Caesar.
Media adaptations
The comics were adapted into a theatrical play and a series of films.
See also
91:an (comic strip)
91:an (comic book)
The Good Soldier Švejk
The Life and Extraordinary Adventures of Private Ivan Chonkin
References
Maurice Horn (1983). The World encyclopedia of comics, Volume 4. Chelsea House Publishers. . pp. 519–521.
Swedish comics
Swedish comics characters
1932 comics debuts
Fictional Swedish Army personnel
Fictional Swedish people
Humor comics
Military comics
Comics characters introduced in 1932
Male characters in comics
Swedish comics adapted into films
Comics adapted into plays
Comics set in Sweden
no:91:an Karlsson
sv:91:an Karlsson
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
load('test/mjsunit/wasm/wasm-module-builder.js');
const builder = new WasmModuleBuilder();
const sig = makeSig([kWasmI32, kWasmI64, kWasmI64], [kWasmI64]);
builder.addFunction(undefined, sig)
.addBody([
kExprGetLocal, 2,
kExprGetLocal, 1,
kExprI64Shl,
]);
builder.instantiate();
```
|
```javascript
Don't assume that HTML script tags are always run sequentially
Modify a website's URL
ProgressEvent
Network Information API
Drag and Drop API
```
|
Rauni Maria Erika Luoma-Ervi (15 October 1911 – 12 January 1996) was a Finnish actress. Her career peaked at the Finnish National Theatre in 1955–1978. She also appeared in 25 films between 1935 and 1984.
Selected filmography
A Night in Rio (1956)
The Harvest Month (1956)
External links
1911 births
1996 deaths
Finnish film actresses
Actresses from Helsinki
20th-century Finnish actresses
|
```javascript
var get = require("../get/entry");
var Entry = require("entry");
get(process.argv[2], function (err, user, blog, entry) {
if (err) throw err;
Entry.drop(blog.id, entry.path, function (err) {
if (err) throw err;
console.log(blog.handle, entry.path, "was deleted!");
process.exit();
});
});
```
|
JS Hakuryū (SS-503) is the third boat of the s. She was commissioned on 14 March 2011.
Construction and career
Hakuryū was laid down at Mitsubishi Heavy Industries Kobe Shipyard on 6 February 2007 as the 2006 plan 2900-ton submarine No. 8118 based on the medium-term defense capability development plan. At the launching ceremony, the vessel was named Hakuryū and launched on 16 October 2009. The submarine was commissioned on 14 March 2011 and deployed to Kure. Hakuryū belongs to the 5th Submarine Corps, and its homeport is Kure.
On 15 January 2013, she left Kure for training in the United States in Pearl Harbor. Hakuryū returned to Kure on 9 May. The submarine departed Yokosuka for training in the United States on 6 February 2015 and entered Pearl Harbor on 26 February. After calling at Guam, she returned to Kure on 9 May.
From 15 March to 28 May 2016, she participated in joint training with Australia in the waters near Sydney with the escort vessels and . Joint training was conducted with the Royal Australian Navy and Air Force, the amphibious assault ship , the frigate and the supply ship .
From 16 January to 14 April 2018, Hakuryū participated in US dispatch training and conducted offshore training and facility use training in the Hawaiian Islands area.
Gallery
Citations
External links
2009 ships
Sōryū-class submarines
Ships built by Mitsubishi Heavy Industries
|
Jack Langlais was the nom de guerre of former French naval officer Claude Andre Michel Peri during the Second World War. Langlais was the leader of an independent group of displaced Frenchmen, operating the armed merchant vessel HMS Fidelity in collaboration with the Special Operations Executive. Langlais and his crew died in December 1942 when Fidleity was sunk en route to the Far East.
Early life
Claude Peri ws born on 7 April 1906 in Hanoi, French Indochina, the son of Francois Michel Peri, a French colonial officer.
Peri was educated in Hanoi at the College Paul Bert, and the Lycée Albert Sarraut.
In 1925 joined the Fr Navy and served briefly in submarines before being discharged on medical grounds
Returning to Indo-China Peri worked as an insurance broker, and as an organizer of big-game hunts. He was also recruited for the local branch of the Deuxieme Bureau, the French Intelligence service.
It was during this period he met Madeleine Bayard, who became his companion and comrade-in-arms.
Service career
At the outbreak of the Second World War Peri reported to metropolitan France for service; his first assignment was to organize an attack on the German freighter Corrientes, moored at Las Palmas in the Canary Islands, which was being used to re-fuel and re-equip raiding U-boats.
To achieve his Peri commandeered a freighter, Le Rhin, in Marseille, and used her to put into Las Palmas, from where he mounted an underwater attack on Corrientes, attaching limpet mines which disabled the ship.
With the Fall of France Peri sailed Le Rhin to Gibraltar, after seizing whatever goods he could find at Marseille, where he offered his services to the Royal Navy, He proclaimed he had no further involvement with France, which he regarded as dishonoured for surrendering.
Using the sale of his cargo he had Le Rhin outfitted as an armed merchantman, and renamed her HMS Fidelity. He himself adopted the nom de guerre Jack Langlais; his companions did likewise, Albert Guérisse becoming Pat O’Leary, and Madeleine Bayard becoming Madeleine Barclay.
Under the auspices of the SOE Langlais and Fidelity undertook two clandestine missions in 1941 to land SOE agents in the south of France and to collect escaped Prisoners of War. During the first mission O’Leary became cut off in France, and rose to command one of the most important escape lines for POWs, the Pat O'Leary Line.
In 1942 Langlais persuaded the Allied Combined Ops to employ Fidelity as a depot ship for a Marine Commando raiding party. Langlais, with Fidelity’s crew and T troop, 40 Commando spent the summer training for this role, which was to be in the Far East, while Fidelity was re-fitted.
However, in December 1942, while in transit to the Far East, Fidelity was sunk in the North Atlantic while sailing with convoy ON 154. Fidelity had fallen out of convoy and came under attack by several U-boats. She was torpedoed and sunk, and all on board were lost.
Personal life
In 1935 Peri married Raymonde Fouche, but their relationship cooled; In 1938 Peri fathered a child for his mistress, Marguerite Paire, with a Vietnamese woman, Do Tikem. The baby, his son Andre, was passed to Marguerite (who was unable to have children) soon after his birth, and she brought him up as her own.
In 1940, before Peri left for France (and being not yet divorced from Raymonde) he married Marguerite, to secure her title over Andre.
The main relationship of his life however, was with Madeleine Bayard, whom he first met in 1935, and who from 1938 was his constant companion and partner-in-arms.
Notes
References
Clay Blair (1998) Hitler's U-Boat War: Vol II, The Hunted 1942–1945 Random House
Marriott, Edward (2005) Claude and Madeleine Picador
Brooks Richards (2004) Secret Flotillas; Vol II: Clandestine Sea Operations in the Western Mediterranean, North Africa and the Adriatic, 1940-1944 Whitehall History Publications
1908 births
1942 deaths
Royal Navy officers
Royal Navy personnel killed in World War II
|
```c
/* $OpenBSD: fcnvfx.c,v 1.9 2023/03/08 04:43:07 guenther Exp $ */
/*
To anyone who acknowledges that this file is provided "AS IS"
without any express or implied warranty:
permission to use, copy, modify, and distribute this file
for any purpose is hereby granted without fee, provided that
the above copyright notice and this notice appears in all
copies, and that the name of Hewlett-Packard Company not be
used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
Hewlett-Packard Company makes no representations about the
suitability of this software for any purpose.
*/
/* @(#)fcnvfx.c: Revision: 2.8.88.2 Date: 93/12/08 13:27:29 */
#include "float.h"
#include "sgl_float.h"
#include "dbl_float.h"
#include "cnv_float.h"
/*
* Single Floating-point to Single Fixed-point
*/
int
sgl_to_sgl_fcnvfx(srcptr, null, dstptr, status)
sgl_floating_point *srcptr, *null;
int *dstptr;
unsigned int *status;
{
register unsigned int src, temp;
register int src_exponent, result;
register int inexact = FALSE;
src = *srcptr;
src_exponent = Sgl_exponent(src) - SGL_BIAS;
/*
* Test for overflow
*/
if (src_exponent > SGL_FX_MAX_EXP) {
/* check for MININT */
if ((src_exponent > SGL_FX_MAX_EXP + 1) ||
Sgl_isnotzero_mantissa(src) || Sgl_iszero_sign(src)) {
if (Sgl_iszero_sign(src)) result = 0x7fffffff;
else result = 0x80000000;
if (Is_invalidtrap_enabled()) {
return(INVALIDEXCEPTION);
}
Set_invalidflag();
*dstptr = result;
return(NOEXCEPTION);
}
}
/*
* Generate result
*/
if (src_exponent >= 0) {
temp = src;
Sgl_clear_signexponent_set_hidden(temp);
Int_from_sgl_mantissa(temp,src_exponent);
if (Sgl_isone_sign(src)) result = -Sgl_all(temp);
else result = Sgl_all(temp);
/* check for inexact */
if (Sgl_isinexact_to_fix(src,src_exponent)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(src)) result++;
break;
case ROUNDMINUS:
if (Sgl_isone_sign(src)) result--;
break;
case ROUNDNEAREST:
if (Sgl_isone_roundbit(src,src_exponent)) {
if (Sgl_isone_stickybit(src,src_exponent)
|| (Sgl_isone_lowmantissa(temp))) {
if (Sgl_iszero_sign(src)) result++;
else result--;
}
}
}
}
}
else {
result = 0;
/* check for inexact */
if (Sgl_isnotzero_exponentmantissa(src)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(src)) result++;
break;
case ROUNDMINUS:
if (Sgl_isone_sign(src)) result--;
break;
case ROUNDNEAREST:
if (src_exponent == -1)
if (Sgl_isnotzero_mantissa(src)) {
if (Sgl_iszero_sign(src)) result++;
else result--;
}
}
}
}
*dstptr = result;
if (inexact) {
if (Is_inexacttrap_enabled()) return(INEXACTEXCEPTION);
else Set_inexactflag();
}
return(NOEXCEPTION);
}
/*
* Single Floating-point to Double Fixed-point
*/
int
sgl_to_dbl_fcnvfx(srcptr, null, dstptr, status)
sgl_floating_point *srcptr, *null;
dbl_integer *dstptr;
unsigned int *status;
{
register int src_exponent, resultp1;
register unsigned int src, temp, resultp2;
register int inexact = FALSE;
src = *srcptr;
src_exponent = Sgl_exponent(src) - SGL_BIAS;
/*
* Test for overflow
*/
if (src_exponent > DBL_FX_MAX_EXP) {
/* check for MININT */
if ((src_exponent > DBL_FX_MAX_EXP + 1) ||
Sgl_isnotzero_mantissa(src) || Sgl_iszero_sign(src)) {
if (Sgl_iszero_sign(src)) {
resultp1 = 0x7fffffff;
resultp2 = 0xffffffff;
}
else {
resultp1 = 0x80000000;
resultp2 = 0;
}
if (Is_invalidtrap_enabled()) {
return(INVALIDEXCEPTION);
}
Set_invalidflag();
Dint_copytoptr(resultp1,resultp2,dstptr);
return(NOEXCEPTION);
}
Dint_set_minint(resultp1,resultp2);
Dint_copytoptr(resultp1,resultp2,dstptr);
return(NOEXCEPTION);
}
/*
* Generate result
*/
if (src_exponent >= 0) {
temp = src;
Sgl_clear_signexponent_set_hidden(temp);
Dint_from_sgl_mantissa(temp,src_exponent,resultp1,resultp2);
if (Sgl_isone_sign(src)) {
Dint_setone_sign(resultp1,resultp2);
}
/* check for inexact */
if (Sgl_isinexact_to_fix(src,src_exponent)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(src)) {
Dint_increment(resultp1,resultp2);
}
break;
case ROUNDMINUS:
if (Sgl_isone_sign(src)) {
Dint_decrement(resultp1,resultp2);
}
break;
case ROUNDNEAREST:
if (Sgl_isone_roundbit(src,src_exponent))
if (Sgl_isone_stickybit(src,src_exponent) ||
(Dint_isone_lowp2(resultp2))) {
if (Sgl_iszero_sign(src)) {
Dint_increment(resultp1,resultp2);
}
else {
Dint_decrement(resultp1,resultp2);
}
}
}
}
}
else {
Dint_setzero(resultp1,resultp2);
/* check for inexact */
if (Sgl_isnotzero_exponentmantissa(src)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Sgl_iszero_sign(src)) {
Dint_increment(resultp1,resultp2);
}
break;
case ROUNDMINUS:
if (Sgl_isone_sign(src)) {
Dint_decrement(resultp1,resultp2);
}
break;
case ROUNDNEAREST:
if (src_exponent == -1)
if (Sgl_isnotzero_mantissa(src)) {
if (Sgl_iszero_sign(src)) {
Dint_increment(resultp1,resultp2);
}
else {
Dint_decrement(resultp1,resultp2);
}
}
}
}
}
Dint_copytoptr(resultp1,resultp2,dstptr);
if (inexact) {
if (Is_inexacttrap_enabled()) return(INEXACTEXCEPTION);
else Set_inexactflag();
}
return(NOEXCEPTION);
}
/*
* Double Floating-point to Single Fixed-point
*/
int
dbl_to_sgl_fcnvfx(srcptr, null, dstptr, status)
dbl_floating_point *srcptr, *null;
int *dstptr;
unsigned int *status;
{
register unsigned int srcp1,srcp2, tempp1,tempp2;
register int src_exponent, result;
register int inexact = FALSE;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
src_exponent = Dbl_exponent(srcp1) - DBL_BIAS;
/*
* Test for overflow
*/
if (src_exponent > SGL_FX_MAX_EXP) {
/* check for MININT */
if (Dbl_isoverflow_to_int(src_exponent,srcp1,srcp2)) {
if (Dbl_iszero_sign(srcp1)) result = 0x7fffffff;
else result = 0x80000000;
if (Is_invalidtrap_enabled()) {
return(INVALIDEXCEPTION);
}
Set_invalidflag();
*dstptr = result;
return(NOEXCEPTION);
}
}
/*
* Generate result
*/
if (src_exponent >= 0) {
tempp1 = srcp1;
tempp2 = srcp2;
Dbl_clear_signexponent_set_hidden(tempp1);
Int_from_dbl_mantissa(tempp1,tempp2,src_exponent);
if (Dbl_isone_sign(srcp1) && (src_exponent <= SGL_FX_MAX_EXP))
result = -Dbl_allp1(tempp1);
else result = Dbl_allp1(tempp1);
/* check for inexact */
if (Dbl_isinexact_to_fix(srcp1,srcp2,src_exponent)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(srcp1))
result++;
break;
case ROUNDMINUS:
if (Dbl_isone_sign(srcp1)) result--;
break;
case ROUNDNEAREST:
if (Dbl_isone_roundbit(srcp1,srcp2,src_exponent))
if (Dbl_isone_stickybit(srcp1,srcp2,src_exponent) ||
(Dbl_isone_lowmantissap1(tempp1))) {
if (Dbl_iszero_sign(srcp1)) result++;
else result--;
}
}
/* check for overflow */
if ((Dbl_iszero_sign(srcp1) && result < 0) ||
(Dbl_isone_sign(srcp1) && result > 0)) {
if (Dbl_iszero_sign(srcp1))
result = 0x7fffffff;
else
result = 0x80000000;
if (Is_overflowtrap_enabled()) {
if (Is_inexacttrap_enabled())
return(OVERFLOWEXCEPTION|INEXACTEXCEPTION);
else Set_inexactflag();
return(OVERFLOWEXCEPTION);
}
Set_overflowflag();
*dstptr = result;
if (Is_inexacttrap_enabled() )
return(INEXACTEXCEPTION);
else Set_inexactflag();
return(NOEXCEPTION);
}
}
}
else {
result = 0;
/* check for inexact */
if (Dbl_isnotzero_exponentmantissa(srcp1,srcp2)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(srcp1)) result++;
break;
case ROUNDMINUS:
if (Dbl_isone_sign(srcp1)) result--;
break;
case ROUNDNEAREST:
if (src_exponent == -1)
if (Dbl_isnotzero_mantissa(srcp1,srcp2)) {
if (Dbl_iszero_sign(srcp1)) result++;
else result--;
}
}
}
}
*dstptr = result;
if (inexact) {
if (Is_inexacttrap_enabled()) return(INEXACTEXCEPTION);
else Set_inexactflag();
}
return(NOEXCEPTION);
}
/*
* Double Floating-point to Double Fixed-point
*/
int
dbl_to_dbl_fcnvfx(srcptr, null, dstptr, status)
dbl_floating_point *srcptr, *null;
dbl_integer *dstptr;
unsigned int *status;
{
register int src_exponent, resultp1;
register unsigned int srcp1, srcp2, tempp1, tempp2, resultp2;
register int inexact = FALSE;
Dbl_copyfromptr(srcptr,srcp1,srcp2);
src_exponent = Dbl_exponent(srcp1) - DBL_BIAS;
/*
* Test for overflow
*/
if (src_exponent > DBL_FX_MAX_EXP) {
/* check for MININT */
if ((src_exponent > DBL_FX_MAX_EXP + 1) ||
Dbl_isnotzero_mantissa(srcp1,srcp2) || Dbl_iszero_sign(srcp1)) {
if (Dbl_iszero_sign(srcp1)) {
resultp1 = 0x7fffffff;
resultp2 = 0xffffffff;
}
else {
resultp1 = 0x80000000;
resultp2 = 0;
}
if (Is_invalidtrap_enabled()) {
return(INVALIDEXCEPTION);
}
Set_invalidflag();
Dint_copytoptr(resultp1,resultp2,dstptr);
return(NOEXCEPTION);
}
}
/*
* Generate result
*/
if (src_exponent >= 0) {
tempp1 = srcp1;
tempp2 = srcp2;
Dbl_clear_signexponent_set_hidden(tempp1);
Dint_from_dbl_mantissa(tempp1,tempp2,src_exponent,
resultp1, resultp2);
if (Dbl_isone_sign(srcp1)) {
Dint_setone_sign(resultp1,resultp2);
}
/* check for inexact */
if (Dbl_isinexact_to_fix(srcp1,srcp2,src_exponent)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(srcp1)) {
Dint_increment(resultp1,resultp2);
}
break;
case ROUNDMINUS:
if (Dbl_isone_sign(srcp1)) {
Dint_decrement(resultp1,resultp2);
}
break;
case ROUNDNEAREST:
if (Dbl_isone_roundbit(srcp1,srcp2,src_exponent))
if (Dbl_isone_stickybit(srcp1,srcp2,src_exponent) ||
(Dint_isone_lowp2(resultp2))) {
if (Dbl_iszero_sign(srcp1)) {
Dint_increment(resultp1,resultp2);
}
else {
Dint_decrement(resultp1,resultp2);
}
}
}
}
}
else {
Dint_setzero(resultp1,resultp2);
/* check for inexact */
if (Dbl_isnotzero_exponentmantissa(srcp1,srcp2)) {
inexact = TRUE;
/* round result */
switch (Rounding_mode()) {
case ROUNDPLUS:
if (Dbl_iszero_sign(srcp1)) {
Dint_increment(resultp1,resultp2);
}
break;
case ROUNDMINUS:
if (Dbl_isone_sign(srcp1)) {
Dint_decrement(resultp1,resultp2);
}
break;
case ROUNDNEAREST:
if (src_exponent == -1)
if (Dbl_isnotzero_mantissa(srcp1,srcp2)) {
if (Dbl_iszero_sign(srcp1)) {
Dint_increment(resultp1,resultp2);
}
else {
Dint_decrement(resultp1,resultp2);
}
}
}
}
}
Dint_copytoptr(resultp1,resultp2,dstptr);
if (inexact) {
if (Is_inexacttrap_enabled()) return(INEXACTEXCEPTION);
else Set_inexactflag();
}
return(NOEXCEPTION);
}
```
|
Balül, Balool, or Bahlool (who known as Balül y Madi, means Balül of Medes), (Kurdish: Baĺüĺ, Balûl, also Baĺüĺi Madî or Balûli Mahî) was a 9th century Kurdish poet and religious scholar of the Yarsani faith, who wrote poems in the Gorani and Southern dialects of the Kurdish language. His poems are considered to be one of the earliest examples of Kurdish literature and poetry. Balül and his fellow poet companions, including Baba Najoom, Baba Lura and Baba Rajab, all took a vital role in the revival and "renaissance" of the Yarsani faith.
References
Kurdish literature
Yarsan saints
Iranian male poets
Iranian Sufis
Kurdish poets
Iranian Kurdish people
Spiritual teachers
Founders of religions
Iranian religious leaders
|
The Løkkeås Tunnel () is a road tunnel that runs under Løkkeåsen in Sandvika, Norway. It is a part of a Norwegian National Road 164 spur running from Engervannet north to join the main road. It is approximately 190 metres long.
References
Proposed tunnels in Norway
Road tunnels in Viken
Tunnels in Bærum
|
"Rid of You" is the tenth single by Natalia. The song was meant to be the first single of her third album, but a few weeks after she recorded this song her voice "crashed". As a result, the recordings of the new album couldn't take place and Rid of You couldn't get any promotion. The song still reached number 14 without any promotion or a music video.
Charts
2006 singles
Natalia (Belgian singer) songs
|
The Anglican Church of St Mary in West Buckland, Somerset, England has 13th-century origins and has been designated as a Grade I listed building.
The church was built, on the site of an earlier Norman structure, between 1275 and 1300. It consists of a two-bay aisled nave, chancel and north and south chapels. It has a hammerbeam roof. The crenelated three-stage tower was built around 1509. It is supported by diagonal buttresses. It includes six bells, the oldest of which is from 1606. They were cast by the Whitechapel Bell Foundry. In 1838 a gallery was built for the choir and organ, but this was removed in 1891.
The interior includes a Purbeck marble font from 1140.
The parish is part of the Wellington and District benefice within the Diocese of Bath and Wells.
See also
List of Grade I listed buildings in Taunton Deane
List of towers in Somerset
List of ecclesiastical parishes in the Diocese of Bath and Wells
References
13th-century church buildings in England
Towers completed in the 16th century
Roman Catholic churches completed in 1509
Church of England church buildings in Taunton Deane
Grade I listed churches in Somerset
Grade I listed buildings in Taunton Deane
|
"Third Day of a Seven Day Binge" is a song by American rock band Marilyn Manson. It was released as the first single from their ninth studio album, The Pale Emperor (2015).
Release and promotion
The song was premiered on BBC Radio 1's Rock Show by Daniel P. Carter on October 26, 2014. Immediately following the broadcast, the song was released for free download on the band's official website, where it was available until November 9. The song was then released as a one-track digital single via music download services on November 10, as the first official single from the album. A limited edition CD was released exclusively at Best Buy stores in the US on December 23, containing both "Third Day of a Seven Day Binge" and the album's other single, "Deep Six", as double A-sides. A limited amount of these CDs came bundled with an exclusive T-Shirt. A 10" vinyl single – containing the acoustic version of the song, "Day 3", on the b-side – was available with pre-orders of the vinyl edition of the album at participating independent record stores.
Manson performed the song with The Smashing Pumpkins at London's KOKO on December 5, 2014. "The real treat comes in the encore," wrote Classic Rock, "when Marilyn Manson saunters onto the stage to perform his new single… before duetting with Corgan on 'Ava Adore' to close the show."
The song was featured in the opening sequence of the Criminal Minds episode entitled "Dust and Bones" (13.7) which premiered on November 15, 2017.
Music video
In an interview with News.com.au on January 22, 2015, Manson confirmed that he completed a music video for the song in early January, but that its release was delayed because he was unhappy with the editing. He also confirmed that he filmed videos for a further two songs from the album. The video for "Third Day of a Seven Day Binge" was released on to the band's YouTube account on July 9, 2015.
Track listing and formats
Digital single
"Third Day of a Seven Day Binge" - 4:26
Best Buy-exclusive CD single
"Third Day of a Seven Day Binge" - 4:26
"Deep Six" - 5:02
10" vinyl single
"Third Day of a Seven Day Binge" - 4:26
"Day 3" - 4:11
Credits and personnel
Credits
Recorded at Abattoir Studios, Studio City, California
Drums recorded by Gustavo Borner at Igloo Studios, Burbank, California
Songs of Golgotha (BMI)/Tyler Bates Music, Inc. (BMI), under exclusive license to Cooking Vinyl and Loma Vista Recordings
Personnel
Marilyn Manson – songwriter, lead vocals, producer
Tyler Bates – songwriter, electric guitar, bass guitar, keyboards, programming, producer
Gil Sharone – drums
Robert Carranza – mixing
Dylan Eiland – additional programming
Joanne Higginbottom – Pro Tools editing
Brian Lucey – mastering
Wolfgang Matthes – additional programming, mixing
Credits adapted from the liner notes of The Pale Emperor.
Charts
In the US, "Third Day of a Seven Day Binge" was released as a double A-side with concurrent single "Deep Six".
Release history
References
2014 songs
2014 singles
Marilyn Manson (band) songs
Songs written by Marilyn Manson
Songs written by Tyler Bates
Cooking Vinyl singles
Loma Vista Recordings singles
Glam rock songs
Post-punk songs
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package jetson_inference</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>jetson_inference</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python3.8/dist-packages/jetson_inference/__init__.py">/usr/lib/python3.8/dist-packages/jetson_inference/__init__.py</a></font></td></tr></table>
<p><tt>#print("jetson.inference.__init__.py")</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial">jetson.inference.tensorNet
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial">jetson.inference.actionNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.backgroundNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.depthNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.detectNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.imageNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.poseNet
</font></dt><dt><font face="helvetica, arial">jetson.inference.segNet
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="actionNet">class <strong>actionNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Action Recognition DNN - classifies an image sequence<br>
<br>
Examples (jetson-inference/python/examples)<br>
actionnet.py<br>
<a href="#actionNet-__init__">__init__</a>(...)<br>
Loads an action classification model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use,<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#actionNet">actionNet</a>,<br>
see below for available options.<br>
<br>
Extended parameters for loading custom models:<br>
model (string) -- path to self-trained ONNX model to load.<br>
<br>
labels (string) -- path to labels.txt file (optional)<br>
<br>
input_blob (string) -- name of the input layer of the model.<br>
<br>
output_blob (string) -- name of the output layer of the model.<br>
<br>
<a href="#actionNet">actionNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* resnet-18 (default)<br>
* resnet-34<br>
--model=MODEL path to custom model to load (.onnx)<br>
--labels=LABELS path to text file containing the labels for each class<br>
--input-blob=INPUT name of the input layer (default is 'input')<br>
--output-blob=OUTPUT name of the output layer (default is 'output')<br>
--threshold=CONF minimum confidence threshold for classification (default is 0.01)<br>
--skip-frames=SKIP how many frames to skip between classifications (default is 1)<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>actionNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="actionNet-Classify"><strong>Classify</strong></a>(...)</dt><dd><tt>Append an image to the sequence and classify the action, returning the class and confidence.<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
<br>
Returns:<br>
(int, float) -- tuple containing the action's class index and confidence</tt></dd></dl>
<dl><dt><a name="actionNet-GetClassDesc"><strong>GetClassDesc</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#actionNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="actionNet-GetClassLabel"><strong>GetClassLabel</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#actionNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="actionNet-GetNetworkName"><strong>GetNetworkName</strong></a>(...)</dt><dd><tt>Return the name of the built-in network used by the model.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- name of the network (e.g. 'googlenet', 'alexnet')<br>
or 'custom' if using a custom-loaded model</tt></dd></dl>
<dl><dt><a name="actionNet-GetNumClasses"><strong>GetNumClasses</strong></a>(...)</dt><dd><tt>Return the number of <a href="builtins.html#object">object</a> classes that this network model is able to classify.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- number of <a href="builtins.html#object">object</a> classes that the model supports</tt></dd></dl>
<dl><dt><a name="actionNet-GetSkipFrames"><strong>GetSkipFrames</strong></a>(...)</dt><dd><tt>Return the number of frames that are skipped in between classifications.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- the number of frames skipped in between classifications</tt></dd></dl>
<dl><dt><a name="actionNet-GetThreshold"><strong>GetThreshold</strong></a>(...)</dt><dd><tt>Return the minimum confidence threshold for classification.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the confidence threshold for classification</tt></dd></dl>
<dl><dt><a name="actionNet-SetSkipFrames"><strong>SetSkipFrames</strong></a>(...)</dt><dd><tt>Set the number of frames that are skipped in between classifications.<br>
Since <a href="#actionNet">actionNet</a> operates on video sequences, it's often helpful to skip frames<br>
to lengthen the window of time the model gets to 'see' an action being performed.<br>
<br>
The default setting is 1, where every other frame is skipped.<br>
Setting this to 0 will disable it, and every frame will be processed.<br>
When a frame is skipped, the classification results from the last frame are returned.<br>
<br>
Parameters:<br>
(int) -- the number of frames skipped in between classifications<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="actionNet-SetThreshold"><strong>SetThreshold</strong></a>(...)</dt><dd><tt>Set the minimum confidence threshold for classification.<br>
<br>
Parameters:<br>
(float) -- confidence threshold<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="actionNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="actionNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#actionNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="actionNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="actionNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="actionNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="actionNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="actionNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="actionNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="actionNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="actionNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="actionNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="backgroundNet">class <strong>backgroundNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Background removal DNN - performs background subtraction on images.<br>
<br>
Examples (jetson-inference/python/examples)<br>
backgroundnet.py<br>
<br>
<a href="#backgroundNet-__init__">__init__</a>(...)<br>
Loads a background subtraction/removal model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use,<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#backgroundNet">backgroundNet</a>,<br>
see below for available options.<br>
<br>
Extended parameters for loading custom models:<br>
model (string) -- path to self-trained ONNX model to load.<br>
<br>
input_blob (string) -- name of the input layer of the model.<br>
<br>
output_blob (string) -- name of the output layer of the model.<br>
<br>
<a href="#backgroundNet">backgroundNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* u2net (default)<br>
--model=MODEL path to custom model to load (caffemodel, uff, or onnx)<br>
--input-blob=INPUT name of the input layer (default is 'input_0')<br>
--output-blob=OUTPUT name of the output layer (default is 'output_0')<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>backgroundNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="backgroundNet-GetNetworkName"><strong>GetNetworkName</strong></a>(...)</dt><dd><tt>Return the name of the built-in network used by the model.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- name of the network (e.g. 'u2net')<br>
or 'custom' if using a custom-loaded model</tt></dd></dl>
<dl><dt><a name="backgroundNet-Process"><strong>Process</strong></a>(...)</dt><dd><tt>Perform background subtraction/removal on the image.<br>
If only an input image is provided, the operation will be performed in-place.<br>
<br>
If an output image is also provided, the results will be written to the output image.<br>
If the images have an alpha channel (uchar4 or float4) and mask_alpha is true (default),<br>
then the background/foreground mask will be written to the output's alpha channel.<br>
<br>
Parameters:<br>
input (capsule) -- CUDA memory capsule (input image)<br>
output (capsule) -- CUDA memory capsule (optional output image)<br>
filter (string) -- filtering used in upscaling the mask, 'point' or 'linear' (default is 'linear')<br>
mask_alpha (bool) -- if true (default), the mask will be applied to the alpha channel as well<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="backgroundNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="backgroundNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#backgroundNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="backgroundNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="backgroundNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="backgroundNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="backgroundNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="backgroundNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="backgroundNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="backgroundNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="backgroundNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="backgroundNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="depthNet">class <strong>depthNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Mono depth estimation DNN - performs depth mapping on monocular images<br>
<br>
Examples (jetson-inference/python/examples)<br>
depthnet.py<br>
<br>
<a href="#depthNet-__init__">__init__</a>(...)<br>
Loads a mono depth estimation model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use,<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#depthNet">depthNet</a>,<br>
see below for available options.<br>
<br>
<a href="#depthNet">depthNet</a> arguments: <br>
--network NETWORK pre-trained model to load, one of the following:<br>
* fcn-mobilenet<br>
* fcn-resnet18<br>
* fcn-resnet50<br>
--model MODEL path to custom model to load (onnx)<br>
--input_blob INPUT name of the input layer (default is 'input_0')<br>
--output_blob OUTPUT name of the output layer (default is 'output_0')<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>depthNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="depthNet-GetDepthField"><strong>GetDepthField</strong></a>(...)</dt><dd><tt>Return a cudaImage <a href="builtins.html#object">object</a> of the raw depth field.<br>
This is a single-channel float32 image that contains the depth estimates.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(cudaImage) -- single-channel float32 depth field</tt></dd></dl>
<dl><dt><a name="depthNet-GetDepthFieldHeight"><strong>GetDepthFieldHeight</strong></a>(...)</dt><dd><tt>Return the height of the depth field, in pixels.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- height of the depth field, in pixels</tt></dd></dl>
<dl><dt><a name="depthNet-GetDepthFieldWidth"><strong>GetDepthFieldWidth</strong></a>(...)</dt><dd><tt>Return the width of the depth field, in pixels.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- width of the depth field, in pixels</tt></dd></dl>
<dl><dt><a name="depthNet-GetNetworkName"><strong>GetNetworkName</strong></a>(...)</dt><dd><tt>Return the name of the built-in network used by the model.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- name of the network (e.g. 'MonoDepth-Mobilenet', 'MonoDepth-ResNet18')<br>
or 'custom' if using a custom-loaded model</tt></dd></dl>
<dl><dt><a name="depthNet-Process"><strong>Process</strong></a>(...)</dt><dd><tt>Compute the depth field from a monocular RGB/RGBA image.<br>
The results can also be visualized if output image is provided.<br>
<br>
Parameters:<br>
input (capsule) -- CUDA memory capsule (input image)<br>
output (capsule) -- CUDA memory capsule (optional output image)<br>
colormap (string) -- colormap name (optional)<br>
filter (string) -- filtering used in upscaling, 'point' or 'linear' (default is 'linear')<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="depthNet-Visualize"><strong>Visualize</strong></a>(...)</dt><dd><tt>Visualize the raw depth field into a colorized RGB/RGBA depth map.<br>
<br>
Parameters:<br>
output (capsule) -- output CUDA memory capsule<br>
colormap (string) -- colormap name (optional)<br>
filter (string) -- filtering used in upscaling, 'point' or 'linear' (default is 'linear')<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="depthNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="depthNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#depthNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="depthNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="depthNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="depthNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="depthNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="depthNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="depthNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="depthNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="depthNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="depthNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="detectNet">class <strong>detectNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Object Detection DNN - locates objects in an image<br>
<br>
Examples (jetson-inference/python/examples)<br>
detectnet.py<br>
<br>
<a href="#detectNet-__init__">__init__</a>(...)<br>
Loads an <a href="builtins.html#object">object</a> detection model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#detectNet">detectNet</a>,<br>
see below for available options.<br>
<br>
threshold (float) -- minimum detection threshold.<br>
default value is 0.5<br>
<br>
Extended parameters for loading custom models:<br>
model (string) -- path to self-trained ONNX model to load.<br>
<br>
labels (string) -- path to labels.txt file (optional)<br>
<br>
colors (string) -- path to colors.txt file (optional)<br>
<br>
input_blob (string) -- name of the input layer of the model.<br>
<br>
output_cvg (string) -- name of the output coverage/confidence layer.<br>
<br>
output_bbox (string) -- name of the output bounding boxes layer.<br>
<br>
<a href="#detectNet">detectNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* ssd-mobilenet-v1<br>
* ssd-mobilenet-v2 (default)<br>
* ssd-inception-v2<br>
* peoplenet<br>
* peoplenet-pruned<br>
* dashcamnet<br>
* trafficcamnet<br>
* facedetect<br>
--model=MODEL path to custom model to load (caffemodel, uff, or onnx)<br>
--prototxt=PROTOTXT path to custom prototxt to load (for .caffemodel only)<br>
--labels=LABELS path to text file containing the labels for each class<br>
--input-blob=INPUT name of the input layer (default is 'data')<br>
--output-cvg=COVERAGE name of the coverage/confidence output layer (default is 'coverage')<br>
--output-bbox=BOXES name of the bounding output layer (default is 'bboxes')<br>
--mean-pixel=PIXEL mean pixel value to subtract from input (default is 0.0)<br>
--confidence=CONF minimum confidence threshold for detection (default is 0.5)<br>
--clustering=CLUSTER minimum overlapping area threshold for clustering (default is 0.75)<br>
--alpha=ALPHA overlay alpha blending value, range 0-255 (default: 120)<br>
--overlay=OVERLAY detection overlay flags (e.g. --overlay=box,labels,conf)<br>
valid combinations are: 'box', 'lines', 'labels', 'conf', 'none'<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>detectNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="detectNet-Detect"><strong>Detect</strong></a>(...)</dt><dd><tt>Detect objects in an RGBA image and return a list of detections.<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
overlay (str) -- combination of box,lines,labels,conf,none flags (default is 'box,labels,conf')<br>
<br>
Returns:<br>
[Detections] -- list containing the detected objects (see <a href="#detectNet">detectNet</a>.Detection)</tt></dd></dl>
<dl><dt><a name="detectNet-GetClassDesc"><strong>GetClassDesc</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#detectNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="detectNet-GetClassLabel"><strong>GetClassLabel</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#detectNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="detectNet-GetClassSynset"><strong>GetClassSynset</strong></a>(...)</dt><dd><tt>Return the synset data category string for the given class.<br>
The synset generally maps to the class training data folder.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#detectNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the synset of the class, typically 9 characters long</tt></dd></dl>
<dl><dt><a name="detectNet-GetClusteringThreshold"><strong>GetClusteringThreshold</strong></a>(...)</dt><dd><tt>Return the overlapping area % threshold for clustering.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the overlapping area % threshold for merging bounding boxes</tt></dd></dl>
<dl><dt><a name="detectNet-GetConfidenceThreshold"><strong>GetConfidenceThreshold</strong></a>(...)</dt><dd><tt>Return the minimum detection threshold.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the threshold for detection</tt></dd></dl>
<dl><dt><a name="detectNet-GetLineWidth"><strong>GetLineWidth</strong></a>(...)</dt><dd><tt>Return the line width used during overlay when 'lines' mode is used.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- line width in pixels</tt></dd></dl>
<dl><dt><a name="detectNet-GetNumClasses"><strong>GetNumClasses</strong></a>(...)</dt><dd><tt>Return the number of <a href="builtins.html#object">object</a> classes that this network model is able to detect.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- number of <a href="builtins.html#object">object</a> classes that the model supports</tt></dd></dl>
<dl><dt><a name="detectNet-GetOverlayAlpha"><strong>GetOverlayAlpha</strong></a>(...)</dt><dd><tt>Return the overlay alpha blending value for classes that don't have it explicitly set.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- alpha blending value between [0,255]</tt></dd></dl>
<dl><dt><a name="detectNet-GetThreshold"><strong>GetThreshold</strong></a>(...)</dt><dd><tt>Return the minimum detection threshold.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the threshold for detection</tt></dd></dl>
<dl><dt><a name="detectNet-GetTrackerType"><strong>GetTrackerType</strong></a>(...)</dt><dd><tt>Returns the type of tracker being used as a string<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- 'IOU', 'KLT', or None if no tracking</tt></dd></dl>
<dl><dt><a name="detectNet-GetTrackingParams"><strong>GetTrackingParams</strong></a>(...)</dt><dd><tt>Returns a dict containing various tracking parameters.<br>
<br>
Parameters: (none)<br>
<br>
Returns: a dict containing the following keys/values (dependent on the type of tracker):<br>
minFrames (int) -- the number of re-identified frames before before establishing a track (IOU tracker only)<br>
dropFrames (int) -- the number of consecutive lost frames after which a track is removed (IOU tracker only)<br>
overlapThreshold (float) -- how much IOU overlap is required for a bounding box to be matched, between [0,1] (IOU tracker only)</tt></dd></dl>
<dl><dt><a name="detectNet-IsTrackingEnabled"><strong>IsTrackingEnabled</strong></a>(...)</dt><dd><tt>Returns true if tracking is enabled, otherwise false<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(bool) -- true if tracking is enabled, otherwise false</tt></dd></dl>
<dl><dt><a name="detectNet-Overlay"><strong>Overlay</strong></a>(...)</dt><dd><tt>Overlay a list of detections in an RGBA image.<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
[Detections] -- list containing the detected objects (see <a href="#detectNet">detectNet</a>.Detection) width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
overlay (str) -- combination of box,lines,labels,conf,none flags (default is 'box,labels,conf')<br>
<br>
Returns:<br>
None</tt></dd></dl>
<dl><dt><a name="detectNet-SetClusteringThreshold"><strong>SetClusteringThreshold</strong></a>(...)</dt><dd><tt>Set the overlapping area % threshold for clustering.<br>
<br>
Parameters:<br>
(float) -- the overlapping area % threshold for merging bounding boxes<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetConfidenceThreshold"><strong>SetConfidenceThreshold</strong></a>(...)</dt><dd><tt>Set the minimum detection threshold.<br>
<br>
Parameters:<br>
(float) -- detection threshold<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetLineWidth"><strong>SetLineWidth</strong></a>(...)</dt><dd><tt>Set the line width used during overlay when 'lines' mode is used<br>
<br>
Parameters:<br>
width (float) -- desired line width, in pixels<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetOverlayAlpha"><strong>SetOverlayAlpha</strong></a>(...)</dt><dd><tt>Set the alpha blending value used during overlay visualization for all classes<br>
<br>
Parameters:<br>
alpha (float) -- desired alpha value, between 0.0 and 255.0<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetThreshold"><strong>SetThreshold</strong></a>(...)</dt><dd><tt>Set the minimum detection threshold.<br>
<br>
Parameters:<br>
(float) -- detection threshold<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetTrackerType"><strong>SetTrackerType</strong></a>(...)</dt><dd><tt>Sets the type of tracker being used<br>
<br>
Parameters:<br>
(string) -- 'IOU' or 'KLT' (other strings will disable tracking)<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetTrackingEnabled"><strong>SetTrackingEnabled</strong></a>(...)</dt><dd><tt>Sets if tracking is enabled or disabled.<br>
When enabling tracking, if the tracker type wasn't previously<br>
set with <a href="#detectNet">detectNet</a>.<a href="#detectNet-SetTrackerType">SetTrackerType</a>(), then 'IOU' will be used.<br>
<br>
Parameters:<br>
(bool) -- true to enable tracking, false to disable it<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="detectNet-SetTrackingParams"><strong>SetTrackingParams</strong></a>(...)</dt><dd><tt>Sets various tracker parameters using keyword arguments.<br>
<br>
Parameters:<br>
minFrames (int) -- the number of re-identified frames before before establishing a track (IOU tracker only)<br>
dropFrames (int) -- the number of consecutive lost frames after which a track is removed (IOU tracker only)<br>
overlapThreshold (float) -- how much IOU overlap is required for a bounding box to be matched, between [0,1] (IOU tracker only)<br>
<br>
Returns:<br>
None</tt></dd></dl>
<dl><dt><a name="detectNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="detectNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#detectNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>Detection</strong> = <class 'jetson.inference.detectNet.Detection'><dd><tt>Object Detection Result<br>
<br>
your_sha256_hash------<br>
Data descriptors defined here:<br>
<br>
Confidence<br>
Confidence value of the detected <a href="builtins.html#object">object</a><br>
<br>
ClassID<br>
Class index of the detected <a href="builtins.html#object">object</a><br>
<br>
TrackID<br>
Unique tracking ID (or -1 if untracked)<br>
<br>
TrackStatus<br>
-1 for dropped, 0 for initializing, 1 for active/valid<br>
<br>
TrackFrames<br>
The number of frames the <a href="builtins.html#object">object</a> has been re-identified for<br>
<br>
TrackLost<br>
The number of consecutive frames tracking has been lost for<br>
<br>
Width<br>
Width of bounding box<br>
<br>
Height<br>
Height of bounding box<br>
<br>
Left<br>
Left bounding box coordinate<br>
<br>
Right<br>
Right bounding box coordinate<br>
<br>
Top<br>
Top bounding box coordinate<br>
<br>
Bottom<br>
Bottom bounding box coordinate<br>
<br>
ROI<br>
(Left, Top, Right, Bottom) tuple<br>
<br>
Center<br>
Center (x,y) coordinate tuple<br>
<br>
Area<br>
Area of bounding box</tt></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="detectNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="detectNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="detectNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="detectNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="detectNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="detectNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="detectNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="detectNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="detectNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="imageNet">class <strong>imageNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Image Recognition DNN - classifies an image<br>
<br>
Examples (jetson-inference/python/examples)<br>
imagenet.py<br>
my-recognition.py<br>
<a href="#imageNet-__init__">__init__</a>(...)<br>
Loads an image recognition model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use,<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#imageNet">imageNet</a>,<br>
see below for available options.<br>
<br>
Extended parameters for loading custom models:<br>
model (string) -- path to self-trained ONNX model to load.<br>
<br>
labels (string) -- path to labels.txt file (optional)<br>
<br>
input_blob (string) -- name of the input layer of the model.<br>
<br>
output_blob (string) -- name of the output layer of the model.<br>
<br>
<a href="#imageNet">imageNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* alexnet<br>
* googlenet (default)<br>
* googlenet-12<br>
* resnet-18<br>
* resnet-50<br>
* resnet-101<br>
* resnet-152<br>
* vgg-16<br>
* vgg-19<br>
* inception-v4<br>
--model=MODEL path to custom model to load (caffemodel, uff, or onnx)<br>
--prototxt=PROTOTXT path to custom prototxt to load (for .caffemodel only)<br>
--labels=LABELS path to text file containing the labels for each class<br>
--input-blob=INPUT name of the input layer (default is 'data')<br>
--output-blob=OUTPUT name of the output layer (default is 'prob')<br>
--threshold=CONF minimum confidence threshold for classification (default is 0.01)<br>
--smoothing=WEIGHT weight between [0,1] or number of frames (disabled by default)<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>imageNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="imageNet-Classify"><strong>Classify</strong></a>(...)</dt><dd><tt>Classify an image and return the <a href="builtins.html#object">object</a>'s class and confidence.<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
<br>
topK (int) -- the number of predictions to return (sorted by confidence)<br>
if topK is 0, then all valid predictions will be returned<br>
<br>
Returns:<br>
(int, float) -- tuple containing the <a href="builtins.html#object">object</a>'s class index and confidence<br>
if topK is set, then a list of these tuples will be returned</tt></dd></dl>
<dl><dt><a name="imageNet-GetClassDesc"><strong>GetClassDesc</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#imageNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="imageNet-GetClassLabel"><strong>GetClassLabel</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#imageNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="imageNet-GetClassSynset"><strong>GetClassSynset</strong></a>(...)</dt><dd><tt>Return the synset data category string for the given class.<br>
The synset generally maps to the class training data folder.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#imageNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the synset of the class, typically 9 characters long</tt></dd></dl>
<dl><dt><a name="imageNet-GetNetworkName"><strong>GetNetworkName</strong></a>(...)</dt><dd><tt>Return the name of the built-in network used by the model.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- name of the network (e.g. 'googlenet', 'alexnet')<br>
or 'custom' if using a custom-loaded model</tt></dd></dl>
<dl><dt><a name="imageNet-GetNumClasses"><strong>GetNumClasses</strong></a>(...)</dt><dd><tt>Return the number of <a href="builtins.html#object">object</a> classes that this network model is able to classify.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- number of <a href="builtins.html#object">object</a> classes that the model supports</tt></dd></dl>
<dl><dt><a name="imageNet-GetSmoothing"><strong>GetSmoothing</strong></a>(...)</dt><dd><tt>Return the temporal smoothing factor applied to the results.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the weight between [0,1] or the number of frames in the smoothing window</tt></dd></dl>
<dl><dt><a name="imageNet-GetThreshold"><strong>GetThreshold</strong></a>(...)</dt><dd><tt>Return the minimum confidence threshold for classification.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the confidence threshold for classification</tt></dd></dl>
<dl><dt><a name="imageNet-SetSmoothing"><strong>SetSmoothing</strong></a>(...)</dt><dd><tt>Set the temporal smoothing factor applied to the results.<br>
<br>
Parameters:<br>
(float) -- A weight between [0,1] that's placed on the latest confidence values,<br>
or the smoothing window as a number of frames (where the weight will be 1/N)<br>
Setting this to 0 or 1 will disable smoothing and use the unfiltered outputs<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="imageNet-SetThreshold"><strong>SetThreshold</strong></a>(...)</dt><dd><tt>Set the minimum confidence threshold for classification.<br>
<br>
Parameters:<br>
(float) -- confidence threshold<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="imageNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="imageNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#imageNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="imageNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="imageNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="imageNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="imageNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="imageNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="imageNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="imageNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="imageNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="imageNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="poseNet">class <strong>poseNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Pose Estimation DNN - detects the poses of objects in an image<br>
<br>
Examples (jetson-inference/python/examples)<br>
posenet.py<br>
<a href="#poseNet-__init__">__init__</a>(...)<br>
Loads an pose estimation model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#poseNet">poseNet</a>,<br>
see below for available options.<br>
<br>
threshold (float) -- minimum detection threshold.<br>
default value is 0.15<br>
<br>
<a href="#poseNet">poseNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* resnet18-body (default)<br>
* resnet18-hand<br>
* densenet121-body<br>
--model=MODEL path to custom model to load (caffemodel, uff, or onnx)<br>
--prototxt=PROTOTXT path to custom prototxt to load (for .caffemodel only)<br>
--labels=LABELS path to text file containing the labels for each class<br>
--input-blob=INPUT name of the input layer (default is 'input')<br>
--output-cvg=COVERAGE name of the coverge output layer (default is 'cmap')<br>
--output-bbox=BOXES name of the bounding output layer (default is 'paf')<br>
--mean-pixel=PIXEL mean pixel value to subtract from input (default is 0.0)<br>
--threshold=THRESHOLD minimum threshold for detection (default is 0.5)<br>
--overlay=OVERLAY detection overlay flags (e.g. --overlay=links,keypoints)<br>
valid combinations are: 'box', 'links', 'keypoints', 'none'<br>
--keypoint-scale=X radius scale for keypoints, relative to image (default: 0.0052)<br>
--link-scale=X line width scale for links, relative to image (default: 0.0013)<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>poseNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="poseNet-FindKeypointID"><strong>FindKeypointID</strong></a>(...)</dt><dd><tt>Return the keypoint ID for the given keypoint name.<br>
<br>
Parameters:<br>
(str) -- name of the keypoint<br>
<br>
Returns:<br>
(int) -- the ID of the keypoint</tt></dd></dl>
<dl><dt><a name="poseNet-GetKeypointName"><strong>GetKeypointName</strong></a>(...)</dt><dd><tt>Return the keypoint name for the given keypoint ID.<br>
<br>
Parameters:<br>
(int) -- index of the keypoint, between [0, <a href="#poseNet-GetNumKeypoints">GetNumKeypoints</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the keypoint</tt></dd></dl>
<dl><dt><a name="poseNet-GetKeypointScale"><strong>GetKeypointScale</strong></a>(...)</dt><dd><tt>Get the scale used to calculate the radius of keypoints based on image dimensions.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the scale used to calculate the radius of keypoints based on image dimensions</tt></dd></dl>
<dl><dt><a name="poseNet-GetLinkScale"><strong>GetLinkScale</strong></a>(...)</dt><dd><tt>Get the scale used to calculate the width of link lines based on image dimensions.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the scale used to calculate the width of link lines based on image dimensions</tt></dd></dl>
<dl><dt><a name="poseNet-GetNumKeypoints"><strong>GetNumKeypoints</strong></a>(...)</dt><dd><tt>Return the number of keypoints in the model's pose topology.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- number of keypoints in the model's pose topology</tt></dd></dl>
<dl><dt><a name="poseNet-GetThreshold"><strong>GetThreshold</strong></a>(...)</dt><dd><tt>Return the minimum detection threshold.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- the threshold for detection</tt></dd></dl>
<dl><dt><a name="poseNet-Overlay"><strong>Overlay</strong></a>(...)</dt><dd><tt>Overlay a list of <a href="builtins.html#object">object</a> poses onto an image.<br>
<br>
Parameters:<br>
input (capsule) -- input image (CUDA memory capsule)<br>
[ObjectPoses] -- list containing the detected <a href="builtins.html#object">object</a> poses (see <a href="#poseNet">poseNet</a>.ObjectPose) width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
overlay (str) -- combination of box,labels,none flags (default is 'box')<br>
<br>
output (capsule) -- output image (CUDA memory capsule)<br>
Returns:<br>
None</tt></dd></dl>
<dl><dt><a name="poseNet-Process"><strong>Process</strong></a>(...)</dt><dd><tt>Perform pose estimation on the given image, returning <a href="builtins.html#object">object</a> poses, and overlay the results..<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
overlay (str) -- combination of box,labels,none flags (default is 'box')<br>
<br>
Returns:<br>
[ObjectPoses] -- list containing the detected <a href="builtins.html#object">object</a> poses (see <a href="#poseNet">poseNet</a>.ObjectPose)</tt></dd></dl>
<dl><dt><a name="poseNet-SetKeypointAlpha"><strong>SetKeypointAlpha</strong></a>(...)</dt><dd><tt>Set the alpha blending value used during overlay visualization for one or all keypoint types<br>
<br>
Parameters:<br>
alpha (float) -- desired alpha value, between 0.0 and 255.0<br>
keypoint (int) -- optional index of the keypoint to set the alpha (otherwise will apply to all keypoints)<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="poseNet-SetKeypointScale"><strong>SetKeypointScale</strong></a>(...)</dt><dd><tt>Set the scale used to calculate the radius of keypoint circles.<br>
This scale will be multiplied by the largest image dimension.<br>
<br>
Parameters:<br>
scale (float) -- desired scaling factor<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="poseNet-SetLinkScale"><strong>SetLinkScale</strong></a>(...)</dt><dd><tt>Set the scale used to calculate the width of link lines.<br>
This scale will be multiplied by the largest image dimension.<br>
<br>
Parameters:<br>
scale (float) -- desired scaling factor<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="poseNet-SetThreshold"><strong>SetThreshold</strong></a>(...)</dt><dd><tt>Return the minimum detection threshold.<br>
<br>
Parameters:<br>
(float) -- detection threshold<br>
<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="poseNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="poseNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#poseNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>ObjectPose</strong> = <class 'jetson.inference.poseNet.ObjectPose'><dd><tt>Object Pose Estimation Result<br>
<br>
your_sha256_hash------<br>
Data descriptors defined here:<br>
<br>
Keypoints<br>
List of <a href="#poseNet">poseNet</a>.ObjectPose.Keypoint objects<br>
<br>
Links<br>
List of (a,b) tuples, where a & b are indexes into the Keypoints list<br>
<br>
ID<br>
Object ID from the image frame, starting at 0<br>
<br>
Left<br>
Left bounding box coordinate<br>
<br>
Right<br>
Right bounding box coordinate<br>
<br>
Top<br>
Top bounding box coordinate<br>
<br>
Bottom<br>
Bottom bounding box coordinate</tt></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="poseNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="poseNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="poseNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="poseNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="poseNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="poseNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="poseNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="poseNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="poseNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="segNet">class <strong>segNet</strong></a>(tensorNet)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Semantic Segmentation DNN - segments an image with per-pixel classification<br>
<br>
Examples (jetson-inference/python/examples)<br>
segnet-console.py<br>
segnet-camera.py<br>
<br>
<a href="#segNet-__init__">__init__</a>(...)<br>
Loads an semantic segmentation model.<br>
<br>
Parameters:<br>
network (string) -- name of a built-in network to use,<br>
see below for available options.<br>
<br>
argv (strings) -- command line arguments passed to <a href="#segNet">segNet</a>,<br>
see below for available options.<br>
<br>
Extended parameters for loading custom models:<br>
model (string) -- path to self-trained ONNX model to load.<br>
<br>
labels (string) -- path to labels.txt file (optional)<br>
<br>
colors (string) -- path to colors.txt file (optional)<br>
<br>
input_blob (string) -- name of the input layer of the model.<br>
<br>
output_blob (string) -- name of the output layer of the model.<br>
<br>
<a href="#segNet">segNet</a> arguments: <br>
--network=NETWORK pre-trained model to load, one of the following:<br>
* fcn-resnet18-cityscapes-512x256<br>
* fcn-resnet18-cityscapes-1024x512<br>
* fcn-resnet18-cityscapes-2048x1024<br>
* fcn-resnet18-deepscene-576x320<br>
* fcn-resnet18-deepscene-864x480<br>
* fcn-resnet18-mhp-512x320<br>
* fcn-resnet18-mhp-640x360<br>
* fcn-resnet18-voc-320x320 (default)<br>
* fcn-resnet18-voc-512x320<br>
* fcn-resnet18-sun-512x400<br>
* fcn-resnet18-sun-640x512<br>
--model=MODEL path to custom model to load (caffemodel, uff, or onnx)<br>
--prototxt=PROTOTXT path to custom prototxt to load (for .caffemodel only)<br>
--labels=LABELS path to text file containing the labels for each class<br>
--colors=COLORS path to text file containing the colors for each class<br>
--input-blob=INPUT name of the input layer (default: 'input_0')<br>
--output-blob=OUTPUT name of the output layer (default: 'output_0')<br>
--alpha=ALPHA overlay alpha blending value, range 0-255 (default: 150)<br>
--visualize=VISUAL visualization flags (e.g. --visualize=overlay,mask)<br>
valid combinations are: 'overlay', 'mask'<br>
--profile enable layer profiling in TensorRT<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd>segNet</dd>
<dd>tensorNet</dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="segNet-GetClassColor"><strong>GetClassColor</strong></a>(...)</dt><dd><tt>Return the class color for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#segNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(r,g,b,a) tuple -- tuple containing the RGBA color of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="segNet-GetClassDesc"><strong>GetClassDesc</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#segNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="segNet-GetClassLabel"><strong>GetClassLabel</strong></a>(...)</dt><dd><tt>Return the class description for the given <a href="builtins.html#object">object</a> class.<br>
<br>
Parameters:<br>
(int) -- index of the class, between [0, <a href="#segNet-GetNumClasses">GetNumClasses</a>()]<br>
<br>
Returns:<br>
(string) -- the text description of the <a href="builtins.html#object">object</a> class</tt></dd></dl>
<dl><dt><a name="segNet-GetGridHeight"><strong>GetGridHeight</strong></a>(...)</dt><dd><tt>Return the number of rows in the segmentation mask classification grid.<br>
These are the raw dimensions, they are typically smaller than the image size.<br>
In <a href="#segNet">segNet</a>.<a href="#segNet-Mask">Mask</a>() the classification grid gets upscaled to match the image size,<br>
but this function returns the original unscaled size of the grid.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- height of the segmentation mask's classification grid</tt></dd></dl>
<dl><dt><a name="segNet-GetGridSize"><strong>GetGridSize</strong></a>(...)</dt><dd><tt>Return a (width, height) tuple with the dimensions of the segmentation mask classification grid.<br>
These are the raw dimensions, they are typically smaller than the image size.<br>
In <a href="#segNet">segNet</a>.<a href="#segNet-Mask">Mask</a>() the classification grid gets upscaled to match the image size,<br>
but this function returns the original unscaled size of the grid.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int, int) -- tuple containing the width and height of the segmentation mask's classification grid</tt></dd></dl>
<dl><dt><a name="segNet-GetGridWidth"><strong>GetGridWidth</strong></a>(...)</dt><dd><tt>Return the number of columns in the segmentation mask classification grid.<br>
These are the raw dimensions, they are typically smaller than the image size.<br>
In <a href="#segNet">segNet</a>.<a href="#segNet-Mask">Mask</a>() the classification grid gets upscaled to match the image size,<br>
but this function returns the original unscaled size of the grid.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- width of the segmentation mask's classification grid</tt></dd></dl>
<dl><dt><a name="segNet-GetNetworkName"><strong>GetNetworkName</strong></a>(...)</dt><dd><tt>Return the name of the built-in network used by the model.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- name of the network (e.g. 'FCN_ResNet18', 'FCN_Alexnet')<br>
or 'custom' if using a custom-loaded model</tt></dd></dl>
<dl><dt><a name="segNet-GetNumClasses"><strong>GetNumClasses</strong></a>(...)</dt><dd><tt>Return the number of <a href="builtins.html#object">object</a> classes that this network model is able to classify.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(int) -- number of <a href="builtins.html#object">object</a> classes that the model supports</tt></dd></dl>
<dl><dt><a name="segNet-GetOverlayAlpha"><strong>GetOverlayAlpha</strong></a>(...)</dt><dd><tt>Return the overlay alpha blending value for classes that don't have it explicitly set.<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(float) -- alpha blending value between [0,255]</tt></dd></dl>
<dl><dt><a name="segNet-Mask"><strong>Mask</strong></a>(...)</dt><dd><tt>Produce a colorized RGBA segmentation mask of the output.<br>
<br>
Parameters:<br>
image (capsule) -- output CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
filter_mode (string) -- optional string indicating the filter mode, 'point' or 'linear' (default: 'linear')<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="segNet-Overlay"><strong>Overlay</strong></a>(...)</dt><dd><tt>Produce the segmentation overlay alpha blended on top of the original image.<br>
<br>
Parameters:<br>
image (capsule) -- output CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
filter_mode (string) -- optional string indicating the filter mode, 'point' or 'linear' (default: 'linear')<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="segNet-Process"><strong>Process</strong></a>(...)</dt><dd><tt>Perform the initial inferencing processing of the segmentation.<br>
The results can then be visualized using the <a href="#segNet-Overlay">Overlay</a>() and <a href="#segNet-Mask">Mask</a>() functions.<br>
<br>
Parameters:<br>
image (capsule) -- CUDA memory capsule<br>
width (int) -- width of the image (in pixels)<br>
height (int) -- height of the image (in pixels)<br>
ignore_class (string) -- optional label name of class to ignore in the classification (default: 'void')<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="segNet-SetOverlayAlpha"><strong>SetOverlayAlpha</strong></a>(...)</dt><dd><tt>Set the alpha blending value used during overlay visualization for all classes<br>
<br>
Parameters:<br>
alpha (float) -- desired alpha value, between 0.0 and 255.0<br>
explicit_exempt (optional, bool) -- if True, the global alpha doesn't apply to classes that have an alpha value explicitly set in the colors file (default: True)<br>
Returns: (none)</tt></dd></dl>
<dl><dt><a name="segNet-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="segNet-Usage"><strong>Usage</strong></a>(...)</dt><dd><tt>Return the command line parameters accepted by <a href="#segNet-__init__">__init__</a>()<br>
<br>
Parameters: (none)<br>
<br>
Returns:<br>
(string) -- usage string documenting command-line options</tt></dd></dl>
<hr>
Methods inherited from tensorNet:<br>
<dl><dt><a name="segNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="segNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="segNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="segNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="segNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="segNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="segNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="segNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods inherited from tensorNet:<br>
<dl><dt><a name="segNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="tensorNet">class <strong>tensorNet</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>TensorRT DNN Base Object<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="tensorNet-EnableDebug"><strong>EnableDebug</strong></a>(...)</dt><dd><tt>Enable TensorRT debug messages and device synchronization</tt></dd></dl>
<dl><dt><a name="tensorNet-EnableLayerProfiler"><strong>EnableLayerProfiler</strong></a>(...)</dt><dd><tt>Enable the profiling of network layer execution times</tt></dd></dl>
<dl><dt><a name="tensorNet-GetModelPath"><strong>GetModelPath</strong></a>(...)</dt><dd><tt>Return the path to the network model file on disk</tt></dd></dl>
<dl><dt><a name="tensorNet-GetModelType"><strong>GetModelType</strong></a>(...)</dt><dd><tt>Return the type of model format (caffe, ONNX, UFF, or custom)</tt></dd></dl>
<dl><dt><a name="tensorNet-GetNetworkFPS"><strong>GetNetworkFPS</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in frames per second)</tt></dd></dl>
<dl><dt><a name="tensorNet-GetNetworkTime"><strong>GetNetworkTime</strong></a>(...)</dt><dd><tt>Return the runtime of the network (in milliseconds)</tt></dd></dl>
<dl><dt><a name="tensorNet-GetPrototxtPath"><strong>GetPrototxtPath</strong></a>(...)</dt><dd><tt>Return the path to the network prototxt file on disk</tt></dd></dl>
<dl><dt><a name="tensorNet-PrintProfilerTimes"><strong>PrintProfilerTimes</strong></a>(...)</dt><dd><tt>Print out performance timing info</tt></dd></dl>
<hr>
Static methods defined here:<br>
<dl><dt><a name="tensorNet-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new <a href="builtins.html#object">object</a>. See help(type) for accurate signature.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>VERSION</strong> = '1.0.0'</td></tr></table>
</body></html>
```
|
```objective-c
//
// AutoFillManager.m
// Strongbox
//
// Created by Mark on 01/04/2019.
//
#import "AutoFillManager.h"
#import <AuthenticationServices/AuthenticationServices.h>
#import "QuickTypeRecordIdentifier.h"
#import "NSArray+Extensions.h"
#import "NSDate+Extensions.h"
#import "SprCompilation.h"
#import "NSString+Extensions.h"
#import "CommonDatabasePreferences.h"
#import "Utils.h"
#import "ConcurrentMutableDictionary.h"
#import "AutoFillCommon.h"
#import "CrossPlatform.h"
#import "Node+Passkey.h"
#import "Constants.h"
#ifndef IS_APP_EXTENSION
#import "Strongbox-Swift.h"
#else
#import "Strongbox_Auto_Fill-Swift.h"
#endif
@implementation AutoFillManager
+ (instancetype)sharedInstance {
static AutoFillManager *sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [[AutoFillManager alloc] init];
});
return sharedInstance;
}
- (void)updateAutoFillQuickTypeDatabase:(Model *)database {
[self updateAutoFillQuickTypeDatabase:database clearFirst:NO];
}
- (void)updateAutoFillQuickTypeDatabase:(Model *)database clearFirst:(BOOL)clearFirst {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0L), ^{
[ASCredentialIdentityStore.sharedStore getCredentialIdentityStoreStateWithCompletion:^(ASCredentialIdentityStoreState * _Nonnull state) {
if ( state.enabled ) {
if ( clearFirst ) {
[ASCredentialIdentityStore.sharedStore removeAllCredentialIdentitiesWithCompletion:^(BOOL success, NSError * _Nullable error) {
if ( error ) {
slog(@" Cleared Quick Type AutoFill Database with error = [%@]...", error);
}
else {
slog(@" Cleared Quick Type AutoFill Database");
}
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0L), ^{
[self loadIdentitiesFromDb:database];
});
}];
slog(@"Cleared Quick Type AutoFill Database...");
}
else {
[self loadIdentitiesFromDb:database];
}
}
}];
});
}
- (void)loadIdentitiesFromDb:(Model*)database {
NSTimeInterval start = NSDate.timeIntervalSinceReferenceDate;
NSMutableArray *identities = [NSMutableArray array];
@try {
NSArray<Node*>* sortedNodes = [self getFilteredSortedNodes:database];
for ( Node* node in sortedNodes ) {
if ( database.metadata.quickTypeEnabled ) {
NSArray<ASPasswordCredentialIdentity*>* nodeIdenitities = [self getPasswordCredentialIdentities:node database:database];
[identities addObjectsFromArray:nodeIdenitities];
}
if (@available(iOS 17.0, macOS 14.0, *)) {
if ( node.passkey ) {
ASPasskeyCredentialIdentity *pkid = [self getPasskeyAutoFillCredentialIdentity:database node:node];
if ( pkid ) {
[identities addObject:pkid];
}
}
}
}
}
@finally { }
[self setQuickTypeSuggestions:identities];
slog(@" Updated Quick Type AutoFill Database in [%f] seconds", NSDate.timeIntervalSinceReferenceDate - start);
}
- (NSArray<Node*>*)getFilteredSortedNodes:(Model*)database {
NSArray<Node*>* allSearchable = database.database.allSearchableNoneExpiredEntries;
NSArray<Node*>* allEntries = [allSearchable filter:^BOOL(Node * _Nonnull obj) {
return ![database isExcludedFromAutoFill:obj.uuid];
}];
NSArray<Node*>* sortedEntries = [allEntries sortedArrayUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) {
Node* n1 = (Node*)obj1;
Node* n2 = (Node*)obj2;
BOOL f1 = [database isFavourite:n1.uuid];
BOOL f2 = [database isFavourite:n2.uuid];
if ( ( !f1 && !f2 ) || ( f1 && f2 ) ) {
NSComparisonResult retTitle = finderStringCompare(n1.title, n2.title);
if ( retTitle == NSOrderedSame ) {
return finderStringCompare( n1.fields.username, n2.fields.username );
}
else {
return retTitle;
}
}
else {
return f1 ? NSOrderedAscending : NSOrderedDescending;
}
}];
return sortedEntries;
}
- (NSArray<ASPasswordCredentialIdentity*>*)getPasswordCredentialIdentities:(Node*)node
database:(Model*)database {
NSSet<NSString*>* uniqueUrls = [AutoFillCommon getUniqueUrlsForNode:database node:node];
NSMutableArray<ASPasswordCredentialIdentity*> *passwordIdentities = [NSMutableArray array];
BOOL usedEmailAsUser = NO;
for ( NSString* url in uniqueUrls ) {
ASPasswordCredentialIdentity* iden = [self getIdentity:node url:url database:database fieldKey:nil fieldValue:nil usedEmailAsUser:&usedEmailAsUser];
if ( iden ) {
[passwordIdentities addObject:iden];
}
}
[passwordIdentities sortUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) {
ASPasswordCredentialIdentity* i1 = obj1;
ASPasswordCredentialIdentity* i2 = obj2;
return finderStringCompare(i1.user, i2.user);
}];
NSMutableArray<ASPasswordCredentialIdentity*> *customFieldIdentities = [NSMutableArray array];
for ( NSString* url in uniqueUrls ) {
for ( NSString* key in node.fields.customFields.allKeys ) {
if (![NodeFields isAlternativeURLCustomFieldKey:key] &&
![NodeFields isTotpCustomFieldKey:key] &&
![NodeFields isPasskeyCustomFieldKey:key] ) {
if ( usedEmailAsUser && [key isEqualToString:kCanonicalEmailFieldName] ) {
break;
}
StringValue* sv = node.fields.customFields[key];
if (( database.metadata.autoFillUnConcealedFieldsAsCreds && !sv.protected ) ||
( database.metadata.autoFillConcealedFieldsAsCreds && sv.protected )) {
ASPasswordCredentialIdentity* iden = [self getIdentity:node
url:url
database:database
fieldKey:key
fieldValue:sv.value];
if ( iden ) {
[customFieldIdentities addObject:iden];
}
}
}
}
}
[customFieldIdentities sortUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) {
ASPasswordCredentialIdentity* i1 = obj1;
ASPasswordCredentialIdentity* i2 = obj2;
return finderStringCompare(i1.user, i2.user);
}];
[passwordIdentities addObjectsFromArray:customFieldIdentities];
return passwordIdentities;
}
- (ASPasswordCredentialIdentity*_Nullable)getIdentity:(Node*)node
url:(NSString*)url
database:(Model*)database
fieldKey:(NSString*)fieldKey
fieldValue:(NSString*)fieldValue {
return [self getIdentity:node url:url database:database fieldKey:fieldKey fieldValue:fieldValue usedEmailAsUser:nil];
}
- (ASPasswordCredentialIdentity*_Nullable)getIdentity:(Node*)node
url:(NSString*)url
database:(Model*)database
fieldKey:(NSString*)fieldKey
fieldValue:(NSString*)fieldValue
usedEmailAsUser:(BOOL* _Nullable)usedEmailAsUser {
if ( fieldKey ) {
if ( [database dereference:fieldValue node:node].length == 0 ) {
return nil;
}
}
else {
if ( [database dereference:node.fields.password node:node].length == 0 ) {
return nil;
}
}
NSString* quickTypeText = [self getQuickTypeUserText:database node:node usedEmailAsUser:usedEmailAsUser fieldKey:fieldKey];
if ( quickTypeText == nil ) {
return nil;
}
else {
QuickTypeRecordIdentifier* recordIdentifier = [QuickTypeRecordIdentifier identifierWithDatabaseId:database.metadata.uuid
nodeId:node.uuid.UUIDString
fieldKey:fieldKey];
ASCredentialServiceIdentifier* serviceId = [[ASCredentialServiceIdentifier alloc] initWithIdentifier:url type:ASCredentialServiceIdentifierTypeURL];
return [[ASPasswordCredentialIdentity alloc] initWithServiceIdentifier:serviceId user:quickTypeText recordIdentifier:[recordIdentifier toJson]];
}
}
- (ASPasskeyCredentialIdentity*)getPasskeyAutoFillCredentialIdentity:(Model*)database
node:(Node*)node API_AVAILABLE(ios(17.0), macos (14.0)) {
if ( node.passkey == nil ) {
return nil;
}
NSString* quickTypeText = [self getQuickTypeUserText:database node:node usedEmailAsUser:nil fieldKey:nil];
if ( quickTypeText == nil ) {
return nil;
}
QuickTypeRecordIdentifier* rid = [QuickTypeRecordIdentifier identifierWithDatabaseId:database.metadata.uuid
nodeId:node.uuid.UUIDString
fieldKey:nil];
Passkey* pk = node.passkey;
ASPasskeyCredentialIdentity *pkid = [ASPasskeyCredentialIdentity identityWithRelyingPartyIdentifier:pk.relyingPartyId
userName:quickTypeText
credentialID:pk.credentialIdData
userHandle:pk.userHandleData
recordIdentifier:[rid toJson]];
return pkid;
}
- (NSString*)getQuickTypeUserText:(Model*)database
node:(Node*)node
usedEmailAsUser:(BOOL*_Nullable)usedEmailAsUser
fieldKey:(NSString*_Nullable)fieldKey {
NSString* user;
BOOL usingEmailAsUser = NO;
if ( fieldKey == nil ) {
user = [database dereference:node.fields.username node:node];
if ( user.length == 0 ) {
user = [database dereference:node.fields.email node:node];
usingEmailAsUser = YES;
if ( usedEmailAsUser ) {
*usedEmailAsUser = usingEmailAsUser;
}
}
}
else {
user = fieldKey;
}
if ( user.length == 0 ) {
return nil;
}
NSString* title = [database dereference:node.title node:node];
title = title.length ? title : NSLocalizedString(@"generic_unknown", @"Unknown");
NSString* quickTypeText = title;
QuickTypeAutoFillDisplayFormat displayFormat = database.metadata.quickTypeDisplayFormat;
NSString* nickName = database.metadata.nickName;
if ( displayFormat == kQuickTypeFormatTitleThenUsername && user.length) {
quickTypeText = [NSString stringWithFormat:@"%@ (%@)", title, user];
}
else if ( displayFormat == kQuickTypeFormatUsernameOnly && user.length ) {
quickTypeText = user;
}
else if ( displayFormat == kQuickTypeFormatDatabaseThenTitleThenUsername && user.length) {
quickTypeText = [NSString stringWithFormat:@"[%@] %@ (%@)", nickName, title, user];
}
else if ( displayFormat == kQuickTypeFormatDatabaseThenUsername && user.length) {
quickTypeText = [NSString stringWithFormat:@"[%@] %@", nickName, user];
}
else if ( displayFormat == kQuickTypeFormatDatabaseThenTitle) {
quickTypeText = [NSString stringWithFormat:@"[%@] %@", nickName, title];
}
else if ( fieldKey != nil ) {
quickTypeText = user;
}
if ( [database isFavourite:node.uuid] ) {
quickTypeText = [NSString stringWithFormat:@"%@ ", quickTypeText];
}
return quickTypeText;
}
- (void)setQuickTypeSuggestions:(NSArray<ASPasswordCredentialIdentity*>*)identities {
NSUInteger databasesUsingQuickType = [self getDatabasesUsingQuickTypeCount];
if(databasesUsingQuickType < 2) {
if ( identities.count == 0 ) {
[ASCredentialIdentityStore.sharedStore removeAllCredentialIdentitiesWithCompletion:^(BOOL success, NSError * _Nullable error) {
slog(@" removeAllCredentialIdentities because zero passed in... [%d] - [%@]", success, error);
}];
return;
}
else {
[ASCredentialIdentityStore.sharedStore replaceCredentialIdentitiesWithIdentities:identities
completion:^(BOOL success, NSError * _Nullable error) {
}];
}
}
else {
NSDate* lastFullClear = CrossPlatformDependencies.defaults.applicationPreferences.lastQuickTypeMultiDbRegularClear;
if ( lastFullClear == nil || [lastFullClear isMoreThanXDaysAgo:7] ) {
slog(@" Doing a full clear of the QuickType AutoFill database because the last clear was on [%@]", lastFullClear.friendlyDateString);
[ASCredentialIdentityStore.sharedStore removeAllCredentialIdentitiesWithCompletion:^(BOOL success, NSError * _Nullable error) {
slog(@"lastQuickTypeMultiDbRegularClear - Clear Done");
[ASCredentialIdentityStore.sharedStore saveCredentialIdentities:identities
completion:^(BOOL success, NSError * _Nullable error) {
}];
}];
CrossPlatformDependencies.defaults.applicationPreferences.lastQuickTypeMultiDbRegularClear = NSDate.date;
}
else {
[ASCredentialIdentityStore.sharedStore saveCredentialIdentities:identities
completion:^(BOOL success, NSError * _Nullable error) {
}];
}
}
}
- (NSUInteger)getDatabasesUsingQuickTypeCount {
#if TARGET_OS_IPHONE
NSUInteger databasesUsingQuickType = [CommonDatabasePreferences filteredDatabases:^BOOL(DatabasePreferences * _Nonnull obj) {
return obj.autoFillEnabled && obj.quickTypeEnabled;
}].count;
#else
NSUInteger databasesUsingQuickType = [CommonDatabasePreferences filteredDatabases:^BOOL(MacDatabasePreferences * _Nonnull database) {
return database.autoFillEnabled && database.quickTypeEnabled;
}].count;
#endif
return databasesUsingQuickType;
}
- (BOOL)isOnForStrongbox {
__block BOOL ret = NO;
dispatch_group_t g = dispatch_group_create();
dispatch_group_enter(g);
[ASCredentialIdentityStore.sharedStore getCredentialIdentityStoreStateWithCompletion:^(ASCredentialIdentityStoreState * _Nonnull state) {
ret = state.enabled;
dispatch_group_leave(g);
}];
dispatch_group_wait(g, DISPATCH_TIME_FOREVER);
return ret;
}
- (void)clearAutoFillQuickTypeDatabase {
slog(@"Clearing Quick Type AutoFill Database...");
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0L), ^{
[ASCredentialIdentityStore.sharedStore removeAllCredentialIdentitiesWithCompletion:^(BOOL success, NSError * _Nullable error) {
if ( error ) {
slog(@" Cleared Quick Type AutoFill Database with error = [%@]...", error);
}
else {
slog(@" Cleared Quick Type AutoFill Database");
}
}];
});
}
- (void)refreshQuickTypeAfterAutoFillAddition:(Node*)node database:(Model*)database {
if ( node.passkey ) {
if (@available(iOS 17.0, macOS 14.0, *)) {
ASPasskeyCredentialIdentity *pkid = [self getPasskeyAutoFillCredentialIdentity:database node:node];
[ASCredentialIdentityStore.sharedStore saveCredentialIdentityEntries:@[pkid]
completion:^(BOOL success, NSError * _Nullable error) {
slog(@"refreshQuickTypeAfterAutoFillAddition Passkey Done: %hhd - %@", success, error);
}];
}
}
else {
ASPasswordCredentialIdentity* aspcid = [self getIdentity:node url:node.fields.url database:database fieldKey:nil fieldValue:nil];
if ( aspcid ) {
[ASCredentialIdentityStore.sharedStore saveCredentialIdentities:@[aspcid]
completion:^(BOOL success, NSError * _Nullable error) {
slog(@"refreshQuickTypeAfterAutoFillAddition Done: %hhd - %@", success, error);
}];
}
}
}
- (void)removeItemsFromQuickType:(const NSArray<Node *> *)items database:(Model *)database {
for ( Node* node in items ) {
NSArray<ASPasswordCredentialIdentity*>* identities = [self getPasswordCredentialIdentities:node database:database];
[ASCredentialIdentityStore.sharedStore removeCredentialIdentities:identities
completion:^(BOOL success, NSError * _Nullable error) {
slog(@" removeCredentialIdentities done with %hhd - %@", success, error);
}];
if (@available(iOS 17.0, macOS 14.0, *)) {
if ( node.passkey ) {
ASPasskeyCredentialIdentity *pkid = [self getPasskeyAutoFillCredentialIdentity:database node:node];
[ASCredentialIdentityStore.sharedStore removeCredentialIdentityEntries:@[pkid]
completion:^(BOOL success, NSError * _Nullable error) {
slog(@" removeCredentialIdentityEntries done with %hhd - %@", success, error);
}];
}
}
}
}
@end
```
|
Anthony Lausett Knapp (June 14, 1828 – May 24, 1881) was a U.S. Representative from Illinois, brother of Robert McCarty Knapp.
Born in Middletown, New York, Knapp moved with his parents to Illinois in 1839 and settled in the city of Jerseyville. He completed preparatory studies and then studied law. He was admitted to the bar and commenced practice in Jerseyville. He served as member of the Illinois Senate 1859-1861.
Knapp was elected as a Democrat to the Thirty-seventh Congress to fill the vacancy caused by the resignation of John A. McClernand. He was reelected to the Thirty-eighth Congress and served from December 12, 1861, to March 3, 1865. He was not a candidate for renomination in 1864. He moved to Chicago in 1865 and to Springfield, Illinois, in 1867 and continued the practice of law. He died in Springfield, Illinois, May 24, 1881. He was interred in Springfield Cemetery. He was reinterred in Oak Grove Cemetery in Jerseyville.
Early life
Born in June 14, 1828 in Orange County, New York, Knapp moved with his family to Greene County, Illinois with his parents at age eleven in 1839. The family remained there for five years before moving to Jerseyville, where the father, Augustus, became a top physician.
In 1847, at age nineteen, Knapp had served as a private secretary to Governor Augustus French, a Democrat.
In June 1849, at age twenty, Knapp along with his uncle Charles wrote a letter to Abraham Lincoln, in support of Lincoln's efforts to secure himself a political job as the Commissioner of the General Land Office in Washington. Lincoln had written to Knapp's father two days earlier asking for support. Knapp wrote to Lincoln that he, "accept the assurance of our best wishes for your success, and believe we remain very respectfully yours." The job ultimately went to Chicago attorney, Justin Butterfield.
Politics
As a member of the House, Knapp routinely voted against Lincoln and his administration's policies. He was often aligned with the Copperhead congressman from Ohio, Clement Vallandigham. One modern writer states, "compared to [his predecessor] McClernand, Knapp sounded too concerned with opposing President Lincoln and less committed to the war effort."
References
1828 births
1881 deaths
Politicians from Springfield, Illinois
People from Jerseyville, Illinois
Democratic Party Illinois state senators
Illinois lawyers
Democratic Party members of the United States House of Representatives from Illinois
19th-century American politicians
People from Middletown, Orange County, New York
19th-century American lawyers
|
Gina Marie Marks (born January 25, 1973) is an American psychic and convicted fraudster. Using the pseudonym of Regina Milbourne, she co-authored Miami Psychic: Confessions of a Confidante, a memoir published by HarperCollins in 2006.
In August 2018, Marks' career as a psychic con-artist, and the decade-long pursuit by detective Bob Nygaard to bring her to justice, were portrayed on an episode of the CBS series Pink Collar Crimes titled "The Psychic Didn't See Him Coming".
In 2018 Marks pleaded guilty to defrauding five victims out of more than $340,000, but blamed her prosecution on racism against Romani people. In September 2018, she was sentenced to six years in prison.
Criminal activity
Marks has had numerous arrests and convictions in Florida for defrauding clients out of large sums of money while claiming to use psychic powers to help them:
In 2007, Marks pleaded no contest to grand theft charges related to an agreement to "cleanse souls" for a total of $65,000. She was then put on probation for eighteen months and ordered to return the money back to her clients. In 2009, she was arrested again for a similar crime.
In 2010, she was again arrested in Florida for a defrauding of over $300,000 and for violating probation. A month later, while still in Broward County Jail, she was arraigned again on further fraud charges which involved another victim who came forward due to media exposure following Marks' earlier arrest.
On September 1, 2010, Marks pleaded guilty to grand theft and two counts of organized fraud. In addition she admitted to violating her probation. At her sentencing, Marks handed over a $400,000 check to partially repay her former clients.
On April 2, 2014, in another case, Marks was sentenced to 10 years of probation.
In 2018, Marks was convicted of stealing more than $340,000 from five victims over three years using the pseudonym Natalie Miller. Although she pleaded guilty to psychic fraud charges, Marks blamed her misfortune on anti-Romani sentiment, saying "They're racist on my culture. We do have power. We're not allowed to talk about it."
Investigating a psychic fraud case involving Marks in 2008 marked the beginning of South Florida private investigator Bob Nygaard's "psychic hunting" career. Nygaard also brought Marks to justice in 2010 and 2016, culminating in her 2018 conviction for the theft of over $340,000. In September 2018, Marks was sentenced to six years in prison and ordered to pay restitution to her victims, with the judge stating that Marks' actions were premeditated and she preyed on vulnerable people.
Pink Collar Crimes
On August 11, 2018, CBS broadcast an episode of its true crime TV show, Pink Collar Crimes, titled "The Psychic Didn't See Him Coming". The episode recounts the story of private eye Bob Nygaard and his numerous pursuits of Marks to obtain justice for his clients between 2008 and 2018, which culminated in Mark's 2018 conviction.
Miami Psychic
Marks is the co-author of Miami Psychic: Confessions of a Confidante, published by HarperCollins in 2006. The book purports to be a true memoir about a psychic named Regina Milbourne, who used her supposed paranormal gifts to help many of Miami's least desirable element: drug dealers, thieves, murderers and pedophiles. Regina claims that she "comes clean" in the book, "divulging the unimaginable horrors and shocking confessions that she witnessed throughout her career".
Personal life
Marks is married to Sunny Miller, and has a daughter, Hillarie Miller.
See also
References
Literary forgeries
1973 births
Living people
Prisoners and detainees of Florida
American people convicted of fraud
American psychics
American Romani people
|
```html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function template search</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Compute">
<link rel="up" href="../../boost_compute/reference.html#header.boost.compute.algorithm.search_hpp" title="Header <boost/compute/algorithm/search.hpp>">
<link rel="prev" href="scatter_if_idp35541184.html" title="Function template scatter_if">
<link rel="next" href="search_n.html" title="Function template search_n">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="scatter_if_idp35541184.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_compute/reference.html#header.boost.compute.algorithm.search_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="search_n.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.compute.search"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Function template search</span></h2>
<p>boost::compute::search — Substring matching algorithm. </p>
</div>
<h2 xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../boost_compute/reference.html#header.boost.compute.algorithm.search_hpp" title="Header <boost/compute/algorithm/search.hpp>">boost/compute/algorithm/search.hpp</a>>
</span>
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> TextIterator<span class="special">,</span> <span class="keyword">typename</span> PatternIterator<span class="special">></span>
<span class="identifier">TextIterator</span>
<span class="identifier">search</span><span class="special">(</span><span class="identifier">TextIterator</span> t_first<span class="special">,</span> <span class="identifier">TextIterator</span> t_last<span class="special">,</span> <span class="identifier">PatternIterator</span> p_first<span class="special">,</span>
<span class="identifier">PatternIterator</span> p_last<span class="special">,</span>
<span class="identifier">command_queue</span> <span class="special">&</span> queue <span class="special">=</span> <span class="identifier">system</span><span class="special">::</span><span class="identifier">default_queue</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idp98572272"></a><h2>Description</h2>
<p>Searches for the first match of the pattern [p_first, p_last) in text [t_first, t_last).
Space complexity: (distance(<code class="computeroutput">t_first</code>, <code class="computeroutput">t_last</code>)) </p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="computeroutput">p_first</code></span></p></td>
<td><p>Iterator pointing to start of pattern </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">p_last</code></span></p></td>
<td><p>Iterator pointing to end of pattern </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">queue</code></span></p></td>
<td><p>Queue on which to execute</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">t_first</code></span></p></td>
<td><p>Iterator pointing to start of text </p></td>
</tr>
<tr>
<td><p><span class="term"><code class="computeroutput">t_last</code></span></p></td>
<td><p>Iterator pointing to end of text </p></td>
</tr>
</tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>Iterator pointing to beginning of first occurrence</p></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="scatter_if_idp35541184.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_compute/reference.html#header.boost.compute.algorithm.search_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="search_n.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```java
/*
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
*/
package org.truffleruby.shared.options;
import java.util.Locale;
public enum OutputFormat {
TEXT,
JSON;
@Override
public String toString() {
return name().toLowerCase(Locale.ENGLISH);
}
}
```
|
```kotlin
@file:JvmMultifileClass
@file:JvmName("Introspection")
package com.apollographql.apollo.ast.introspection
import com.apollographql.apollo.annotations.ApolloExperimental
import com.apollographql.apollo.ast.HOST_FILESYSTEM
import okio.Path
import okio.buffer
import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName
@ApolloExperimental
fun Path.toIntrospectionSchema(): IntrospectionSchema {
return HOST_FILESYSTEM
.source(this)
.buffer()
.toIntrospectionSchema(toString())
}
```
|
```c++
/*********************************************************************
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of Pilz GmbH & Co. KG nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*********************************************************************/
#include <boost/core/demangle.hpp>
#include <gtest/gtest.h>
#include <moveit/planning_interface/planning_interface.h>
#include <moveit/planning_scene/planning_scene.h>
#include <moveit/robot_model/robot_model.h>
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/robot_state/conversions.h>
#include <moveit/robot_state/robot_state.h>
#include <moveit_msgs/MoveItErrorCodes.h>
#include "pilz_industrial_motion_planner/joint_limits_aggregator.h"
#include "pilz_industrial_motion_planner/joint_limits_container.h"
#include "pilz_industrial_motion_planner/trajectory_generator_circ.h"
#include "pilz_industrial_motion_planner/trajectory_generator_lin.h"
#include "pilz_industrial_motion_planner/trajectory_generator_ptp.h"
#include "test_utils.h"
const std::string PARAM_MODEL_NO_GRIPPER_NAME{ "robot_description" };
const std::string PARAM_MODEL_WITH_GRIPPER_NAME{ "robot_description_pg70" };
// parameters from parameter server
const std::string PARAM_PLANNING_GROUP_NAME("planning_group");
const std::string PARAM_TARGET_LINK_NAME("target_link");
/**
* A value type container to combine type and value
* In the tests types are trajectory generators.
* value = 0 refers to robot model without gripper
* value = 1 refers to robot model with gripper
*/
template <typename T, int N>
class ValueTypeContainer
{
public:
typedef T Type_;
static const int VALUE = N;
};
template <typename T, int N>
const int ValueTypeContainer<T, N>::VALUE;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorPTP, 0> PTP_NO_GRIPPER;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorPTP, 1> PTP_WITH_GRIPPER;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorLIN, 0> LIN_NO_GRIPPER;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorLIN, 1> LIN_WITH_GRIPPER;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorCIRC, 0> CIRC_NO_GRIPPER;
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorCIRC, 1> CIRC_WITH_GRIPPER;
typedef ::testing::Types<PTP_NO_GRIPPER, PTP_WITH_GRIPPER, LIN_NO_GRIPPER, LIN_WITH_GRIPPER, CIRC_NO_GRIPPER,
CIRC_WITH_GRIPPER>
TrajectoryGeneratorCommonTestTypes;
typedef ::testing::Types<PTP_NO_GRIPPER, LIN_NO_GRIPPER, CIRC_NO_GRIPPER> TrajectoryGeneratorCommonTestTypesNoGripper;
typedef ::testing::Types<PTP_WITH_GRIPPER, LIN_WITH_GRIPPER, CIRC_WITH_GRIPPER>
TrajectoryGeneratorCommonTestTypesWithGripper;
/**
* type parameterized test fixture
*/
template <typename T>
class TrajectoryGeneratorCommonTest : public ::testing::Test
{
protected:
void SetUp() override
{
ASSERT_TRUE(ph_.getParam(PARAM_PLANNING_GROUP_NAME, planning_group_));
ASSERT_TRUE(ph_.getParam(PARAM_TARGET_LINK_NAME, target_link_));
testutils::checkRobotModel(robot_model_, planning_group_, target_link_);
// create the limits container
std::string robot_description_param = (!T::VALUE ? PARAM_MODEL_NO_GRIPPER_NAME : PARAM_MODEL_WITH_GRIPPER_NAME);
pilz_industrial_motion_planner::JointLimitsContainer joint_limits =
pilz_industrial_motion_planner::JointLimitsAggregator::getAggregatedLimits(
ros::NodeHandle(robot_description_param + "_planning"), robot_model_->getActiveJointModels());
pilz_industrial_motion_planner::CartesianLimit cart_limits;
cart_limits.setMaxRotationalVelocity(0.5 * M_PI);
cart_limits.setMaxTranslationalAcceleration(2);
cart_limits.setMaxTranslationalDeceleration(2);
cart_limits.setMaxTranslationalVelocity(1);
pilz_industrial_motion_planner::LimitsContainer planner_limits;
planner_limits.setJointLimits(joint_limits);
planner_limits.setCartesianLimits(cart_limits);
// create planner instance
trajectory_generator_ =
std::unique_ptr<typename T::Type_>(new typename T::Type_(robot_model_, planner_limits, planning_group_));
ASSERT_NE(nullptr, trajectory_generator_) << "failed to create trajectory generator";
// create a valid motion plan request with goal in joint space as basis for
// tests
req_.group_name = planning_group_;
req_.max_velocity_scaling_factor = 1.0;
req_.max_acceleration_scaling_factor = 1.0;
robot_state::RobotState rstate(robot_model_);
rstate.setToDefaultValues();
rstate.setJointGroupPositions(planning_group_, std::vector<double>{ 0, M_PI / 2, 0, M_PI / 2, 0, 0 });
rstate.setVariableVelocities(std::vector<double>(rstate.getVariableCount(), 0.0));
moveit::core::robotStateToRobotStateMsg(rstate, req_.start_state, false);
moveit_msgs::Constraints goal_constraint;
moveit_msgs::JointConstraint joint_constraint;
joint_constraint.joint_name = this->robot_model_->getActiveJointModels().front()->getName();
joint_constraint.position = 0.5;
goal_constraint.joint_constraints.push_back(joint_constraint);
req_.goal_constraints.push_back(goal_constraint);
}
protected:
// ros stuff
ros::NodeHandle ph_{ "~" };
robot_model::RobotModelConstPtr robot_model_{
robot_model_loader::RobotModelLoader(!T::VALUE ? PARAM_MODEL_NO_GRIPPER_NAME : PARAM_MODEL_WITH_GRIPPER_NAME)
.getModel()
};
planning_scene::PlanningSceneConstPtr planning_scene_{ new planning_scene::PlanningScene(robot_model_) };
// trajectory generator
std::unique_ptr<pilz_industrial_motion_planner::TrajectoryGenerator> trajectory_generator_;
planning_interface::MotionPlanResponse res_;
planning_interface::MotionPlanRequest req_;
// test parameters from parameter server
std::string planning_group_, target_link_;
};
// Define the types we need to test
TYPED_TEST_SUITE(TrajectoryGeneratorCommonTest, TrajectoryGeneratorCommonTestTypes);
template <typename T>
class TrajectoryGeneratorCommonTestNoGripper : public TrajectoryGeneratorCommonTest<T>
{
};
TYPED_TEST_SUITE(TrajectoryGeneratorCommonTestNoGripper, TrajectoryGeneratorCommonTestTypesNoGripper);
template <typename T>
class TrajectoryGeneratorCommonTestWithGripper : public TrajectoryGeneratorCommonTest<T>
{
};
TYPED_TEST_SUITE(TrajectoryGeneratorCommonTestWithGripper, TrajectoryGeneratorCommonTestTypesWithGripper);
/**
* @brief test invalid scaling factor. The scaling factor must be in the range
* of [0.0001, 1]
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InvalideScalingFactor)
{
this->req_.max_velocity_scaling_factor = 2.0;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_MOTION_PLAN);
this->req_.max_velocity_scaling_factor = 1.0;
this->req_.max_acceleration_scaling_factor = 0;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_MOTION_PLAN);
this->req_.max_velocity_scaling_factor = 0.00001;
this->req_.max_acceleration_scaling_factor = 1;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_MOTION_PLAN);
this->req_.max_velocity_scaling_factor = 1;
this->req_.max_acceleration_scaling_factor = -1;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_MOTION_PLAN);
}
/**
* @brief Test invalid motion plan request for all trajectory generators
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InvalidGroupName)
{
this->req_.group_name = "foot";
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(moveit_msgs::MoveItErrorCodes::INVALID_GROUP_NAME, this->res_.error_code_.val);
}
/**
* @brief Test invalid motion plan request for all trajectory generators
*/
TYPED_TEST(TrajectoryGeneratorCommonTestNoGripper, GripperGroup)
{
this->req_.group_name = "gripper";
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(moveit_msgs::MoveItErrorCodes::INVALID_GROUP_NAME, this->res_.error_code_.val);
}
/**
* @brief Test invalid motion plan request for all trajectory generators
*/
TYPED_TEST(TrajectoryGeneratorCommonTestWithGripper, GripperGroup)
{
this->req_.group_name = "gripper";
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS, this->res_.error_code_.val);
}
/**
* @brief Test if there is a valid inverse kinematics solver for this planning
* group
* You can only test this case by commenting the planning_context.launch in the
* .test file
* //TODO create a separate robot model without ik solver and use it to create a
* trajectory generator
*/
// TYPED_TEST(TrajectoryGeneratorCommonTest, NoIKSolver)
//{
// EXPECT_FALSE(this->trajectory_generator_->generate(this->req_, this->res_));
// EXPECT_EQ(this->res_.error_code_.val,
// moveit_msgs::MoveItErrorCodes::INVALID_GROUP_NAME);
//}
/**
* @brief test the case of empty joint names in start state
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, EmptyJointNamesInStartState)
{
this->req_.start_state.joint_state.name.clear();
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_ROBOT_STATE);
}
/**
* @brief size of joint name and joint position does not match in start state
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InconsistentStartState)
{
this->req_.start_state.joint_state.name.push_back("joint_7");
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_ROBOT_STATE);
}
/**
* @brief joint position out of limit in start state
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, StartPostionOutOfLimit)
{
this->req_.start_state.joint_state.position[0] = 100;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_ROBOT_STATE);
}
/**
* @brief Check that no trajectory is generated if a start velocity is given
*
* @note This test is here for regression, however in general generators that
* can work with a given
* start velocity are highly desired.
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, StartPositionVelocityNoneZero)
{
this->req_.start_state.joint_state.velocity[0] = 100;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_ROBOT_STATE);
}
/**
* @brief goal constraints is empty
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, EmptyGoalConstraints)
{
this->req_.goal_constraints.clear();
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
/**
* @brief multiple goals
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, MultipleGoals)
{
moveit_msgs::JointConstraint joint_constraint;
moveit_msgs::PositionConstraint position_constraint;
moveit_msgs::OrientationConstraint orientation_constraint;
moveit_msgs::Constraints goal_constraint;
// two goal constraints
this->req_.goal_constraints.push_back(goal_constraint);
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
// one joint constraint and one orientation constraint
goal_constraint.joint_constraints.push_back(joint_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
// one joint constraint and one Cartesian constraint
goal_constraint.position_constraints.push_back(position_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
// two Cartesian constraints
goal_constraint.joint_constraints.clear();
goal_constraint.position_constraints.push_back(position_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
goal_constraint.position_constraints.push_back(position_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
/**
* @brief invalid joint name in joint constraint
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InvalideJointNameInGoal)
{
moveit_msgs::JointConstraint joint_constraint;
joint_constraint.joint_name = "test_joint_2";
this->req_.goal_constraints.front().joint_constraints[0] = joint_constraint;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
/**
* @brief MissingJointConstraint
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, MissingJointConstraint)
{
moveit_msgs::JointConstraint joint_constraint;
joint_constraint.joint_name = "test_joint_2";
this->req_.goal_constraints.front().joint_constraints.pop_back(); //<-- Missing joint constraint
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
/**
* @brief invalid joint position in joint constraint
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InvalideJointPositionInGoal)
{
this->req_.goal_constraints.front().joint_constraints[0].position = 100;
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
/**
* @brief invalid link name in Cartesian goal constraint
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, InvalidLinkNameInCartesianGoal)
{
moveit_msgs::PositionConstraint position_constraint;
moveit_msgs::OrientationConstraint orientation_constraint;
moveit_msgs::Constraints goal_constraint;
// link name not set
goal_constraint.position_constraints.push_back(position_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
// different link names in position and orientation goals
goal_constraint.position_constraints.front().link_name = "test_link_1";
goal_constraint.orientation_constraints.front().link_name = "test_link_2";
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
// no solver for the link
goal_constraint.orientation_constraints.front().link_name = "test_link_1";
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::NO_IK_SOLUTION);
}
/**
* @brief no pose set in position constraint
*/
TYPED_TEST(TrajectoryGeneratorCommonTest, EmptyPrimitivePoses)
{
moveit_msgs::PositionConstraint position_constraint;
moveit_msgs::OrientationConstraint orientation_constraint;
moveit_msgs::Constraints goal_constraint;
position_constraint.link_name =
this->robot_model_->getJointModelGroup(this->planning_group_)->getLinkModelNames().back();
orientation_constraint.link_name = position_constraint.link_name;
goal_constraint.position_constraints.push_back(position_constraint);
goal_constraint.orientation_constraints.push_back(orientation_constraint);
this->req_.goal_constraints.clear();
this->req_.goal_constraints.push_back(goal_constraint);
EXPECT_FALSE(this->trajectory_generator_->generate(this->planning_scene_, this->req_, this->res_));
EXPECT_EQ(this->res_.error_code_.val, moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS);
}
int main(int argc, char** argv)
{
ros::init(argc, argv, "unittest_trajectory_generator_common");
// ros::NodeHandle nh;
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
```
|
Abacetus profundillus is a species of ground beetle in the subfamily Pterostichinae. It was described by Straneo in 1943.
References
profundillus
Beetles described in 1943
|
```c++
//===--- AVR.cpp - AVR ToolChain Implementations ----------------*- C++ -*-===//
//
// See path_to_url for license information.
//
//===your_sha256_hash------===//
#include "AVR.h"
#include "CommonArgs.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Options.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
using namespace clang::driver;
using namespace clang::driver::toolchains;
using namespace clang::driver::tools;
using namespace clang;
using namespace llvm::opt;
namespace {
// NOTE: This list has been synchronized with gcc-avr 7.3.0 and avr-libc 2.0.0.
constexpr struct {
StringRef Name;
StringRef SubPath;
StringRef Family;
unsigned DataAddr;
} MCUInfo[] = {
{"at90s1200", "", "avr1", 0},
{"attiny11", "", "avr1", 0},
{"attiny12", "", "avr1", 0},
{"attiny15", "", "avr1", 0},
{"attiny28", "", "avr1", 0},
{"at90s2313", "tiny-stack", "avr2", 0x800060},
{"at90s2323", "tiny-stack", "avr2", 0x800060},
{"at90s2333", "tiny-stack", "avr2", 0x800060},
{"at90s2343", "tiny-stack", "avr2", 0x800060},
{"at90s4433", "tiny-stack", "avr2", 0x800060},
{"attiny22", "tiny-stack", "avr2", 0x800060},
{"attiny26", "tiny-stack", "avr2", 0x800060},
{"at90s4414", "", "avr2", 0x800060},
{"at90s4434", "", "avr2", 0x800060},
{"at90s8515", "", "avr2", 0x800060},
{"at90c8534", "", "avr2", 0x800060},
{"at90s8535", "", "avr2", 0x800060},
{"attiny13", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny13a", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny2313", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny2313a", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny24", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny24a", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny25", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny261", "avr25/tiny-stack", "avr25", 0x800060},
{"attiny261a", "avr25/tiny-stack", "avr25", 0x800060},
{"at86rf401", "avr25", "avr25", 0x800060},
{"ata5272", "avr25", "avr25", 0x800100},
{"ata6616c", "avr25", "avr25", 0x800100},
{"attiny4313", "avr25", "avr25", 0x800060},
{"attiny44", "avr25", "avr25", 0x800060},
{"attiny44a", "avr25", "avr25", 0x800060},
{"attiny84", "avr25", "avr25", 0x800060},
{"attiny84a", "avr25", "avr25", 0x800060},
{"attiny45", "avr25", "avr25", 0x800060},
{"attiny85", "avr25", "avr25", 0x800060},
{"attiny441", "avr25", "avr25", 0x800100},
{"attiny461", "avr25", "avr25", 0x800060},
{"attiny461a", "avr25", "avr25", 0x800060},
{"attiny841", "avr25", "avr25", 0x800100},
{"attiny861", "avr25", "avr25", 0x800060},
{"attiny861a", "avr25", "avr25", 0x800060},
{"attiny87", "avr25", "avr25", 0x800100},
{"attiny43u", "avr25", "avr25", 0x800060},
{"attiny48", "avr25", "avr25", 0x800100},
{"attiny88", "avr25", "avr25", 0x800100},
{"attiny828", "avr25", "avr25", 0x800100},
{"at43usb355", "avr3", "avr3", 0x800100},
{"at76c711", "avr3", "avr3", 0x800060},
{"atmega103", "avr31", "avr31", 0x800060},
{"at43usb320", "avr31", "avr31", 0x800060},
{"attiny167", "avr35", "avr35", 0x800100},
{"at90usb82", "avr35", "avr35", 0x800100},
{"at90usb162", "avr35", "avr35", 0x800100},
{"ata5505", "avr35", "avr35", 0x800100},
{"ata6617c", "avr35", "avr35", 0x800100},
{"ata664251", "avr35", "avr35", 0x800100},
{"atmega8u2", "avr35", "avr35", 0x800100},
{"atmega16u2", "avr35", "avr35", 0x800100},
{"atmega32u2", "avr35", "avr35", 0x800100},
{"attiny1634", "avr35", "avr35", 0x800100},
{"atmega8", "avr4", "avr4", 0x800060},
{"ata6289", "avr4", "avr4", 0x800100},
{"atmega8a", "avr4", "avr4", 0x800060},
{"ata6285", "avr4", "avr4", 0x800100},
{"ata6286", "avr4", "avr4", 0x800100},
{"ata6612c", "avr4", "avr4", 0x800100},
{"atmega48", "avr4", "avr4", 0x800100},
{"atmega48a", "avr4", "avr4", 0x800100},
{"atmega48pa", "avr4", "avr4", 0x800100},
{"atmega48pb", "avr4", "avr4", 0x800100},
{"atmega48p", "avr4", "avr4", 0x800100},
{"atmega88", "avr4", "avr4", 0x800100},
{"atmega88a", "avr4", "avr4", 0x800100},
{"atmega88p", "avr4", "avr4", 0x800100},
{"atmega88pa", "avr4", "avr4", 0x800100},
{"atmega88pb", "avr4", "avr4", 0x800100},
{"atmega8515", "avr4", "avr4", 0x800060},
{"atmega8535", "avr4", "avr4", 0x800060},
{"atmega8hva", "avr4", "avr4", 0x800100},
{"at90pwm1", "avr4", "avr4", 0x800100},
{"at90pwm2", "avr4", "avr4", 0x800100},
{"at90pwm2b", "avr4", "avr4", 0x800100},
{"at90pwm3", "avr4", "avr4", 0x800100},
{"at90pwm3b", "avr4", "avr4", 0x800100},
{"at90pwm81", "avr4", "avr4", 0x800100},
{"ata5702m322", "avr5", "avr5", 0x800200},
{"ata5782", "avr5", "avr5", 0x800200},
{"ata5790", "avr5", "avr5", 0x800100},
{"ata5790n", "avr5", "avr5", 0x800100},
{"ata5791", "avr5", "avr5", 0x800100},
{"ata5795", "avr5", "avr5", 0x800100},
{"ata5831", "avr5", "avr5", 0x800200},
{"ata6613c", "avr5", "avr5", 0x800100},
{"ata6614q", "avr5", "avr5", 0x800100},
{"ata8210", "avr5", "avr5", 0x800200},
{"ata8510", "avr5", "avr5", 0x800200},
{"atmega16", "avr5", "avr5", 0x800060},
{"atmega16a", "avr5", "avr5", 0x800060},
{"atmega161", "avr5", "avr5", 0x800060},
{"atmega162", "avr5", "avr5", 0x800100},
{"atmega163", "avr5", "avr5", 0x800060},
{"atmega164a", "avr5", "avr5", 0x800100},
{"atmega164p", "avr5", "avr5", 0x800100},
{"atmega164pa", "avr5", "avr5", 0x800100},
{"atmega165", "avr5", "avr5", 0x800100},
{"atmega165a", "avr5", "avr5", 0x800100},
{"atmega165p", "avr5", "avr5", 0x800100},
{"atmega165pa", "avr5", "avr5", 0x800100},
{"atmega168", "avr5", "avr5", 0x800100},
{"atmega168a", "avr5", "avr5", 0x800100},
{"atmega168p", "avr5", "avr5", 0x800100},
{"atmega168pa", "avr5", "avr5", 0x800100},
{"atmega168pb", "avr5", "avr5", 0x800100},
{"atmega169", "avr5", "avr5", 0x800100},
{"atmega169a", "avr5", "avr5", 0x800100},
{"atmega169p", "avr5", "avr5", 0x800100},
{"atmega169pa", "avr5", "avr5", 0x800100},
{"atmega32", "avr5", "avr5", 0x800060},
{"atmega32a", "avr5", "avr5", 0x800060},
{"atmega323", "avr5", "avr5", 0x800060},
{"atmega324a", "avr5", "avr5", 0x800100},
{"atmega324p", "avr5", "avr5", 0x800100},
{"atmega324pa", "avr5", "avr5", 0x800100},
{"atmega324pb", "avr5", "avr5", 0x800100},
{"atmega325", "avr5", "avr5", 0x800100},
{"atmega325a", "avr5", "avr5", 0x800100},
{"atmega325p", "avr5", "avr5", 0x800100},
{"atmega325pa", "avr5", "avr5", 0x800100},
{"atmega3250", "avr5", "avr5", 0x800100},
{"atmega3250a", "avr5", "avr5", 0x800100},
{"atmega3250p", "avr5", "avr5", 0x800100},
{"atmega3250pa", "avr5", "avr5", 0x800100},
{"atmega328", "avr5", "avr5", 0x800100},
{"atmega328p", "avr5", "avr5", 0x800100},
{"atmega328pb", "avr5", "avr5", 0x800100},
{"atmega329", "avr5", "avr5", 0x800100},
{"atmega329a", "avr5", "avr5", 0x800100},
{"atmega329p", "avr5", "avr5", 0x800100},
{"atmega329pa", "avr5", "avr5", 0x800100},
{"atmega3290", "avr5", "avr5", 0x800100},
{"atmega3290a", "avr5", "avr5", 0x800100},
{"atmega3290p", "avr5", "avr5", 0x800100},
{"atmega3290pa", "avr5", "avr5", 0x800100},
{"atmega406", "avr5", "avr5", 0x800100},
{"atmega64", "avr5", "avr5", 0x800100},
{"atmega64a", "avr5", "avr5", 0x800100},
{"atmega640", "avr5", "avr5", 0x800200},
{"atmega644", "avr5", "avr5", 0x800100},
{"atmega644a", "avr5", "avr5", 0x800100},
{"atmega644p", "avr5", "avr5", 0x800100},
{"atmega644pa", "avr5", "avr5", 0x800100},
{"atmega645", "avr5", "avr5", 0x800100},
{"atmega645a", "avr5", "avr5", 0x800100},
{"atmega645p", "avr5", "avr5", 0x800100},
{"atmega649", "avr5", "avr5", 0x800100},
{"atmega649a", "avr5", "avr5", 0x800100},
{"atmega649p", "avr5", "avr5", 0x800100},
{"atmega6450", "avr5", "avr5", 0x800100},
{"atmega6450a", "avr5", "avr5", 0x800100},
{"atmega6450p", "avr5", "avr5", 0x800100},
{"atmega6490", "avr5", "avr5", 0x800100},
{"atmega6490a", "avr5", "avr5", 0x800100},
{"atmega6490p", "avr5", "avr5", 0x800100},
{"atmega64rfr2", "avr5", "avr5", 0x800200},
{"atmega644rfr2", "avr5", "avr5", 0x800200},
{"atmega16hva", "avr5", "avr5", 0x800100},
{"atmega16hva2", "avr5", "avr5", 0x800100},
{"atmega16hvb", "avr5", "avr5", 0x800100},
{"atmega16hvbrevb", "avr5", "avr5", 0x800100},
{"atmega32hvb", "avr5", "avr5", 0x800100},
{"atmega32hvbrevb", "avr5", "avr5", 0x800100},
{"atmega64hve", "avr5", "avr5", 0x800100},
{"atmega64hve2", "avr5", "avr5", 0x800100},
{"at90can32", "avr5", "avr5", 0x800100},
{"at90can64", "avr5", "avr5", 0x800100},
{"at90pwm161", "avr5", "avr5", 0x800100},
{"at90pwm216", "avr5", "avr5", 0x800100},
{"at90pwm316", "avr5", "avr5", 0x800100},
{"atmega32c1", "avr5", "avr5", 0x800100},
{"atmega64c1", "avr5", "avr5", 0x800100},
{"atmega16m1", "avr5", "avr5", 0x800100},
{"atmega32m1", "avr5", "avr5", 0x800100},
{"atmega64m1", "avr5", "avr5", 0x800100},
{"atmega16u4", "avr5", "avr5", 0x800100},
{"atmega32u4", "avr5", "avr5", 0x800100},
{"atmega32u6", "avr5", "avr5", 0x800100},
{"at90usb646", "avr5", "avr5", 0x800100},
{"at90usb647", "avr5", "avr5", 0x800100},
{"at90scr100", "avr5", "avr5", 0x800100},
{"at94k", "avr5", "avr5", 0x800060},
{"m3000", "avr5", "avr5", 0x800060},
{"atmega128", "avr51", "avr51", 0x800100},
{"atmega128a", "avr51", "avr51", 0x800100},
{"atmega1280", "avr51", "avr51", 0x800200},
{"atmega1281", "avr51", "avr51", 0x800200},
{"atmega1284", "avr51", "avr51", 0x800100},
{"atmega1284p", "avr51", "avr51", 0x800100},
{"atmega128rfa1", "avr51", "avr51", 0x800200},
{"atmega128rfr2", "avr51", "avr51", 0x800200},
{"atmega1284rfr2", "avr51", "avr51", 0x800200},
{"at90can128", "avr51", "avr51", 0x800200},
{"at90usb1286", "avr51", "avr51", 0x800200},
{"at90usb1287", "avr51", "avr51", 0x800200},
{"atmega2560", "avr6", "avr6", 0x800200},
{"atmega2561", "avr6", "avr6", 0x800200},
{"atmega256rfr2", "avr6", "avr6", 0x800200},
{"atmega2564rfr2", "avr6", "avr6", 0x800200},
{"attiny4", "avrtiny", "avrtiny", 0x800040},
{"attiny5", "avrtiny", "avrtiny", 0x800040},
{"attiny9", "avrtiny", "avrtiny", 0x800040},
{"attiny10", "avrtiny", "avrtiny", 0x800040},
{"attiny20", "avrtiny", "avrtiny", 0x800040},
{"attiny40", "avrtiny", "avrtiny", 0x800040},
{"attiny102", "avrtiny", "avrtiny", 0x800040},
{"attiny104", "avrtiny", "avrtiny", 0x800040},
{"atxmega16a4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega16a4u", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega16c4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega16d4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32a4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32a4u", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32c3", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32c4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32d3", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32d4", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega32e5", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega16e5", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega8e5", "avrxmega2", "avrxmega2", 0x802000},
{"atxmega64a3", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64a3u", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64a4u", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64b1", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64b3", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64c3", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64d3", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64d4", "avrxmega4", "avrxmega4", 0x802000},
{"atxmega64a1", "avrxmega5", "avrxmega5", 0x802000},
{"atxmega64a1u", "avrxmega5", "avrxmega5", 0x802000},
{"atxmega128a3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128a3u", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128b1", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128b3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128c3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128d3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128d4", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega192a3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega192a3u", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega192c3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega192d3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256a3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256a3u", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256a3b", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256a3bu", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256c3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega256d3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega384c3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega384d3", "avrxmega6", "avrxmega6", 0x802000},
{"atxmega128a1", "avrxmega7", "avrxmega7", 0x802000},
{"atxmega128a1u", "avrxmega7", "avrxmega7", 0x802000},
{"atxmega128a4u", "avrxmega7", "avrxmega7", 0x802000},
{"attiny202", "avrxmega3/short-calls", "avrxmega3", 0x803F80},
{"attiny204", "avrxmega3/short-calls", "avrxmega3", 0x803F80},
{"attiny212", "avrxmega3/short-calls", "avrxmega3", 0x803F80},
{"attiny214", "avrxmega3/short-calls", "avrxmega3", 0x803F80},
{"attiny402", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny404", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny406", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny412", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny414", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny416", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny417", "avrxmega3/short-calls", "avrxmega3", 0x803F00},
{"attiny804", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"attiny806", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"attiny807", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"attiny814", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"attiny816", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"attiny817", "avrxmega3/short-calls", "avrxmega3", 0x803E00},
{"atmega808", "avrxmega3/short-calls", "avrxmega3", 0x803C00},
{"atmega809", "avrxmega3/short-calls", "avrxmega3", 0x803C00},
{"atmega1608", "avrxmega3", "avrxmega3", 0x803800},
{"atmega1609", "avrxmega3", "avrxmega3", 0x803800},
{"atmega3208", "avrxmega3", "avrxmega3", 0x803000},
{"atmega3209", "avrxmega3", "avrxmega3", 0x803000},
{"atmega4808", "avrxmega3", "avrxmega3", 0x802800},
{"atmega4809", "avrxmega3", "avrxmega3", 0x802800},
{"attiny1604", "avrxmega3", "avrxmega3", 0x803C00},
{"attiny1606", "avrxmega3", "avrxmega3", 0x803C00},
{"attiny1607", "avrxmega3", "avrxmega3", 0x803C00},
{"attiny1614", "avrxmega3", "avrxmega3", 0x803800},
{"attiny1616", "avrxmega3", "avrxmega3", 0x803800},
{"attiny1617", "avrxmega3", "avrxmega3", 0x803800},
{"attiny1624", "avrxmega3", "avrxmega3", 0x803800},
{"attiny1626", "avrxmega3", "avrxmega3", 0x803800},
{"attiny1627", "avrxmega3", "avrxmega3", 0x803800},
{"attiny3216", "avrxmega3", "avrxmega3", 0x803800},
{"attiny3217", "avrxmega3", "avrxmega3", 0x803800},
};
std::string GetMCUSubPath(StringRef MCUName) {
for (const auto &MCU : MCUInfo)
if (MCU.Name == MCUName)
return std::string(MCU.SubPath);
return "";
}
std::optional<StringRef> GetMCUFamilyName(StringRef MCUName) {
for (const auto &MCU : MCUInfo)
if (MCU.Name == MCUName)
return std::optional<StringRef>(MCU.Family);
return std::nullopt;
}
std::optional<unsigned> GetMCUSectionAddressData(StringRef MCUName) {
for (const auto &MCU : MCUInfo)
if (MCU.Name == MCUName && MCU.DataAddr > 0)
return std::optional<unsigned>(MCU.DataAddr);
return std::nullopt;
}
const StringRef PossibleAVRLibcLocations[] = {
"/avr",
"/usr/avr",
"/usr/lib/avr",
};
} // end anonymous namespace
/// AVR Toolchain
AVRToolChain::AVRToolChain(const Driver &D, const llvm::Triple &Triple,
const ArgList &Args)
: Generic_ELF(D, Triple, Args) {
GCCInstallation.init(Triple, Args);
if (getCPUName(D, Args, Triple).empty())
D.Diag(diag::warn_drv_avr_mcu_not_specified);
// Only add default libraries if the user hasn't explicitly opted out.
if (!Args.hasArg(options::OPT_nostdlib) &&
!Args.hasArg(options::OPT_nodefaultlibs) && GCCInstallation.isValid()) {
GCCInstallPath = GCCInstallation.getInstallPath();
std::string GCCParentPath(GCCInstallation.getParentLibPath());
getProgramPaths().push_back(GCCParentPath + "/../bin");
}
}
void AVRToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
ArgStringList &CC1Args) const {
if (DriverArgs.hasArg(options::OPT_nostdinc) ||
DriverArgs.hasArg(options::OPT_nostdlibinc))
return;
// Omit if there is no avr-libc installed.
std::optional<std::string> AVRLibcRoot = findAVRLibcInstallation();
if (!AVRLibcRoot)
return;
// Add 'avr-libc/include' to clang system include paths if applicable.
std::string AVRInc = *AVRLibcRoot + "/include";
if (llvm::sys::fs::is_directory(AVRInc))
addSystemInclude(DriverArgs, CC1Args, AVRInc);
}
void AVRToolChain::addClangTargetOptions(
const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
Action::OffloadKind DeviceOffloadKind) const {
// By default, use `.ctors` (not `.init_array`), as required by libgcc, which
// runs constructors/destructors on AVR.
if (!DriverArgs.hasFlag(options::OPT_fuse_init_array,
options::OPT_fno_use_init_array, false))
CC1Args.push_back("-fno-use-init-array");
// Use `-fno-use-cxa-atexit` as default, since avr-libc does not support
// `__cxa_atexit()`.
if (!DriverArgs.hasFlag(options::OPT_fuse_cxa_atexit,
options::OPT_fno_use_cxa_atexit, false))
CC1Args.push_back("-fno-use-cxa-atexit");
}
Tool *AVRToolChain::buildLinker() const {
return new tools::AVR::Linker(getTriple(), *this);
}
std::string
AVRToolChain::getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component,
FileType Type = ToolChain::FT_Static) const {
assert(Type == ToolChain::FT_Static && "AVR only supports static libraries");
// Since AVR can never be a host environment, its compiler-rt library files
// should always have ".a" suffix, even on windows.
SmallString<32> File("/libclang_rt.");
File += Component.str();
File += ".a";
// Return the default compiler-rt path appended with
// "avr/libclang_rt.$COMPONENT.a".
SmallString<256> Path(ToolChain::getCompilerRTPath());
llvm::sys::path::append(Path, "avr");
llvm::sys::path::append(Path, File.str());
return std::string(Path.str());
}
void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA,
const InputInfo &Output,
const InputInfoList &Inputs, const ArgList &Args,
const char *LinkingOutput) const {
const auto &TC = static_cast<const AVRToolChain &>(getToolChain());
const Driver &D = getToolChain().getDriver();
// Compute information about the target AVR.
std::string CPU = getCPUName(D, Args, getToolChain().getTriple());
std::optional<StringRef> FamilyName = GetMCUFamilyName(CPU);
std::optional<std::string> AVRLibcRoot = TC.findAVRLibcInstallation();
std::optional<unsigned> SectionAddressData = GetMCUSectionAddressData(CPU);
// Compute the linker program path, and use GNU "avr-ld" as default.
const Arg *A = Args.getLastArg(options::OPT_fuse_ld_EQ);
std::string Linker = A ? getToolChain().GetLinkerPath(nullptr)
: getToolChain().GetProgramPath(getShortName());
ArgStringList CmdArgs;
CmdArgs.push_back("-o");
CmdArgs.push_back(Output.getFilename());
// Enable garbage collection of unused sections.
CmdArgs.push_back("--gc-sections");
// Add library search paths before we specify libraries.
Args.AddAllArgs(CmdArgs, options::OPT_L);
getToolChain().AddFilePathLibArgs(Args, CmdArgs);
// Currently we only support libgcc and compiler-rt.
auto RtLib = TC.GetRuntimeLibType(Args);
assert(
(RtLib == ToolChain::RLT_Libgcc || RtLib == ToolChain::RLT_CompilerRT) &&
"unknown runtime library");
// Only add default libraries if the user hasn't explicitly opted out.
bool LinkStdlib = false;
if (!Args.hasArg(options::OPT_nostdlib) &&
!Args.hasArg(options::OPT_nodefaultlibs)) {
if (!CPU.empty()) {
if (!FamilyName) {
// We do not have an entry for this CPU in the family
// mapping table yet.
D.Diag(diag::warn_drv_avr_family_linking_stdlibs_not_implemented)
<< CPU;
} else if (!AVRLibcRoot) {
// No avr-libc found and so no runtime linked.
D.Diag(diag::warn_drv_avr_libc_not_found);
} else {
std::string SubPath = GetMCUSubPath(CPU);
// Add path of avr-libc.
CmdArgs.push_back(
Args.MakeArgString(Twine("-L") + *AVRLibcRoot + "/lib/" + SubPath));
if (RtLib == ToolChain::RLT_Libgcc)
CmdArgs.push_back(Args.MakeArgString("-L" + TC.getGCCInstallPath() +
"/" + SubPath));
LinkStdlib = true;
}
}
if (!LinkStdlib)
D.Diag(diag::warn_drv_avr_stdlib_not_linked);
}
if (SectionAddressData) {
CmdArgs.push_back(Args.MakeArgString(
"-Tdata=0x" + Twine::utohexstr(*SectionAddressData)));
} else {
// We do not have an entry for this CPU in the address mapping table yet.
D.Diag(diag::warn_drv_avr_linker_section_addresses_not_implemented) << CPU;
}
// If the family name is known, we can link with the device-specific libgcc.
// Without it, libgcc will simply not be linked. This matches avr-gcc
// behavior.
if (LinkStdlib) {
assert(!CPU.empty() && "CPU name must be known in order to link stdlibs");
CmdArgs.push_back("--start-group");
// Add the object file for the CRT.
std::string CrtFileName = std::string("-l:crt") + CPU + std::string(".o");
CmdArgs.push_back(Args.MakeArgString(CrtFileName));
// Link to libgcc.
if (RtLib == ToolChain::RLT_Libgcc)
CmdArgs.push_back("-lgcc");
// Link to generic libraries of avr-libc.
CmdArgs.push_back("-lm");
CmdArgs.push_back("-lc");
// Add the link library specific to the MCU.
CmdArgs.push_back(Args.MakeArgString(std::string("-l") + CPU));
// Add the relocatable inputs.
AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
// We directly use libclang_rt.builtins.a as input file, instead of using
// '-lclang_rt.builtins'.
if (RtLib == ToolChain::RLT_CompilerRT) {
std::string RtLib =
getToolChain().getCompilerRT(Args, "builtins", ToolChain::FT_Static);
if (llvm::sys::fs::exists(RtLib))
CmdArgs.push_back(Args.MakeArgString(RtLib));
}
CmdArgs.push_back("--end-group");
// Add user specified linker script.
Args.AddAllArgs(CmdArgs, options::OPT_T);
// Specify the family name as the emulation mode to use.
// This is almost always required because otherwise avr-ld
// will assume 'avr2' and warn about the program being larger
// than the bare minimum supports.
if (Linker.find("avr-ld") != std::string::npos)
CmdArgs.push_back(Args.MakeArgString(std::string("-m") + *FamilyName));
} else {
AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);
}
C.addCommand(std::make_unique<Command>(
JA, *this, ResponseFileSupport::AtFileCurCP(), Args.MakeArgString(Linker),
CmdArgs, Inputs, Output));
}
std::optional<std::string> AVRToolChain::findAVRLibcInstallation() const {
// Search avr-libc installation according to avr-gcc installation.
std::string GCCParent(GCCInstallation.getParentLibPath());
std::string Path(GCCParent + "/avr");
if (llvm::sys::fs::is_directory(Path))
return Path;
Path = GCCParent + "/../avr";
if (llvm::sys::fs::is_directory(Path))
return Path;
// Search avr-libc installation from possible locations, and return the first
// one that exists, if there is no avr-gcc installed.
for (StringRef PossiblePath : PossibleAVRLibcLocations) {
std::string Path = getDriver().SysRoot + PossiblePath.str();
if (llvm::sys::fs::is_directory(Path))
return Path;
}
return std::nullopt;
}
```
|
Francis Abott Goodhue Jr. (June 14, 1883 – June 1963) was an American banker who was the president of the Bank of the Manhattan Company from 1931 to 1948.
Early life
Goodhue was born in Brookline, Massachusetts on June 14, 1883. He was a son of Francis Abott Goodhue (1847–1905) and Elizabeth Johnson (née Cushing) Goodhue. His siblings were Lawrence Cushing Goodhue (husband of Gertrude Munroe Smith, a daughter of Prof. Munroe Smith and granddaughter of Gen. Henry S. Huidekoper) and Elizabeth Cushing Goodhue (wife of Claude Fuess, Headmaster of Phillips Academy). His paternal grandparents were Samuel Goodhue and Mary Caroline (née Williams) Goodhue.
After graduating from Philips Academy in Andover, Massachusetts, he attended Harvard College where he graduated in 1906, followed by one year at Harvard Law School.
Career
In 1907, Goodhue began his banking career as a messenger with First National Bank of Boston. He became president of the Brookline Trust Company in 1912 a year before he was named vice president of the First National Bank of Boston and engaged in foreign banking activities. In 1917, he established a branch of the bank in Buenos Aires, Argentina. In 1919, while at First National, he "inspired the formation" of the French American Banking Corporation of New York, serving as a director.
In 1921, Goodhue came to New York City to help organize the International Acceptance Bank, of which he served as president from 1921 until 1931, with James Warburg (the son of Paul Warburg) as his vice president. The International Acceptance Bank was acquired by the Bank of the Manhattan Company in 1929, with Goodhue becoming president and Warburg becoming chairman of the combined organization.
In 1929, he was elected president of the American Acceptance Council which had been founded by Paul Warburg in 1919. In 1931, he was succeeded by Charles S. McCain, chairman of the board of the Chase National Bank.
When International Acceptance merged with the Bank of the Manhattan Company in 1931, he became president of the combined bank serving in that role until his retirement in 1948 when he was succeeded by Lawrence C. Marshall.
Volunteer and philanthropic efforts
In 1918, Goodhue served as one of three representing the United States on the Interallied Committee for War, Purchases and Finance in London. In 1932, he began serving on the American Committee on Standstill Credits to Germany. He resigned in 1939 because the bank had no longer had any outstanding debts under the agreement.
In 1937, he accepted the chairmanship of the finance section in the United Hospitals Campaign. In that role, he directed the work of nineteen major solicitation groups on behalf of the ninety-two voluntary hospitals in the fund and the Visiting Nurse Association of Brooklyn.
In 1942, Governor Herbert H. Lehman nominated Goodhue to replace Mortimer N. Buckner on the State Banking Board, Group 1, which acted as an advisory "cabinet" to the New York State Superintendent of Banks. Group 1 was originally reserved for nominees of the ten banks with deposits of more than $150,000,000 when it was established in 1932.
After his retirement from the Manhattan Company in 1948, he continued to serve on the board until 1955 when the bank was merged with the Chase National Bank becoming the Chase Manhattan Bank. Goodhue served as a member of the bank's trust advisory board until his death in 1963.
Personal life
Goodhue was married to Nora Forbes Thayer (1889–1988). She was a daughter of the former Evelyn Duncan Forbes and prominent ornithologist John Eliot Thayer (the twin brother of yachtsman Bayard Thayer). Her paternal grandparents were banker Nathaniel Thayer Jr. and Cornelia Van Rensselaer Thayer (a daughter of Stephen Van Rensselaer IV). Together, they were the parents of:
Francis Abott Goodhue III (1916–1990), a Harvard Law School graduate who married Mary Elizabeth Brier, a daughter of Ernest Brier of Grosse Pointe, Michigan, a vice president of the Parke‐Davis Company, in 1948. Mary, also a lawyer, was elected to the New York State Assembly in 1975 and the New York State Senate in 1979.
Phoebe Thayer Goodhue (1919–2019), who had her debut in 1937 at the Corinthian Room of The Pierre. She married Lt. Warren Winslow (1918–1944) in 1942. After his death in January 1944 while serving with the U.S. Navy, she married Gerrish H. Milliken Jr. (1917–2015), a brother of Roger Milliken, grandson of Seth M. Milliken of Milliken & Company, and great-grandson of Seth L. Milliken, in 1946.
John Thayer Goodhue, a vice president of international sales with the West India Shipping Company in New York, who married Charlotte Barton Streeter (1927–2013), a daughter of Edward Streeter, in 1949.
Stephen Van Rensselaer Goodhue (1929–2011), a former senior vice president with Manufacturers Hanover Trust Company and president of the Visiting Nurse Service of New York who married Judith (née Relles) Wiener, a daughter of Nathan Relles, in 1986.
Goodhue died of a heart attack at his home, 16 Ives Road, Hewlett on Long Island, in June 1963. They also had a home in Lancaster.
Descendants
Through his son Francis, he was a grandfather of Francis Abott Goodhue IV, who married Evelyn Treat Cutler, a daughter of Philip Cutler of Dresden Mills, Maine (the founding headmaster of the Brookwood School in Manchester-by-the-Sea), in 1976.
References
External links
Nora Thayer Goodhue collection of images from the John Eliot Thayer centenary MCZ exhibit, 1962.
1883 births
1963 deaths
People from Brookline, Massachusetts
Phillips Academy alumni
Harvard College alumni
American bankers
Harvard Law School alumni
|
```python
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from .datasets import make_wave
from .plot_helpers import cm2
def plot_linear_regression_wave():
X, y = make_wave(n_samples=60)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42)
line = np.linspace(-3, 3, 100).reshape(-1, 1)
lr = LinearRegression().fit(X_train, y_train)
print("w[0]: %f b: %f" % (lr.coef_[0], lr.intercept_))
plt.figure(figsize=(8, 8))
plt.plot(line, lr.predict(line))
plt.plot(X, y, 'o', c=cm2(0))
ax = plt.gca()
ax.spines['left'].set_position('center')
ax.spines['right'].set_color('none')
ax.spines['bottom'].set_position('center')
ax.spines['top'].set_color('none')
ax.set_ylim(-3, 3)
#ax.set_xlabel("Feature")
#ax.set_ylabel("Target")
ax.legend(["model", "training data"], loc="best")
ax.grid(True)
ax.set_aspect('equal')
```
|
```smalltalk
/* ====================================================================
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
==================================================================== */
namespace NPOI.HSSF.Record.Chart
{
using System;
using System.Text;
using NPOI.Util;
/**
* DATALABEXT - Chart Data Label Extension (0x086A) <br/>
*
* @author Patrick Cheng
*/
public class DataLabExtRecord : StandardRecord
{
public const short sid = 0x086A;
private int rt;
private int grbitFrt;
private byte[] unused = new byte[8];
public DataLabExtRecord(RecordInputStream in1)
{
rt = in1.ReadShort();
grbitFrt = in1.ReadShort();
in1.ReadFully(unused);
}
protected override int DataSize
{
get
{
return 2 + 2 + 8;
}
}
public override short Sid
{
get
{
return sid;
}
}
public override void Serialize(ILittleEndianOutput out1)
{
out1.WriteShort(rt);
out1.WriteShort(grbitFrt);
out1.Write(unused);
}
public override String ToString()
{
StringBuilder buffer = new StringBuilder();
buffer.Append("[DATALABEXT]\n");
buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');
buffer.Append(" .grbitFrt=").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');
buffer.Append(" .unused =").Append(HexDump.ToHex(unused)).Append('\n');
buffer.Append("[/DATALABEXT]\n");
return buffer.ToString();
}
}
}
```
|
Méba-Mickaël Zeze (born 19 May 1994) is a French sprinter who specialises in the 100 and 200 metres. He won the bronze medal at the 2011 World Youth Championships in Athletics in Lille Métropole, France. Earlier that year, Zézé broke the French Youth Record over 200 m, previously held by Christophe Lemaitre.
Personal best
References
External links
FFA profile for Mickaël Zézé
1994 births
Living people
French male sprinters
European Athletics Championships medalists
Olympic athletes for France
Athletes (track and field) at the 2016 Summer Olympics
World Athletics Championships athletes for France
Sportspeople from Seine-Maritime
Mediterranean Games bronze medalists for France
Mediterranean Games medalists in athletics
Athletes (track and field) at the 2018 Mediterranean Games
Athletes (track and field) at the 2020 Summer Olympics
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.