text
stringlengths 1
22.8M
|
|---|
```objective-c
/**
* @license Apache-2.0
*
*
*
* 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.
*/
#ifndef STDLIB_MATH_BASE_SPECIAL_ACOTF_H
#define STDLIB_MATH_BASE_SPECIAL_ACOTF_H
/*
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Computes the inverse cotangent of a single-precision floating-point number.
*/
float stdlib_base_acotf( const float x );
#ifdef __cplusplus
}
#endif
#endif // !STDLIB_MATH_BASE_SPECIAL_ACOTF_H
```
|
```ruby
cask 'github-without-appcast' do
version '1.0'
sha256 your_sha256_hash
url "path_to_url#{version}/github.pkg"
name 'github'
homepage 'path_to_url
pkg 'github.pkg'
uninstall pkgutil: 'com.github'
end
```
|
A Blind Bargain is a 1922 American silent horror film starring Lon Chaney and Raymond McKee, released through Goldwyn Pictures. The film was directed by Wallace Worsley and is based on Barry Pain's 1897 novel The Octave of Claudius. Lon Chaney played a dual role in the film, as both Dr. Lamb and "the Ape Man", one of Chaney's few "true horror films". The claim that Wallace Beery appeared as an ape-man uncredited has never been proven, but does persist in many sources.
Although the film was finished in November 1921, it was only released in December 1922. This delay was due to problems with the censors, as the film's theme dealt with doctors creating artificial life and attempting to play God. The film was cut from six reels to five in the process, and the title cards had to be rewritten four times. The film is now considered lost and remains today one of the most sought after lost films of Lon Chaney's career. A lobby card from the film exists on the internet, as well as a photo of Chaney in the Ape Man makeup.
Plot
The film is a contemporary 1920s picture (though the book was published in 1897) that takes place in New York City. The story involves a mad scientist who forces a man who is down on his luck to enter into an agreement to become a willing subject of the doctor's weird experiments, knowing full well that the end result will be the loss of his humanity.
Robert Sandell (McKee), despondent over his failure as a writer and his mother's declining health, attempts to rob a theatergoer, Dr. Lamb (Lon Chaney), a sinister, fanatical physician living in the suburbs of New York. Lamb takes the boy to his home, learns his story, and agrees to perform an operation on Mrs. Sandell (Virginia True Boardman) on one condition – that Robert shall, at the end of eight days time, deliver himself to the doctor to do with as he will for experimental purposes. Frantic with worry over his dying mother's condition, Robert blindly agrees to the bargain.
Mother and son take up their residence in the Lamb home, where Robert is closely watched, not only by the doctor, but also by his wife (Fontaine La Rue) and a grotesque hunchback (also Lon Chaney, in a dual role), whom Robert learns afterwards is the result of one of the doctor's first experiments.
Dr. Lamb, anxious to keep his hold over Robert, not only gives him spending money, but also assists him in having his book published through Wytcherly, the head of a publishing company. Robert meets Wytcherly's daughter Angela (Jacqueline Logan) and promptly falls in love.
In the meantime, the days are slipping by to the time of the experiment. Robert has been warned by Mrs. Lamb and the hunchback that great danger threatens him. At dawn, they show him as a warning a mysterious underground vault which holds a complete operating room and a tunnel of cages in which are confined strange half-human prisoners – the previously failed experiments of Dr. Lamb's. In agony and fear, Robert pleads with the physician and tries to buy his way out of the bargain, for now that his book has been published, he is now a successful writer. Only one day remains before the time limit is up, but the doctor, realizing his victim is considering escaping, seizes him and straps him to the operating table. Robert is rescued by Mrs. Lamb, the hunchback releases one of the cage doors, and the doctor is himself brutally murdered at the hands of an ape-man who was destroyed mentally by the doctor's experiments.
Finally freed from the terms of his "blind bargain", Robert returns to his home to learn that his book has met with success and that Angela awaits him at the altar.
Cast
Background and production
Based on Barry Pain's novel, The Octave of Claudius, A Blind Bargain tied together horrific elements for which Lon Chaney became so well known. His characterizations of both Dr. Lamb and the hunchback assistant showcased Chaney's talent for makeup. For the finale, the ape-man that is released upon Dr. Lamb was rumored to have been played by Wallace Beery, in an uncredited cameo performance.
Release and reception
The film was premiered December 3, 1922, at the Capitol Theater in New York, and met with a standing ovation the opening night of the film. Critical response for the film was good, most praising Lon Chaney's dual performance as the mad doctor and his apish servant as being the highlight of the picture.
"It appears to have been the aim of all connected with this production to accent the weird, mysterious and uncanny elements and to make the picture so that it would thrill and fascinate spectators because of its horror and mystery...Lon Chaney's work in this picture is really marvelous and he again demonstrates that he is one of the best, if not the very best, character actor on the screen. As the ape-man, his portrayal and likeness to a huge chimpanzee is wonderful and sends chills up and down your spine. " ---Moving Picture World
"Chaney, doubling as both the doctor and his hunchback, gives a creditable performance and allows for some double photography that is by no means unworthy of mention. Always at his best in a grotesque make-up, Chaney predominates in the character of the man-ape, using the ungainly lope of the supposed animal as a means of locomotion throughout the interpretation of the character." ---Variety
"A theme that is thoroughly appropriate and suitable for Lon Chaney, providing him with two distinct roles in which he is given plenty of opportunities to live up to his reputation as "a man with a thousand faces"....Those who like his particular type of (grotesque) portrayal will find plenty to satisfy them." ---Film Daily
"Mr. Chaney essays the dual role assigned to him with that fine assurance that marks all of his work. His make-up is of course wonderful and one marvels at the contrast between the Doctor with his erect and distinguished carriage and the deformed little man victimized by the surgical experiments." ---Exhibitors Trade Review
"As the doctor, Chaney is not so good. Lon as a grotesque mistake of nature is far more thrilling than Lon in a frock coat and a vandyke beard. There are many thrills --- illogical perhaps, but now and then breath taking." ---Photoplay
Preservation and technical specifications
Today, the film is considered lost. The original negative was destroyed in 1931 by MGM several years after the takeover of Goldwyn Studios, and the last surviving print is believed to have perished in the same 1965 fire in Vault #7 that also destroyed the last known prints of London After Midnight and a number of other Lon Chaney films.
The footage count in the film was . The film was tinted and toned various colors, including blue tone/flesh tint, blue tint, night amber, straw amber, light lavender, green tint, and one sequence at a party was stencil colored using the Handschiegl Color Process, in multi-coloring bubbles that were made during a party.
Influences
Three years after A Blind Bargain was released, Chaney's co-star, Ray McKee, appeared with Clara Bow in a film titled Free to Love. McKee's character is a criminal who is a hunchback. This character is the direct result of McKee's working with Chaney in A Blind Bargain and shows the Chaney influence on McKee. The character is a strange amalgam of Chaney's character in A Blind Bargain and of his real-life hunchback co-star, John George, who was a Chaney regular in several films.
See also
List of lost films
List of early color feature films
References
External links
A Blind Bargain at silentera.com
1922 films
1920s color films
1922 lost films
1920s monster movies
American silent feature films
American black-and-white films
Films based on British novels
Films directed by Wallace Worsley
Films set in the 1920s
Films set in New York City
Goldwyn Pictures films
Lost horror films
Mad scientist films
1920s science fiction horror films
Lost American films
American monster movies
Lost science fiction films
1920s American films
1922 horror films
1920s English-language films
Silent science fiction horror films
English-language science fiction horror films
|
The 1968 Western North Carolina 500 was a NASCAR Grand National Series event that was held on August 18, 1968, at Asheville-Weaverville Speedway in Weaverville, North Carolina.
Ervin Pruitt would score his best career finish at this event.
Race report
Five hundred laps took place on a paved oval track spanning . The race took three hours and twenty-three minutes to finish. Seven cautions were handed out by NASCAR for ninety laps. David Pearson (with a Holman-Moody owned vehicle) defeated Bobby Isaac (in his Nord Krauskopf-owned vehicle) by more than three laps. Notable speeds were: for the average speed and for the pole position speed (accomplished by Darel Dieringer using a vehicle owned by Mr. Mario Rossi). Ten thousand and five hundred stock car racing fans attended this live event. Out of twenty-nine American drivers, only nine of them finished the race in a timely manner. Notable names included: J.D. McDuffie, Richard Petty, Elmo Langley, Roy Tyner, and Wendell Scott.
John Sears went over the guard rail and end over end to terminate his night.
The vehicle used by the winner was a 1968 Ford Torino machine homologated for use by the general public but modified to increase both speed and safety. A prize amount of $2,150 ($ when adjusted for inflation) was given out to the winner of the race while last place paid out $150 ($ when adjusted for inflation) for only fifteen laps of work by driver G.C. Spencer. When all the winnings for this racing event are consolidated together, the total prize purse was $13,485 ($ when adjusted for inflation).
The transition to purpose-built racecars began in the early 1960s and occurred gradually over that decade. Changes made to the sport by the late 1960s brought an end to the "strictly stock" vehicles of the 1950s.
Qualifying
Finishing order
Section reference:
David Pearson (No. 17)
Bobby Isaac (No. 71)
Neil Castles (No. 06)
Roy Tyner (No. 9)
Bill Seifert (No. 45)
Jabe Thomas (No. 25)
Ervin Pruett (No. 57)
Walson Gardener (No. 93)
Wendell Scott (No. 34)
Pete Hamilton* (No. 1)
Paul Dean Holt* (No. 01)
Bobby Allison* (No. 2)
Eddie Yarboro* (No. 50)
George England* (No. 88)
Ed Negre* (No. 8)
Elmo Langley* (No. 64)
Paul Goldsmith* (No. 99)
James Hylton* (No. 48)
Bob Burcham* (No. 08)
Earl Brooks* (No. 28)
Clyde Lynn* (No. 20)
Darel Dieringer* (No. 22)
Tiny Lund* (No. 76)
Stan Meserve* (No. 51)
J.D. McDuffie* (No. 70)
Richard Petty* (No. 43)
Wayne Smith* (No. 38)
John Sears* (No. 4)
G.C. Spencer* (No. 49)
* Driver failed to finish race
Timeline
Section reference:
Start of race: Darel Dieringer began the event with the pole position.
Lap 3: David Pearson took over the lead from Darel Dieringer.
Lap 14: Engine issues forced G.C. Spencer out of the race.
Lap 33: John Sears had problems with his vehicle's engine, forcing him to exit the race.
Lap 35: Wayne Smith's driveshaft stopped working properly.
Lap 40: Paul Goldsmith took over the lead from David Pearson.
Lap 52: A frame came off Richard Petty's vehicle, forcing his exit for safety reasons.
Lap 56: J.D. McDuffie's engine stopped working properly.
Lap 64: David Pearson took over the lead from Paul Goldsmith.
Lap 91: Stan Meserve managed to overheat his vehicle.
Lap 93: Vibration issues ended up giving Tiny Lund some "bad vibrations," forcing his exit from the track.
Lap 119: Engine issues forced Darel Dieringer out of the event.
Lap 129: Paul Goldsmith took over the lead from David Pearson.
Lap 132: Engine issues forced Clyde Lynn to leave the event sooner than he planned to.
Lap 136: Earl Brooks had a terminal crash, forcing himself to retire from the race.
Lap 146: David Pearson took over the lead from Paul Goldsmith.
Lap 148: Bobby Isaac took over the lead from David Pearson.
Lap 149: David Pearson took over the lead from Bobby Isaac.
Finish: David Pearson was officially declared the winner of the event.
References
Western North Carolina 500
Western North Carolina 500
NASCAR races at Asheville-Weaverville Speedway
Western North Carolina 500
|
```css
/**
* For commercial licenses see path_to_url
*/
.tox{box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #ccc;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox-tinymce-inline{border:none;box-shadow:none}.tox-tinymce-inline .tox-editor-header{border:1px solid #ccc;border-radius:0;box-shadow:none}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border:1px solid #ccc;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>:last-child:not(:only-child){border-color:#ccc;border-style:solid}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(32,122,183,.1);border-color:rgba(32,122,183,.4);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description>:last-child{border-color:rgba(32,122,183,.4)}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#207ab7}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#207ab7}.tox .tox-dialog__body-content .accessibility-issue--info a .tox-icon{color:#207ab7}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.1);border-color:rgba(255,165,0,.5);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description>:last-child{border-color:rgba(255,165,0,.5)}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--warn a .tox-icon{color:#cc8500}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.1);border-color:rgba(204,0,0,.4);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description>:last-child{border-color:rgba(204,0,0,.4)}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a .tox-icon{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.1);border-color:rgba(120,171,70,.4);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{border-color:rgba(120,171,70,.4)}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#78ab46}.tox .tox-dialog__body-content .accessibility-issue--success a .tox-icon{color:#78ab46}.tox .tox-dialog__body-content .accessibility-issue__header h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description>:last-child{border-left-width:1px;padding-left:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description>:last-child{border-right-width:1px;padding-right:4px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;text-align:center;text-decoration:none;text-transform:capitalize;white-space:nowrap}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:capitalize}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:#f0f0f0;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:#e3e3e3;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:#d6d6d6;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(34,47,62,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#ccc;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#e6e6e6;color:rgba(34,47,62,.7);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;color:#222f3e;cursor:pointer;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#c8cbcf;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#dee0e2}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#c8cbcf;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#dee0e2;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;-ms-flex-preferred-size:auto;font-size:14px;font-style:normal;font-weight:400;line-height:24px;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(34,47,62,.7);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:2px 0 3px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{-ms-grid-row-align:center;align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{-ms-grid-row-align:center;align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #ccc}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #ccc}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-icon-rtl .tox-collection__item-icon svg{transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#dee0e2}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:rgba(34,47,62,.7);font-size:12px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(34,47,62,.7);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#fff;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,.7)}.tox .tox-user__name{color:rgba(34,47,62,.7);font-size:12px;font-style:normal;font-weight:700;text-transform:uppercase}.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#ccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;-ms-flex-preferred-size:auto;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;padding:16px 16px}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,.7);display:inline-block;font-size:14px;line-height:1.3;margin-bottom:8px;text-decoration:none;white-space:nowrap}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(32,122,183,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto;max-height:650px;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:none}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#185d8c;text-decoration:none}.tox .tox-dialog__body-content a:active{color:#185d8c;text-decoration:none}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content ul{display:block;list-style-type:disc;margin-bottom:16px;-webkit-margin-end:0;margin-inline-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #ccc}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}.tox.tox-platform-ie .tox-dialog-wrap{position:-ms-device-fixed}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #ccc;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(34,47,62,.7);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;-ms-flex-preferred-size:auto;overflow:hidden;position:relative}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;-ms-flex-preferred-size:auto;height:100%;position:absolute;width:100%}.tox.tox-inline-edit-area{border:1px dotted #ccc}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{z-index:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{box-shadow:none;transition:box-shadow .5s}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{box-shadow:0 4px 4px -3px rgba(0,0,0,.25)}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,.7);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-textarea{flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;-ms-flex-preferred-size:auto;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#ccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#fff;border-color:#207ab7;box-shadow:none;outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#ccc;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#207ab7;box-shadow:none;outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox-fullscreen{border:0;height:100%;left:0;margin:0;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:none;padding:0;position:fixed;top:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen{z-index:1200}.tox-shadowhost.tox-fullscreen{z-index:1200}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-image-tools{width:100%}.tox .tox-image-tools__toolbar{align-items:center;display:flex;justify-content:center}.tox .tox-image-tools__image{background-color:#666;height:380px;overflow:auto;position:relative;width:100%}.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top:8px}.tox .tox-image-tools__image-bg{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools__toolbar>.tox-spacer{flex:1;-ms-flex-preferred-size:auto}.tox .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-left:8px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left:32px}.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-right:8px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-right:32px}.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-right:32px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#ccc;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(32,122,183,.5);border-color:rgba(32,122,183,.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,.7);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:4px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='path_to_url x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 top 0 #fff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 4px 0 4px}.tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #ccc}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#dee0e2;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#c8cbcf;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#dee0e2;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:-ms-grid;display:grid;font-size:14px;font-weight:400;-ms-grid-columns:minmax(40px,1fr) auto minmax(40px,1fr);grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#547831}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f8dede;border-color:#f2bfbf;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#c00}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fffaea;border-color:#ffe89d;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#222f3e}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#222f3e}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d9edf7;border-color:#779ecb;color:#222f3e}.tox .tox-notification--info p{color:#222f3e}.tox .tox-notification--info a{color:#222f3e}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{-ms-grid-row-align:center;align-self:center;color:#222f3e;font-size:14px;-ms-grid-column-span:1;grid-column-end:3;-ms-grid-column:2;grid-column-start:2;-ms-grid-row-span:1;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{-ms-grid-row-align:center;align-self:center;-ms-grid-column-span:1;grid-column-end:2;-ms-grid-column:1;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-column-align:end;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{-ms-grid-row-align:start;align-self:start;-ms-grid-column-span:1;grid-column-end:4;-ms-grid-column:3;grid-column-start:3;-ms-grid-row-span:1;grid-row-end:2;-ms-grid-row:1;grid-row-start:1;-ms-grid-column-align:end;justify-self:end}.tox .tox-notification .tox-progress-bar{-ms-grid-column-span:3;grid-column-end:4;-ms-grid-column:1;grid-column-start:1;-ms-grid-row-span:1;grid-row-end:3;-ms-grid-row:2;grid-row-start:2;-ms-grid-column-align:center;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar{flex-wrap:nowrap}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;position:absolute;width:0}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#ccc transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #ccc transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #ccc transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #ccc;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;-ms-flex-preferred-size:0;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;-ms-flex-preferred-size:auto;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #ccc;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,.7);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #ccc;color:rgba(34,47,62,.7);display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:flex-end;overflow:hidden}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(34,47,62,.7);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){cursor:pointer;text-decoration:underline}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-left:1ch}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,.7)}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1400}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(255,255,255,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#dee0e2;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#dee0e2;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:active{background:#c8cbcf;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#c8cbcf;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#222f3e}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#222f3e}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{-ms-grid-row-align:stretch;align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tbtn--select{margin:2px 0 3px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:2px 0 3px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #dee0e2 inset}.tox .tox-split-button:focus{background:#dee0e2;box-shadow:none;color:#222f3e}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='path_to_url x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 top 0 #fff;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #ccc;margin-top:-1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #ccc}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.15)}.tox[dir=rtl] .tox-tbtn__icon-rtl svg{transform:rotateY(180deg)}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 4px 0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #ccc}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #ccc}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:3px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-well{border:1px solid #ccc;border-radius:3px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #ccc;border-radius:3px;display:flex;flex:1;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1;-ms-flex-preferred-size:auto}.tox .tox-image-tools-edit-panel{height:60px}.tox .tox-image-tools__sidebar{height:60px}
```
|
```go
package helm
import (
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/werf/3p-helm/cmd/helm"
"github.com/werf/3p-helm/pkg/action"
"github.com/werf/nelm/pkg/lock_manager"
"github.com/werf/werf/v2/cmd/werf/common"
"github.com/werf/werf/v2/pkg/deploy/helm"
"github.com/werf/werf/v2/pkg/deploy/helm/chart_extender"
"github.com/werf/werf/v2/pkg/deploy/helm/command_helpers"
)
var upgradeCmdData common.CmdData
func NewUpgradeCmd(
actionConfig *action.Configuration,
wc *chart_extender.WerfChartStub,
namespace *string,
) *cobra.Command {
cmd, _ := helm_v3.NewUpgradeCmd(actionConfig, os.Stdout, helm_v3.UpgradeCmdOptions{
StagesSplitter: helm.NewStagesSplitter(),
StagesExternalDepsGenerator: helm.NewStagesExternalDepsGenerator(&actionConfig.RESTClientGetter, namespace),
ChainPostRenderer: wc.ChainPostRenderer,
})
SetupRenderRelatedWerfChartParams(cmd, &upgradeCmdData)
oldRunE := cmd.RunE
cmd.RunE = func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
if err := common.GetOndemandKubeInitializer().Init(ctx); err != nil {
return err
}
releaseName := args[0]
if err := InitRenderRelatedWerfChartParams(ctx, &upgradeCmdData, wc); err != nil {
return fmt.Errorf("unable to init werf chart: %w", err)
}
if m, err := lock_manager.NewLockManager(helm_v3.Settings.Namespace(), true, nil, nil); err != nil {
return fmt.Errorf("unable to create lock manager: %w", err)
} else {
return command_helpers.LockReleaseWrapper(ctx, releaseName, m, func() error {
return oldRunE(cmd, args)
})
}
}
return cmd
}
```
|
```java
/*
*
*
* 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 com.wenming.library.processutil.models;
import android.os.Parcel;
import java.io.IOException;
import java.util.ArrayList;
/**
* <p>/proc/[pid]/cgroup (since Linux 2.6.24)</p>
*
* <p>This file describes control groups to which the process/task belongs. For each cgroup
* hierarchy there is one entry containing colon-separated fields of the form:</p>
*
* <p>5:cpuacct,cpu,cpuset:/daemons</p>
*
* <p>The colon-separated fields are, from left to right:</p>
*
* <ol>
* <li>hierarchy ID number</li>
* <li>set of subsystems bound to the hierarchy</li>
* <li>control group in the hierarchy to which the process belongs</li>
* </ol>
*
* <p>This file is present only if the CONFIG_CGROUPS kernel configuration option is enabled.</p>
*
* @see ControlGroup
*/
public final class Cgroup extends ProcFile {
/**
* Read /proc/[pid]/cgroup.
*
* @param pid
* the processes id.
* @return the {@link Cgroup}
* @throws IOException
* if the file does not exist or we don't have read permissions.
*/
public static Cgroup get(int pid) throws IOException {
return new Cgroup(String.format("/proc/%d/cgroup", pid));
}
/** the process' control groups */
public final ArrayList<ControlGroup> groups;
private Cgroup(String path) throws IOException {
super(path);
String[] lines = content.split("\n");
groups = new ArrayList<>();
for (String line : lines) {
try {
groups.add(new ControlGroup(line));
} catch (Exception ignored) {
}
}
}
private Cgroup(Parcel in) {
super(in);
this.groups = in.createTypedArrayList(ControlGroup.CREATOR);
}
public ControlGroup getGroup(String subsystem) {
for (ControlGroup group : groups) {
String[] systems = group.subsystems.split(",");
for (String name : systems) {
if (name.equals(subsystem)) {
return group;
}
}
}
return null;
}
@Override public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeTypedList(groups);
}
public static final Creator<Cgroup> CREATOR = new Creator<Cgroup>() {
@Override public Cgroup createFromParcel(Parcel source) {
return new Cgroup(source);
}
@Override public Cgroup[] newArray(int size) {
return new Cgroup[size];
}
};
}
```
|
```html
<!doctype html>
<!--
@license
This code may only be used under the BSD style license found at path_to_url
The complete set of authors may be found at path_to_url
The complete set of contributors may be found at path_to_url
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at path_to_url
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>paper-menu</title>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-component-page/iron-component-page.html">
</head>
<body>
<iron-component-page></iron-component-page>
</body>
</html>
```
|
```java
How to play a sound file in Java
The distinction between overloading and overriding methods
Common mistake on switch statements
Do not perform bitwise and arithmetic operations on the same data
Using an interface as a parameter
```
|
```objective-c
/*
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef API_VIDEO_ENCODED_IMAGE_H_
#define API_VIDEO_ENCODED_IMAGE_H_
#include <stdint.h>
#include <map>
#include <utility>
#include "../../third_party/abseil-cpp/absl/types/optional.h"
#include "../rtp_packet_infos.h"
#include "../scoped_refptr.h"
#include "color_space.h"
#include "video_codec_constants.h"
#include "video_content_type.h"
#include "video_frame_type.h"
#include "video_rotation.h"
#include "video_timing.h"
#include "../../rtc_base/checks.h"
#include "../../rtc_base/ref_count.h"
#include "../../rtc_base/system/rtc_export.h"
namespace webrtc {
// Abstract interface for buffer storage. Intended to support buffers owned by
// external encoders with special release requirements, e.g, java encoders with
// releaseOutputBuffer.
class EncodedImageBufferInterface : public rtc::RefCountInterface {
public:
virtual const uint8_t* data() const = 0;
// TODO(bugs.webrtc.org/9378): Make interface essentially read-only, delete
// this non-const data method.
virtual uint8_t* data() = 0;
virtual size_t size() const = 0;
};
// Basic implementation of EncodedImageBufferInterface.
class RTC_EXPORT EncodedImageBuffer : public EncodedImageBufferInterface {
public:
static rtc::scoped_refptr<EncodedImageBuffer> Create() { return Create(0); }
static rtc::scoped_refptr<EncodedImageBuffer> Create(size_t size);
static rtc::scoped_refptr<EncodedImageBuffer> Create(const uint8_t* data,
size_t size);
const uint8_t* data() const override;
uint8_t* data() override;
size_t size() const override;
void Realloc(size_t t);
protected:
explicit EncodedImageBuffer(size_t size);
EncodedImageBuffer(const uint8_t* data, size_t size);
~EncodedImageBuffer();
size_t size_;
uint8_t* buffer_;
};
// TODO(bug.webrtc.org/9378): This is a legacy api class, which is slowly being
// cleaned up. Direct use of its members is strongly discouraged.
class RTC_EXPORT EncodedImage {
public:
EncodedImage();
EncodedImage(EncodedImage&&);
EncodedImage(const EncodedImage&);
~EncodedImage();
EncodedImage& operator=(EncodedImage&&);
EncodedImage& operator=(const EncodedImage&);
// TODO(nisse): Change style to timestamp(), set_timestamp(), for consistency
// with the VideoFrame class.
// Set frame timestamp (90kHz).
void SetTimestamp(uint32_t timestamp) { timestamp_rtp_ = timestamp; }
// Get frame timestamp (90kHz).
uint32_t Timestamp() const { return timestamp_rtp_; }
void SetEncodeTime(int64_t encode_start_ms, int64_t encode_finish_ms);
int64_t NtpTimeMs() const { return ntp_time_ms_; }
absl::optional<int> SpatialIndex() const { return spatial_index_; }
void SetSpatialIndex(absl::optional<int> spatial_index) {
RTC_DCHECK_GE(spatial_index.value_or(0), 0);
RTC_DCHECK_LT(spatial_index.value_or(0), kMaxSpatialLayers);
spatial_index_ = spatial_index;
}
// These methods can be used to set/get size of subframe with spatial index
// |spatial_index| on encoded frames that consist of multiple spatial layers.
absl::optional<size_t> SpatialLayerFrameSize(int spatial_index) const;
void SetSpatialLayerFrameSize(int spatial_index, size_t size_bytes);
const webrtc::ColorSpace* ColorSpace() const {
return color_space_ ? &*color_space_ : nullptr;
}
void SetColorSpace(const absl::optional<webrtc::ColorSpace>& color_space) {
color_space_ = color_space;
}
// These methods along with the private member video_frame_tracking_id_ are
// meant for media quality testing purpose only.
absl::optional<uint16_t> VideoFrameTrackingId() const {
return video_frame_tracking_id_;
}
void SetVideoFrameTrackingId(absl::optional<uint16_t> tracking_id) {
video_frame_tracking_id_ = tracking_id;
}
const RtpPacketInfos& PacketInfos() const { return packet_infos_; }
void SetPacketInfos(RtpPacketInfos packet_infos) {
packet_infos_ = std::move(packet_infos);
}
bool RetransmissionAllowed() const { return retransmission_allowed_; }
void SetRetransmissionAllowed(bool retransmission_allowed) {
retransmission_allowed_ = retransmission_allowed;
}
size_t size() const { return size_; }
void set_size(size_t new_size) {
// Allow set_size(0) even if we have no buffer.
RTC_DCHECK_LE(new_size, new_size == 0 ? 0 : capacity());
size_ = new_size;
}
void SetEncodedData(
rtc::scoped_refptr<EncodedImageBufferInterface> encoded_data) {
encoded_data_ = encoded_data;
size_ = encoded_data->size();
}
void ClearEncodedData() {
encoded_data_ = nullptr;
size_ = 0;
}
rtc::scoped_refptr<EncodedImageBufferInterface> GetEncodedData() const {
return encoded_data_;
}
const uint8_t* data() const {
return encoded_data_ ? encoded_data_->data() : nullptr;
}
uint32_t _encodedWidth = 0;
uint32_t _encodedHeight = 0;
// NTP time of the capture time in local timebase in milliseconds.
// TODO(minyue): make this member private.
int64_t ntp_time_ms_ = 0;
int64_t capture_time_ms_ = 0;
VideoFrameType _frameType = VideoFrameType::kVideoFrameDelta;
VideoRotation rotation_ = kVideoRotation_0;
VideoContentType content_type_ = VideoContentType::UNSPECIFIED;
int qp_ = -1; // Quantizer value.
// When an application indicates non-zero values here, it is taken as an
// indication that all future frames will be constrained with those limits
// until the application indicates a change again.
VideoPlayoutDelay playout_delay_;
struct Timing {
uint8_t flags = VideoSendTiming::kInvalid;
int64_t encode_start_ms = 0;
int64_t encode_finish_ms = 0;
int64_t packetization_finish_ms = 0;
int64_t pacer_exit_ms = 0;
int64_t network_timestamp_ms = 0;
int64_t network2_timestamp_ms = 0;
int64_t receive_start_ms = 0;
int64_t receive_finish_ms = 0;
} timing_;
private:
size_t capacity() const { return encoded_data_ ? encoded_data_->size() : 0; }
rtc::scoped_refptr<EncodedImageBufferInterface> encoded_data_;
size_t size_ = 0; // Size of encoded frame data.
uint32_t timestamp_rtp_ = 0;
absl::optional<int> spatial_index_;
std::map<int, size_t> spatial_layer_frame_size_bytes_;
absl::optional<webrtc::ColorSpace> color_space_;
// This field is meant for media quality testing purpose only. When enabled it
// carries the webrtc::VideoFrame id field from the sender to the receiver.
absl::optional<uint16_t> video_frame_tracking_id_;
// Information about packets used to assemble this video frame. This is needed
// by |SourceTracker| when the frame is delivered to the RTCRtpReceiver's
// MediaStreamTrack, in order to implement getContributingSources(). See:
// path_to_url#dom-rtcrtpreceiver-getcontributingsources
RtpPacketInfos packet_infos_;
bool retransmission_allowed_ = true;
};
} // namespace webrtc
#endif // API_VIDEO_ENCODED_IMAGE_H_
```
|
Al-Selmiyah Club is a Saudi Arabian football team in Al-Kharj City playing at the Saudi Third Division.
Ascending to Second Division
He promoted to the Saudi Second Division after the decision of the Saudi Arabian Football Federation to ascend 8 clubs.
Current squad
As of Saudi Third Division:
See also
List of football clubs in Saudi Arabia
References
Selmiyah
1979 establishments in Saudi Arabia
Association football clubs established in 1979
|
```objective-c
/*
disc_io.h
Interface template for low level disc functions.
Based on code originally written by MightyMax
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. 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.
3. The name of the author may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
*/
#ifndef DISC_IO_H
#define DISC_IO_H
#include <nds/ndstypes.h>
#define BYTES_PER_SECTOR 512
#define FEATURE_MEDIUM_CANREAD 0x00000001
#define FEATURE_MEDIUM_CANWRITE 0x00000002
#define FEATURE_SLOT_GBA 0x00000010
#define FEATURE_SLOT_NDS 0x00000020
#ifndef _NO_SDMMC
#define DEVICE_TYPE_DSI_SD ('i') | ('_' << 8) | ('S' << 16) | ('D' << 24)
typedef bool (* FN_MEDIUM_STARTUP)(void) ;
typedef bool (* FN_MEDIUM_ISINSERTED)(void) ;
typedef bool (* FN_MEDIUM_READSECTOR)(sec_t sector, void* buffer, u32 startOffset, u32 endOffset);
typedef bool (* FN_MEDIUM_READSECTORS)(sec_t sector, sec_t numSectors, void* buffer) ;
typedef bool (* FN_MEDIUM_READSECTORS_NONBLOCKING)(sec_t sector, sec_t numSectors, void* buffer) ;
typedef bool (* FN_MEDIUM_CHECK_COMMAND)(int cmd) ;
typedef bool (* FN_MEDIUM_WRITESECTORS)(sec_t sector, sec_t numSectors, const void* buffer) ;
typedef bool (* FN_MEDIUM_CLEARSTATUS)(void) ;
typedef bool (* FN_MEDIUM_SHUTDOWN)(void) ;
struct DISC_INTERFACE_STRUCT {
unsigned long ioType ;
unsigned long features ;
FN_MEDIUM_STARTUP startup ;
FN_MEDIUM_ISINSERTED isInserted ;
FN_MEDIUM_READSECTORS readSectors ;
FN_MEDIUM_WRITESECTORS writeSectors ;
FN_MEDIUM_CLEARSTATUS clearStatus ;
FN_MEDIUM_SHUTDOWN shutdown ;
} ;
typedef struct DISC_INTERFACE_STRUCT DISC_INTERFACE ;
struct NEW_DISC_INTERFACE_STRUCT {
unsigned long ioType ;
unsigned long features ;
FN_MEDIUM_STARTUP startup ;
FN_MEDIUM_ISINSERTED isInserted ;
FN_MEDIUM_READSECTOR readSector ;
FN_MEDIUM_READSECTORS readSectors ;
FN_MEDIUM_READSECTORS_NONBLOCKING readSectorsNonBlocking;
FN_MEDIUM_CHECK_COMMAND checkCommand;
FN_MEDIUM_WRITESECTORS writeSectors ;
FN_MEDIUM_CLEARSTATUS clearStatus ;
FN_MEDIUM_SHUTDOWN shutdown ;
} ;
typedef struct NEW_DISC_INTERFACE_STRUCT NEW_DISC_INTERFACE ;
const DISC_INTERFACE* get_io_dsisd (void);
#else
//your_sha256_hash------
// Customisable features
// Use DMA to read the card, remove this line to use normal reads/writes
// #define _IO_USE_DMA
// Allow buffers not alligned to 16 bits when reading files.
// Note that this will slow down access speed, so only use if you have to.
// It is also incompatible with DMA
#define _IO_ALLOW_UNALIGNED
#if defined _IO_USE_DMA && defined _IO_ALLOW_UNALIGNED
#error "You can't use both DMA and unaligned memory"
#endif
typedef bool (* FN_MEDIUM_STARTUP)(void) ;
typedef bool (* FN_MEDIUM_ISINSERTED)(void) ;
typedef bool (* FN_MEDIUM_READSECTORS)(u32 sector, u32 numSectors, void* buffer) ;
typedef bool (* FN_MEDIUM_WRITESECTORS)(u32 sector, u32 numSectors, const void* buffer) ;
typedef bool (* FN_MEDIUM_CLEARSTATUS)(void) ;
typedef bool (* FN_MEDIUM_SHUTDOWN)(void) ;
struct DISC_INTERFACE_STRUCT {
unsigned long ioType ;
unsigned long features ;
FN_MEDIUM_STARTUP startup ;
FN_MEDIUM_ISINSERTED isInserted ;
FN_MEDIUM_READSECTORS readSectors ;
FN_MEDIUM_WRITESECTORS writeSectors ;
FN_MEDIUM_CLEARSTATUS clearStatus ;
FN_MEDIUM_SHUTDOWN shutdown ;
} ;
typedef struct DISC_INTERFACE_STRUCT DISC_INTERFACE ;
#endif
#endif // define NDS_DISC_IO_INCLUDE
```
|
Coretta (foaled February 11, 1994 in Ireland) is a Thoroughbred racemare who competed in the United States. She was bred and raced by Gerald W. Leigh, proprietor of England's Eydon Hall Stud. Leigh owned and bred her dam, Free At Last, who was a daughter of the 1978 Epsom and Irish Derby winner, Shirley Heights. A philanthropist with a strong social conscience who was a member of the Council of Management for the Animal Health Trust, Leigh named Free At Last for those words contained in Martin Luther King Jr.'s 1963 speech, "I Have a Dream". Leigh named Free At Last's first foal, Coretta, for King's widow, Coretta Scott King. Leigh later gave another of Free At Last's foals the name of the African American civil rights activist, Rosa Parks.
Coretta's sire was Caerleon, the 1983 Champion Three-Year-Old Colt in France who was a son of the English Triple Crown champion, Nijinsky.
Leigh maintained racing stables in the United Kingdom, France, and the United States. Coretta raced once at age two in England and in 1997 at age three made five starts with her best performance a win in the Breitling Handicap at Newmarket Racecourse under jockey Frankie Dettori.
In 1998 Coretta was sent to the United States where she was conditioned by French trainer Christophe Clement, who is established in the United States. At age four she won Graded stakes races on turf, including the then Grade II Long Island Handicap at Aqueduct Racetrack in New York City and the La Prevoyante Handicap at Florida's Gulfstream Park. In 1999 Coretta won her second consecutive La Prevoyante Handicap as well as the Orchid Handicap. At New York's Belmont Park, she finished second to Soaring Softly in the Grade I Flower Bowl Invitational Handicap. Entered in the inaugural running of the Breeders' Cup Filly & Mare Turf, the parimutuel betting public made Coretta the seventh choice at 16:1 odds. In the 1⅜ miles race, she ran near the leaders until the top of the homestretch when she moved into the lead only to be caught near the finish line to finish second again to Soaring Softly.
Retired to broodmare duty, among her matings Leigh bred Coretta two times to Ogden Phipps' stallion Seeking The Gold, naming the foals "Civil Rights" and "Shared Dreams".
References
Coretta's pedigree and partial racing stats
1994 racehorse births
Thoroughbred family 14-a
Racehorses bred in Ireland
Racehorses trained in the United States
|
Pseudonesohedyotis is a genus of flowering plants belonging to the family Rubiaceae.
Its native range is Tanzania.
Species:
Pseudonesohedyotis bremekampii Tennant
References
Rubiaceae
Rubiaceae genera
|
Pellicier is a surname. Notable people with the surname include:
Alexandre Pellicier (born 1981), French ski mountaineer
Guillaume Pellicier (aka Pellissier, 1490–1568), French prelate and diplomat
Osmaidel Pellicier (born 1992), Cuban sprinter
See also
Pellicer
|
```python
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/protobuf/named_tensor.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='tensorflow/core/protobuf/named_tensor.proto',
package='tensorflow',
syntax='proto3',
serialized_pb=_b('\n+tensorflow/core/protobuf/named_tensor.proto\x12\ntensorflow\x1a&tensorflow/core/framework/tensor.proto\"I\n\x10NamedTensorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\'\n\x06tensor\x18\x02 \x01(\x0b\x32\x17.tensorflow.TensorProtoB2\n\x18org.tensorflow.frameworkB\x11NamedTensorProtosP\x01\xf8\x01\x01\x62\x06proto3')
,
dependencies=[tensorflow_dot_core_dot_framework_dot_tensor__pb2.DESCRIPTOR,])
_NAMEDTENSORPROTO = _descriptor.Descriptor(
name='NamedTensorProto',
full_name='tensorflow.NamedTensorProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='tensorflow.NamedTensorProto.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tensor', full_name='tensorflow.NamedTensorProto.tensor', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=99,
serialized_end=172,
)
_NAMEDTENSORPROTO.fields_by_name['tensor'].message_type = tensorflow_dot_core_dot_framework_dot_tensor__pb2._TENSORPROTO
DESCRIPTOR.message_types_by_name['NamedTensorProto'] = _NAMEDTENSORPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
NamedTensorProto = _reflection.GeneratedProtocolMessageType('NamedTensorProto', (_message.Message,), dict(
DESCRIPTOR = _NAMEDTENSORPROTO,
__module__ = 'tensorflow.core.protobuf.named_tensor_pb2'
# @@protoc_insertion_point(class_scope:tensorflow.NamedTensorProto)
))
_sym_db.RegisterMessage(NamedTensorProto)
DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030org.tensorflow.frameworkB\021NamedTensorProtosP\001\370\001\001'))
# @@protoc_insertion_point(module_scope)
```
|
Kyousougiga is an original net animation created by Izumi Todo and produced by Toei Animation in collaboration with Banpresto. The original ONA was released on YouTube and other sites on December 6, 2011. Five additional ONA episodes were streamed between August 31, 2012 and December 22, 2012. A 13-episode television series (including two summary and one special episode) began airing from October 2, 2013. The opening theme is by Tamurapan whilst the ending theme is by Teppan.
Episode list
ONA series
TV series
There are 10 main episodes and 3 extras (episodes 0, 5.5 and 10.5)
References
Kyousogiga
|
Shelton Leigh "Shelly" Palmer is an advertising, marketing and technology consultant, and business adviser. He is the Professor of Advanced Media in Residence at the S. I. Newhouse School of Public Communications at Syracuse University and CEO of The Palmer Group, a tech strategy and solutions consulting practice. He is the former president of the National Academy of Television Arts & Sciences (NATAS), New York chapter (NATAS/NY), and he served as the chairman of both the Advanced Media Committee and the Technology Committee for the organization. He is also known for his work as a composer and producer.
Education and career
Palmer completed his graduation from the New York University's Tisch School of the Arts with a B.A. in direction and production of film and television in 1979. He started his career at age 12 as a musician. He wrote Meow Mix jingles and composed music for Live with Regis and Kelly, Spin City and MSNBC. The "Palmer News Package" is Palmer's arrangement of the Channel 2 News theme originating from WBBM-TV in Chicago and has been used by stations across the country including WBBM's sister station WCBS-TV in New York City, who commissioned the arrangement.
Palmer produced HotPop, which aired on Starz/Encore's Wam! Network. He also produced NBC Universal's Digital Life with Shelly Palmer, and Live Digital with Shelly Palmer.
Radio work
Palmer's first "full service" radio production client was The ABC Television Network. SLP&Co. scripted, cast, produced, composed and trafficked over 150 radio spots per year to ABC's 213 affiliated television stations. During the early 1990s, SLP&Co. expanded its staff and production facilities to include more work with music as well as programming and production for CD-ROM, the World Wide Web, Interactive Television and other digital media.
Interactive television
Palmer's first solo technology patent was for an interactive television system that allowed users to click a button on their remote to perform near-real-time transactions over broadcast television. Palmer also invented and patented the methodology that enabled viewers to watch television and interact with server-based information in relative sync, known as two-screen interactive television. Major network broadcasts soon adopted this technology, including ABC's Monday Night Football, Who Wants to Be a Millionaire? and The Academy Awards.
As The Walt Disney Company and its subsidiaries licensed Palmer's Enhanced Television technology, the company soon hired Palmer as a consultant to their Enhanced Television division. In 2004, ABC's Celebrity Mole Yucatán received an Emmy Award in the category of Enhancement of Original Television Content, a project team of advanced media professionals spearheaded by Palmer.
Books
Patents
References
External links
Official Palmer website
Living people
American television composers
American television personalities
American women television personalities
Place of birth missing (living people)
Year of birth missing (living people)
Tisch School of the Arts alumni
Syracuse University faculty
|
Simpson's Manor, or Simpson's Place, was a moated medieval manor house in Bromley, Kent, England, with evidence of habitation going back to the reign of Edward I (r. 1272–1307). It was demolished around 1870 but survives in the name of a (minor) local road – Simpson's Place.
History of the site
Historical records show that the site belonged to the "Bankewell" (aka "Banquelle" or "de Banquelle") family as far back as 1302 (during the reign of Edward I) with John de Bankwell holding a charter of free warren to his lands there. His descendant Thomas de Bankewell is recorded as dying as a fief in 1352 (during Edward III's reign). The land eventually passed to the Clark family, and during the reign of Henry V (1413–1422) William Clark applied for a license to build a fortified manor house with crenellated walls and a deep moat (the latter being recorded as "supplied and nourished with a living spring").
John Simpson acquired the manor in the latter part of the reign of Henry VI (r. 1422–1461), made improvements to the site and gave his name to it. His descendant Nicholas Simpson (fl. 1530–1541) was the barber to Henry VIII and featured in the painting "Henry VIII Presenting a Charter to the Barber Surgeons Company" by Hans Holbein the younger. It is thought that he had a "huge and very handsome red-brick chimney" added to the house.
The manor eventually passed from Nicholas Simpson to Alexander Bassett to Sir Humphrey Style of Langley, esquire and Sheriff of Kent, (d. 1557), the estate being then held in a form of tenure called socage. It remained in the Styles family until the death of another Sir Humphrey Style in 1659. Over, the succeeding century or so, it passed through the hands of several other families and was converted into a farmhouse sometime previous to 1796, eventually falling into disrepair and being demolished around 1870.
The original Manor House
According to Dunkin. the original castle-like manor house was probably square in shape with fortified crenellated walls surrounded on all sides by a deep moat. Access was by a drawbridge on the northern side. The foundations of the walls were of "large flints intermixed with stone and cemented with strong lime mortar". and there were strong buttresses securing the angles into the moat. The Lord of the domain would have lived in apartements either within the outer walls or, more likely, in a separate structure within the central courtyard – the latter would have been more defensible. There was also a small terrace projecting from the eastern side of the house. Topographically, the house was situated "under the brow of a low hill" which would not have been the best location from the point of view of defence.
The 19th century Manor House
An account written in 1815 by Dunkin describes the existing manor house as formed of brick and timber, with evidence to suggest that it had been built in the 16th century on the foundations of a much older structure. Many of the original 16th century features were still apparent – such as the old fireplace in the hall, the original doorways, and wainscotting – but they were "much disfigured" by alterations carried out some years beforehand to convert the manor to a farmhouse. The northern and western sections of the moat had by then been filled in by the tenant, Jeremiah Ringer – who gives his name to the present nearby "Ringer's road".
There was also a suggestion, at the time, that the manor was haunted, with unexplained noises "being heard in and about the house" as if furniture was being dropped and broken. There were also reported ghostly sightings of a lady in white accompanied by a gentleman in dark clothes and a wide-brimmed hat.
A later account of 1831 by Henry Warren suggested that the building was remote from the public road and little known, but well worthy of notice due to its antiquity and picturesque quality. However the structure had by then fallen into a poor state of repair, evidenced by a review which described Simpson's Place as "an ancient edifice now condemned to be pulled down". Freeman, writing a few years later in 1838, also described the manor house as "timestricken", the rooms being "exceedingly large and lofty" and the staircases "very wide". He also confirmed its derelict state.
Present day
The former site of Simpson's manor house is now partially occupied by a Quaker meeting house at the junction of Ringer's road and Ravensbourne road.
References
Further reading
Philipott, John. Visitation of the County of Kent (1619).
Lysons, Daniel. The Environs of London: volume 4 (1796).
Dunkin, John. Outlines of the history and antiquities of Bromley in Kent (1815).
Warren, Henry. Lithographic illustrations of the Ravensbourne, Kent (1831).
Freeman, Charles. The History, antiquities, improvements of the parish of Bromley, Kent (William Beckley, 1832).
Strong, Edward. A History of Bromley in Kent (Edward Strong, 1858) pp112 ff.
Walford, Edward. Greater London. A Narrative of Its History, Its People, and Its Places. Volume 2, p93 (1883)
Clinch, George. Antiquarian Jottings relating to Bromley, Hayes, Keston and West Wickham in Kent (1889).
Ditchfield, P. H. & Clinch, George. Memorials of old Kent (Bemrose & sons, limited, 1907) pp. 203–205.
External links
Simpson's Place (fortifiedengland.com)
Simpson's Place (English Heritage).
Former buildings and structures in the London Borough of Bromley
Manor houses in England
|
```java
/*
*
*
* 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.
*
* Contributors:
* ohun@live.cn ()
*/
package com.mpush.api;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* Created by ohun on 2015/12/23.
*
* @author ohun@live.cn
*/
public interface Constants {
Charset UTF_8 = StandardCharsets.UTF_8;
byte[] EMPTY_BYTES = new byte[0];
String HTTP_HEAD_READ_TIMEOUT = "readTimeout";
String EMPTY_STRING = "";
String ANY_HOST = "0.0.0.0";
String KICK_CHANNEL_PREFIX = "/mpush/kick/";
static String getKickChannel(String hostAndPort) {
return KICK_CHANNEL_PREFIX + hostAndPort;
}
}
```
|
Jeu Royal de la Guerre (Royal Game of War) is a French novelty card game for two to twelve players that was described in La Maison des Jeux Academiques in 1659. It is a trick-taking game played with a dedicated war-themed 40-card pack based on the French-suited 36-card piquet pack. The suits are irrelevant for gameplay, and to a large extent the game is determined by four suitless special cards.
Cards
Jeu Royal de la Guerre was played with a dedicated pack of 40 cards. The pack consisted of a war-themed version of a piquet pack, which at the time still had 36 cards, along with 4 suitless cards. The suitless cards were Death, Force, Army General, and Prisoner of War. The remaining cards were Ace, King, Queen, Jack and 6–10 in each of the four French suits. The aces were styled as a cannoneer, a soldier with a drawn rapier, a battalion, and a squadron of horsemen.
After removing the four suitless cards, the pack could be used for playing Piquet, Triomphe or Brelan.
Rules
The game is played for money, each player depositing the same amount before the cards are dealt. The number of cards each player receives was not specified in the published rules, although it is implicit that at least five tricks are played and at least one card must remain in the stock. Three of the four suitless cards have immediate effects on the players who find them in their hands.
DeathThe player who holds the Death card loses automatically and does not participate in trick-play.
ForceThe player who holds the Force card immediately wins from the pot twice what he or she paid. The player remains in the game and exchanges the Force card for another card from the stock.
Prisoner of War The player who holds this card must double his or her contribution to the pot or leave the game.
The suits are irrelevant for trick-play. If the highest rank in a trick occurs more than once, the first card played of that rank wins the trick. The cards rank King, Queen, Army General, Prisoner of War, Jack, Ace, 10, 9, 8, 7, 6. Eldest hand leads to the first trick. Unlike in most trick-taking games, it is not the winner of a trick who leads to the next one. Instead, the lead passes from one player to the next in the direction of play.
A player who loses the Army General in a trick must pay a "ransom" amounting to the total value of the pot to the winner of the trick. A player who wins a trick by playing the Army General wins the pot. Anything that remains in the pot at the end is won by the player who wins the greatest number of tricks.
History
The game first appeared in 1659 in Étienne Loyson's La maison academique : contenant les jeux du picquet, du hoc, du tric-trac, du hoca, […] & autres jeux facetieux & divertissans, a work modeled after the first French game anthology, La Marinière's 1654 Maison Academique. The rules were reprinted along with a short advertisement piece for the card pack (signed by "E. L.", that is, Étienne Loyson), as late as the 1702 Den Haag edition of Maison Academique.
Unrelated novelty cards were advertised in Le royal jeu du picquet, plaisant & recreatif, Paris, 1683 (and in later reprints, with Ombre added, such as Le Royal Jeu de l'Hombre et celui du Picquet, Amsterdam, 1735). The pack consisted of 60 cards, ten each in the six suits yellow, white, blue, red, black and green. Within each suit, there were ten court cards, the ranks were simultaneously numbered and designated as King, Queen, Knight, Lady etc. down to Lackey.
References
.
.
.
.
.
Background information on early French game anthologies from Thierry Depaulis, Les loix du jeu : bibliographie de la littérature technique des jeux de cartes en français avant 1800. Suivie d’un supplément couvrant les années 1800-1850, Paris : Cymbalum Mundi, 1994.
17th-century card games
French card games
Dedicated deck card games
|
The "Always Ready, Always There!" refers to the official organizational march of the United States National Guard and the National Guard Bureau. It also serves as the component song of the Army and Air National Guard. It was composed in 2016 by Chief Warrant Officer 4 David Myers, director of the 40th Army Band in the Vermont Army National Guard. It replaced I Guard America, which was adopted in November 1999. Although the NGB March represents the Army and Air National Guard among the songs of agencies in the Department of Defense, it does not replace either The Army Goes Rolling Along or The U.S. Air Force, which are the service songs of the United States Army and the United States Air Force respectively. Instead, the march is played immediately after their respective service song is played at official ceremonies.
Lyrics
Videos
Always Ready, Always There on YouTube
References
2016 songs
American military marches
National Guard (United States)
United States Army National Guard
United States Air National Guard
|
The 2010 Arkansas Diamonds season was the franchise's eleventh season as a football franchise, first in the Indoor Football League, and only season as the "Arkansas Diamonds". The team, led by head coach Danton Barto, played their home games at the Verizon Arena in North Little Rock, Arkansas. The Diamonds finished the regular season with an 11-3 record (6-1 in division play) and first place in the 2010 Lonestar East Division. The team's playoff run ended with a loss to the Billings Outlaws in the Intense Conference Finals. For the 2011 season, the team relocated to Texas as the Allen Wranglers.
Off-field moves
After the af2 league folded following the 2009 season, the Arkansas Twisters initially joined the newly formed Arena Football 1 but shifting league structure and concerns for stability lead to a November 2009 announcement that the team had jumped to the Indoor Football League. However, the rights to the names and logos of the former af2 teams belonged to Arena Football 1. Given the option of paying to buy or lease the trademarks, the Arkansas franchise chose instead to hold a "name the team" contest in late January and became the "Arkansas Diamonds" for the 2010 season. (There had been another unrelated "Arkansas Diamonds" in the Southwest Independent Soccer League from 1989 to 1991 and in 1994 in the United States Interregional Soccer League. Arkansas is the site of the only diamond mine in the United States.) The new team colors for 2010 were Carolina blue, black, and gray.
Diamonds head coach Danton Barto had been coaching the Manchester Wolves in af2 for the 2008 and 2009 seasons. He was the head coach of the Las Vegas Gladiators of the Arena Football League in 2007. In 2005, Barto was head coach of the Memphis Xplorers and led them to win ArenaCup VI, the 2005 af2 championship.
As the season came to a close, rumors circulated (later proved true) that the team's ownership wanted to move the franchise as soon as possible for financial reasons. One reporter compared the team's playoff run to the 1989 comedy Major League in which the players rally to win in order to frustrate the owner's relocation plans. Two months after the playoffs, in September 2009, team owner Jim Smith announced that the franchise was relocating to Allen, Texas, a prosperous suburb of Dallas.
Roster moves
The team held its first open tryout for the 2010 season on December 12, 2009, at the D1 Sports Training Center in Little Rock, Arkansas. Prospects paid $50 to register and were judged on their performance in the 40-yard dash and 20-yard shuttle, vertical jump and agility challenges, plus select skills specific to each position. To expand its search for players, the team held a second open tryout on January 17, 2010, on the campus of Ouachita Baptist University in Arkadelphia, Arkansas.
On December 15, the team announced that its first official player signing for the 2010 season was arena football quarterback James Pinkney. He had spent the 2009 season as the quarterback of the af2's Manchester Wolves.
The Diamonds opened their 2010 training camp on February 15, less than two weeks before the start of the 2010 season. The camp used the practice facilities at Jacksonville High School in Jacksonville, Arkansas, and Cabot High School in Cabot, Arkansas.
In post-season honors, Diamonds defensive lineman Luis Vasquez was named all-IFL second team.
Schedule
Regular season
Playoffs
Standings
Roster
References
External links
Texas Revolution official website
Arkansas Diamonds
Arkansas Twisters seasons
Arkansas Diamonds
|
```go
// 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.
package direct
import (
"context"
"fmt"
"github.com/apache/beam/sdks/v2/go/pkg/beam/core/graph/mtime"
"github.com/apache/beam/sdks/v2/go/pkg/beam/core/graph/window"
"github.com/apache/beam/sdks/v2/go/pkg/beam/core/runtime/exec"
)
// Impulse emits its single element in one invocation.
type Impulse struct {
UID exec.UnitID
Value []byte
Out exec.Node
}
func (n *Impulse) ID() exec.UnitID {
return n.UID
}
func (n *Impulse) Up(ctx context.Context) error {
return nil
}
func (n *Impulse) StartBundle(ctx context.Context, id string, data exec.DataContext) error {
return n.Out.StartBundle(ctx, id, data)
}
func (n *Impulse) Process(ctx context.Context) ([]*exec.Checkpoint, error) {
value := &exec.FullValue{
Windows: window.SingleGlobalWindow,
Timestamp: mtime.Now(),
Elm: n.Value,
}
return nil, n.Out.ProcessElement(ctx, value)
}
func (n *Impulse) FinishBundle(ctx context.Context) error {
return n.Out.FinishBundle(ctx)
}
func (n *Impulse) Down(ctx context.Context) error {
return nil
}
func (n *Impulse) String() string {
return fmt.Sprintf("Impulse[%v]", len(n.Value))
}
```
|
```dart
/*
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*
* 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.
*/
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:playground_components/playground_components.dart';
import 'package:playground_components_dev/playground_components_dev.dart';
import 'common/common.dart';
import 'common/examples.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('Testing editing code', (WidgetTester wt) async {
await init(wt);
await _checkResetUnmodifiedCode(wt);
await _checkResetModifiedCode(wt);
await _checkAutocomplete(wt);
await _checkCodeHighlightedMultipleColors(wt);
await _checkCodeBlockFolding(wt);
});
}
Future<void> _checkResetUnmodifiedCode(WidgetTester wt) async {
final playgroundController = wt.findPlaygroundController();
final code = playgroundController.source;
expect(code, isNotNull);
await wt.tapAndSettle(find.resetButton());
expect(playgroundController.source, code);
expectLastAnalyticsEvent(
SnippetResetAnalyticsEvent(snippetContext: defaultEventSnippetContext),
);
}
Future<void> _checkResetModifiedCode(WidgetTester wt) async {
final playgroundController = wt.findPlaygroundController();
final code = playgroundController.source;
await wt.enterCodeFieldText('print("Hello World!');
await wt.pumpAndSettle();
expect(playgroundController.source, isNot(code));
expectLastAnalyticsEvent(
SnippetModifiedAnalyticsEvent(
additionalParams: {},
fileName: javaMinimalWordCount.mainFileName,
sdk: defaultEventSnippetContext.sdk!,
snippet: defaultEventSnippetContext.originalSnippet!,
),
);
await wt.tapAndSettle(find.resetButton());
expect(playgroundController.source, code);
expectLastAnalyticsEvent(
SnippetResetAnalyticsEvent(
snippetContext: modifiedDefaultEventSnippetContext,
),
);
}
Future<void> _checkAutocomplete(WidgetTester wt) async {
// Several newlines are required here because suggestion
// popup works incorrectly. Remove when fixed
await wt.enterCodeFieldText('\n\n\n\n\nsdk');
final playgroundController = wt.findPlaygroundController();
await wt.runShortcut(playgroundController.showSuggestionsShortcut);
await wt.pumpAndSettle();
expect(find.text('sdkHttpMetadata'), findsOneWidget);
expect(find.text('sdkHttpMetadataWithoutHeaders'), findsOneWidget);
expect(find.text('sdkHttpResponse'), findsOneWidget);
expect(find.text('sdkHttpResponseWithoutHeaders'), findsOneWidget);
await wt.tapAndSettle(find.resetButton());
}
Future<void> _checkCodeHighlightedMultipleColors(WidgetTester wt) async {
final codeController = wt.findOneCodeController();
final colors = <Color>{};
var textSpan = codeController.lastTextSpan;
_collectTextSpanTreeTextColors(textSpan, colors);
expect(colors.length, greaterThan(1));
}
void _collectTextSpanTreeTextColors(InlineSpan? span, Set<Color> colors) {
if (span is TextSpan) {
if (span.style?.color != null) {
colors.add(span.style!.color!);
}
if (span.children != null) {
for (final child in span.children!) {
_collectTextSpanTreeTextColors(child, colors);
}
}
}
}
Future<void> _checkCodeBlockFolding(WidgetTester wt) async {
const code = '''
public class MyClass {
public static void main(String[] args) {
System.out.print("Hello World!");
}
}
''';
await wt.enterCodeFieldText(code);
await wt.pumpAndSettle();
await wt.tapAndSettle(_getTopToggle(wt));
const foldedCode = '''
public class MyClass {
''';
expect(wt.findOneCodeController().text, foldedCode);
await wt.tapAndSettle(_getTopToggle(wt));
expect(wt.findOneCodeController().text, code);
}
Finder _getTopToggle(WidgetTester wt) {
return find
.descendant(
of: find.byType(RotatedBox),
matching: find.byIcon(Icons.chevron_right),
)
.verticallyAt(0, wt);
}
```
|
```c++
/*
This file is part of Kismet
Kismet is free software; you can redistribute it and/or modify
(at your option) any later version.
Kismet is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with Kismet; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "globalregistry.h"
#include "dot11_ie_221_wfa_wpa.h"
void dot11_ie_221_wfa_wpa::parse(std::shared_ptr<kaitai::kstream> p_io) {
m_vendor_subtype = p_io->read_u1();
m_wpa_version = p_io->read_u2le();
m_multicast_cipher.reset(new wpa_v1_cipher());
m_multicast_cipher->parse(p_io);
m_unicast_count = p_io->read_u2le();
m_unicast_ciphers = Globalreg::new_from_pool<shared_wpa_v1_cipher_vector>();
for (uint16_t i = 0; i < unicast_count(); i++) {
auto c = Globalreg::new_from_pool<wpa_v1_cipher>();
c->parse(p_io);
m_unicast_ciphers->push_back(c);
}
m_akm_count = p_io->read_u2le();
m_akm_ciphers = Globalreg::new_from_pool<shared_wpa_v1_cipher_vector>();
for (uint16_t i = 0; i < akm_count(); i++) {
auto c = Globalreg::new_from_pool<wpa_v1_cipher>();
c->parse(p_io);
m_akm_ciphers->push_back(c);
}
}
void dot11_ie_221_wfa_wpa::wpa_v1_cipher::parse(std::shared_ptr<kaitai::kstream> p_io) {
m_oui = p_io->read_bytes(3);
m_cipher_type = p_io->read_u1();
}
```
|
The topological entanglement entropy or topological entropy, usually denoted by , is a number characterizing many-body states that possess topological order.
A non-zero topological entanglement entropy reflects the presence of long range quantum entanglements in a many-body quantum state. So the topological entanglement entropy links topological order with pattern of long range quantum entanglements.
Given a topologically ordered state, the topological entropy can be extracted from the asymptotic behavior of the Von Neumann entropy measuring the quantum entanglement between a spatial block and the rest of the system. The entanglement entropy of a simply connected region of boundary length L, within an infinite two-dimensional topologically ordered state, has the following form for large L:
where is the topological entanglement entropy.
The topological entanglement entropy is equal to the logarithm of the total quantum dimension of the quasiparticle excitations of the state.
For example, the simplest fractional quantum Hall states, the Laughlin states at filling fraction 1/m, have γ = ½log(m). The Z2 fractionalized states, such as topologically ordered states of
Z2 spin-liquid, quantum dimer models on non-bipartite lattices, and Kitaev's toric code state, are characterized γ = log(2).
See also
Quantum topology
Topological defect
Topological order
Topological quantum field theory
Topological quantum number
Topological string theory
References
Calculations for specific topologically ordered states
Condensed matter physics
Statistical mechanics
Entropy
|
The Canada U-23 men's national soccer team (also known as Canada Olympic soccer team) represents Canada in international soccer at this age level. They are overseen by the Canadian Soccer Association, the governing body for soccer in Canada.
Unlike UEFA member associations that use U-21 regional competitions as Olympic qualifying, as a member of CONCACAF, Canada's U-23 team competes in regional qualifying in the same year as the Summer Olympics, and its call-ups are traditionally only limited to players under 23 years of age.
History
2008 qualifying
Known for his vocal antics on the touchline, Nick Dasovic led Canada through Olympic qualifying in 2008, drawing Mexico 1–1 and helping to eliminate the heavily favoured Mexican side in the process. After a highly promising 5–0 win over Guatemala on a night when Mexico had to better that result against Haiti but could only win 5–1, Canada fell to the United States 3–0 in the semifinal, losing out on a spot in Beijing at the Olympics that summer. Canada recovered to defeat Guatemala in the third-place playoff, a rematch of their first-round game, winning on penalties (5–3) after a scoreless draw through 120 minutes.
2012 qualifying
Tony Fonseca led Canada to an opening game 0–0 draw against El Salvador. Following this, Canada stunned the United States 2–0, contributing to their surprising early elimination on home soil. Canada disappointed in their final group stage game with a 1–1 tie versus Cuba, setting up a more difficult semi-final for them against Mexico, which they would lose 3–1.
2016 qualifying
It was announced in August 2015 that Canada head coach Benito Floro would be in charge of the Olympic team. The final squad for qualification was announced on September 18, 2015.
Coaching history
Tony Fonseca (2009–2012)
Benito Floro (2013–2015)
John Herdman (2018)
Mauro Biello (2022)
Results & fixtures
2021
Players
Current squad
Players in bold have been capped with the senior team.
– designated overage player.
The following 20 players were named to the squad for the 2020 CONCACAF Men's Olympic Qualifying Championship. Caps and goals as of March 28, 2021, after the game against Mexico.
Recent call-ups
The following players have been called up within the last 12 months and are still eligible at U23 level.
Previous squads
CONCACAF Men's Olympic Qualifying Championship
1996 CONCACAF Men's Olympic Qualifying Championship squad
2000 CONCACAF Men's Olympic Qualifying Championship squad
2004 CONCACAF Men's Olympic Qualifying Championship squad
2008 CONCACAF Men's Olympic Qualifying Championship squad
2012 CONCACAF Men's Olympic Qualifying Championship squad
2015 CONCACAF Men's Olympic Qualifying Championship squad
2020 CONCACAF Men's Olympic Qualifying Championship squad
Pan American Games
2015 Pan American Games squad
Competitive record
Summer Olympics
Pan American Games
Honours
CONCACAF Olympic Qualifying Tournament
Runners-up: 1996
See also
Canada men's national soccer team
Canada men's national under-20 soccer team
Canada men's national under-17 soccer team
Canada men's national futsal team
Soccer in Canada
References
under-23
North American national under-23 association football teams
|
Captain Charlie-27 is a fictional character appearing in American comic books published by Marvel Comics. The character usually appears in the Earth-691 timeline of the Marvel Universe as a member of the original 31st century incarnation of the team known as the Guardians of the Galaxy.
Charlie-27 first appeared in Marvel Super-Heroes #18 (Jan. 1969). Writer Dan Abnett described him as "the heart" of the Guardians of the Galaxy.
The character was portrayed by actor Ving Rhames in the 2017 Marvel Cinematic Universe film Guardians of the Galaxy Vol. 2.
Publication history
Charlie-27 first appeared in Marvel Super-Heroes #18 (Jan. 1969). According to Roy Thomas, all of the original Guardians of the Galaxy were created in a conference between Arnold Drake and Stan Lee, but it remains uncertain whether Drake, Lee, or both created each individual character. The team was featured in several Marvel titles: Marvel Two-In-One #4-5 (July-Sept. 1974), Giant Size Defenders #5, and The Defenders #26-29 (July-Nov. 1975), and writer Steve Gerber included the character when he revived the team in Marvel Presents #3-#12 (Feb. 1976-Aug. 1977).
Charlie-27 is a recurring character in the 1990s Guardians of the Galaxy series and appeared along with the rest of the original Guardians of the Galaxy team in the 2014 series Guardians 3000. He was also one of the characters featured in the 2016 Guardians of Infinity series.
Fictional character biography
Charlie-27 is a soldier and space militia pilot, genetically engineered to live in Jupiter's gravity, born in Galileo City, Jupiter. As such, he has eleven times the muscle mass of a normal human. He was also a captain in the United Lands of Earth Space Militia.
In the year 3007, he returns from a six-month space mission to find his city taken over by the Badoon. He hears a Badoon mention he is the last surviving Jovian, so he escapes in a teleporting pod to Pluto. Unknown to him, Starhawk had keyed in the location. He joins forces with Martinex, the only survivor of Pluto. The two go to Earth using the telepod and meet Yondu and Vance Astro to form the Guardians of the Galaxy, a band of freedom fighters. In 3014, he teams with the time-traveling Thing, Captain America, and Sharon Carter to retake New York City from Badoon forces. He later time-travels to the 20th century, and meets the Defenders. He returns to 3015 with Starhawk and the Defenders to defeat a Badoon invasion force.
Charlie-27 departs post-war Earth on a space mission and meets Nikki, who joins the Guardians of the Galaxy. He then visits the Asylum planet and helps defeat the Topographical Man. Charlie learns how the Silver Surfer repulsed the original Badoon invasion in the 20th century. He meets Aleta Ogord and learns the origin of Starhawk. Charlie then discovers the space station Drydock. The Guardians use it as a base of operations.
Charlie teams with the time-traveling Thor to battle Korvac and his minions. With the Guardians of the Galaxy, Charlie-27 pursues Korvac to the present. He meets the Avengers, who saved the life of a young Vance Astrovik. Charlie assists the Avengers in battling Korvac. He attends an Avengers membership meeting but leaves early. Charlie battles the Thing to prevent the meeting of Vance Astro's 20th and 31st century selves. With the Guardians, he then returns to the 31st century.
Charlie and the Guardians go on a quest to find the lost shield of Captain America. He battles Taserface and the Stark. He encounters Firelord and defeats the Stark. He battles the superhuman team Force. He encounters Malevolence. He locates Haven, a lost colony of Earth founded by mutants. He battles Rancor and her lieutenants.
Charlie's romantic relationship with fellow Guardian Nikki is broken up. They still remain friends.
Charlie-27 becomes involved in the Infinity War. He and his team save Avengers Mansion from an invasion by the Masters of Evil. Both teams fight evil doppelgangers of themselves sent by the Magus. Rita DeMara earns his friendship by performing an impromptu surgery with her stings on a massive internal blood-clot, saving his life.
As with the rest of the team, Charlie becomes lost in space and time.
Powers and abilities
Charlie-27 is a member of a genetically engineered offshoot of humanity whose traits were designed for survival under the heavy gravity conditions of the planet Jupiter. As such, he has superhuman strength, and enhanced durability and stamina.
Charlie is trained in hand-to-hand combat as a militiaman. He also has the ability to pilot most air and spacecraft of the 31st century, including the Guardians' starships such as the Freedom's Lady, Captain America I, and Captain America II.
Reception
Lucas Siegel of Newsarama opined Charlie-27 as the clear inspiration for X-Men: The Last Stand version of Juggernaut.
In other media
Charlie-27 appears in Guardians of the Galaxy Vol. 2, portrayed by Ving Rhames. This version is a member of the Ravagers. After attending Yondu Udonta's funeral with the other Ravagers, Charlie-27 later appears in a mid-credits scene in which he interacts with members of Udonta's original team.
Charlie-27 appears as a playable character in Lego Marvel Super Heroes 2 via the "Classic Guardians of the Galaxy" DLC pack.
References
External links
Charlie-27 at Marvel Wiki
Characters created by Arnold Drake
Characters created by Gene Colan
Comics characters introduced in 1969
Fictional genetically engineered characters
Fictional military captains
Fiction set on Jupiter
Marvel Comics characters with superhuman durability or invulnerability
Marvel Comics characters with superhuman strength
Marvel Comics military personnel
Marvel Comics superheroes
|
```python
# ===================================================================
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. 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.
#
# 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 HOLDER 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.
# ===================================================================
import unittest
from Cryptodome.SelfTest.st_common import list_test_cases
from Cryptodome.Util.py3compat import tobytes, b, unhexlify
from Cryptodome.Cipher import AES, DES3, DES
from Cryptodome.Hash import SHAKE128
def get_tag_random(tag, length):
return SHAKE128.new(data=tobytes(tag)).read(length)
from Cryptodome.SelfTest.Cipher.test_CBC import BlockChainingTests
class OpenPGPTests(BlockChainingTests):
aes_mode = AES.MODE_OPENPGP
des3_mode = DES3.MODE_OPENPGP
# Redefine test_unaligned_data_128/64
key_128 = get_tag_random("key_128", 16)
key_192 = get_tag_random("key_192", 24)
iv_128 = get_tag_random("iv_128", 16)
iv_64 = get_tag_random("iv_64", 8)
data_128 = get_tag_random("data_128", 16)
def test_loopback_128(self):
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
pt = get_tag_random("plaintext", 16 * 100)
ct = cipher.encrypt(pt)
eiv, ct = ct[:18], ct[18:]
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, eiv)
pt2 = cipher.decrypt(ct)
self.assertEqual(pt, pt2)
def test_loopback_64(self):
cipher = DES3.new(self.key_192, DES3.MODE_OPENPGP, self.iv_64)
pt = get_tag_random("plaintext", 8 * 100)
ct = cipher.encrypt(pt)
eiv, ct = ct[:10], ct[10:]
cipher = DES3.new(self.key_192, DES3.MODE_OPENPGP, eiv)
pt2 = cipher.decrypt(ct)
self.assertEqual(pt, pt2)
def test_IV_iv_attributes(self):
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
eiv = cipher.encrypt(b(""))
self.assertEqual(cipher.iv, self.iv_128)
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, eiv)
self.assertEqual(cipher.iv, self.iv_128)
def test_null_encryption_decryption(self):
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
eiv = cipher.encrypt(b(""))
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, eiv)
self.assertEqual(cipher.decrypt(b("")), b(""))
def test_either_encrypt_or_decrypt(self):
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
eiv = cipher.encrypt(b(""))
self.assertRaises(TypeError, cipher.decrypt, b(""))
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, eiv)
cipher.decrypt(b(""))
self.assertRaises(TypeError, cipher.encrypt, b(""))
def test_unaligned_data_128(self):
plaintexts = [ b("7777777") ] * 100
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
ciphertexts = [ cipher.encrypt(x) for x in plaintexts ]
cipher = AES.new(self.key_128, AES.MODE_OPENPGP, self.iv_128)
self.assertEqual(b("").join(ciphertexts), cipher.encrypt(b("").join(plaintexts)))
def test_unaligned_data_64(self):
plaintexts = [ b("7777777") ] * 100
cipher = DES3.new(self.key_192, DES3.MODE_OPENPGP, self.iv_64)
ciphertexts = [ cipher.encrypt(x) for x in plaintexts ]
cipher = DES3.new(self.key_192, DES3.MODE_OPENPGP, self.iv_64)
self.assertEqual(b("").join(ciphertexts), cipher.encrypt(b("").join(plaintexts)))
class TestVectors(unittest.TestCase):
def test_aes(self):
# The following test vectors have been generated with gpg v1.4.0.
# The command line used was:
#
# gpg -c -z 0 --cipher-algo AES --passphrase secret_passphrase \
# --disable-mdc --s2k-mode 0 --output ct pt
#
# As result, the content of the file 'pt' is encrypted with a key derived
# from 'secret_passphrase' and written to file 'ct'.
# Test vectors must be extracted from 'ct', which is a collection of
# TLVs (see RFC4880 for all details):
# - the encrypted data (with the encrypted IV as prefix) is the payload
# of the TLV with tag 9 (Symmetrical Encrypted Data Packet).
# This is the ciphertext in the test vector.
# - inside the encrypted part, there is a further layer of TLVs. One must
# look for tag 11 (Literal Data Packet); in its payload, after a short
# but time dependent header, there is the content of file 'pt'.
# In the test vector, the plaintext is the complete set of TLVs that gets
# encrypted. It is not just the content of 'pt'.
# - the key is the leftmost 16 bytes of the SHA1 digest of the password.
# The test vector contains such shortened digest.
#
# Note that encryption uses a clear IV, and decryption an encrypted IV
plaintext = 'ac18620270744fb4f647426c61636b4361745768697465436174'
ciphertext = 'dc6b9e1f095de609765c59983db5956ae4f63aea7405389d2ebb'
key = '5baa61e4c9b93f3f0682250b6cf8331b'
iv = '3d7d3e62282add7eb203eeba5c800733'
encrypted_iv='fd934601ef49cb58b6d9aebca6056bdb96ef'
plaintext = unhexlify(plaintext)
ciphertext = unhexlify(ciphertext)
key = unhexlify(key)
iv = unhexlify(iv)
encrypted_iv = unhexlify(encrypted_iv)
cipher = AES.new(key, AES.MODE_OPENPGP, iv)
ct = cipher.encrypt(plaintext)
self.assertEqual(ct[:18], encrypted_iv)
self.assertEqual(ct[18:], ciphertext)
cipher = AES.new(key, AES.MODE_OPENPGP, encrypted_iv)
pt = cipher.decrypt(ciphertext)
self.assertEqual(pt, plaintext)
def test_des3(self):
# The following test vectors have been generated with gpg v1.4.0.
# The command line used was:
# gpg -c -z 0 --cipher-algo 3DES --passphrase secret_passphrase \
# --disable-mdc --s2k-mode 0 --output ct pt
# For an explanation, see test_AES.py .
plaintext = 'ac1762037074324fb53ba3596f73656d69746556616c6c6579'
ciphertext = '9979238528357b90e2e0be549cb0b2d5999b9a4a447e5c5c7d'
key = '7ade65b460f5ea9be35f9e14aa883a2048e3824aa616c0b2'
iv='cd47e2afb8b7e4b0'
encrypted_iv='6a7eef0b58050e8b904a'
plaintext = unhexlify(plaintext)
ciphertext = unhexlify(ciphertext)
key = unhexlify(key)
iv = unhexlify(iv)
encrypted_iv = unhexlify(encrypted_iv)
cipher = DES3.new(key, DES3.MODE_OPENPGP, iv)
ct = cipher.encrypt(plaintext)
self.assertEqual(ct[:10], encrypted_iv)
self.assertEqual(ct[10:], ciphertext)
cipher = DES3.new(key, DES3.MODE_OPENPGP, encrypted_iv)
pt = cipher.decrypt(ciphertext)
self.assertEqual(pt, plaintext)
def get_tests(config={}):
tests = []
tests += list_test_cases(OpenPGPTests)
tests += list_test_cases(TestVectors)
return tests
if __name__ == '__main__':
suite = lambda: unittest.TestSuite(get_tests())
unittest.main(defaultTest='suite')
```
|
```html
<html lang="en">
<head>
<title>MIPS-Dependent - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Machine-Dependencies.html#Machine-Dependencies" title="Machine Dependencies">
<link rel="prev" href="MicroBlaze_002dDependent.html#MicroBlaze_002dDependent" title="MicroBlaze-Dependent">
<link rel="next" href="MMIX_002dDependent.html#MMIX_002dDependent" title="MMIX-Dependent">
<link href="path_to_url" rel="generator-home" title="Texinfo Homepage">
<!--
This file documents the GNU Assembler "as".
Permission is granted to copy, distribute and/or modify this document
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="MIPS-Dependent"></a>
<a name="MIPS_002dDependent"></a>
Next: <a rel="next" accesskey="n" href="MMIX_002dDependent.html#MMIX_002dDependent">MMIX-Dependent</a>,
Previous: <a rel="previous" accesskey="p" href="MicroBlaze_002dDependent.html#MicroBlaze_002dDependent">MicroBlaze-Dependent</a>,
Up: <a rel="up" accesskey="u" href="Machine-Dependencies.html#Machine-Dependencies">Machine Dependencies</a>
<hr>
</div>
<h3 class="section">9.27 MIPS Dependent Features</h3>
<p><a name="index-MIPS-processor-1472"></a><span class="sc">gnu</span> <code>as</code> for MIPS architectures supports several
different MIPS processors, and MIPS ISA levels I through V, MIPS32,
and MIPS64. For information about the MIPS instruction set, see
<cite>MIPS RISC Architecture</cite>, by Kane and Heindrich (Prentice-Hall).
For an overview of MIPS assembly conventions, see “Appendix D:
Assembly Language Programming” in the same work.
<ul class="menu">
<li><a accesskey="1" href="MIPS-Options.html#MIPS-Options">MIPS Options</a>: Assembler options
<li><a accesskey="2" href="MIPS-Macros.html#MIPS-Macros">MIPS Macros</a>: High-level assembly macros
<li><a accesskey="3" href="MIPS-Symbol-Sizes.html#MIPS-Symbol-Sizes">MIPS Symbol Sizes</a>: Directives to override the size of symbols
<li><a accesskey="4" href="MIPS-Small-Data.html#MIPS-Small-Data">MIPS Small Data</a>: Controlling the use of small data accesses
<li><a accesskey="5" href="MIPS-ISA.html#MIPS-ISA">MIPS ISA</a>: Directives to override the ISA level
<li><a accesskey="6" href="MIPS-assembly-options.html#MIPS-assembly-options">MIPS assembly options</a>: Directives to control code generation
<li><a accesskey="7" href="MIPS-autoextend.html#MIPS-autoextend">MIPS autoextend</a>: Directives for extending MIPS 16 bit instructions
<li><a accesskey="8" href="MIPS-insn.html#MIPS-insn">MIPS insn</a>: Directive to mark data as an instruction
<li><a accesskey="9" href="MIPS-FP-ABIs.html#MIPS-FP-ABIs">MIPS FP ABIs</a>: Marking which FP ABI is in use
<li><a href="MIPS-NaN-Encodings.html#MIPS-NaN-Encodings">MIPS NaN Encodings</a>: Directives to record which NaN encoding is being used
<li><a href="MIPS-Option-Stack.html#MIPS-Option-Stack">MIPS Option Stack</a>: Directives to save and restore options
<li><a href="MIPS-ASE-Instruction-Generation-Overrides.html#MIPS-ASE-Instruction-Generation-Overrides">MIPS ASE Instruction Generation Overrides</a>: Directives to control
generation of MIPS ASE instructions
<li><a href="MIPS-Floating_002dPoint.html#MIPS-Floating_002dPoint">MIPS Floating-Point</a>: Directives to override floating-point options
<li><a href="MIPS-Syntax.html#MIPS-Syntax">MIPS Syntax</a>: MIPS specific syntactical considerations
</ul>
</body></html>
```
|
```java
package com.sohu.cache.async;
import java.util.concurrent.Future;
/**
* Created by yijunzhang on 15-1-20.
*/
public class KeyFuture<V> {
private final String key;
private final Future<V> future;
public KeyFuture(String key, Future<V> future) {
this.key = key;
this.future = future;
}
public String getKey() {
return key;
}
public Future<V> getFuture() {
return future;
}
}
```
|
Russell Frederick Stein (April 21, 1896 – May 28, 1970) was an American football player. He was born in Warren, Ohio. After high school, Stein attended Washington & Jefferson College. While in College he was the captain of Washington & Jefferson's 1921 undefeated football team, which played to the only scoreless tie in the history of the 1922 Rose Bowl against the California Golden Bears. He was one of the 11 players who played in the entire game in which Washington & Jefferson held the Golden Bears to only 49 yards rushing, two first downs, and no pass completions. Stein was named the game’s Most Outstanding Player and was inducted into the Rose Bowl Hall of Fame in 1991. He was selected to Walter Camp’s All-American team in 1921, where he joined his brother, Herb, as the first brothers to be named All-Americans in the same year. He was later inducted into the Washington & Jefferson Athletics Hall of Fame in 1999.
Stein made his professional debut in the National Football League (NFL) in 1922 with the Toledo Maroons. He played for Toledo, Canton Bulldogs, Frankford Yellow Jackets, and the Pottsville Maroons over the course of his four-year career. Stein (along with his younger brother, Herb) was also a member of the 1925 Pottsville Maroons team that won the 1925 NFL Championship, before it was stripped from the team due to a disputed rules violation.
Head coaching record
References
External links
1896 births
1970 deaths
American football ends
American football centers
American football tackles
Canton Bulldogs players
Frankford Yellow Jackets players
Oglethorpe Stormy Petrels football coaches
Pottsville Maroons players
Toledo Maroons players
Washington & Jefferson Presidents football players
Players of American football from Warren, Ohio
Coaches of American football from Ohio
|
```c
/****************************************************************************
*
* ftraster.c
*
* The FreeType glyph rasterizer (body).
*
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
* this file you indicate that you have read the license and
* understand and accept it fully.
*
*/
/**************************************************************************
*
* This file can be compiled without the rest of the FreeType engine, by
* defining the STANDALONE_ macro when compiling it. You also need to
* put the files `ftimage.h' and `ftmisc.h' into the $(incdir)
* directory. Typically, you should do something like
*
* - copy `src/raster/ftraster.c' (this file) to your current directory
*
* - copy `include/freetype/ftimage.h' and `src/raster/ftmisc.h' to your
* current directory
*
* - compile `ftraster' with the STANDALONE_ macro defined, as in
*
* cc -c -DSTANDALONE_ ftraster.c
*
* The renderer can be initialized with a call to
* `ft_standard_raster.raster_new'; a bitmap can be generated
* with a call to `ft_standard_raster.raster_render'.
*
* See the comments and documentation in the file `ftimage.h' for more
* details on how the raster works.
*
*/
/**************************************************************************
*
* This is a rewrite of the FreeType 1.x scan-line converter
*
*/
#ifdef STANDALONE_
/* The size in bytes of the render pool used by the scan-line converter */
/* to do all of its work. */
#define FT_RENDER_POOL_SIZE 16384L
#define FT_CONFIG_STANDARD_LIBRARY_H <stdlib.h>
#include <string.h> /* for memset */
#include "ftmisc.h"
#include "ftimage.h"
#else /* !STANDALONE_ */
#include <ft2build.h>
#include "ftraster.h"
#include FT_INTERNAL_CALC_H /* for FT_MulDiv and FT_MulDiv_No_Round */
#include FT_OUTLINE_H /* for FT_Outline_Get_CBox */
#endif /* !STANDALONE_ */
/**************************************************************************
*
* A simple technical note on how the raster works
* -----------------------------------------------
*
* Converting an outline into a bitmap is achieved in several steps:
*
* 1 - Decomposing the outline into successive `profiles'. Each
* profile is simply an array of scanline intersections on a given
* dimension. A profile's main attributes are
*
* o its scanline position boundaries, i.e. `Ymin' and `Ymax'
*
* o an array of intersection coordinates for each scanline
* between `Ymin' and `Ymax'
*
* o a direction, indicating whether it was built going `up' or
* `down', as this is very important for filling rules
*
* o its drop-out mode
*
* 2 - Sweeping the target map's scanlines in order to compute segment
* `spans' which are then filled. Additionally, this pass
* performs drop-out control.
*
* The outline data is parsed during step 1 only. The profiles are
* built from the bottom of the render pool, used as a stack. The
* following graphics shows the profile list under construction:
*
* __________________________________________________________ _ _
* | | | | |
* | profile | coordinates for | profile | coordinates for |-->
* | 1 | profile 1 | 2 | profile 2 |-->
* |_________|_________________|_________|_________________|__ _ _
*
* ^ ^
* | |
* start of render pool top
*
* The top of the profile stack is kept in the `top' variable.
*
* As you can see, a profile record is pushed on top of the render
* pool, which is then followed by its coordinates/intersections. If
* a change of direction is detected in the outline, a new profile is
* generated until the end of the outline.
*
* Note that when all profiles have been generated, the function
* Finalize_Profile_Table() is used to record, for each profile, its
* bottom-most scanline as well as the scanline above its upmost
* boundary. These positions are called `y-turns' because they (sort
* of) correspond to local extrema. They are stored in a sorted list
* built from the top of the render pool as a downwards stack:
*
* _ _ _______________________________________
* | |
* <--| sorted list of |
* <--| extrema scanlines |
* _ _ __________________|____________________|
*
* ^ ^
* | |
* maxBuff sizeBuff = end of pool
*
* This list is later used during the sweep phase in order to
* optimize performance (see technical note on the sweep below).
*
* Of course, the raster detects whether the two stacks collide and
* handles the situation properly.
*
*/
/*************************************************************************/
/*************************************************************************/
/** **/
/** CONFIGURATION MACROS **/
/** **/
/*************************************************************************/
/*************************************************************************/
/* define DEBUG_RASTER if you want to compile a debugging version */
/* #define DEBUG_RASTER */
/*************************************************************************/
/*************************************************************************/
/** **/
/** OTHER MACROS (do not change) **/
/** **/
/*************************************************************************/
/*************************************************************************/
/**************************************************************************
*
* The macro FT_COMPONENT is used in trace mode. It is an implicit
* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
* messages during execution.
*/
#undef FT_COMPONENT
#define FT_COMPONENT raster
#ifdef STANDALONE_
/* Auxiliary macros for token concatenation. */
#define FT_ERR_XCAT( x, y ) x ## y
#define FT_ERR_CAT( x, y ) FT_ERR_XCAT( x, y )
/* This macro is used to indicate that a function parameter is unused. */
/* Its purpose is simply to reduce compiler warnings. Note also that */
/* simply defining it as `(void)x' doesn't avoid warnings with certain */
/* ANSI compilers (e.g. LCC). */
#define FT_UNUSED( x ) (x) = (x)
/* Disable the tracing mechanism for simplicity -- developers can */
/* activate it easily by redefining these macros. */
#ifndef FT_ERROR
#define FT_ERROR( x ) do { } while ( 0 ) /* nothing */
#endif
#ifndef FT_TRACE
#define FT_TRACE( x ) do { } while ( 0 ) /* nothing */
#define FT_TRACE1( x ) do { } while ( 0 ) /* nothing */
#define FT_TRACE6( x ) do { } while ( 0 ) /* nothing */
#define FT_TRACE7( x ) do { } while ( 0 ) /* nothing */
#endif
#ifndef FT_THROW
#define FT_THROW( e ) FT_ERR_CAT( Raster_Err_, e )
#endif
#define Raster_Err_None 0
#define Raster_Err_Not_Ini -1
#define Raster_Err_Overflow -2
#define Raster_Err_Neg_Height -3
#define Raster_Err_Invalid -4
#define Raster_Err_Unsupported -5
#define ft_memset memset
#define FT_DEFINE_RASTER_FUNCS( class_, glyph_format_, raster_new_, \
raster_reset_, raster_set_mode_, \
raster_render_, raster_done_ ) \
const FT_Raster_Funcs class_ = \
{ \
glyph_format_, \
raster_new_, \
raster_reset_, \
raster_set_mode_, \
raster_render_, \
raster_done_ \
};
#else /* !STANDALONE_ */
#include FT_INTERNAL_OBJECTS_H
#include FT_INTERNAL_DEBUG_H /* for FT_TRACE, FT_ERROR, and FT_THROW */
#include "rasterrs.h"
#define Raster_Err_None FT_Err_Ok
#define Raster_Err_Not_Ini Raster_Err_Raster_Uninitialized
#define Raster_Err_Overflow Raster_Err_Raster_Overflow
#define Raster_Err_Neg_Height Raster_Err_Raster_Negative_Height
#define Raster_Err_Invalid Raster_Err_Invalid_Outline
#define Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph
#endif /* !STANDALONE_ */
#ifndef FT_MEM_SET
#define FT_MEM_SET( d, s, c ) ft_memset( d, s, c )
#endif
#ifndef FT_MEM_ZERO
#define FT_MEM_ZERO( dest, count ) FT_MEM_SET( dest, 0, count )
#endif
#ifndef FT_ZERO
#define FT_ZERO( p ) FT_MEM_ZERO( p, sizeof ( *(p) ) )
#endif
/* FMulDiv means `Fast MulDiv'; it is used in case where `b' is */
/* typically a small value and the result of a*b is known to fit into */
/* 32 bits. */
#define FMulDiv( a, b, c ) ( (a) * (b) / (c) )
/* On the other hand, SMulDiv means `Slow MulDiv', and is used typically */
/* for clipping computations. It simply uses the FT_MulDiv() function */
/* defined in `ftcalc.h'. */
#define SMulDiv FT_MulDiv
#define SMulDiv_No_Round FT_MulDiv_No_Round
/* The rasterizer is a very general purpose component; please leave */
/* the following redefinitions there (you never know your target */
/* environment). */
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL
#define NULL (void*)0
#endif
#ifndef SUCCESS
#define SUCCESS 0
#endif
#ifndef FAILURE
#define FAILURE 1
#endif
#define MaxBezier 32 /* The maximum number of stacked Bezier curves. */
/* Setting this constant to more than 32 is a */
/* pure waste of space. */
#define Pixel_Bits 6 /* fractional bits of *input* coordinates */
/*************************************************************************/
/*************************************************************************/
/** **/
/** SIMPLE TYPE DECLARATIONS **/
/** **/
/*************************************************************************/
/*************************************************************************/
typedef int Int;
typedef unsigned int UInt;
typedef short Short;
typedef unsigned short UShort, *PUShort;
typedef long Long, *PLong;
typedef unsigned long ULong;
typedef unsigned char Byte, *PByte;
typedef char Bool;
typedef union Alignment_
{
Long l;
void* p;
void (*f)(void);
} Alignment, *PAlignment;
typedef struct TPoint_
{
Long x;
Long y;
} TPoint;
/* values for the `flags' bit field */
#define Flow_Up 0x08U
#define Overshoot_Top 0x10U
#define Overshoot_Bottom 0x20U
/* States of each line, arc, and profile */
typedef enum TStates_
{
Unknown_State,
Ascending_State,
Descending_State,
Flat_State
} TStates;
typedef struct TProfile_ TProfile;
typedef TProfile* PProfile;
struct TProfile_
{
FT_F26Dot6 X; /* current coordinate during sweep */
PProfile link; /* link to next profile (various purposes) */
PLong offset; /* start of profile's data in render pool */
UShort flags; /* Bit 0-2: drop-out mode */
/* Bit 3: profile orientation (up/down) */
/* Bit 4: is top profile? */
/* Bit 5: is bottom profile? */
Long height; /* profile's height in scanlines */
Long start; /* profile's starting scanline */
Int countL; /* number of lines to step before this */
/* profile becomes drawable */
PProfile next; /* next profile in same contour, used */
/* during drop-out control */
};
typedef PProfile TProfileList;
typedef PProfile* PProfileList;
/* Simple record used to implement a stack of bands, required */
/* by the sub-banding mechanism */
typedef struct black_TBand_
{
Short y_min; /* band's minimum */
Short y_max; /* band's maximum */
} black_TBand;
#define AlignProfileSize \
( ( sizeof ( TProfile ) + sizeof ( Alignment ) - 1 ) / sizeof ( Long ) )
#undef RAS_ARG
#undef RAS_ARGS
#undef RAS_VAR
#undef RAS_VARS
#ifdef FT_STATIC_RASTER
#define RAS_ARGS /* void */
#define RAS_ARG /* void */
#define RAS_VARS /* void */
#define RAS_VAR /* void */
#define FT_UNUSED_RASTER do { } while ( 0 )
#else /* !FT_STATIC_RASTER */
#define RAS_ARGS black_PWorker worker,
#define RAS_ARG black_PWorker worker
#define RAS_VARS worker,
#define RAS_VAR worker
#define FT_UNUSED_RASTER FT_UNUSED( worker )
#endif /* !FT_STATIC_RASTER */
typedef struct black_TWorker_ black_TWorker, *black_PWorker;
/* prototypes used for sweep function dispatch */
typedef void
Function_Sweep_Init( RAS_ARGS Short* min,
Short* max );
typedef void
Function_Sweep_Span( RAS_ARGS Short y,
FT_F26Dot6 x1,
FT_F26Dot6 x2,
PProfile left,
PProfile right );
typedef void
Function_Sweep_Step( RAS_ARG );
/* NOTE: These operations are only valid on 2's complement processors */
#undef FLOOR
#undef CEILING
#undef TRUNC
#undef SCALED
#define FLOOR( x ) ( (x) & -ras.precision )
#define CEILING( x ) ( ( (x) + ras.precision - 1 ) & -ras.precision )
#define TRUNC( x ) ( (Long)(x) >> ras.precision_bits )
#define FRAC( x ) ( (x) & ( ras.precision - 1 ) )
/* scale and shift grid to pixel centers */
#define SCALED( x ) ( (x) * ras.precision_scale - ras.precision_half )
#define IS_BOTTOM_OVERSHOOT( x ) \
(Bool)( CEILING( x ) - x >= ras.precision_half )
#define IS_TOP_OVERSHOOT( x ) \
(Bool)( x - FLOOR( x ) >= ras.precision_half )
#if FT_RENDER_POOL_SIZE > 2048
#define FT_MAX_BLACK_POOL ( FT_RENDER_POOL_SIZE / sizeof ( Long ) )
#else
#define FT_MAX_BLACK_POOL ( 2048 / sizeof ( Long ) )
#endif
/* The most used variables are positioned at the top of the structure. */
/* Thus, their offset can be coded with less opcodes, resulting in a */
/* smaller executable. */
struct black_TWorker_
{
Int precision_bits; /* precision related variables */
Int precision;
Int precision_half;
Int precision_scale;
Int precision_step;
Int precision_jitter;
PLong buff; /* The profiles buffer */
PLong sizeBuff; /* Render pool size */
PLong maxBuff; /* Profiles buffer size */
PLong top; /* Current cursor in buffer */
FT_Error error;
Int numTurns; /* number of Y-turns in outline */
TPoint* arc; /* current Bezier arc pointer */
UShort bWidth; /* target bitmap width */
PByte bOrigin; /* target bitmap bottom-left origin */
Long lastX, lastY;
Long minY, maxY;
UShort num_Profs; /* current number of profiles */
Bool fresh; /* signals a fresh new profile which */
/* `start' field must be completed */
Bool joint; /* signals that the last arc ended */
/* exactly on a scanline. Allows */
/* removal of doublets */
PProfile cProfile; /* current profile */
PProfile fProfile; /* head of linked list of profiles */
PProfile gProfile; /* contour's first profile in case */
/* of impact */
TStates state; /* rendering state */
FT_Bitmap target; /* description of target bit/pixmap */
FT_Outline outline;
Long traceOfs; /* current offset in target bitmap */
Short traceIncr; /* sweep's increment in target bitmap */
/* dispatch variables */
Function_Sweep_Init* Proc_Sweep_Init;
Function_Sweep_Span* Proc_Sweep_Span;
Function_Sweep_Span* Proc_Sweep_Drop;
Function_Sweep_Step* Proc_Sweep_Step;
Byte dropOutControl; /* current drop_out control method */
Bool second_pass; /* indicates whether a horizontal pass */
/* should be performed to control */
/* drop-out accurately when calling */
/* Render_Glyph. */
TPoint arcs[3 * MaxBezier + 1]; /* The Bezier stack */
black_TBand band_stack[16]; /* band stack used for sub-banding */
Int band_top; /* band stack top */
};
typedef struct black_TRaster_
{
void* memory;
} black_TRaster, *black_PRaster;
#ifdef FT_STATIC_RASTER
static black_TWorker cur_ras;
#define ras cur_ras
#else /* !FT_STATIC_RASTER */
#define ras (*worker)
#endif /* !FT_STATIC_RASTER */
/*************************************************************************/
/*************************************************************************/
/** **/
/** PROFILES COMPUTATION **/
/** **/
/*************************************************************************/
/*************************************************************************/
/**************************************************************************
*
* @Function:
* Set_High_Precision
*
* @Description:
* Set precision variables according to param flag.
*
* @Input:
* High ::
* Set to True for high precision (typically for ppem < 24),
* false otherwise.
*/
static void
Set_High_Precision( RAS_ARGS Int High )
{
/*
* `precision_step' is used in `Bezier_Up' to decide when to split a
* given y-monotonous Bezier arc that crosses a scanline before
* approximating it as a straight segment. The default value of 32 (for
* low accuracy) corresponds to
*
* 32 / 64 == 0.5 pixels,
*
* while for the high accuracy case we have
*
* 256 / (1 << 12) = 0.0625 pixels.
*
* `precision_jitter' is an epsilon threshold used in
* `Vertical_Sweep_Span' to deal with small imperfections in the Bezier
* decomposition (after all, we are working with approximations only);
* it avoids switching on additional pixels which would cause artifacts
* otherwise.
*
* The value of `precision_jitter' has been determined heuristically.
*
*/
if ( High )
{
ras.precision_bits = 12;
ras.precision_step = 256;
ras.precision_jitter = 30;
}
else
{
ras.precision_bits = 6;
ras.precision_step = 32;
ras.precision_jitter = 2;
}
FT_TRACE6(( "Set_High_Precision(%s)\n", High ? "true" : "false" ));
ras.precision = 1 << ras.precision_bits;
ras.precision_half = ras.precision >> 1;
ras.precision_scale = ras.precision >> Pixel_Bits;
}
/**************************************************************************
*
* @Function:
* New_Profile
*
* @Description:
* Create a new profile in the render pool.
*
* @Input:
* aState ::
* The state/orientation of the new profile.
*
* overshoot ::
* Whether the profile's unrounded start position
* differs by at least a half pixel.
*
* @Return:
* SUCCESS on success. FAILURE in case of overflow or of incoherent
* profile.
*/
static Bool
New_Profile( RAS_ARGS TStates aState,
Bool overshoot )
{
if ( !ras.fProfile )
{
ras.cProfile = (PProfile)ras.top;
ras.fProfile = ras.cProfile;
ras.top += AlignProfileSize;
}
if ( ras.top >= ras.maxBuff )
{
ras.error = FT_THROW( Overflow );
return FAILURE;
}
ras.cProfile->flags = 0;
ras.cProfile->start = 0;
ras.cProfile->height = 0;
ras.cProfile->offset = ras.top;
ras.cProfile->link = (PProfile)0;
ras.cProfile->next = (PProfile)0;
ras.cProfile->flags = ras.dropOutControl;
switch ( aState )
{
case Ascending_State:
ras.cProfile->flags |= Flow_Up;
if ( overshoot )
ras.cProfile->flags |= Overshoot_Bottom;
FT_TRACE6(( " new ascending profile = %p\n", ras.cProfile ));
break;
case Descending_State:
if ( overshoot )
ras.cProfile->flags |= Overshoot_Top;
FT_TRACE6(( " new descending profile = %p\n", ras.cProfile ));
break;
default:
FT_ERROR(( "New_Profile: invalid profile direction\n" ));
ras.error = FT_THROW( Invalid );
return FAILURE;
}
if ( !ras.gProfile )
ras.gProfile = ras.cProfile;
ras.state = aState;
ras.fresh = TRUE;
ras.joint = FALSE;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* End_Profile
*
* @Description:
* Finalize the current profile.
*
* @Input:
* overshoot ::
* Whether the profile's unrounded end position differs
* by at least a half pixel.
*
* @Return:
* SUCCESS on success. FAILURE in case of overflow or incoherency.
*/
static Bool
End_Profile( RAS_ARGS Bool overshoot )
{
Long h;
h = (Long)( ras.top - ras.cProfile->offset );
if ( h < 0 )
{
FT_ERROR(( "End_Profile: negative height encountered\n" ));
ras.error = FT_THROW( Neg_Height );
return FAILURE;
}
if ( h > 0 )
{
PProfile oldProfile;
FT_TRACE6(( " ending profile %p, start = %ld, height = %ld\n",
ras.cProfile, ras.cProfile->start, h ));
ras.cProfile->height = h;
if ( overshoot )
{
if ( ras.cProfile->flags & Flow_Up )
ras.cProfile->flags |= Overshoot_Top;
else
ras.cProfile->flags |= Overshoot_Bottom;
}
oldProfile = ras.cProfile;
ras.cProfile = (PProfile)ras.top;
ras.top += AlignProfileSize;
ras.cProfile->height = 0;
ras.cProfile->offset = ras.top;
oldProfile->next = ras.cProfile;
ras.num_Profs++;
}
if ( ras.top >= ras.maxBuff )
{
FT_TRACE1(( "overflow in End_Profile\n" ));
ras.error = FT_THROW( Overflow );
return FAILURE;
}
ras.joint = FALSE;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Insert_Y_Turn
*
* @Description:
* Insert a salient into the sorted list placed on top of the render
* pool.
*
* @Input:
* New y scanline position.
*
* @Return:
* SUCCESS on success. FAILURE in case of overflow.
*/
static Bool
Insert_Y_Turn( RAS_ARGS Int y )
{
PLong y_turns;
Int n;
n = ras.numTurns - 1;
y_turns = ras.sizeBuff - ras.numTurns;
/* look for first y value that is <= */
while ( n >= 0 && y < y_turns[n] )
n--;
/* if it is <, simply insert it, ignore if == */
if ( n >= 0 && y > y_turns[n] )
do
{
Int y2 = (Int)y_turns[n];
y_turns[n] = y;
y = y2;
} while ( --n >= 0 );
if ( n < 0 )
{
ras.maxBuff--;
if ( ras.maxBuff <= ras.top )
{
ras.error = FT_THROW( Overflow );
return FAILURE;
}
ras.numTurns++;
ras.sizeBuff[-ras.numTurns] = y;
}
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Finalize_Profile_Table
*
* @Description:
* Adjust all links in the profiles list.
*
* @Return:
* SUCCESS on success. FAILURE in case of overflow.
*/
static Bool
Finalize_Profile_Table( RAS_ARG )
{
UShort n;
PProfile p;
n = ras.num_Profs;
p = ras.fProfile;
if ( n > 1 && p )
{
do
{
Int bottom, top;
if ( n > 1 )
p->link = (PProfile)( p->offset + p->height );
else
p->link = NULL;
if ( p->flags & Flow_Up )
{
bottom = (Int)p->start;
top = (Int)( p->start + p->height - 1 );
}
else
{
bottom = (Int)( p->start - p->height + 1 );
top = (Int)p->start;
p->start = bottom;
p->offset += p->height - 1;
}
if ( Insert_Y_Turn( RAS_VARS bottom ) ||
Insert_Y_Turn( RAS_VARS top + 1 ) )
return FAILURE;
p = p->link;
} while ( --n );
}
else
ras.fProfile = NULL;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Split_Conic
*
* @Description:
* Subdivide one conic Bezier into two joint sub-arcs in the Bezier
* stack.
*
* @Input:
* None (subdivided Bezier is taken from the top of the stack).
*
* @Note:
* This routine is the `beef' of this component. It is _the_ inner
* loop that should be optimized to hell to get the best performance.
*/
static void
Split_Conic( TPoint* base )
{
Long a, b;
base[4].x = base[2].x;
b = base[1].x;
a = base[3].x = ( base[2].x + b ) / 2;
b = base[1].x = ( base[0].x + b ) / 2;
base[2].x = ( a + b ) / 2;
base[4].y = base[2].y;
b = base[1].y;
a = base[3].y = ( base[2].y + b ) / 2;
b = base[1].y = ( base[0].y + b ) / 2;
base[2].y = ( a + b ) / 2;
/* hand optimized. gcc doesn't seem to be too good at common */
/* expression substitution and instruction scheduling ;-) */
}
/**************************************************************************
*
* @Function:
* Split_Cubic
*
* @Description:
* Subdivide a third-order Bezier arc into two joint sub-arcs in the
* Bezier stack.
*
* @Note:
* This routine is the `beef' of the component. It is one of _the_
* inner loops that should be optimized like hell to get the best
* performance.
*/
static void
Split_Cubic( TPoint* base )
{
Long a, b, c, d;
base[6].x = base[3].x;
c = base[1].x;
d = base[2].x;
base[1].x = a = ( base[0].x + c + 1 ) >> 1;
base[5].x = b = ( base[3].x + d + 1 ) >> 1;
c = ( c + d + 1 ) >> 1;
base[2].x = a = ( a + c + 1 ) >> 1;
base[4].x = b = ( b + c + 1 ) >> 1;
base[3].x = ( a + b + 1 ) >> 1;
base[6].y = base[3].y;
c = base[1].y;
d = base[2].y;
base[1].y = a = ( base[0].y + c + 1 ) >> 1;
base[5].y = b = ( base[3].y + d + 1 ) >> 1;
c = ( c + d + 1 ) >> 1;
base[2].y = a = ( a + c + 1 ) >> 1;
base[4].y = b = ( b + c + 1 ) >> 1;
base[3].y = ( a + b + 1 ) >> 1;
}
/**************************************************************************
*
* @Function:
* Line_Up
*
* @Description:
* Compute the x-coordinates of an ascending line segment and store
* them in the render pool.
*
* @Input:
* x1 ::
* The x-coordinate of the segment's start point.
*
* y1 ::
* The y-coordinate of the segment's start point.
*
* x2 ::
* The x-coordinate of the segment's end point.
*
* y2 ::
* The y-coordinate of the segment's end point.
*
* miny ::
* A lower vertical clipping bound value.
*
* maxy ::
* An upper vertical clipping bound value.
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow.
*/
static Bool
Line_Up( RAS_ARGS Long x1,
Long y1,
Long x2,
Long y2,
Long miny,
Long maxy )
{
Long Dx, Dy;
Int e1, e2, f1, f2, size; /* XXX: is `Short' sufficient? */
Long Ix, Rx, Ax;
PLong top;
Dx = x2 - x1;
Dy = y2 - y1;
if ( Dy <= 0 || y2 < miny || y1 > maxy )
return SUCCESS;
if ( y1 < miny )
{
/* Take care: miny-y1 can be a very large value; we use */
/* a slow MulDiv function to avoid clipping bugs */
x1 += SMulDiv( Dx, miny - y1, Dy );
e1 = (Int)TRUNC( miny );
f1 = 0;
}
else
{
e1 = (Int)TRUNC( y1 );
f1 = (Int)FRAC( y1 );
}
if ( y2 > maxy )
{
/* x2 += FMulDiv( Dx, maxy - y2, Dy ); UNNECESSARY */
e2 = (Int)TRUNC( maxy );
f2 = 0;
}
else
{
e2 = (Int)TRUNC( y2 );
f2 = (Int)FRAC( y2 );
}
if ( f1 > 0 )
{
if ( e1 == e2 )
return SUCCESS;
else
{
x1 += SMulDiv( Dx, ras.precision - f1, Dy );
e1 += 1;
}
}
else
if ( ras.joint )
{
ras.top--;
ras.joint = FALSE;
}
ras.joint = (char)( f2 == 0 );
if ( ras.fresh )
{
ras.cProfile->start = e1;
ras.fresh = FALSE;
}
size = e2 - e1 + 1;
if ( ras.top + size >= ras.maxBuff )
{
ras.error = FT_THROW( Overflow );
return FAILURE;
}
if ( Dx > 0 )
{
Ix = SMulDiv_No_Round( ras.precision, Dx, Dy );
Rx = ( ras.precision * Dx ) % Dy;
Dx = 1;
}
else
{
Ix = -SMulDiv_No_Round( ras.precision, -Dx, Dy );
Rx = ( ras.precision * -Dx ) % Dy;
Dx = -1;
}
Ax = -Dy;
top = ras.top;
while ( size > 0 )
{
*top++ = x1;
x1 += Ix;
Ax += Rx;
if ( Ax >= 0 )
{
Ax -= Dy;
x1 += Dx;
}
size--;
}
ras.top = top;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Line_Down
*
* @Description:
* Compute the x-coordinates of an descending line segment and store
* them in the render pool.
*
* @Input:
* x1 ::
* The x-coordinate of the segment's start point.
*
* y1 ::
* The y-coordinate of the segment's start point.
*
* x2 ::
* The x-coordinate of the segment's end point.
*
* y2 ::
* The y-coordinate of the segment's end point.
*
* miny ::
* A lower vertical clipping bound value.
*
* maxy ::
* An upper vertical clipping bound value.
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow.
*/
static Bool
Line_Down( RAS_ARGS Long x1,
Long y1,
Long x2,
Long y2,
Long miny,
Long maxy )
{
Bool result, fresh;
fresh = ras.fresh;
result = Line_Up( RAS_VARS x1, -y1, x2, -y2, -maxy, -miny );
if ( fresh && !ras.fresh )
ras.cProfile->start = -ras.cProfile->start;
return result;
}
/* A function type describing the functions used to split Bezier arcs */
typedef void (*TSplitter)( TPoint* base );
/**************************************************************************
*
* @Function:
* Bezier_Up
*
* @Description:
* Compute the x-coordinates of an ascending Bezier arc and store
* them in the render pool.
*
* @Input:
* degree ::
* The degree of the Bezier arc (either 2 or 3).
*
* splitter ::
* The function to split Bezier arcs.
*
* miny ::
* A lower vertical clipping bound value.
*
* maxy ::
* An upper vertical clipping bound value.
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow.
*/
static Bool
Bezier_Up( RAS_ARGS Int degree,
TSplitter splitter,
Long miny,
Long maxy )
{
Long y1, y2, e, e2, e0;
Short f1;
TPoint* arc;
TPoint* start_arc;
PLong top;
arc = ras.arc;
y1 = arc[degree].y;
y2 = arc[0].y;
top = ras.top;
if ( y2 < miny || y1 > maxy )
goto Fin;
e2 = FLOOR( y2 );
if ( e2 > maxy )
e2 = maxy;
e0 = miny;
if ( y1 < miny )
e = miny;
else
{
e = CEILING( y1 );
f1 = (Short)( FRAC( y1 ) );
e0 = e;
if ( f1 == 0 )
{
if ( ras.joint )
{
top--;
ras.joint = FALSE;
}
*top++ = arc[degree].x;
e += ras.precision;
}
}
if ( ras.fresh )
{
ras.cProfile->start = TRUNC( e0 );
ras.fresh = FALSE;
}
if ( e2 < e )
goto Fin;
if ( ( top + TRUNC( e2 - e ) + 1 ) >= ras.maxBuff )
{
ras.top = top;
ras.error = FT_THROW( Overflow );
return FAILURE;
}
start_arc = arc;
do
{
ras.joint = FALSE;
y2 = arc[0].y;
if ( y2 > e )
{
y1 = arc[degree].y;
if ( y2 - y1 >= ras.precision_step )
{
splitter( arc );
arc += degree;
}
else
{
*top++ = arc[degree].x + FMulDiv( arc[0].x - arc[degree].x,
e - y1, y2 - y1 );
arc -= degree;
e += ras.precision;
}
}
else
{
if ( y2 == e )
{
ras.joint = TRUE;
*top++ = arc[0].x;
e += ras.precision;
}
arc -= degree;
}
} while ( arc >= start_arc && e <= e2 );
Fin:
ras.top = top;
ras.arc -= degree;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Bezier_Down
*
* @Description:
* Compute the x-coordinates of an descending Bezier arc and store
* them in the render pool.
*
* @Input:
* degree ::
* The degree of the Bezier arc (either 2 or 3).
*
* splitter ::
* The function to split Bezier arcs.
*
* miny ::
* A lower vertical clipping bound value.
*
* maxy ::
* An upper vertical clipping bound value.
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow.
*/
static Bool
Bezier_Down( RAS_ARGS Int degree,
TSplitter splitter,
Long miny,
Long maxy )
{
TPoint* arc = ras.arc;
Bool result, fresh;
arc[0].y = -arc[0].y;
arc[1].y = -arc[1].y;
arc[2].y = -arc[2].y;
if ( degree > 2 )
arc[3].y = -arc[3].y;
fresh = ras.fresh;
result = Bezier_Up( RAS_VARS degree, splitter, -maxy, -miny );
if ( fresh && !ras.fresh )
ras.cProfile->start = -ras.cProfile->start;
arc[0].y = -arc[0].y;
return result;
}
/**************************************************************************
*
* @Function:
* Line_To
*
* @Description:
* Inject a new line segment and adjust the Profiles list.
*
* @Input:
* x ::
* The x-coordinate of the segment's end point (its start point
* is stored in `lastX').
*
* y ::
* The y-coordinate of the segment's end point (its start point
* is stored in `lastY').
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow or incorrect
* profile.
*/
static Bool
Line_To( RAS_ARGS Long x,
Long y )
{
/* First, detect a change of direction */
switch ( ras.state )
{
case Unknown_State:
if ( y > ras.lastY )
{
if ( New_Profile( RAS_VARS Ascending_State,
IS_BOTTOM_OVERSHOOT( ras.lastY ) ) )
return FAILURE;
}
else
{
if ( y < ras.lastY )
if ( New_Profile( RAS_VARS Descending_State,
IS_TOP_OVERSHOOT( ras.lastY ) ) )
return FAILURE;
}
break;
case Ascending_State:
if ( y < ras.lastY )
{
if ( End_Profile( RAS_VARS IS_TOP_OVERSHOOT( ras.lastY ) ) ||
New_Profile( RAS_VARS Descending_State,
IS_TOP_OVERSHOOT( ras.lastY ) ) )
return FAILURE;
}
break;
case Descending_State:
if ( y > ras.lastY )
{
if ( End_Profile( RAS_VARS IS_BOTTOM_OVERSHOOT( ras.lastY ) ) ||
New_Profile( RAS_VARS Ascending_State,
IS_BOTTOM_OVERSHOOT( ras.lastY ) ) )
return FAILURE;
}
break;
default:
;
}
/* Then compute the lines */
switch ( ras.state )
{
case Ascending_State:
if ( Line_Up( RAS_VARS ras.lastX, ras.lastY,
x, y, ras.minY, ras.maxY ) )
return FAILURE;
break;
case Descending_State:
if ( Line_Down( RAS_VARS ras.lastX, ras.lastY,
x, y, ras.minY, ras.maxY ) )
return FAILURE;
break;
default:
;
}
ras.lastX = x;
ras.lastY = y;
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Conic_To
*
* @Description:
* Inject a new conic arc and adjust the profile list.
*
* @Input:
* cx ::
* The x-coordinate of the arc's new control point.
*
* cy ::
* The y-coordinate of the arc's new control point.
*
* x ::
* The x-coordinate of the arc's end point (its start point is
* stored in `lastX').
*
* y ::
* The y-coordinate of the arc's end point (its start point is
* stored in `lastY').
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow or incorrect
* profile.
*/
static Bool
Conic_To( RAS_ARGS Long cx,
Long cy,
Long x,
Long y )
{
Long y1, y2, y3, x3, ymin, ymax;
TStates state_bez;
ras.arc = ras.arcs;
ras.arc[2].x = ras.lastX;
ras.arc[2].y = ras.lastY;
ras.arc[1].x = cx;
ras.arc[1].y = cy;
ras.arc[0].x = x;
ras.arc[0].y = y;
do
{
y1 = ras.arc[2].y;
y2 = ras.arc[1].y;
y3 = ras.arc[0].y;
x3 = ras.arc[0].x;
/* first, categorize the Bezier arc */
if ( y1 <= y3 )
{
ymin = y1;
ymax = y3;
}
else
{
ymin = y3;
ymax = y1;
}
if ( y2 < ymin || y2 > ymax )
{
/* this arc has no given direction, split it! */
Split_Conic( ras.arc );
ras.arc += 2;
}
else if ( y1 == y3 )
{
/* this arc is flat, ignore it and pop it from the Bezier stack */
ras.arc -= 2;
}
else
{
/* the arc is y-monotonous, either ascending or descending */
/* detect a change of direction */
state_bez = y1 < y3 ? Ascending_State : Descending_State;
if ( ras.state != state_bez )
{
Bool o = ( state_bez == Ascending_State )
? IS_BOTTOM_OVERSHOOT( y1 )
: IS_TOP_OVERSHOOT( y1 );
/* finalize current profile if any */
if ( ras.state != Unknown_State &&
End_Profile( RAS_VARS o ) )
goto Fail;
/* create a new profile */
if ( New_Profile( RAS_VARS state_bez, o ) )
goto Fail;
}
/* now call the appropriate routine */
if ( state_bez == Ascending_State )
{
if ( Bezier_Up( RAS_VARS 2, Split_Conic, ras.minY, ras.maxY ) )
goto Fail;
}
else
if ( Bezier_Down( RAS_VARS 2, Split_Conic, ras.minY, ras.maxY ) )
goto Fail;
}
} while ( ras.arc >= ras.arcs );
ras.lastX = x3;
ras.lastY = y3;
return SUCCESS;
Fail:
return FAILURE;
}
/**************************************************************************
*
* @Function:
* Cubic_To
*
* @Description:
* Inject a new cubic arc and adjust the profile list.
*
* @Input:
* cx1 ::
* The x-coordinate of the arc's first new control point.
*
* cy1 ::
* The y-coordinate of the arc's first new control point.
*
* cx2 ::
* The x-coordinate of the arc's second new control point.
*
* cy2 ::
* The y-coordinate of the arc's second new control point.
*
* x ::
* The x-coordinate of the arc's end point (its start point is
* stored in `lastX').
*
* y ::
* The y-coordinate of the arc's end point (its start point is
* stored in `lastY').
*
* @Return:
* SUCCESS on success, FAILURE on render pool overflow or incorrect
* profile.
*/
static Bool
Cubic_To( RAS_ARGS Long cx1,
Long cy1,
Long cx2,
Long cy2,
Long x,
Long y )
{
Long y1, y2, y3, y4, x4, ymin1, ymax1, ymin2, ymax2;
TStates state_bez;
ras.arc = ras.arcs;
ras.arc[3].x = ras.lastX;
ras.arc[3].y = ras.lastY;
ras.arc[2].x = cx1;
ras.arc[2].y = cy1;
ras.arc[1].x = cx2;
ras.arc[1].y = cy2;
ras.arc[0].x = x;
ras.arc[0].y = y;
do
{
y1 = ras.arc[3].y;
y2 = ras.arc[2].y;
y3 = ras.arc[1].y;
y4 = ras.arc[0].y;
x4 = ras.arc[0].x;
/* first, categorize the Bezier arc */
if ( y1 <= y4 )
{
ymin1 = y1;
ymax1 = y4;
}
else
{
ymin1 = y4;
ymax1 = y1;
}
if ( y2 <= y3 )
{
ymin2 = y2;
ymax2 = y3;
}
else
{
ymin2 = y3;
ymax2 = y2;
}
if ( ymin2 < ymin1 || ymax2 > ymax1 )
{
/* this arc has no given direction, split it! */
Split_Cubic( ras.arc );
ras.arc += 3;
}
else if ( y1 == y4 )
{
/* this arc is flat, ignore it and pop it from the Bezier stack */
ras.arc -= 3;
}
else
{
state_bez = ( y1 <= y4 ) ? Ascending_State : Descending_State;
/* detect a change of direction */
if ( ras.state != state_bez )
{
Bool o = ( state_bez == Ascending_State )
? IS_BOTTOM_OVERSHOOT( y1 )
: IS_TOP_OVERSHOOT( y1 );
/* finalize current profile if any */
if ( ras.state != Unknown_State &&
End_Profile( RAS_VARS o ) )
goto Fail;
if ( New_Profile( RAS_VARS state_bez, o ) )
goto Fail;
}
/* compute intersections */
if ( state_bez == Ascending_State )
{
if ( Bezier_Up( RAS_VARS 3, Split_Cubic, ras.minY, ras.maxY ) )
goto Fail;
}
else
if ( Bezier_Down( RAS_VARS 3, Split_Cubic, ras.minY, ras.maxY ) )
goto Fail;
}
} while ( ras.arc >= ras.arcs );
ras.lastX = x4;
ras.lastY = y4;
return SUCCESS;
Fail:
return FAILURE;
}
#undef SWAP_
#define SWAP_( x, y ) do \
{ \
Long swap = x; \
\
\
x = y; \
y = swap; \
} while ( 0 )
/**************************************************************************
*
* @Function:
* Decompose_Curve
*
* @Description:
* Scan the outline arrays in order to emit individual segments and
* Beziers by calling Line_To() and Bezier_To(). It handles all
* weird cases, like when the first point is off the curve, or when
* there are simply no `on' points in the contour!
*
* @Input:
* first ::
* The index of the first point in the contour.
*
* last ::
* The index of the last point in the contour.
*
* flipped ::
* If set, flip the direction of the curve.
*
* @Return:
* SUCCESS on success, FAILURE on error.
*/
static Bool
Decompose_Curve( RAS_ARGS UShort first,
UShort last,
Int flipped )
{
FT_Vector v_last;
FT_Vector v_control;
FT_Vector v_start;
FT_Vector* points;
FT_Vector* point;
FT_Vector* limit;
char* tags;
UInt tag; /* current point's state */
points = ras.outline.points;
limit = points + last;
v_start.x = SCALED( points[first].x );
v_start.y = SCALED( points[first].y );
v_last.x = SCALED( points[last].x );
v_last.y = SCALED( points[last].y );
if ( flipped )
{
SWAP_( v_start.x, v_start.y );
SWAP_( v_last.x, v_last.y );
}
v_control = v_start;
point = points + first;
tags = ras.outline.tags + first;
/* set scan mode if necessary */
if ( tags[0] & FT_CURVE_TAG_HAS_SCANMODE )
ras.dropOutControl = (Byte)tags[0] >> 5;
tag = FT_CURVE_TAG( tags[0] );
/* A contour cannot start with a cubic control point! */
if ( tag == FT_CURVE_TAG_CUBIC )
goto Invalid_Outline;
/* check first point to determine origin */
if ( tag == FT_CURVE_TAG_CONIC )
{
/* first point is conic control. Yes, this happens. */
if ( FT_CURVE_TAG( ras.outline.tags[last] ) == FT_CURVE_TAG_ON )
{
/* start at last point if it is on the curve */
v_start = v_last;
limit--;
}
else
{
/* if both first and last points are conic, */
/* start at their middle and record its position */
/* for closure */
v_start.x = ( v_start.x + v_last.x ) / 2;
v_start.y = ( v_start.y + v_last.y ) / 2;
/* v_last = v_start; */
}
point--;
tags--;
}
ras.lastX = v_start.x;
ras.lastY = v_start.y;
while ( point < limit )
{
point++;
tags++;
tag = FT_CURVE_TAG( tags[0] );
switch ( tag )
{
case FT_CURVE_TAG_ON: /* emit a single line_to */
{
Long x, y;
x = SCALED( point->x );
y = SCALED( point->y );
if ( flipped )
SWAP_( x, y );
if ( Line_To( RAS_VARS x, y ) )
goto Fail;
continue;
}
case FT_CURVE_TAG_CONIC: /* consume conic arcs */
v_control.x = SCALED( point[0].x );
v_control.y = SCALED( point[0].y );
if ( flipped )
SWAP_( v_control.x, v_control.y );
Do_Conic:
if ( point < limit )
{
FT_Vector v_middle;
Long x, y;
point++;
tags++;
tag = FT_CURVE_TAG( tags[0] );
x = SCALED( point[0].x );
y = SCALED( point[0].y );
if ( flipped )
SWAP_( x, y );
if ( tag == FT_CURVE_TAG_ON )
{
if ( Conic_To( RAS_VARS v_control.x, v_control.y, x, y ) )
goto Fail;
continue;
}
if ( tag != FT_CURVE_TAG_CONIC )
goto Invalid_Outline;
v_middle.x = ( v_control.x + x ) / 2;
v_middle.y = ( v_control.y + y ) / 2;
if ( Conic_To( RAS_VARS v_control.x, v_control.y,
v_middle.x, v_middle.y ) )
goto Fail;
v_control.x = x;
v_control.y = y;
goto Do_Conic;
}
if ( Conic_To( RAS_VARS v_control.x, v_control.y,
v_start.x, v_start.y ) )
goto Fail;
goto Close;
default: /* FT_CURVE_TAG_CUBIC */
{
Long x1, y1, x2, y2, x3, y3;
if ( point + 1 > limit ||
FT_CURVE_TAG( tags[1] ) != FT_CURVE_TAG_CUBIC )
goto Invalid_Outline;
point += 2;
tags += 2;
x1 = SCALED( point[-2].x );
y1 = SCALED( point[-2].y );
x2 = SCALED( point[-1].x );
y2 = SCALED( point[-1].y );
if ( flipped )
{
SWAP_( x1, y1 );
SWAP_( x2, y2 );
}
if ( point <= limit )
{
x3 = SCALED( point[0].x );
y3 = SCALED( point[0].y );
if ( flipped )
SWAP_( x3, y3 );
if ( Cubic_To( RAS_VARS x1, y1, x2, y2, x3, y3 ) )
goto Fail;
continue;
}
if ( Cubic_To( RAS_VARS x1, y1, x2, y2, v_start.x, v_start.y ) )
goto Fail;
goto Close;
}
}
}
/* close the contour with a line segment */
if ( Line_To( RAS_VARS v_start.x, v_start.y ) )
goto Fail;
Close:
return SUCCESS;
Invalid_Outline:
ras.error = FT_THROW( Invalid );
Fail:
return FAILURE;
}
/**************************************************************************
*
* @Function:
* Convert_Glyph
*
* @Description:
* Convert a glyph into a series of segments and arcs and make a
* profiles list with them.
*
* @Input:
* flipped ::
* If set, flip the direction of curve.
*
* @Return:
* SUCCESS on success, FAILURE if any error was encountered during
* rendering.
*/
static Bool
Convert_Glyph( RAS_ARGS Int flipped )
{
Int i;
UInt start;
ras.fProfile = NULL;
ras.joint = FALSE;
ras.fresh = FALSE;
ras.maxBuff = ras.sizeBuff - AlignProfileSize;
ras.numTurns = 0;
ras.cProfile = (PProfile)ras.top;
ras.cProfile->offset = ras.top;
ras.num_Profs = 0;
start = 0;
for ( i = 0; i < ras.outline.n_contours; i++ )
{
PProfile lastProfile;
Bool o;
ras.state = Unknown_State;
ras.gProfile = NULL;
if ( Decompose_Curve( RAS_VARS (UShort)start,
(UShort)ras.outline.contours[i],
flipped ) )
return FAILURE;
start = (UShort)ras.outline.contours[i] + 1;
/* we must now check whether the extreme arcs join or not */
if ( FRAC( ras.lastY ) == 0 &&
ras.lastY >= ras.minY &&
ras.lastY <= ras.maxY )
if ( ras.gProfile &&
( ras.gProfile->flags & Flow_Up ) ==
( ras.cProfile->flags & Flow_Up ) )
ras.top--;
/* Note that ras.gProfile can be nil if the contour was too small */
/* to be drawn. */
lastProfile = ras.cProfile;
if ( ras.top != ras.cProfile->offset &&
( ras.cProfile->flags & Flow_Up ) )
o = IS_TOP_OVERSHOOT( ras.lastY );
else
o = IS_BOTTOM_OVERSHOOT( ras.lastY );
if ( End_Profile( RAS_VARS o ) )
return FAILURE;
/* close the `next profile in contour' linked list */
if ( ras.gProfile )
lastProfile->next = ras.gProfile;
}
if ( Finalize_Profile_Table( RAS_VAR ) )
return FAILURE;
return (Bool)( ras.top < ras.maxBuff ? SUCCESS : FAILURE );
}
/*************************************************************************/
/*************************************************************************/
/** **/
/** SCAN-LINE SWEEPS AND DRAWING **/
/** **/
/*************************************************************************/
/*************************************************************************/
/**************************************************************************
*
* Init_Linked
*
* Initializes an empty linked list.
*/
static void
Init_Linked( TProfileList* l )
{
*l = NULL;
}
/**************************************************************************
*
* InsNew
*
* Inserts a new profile in a linked list.
*/
static void
InsNew( PProfileList list,
PProfile profile )
{
PProfile *old, current;
Long x;
old = list;
current = *old;
x = profile->X;
while ( current )
{
if ( x < current->X )
break;
old = ¤t->link;
current = *old;
}
profile->link = current;
*old = profile;
}
/**************************************************************************
*
* DelOld
*
* Removes an old profile from a linked list.
*/
static void
DelOld( PProfileList list,
PProfile profile )
{
PProfile *old, current;
old = list;
current = *old;
while ( current )
{
if ( current == profile )
{
*old = current->link;
return;
}
old = ¤t->link;
current = *old;
}
/* we should never get there, unless the profile was not part of */
/* the list. */
}
/**************************************************************************
*
* Sort
*
* Sorts a trace list. In 95%, the list is already sorted. We need
* an algorithm which is fast in this case. Bubble sort is enough
* and simple.
*/
static void
Sort( PProfileList list )
{
PProfile *old, current, next;
/* First, set the new X coordinate of each profile */
current = *list;
while ( current )
{
current->X = *current->offset;
current->offset += ( current->flags & Flow_Up ) ? 1 : -1;
current->height--;
current = current->link;
}
/* Then sort them */
old = list;
current = *old;
if ( !current )
return;
next = current->link;
while ( next )
{
if ( current->X <= next->X )
{
old = ¤t->link;
current = *old;
if ( !current )
return;
}
else
{
*old = next;
current->link = next->link;
next->link = current;
old = list;
current = *old;
}
next = current->link;
}
}
/**************************************************************************
*
* Vertical Sweep Procedure Set
*
* These four routines are used during the vertical black/white sweep
* phase by the generic Draw_Sweep() function.
*
*/
static void
Vertical_Sweep_Init( RAS_ARGS Short* min,
Short* max )
{
Long pitch = ras.target.pitch;
FT_UNUSED( max );
ras.traceIncr = (Short)-pitch;
ras.traceOfs = -*min * pitch;
}
static void
Vertical_Sweep_Span( RAS_ARGS Short y,
FT_F26Dot6 x1,
FT_F26Dot6 x2,
PProfile left,
PProfile right )
{
Long e1, e2;
Byte* target;
Int dropOutControl = left->flags & 7;
FT_UNUSED( y );
FT_UNUSED( left );
FT_UNUSED( right );
/* in high-precision mode, we need 12 digits after the comma to */
/* represent multiples of 1/(1<<12) = 1/4096 */
FT_TRACE7(( " y=%d x=[%.12f;%.12f], drop-out=%d",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision,
dropOutControl ));
/* Drop-out control */
e1 = CEILING( x1 );
e2 = FLOOR( x2 );
/* take care of the special case where both the left */
/* and right contour lie exactly on pixel centers */
if ( dropOutControl != 2 &&
x2 - x1 - ras.precision <= ras.precision_jitter &&
e1 != x1 && e2 != x2 )
e2 = e1;
e1 = TRUNC( e1 );
e2 = TRUNC( e2 );
if ( e2 >= 0 && e1 < ras.bWidth )
{
Int c1, c2;
Byte f1, f2;
if ( e1 < 0 )
e1 = 0;
if ( e2 >= ras.bWidth )
e2 = ras.bWidth - 1;
FT_TRACE7(( " -> x=[%d;%d]", e1, e2 ));
c1 = (Short)( e1 >> 3 );
c2 = (Short)( e2 >> 3 );
f1 = (Byte) ( 0xFF >> ( e1 & 7 ) );
f2 = (Byte) ~( 0x7F >> ( e2 & 7 ) );
target = ras.bOrigin + ras.traceOfs + c1;
c2 -= c1;
if ( c2 > 0 )
{
target[0] |= f1;
/* memset() is slower than the following code on many platforms. */
/* This is due to the fact that, in the vast majority of cases, */
/* the span length in bytes is relatively small. */
while ( --c2 > 0 )
*(++target) = 0xFF;
target[1] |= f2;
}
else
*target |= ( f1 & f2 );
}
FT_TRACE7(( "\n" ));
}
static void
Vertical_Sweep_Drop( RAS_ARGS Short y,
FT_F26Dot6 x1,
FT_F26Dot6 x2,
PProfile left,
PProfile right )
{
Long e1, e2, pxl;
Short c1, f1;
FT_TRACE7(( " y=%d x=[%.12f;%.12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
/* Drop-out control */
/* e2 x2 x1 e1 */
/* */
/* ^ | */
/* | | */
/* +-------------+---------------------+------------+ */
/* | | */
/* | v */
/* */
/* pixel contour contour pixel */
/* center center */
/* drop-out mode scan conversion rules (as defined in OpenType) */
/* --------------------------------------------------------------- */
/* 0 1, 2, 3 */
/* 1 1, 2, 4 */
/* 2 1, 2 */
/* 3 same as mode 2 */
/* 4 1, 2, 5 */
/* 5 1, 2, 6 */
/* 6, 7 same as mode 2 */
e1 = CEILING( x1 );
e2 = FLOOR ( x2 );
pxl = e1;
if ( e1 > e2 )
{
Int dropOutControl = left->flags & 7;
FT_TRACE7(( ", drop-out=%d", dropOutControl ));
if ( e1 == e2 + ras.precision )
{
switch ( dropOutControl )
{
case 0: /* simple drop-outs including stubs */
pxl = e2;
break;
case 4: /* smart drop-outs including stubs */
pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half );
break;
case 1: /* simple drop-outs excluding stubs */
case 5: /* smart drop-outs excluding stubs */
/* Drop-out Control Rules #4 and #6 */
/* The specification neither provides an exact definition */
/* of a `stub' nor gives exact rules to exclude them. */
/* */
/* Here the constraints we use to recognize a stub. */
/* */
/* upper stub: */
/* */
/* - P_Left and P_Right are in the same contour */
/* - P_Right is the successor of P_Left in that contour */
/* - y is the top of P_Left and P_Right */
/* */
/* lower stub: */
/* */
/* - P_Left and P_Right are in the same contour */
/* - P_Left is the successor of P_Right in that contour */
/* - y is the bottom of P_Left */
/* */
/* We draw a stub if the following constraints are met. */
/* */
/* - for an upper or lower stub, there is top or bottom */
/* overshoot, respectively */
/* - the covered interval is greater or equal to a half */
/* pixel */
/* upper stub test */
if ( left->next == right &&
left->height <= 0 &&
!( left->flags & Overshoot_Top &&
x2 - x1 >= ras.precision_half ) )
goto Exit;
/* lower stub test */
if ( right->next == left &&
left->start == y &&
!( left->flags & Overshoot_Bottom &&
x2 - x1 >= ras.precision_half ) )
goto Exit;
if ( dropOutControl == 1 )
pxl = e2;
else
pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half );
break;
default: /* modes 2, 3, 6, 7 */
goto Exit; /* no drop-out control */
}
/* undocumented but confirmed: If the drop-out would result in a */
/* pixel outside of the bounding box, use the pixel inside of the */
/* bounding box instead */
if ( pxl < 0 )
pxl = e1;
else if ( TRUNC( pxl ) >= ras.bWidth )
pxl = e2;
/* check that the other pixel isn't set */
e1 = ( pxl == e1 ) ? e2 : e1;
e1 = TRUNC( e1 );
c1 = (Short)( e1 >> 3 );
f1 = (Short)( e1 & 7 );
if ( e1 >= 0 && e1 < ras.bWidth &&
ras.bOrigin[ras.traceOfs + c1] & ( 0x80 >> f1 ) )
goto Exit;
}
else
goto Exit;
}
e1 = TRUNC( pxl );
if ( e1 >= 0 && e1 < ras.bWidth )
{
FT_TRACE7(( " -> x=%d (drop-out)", e1 ));
c1 = (Short)( e1 >> 3 );
f1 = (Short)( e1 & 7 );
ras.bOrigin[ras.traceOfs + c1] |= (char)( 0x80 >> f1 );
}
Exit:
FT_TRACE7(( "\n" ));
}
static void
Vertical_Sweep_Step( RAS_ARG )
{
ras.traceOfs += ras.traceIncr;
}
/************************************************************************
*
* Horizontal Sweep Procedure Set
*
* These four routines are used during the horizontal black/white
* sweep phase by the generic Draw_Sweep() function.
*
*/
static void
Horizontal_Sweep_Init( RAS_ARGS Short* min,
Short* max )
{
/* nothing, really */
FT_UNUSED_RASTER;
FT_UNUSED( min );
FT_UNUSED( max );
}
static void
Horizontal_Sweep_Span( RAS_ARGS Short y,
FT_F26Dot6 x1,
FT_F26Dot6 x2,
PProfile left,
PProfile right )
{
FT_UNUSED( left );
FT_UNUSED( right );
if ( x2 - x1 < ras.precision )
{
Long e1, e2;
FT_TRACE7(( " x=%d y=[%.12f;%.12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
e1 = CEILING( x1 );
e2 = FLOOR ( x2 );
if ( e1 == e2 )
{
e1 = TRUNC( e1 );
if ( e1 >= 0 && (ULong)e1 < ras.target.rows )
{
Byte f1;
PByte bits;
FT_TRACE7(( " -> y=%d (drop-out)", e1 ));
bits = ras.bOrigin + ( y >> 3 ) - e1 * ras.target.pitch;
f1 = (Byte)( 0x80 >> ( y & 7 ) );
bits[0] |= f1;
}
}
FT_TRACE7(( "\n" ));
}
}
static void
Horizontal_Sweep_Drop( RAS_ARGS Short y,
FT_F26Dot6 x1,
FT_F26Dot6 x2,
PProfile left,
PProfile right )
{
Long e1, e2, pxl;
PByte bits;
Byte f1;
FT_TRACE7(( " x=%d y=[%.12f;%.12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
/* During the horizontal sweep, we only take care of drop-outs */
/* e1 + <-- pixel center */
/* | */
/* x1 ---+--> <-- contour */
/* | */
/* | */
/* x2 <--+--- <-- contour */
/* | */
/* | */
/* e2 + <-- pixel center */
e1 = CEILING( x1 );
e2 = FLOOR ( x2 );
pxl = e1;
if ( e1 > e2 )
{
Int dropOutControl = left->flags & 7;
FT_TRACE7(( ", dropout=%d", dropOutControl ));
if ( e1 == e2 + ras.precision )
{
switch ( dropOutControl )
{
case 0: /* simple drop-outs including stubs */
pxl = e2;
break;
case 4: /* smart drop-outs including stubs */
pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half );
break;
case 1: /* simple drop-outs excluding stubs */
case 5: /* smart drop-outs excluding stubs */
/* see Vertical_Sweep_Drop for details */
/* rightmost stub test */
if ( left->next == right &&
left->height <= 0 &&
!( left->flags & Overshoot_Top &&
x2 - x1 >= ras.precision_half ) )
goto Exit;
/* leftmost stub test */
if ( right->next == left &&
left->start == y &&
!( left->flags & Overshoot_Bottom &&
x2 - x1 >= ras.precision_half ) )
goto Exit;
if ( dropOutControl == 1 )
pxl = e2;
else
pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half );
break;
default: /* modes 2, 3, 6, 7 */
goto Exit; /* no drop-out control */
}
/* undocumented but confirmed: If the drop-out would result in a */
/* pixel outside of the bounding box, use the pixel inside of the */
/* bounding box instead */
if ( pxl < 0 )
pxl = e1;
else if ( (ULong)( TRUNC( pxl ) ) >= ras.target.rows )
pxl = e2;
/* check that the other pixel isn't set */
e1 = ( pxl == e1 ) ? e2 : e1;
e1 = TRUNC( e1 );
bits = ras.bOrigin + ( y >> 3 ) - e1 * ras.target.pitch;
f1 = (Byte)( 0x80 >> ( y & 7 ) );
if ( e1 >= 0 &&
(ULong)e1 < ras.target.rows &&
*bits & f1 )
goto Exit;
}
else
goto Exit;
}
e1 = TRUNC( pxl );
if ( e1 >= 0 && (ULong)e1 < ras.target.rows )
{
FT_TRACE7(( " -> y=%d (drop-out)", e1 ));
bits = ras.bOrigin + ( y >> 3 ) - e1 * ras.target.pitch;
f1 = (Byte)( 0x80 >> ( y & 7 ) );
bits[0] |= f1;
}
Exit:
FT_TRACE7(( "\n" ));
}
static void
Horizontal_Sweep_Step( RAS_ARG )
{
/* Nothing, really */
FT_UNUSED_RASTER;
}
/**************************************************************************
*
* Generic Sweep Drawing routine
*
*/
static Bool
Draw_Sweep( RAS_ARG )
{
Short y, y_change, y_height;
PProfile P, Q, P_Left, P_Right;
Short min_Y, max_Y, top, bottom, dropouts;
Long x1, x2, xs, e1, e2;
TProfileList waiting;
TProfileList draw_left, draw_right;
/* initialize empty linked lists */
Init_Linked( &waiting );
Init_Linked( &draw_left );
Init_Linked( &draw_right );
/* first, compute min and max Y */
P = ras.fProfile;
max_Y = (Short)TRUNC( ras.minY );
min_Y = (Short)TRUNC( ras.maxY );
while ( P )
{
Q = P->link;
bottom = (Short)P->start;
top = (Short)( P->start + P->height - 1 );
if ( min_Y > bottom )
min_Y = bottom;
if ( max_Y < top )
max_Y = top;
P->X = 0;
InsNew( &waiting, P );
P = Q;
}
/* check the Y-turns */
if ( ras.numTurns == 0 )
{
ras.error = FT_THROW( Invalid );
return FAILURE;
}
/* now initialize the sweep */
ras.Proc_Sweep_Init( RAS_VARS &min_Y, &max_Y );
/* then compute the distance of each profile from min_Y */
P = waiting;
while ( P )
{
P->countL = P->start - min_Y;
P = P->link;
}
/* let's go */
y = min_Y;
y_height = 0;
if ( ras.numTurns > 0 &&
ras.sizeBuff[-ras.numTurns] == min_Y )
ras.numTurns--;
while ( ras.numTurns > 0 )
{
/* check waiting list for new activations */
P = waiting;
while ( P )
{
Q = P->link;
P->countL -= y_height;
if ( P->countL == 0 )
{
DelOld( &waiting, P );
if ( P->flags & Flow_Up )
InsNew( &draw_left, P );
else
InsNew( &draw_right, P );
}
P = Q;
}
/* sort the drawing lists */
Sort( &draw_left );
Sort( &draw_right );
y_change = (Short)ras.sizeBuff[-ras.numTurns--];
y_height = (Short)( y_change - y );
while ( y < y_change )
{
/* let's trace */
dropouts = 0;
P_Left = draw_left;
P_Right = draw_right;
while ( P_Left )
{
x1 = P_Left ->X;
x2 = P_Right->X;
if ( x1 > x2 )
{
xs = x1;
x1 = x2;
x2 = xs;
}
e1 = FLOOR( x1 );
e2 = CEILING( x2 );
if ( x2 - x1 <= ras.precision &&
e1 != x1 && e2 != x2 )
{
if ( e1 > e2 || e2 == e1 + ras.precision )
{
Int dropOutControl = P_Left->flags & 7;
if ( dropOutControl != 2 )
{
/* a drop-out was detected */
P_Left ->X = x1;
P_Right->X = x2;
/* mark profile for drop-out processing */
P_Left->countL = 1;
dropouts++;
}
goto Skip_To_Next;
}
}
ras.Proc_Sweep_Span( RAS_VARS y, x1, x2, P_Left, P_Right );
Skip_To_Next:
P_Left = P_Left->link;
P_Right = P_Right->link;
}
/* handle drop-outs _after_ the span drawing -- */
/* drop-out processing has been moved out of the loop */
/* for performance tuning */
if ( dropouts > 0 )
goto Scan_DropOuts;
Next_Line:
ras.Proc_Sweep_Step( RAS_VAR );
y++;
if ( y < y_change )
{
Sort( &draw_left );
Sort( &draw_right );
}
}
/* now finalize the profiles that need it */
P = draw_left;
while ( P )
{
Q = P->link;
if ( P->height == 0 )
DelOld( &draw_left, P );
P = Q;
}
P = draw_right;
while ( P )
{
Q = P->link;
if ( P->height == 0 )
DelOld( &draw_right, P );
P = Q;
}
}
/* for gray-scaling, flush the bitmap scanline cache */
while ( y <= max_Y )
{
ras.Proc_Sweep_Step( RAS_VAR );
y++;
}
return SUCCESS;
Scan_DropOuts:
P_Left = draw_left;
P_Right = draw_right;
while ( P_Left )
{
if ( P_Left->countL )
{
P_Left->countL = 0;
#if 0
dropouts--; /* -- this is useful when debugging only */
#endif
ras.Proc_Sweep_Drop( RAS_VARS y,
P_Left->X,
P_Right->X,
P_Left,
P_Right );
}
P_Left = P_Left->link;
P_Right = P_Right->link;
}
goto Next_Line;
}
#ifdef STANDALONE_
/**************************************************************************
*
* The following functions should only compile in stand-alone mode,
* i.e., when building this component without the rest of FreeType.
*
*/
/**************************************************************************
*
* @Function:
* FT_Outline_Get_CBox
*
* @Description:
* Return an outline's `control box'. The control box encloses all
* the outline's points, including Bzier control points. Though it
* coincides with the exact bounding box for most glyphs, it can be
* slightly larger in some situations (like when rotating an outline
* that contains Bzier outside arcs).
*
* Computing the control box is very fast, while getting the bounding
* box can take much more time as it needs to walk over all segments
* and arcs in the outline. To get the latter, you can use the
* `ftbbox' component, which is dedicated to this single task.
*
* @Input:
* outline ::
* A pointer to the source outline descriptor.
*
* @Output:
* acbox ::
* The outline's control box.
*
* @Note:
* See @FT_Glyph_Get_CBox for a discussion of tricky fonts.
*/
static void
FT_Outline_Get_CBox( const FT_Outline* outline,
FT_BBox *acbox )
{
Long xMin, yMin, xMax, yMax;
if ( outline && acbox )
{
if ( outline->n_points == 0 )
{
xMin = 0;
yMin = 0;
xMax = 0;
yMax = 0;
}
else
{
FT_Vector* vec = outline->points;
FT_Vector* limit = vec + outline->n_points;
xMin = xMax = vec->x;
yMin = yMax = vec->y;
vec++;
for ( ; vec < limit; vec++ )
{
Long x, y;
x = vec->x;
if ( x < xMin ) xMin = x;
if ( x > xMax ) xMax = x;
y = vec->y;
if ( y < yMin ) yMin = y;
if ( y > yMax ) yMax = y;
}
}
acbox->xMin = xMin;
acbox->xMax = xMax;
acbox->yMin = yMin;
acbox->yMax = yMax;
}
}
#endif /* STANDALONE_ */
/**************************************************************************
*
* @Function:
* Render_Single_Pass
*
* @Description:
* Perform one sweep with sub-banding.
*
* @Input:
* flipped ::
* If set, flip the direction of the outline.
*
* @Return:
* Renderer error code.
*/
static int
Render_Single_Pass( RAS_ARGS Bool flipped )
{
Short i, j, k;
while ( ras.band_top >= 0 )
{
ras.maxY = (Long)ras.band_stack[ras.band_top].y_max * ras.precision;
ras.minY = (Long)ras.band_stack[ras.band_top].y_min * ras.precision;
ras.top = ras.buff;
ras.error = Raster_Err_None;
if ( Convert_Glyph( RAS_VARS flipped ) )
{
if ( ras.error != Raster_Err_Overflow )
return FAILURE;
ras.error = Raster_Err_None;
/* sub-banding */
#ifdef DEBUG_RASTER
ClearBand( RAS_VARS TRUNC( ras.minY ), TRUNC( ras.maxY ) );
#endif
i = ras.band_stack[ras.band_top].y_min;
j = ras.band_stack[ras.band_top].y_max;
k = (Short)( ( i + j ) / 2 );
if ( ras.band_top >= 7 || k < i )
{
ras.band_top = 0;
ras.error = FT_THROW( Invalid );
return ras.error;
}
ras.band_stack[ras.band_top + 1].y_min = k;
ras.band_stack[ras.band_top + 1].y_max = j;
ras.band_stack[ras.band_top].y_max = (Short)( k - 1 );
ras.band_top++;
}
else
{
if ( ras.fProfile )
if ( Draw_Sweep( RAS_VAR ) )
return ras.error;
ras.band_top--;
}
}
return SUCCESS;
}
/**************************************************************************
*
* @Function:
* Render_Glyph
*
* @Description:
* Render a glyph in a bitmap. Sub-banding if needed.
*
* @Return:
* FreeType error code. 0 means success.
*/
static FT_Error
Render_Glyph( RAS_ARG )
{
FT_Error error;
Set_High_Precision( RAS_VARS ras.outline.flags &
FT_OUTLINE_HIGH_PRECISION );
if ( ras.outline.flags & FT_OUTLINE_IGNORE_DROPOUTS )
ras.dropOutControl = 2;
else
{
if ( ras.outline.flags & FT_OUTLINE_SMART_DROPOUTS )
ras.dropOutControl = 4;
else
ras.dropOutControl = 0;
if ( !( ras.outline.flags & FT_OUTLINE_INCLUDE_STUBS ) )
ras.dropOutControl += 1;
}
ras.second_pass = (Bool)( !( ras.outline.flags &
FT_OUTLINE_SINGLE_PASS ) );
/* Vertical Sweep */
FT_TRACE7(( "Vertical pass (ftraster)\n" ));
ras.Proc_Sweep_Init = Vertical_Sweep_Init;
ras.Proc_Sweep_Span = Vertical_Sweep_Span;
ras.Proc_Sweep_Drop = Vertical_Sweep_Drop;
ras.Proc_Sweep_Step = Vertical_Sweep_Step;
ras.band_top = 0;
ras.band_stack[0].y_min = 0;
ras.band_stack[0].y_max = (Short)( ras.target.rows - 1 );
ras.bWidth = (UShort)ras.target.width;
ras.bOrigin = (Byte*)ras.target.buffer;
if ( ras.target.pitch > 0 )
ras.bOrigin += (Long)( ras.target.rows - 1 ) * ras.target.pitch;
if ( ( error = Render_Single_Pass( RAS_VARS 0 ) ) != 0 )
return error;
/* Horizontal Sweep */
if ( ras.second_pass && ras.dropOutControl != 2 )
{
FT_TRACE7(( "Horizontal pass (ftraster)\n" ));
ras.Proc_Sweep_Init = Horizontal_Sweep_Init;
ras.Proc_Sweep_Span = Horizontal_Sweep_Span;
ras.Proc_Sweep_Drop = Horizontal_Sweep_Drop;
ras.Proc_Sweep_Step = Horizontal_Sweep_Step;
ras.band_top = 0;
ras.band_stack[0].y_min = 0;
ras.band_stack[0].y_max = (Short)( ras.target.width - 1 );
if ( ( error = Render_Single_Pass( RAS_VARS 1 ) ) != 0 )
return error;
}
return Raster_Err_None;
}
static void
ft_black_init( black_PRaster raster )
{
FT_UNUSED( raster );
}
/**** RASTER OBJECT CREATION: In standalone mode, we simply use *****/
/**** a static object. *****/
#ifdef STANDALONE_
static int
ft_black_new( void* memory,
FT_Raster *araster )
{
static black_TRaster the_raster;
FT_UNUSED( memory );
*araster = (FT_Raster)&the_raster;
FT_ZERO( &the_raster );
ft_black_init( &the_raster );
return 0;
}
static void
ft_black_done( FT_Raster raster )
{
/* nothing */
FT_UNUSED( raster );
}
#else /* !STANDALONE_ */
static int
ft_black_new( FT_Memory memory,
black_PRaster *araster )
{
FT_Error error;
black_PRaster raster = NULL;
*araster = 0;
if ( !FT_NEW( raster ) )
{
raster->memory = memory;
ft_black_init( raster );
*araster = raster;
}
return error;
}
static void
ft_black_done( black_PRaster raster )
{
FT_Memory memory = (FT_Memory)raster->memory;
FT_FREE( raster );
}
#endif /* !STANDALONE_ */
static void
ft_black_reset( FT_Raster raster,
PByte pool_base,
ULong pool_size )
{
FT_UNUSED( raster );
FT_UNUSED( pool_base );
FT_UNUSED( pool_size );
}
static int
ft_black_set_mode( FT_Raster raster,
ULong mode,
void* args )
{
FT_UNUSED( raster );
FT_UNUSED( mode );
FT_UNUSED( args );
return 0;
}
static int
ft_black_render( FT_Raster raster,
const FT_Raster_Params* params )
{
const FT_Outline* outline = (const FT_Outline*)params->source;
const FT_Bitmap* target_map = params->target;
black_TWorker worker[1];
Long buffer[FT_MAX_BLACK_POOL];
if ( !raster )
return FT_THROW( Not_Ini );
if ( !outline )
return FT_THROW( Invalid );
/* return immediately if the outline is empty */
if ( outline->n_points == 0 || outline->n_contours <= 0 )
return Raster_Err_None;
if ( !outline->contours || !outline->points )
return FT_THROW( Invalid );
if ( outline->n_points !=
outline->contours[outline->n_contours - 1] + 1 )
return FT_THROW( Invalid );
/* this version of the raster does not support direct rendering, sorry */
if ( params->flags & FT_RASTER_FLAG_DIRECT )
return FT_THROW( Unsupported );
if ( params->flags & FT_RASTER_FLAG_AA )
return FT_THROW( Unsupported );
if ( !target_map )
return FT_THROW( Invalid );
/* nothing to do */
if ( !target_map->width || !target_map->rows )
return Raster_Err_None;
if ( !target_map->buffer )
return FT_THROW( Invalid );
ras.outline = *outline;
ras.target = *target_map;
worker->buff = buffer;
worker->sizeBuff = (&buffer)[1]; /* Points to right after buffer. */
return Render_Glyph( RAS_VAR );
}
FT_DEFINE_RASTER_FUNCS(
ft_standard_raster,
FT_GLYPH_FORMAT_OUTLINE,
(FT_Raster_New_Func) ft_black_new, /* raster_new */
(FT_Raster_Reset_Func) ft_black_reset, /* raster_reset */
(FT_Raster_Set_Mode_Func)ft_black_set_mode, /* raster_set_mode */
(FT_Raster_Render_Func) ft_black_render, /* raster_render */
(FT_Raster_Done_Func) ft_black_done /* raster_done */
)
/* END */
```
|
Claude Gordon Corbett (1885–1944) was an Australian sporting journalist and was the sporting editor for Sydney's Sun newspaper in the early twentieth century.
Early life
Claude Corbett was born in Waterloo, New South Wales in 1885 and was the son of another noted Sydney journalist, William Francis Corbett. He also played first-grade rugby for St George, Newtown and Eastern Suburbs.
His career in journalism began at The Evening News as a copyboy in 1899, aged 14.
Sports journalist
He was initially a journalist at The Daily Telegraph in 1911. During his career he covered three Kangaroo Tours to England. He was managing director of The Sunday Times, The Referee and the Arrow and was the leading Rugby League and Cricket journalist of his era. Colbert joined The Sun and The Sun-Herald as the Sports Director in 1923, and retained that position until his death in 1944. He was, for many years, a resident of Ocean Street, Bondi Beach, New South Wales.
As a journalist he was involved in the Bodyline controversy, and was responsible for reporting the story of Bill Woodfull's confrontation with Pelham Warner which was leaked during the third Test. A memorial trophy awarded at Anglo-Australian Test matches held in Australia is named after him. His brother, Harold Corbett also played for Eastern Suburbs and later died on the Western Front during World War I. Claude's grandson was the esteemed Australian journalist Peter Harvey.
Death
Claude Corbett died of cancer on 12 December 1944, age 59. His funeral was very well attended and he was buried at Waverley Cemetery.
Accolades
Noted Australian poet, Kenneth Slessor, wrote of Claude Corbett: "he not only has a specialist's knowledge, but also had a crisp, magnetic style that fascinated readers."
The Claude Corbett Shield was presented at Sydney Rugby League Tests between Australia and England commemorates his memory.
Claude Corbett was also a life member of the New South Wales Rugby League (NSWRFL).
Corbett Place, in the Canberra suburb of Gilmore, is named jointly in his and his father's honour.
References
1885 births
Australian rugby league journalists
1944 deaths
Australian rugby league commentators
Journalists from Sydney
Sport Australia Hall of Fame inductees
|
```ruby
require "rails_helper"
require Rails.root.join(
"lib/data_update_scripts/20220126102900_create_home_navigation_link.rb",
)
describe DataUpdateScripts::CreateHomeNavigationLink do
it "creates a home navigation link when it doesn't already exist" do
expect do
described_class.new.run
end.to change(NavigationLink, :count).by(1)
end
it "skips home navigation link creation if already exists" do
create(:navigation_link, url: "/", name: "Home")
expect do
described_class.new.run
end.not_to change(NavigationLink, :count)
end
it "updates the position of other default navigation links" do
link = create(:navigation_link, url: "/example", name: "Example", section: :default, position: 0)
described_class.new.run
expect(link.reload.position).to eq(2)
end
it "doesn't update the position of other navigation links" do
link = create(:navigation_link, url: "/example", name: "Example", section: :other, position: 0)
described_class.new.run
expect(link.reload.position).to eq(0)
end
end
```
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>ObserverType Enumeration Reference</title>
<link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
<meta charset="utf-8">
<script src="../../js/jquery.min.js" defer></script>
<script src="../../js/jazzy.js" defer></script>
<script src="../../js/lunr.min.js" defer></script>
<script src="../../js/typeahead.jquery.js" defer></script>
<script src="../../js/jazzy.search.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Enum/ObserverType" class="dashAnchor"></a>
<a title="ObserverType Enumeration Reference"></a>
<header class="header">
<p class="header-col header-col--primary">
<a class="header-link" href="../../index.html">
Katana 5.1.1 Docs
</a>
(99% documented)
</p>
<p class="header-col--secondary">
<form role="search" action="../../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
</form>
</p>
<p class="header-col header-col--secondary">
<a class="header-link" href="path_to_url">
<img class="header-icon" src="../../img/gh.png"/>
View on GitHub
</a>
</p>
</header>
<p class="breadcrumbs">
<a class="breadcrumb" href="../../index.html">Katana Reference</a>
<img class="carat" src="../../img/carat.png" />
ObserverType Enumeration Reference
</p>
<div class="content-wrapper">
<nav class="navigation">
<ul class="nav-groups">
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/EmptySideEffectDependencyContainer.html">EmptySideEffectDependencyContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/PartialStore.html">PartialStore</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/Store.html">Store</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Classes/Store/Configuration.html"> Configuration</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Enums.html">Enumerations</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Enums/DispatchableLogger.html">DispatchableLogger</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Extensions.html">Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Extensions/DispatchQueue.html">DispatchQueue</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/AnySideEffect.html">AnySideEffect</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/AnySideEffectContext.html">AnySideEffectContext</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/AnyStateUpdater.html">AnyStateUpdater</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/AnyStore.html">AnyStore</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/AsyncProvider.html">AsyncProvider</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/DispatchObserverDispatchable.html">DispatchObserverDispatchable</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/Dispatchable.html">Dispatchable</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/NotificationObserverDispatchable.html">NotificationObserverDispatchable</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/OnStartObserverDispatchable.html">OnStartObserverDispatchable</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/ReturningSideEffect.html">ReturningSideEffect</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/SideEffect.html">SideEffect</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/SideEffectDependencyContainer.html">SideEffectDependencyContainer</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/State.html">State</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/StateObserverDispatchable.html">StateObserverDispatchable</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Protocols/StateUpdater.html">StateUpdater</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Structs.html">Structures</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Structs/ObserverInterceptor.html">ObserverInterceptor</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Structs/ObserverInterceptor/ObserverType.html"> ObserverType</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Structs/SideEffectContext.html">SideEffectContext</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Structs/SignpostLogger.html">SignpostLogger</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a class="nav-group-name-link" href="../../Typealiases.html">Type Aliases</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana11AnyDispatcha">AnyDispatch</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana16AnyStoreListenera">AnyStoreListener</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana8GetStatea">GetState</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana16StoreInterceptora">StoreInterceptor</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana20StoreInterceptorNexta">StoreInterceptorNext</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana13StoreListenera">StoreListener</a>
</li>
<li class="nav-group-task">
<a class="nav-group-task-link" href="../../Typealiases.html#/s:6Katana16StoreUnsubscribea">StoreUnsubscribe</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section class="section">
<div class="section-content top-matter">
<h1>ObserverType</h1>
<div class="declaration">
<div class="language">
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ObserverType</span></code></pre>
</div>
</div>
<p>Enum that contains the various events that can be observed</p>
<div class="slightly-smaller">
<a href="path_to_url#L311-L360">Show on GitHub</a>
</div>
</div>
</section>
<section class="section">
<div class="section-content">
<div class="task-group">
<ul class="item-container">
<li class="item">
<div>
<code>
<a name="/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a"></a>
<a name="//apple_ref/swift/Alias/StateChangeObserver" class="dashAnchor"></a>
<a class="token" href="#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Type of closure that is used to check whether a state change should trigger the event</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">StateChangeObserver</span> <span class="o">=</span> <span class="p">(</span><span class="n">_</span> <span class="nv">prev</span><span class="p">:</span> <span class="kt"><a href="../../Protocols/State.html">State</a></span><span class="p">,</span> <span class="n">_</span> <span class="nv">current</span><span class="p">:</span> <span class="kt"><a href="../../Protocols/State.html">State</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L313">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:6Katana19ObserverInterceptorV0B4TypeO016TypedStateChangeB0a"></a>
<a name="//apple_ref/swift/Alias/TypedStateChangeObserver" class="dashAnchor"></a>
<a class="token" href="#/s:6Katana19ObserverInterceptorV0B4TypeO016TypedStateChangeB0a">TypedStateChangeObserver</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Typed version of <code><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a></code></p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">TypedStateChangeObserver</span><span class="o"><</span><span class="kt">S</span><span class="o">></span> <span class="o">=</span> <span class="p">(</span><span class="n">_</span> <span class="nv">prev</span><span class="p">:</span> <span class="kt">S</span><span class="p">,</span> <span class="n">_</span> <span class="nv">current</span><span class="p">:</span> <span class="kt">S</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span> <span class="k">where</span> <span class="kt">S</span> <span class="p">:</span> <span class="kt"><a href="../../Protocols/State.html">State</a></span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L316">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:your_sha256_hash_AaG_ptc_SayAA0fB12Dispatchable_pXpGtcAEmF"></a>
<a name="//apple_ref/swift/Element/onStateChange(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:your_sha256_hash_AaG_ptc_SayAA0fB12Dispatchable_pXpGtcAEmF">onStateChange(_:<wbr>_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Observes a change in the state.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">case</span> <span class="nf">onStateChange</span><span class="p">(</span><span class="nv">_</span><span class="p">:</span> <span class="kt"><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a></span><span class="p">,</span> <span class="nv">_</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/StateObserverDispatchable.html">StateObserverDispatchable</a></span><span class="o">.</span><span class="k">Type</span><span class="p">])</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>observer</em>
</code>
</td>
<td>
<div>
<p>a function that should return true when the changes to the state should dispatch items</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>dispatchable</em>
</code>
</td>
<td>
<div>
<p>a list of items to dispatch if the <code>observer</code> returns true</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L323">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:your_sha256_hashtificationNamea_SayAA0fB12Dispatchable_pXpGtcAEmF"></a>
<a name="//apple_ref/swift/Element/onNotification(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:your_sha256_hashtificationNamea_SayAA0fB12Dispatchable_pXpGtcAEmF">onNotification(_:<wbr>_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Observes a notification.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">case</span> <span class="nf">onNotification</span><span class="p">(</span><span class="nv">_</span><span class="p">:</span> <span class="kt">Notification</span><span class="o">.</span><span class="kt">Name</span><span class="p">,</span> <span class="nv">_</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/NotificationObserverDispatchable.html">NotificationObserverDispatchable</a></span><span class="o">.</span><span class="k">Type</span><span class="p">])</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>notification</em>
</code>
</td>
<td>
<div>
<p>the name of the notification to observe</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>dispatchable</em>
</code>
</td>
<td>
<div>
<p>a list of items to dispatch when the notification is sent</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L330">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:your_sha256_hashble_pXp_SayAA0fbG0_pXpGtcAEmF"></a>
<a name="//apple_ref/swift/Element/onDispatch(_:_:)" class="dashAnchor"></a>
<a class="token" href="#/s:your_sha256_hashble_pXp_SayAA0fbG0_pXpGtcAEmF">onDispatch(_:<wbr>_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Observes a dispatch</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">case</span> <span class="nf">onDispatch</span><span class="p">(</span><span class="nv">_</span><span class="p">:</span> <span class="kt"><a href="../../Protocols/Dispatchable.html">Dispatchable</a></span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">_</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/DispatchObserverDispatchable.html">DispatchObserverDispatchable</a></span><span class="o">.</span><span class="k">Type</span><span class="p">])</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>dispatchable</em>
</code>
</td>
<td>
<div>
<p>the type of the dispatchable to observe</p>
</div>
</td>
</tr>
<tr>
<td>
<code>
<em>dispatchables</em>
</code>
</td>
<td>
<div>
<p>a list of items to dispatch when <code>dispatchable</code> is dispatched</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L337">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:your_sha256_hashpatchable_pXpGcAEmF"></a>
<a name="//apple_ref/swift/Element/onStart(_:)" class="dashAnchor"></a>
<a class="token" href="#/s:your_sha256_hashpatchable_pXpGcAEmF">onStart(_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Observes when the store starts</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">case</span> <span class="nf">onStart</span><span class="p">(</span><span class="nv">_</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/OnStartObserverDispatchable.html">OnStartObserverDispatchable</a></span><span class="o">.</span><span class="k">Type</span><span class="p">])</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>dispatchable</em>
</code>
</td>
<td>
<div>
<p>a list of items to dispatch when the store starts</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L343">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:your_sha256_hashp_AaG_ptcSbx_xtcAaGRzlFZ"></a>
<a name="//apple_ref/swift/Method/typedStateChange(_:)" class="dashAnchor"></a>
<a class="token" href="#/s:your_sha256_hashp_AaG_ptcSbx_xtcAaGRzlFZ">typedStateChange(_:<wbr>)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Helper method that transforms a <code><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO016TypedStateChangeB0a">TypedStateChangeObserver</a></code> into a <code><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a></code></p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="n">typedStateChange</span><span class="o"><</span><span class="kt">S</span><span class="o">></span><span class="p">(</span><span class="n">_</span> <span class="nv">closure</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt"><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO016TypedStateChangeB0a">TypedStateChangeObserver</a></span><span class="o"><</span><span class="kt">S</span><span class="o">></span><span class="p">)</span> <span class="o">-></span> <span class="kt"><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a></span> <span class="k">where</span> <span class="kt">S</span> <span class="p">:</span> <span class="kt"><a href="../../Protocols/State.html">State</a></span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>closure</em>
</code>
</td>
<td>
<div>
<p>the closure with type <code><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO016TypedStateChangeB0a">TypedStateChangeObserver</a></code> to transform</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>the closure with type <code><a href="../../Structs/ObserverInterceptor/ObserverType.html#/s:6Katana19ObserverInterceptorV0B4TypeO011StateChangeB0a">StateChangeObserver</a></code> that is logically equivalent to the given closure</p>
</div>
<div class="slightly-smaller">
<a href="path_to_url#L351-L359">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</div>
</section>
</article>
</div>
<section class="footer">
<p>© 2021 <a class="link" href="path_to_url" target="_blank" rel="external">Bending Spoons Team</a>. All rights reserved. (Last updated: 2021-04-29)</p>
<p>Generated by <a class="link" href="path_to_url" target="_blank" rel="external">jazzy v0.13.6</a>, a <a class="link" href="path_to_url" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
</html>
```
|
Gruae is a clade of birds that contains the order Opisthocomiformes (hoatzin) and Gruimorphae (shorebirds and rails) identified in 2014 by genome analysis. Previous studies have placed the Hoatzin in different parts of the bird family tree; however, despite its unusual and primitive morphology, genetic studies have shown the hoatzin is not as primitive or as ancient as once thought, and that it could be a very derived bird that reverted to or retains some plesiomorphic traits.
According to Suh et al. (2016), one of the problems with the conclusions about this novel clade is that independent studies (like Jarvis et al. 2014 and Prum et al. 2015) found very dissimilar phylogenetic relationships (like Inopinaves) using the same probabilistic support, such bootstrap scores and Bayesian posterior probabilities.
See also
Inopinaves for an alternative hypothesis on the placement of the Hoatzin
References
Neognathae
Extant Campanian first appearances
|
Lusikisiki is a town in the Ingquza Hill Local Municipality in the Eastern Cape Province, South Africa. The name is onomatopoeic, derived from the rustling sound of reeds in the wind, named by the local Xhosa people. Lusikisiki is inland from and north of Port St Johns. The town is positioned along the R61 (future N2 Wild Coast Toll Route) leading to Mthatha to the west and Port Shepstone to the north-east.
History
Pre-colonial era
In this era, the AmaMpondo chief's kraal occupied what is now the present town village.
Colonial era
By 1894 European settlers started settling in Lusikisiki after Mpondoland was annexed by the Cape Colony and a magistrate took up residence there with a military camp established as well.
Apartheid era
In 1953 the South African Apartheid government made attempts to persuade the people of Lusikisiki to accept the rule of Bantu authorities which they had established. The government worked with Paramount Chief Botha Sigcau to attempt to start a rehabilitation scheme in Pondoland. The scheme was presented to the Lusikisiki community but was rejected. A few days later, the police entered the area. A man called Mngqinga led a large local group to attack the police. This was later known as the Lusikisiki Revolt.
Climate
Lusikisiki receives high levels of rainfall, ranging between of rain per annum. Rainfall is considered unseasonal, although Lusikisiki receives the majority of its rainfall during summer. Winter temperatures reach their lowest in July, averaging Celsius at night. The area lies within Forest and Indian Coastal Thicket biomes, and White Milkwood (Sideroxylon inerme) are common.
Attractions around Lusikisiki
The Magwa Waterfall lies in the middle of the Magwa tea plantation, South Africa's last remaining tea estate just outside Lusikisiki. The curtain of the Magwa Waterfall falls and drops into a narrow canyon.
Other points of interest include the Mkambati Nature Reserve which includes the Mzamba Fossil Beds estimated to be about 60 million years old, the Ntsubane Forest and Lupatana Nature Reserve.
Notable people
Khotso Sethuntsa - Sangoma
Stella Sigcau - 1st female Prime Minister of the Bantustan of Transkei & South African national minister
Simphiwe Dana - musician
Mpho Mbiyozo - rugby union player
H.H.T.N Bubu - Minister of Education Republic of Transkei
Crime
As of 2021, Lusikisiki has ranked number 1 in South Africa in terms of the national crime rate; these crimes include domestic robbery and sexual harassment.
See also
Mpofu Nature Reserve
Pondoland
References
External links
http://www.sahistory.org.za/archive/sketch-map-locations-lusikisiki-district-identification-place-residence-oral-informants
http://www.heraldlive.co.za/news/2017/11/18/new-hope-brews-magwa-tea-estate/
http://www.heraldlive.co.za/news/2017/07/13/majola-tea-estate-wound/
British military personnel of the 9th Cape Frontier War
Political history of South Africa
Populated places in the Ngquza Hill Local Municipality
|
Lahe Township () is a township located within the Naga Self-Administered Zone of Sagaing Division, Myanmar. The principal town is Lahe.
Towns and villages
Languages
The following languages are spoken in Lahe Township.
Kyan, Karyaw (northwestern part of township, bordering Tirap district, Arunachal Pradesh, India)
Law (northwestern part of township, bordering Mon district, Nagaland, India)
Lainong (main town and central part of township)
Makyan (eastern part of township)
Tangshang varieties (eastern part of township)
Ponyo, Gongwang (south-central part of township)
Khemyungan (southern part of township)
Makuri (southernmost part of township)
There are 8 Chen Konyak villages in western Lahe Township.
References
Townships of Sagaing Region
|
Nadya Ginsburg is an American actress, comedian and television writer. She is best known as a cast member on the sketch comedy show Hype, her recurring role on the show Partners and for her online comedy videos where she appears as Cher and Madonna, most notably the web series The Madonnalogues.
Career
Ginsburg's first high profile gig was as a cast member on the short-lived variety sketch TV show Hype, created and written by the Madtv writer Scott King. In 2010, she created a parody song and video of the Lady Gaga hit "Poker Face" with re-written lyrics about the meteorologist Al Roker, and it went viral. She subsequently appeared on Good Morning America and was interviewed by Roker. The national attention revitalised interest in a 2007 web series in which Ginsburg had starred called The Worm, in which she portrayed an alien being who impersonated Madonna, Cher, Winona Ryder and others.
Ginsburg's parody impersonation of Madonna spun into a live show called The Madonnalogues, which in turn became an eight-episode web series by the same name. She also co-wrote and starred in the short film If We Took a Holiday, in which she portrays an actress whose best friend requests that she pretend to be Madonna and accompany him for the whole of his birthday.
Ginsburg was a writer on the Joan Rivers show Fashion Police for two years. She left the show as part of a writer's strike complaining that Rivers refused to pay fair wages or provide health insurance to the writing team.
Filmography
Film
Television
References
External links
Year of birth missing (living people)
Living people
American film actresses
American television actresses
21st-century American actresses
|
Hope Saddle ( above sea level) is a saddle located south of Richmond, in the Hope Range of the northern South Island. It lies above the Clark Valley.
In 1871 a track was cut over the Hope Saddle ensuring there was a route from Westport to Nelson. Horse-drawn vehicles began using the track in 1879. This track would become part of State Highway 6. The view from the Hope Saddle is regarded as being "magnificent".
References
Mountain passes of New Zealand
Landforms of the Tasman District
State Highway 6 (New Zealand)
|
Bzowo is a village in the administrative district of Gmina Lubasz, within Czarnków-Trzcianka County, Greater Poland Voivodeship, in west-central Poland. It lies approximately west of Lubasz, south-west of Czarnków, and north-west of the regional capital Poznań.
References
Bzowo
|
Gholamreza Fath-Abadi is an Iranian football forward who played for Iran in the 1984 Asian Cup. He played for both clubs Esteghlal and Persepolis.
International Records
Honours
Asian Cup:
Fourth Place : 1984
External links
Team Melli Stats
Living people
Iranian men's footballers
Iran men's international footballers
Rah Ahan Tehran F.C. players
Esteghlal F.C. players
Persepolis F.C. players
1980 AFC Asian Cup players
1984 AFC Asian Cup players
Men's association football forwards
Footballers at the 1986 Asian Games
Place of birth missing (living people)
Asian Games competitors for Iran
1957 births
|
```swift
//
// 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 AppKit
extension NSImage {
func easy_tint(with color: NSColor) -> NSImage? {
if let image = self.copy() as? NSImage {
let bounds = CGRect(origin: CGPoint.zero, size: self.size)
image.lockFocus()
color.set()
bounds.fill(using: .sourceAtop)
image.unlockFocus()
return image
}
return nil
}
}
```
|
```clojure
(ns quo.components.text-combinations.username.component-spec
(:require [quo.components.text-combinations.username.view :as username]
[test-helpers.component :as h]))
(defn test-all-status
[component-to-render component-props]
(h/test "Verified status"
(h/render [component-to-render (assoc component-props :status :verified)])
(h/is-truthy (h/get-by-label-text :username-status-icon)))
(h/test "Contact status"
(h/render [component-to-render (assoc component-props :status :contact)])
(h/is-truthy (h/get-by-label-text :username-status-icon)))
(h/test "Untrustworthy status"
(h/render [component-to-render (assoc component-props :status :untrustworthy)])
(h/is-truthy (h/get-by-label-text :username-status-icon)))
(h/test "Untrustworthy contact status"
(h/render [component-to-render (assoc component-props :status :untrustworthy-contact)])
(let [icons (h/get-all-by-label-text :username-status-icon)]
(h/is-truthy (aget icons 0))
(h/is-truthy (aget icons 1))))
(h/test "Blocked status"
(h/render [component-to-render (assoc component-props :status :blocked)])
(h/is-truthy (h/get-by-label-text :username-status-icon))))
(h/describe "Text combinations - Username"
(h/test "Renders default"
(h/render [username/view {:username "Test username"}])
(h/is-truthy (h/get-by-text "Test username")))
(h/describe "Render different :name-type values"
(h/describe "default"
(let [props {:name-type :default
:username "Test username"}]
(h/test "default render"
(h/render [username/view props])
(h/is-truthy (h/get-by-text "Test username")))
(h/describe "All status are rendered"
(test-all-status username/view props))))
(h/describe "ens"
(let [props {:name-type :ens
:username "test-username.eth"}]
(h/test "no status render"
(h/render [username/view props])
(h/is-truthy (h/get-by-text "test-username.eth")))
(h/describe "All status are rendered"
(test-all-status username/view props))))
(h/describe "nickname"
(let [props {:name-type :nickname
:username "Nickname"
:name "Real name"}]
(h/test "no status render"
(h/render [username/view props])
(h/is-truthy (h/get-by-text "Nickname"))
(h/is-truthy (h/get-by-text "Real name")))
(h/describe "All status are rendered"
(test-all-status username/view props))))))
```
|
Jubaeopsis caffra, the Pondoland palm, is a flowering plant species in the palm family (Arecaceae). It belongs to the monotypic genus Jubaeopsis.
It is endemic to South Africa, where it is threatened due to habitat loss. This tree is a living fossil, being the last remaining lineage of the palm trees that were widespread in southern Africa in prehistoric times. A large living specimen is currently found at the Catamaran Resort in San Diego, CA.
References
Cocoseae
Monotypic Arecaceae genera
Trees of South Africa
Vulnerable plants
Taxa named by Odoardo Beccari
Taxonomy articles created by Polbot
|
```css
.query-list {
padding-left: 25px;
}
label {
margin-top: 0.3rem;
}
```
|
Barnes is a city in Washington County, Kansas, United States. As of the 2020 census, the population of the city was 165.
History
Barnes was originally called Elm Grove when it was founded in 1870. It was renamed Barnes in 1876 in honor of A. S. Barnes, a stockholder of the Central Branch Union Pacific Railroad
Barnes was a station and shipping point on the Missouri Pacific Railroad.
Geography
According to the United States Census Bureau, the city has a total area of , of which, is land and is water.
Demographics
2010 census
As of the census of 2010, there were 159 people, 71 households, and 45 families residing in the city. The population density was . There were 89 housing units at an average density of . The racial makeup of the city was 95.0% White, 1.3% Native American, and 3.8% from other races. Hispanic or Latino of any race were 5.0% of the population.
There were 71 households, of which 22.5% had children under the age of 18 living with them, 46.5% were married couples living together, 11.3% had a female householder with no husband present, 5.6% had a male householder with no wife present, and 36.6% were non-families. 35.2% of all households were made up of individuals, and 14.1% had someone living alone who was 65 years of age or older. The average household size was 2.24 and the average family size was 2.82.
The median age in the city was 44.2 years. 23.9% of residents were under the age of 18; 5.6% were between the ages of 18 and 24; 22% were from 25 to 44; 27% were from 45 to 64; and 21.4% were 65 years of age or older. The gender makeup of the city was 52.2% male and 47.8% female.
2000 census
As of the census of 2000, there were 152 people, 74 households, and 46 families residing in the city. The population density was . There were 99 housing units at an average density of . The racial makeup of the city was 98.03% White, 0.66% Asian, and 1.32% from two or more races. Hispanic or Latino of any race were 0.66% of the population.
There were 74 households, out of which 14.9% had children under the age of 18 living with them, 56.8% were married couples living together, 4.1% had a female householder with no husband present, and 37.8% were non-families. 37.8% of all households were made up of individuals, and 17.6% had someone living alone who was 65 years of age or older. The average household size was 2.05 and the average family size was 2.67.
In the city, the population was spread out, with 16.4% under the age of 18, 4.6% from 18 to 24, 25.7% from 25 to 44, 19.1% from 45 to 64, and 34.2% who were 65 years of age or older. The median age was 47 years. For every 100 females, there were 87.7 males. For every 100 females age 18 and over, there were 81.4 males.
The median income for a household in the city was $25,682, and the median income for a family was $26,023. Males had a median income of $24,286 versus $18,750 for females. The per capita income for the city was $16,446. About 4.4% of families and 7.3% of the population were below the poverty line, including none of those under the age of eighteen and 4.5% of those 65 or over.
Education
Barnes is served by USD 223 Barnes Hanover Linn.
Barnes schools were closed in 1965 through school unification. The Barnes High School mascot was Bullets.
Notable people
Omar Knedlik, (1915–1989), inventor of the ICEE frozen drink.
Joe Vogler, (1913-1993), Alaskan politician
See also
Central Branch Union Pacific Railroad
References
Further reading
External links
City of Barnes
Barnes - Directory of Public Officials
USD 223, local school district
Barnes city map, KDOT
Cities in Kansas
Cities in Washington County, Kansas
1870 establishments in Kansas
Populated places established in 1870
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.truffle.espresso.jdwp.impl;
import java.util.List;
import java.util.concurrent.Callable;
public final class CommandResult {
private final PacketStream reply;
private final List<Callable<Void>> preFutures;
private final List<Callable<Void>> postFutures;
CommandResult(PacketStream reply) {
this(reply, null, null);
}
CommandResult(PacketStream reply, List<Callable<Void>> preFutures, List<Callable<Void>> postFutures) {
this.reply = reply;
this.preFutures = preFutures;
this.postFutures = postFutures;
}
public PacketStream getReply() {
return reply;
}
public List<Callable<Void>> getPreFutures() {
return preFutures;
}
public List<Callable<Void>> getPostFutures() {
return postFutures;
}
}
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*/
package jdk.graal.compiler.jtt.except;
import org.junit.Test;
import jdk.graal.compiler.jtt.JTTTest;
public class Throw_InCatch03 extends JTTTest {
public static boolean test(int i) throws Exception {
if (i == 0) {
return true;
}
try {
throwE();
} catch (Exception e) {
throw e;
}
return false;
}
private static void throwE() throws Exception {
throw new Exception();
}
@Test
public void run0() throws Throwable {
runTest("test", 0);
}
@Test
public void run1() throws Throwable {
runTest("test", 1);
}
}
```
|
```scss
@use '@carbon/styles/scss/spacing';
.ZoomControls {
display: flex;
flex-direction: column;
position: absolute;
right: spacing.$spacing-05;
bottom: spacing.$spacing-05;
z-index: var(--z-above);
> span {
background-color: var(--cds-background);
&:first-of-type {
margin-bottom: spacing.$spacing-02;
}
&:last-of-type button {
border-top: none;
}
}
}
```
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. path_to_url
#include "fpdfsdk/pwl/cpwl_list_impl.h"
#include <algorithm>
#include <utility>
#include "core/fpdfdoc/cpvt_word.h"
#include "core/fxcrt/fx_extension.h"
#include "fpdfsdk/pwl/cpwl_edit_impl.h"
#include "fpdfsdk/pwl/cpwl_list_box.h"
#include "third_party/base/ptr_util.h"
#include "third_party/base/stl_util.h"
CPWL_ListCtrl::Item::Item()
: m_pEdit(new CPWL_EditImpl),
m_bSelected(false),
m_rcListItem(0.0f, 0.0f, 0.0f, 0.0f) {
m_pEdit->SetAlignmentV(1, true);
m_pEdit->Initialize();
}
CPWL_ListCtrl::Item::~Item() {}
void CPWL_ListCtrl::Item::SetFontMap(IPVT_FontMap* pFontMap) {
m_pEdit->SetFontMap(pFontMap);
}
void CPWL_ListCtrl::Item::SetText(const WideString& text) {
m_pEdit->SetText(text);
}
void CPWL_ListCtrl::Item::SetFontSize(float fFontSize) {
m_pEdit->SetFontSize(fFontSize);
}
float CPWL_ListCtrl::Item::GetItemHeight() const {
return m_pEdit->GetContentRect().Height();
}
uint16_t CPWL_ListCtrl::Item::GetFirstChar() const {
CPVT_Word word;
CPWL_EditImpl_Iterator* pIterator = m_pEdit->GetIterator();
pIterator->SetAt(1);
pIterator->GetWord(word);
return word.Word;
}
WideString CPWL_ListCtrl::Item::GetText() const {
return m_pEdit->GetText();
}
CPLST_Select::CPLST_Select() {}
CPLST_Select::~CPLST_Select() {}
void CPLST_Select::Add(int32_t nItemIndex) {
m_Items[nItemIndex] = SELECTING;
}
void CPLST_Select::Add(int32_t nBeginIndex, int32_t nEndIndex) {
if (nBeginIndex > nEndIndex)
std::swap(nBeginIndex, nEndIndex);
for (int32_t i = nBeginIndex; i <= nEndIndex; ++i)
Add(i);
}
void CPLST_Select::Sub(int32_t nItemIndex) {
auto it = m_Items.find(nItemIndex);
if (it != m_Items.end())
it->second = DESELECTING;
}
void CPLST_Select::Sub(int32_t nBeginIndex, int32_t nEndIndex) {
if (nBeginIndex > nEndIndex)
std::swap(nBeginIndex, nEndIndex);
for (int32_t i = nBeginIndex; i <= nEndIndex; ++i)
Sub(i);
}
void CPLST_Select::DeselectAll() {
for (auto& item : m_Items)
item.second = DESELECTING;
}
void CPLST_Select::Done() {
auto it = m_Items.begin();
while (it != m_Items.end()) {
if (it->second == DESELECTING)
it = m_Items.erase(it);
else
(it++)->second = NORMAL;
}
}
CPWL_ListCtrl::CPWL_ListCtrl()
: m_pNotify(nullptr),
m_bNotifyFlag(false),
m_nSelItem(-1),
m_nFootIndex(-1),
m_bCtrlSel(false),
m_nCaretIndex(-1),
m_fFontSize(0.0f),
m_pFontMap(nullptr),
m_bMultiple(false) {}
CPWL_ListCtrl::~CPWL_ListCtrl() {
Empty();
}
CFX_PointF CPWL_ListCtrl::InToOut(const CFX_PointF& point) const {
CFX_FloatRect rcPlate = m_rcPlate;
return CFX_PointF(point.x - (m_ptScrollPos.x - rcPlate.left),
point.y - (m_ptScrollPos.y - rcPlate.top));
}
CFX_PointF CPWL_ListCtrl::OutToIn(const CFX_PointF& point) const {
CFX_FloatRect rcPlate = m_rcPlate;
return CFX_PointF(point.x + (m_ptScrollPos.x - rcPlate.left),
point.y + (m_ptScrollPos.y - rcPlate.top));
}
CFX_FloatRect CPWL_ListCtrl::InToOut(const CFX_FloatRect& rect) const {
CFX_PointF ptLeftBottom = InToOut(CFX_PointF(rect.left, rect.bottom));
CFX_PointF ptRightTop = InToOut(CFX_PointF(rect.right, rect.top));
return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x,
ptRightTop.y);
}
CFX_FloatRect CPWL_ListCtrl::OutToIn(const CFX_FloatRect& rect) const {
CFX_PointF ptLeftBottom = OutToIn(CFX_PointF(rect.left, rect.bottom));
CFX_PointF ptRightTop = OutToIn(CFX_PointF(rect.right, rect.top));
return CFX_FloatRect(ptLeftBottom.x, ptLeftBottom.y, ptRightTop.x,
ptRightTop.y);
}
CFX_PointF CPWL_ListCtrl::InnerToOuter(const CFX_PointF& point) const {
return CFX_PointF(point.x + GetBTPoint().x, GetBTPoint().y - point.y);
}
CFX_PointF CPWL_ListCtrl::OuterToInner(const CFX_PointF& point) const {
return CFX_PointF(point.x - GetBTPoint().x, GetBTPoint().y - point.y);
}
CFX_FloatRect CPWL_ListCtrl::InnerToOuter(const CFX_FloatRect& rect) const {
CFX_PointF ptLeftTop = InnerToOuter(CFX_PointF(rect.left, rect.top));
CFX_PointF ptRightBottom = InnerToOuter(CFX_PointF(rect.right, rect.bottom));
return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x,
ptLeftTop.y);
}
CFX_FloatRect CPWL_ListCtrl::OuterToInner(const CFX_FloatRect& rect) const {
CFX_PointF ptLeftTop = OuterToInner(CFX_PointF(rect.left, rect.top));
CFX_PointF ptRightBottom = OuterToInner(CFX_PointF(rect.right, rect.bottom));
return CFX_FloatRect(ptLeftTop.x, ptRightBottom.y, ptRightBottom.x,
ptLeftTop.y);
}
void CPWL_ListCtrl::OnMouseDown(const CFX_PointF& point,
bool bShift,
bool bCtrl) {
int32_t nHitIndex = GetItemIndex(point);
if (IsMultipleSel()) {
if (bCtrl) {
if (IsItemSelected(nHitIndex)) {
m_aSelItems.Sub(nHitIndex);
SelectItems();
m_bCtrlSel = false;
} else {
m_aSelItems.Add(nHitIndex);
SelectItems();
m_bCtrlSel = true;
}
m_nFootIndex = nHitIndex;
} else if (bShift) {
m_aSelItems.DeselectAll();
m_aSelItems.Add(m_nFootIndex, nHitIndex);
SelectItems();
} else {
m_aSelItems.DeselectAll();
m_aSelItems.Add(nHitIndex);
SelectItems();
m_nFootIndex = nHitIndex;
}
SetCaret(nHitIndex);
} else {
SetSingleSelect(nHitIndex);
}
if (!IsItemVisible(nHitIndex))
ScrollToListItem(nHitIndex);
}
void CPWL_ListCtrl::OnMouseMove(const CFX_PointF& point,
bool bShift,
bool bCtrl) {
int32_t nHitIndex = GetItemIndex(point);
if (IsMultipleSel()) {
if (bCtrl) {
if (m_bCtrlSel)
m_aSelItems.Add(m_nFootIndex, nHitIndex);
else
m_aSelItems.Sub(m_nFootIndex, nHitIndex);
SelectItems();
} else {
m_aSelItems.DeselectAll();
m_aSelItems.Add(m_nFootIndex, nHitIndex);
SelectItems();
}
SetCaret(nHitIndex);
} else {
SetSingleSelect(nHitIndex);
}
if (!IsItemVisible(nHitIndex))
ScrollToListItem(nHitIndex);
}
void CPWL_ListCtrl::OnVK(int32_t nItemIndex, bool bShift, bool bCtrl) {
if (IsMultipleSel()) {
if (nItemIndex >= 0 && nItemIndex < GetCount()) {
if (bCtrl) {
} else if (bShift) {
m_aSelItems.DeselectAll();
m_aSelItems.Add(m_nFootIndex, nItemIndex);
SelectItems();
} else {
m_aSelItems.DeselectAll();
m_aSelItems.Add(nItemIndex);
SelectItems();
m_nFootIndex = nItemIndex;
}
SetCaret(nItemIndex);
}
} else {
SetSingleSelect(nItemIndex);
}
if (!IsItemVisible(nItemIndex))
ScrollToListItem(nItemIndex);
}
void CPWL_ListCtrl::OnVK_UP(bool bShift, bool bCtrl) {
OnVK(IsMultipleSel() ? GetCaret() - 1 : GetSelect() - 1, bShift, bCtrl);
}
void CPWL_ListCtrl::OnVK_DOWN(bool bShift, bool bCtrl) {
OnVK(IsMultipleSel() ? GetCaret() + 1 : GetSelect() + 1, bShift, bCtrl);
}
void CPWL_ListCtrl::OnVK_LEFT(bool bShift, bool bCtrl) {
OnVK(0, bShift, bCtrl);
}
void CPWL_ListCtrl::OnVK_RIGHT(bool bShift, bool bCtrl) {
OnVK(GetCount() - 1, bShift, bCtrl);
}
void CPWL_ListCtrl::OnVK_HOME(bool bShift, bool bCtrl) {
OnVK(0, bShift, bCtrl);
}
void CPWL_ListCtrl::OnVK_END(bool bShift, bool bCtrl) {
OnVK(GetCount() - 1, bShift, bCtrl);
}
bool CPWL_ListCtrl::OnChar(uint16_t nChar, bool bShift, bool bCtrl) {
int32_t nIndex = GetLastSelected();
int32_t nFindIndex = FindNext(nIndex, nChar);
if (nFindIndex != nIndex) {
OnVK(nFindIndex, bShift, bCtrl);
return true;
}
return false;
}
void CPWL_ListCtrl::SetPlateRect(const CFX_FloatRect& rect) {
m_rcPlate = rect;
m_ptScrollPos.x = rect.left;
SetScrollPos(CFX_PointF(rect.left, rect.top));
ReArrange(0);
InvalidateItem(-1);
}
CFX_FloatRect CPWL_ListCtrl::GetItemRect(int32_t nIndex) const {
return InToOut(GetItemRectInternal(nIndex));
}
CFX_FloatRect CPWL_ListCtrl::GetItemRectInternal(int32_t nIndex) const {
if (!pdfium::IndexInBounds(m_ListItems, nIndex) || !m_ListItems[nIndex])
return CFX_FloatRect();
CFX_FloatRect rcItem = m_ListItems[nIndex]->GetRect();
rcItem.left = 0.0f;
rcItem.right = m_rcPlate.Width();
return InnerToOuter(rcItem);
}
void CPWL_ListCtrl::AddString(const WideString& str) {
AddItem(str);
ReArrange(GetCount() - 1);
}
void CPWL_ListCtrl::SetMultipleSelect(int32_t nItemIndex, bool bSelected) {
if (!IsValid(nItemIndex))
return;
if (bSelected != IsItemSelected(nItemIndex)) {
if (bSelected) {
SetItemSelect(nItemIndex, true);
InvalidateItem(nItemIndex);
} else {
SetItemSelect(nItemIndex, false);
InvalidateItem(nItemIndex);
}
}
}
void CPWL_ListCtrl::SetSingleSelect(int32_t nItemIndex) {
if (!IsValid(nItemIndex))
return;
if (m_nSelItem != nItemIndex) {
if (m_nSelItem >= 0) {
SetItemSelect(m_nSelItem, false);
InvalidateItem(m_nSelItem);
}
SetItemSelect(nItemIndex, true);
InvalidateItem(nItemIndex);
m_nSelItem = nItemIndex;
}
}
void CPWL_ListCtrl::SetCaret(int32_t nItemIndex) {
if (!IsValid(nItemIndex))
return;
if (IsMultipleSel()) {
int32_t nOldIndex = m_nCaretIndex;
if (nOldIndex != nItemIndex) {
m_nCaretIndex = nItemIndex;
InvalidateItem(nOldIndex);
InvalidateItem(nItemIndex);
}
}
}
void CPWL_ListCtrl::InvalidateItem(int32_t nItemIndex) {
if (m_pNotify) {
if (nItemIndex == -1) {
if (!m_bNotifyFlag) {
m_bNotifyFlag = true;
CFX_FloatRect rcRefresh = m_rcPlate;
m_pNotify->IOnInvalidateRect(&rcRefresh);
m_bNotifyFlag = false;
}
} else {
if (!m_bNotifyFlag) {
m_bNotifyFlag = true;
CFX_FloatRect rcRefresh = GetItemRect(nItemIndex);
rcRefresh.left -= 1.0f;
rcRefresh.right += 1.0f;
rcRefresh.bottom -= 1.0f;
rcRefresh.top += 1.0f;
m_pNotify->IOnInvalidateRect(&rcRefresh);
m_bNotifyFlag = false;
}
}
}
}
void CPWL_ListCtrl::SelectItems() {
for (const auto& item : m_aSelItems) {
if (item.second != CPLST_Select::NORMAL)
SetMultipleSelect(item.first, item.second == CPLST_Select::SELECTING);
}
m_aSelItems.Done();
}
void CPWL_ListCtrl::Select(int32_t nItemIndex) {
if (!IsValid(nItemIndex))
return;
if (IsMultipleSel()) {
m_aSelItems.Add(nItemIndex);
SelectItems();
} else {
SetSingleSelect(nItemIndex);
}
}
bool CPWL_ListCtrl::IsItemVisible(int32_t nItemIndex) const {
CFX_FloatRect rcPlate = m_rcPlate;
CFX_FloatRect rcItem = GetItemRect(nItemIndex);
return rcItem.bottom >= rcPlate.bottom && rcItem.top <= rcPlate.top;
}
void CPWL_ListCtrl::ScrollToListItem(int32_t nItemIndex) {
if (!IsValid(nItemIndex))
return;
CFX_FloatRect rcPlate = m_rcPlate;
CFX_FloatRect rcItem = GetItemRectInternal(nItemIndex);
CFX_FloatRect rcItemCtrl = GetItemRect(nItemIndex);
if (IsFloatSmaller(rcItemCtrl.bottom, rcPlate.bottom)) {
if (IsFloatSmaller(rcItemCtrl.top, rcPlate.top)) {
SetScrollPosY(rcItem.bottom + rcPlate.Height());
}
} else if (IsFloatBigger(rcItemCtrl.top, rcPlate.top)) {
if (IsFloatBigger(rcItemCtrl.bottom, rcPlate.bottom)) {
SetScrollPosY(rcItem.top);
}
}
}
void CPWL_ListCtrl::SetScrollInfo() {
if (m_pNotify) {
CFX_FloatRect rcPlate = m_rcPlate;
CFX_FloatRect rcContent = GetContentRectInternal();
if (!m_bNotifyFlag) {
m_bNotifyFlag = true;
m_pNotify->IOnSetScrollInfoY(rcPlate.bottom, rcPlate.top,
rcContent.bottom, rcContent.top,
GetFirstHeight(), rcPlate.Height());
m_bNotifyFlag = false;
}
}
}
void CPWL_ListCtrl::SetScrollPos(const CFX_PointF& point) {
SetScrollPosY(point.y);
}
void CPWL_ListCtrl::SetScrollPosY(float fy) {
if (!IsFloatEqual(m_ptScrollPos.y, fy)) {
CFX_FloatRect rcPlate = m_rcPlate;
CFX_FloatRect rcContent = GetContentRectInternal();
if (rcPlate.Height() > rcContent.Height()) {
fy = rcPlate.top;
} else {
if (IsFloatSmaller(fy - rcPlate.Height(), rcContent.bottom)) {
fy = rcContent.bottom + rcPlate.Height();
} else if (IsFloatBigger(fy, rcContent.top)) {
fy = rcContent.top;
}
}
m_ptScrollPos.y = fy;
InvalidateItem(-1);
if (m_pNotify) {
if (!m_bNotifyFlag) {
m_bNotifyFlag = true;
m_pNotify->IOnSetScrollPosY(fy);
m_bNotifyFlag = false;
}
}
}
}
CFX_FloatRect CPWL_ListCtrl::GetContentRectInternal() const {
return InnerToOuter(m_rcContent);
}
CFX_FloatRect CPWL_ListCtrl::GetContentRect() const {
return InToOut(GetContentRectInternal());
}
void CPWL_ListCtrl::ReArrange(int32_t nItemIndex) {
float fPosY = 0.0f;
if (pdfium::IndexInBounds(m_ListItems, nItemIndex - 1) &&
m_ListItems[nItemIndex - 1]) {
fPosY = m_ListItems[nItemIndex - 1]->GetRect().bottom;
}
for (const auto& pListItem : m_ListItems) {
if (pListItem) {
float fListItemHeight = pListItem->GetItemHeight();
pListItem->SetRect(
CFX_FloatRect(0.0f, fPosY + fListItemHeight, 0.0f, fPosY));
fPosY += fListItemHeight;
}
}
SetContentRect(CFX_FloatRect(0.0f, fPosY, 0.0f, 0.0f));
SetScrollInfo();
}
void CPWL_ListCtrl::SetTopItem(int32_t nIndex) {
if (IsValid(nIndex)) {
CFX_FloatRect rcItem = GetItemRectInternal(nIndex);
SetScrollPosY(rcItem.top);
}
}
int32_t CPWL_ListCtrl::GetTopItem() const {
int32_t nItemIndex = GetItemIndex(GetBTPoint());
if (!IsItemVisible(nItemIndex) && IsItemVisible(nItemIndex + 1))
nItemIndex += 1;
return nItemIndex;
}
void CPWL_ListCtrl::Empty() {
m_ListItems.clear();
InvalidateItem(-1);
}
void CPWL_ListCtrl::Cancel() {
m_aSelItems.DeselectAll();
}
int32_t CPWL_ListCtrl::GetItemIndex(const CFX_PointF& point) const {
CFX_PointF pt = OuterToInner(OutToIn(point));
bool bFirst = true;
bool bLast = true;
for (const auto& pListItem : m_ListItems) {
if (!pListItem)
continue;
CFX_FloatRect rcListItem = pListItem->GetRect();
if (IsFloatBigger(pt.y, rcListItem.top))
bFirst = false;
if (IsFloatSmaller(pt.y, rcListItem.bottom))
bLast = false;
if (pt.y >= rcListItem.top && pt.y < rcListItem.bottom)
return &pListItem - &m_ListItems.front();
}
if (bFirst)
return 0;
if (bLast)
return pdfium::CollectionSize<int32_t>(m_ListItems) - 1;
return -1;
}
WideString CPWL_ListCtrl::GetText() const {
if (IsMultipleSel())
return GetItemText(m_nCaretIndex);
return GetItemText(m_nSelItem);
}
void CPWL_ListCtrl::AddItem(const WideString& str) {
auto pListItem = pdfium::MakeUnique<Item>();
pListItem->SetFontMap(m_pFontMap.Get());
pListItem->SetFontSize(m_fFontSize);
pListItem->SetText(str);
m_ListItems.push_back(std::move(pListItem));
}
CPWL_EditImpl* CPWL_ListCtrl::GetItemEdit(int32_t nIndex) const {
if (!pdfium::IndexInBounds(m_ListItems, nIndex) || !m_ListItems[nIndex])
return nullptr;
return m_ListItems[nIndex]->GetEdit();
}
int32_t CPWL_ListCtrl::GetCount() const {
return pdfium::CollectionSize<int32_t>(m_ListItems);
}
float CPWL_ListCtrl::GetFirstHeight() const {
if (m_ListItems.empty() || !m_ListItems.front())
return 1.0f;
return m_ListItems.front()->GetItemHeight();
}
int32_t CPWL_ListCtrl::GetFirstSelected() const {
int32_t i = 0;
for (const auto& pListItem : m_ListItems) {
if (pListItem && pListItem->IsSelected())
return i;
++i;
}
return -1;
}
int32_t CPWL_ListCtrl::GetLastSelected() const {
for (auto iter = m_ListItems.rbegin(); iter != m_ListItems.rend(); ++iter) {
if (*iter && (*iter)->IsSelected())
return &*iter - &m_ListItems.front();
}
return -1;
}
int32_t CPWL_ListCtrl::FindNext(int32_t nIndex, wchar_t nChar) const {
int32_t nCircleIndex = nIndex;
int32_t sz = pdfium::CollectionSize<int32_t>(m_ListItems);
for (int32_t i = 0; i < sz; i++) {
nCircleIndex++;
if (nCircleIndex >= sz)
nCircleIndex = 0;
if (Item* pListItem = m_ListItems[nCircleIndex].get()) {
if (FXSYS_towupper(pListItem->GetFirstChar()) == FXSYS_towupper(nChar))
return nCircleIndex;
}
}
return nCircleIndex;
}
bool CPWL_ListCtrl::IsItemSelected(int32_t nIndex) const {
return pdfium::IndexInBounds(m_ListItems, nIndex) && m_ListItems[nIndex] &&
m_ListItems[nIndex]->IsSelected();
}
void CPWL_ListCtrl::SetItemSelect(int32_t nIndex, bool bSelected) {
if (pdfium::IndexInBounds(m_ListItems, nIndex) && m_ListItems[nIndex])
m_ListItems[nIndex]->SetSelect(bSelected);
}
bool CPWL_ListCtrl::IsValid(int32_t nItemIndex) const {
return pdfium::IndexInBounds(m_ListItems, nItemIndex);
}
WideString CPWL_ListCtrl::GetItemText(int32_t nIndex) const {
if (pdfium::IndexInBounds(m_ListItems, nIndex) && m_ListItems[nIndex])
return m_ListItems[nIndex]->GetText();
return WideString();
}
```
|
```java
package org.web3j.contracts.eip721.generated;
import java.math.BigInteger;
import java.util.Arrays;
import org.web3j.abi.TypeReference;
import org.web3j.abi.datatypes.Function;
import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.RemoteCall;
import org.web3j.tx.Contract;
import org.web3j.tx.TransactionManager;
import org.web3j.tx.gas.ContractGasProvider;
/**
* <p>Auto generated code.
* <p><strong>Do not modify!</strong>
* <p>Please use the <a href="path_to_url">web3j command line tools</a>,
* or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
* <a href="path_to_url">codegen module</a> to update.
*
* <p>Generated with web3j version 4.1.1.
*/
public class ERC721Enumerable extends Contract {
private static final String BINARY = "Bin file was not provided";
public static final String FUNC_TOTALSUPPLY = "totalSupply";
public static final String FUNC_TOKENOFOWNERBYINDEX = "tokenOfOwnerByIndex";
public static final String FUNC_TOKENBYINDEX = "tokenByIndex";
@Deprecated
protected ERC721Enumerable(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
}
protected ERC721Enumerable(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
}
@Deprecated
protected ERC721Enumerable(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
protected ERC721Enumerable(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
}
public RemoteCall<BigInteger> totalSupply() {
final Function function = new Function(FUNC_TOTALSUPPLY,
Arrays.<Type>asList(),
Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall<BigInteger> tokenOfOwnerByIndex(String _owner, BigInteger _index) {
final Function function = new Function(FUNC_TOKENOFOWNERBYINDEX,
Arrays.<Type>asList(new org.web3j.abi.datatypes.Address(_owner),
new org.web3j.abi.datatypes.generated.Uint256(_index)),
Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
public RemoteCall<BigInteger> tokenByIndex(BigInteger _index) {
final Function function = new Function(FUNC_TOKENBYINDEX,
Arrays.<Type>asList(new org.web3j.abi.datatypes.generated.Uint256(_index)),
Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}));
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
}
@Deprecated
public static ERC721Enumerable load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return new ERC721Enumerable(contractAddress, web3j, credentials, gasPrice, gasLimit);
}
@Deprecated
public static ERC721Enumerable load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
return new ERC721Enumerable(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
public static ERC721Enumerable load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
return new ERC721Enumerable(contractAddress, web3j, credentials, contractGasProvider);
}
public static ERC721Enumerable load(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
return new ERC721Enumerable(contractAddress, web3j, transactionManager, contractGasProvider);
}
}
```
|
A single-pass membrane protein also known as single-spanning protein or bitopic protein is a transmembrane protein that spans the lipid bilayer only once. These proteins may constitute up to 50% of all transmembrane proteins, depending on the organism, and contribute significantly to the network of interactions between different proteins in cells, including interactions via transmembrane alpha helices. They usually include one or several water-soluble domains situated at the different sides of biological membranes, for example in single-pass transmembrane receptors. Some of them are small and serve as regulatory or structure-stabilizing subunits in large multi-protein transmembrane complexes, such as photosystems or the respiratory chain. A 2013 estimate identified about 1300 single-pass membrane proteins in the human genome.
Topology-based classification
Bitopic proteins are classified into 4 types, depending on their transmembrane topology and location of the transmembrane helix in the amino acid sequence of the protein. According to Uniprot:
Type I: N-terminus on the extracellular side of the membrane; removed signal peptide
Type II: N-terminus on the cytoplasmic side of the membrane; transmembrane helix located close to the N-terminus, where it works as an anchor
Type III: N-terminus on the extracellular side of the membrane; no signal peptide
Type IV: N-terminus on the cytoplasmic side of the membrane; transmembrane helix located close to the C-terminus, where it works as an anchor
Hence type I proteins are anchored to the lipid membrane with a stop-transfer anchor sequence and have their N-terminal domains targeted to the ER lumen during synthesis. Type II and III are anchored with a signal-anchor sequence, with type II being targeted to the ER lumen with its C-terminal domain, while type III have their N-terminal domains targeted to the ER lumen.
Structure
A single-pass transmembrane protein typically consists of three domains, the extracellular domain, the transmembrane domain, and the intracellular domain. The transmembrane domain is the smallest at around 25 amino acid residues and forms an alpha helix inserted into the membrane bilayer. The ECD is typically much larger than the ICD and is often globular, whereas many ICDs have relatively high disorder. Some proteins in this class function as monomers, but dimerization or higher-order oligomerization is common.
Evolution
The number of single-pass transmembrane proteins in an organism's genome varies significantly. It is higher in eukaryotes than prokaryotes and in multicellular than unicellular organisms. The fraction of proteins in this class is larger in humans than in the model organisms Danio rerio (zebrafish) and Caenorhabditis elegans (nematode worms), suggesting that genes encoding these proteins have undergone expansion in the vertebrate and mammalian lineages.
Databases
Membranome database is a database of bitopic proteins from several model organisms.
Bitopic proteins in OPM database
References
Single-pass transmembrane proteins
|
König Rother ('King Rother') is the earliest Middle High German epic poem. It consists of 5,204 lines of rhymed couplets. The author is unknown, but was probably a clergyman writing in Bavaria. It was written no earlier than 1152, probably before 1180. The earliest manuscript, Heidelberg Cpg 390, is from around 1200 and is also the only complete copy. Three fragmentary manuscripts from the 13th and 14th centuries are known.
The theme of König Rother is the "dangerous bridal quest". Traditionally classified as a Spielmannsdichtung, today it is more often labelled "pre-courtly epic". The story is probably based on orally transmitted accounts of historical events, but its treatment is entirely fictional. King Rother, for example, may be a reflection of King Rothari or King Roger II of Sicily, both of whom ruled in Italy. In the story, Rother, whose capital is Bari, needs to a wife to ensure his succession. He pursues the daughter of Emperor Konstantin of Constantinople, who has the habit of executing her suitors. Rother outsmarts the emperor and takes the girl back to his kingdom, but her father's sends a ship to take her back. In a second effort, Rother goes in disguise to Constantinople, but is identified and sentenced to death. He is saved by a pre-planned military intervention and finally receives his bride.
Notes
Bibliography
Medieval German poems
|
Father Ignatius Krekshino (Russian: Игнатий Крекшин, born in 1956) is a Russian Greek-Catholic priest and Father Superior.
Biography
Krekshino graduated from the Department of Art and History Faculty of Moscow State University and the Moscow Orthodox Theological Seminary. On 5 November 1989 he was ordained to the priesthood by Bishop Gregory (Chirkov) of Mozhaisk.
He served as rector of the Nativity Bobreneva monastery. Krekshino was also a supporter of the introduction of the Russian language in the liturgy, and signed a Message from the 10 April 1994, calling for a discussion of the liturgical order. Prior to 1998, was secretary of the Commission for the canonization and a member of the Theological Commission of the Holy Synod. In 1998, the decision of the Holy Synod had granted a petition for dismissal of the rector of Nativity Bobreneva monastery due to deduction for health reasons. Since 1999 he has been a convert to Catholicism and has served in the Greek-Catholic Church of Saint Nicholas in Munich and after in the Catholic church of Saint Procopius in Tübingen. He graduated from Munich School of Philosophy.
Works
The Gospel of Luke with explanations. // Moscow Diocesan Gazette. Moscow, 1991. N 1. S. 38-43.
The word after Vespers in the Cathedral of Vladimir May 21, 1991 // Orthodox community number 19.
О наших публикациях, Предисл. к статье еп. Кассиана (Безобразова) "Принципы православного толкования слова Божия" // Альфа и Омега. М., 1994. №2 (АиО). стр. 28.
In memory of Fr. Sergius Gakkel // Herald RHD. Paris: № 189. I. 2005.
My memory of Alexander. The meeting, which continues / / Truth and the Life. 1/2005.
Sources
Alexei Bukalov. Prayer of the seven gods to seventy languages / / Today. 1996. October 9
A. Clement. Difficulties and ailments Russian Church / / Russian thought. 1998. June 18–24
References
External links
крекшин андрей николаевич бывш игуме
Игумен Игнатий
Converts to Eastern Catholicism from Eastern Orthodoxy
Former Russian Orthodox Christians
Russian Eastern Catholics
1956 births
Living people
|
Scott David Mechlowicz (born January 17, 1981) is an American actor. He is known for appearing in the films Mean Creek (2004), EuroTrip (2004) and Peaceful Warrior (2006).
Early life and education
Mechlowicz was born in New York City, the son of Susan (Lehrman), a respiratory therapist, and Morris Mechlowicz. He also has one brother, M. Steven Neal. He was raised in a tight-knit Jewish family. He grew up in Plano, Texas, where he graduated from Plano Senior High School in 1999, and attended the University of Texas at Austin for one semester. He subsequently moved to Los Angeles, California, where he studied at the University of California, Los Angeles and graduated in 2003 from the Conservatory Acting Program.
Career
Mechlowicz made his film debut in the teen comedy EuroTrip. The same year, he also starred in the independent film Mean Creek, which was filmed in 2003 but not given a limited theatrical release until August 20, 2004.
In the film, which was a dark teenage drama, Mechlowicz played the oldest of a group of teenagers. The film received a positive critical reception. He received an Independent Spirit Award for his acting in Mean Creek. In 2004, he made a small appearance in the video for Gavin Degraw's song "I Don't Want to Be", in which he plays the romantic interest of Shiri Appleby. Also in 2004, Mechlowicz guest starred in a season one episode of the television series House.
Mechlowicz also starred, opposite Nick Nolte and Amy Smart, in the drama Peaceful Warrior (based on the book Way of the Peaceful Warrior), in which he plays the lead role of Dan Millman, a rings gymnast who is an olympic hopeful. The story is based on the life of the book's author. His next film was the thriller Gone, filmed in 2005 and released in 2007, co-starring Amelia Warner. In 2010, Mechlowicz appeared in two films, Waiting for Forever, co-starring Rachel Bilson, Blythe Danner, Richard Jenkins, and Tom Sturridge, and the dark suspense drama Undocumented starring Mechlowicz and Peter Stormare.
On April 1, 2011, Cat Run opened in theaters, starring Mechlowicz, Paz Vega, and Janet McTeer. In March 2012, Eden debuted at the South by Southwest Film Festival in Austin, Texas. In Eden, Mechlowicz played the boyishly charming bait luring young girls into a sex trafficking ring, based on a true story. Eden costars Beau Bridges and Jamie Chung and was directed by Megan Griffiths.
Filmography
Film
Television
References
External links
M. Steven Neal (brother)
1981 births
21st-century American male actors
American male film actors
American male television actors
Jewish American male actors
Living people
Male actors from New York City
People from Plano, Texas
UCLA Film School alumni
Male actors from Texas
American people of Polish-Jewish descent
21st-century American Jews
|
Al-Zawra'a Cinema () is one of the oldest cinemas located on al-Muraba'a area in Baghdad, Iraq. The cinema is considered an important architectural landmark of al-Rasheed Street and a Baghdadi heritage sight.
History
By the early 20th century, cinemas started to materialize in Baghdad and became a part of Iraqi life. At the time, going to cinemas was a weekly event for both the working class and the middle class. Thursday became the traditional day of the week in which Baghdadi families and students went to theatres. One of them, al-Zawra'a Cinema, was built in 1937 inspired by German architecture and opened in the early 1930s and was famous for showcasing Flash Gordon serials in theatres. A café next to the cinema's entrance named "Mulla Hamadi Café" provided coffee and entertainment for the visitors to the cinema as well as students. The cinema was considered remarkable and was also located near the Brazilian Café.
After the United Nations imposed sanctions on Iraq following the Gulf War, the cinema industry in Iraq started to suffer and decline. Movies stopped being imported and even movies inside the country stopped being produced. Al-Zawra'a Cinema became empty and its equipment was outdated. The cinema has since been deserted. Al-Zawra'a Cinema remains one of the only surviving examples of old Baghdadi cinemas along with the Roxy Cinema. Unlike other cultural buildings on al-Rasheed Street that were turned into commercial shops, the cinema was turned into a theater.
Architecture
The architecture of the building was designed in order to look like the embodiment of cinematic fiction and the imaginary worlds of the movies that were shown in the cinema. The presence of the decorations of the strange-shaped façade on the exterior of the cinema is intended to hint at an imagined cinematic reality. It is unknown who was the designer of the cinema, although some sources indicate it was an architect named "Nu'man Munib al-Mutwali" who designed and supervised many buildings around Baghdad.
See also
Cinema of Iraq
Cinema of the Middle East
Culture of Iraq
References
Buildings and structures in Baghdad
Cinemas and movie theaters
|
```objective-c
/* NOLINT(build/header_guard) */
Distributed under MIT license.
See file LICENSE for detail or copy at path_to_url
*/
/* template parameters: FN, DataType */
#define HistogramType FN(Histogram)
static void FN(InitialEntropyCodes)(const DataType* data, size_t length,
size_t stride,
size_t num_histograms,
HistogramType* histograms) {
uint32_t seed = 7;
size_t block_length = length / num_histograms;
size_t i;
FN(ClearHistograms)(histograms, num_histograms);
for (i = 0; i < num_histograms; ++i) {
size_t pos = length * i / num_histograms;
if (i != 0) {
pos += MyRand(&seed) % block_length;
}
if (pos + stride >= length) {
pos = length - stride - 1;
}
FN(HistogramAddVector)(&histograms[i], data + pos, stride);
}
}
static void FN(RandomSample)(uint32_t* seed,
const DataType* data,
size_t length,
size_t stride,
HistogramType* sample) {
size_t pos = 0;
if (stride >= length) {
stride = length;
} else {
pos = MyRand(seed) % (length - stride + 1);
}
FN(HistogramAddVector)(sample, data + pos, stride);
}
static void FN(RefineEntropyCodes)(const DataType* data, size_t length,
size_t stride,
size_t num_histograms,
HistogramType* histograms) {
size_t iters =
kIterMulForRefining * length / stride + kMinItersForRefining;
uint32_t seed = 7;
size_t iter;
iters = ((iters + num_histograms - 1) / num_histograms) * num_histograms;
for (iter = 0; iter < iters; ++iter) {
HistogramType sample;
FN(HistogramClear)(&sample);
FN(RandomSample)(&seed, data, length, stride, &sample);
FN(HistogramAddHistogram)(&histograms[iter % num_histograms], &sample);
}
}
/* Assigns a block id from the range [0, num_histograms) to each data element
in data[0..length) and fills in block_id[0..length) with the assigned values.
Returns the number of blocks, i.e. one plus the number of block switches. */
static size_t FN(FindBlocks)(const DataType* data, const size_t length,
const double block_switch_bitcost,
const size_t num_histograms,
const HistogramType* histograms,
double* insert_cost,
double* cost,
uint8_t* switch_signal,
uint8_t* block_id) {
const size_t data_size = FN(HistogramDataSize)();
const size_t bitmaplen = (num_histograms + 7) >> 3;
size_t num_blocks = 1;
size_t i;
size_t j;
BROTLI_DCHECK(num_histograms <= 256);
if (num_histograms <= 1) {
for (i = 0; i < length; ++i) {
block_id[i] = 0;
}
return 1;
}
memset(insert_cost, 0, sizeof(insert_cost[0]) * data_size * num_histograms);
for (i = 0; i < num_histograms; ++i) {
insert_cost[i] = FastLog2((uint32_t)histograms[i].total_count_);
}
for (i = data_size; i != 0;) {
--i;
for (j = 0; j < num_histograms; ++j) {
insert_cost[i * num_histograms + j] =
insert_cost[j] - BitCost(histograms[j].data_[i]);
}
}
memset(cost, 0, sizeof(cost[0]) * num_histograms);
memset(switch_signal, 0, sizeof(switch_signal[0]) * length * bitmaplen);
/* After each iteration of this loop, cost[k] will contain the difference
between the minimum cost of arriving at the current byte position using
entropy code k, and the minimum cost of arriving at the current byte
position. This difference is capped at the block switch cost, and if it
reaches block switch cost, it means that when we trace back from the last
position, we need to switch here. */
for (i = 0; i < length; ++i) {
const size_t byte_ix = i;
size_t ix = byte_ix * bitmaplen;
size_t insert_cost_ix = data[byte_ix] * num_histograms;
double min_cost = 1e99;
double block_switch_cost = block_switch_bitcost;
size_t k;
for (k = 0; k < num_histograms; ++k) {
/* We are coding the symbol in data[byte_ix] with entropy code k. */
cost[k] += insert_cost[insert_cost_ix + k];
if (cost[k] < min_cost) {
min_cost = cost[k];
block_id[byte_ix] = (uint8_t)k;
}
}
/* More blocks for the beginning. */
if (byte_ix < 2000) {
block_switch_cost *= 0.77 + 0.07 * (double)byte_ix / 2000;
}
for (k = 0; k < num_histograms; ++k) {
cost[k] -= min_cost;
if (cost[k] >= block_switch_cost) {
const uint8_t mask = (uint8_t)(1u << (k & 7));
cost[k] = block_switch_cost;
BROTLI_DCHECK((k >> 3) < bitmaplen);
switch_signal[ix + (k >> 3)] |= mask;
}
}
}
{ /* Trace back from the last position and switch at the marked places. */
size_t byte_ix = length - 1;
size_t ix = byte_ix * bitmaplen;
uint8_t cur_id = block_id[byte_ix];
while (byte_ix > 0) {
const uint8_t mask = (uint8_t)(1u << (cur_id & 7));
BROTLI_DCHECK(((size_t)cur_id >> 3) < bitmaplen);
--byte_ix;
ix -= bitmaplen;
if (switch_signal[ix + (cur_id >> 3)] & mask) {
if (cur_id != block_id[byte_ix]) {
cur_id = block_id[byte_ix];
++num_blocks;
}
}
block_id[byte_ix] = cur_id;
}
}
return num_blocks;
}
static size_t FN(RemapBlockIds)(uint8_t* block_ids, const size_t length,
uint16_t* new_id, const size_t num_histograms) {
static const uint16_t kInvalidId = 256;
uint16_t next_id = 0;
size_t i;
for (i = 0; i < num_histograms; ++i) {
new_id[i] = kInvalidId;
}
for (i = 0; i < length; ++i) {
BROTLI_DCHECK(block_ids[i] < num_histograms);
if (new_id[block_ids[i]] == kInvalidId) {
new_id[block_ids[i]] = next_id++;
}
}
for (i = 0; i < length; ++i) {
block_ids[i] = (uint8_t)new_id[block_ids[i]];
BROTLI_DCHECK(block_ids[i] < num_histograms);
}
BROTLI_DCHECK(next_id <= num_histograms);
return next_id;
}
static void FN(BuildBlockHistograms)(const DataType* data, const size_t length,
const uint8_t* block_ids,
const size_t num_histograms,
HistogramType* histograms) {
size_t i;
FN(ClearHistograms)(histograms, num_histograms);
for (i = 0; i < length; ++i) {
FN(HistogramAdd)(&histograms[block_ids[i]], data[i]);
}
}
static void FN(ClusterBlocks)(MemoryManager* m,
const DataType* data, const size_t length,
const size_t num_blocks,
uint8_t* block_ids,
BlockSplit* split) {
uint32_t* histogram_symbols = BROTLI_ALLOC(m, uint32_t, num_blocks);
uint32_t* block_lengths = BROTLI_ALLOC(m, uint32_t, num_blocks);
const size_t expected_num_clusters = CLUSTERS_PER_BATCH *
(num_blocks + HISTOGRAMS_PER_BATCH - 1) / HISTOGRAMS_PER_BATCH;
size_t all_histograms_size = 0;
size_t all_histograms_capacity = expected_num_clusters;
HistogramType* all_histograms =
BROTLI_ALLOC(m, HistogramType, all_histograms_capacity);
size_t cluster_size_size = 0;
size_t cluster_size_capacity = expected_num_clusters;
uint32_t* cluster_size = BROTLI_ALLOC(m, uint32_t, cluster_size_capacity);
size_t num_clusters = 0;
HistogramType* histograms = BROTLI_ALLOC(m, HistogramType,
BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH));
size_t max_num_pairs =
HISTOGRAMS_PER_BATCH * HISTOGRAMS_PER_BATCH / 2;
size_t pairs_capacity = max_num_pairs + 1;
HistogramPair* pairs = BROTLI_ALLOC(m, HistogramPair, pairs_capacity);
size_t pos = 0;
uint32_t* clusters;
size_t num_final_clusters;
static const uint32_t kInvalidIndex = BROTLI_UINT32_MAX;
uint32_t* new_index;
size_t i;
uint32_t sizes[HISTOGRAMS_PER_BATCH] = { 0 };
uint32_t new_clusters[HISTOGRAMS_PER_BATCH] = { 0 };
uint32_t symbols[HISTOGRAMS_PER_BATCH] = { 0 };
uint32_t remap[HISTOGRAMS_PER_BATCH] = { 0 };
if (BROTLI_IS_OOM(m)) return;
memset(block_lengths, 0, num_blocks * sizeof(uint32_t));
{
size_t block_idx = 0;
for (i = 0; i < length; ++i) {
BROTLI_DCHECK(block_idx < num_blocks);
++block_lengths[block_idx];
if (i + 1 == length || block_ids[i] != block_ids[i + 1]) {
++block_idx;
}
}
BROTLI_DCHECK(block_idx == num_blocks);
}
for (i = 0; i < num_blocks; i += HISTOGRAMS_PER_BATCH) {
const size_t num_to_combine =
BROTLI_MIN(size_t, num_blocks - i, HISTOGRAMS_PER_BATCH);
size_t num_new_clusters;
size_t j;
for (j = 0; j < num_to_combine; ++j) {
size_t k;
FN(HistogramClear)(&histograms[j]);
for (k = 0; k < block_lengths[i + j]; ++k) {
FN(HistogramAdd)(&histograms[j], data[pos++]);
}
histograms[j].bit_cost_ = FN(BrotliPopulationCost)(&histograms[j]);
new_clusters[j] = (uint32_t)j;
symbols[j] = (uint32_t)j;
sizes[j] = 1;
}
num_new_clusters = FN(BrotliHistogramCombine)(
histograms, sizes, symbols, new_clusters, pairs, num_to_combine,
num_to_combine, HISTOGRAMS_PER_BATCH, max_num_pairs);
BROTLI_ENSURE_CAPACITY(m, HistogramType, all_histograms,
all_histograms_capacity, all_histograms_size + num_new_clusters);
BROTLI_ENSURE_CAPACITY(m, uint32_t, cluster_size,
cluster_size_capacity, cluster_size_size + num_new_clusters);
if (BROTLI_IS_OOM(m)) return;
for (j = 0; j < num_new_clusters; ++j) {
all_histograms[all_histograms_size++] = histograms[new_clusters[j]];
cluster_size[cluster_size_size++] = sizes[new_clusters[j]];
remap[new_clusters[j]] = (uint32_t)j;
}
for (j = 0; j < num_to_combine; ++j) {
histogram_symbols[i + j] = (uint32_t)num_clusters + remap[symbols[j]];
}
num_clusters += num_new_clusters;
BROTLI_DCHECK(num_clusters == cluster_size_size);
BROTLI_DCHECK(num_clusters == all_histograms_size);
}
BROTLI_FREE(m, histograms);
max_num_pairs =
BROTLI_MIN(size_t, 64 * num_clusters, (num_clusters / 2) * num_clusters);
if (pairs_capacity < max_num_pairs + 1) {
BROTLI_FREE(m, pairs);
pairs = BROTLI_ALLOC(m, HistogramPair, max_num_pairs + 1);
if (BROTLI_IS_OOM(m)) return;
}
clusters = BROTLI_ALLOC(m, uint32_t, num_clusters);
if (BROTLI_IS_OOM(m)) return;
for (i = 0; i < num_clusters; ++i) {
clusters[i] = (uint32_t)i;
}
num_final_clusters = FN(BrotliHistogramCombine)(
all_histograms, cluster_size, histogram_symbols, clusters, pairs,
num_clusters, num_blocks, BROTLI_MAX_NUMBER_OF_BLOCK_TYPES,
max_num_pairs);
BROTLI_FREE(m, pairs);
BROTLI_FREE(m, cluster_size);
new_index = BROTLI_ALLOC(m, uint32_t, num_clusters);
if (BROTLI_IS_OOM(m)) return;
for (i = 0; i < num_clusters; ++i) new_index[i] = kInvalidIndex;
pos = 0;
{
uint32_t next_index = 0;
for (i = 0; i < num_blocks; ++i) {
HistogramType histo;
size_t j;
uint32_t best_out;
double best_bits;
FN(HistogramClear)(&histo);
for (j = 0; j < block_lengths[i]; ++j) {
FN(HistogramAdd)(&histo, data[pos++]);
}
best_out = (i == 0) ? histogram_symbols[0] : histogram_symbols[i - 1];
best_bits =
FN(BrotliHistogramBitCostDistance)(&histo, &all_histograms[best_out]);
for (j = 0; j < num_final_clusters; ++j) {
const double cur_bits = FN(BrotliHistogramBitCostDistance)(
&histo, &all_histograms[clusters[j]]);
if (cur_bits < best_bits) {
best_bits = cur_bits;
best_out = clusters[j];
}
}
histogram_symbols[i] = best_out;
if (new_index[best_out] == kInvalidIndex) {
new_index[best_out] = next_index++;
}
}
}
BROTLI_FREE(m, clusters);
BROTLI_FREE(m, all_histograms);
BROTLI_ENSURE_CAPACITY(
m, uint8_t, split->types, split->types_alloc_size, num_blocks);
BROTLI_ENSURE_CAPACITY(
m, uint32_t, split->lengths, split->lengths_alloc_size, num_blocks);
if (BROTLI_IS_OOM(m)) return;
{
uint32_t cur_length = 0;
size_t block_idx = 0;
uint8_t max_type = 0;
for (i = 0; i < num_blocks; ++i) {
cur_length += block_lengths[i];
if (i + 1 == num_blocks ||
histogram_symbols[i] != histogram_symbols[i + 1]) {
const uint8_t id = (uint8_t)new_index[histogram_symbols[i]];
split->types[block_idx] = id;
split->lengths[block_idx] = cur_length;
max_type = BROTLI_MAX(uint8_t, max_type, id);
cur_length = 0;
++block_idx;
}
}
split->num_blocks = block_idx;
split->num_types = (size_t)max_type + 1;
}
BROTLI_FREE(m, new_index);
BROTLI_FREE(m, block_lengths);
BROTLI_FREE(m, histogram_symbols);
}
static void FN(SplitByteVector)(MemoryManager* m,
const DataType* data, const size_t length,
const size_t literals_per_histogram,
const size_t max_histograms,
const size_t sampling_stride_length,
const double block_switch_cost,
const BrotliEncoderParams* params,
BlockSplit* split) {
const size_t data_size = FN(HistogramDataSize)();
size_t num_histograms = length / literals_per_histogram + 1;
HistogramType* histograms;
if (num_histograms > max_histograms) {
num_histograms = max_histograms;
}
if (length == 0) {
split->num_types = 1;
return;
} else if (length < kMinLengthForBlockSplitting) {
BROTLI_ENSURE_CAPACITY(m, uint8_t,
split->types, split->types_alloc_size, split->num_blocks + 1);
BROTLI_ENSURE_CAPACITY(m, uint32_t,
split->lengths, split->lengths_alloc_size, split->num_blocks + 1);
if (BROTLI_IS_OOM(m)) return;
split->num_types = 1;
split->types[split->num_blocks] = 0;
split->lengths[split->num_blocks] = (uint32_t)length;
split->num_blocks++;
return;
}
histograms = BROTLI_ALLOC(m, HistogramType, num_histograms);
if (BROTLI_IS_OOM(m)) return;
/* Find good entropy codes. */
FN(InitialEntropyCodes)(data, length,
sampling_stride_length,
num_histograms, histograms);
FN(RefineEntropyCodes)(data, length,
sampling_stride_length,
num_histograms, histograms);
{
/* Find a good path through literals with the good entropy codes. */
uint8_t* block_ids = BROTLI_ALLOC(m, uint8_t, length);
size_t num_blocks = 0;
const size_t bitmaplen = (num_histograms + 7) >> 3;
double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
double* cost = BROTLI_ALLOC(m, double, num_histograms);
uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
uint16_t* new_id = BROTLI_ALLOC(m, uint16_t, num_histograms);
const size_t iters = params->quality < HQ_ZOPFLIFICATION_QUALITY ? 3 : 10;
size_t i;
if (BROTLI_IS_OOM(m)) return;
for (i = 0; i < iters; ++i) {
num_blocks = FN(FindBlocks)(data, length,
block_switch_cost,
num_histograms, histograms,
insert_cost, cost, switch_signal,
block_ids);
num_histograms = FN(RemapBlockIds)(block_ids, length,
new_id, num_histograms);
FN(BuildBlockHistograms)(data, length, block_ids,
num_histograms, histograms);
}
BROTLI_FREE(m, insert_cost);
BROTLI_FREE(m, cost);
BROTLI_FREE(m, switch_signal);
BROTLI_FREE(m, new_id);
BROTLI_FREE(m, histograms);
FN(ClusterBlocks)(m, data, length, num_blocks, block_ids, split);
if (BROTLI_IS_OOM(m)) return;
BROTLI_FREE(m, block_ids);
}
}
#undef HistogramType
```
|
Neu-Ulm is an electoral constituency (German: Wahlkreis) represented in the Bundestag. It elects one member via first-past-the-post voting. Under the current constituency numbering system, it is designated as constituency 255. It is located in southwestern Bavaria, comprising the Günzburg district, Neu-Ulm district, and the northwestern part of the Unterallgäu district.
Neu-Ulm was created for the inaugural 1949 federal election. Since 2021, it has been represented by Alexander Engelhard of the Christian Social Union (CSU).
Geography
Neu-Ulm is located in southwestern Bavaria. As of the 2021 federal election, it comprises the districts of Günzburg and Neu-Ulm as well as the Verwaltungsgemeinschaften of Babenhausen, Boos, Erkheim, and Pfaffenhausen from the Unterallgäu district.
History
Neu-Ulm was created in 1949, then known as Dillingen. It acquired its current name in the 1965 election. In the 1949 election, it was Bavaria constituency 43 in the numbering system. In the 1953 through 1961 elections, it was number 238. In the 1965 through 1998 elections, it was number 241. In the 2002 and 2005 elections, it was number 256. Since the 2009 election, it has been number 255.
Originally, the constituency comprised the independent cities of Neu-Ulm, Dillingen an der Donau, and Günzburg and the districts of Landkreis Neu-Ulm, Landkreis Dillingen an der Donau, and Landkreis Günzburg. In the 1965 through 1972 elections, it lost the city and district of Dillingen an der Donau while gaining the districts of Illertissen and Krumbach. In the 1976 through 1990 elections, it comprised the districts of Neu-Ulm and Günzburg. It acquired its current borders in the 1994 election.
Members
The constituency has been held continuously by the Christian Social Union (CSU) since its creation. It was first represented by Hans Schütz from 1949 to 1965, followed by Leo Wagner from 1965 to 1976. Theo Waigel, leader of the CSU from 1988 to 1999, was representative from 1976 to 2002. Georg Nüßlein was representative from 2002 to 2021. Nüßlein resigned from the CSU in March 2021 and served as an independent for the remainder of his term. He was succeeded by Alexander Engelhard in 2021.
Election results
2021 election
2017 election
2013 election
2009 election
Notes
References
Federal electoral districts in Bavaria
1949 establishments in West Germany
Constituencies established in 1949
Günzburg (district)
Neu-Ulm (district)
Unterallgäu
|
```java
/*
*
* All rights reserved. This program and the accompanying materials
*
* path_to_url
*/
package org.locationtech.jts.geom;
import org.locationtech.jts.geom.impl.CoordinateArraySequenceFactory;
import org.locationtech.jts.geom.impl.PackedCoordinateSequenceFactory;
import org.locationtech.jts.io.ParseException;
import org.locationtech.jts.io.WKTReader;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* Tests for {@link GeometryFactory}.
*
* @version 1.13
*/
public class GeometryFactoryTest extends TestCase {
PrecisionModel precisionModel = new PrecisionModel();
GeometryFactory geometryFactory = new GeometryFactory(precisionModel, 0);
WKTReader reader = new WKTReader(geometryFactory);
public static void main(String args[]) {
TestRunner.run(GeometryFactoryTest.class);
}
public GeometryFactoryTest(String name) { super(name); }
public void testCreateGeometry() throws ParseException
{
checkCreateGeometryExact("POINT EMPTY");
checkCreateGeometryExact("POINT ( 10 20 )");
checkCreateGeometryExact("LINESTRING EMPTY");
checkCreateGeometryExact("LINESTRING(0 0, 10 10)");
checkCreateGeometryExact("MULTILINESTRING ((50 100, 100 200), (100 100, 150 200))");
checkCreateGeometryExact("POLYGON ((100 200, 200 200, 200 100, 100 100, 100 200))");
checkCreateGeometryExact("MULTIPOLYGON (((100 200, 200 200, 200 100, 100 100, 100 200)), ((300 200, 400 200, 400 100, 300 100, 300 200)))");
checkCreateGeometryExact("GEOMETRYCOLLECTION (POLYGON ((100 200, 200 200, 200 100, 100 100, 100 200)), LINESTRING (250 100, 350 200), POINT (350 150))");
}
public void testCreateEmpty() {
checkEmpty( geometryFactory.createEmpty(0), Point.class);
checkEmpty( geometryFactory.createEmpty(1), LineString.class);
checkEmpty( geometryFactory.createEmpty(2), Polygon.class);
checkEmpty( geometryFactory.createPoint(), Point.class);
checkEmpty( geometryFactory.createLineString(), LineString.class);
checkEmpty( geometryFactory.createPolygon(), Polygon.class);
checkEmpty( geometryFactory.createMultiPoint(), MultiPoint.class);
checkEmpty( geometryFactory.createMultiLineString(), MultiLineString.class);
checkEmpty( geometryFactory.createMultiPolygon(), MultiPolygon.class);
checkEmpty( geometryFactory.createGeometryCollection(), GeometryCollection.class);
}
private void checkEmpty(Geometry geom, Class clz) {
assertTrue(geom.isEmpty());
assertTrue( geom.getClass() == clz );
}
public void testDeepCopy() throws ParseException
{
Point g = (Point) read("POINT ( 10 10) ");
Geometry g2 = geometryFactory.createGeometry(g);
g.getCoordinateSequence().setOrdinate(0, 0, 99);
assertTrue(! g.equalsExact(g2));
}
public void testMultiPointCS()
{
GeometryFactory gf = new GeometryFactory(new PackedCoordinateSequenceFactory());
CoordinateSequence mpSeq = gf.getCoordinateSequenceFactory().create(1, 4);
mpSeq.setOrdinate(0, 0, 50);
mpSeq.setOrdinate(0, 1, -2);
mpSeq.setOrdinate(0, 2, 10);
mpSeq.setOrdinate(0, 3, 20);
MultiPoint mp = gf.createMultiPoint(mpSeq);
CoordinateSequence pSeq = ((Point)mp.getGeometryN(0)).getCoordinateSequence();
assertEquals(4, pSeq.getDimension());
for (int i = 0; i < 4; i++)
assertEquals(mpSeq.getOrdinate(0, i), pSeq.getOrdinate(0, i));
}
/**
* CoordinateArraySequences default their dimension to 3 unless explicitly told otherwise.
* This test ensures that GeometryFactory.createGeometry() recreates the input dimension properly.
*
* @throws ParseException
*/
public void testCopyGeometryWithNonDefaultDimension() throws ParseException
{
GeometryFactory gf = new GeometryFactory(CoordinateArraySequenceFactory.instance());
CoordinateSequence mpSeq = gf.getCoordinateSequenceFactory().create(1, 2);
mpSeq.setOrdinate(0, 0, 50);
mpSeq.setOrdinate(0, 1, -2);
Point g = gf.createPoint(mpSeq);
CoordinateSequence pSeq = ((Point) g.getGeometryN(0)).getCoordinateSequence();
assertEquals(2, pSeq.getDimension());
Point g2 = (Point) geometryFactory.createGeometry(g);
assertEquals(2, g2.getCoordinateSequence().getDimension());
}
private void checkCreateGeometryExact(String wkt) throws ParseException
{
Geometry g = read(wkt);
Geometry g2 = geometryFactory.createGeometry(g);
assertTrue(g.equalsExact(g2));
}
private Geometry read(String wkt) throws ParseException
{
return reader.read(wkt);
}
}
```
|
The Battle of South Mills, also known as the Battle of Camden, took place on April 19, 1862 in Camden County, North Carolina as part of Union Army Maj. Gen. Ambrose E. Burnside's North Carolina expedition during the American Civil War.
Learning that the Confederates were building ironclads at Norfolk, Burnside planned an expedition to destroy the Dismal Swamp Canal locks to prevent transfer of the ships to Albemarle Sound. He entrusted the operation to Brig. Gen. Jesse L. Reno's command, which embarked on transports from Roanoke Island on April 18. By midnight, the convoy reached Elizabeth City and began disembarking troops.
On the morning of April 19, Reno marched north on the road to South Mills. At the crossroads a few miles below South Mills, elements of Col. Ambrose R. Wright's command delayed the Federals until dark. Reno abandoned the expedition and withdrew during the night to the transports at Elizabeth City. The transports carried Reno's troops to New Bern where they arrived on April 22. Union forces later pushed Confederate units out of the coastal areas, which they occupied for the duration of the war.
Notes
References
CWSAC Battle Summaries, National Park Service
CWSAC Report Update
Burnside's North Carolina Expedition
Battles of the Eastern Theater of the American Civil War
South Mills
Battle of South Mills
1862 in North Carolina
1862 in the American Civil War
April 1862 events
|
Steve Austin is an Australian dog trainer, who has been training dogs for over 30 years. He is renowned as one of Australia's top animal trainers, with a particular skill in dog behaviour and training. His lifetime in dog training has seen him train animals for quarantine, search and rescue, police work, and wildlife preservation, among other roles. He has also travelled internationally lecturing and training dogs.
Personal life
Steve Austin, as a 12-year-old, was given a puppy. This dog was called "Sooty", and he taught the dog to balance a schooner of beer on its head.
Austin and his wife, Vicki, previously owned Pet Resorts Australia in Dural and Terrigal, NSW, where they offered dog boarding and training.
Career
Austin was notably the National Detector Dog Trainer with the Australian Quarantine and Inspection Service for 10 years (1996–2006) where he pioneered training dogs to indicate materials that were potentially dangerous to Australia, particularly food products. He has also worked with state-branches of quarantine in several states.
Much of Austin's work has been around training dogs for scent detection and many of the dogs used for this work are rescued from shelter situations. He is recognized as being the trainer of Australia's first truffle detector dog in Tasmania. He has also been involved in training termite detector dogs. He has worked with the Californian Narcotic Drug Association and California Narcotic and Explosive Detector Dog Association on training dogs for narcotic detection. He has been involved in training dogs internationally, including New Caledonia Agricultural Detector Dog Unit.
In Australia, he has often trained dogs for environmental roles, including training dogs to locate cats and foxes in the Kimberley, WA, Australia, to locate rabbits and rodents, on Macquarie Island, Australia, and also to locate cane toads. He also trained fox detection dogs for Lane Cove Council, NSW. Fox detecting dogs have also been trained by Austin for use in Manly, New South Wales, and these dogs have also been trained to alert to little penguins, for conservation purposes. Similarly, he has trained dogs to alert to Murray River turtles. In Namibia, Africa, he has trained dogs to track cheetah scats.
Additionally, Austin has lectured to international audiences, including: American law enforcement agencies, at Sydney's Taronga Zoo, Mt Everest Kennel Club in Kathmandu, colleges throughout Japan, and Czech Republic Customs Detector Dog Unit. He has been involved with temperament assessing dogs in a variety of contexts, both in Australia and California.
Austin has owned and trained an Australian Obedience Champion and two field trial Champions, and also is licensed and active as a judge with the Australian National Kennel Club (ANKC) for these events. He once won the Sydney Royal Dog Obedience Utility Dog Section.
Methods
The main focus Steve utilises for training, are based on two operant conditioning quadrants.
1. Positive reinforcement: This is where the dog is rewarded for correct behaviour with a high value reward.
2. Negative punishment: This is applied with the dog doesn't do the required behaviour, where the reward is withheld or taken away.
Television appearances
He has made a number of television appearances on including ABC's Catalyst and other current affairs programs, Celebrity Dog School, Harry's Practice, 60 Minutes and The 7:30 Report. In 2011 he received much television exposure for his work in training rabbit and rodent indicating dogs for seabird preservation on Macquarie Island.
References
Dog trainers
Living people
Australian television personalities
Year of birth missing (living people)
|
Cañamaque is a municipality located in the province of Soria, Castile and León, Spain. According to the 2004 census (INE), the municipality has a population of 42 inhabitants.
References
Municipalities in the Province of Soria
|
```javascript
done: while (true) { break done }
```
|
Certamen de Guitarra flamenca is a flamenco guitar competition held Spain since 1986 to "the most impressive players of flamenco guitar". Previous winners include Pedro Javier González and Antonio Rey. The 2004 competition was held in the second week of December at the Teatro Villamarta in Jerez de la Frontera and the 2010 competition was held on 13-15 October 2010.
References
Flamenco awards
1986 establishments in Spain
Jerez de la Frontera
Andalusian culture
|
```java
Ternary operator
Distinction between `public` and `private` methods
Using Inheritance to reduce code repetition
Limit Accessibility of `Fields`
Implementing an `interface`
```
|
Arthur John "Artie" Gall (29 September 1885 – 19 September 1953) was an Australian rules footballer who played for the University Football Club in the Victorian Football League (VFL).
References
Sources
Holmesby, Russell & Main, Jim (2007). The Encyclopedia of AFL Footballers. 7th ed. Melbourne: Bas Publishing.
External links
1885 births
Australian rules footballers from Bendigo
University Football Club players
1953 deaths
|
```python
# -*- coding: utf-8 -*-
import logging
import os
import re
import subprocess
import traceback
import time
import datetime
#
def log(msg, level=logging.DEBUG):
logging.log(level, msg)
print('%s [%s], msg:%s' % (datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'), level, msg))
if level == logging.WARNING or level == logging.ERROR:
for line in traceback.format_stack():
print(line.strip())
for line in traceback.format_stack():
logging.log(level, line.strip())
#
def kill_ports(ports):
for port in ports:
log('kill %s start' % port)
popen = subprocess.Popen('lsof -i:%s' % port, shell=True, stdout=subprocess.PIPE)
(data, err) = popen.communicate()
log('data:\n%s \nerr:\n%s' % (data, err))
pattern = re.compile(r'\b\d+\b', re.S)
pids = re.findall(pattern, data.decode())
log('pids:%s' % str(pids))
for pid in pids:
if pid != '' and pid != None:
try:
log('pid:%s' % pid)
popen = subprocess.Popen('kill -9 %s' % pid, shell=True, stdout=subprocess.PIPE)
(data, err) = popen.communicate()
log('data:\n%s \nerr:\n%s' % (data, err))
except Exception as e:
log('kill_ports exception:%s' % e)
log('kill %s finish' % port)
time.sleep(1)
#
def make_dir(dir):
log('make dir:%s' % dir)
if not os.path.exists(dir):
os.makedirs(dir)
```
|
Robert Obst (born 6 July 1995) is a Polish professional footballer who plays as a centre-back for Gwardia Koszalin.
References
External links
Living people
1995 births
Footballers from Szczecin
Men's association football midfielders
Polish men's footballers
Polish expatriate men's footballers
Expatriate men's footballers in Germany
Ekstraklasa players
I liga players
II liga players
III liga players
Regionalliga players
Pogoń Szczecin players
Wigry Suwałki players
Ruch Chorzów players
Znicz Pruszków players
BSV Schwarz-Weiß Rehden players
Olimpia Grudziądz players
Kotwica Kołobrzeg (football) players
Gwardia Koszalin players
|
Borler is an Ortsgemeinde – a municipality belonging to a Verbandsgemeinde, a kind of collective municipality – in the Vulkaneifel district in Rhineland-Palatinate, Germany. It belongs to the Verbandsgemeinde of Kelberg, whose seat is in the like-named municipality.
Geography
The municipality lies some 14 km from the Nürburgring in the Vulkaneifel, a part of the Eifel known for its volcanic history, geographical and geological features, and even ongoing activity today, including gases that sometimes well up from the earth.
History
The village's street layout was extensively remodelled in 2006. The costs were to a great extent borne by Borler's citizens. All streets and paths were newly expanded. Streets with sidewalks, or pavements, on both sides were changed so that there was only one sidewalk. Leftover bits of land were given over to drought-resistant plants. The big playground in the middle of the village was converted to building land and replaced by a smaller playground behind the fire station. Today, many weekenders can be found in the village, including Belgians and people from the German urban agglomerations, such as the Ruhr area.
Once, agriculture shaped village life. By means of the Marshall Plan, a grassland and research institute was established in Borler. In the course of time, the institute, which was run by the Chamber of Agriculture, was abandoned. Until the 1980s, dairy cattle characterized the agriculture. The fodder was grown on the neighbouring meadows and cropfields around the village. There still is agriculture, but it is now commercially quite secondary.
Politics
Municipal council
The council is made up of 6 council members, who were elected by majority vote at the municipal election held on 7 June 2009, and the honorary mayor as chairman.
Coat of arms
The German blazon reads: Im geteilten Schild oben in Gold ein wachsender, doppelköpfiger, rot bewehrter, schwarzer Adler, unten in rot 5 (2:1:2) silberne Ringe.
The municipality's arms might in English heraldic language be described thus: Per fess Or a demi-eagle bicapitate sable armed gules and gules five annulets argent, two, one and two.
One might add the words “and langued” after “armed”, but the German blazon mentions nothing about the tongue's tincture.
On the Heyerberg near the village once stood a castle with a chapel and also an estate. Their owner was St. Maximin's Abbey in Trier, but the Abbey had enfeoffed the Knights of Heyer with them. History mentioned them with Wilhelm, Burgmann of Daun in 1359. The Knights’ arms showed the five rings, or annulets, in the quincunx pattern, and in Borler's arms, they appear in Electoral-Trier tinctures beneath the line of partition. Set into the chapel above the portal is a Rococo cartouche bearing St. Maximin's arms. These show the two-headed (“bicapitate”) eagle above and a chalice below, along with three stars. The arms come from the former estate building, now no longer standing, and the eagle now appears in Borler's arms above the line of partition.
Culture and sightseeing
Religion
The citizens of Borler are roughly 90% Roman Catholic. Borler belongs to the parish of Bodenbach. In the 1990s, the village chapel, consecrated to Saint Leonard, was extensively renovated both inside and out with the support of the Diocese of Trier and the Ortsgemeinde.
Heyerbergkapelle
The Heyerbergkapelle (also known as the Borler Kapelle) is a Romanesque Revival chapel built in 1875 some 1 200 m southeast of the village on the wooded Heyerberg (mountain). Before today's chapel, the old Heyerkirche (church) once stood on this same spot, even before 1600. It was a castle chapel and the gravesite for the Lords of Heyer. Right nearby stood the Electoral-Cologne Haus Heyer and the Electoral-Trier Hof Heyer. In the chapel, Saint Leonard, Saint Pancras and John the Baptist, whose statues are still preserved today, were revered. In the early 19th century, the chapel was first closed, and then in the years that followed, it was removed. Even the graveyard was closed in 1805, as Borler was part of the parish of Nohn, where the dead were thereafter buried.
In 1874, on Borler citizens’ initiative and with their donations, the new Heyerbergkapelle was built. The Romanesque Revival building with its semicircular apse was dedicated to Our Lady of Sorrows. At the church, restored in 1952, is a Way of the Cross, created in 1878, with 14 stations laid out with the distances proportional to the ones on the Via Dolorosa in Jerusalem.
Buildings
Saint Leonard's Catholic Church (branch church), Hauptstraße 3, aisleless church from 1752 to 1753, shaft cross from 1790, 1914-1918 warriors’ memorial
Bachgasse 3 – small timber-frame house, partly plastered
Hauptstraße 1 – timber-frame house, 18th-19th century, knee wall raised in the 20th century
Hauptstraße 10 – timber-frame house, partly solid, roof with half-hipped gables, latter half of the 18th century
Kapellenweg 3 – building with roof with half-hipped gables, apparently from 1825
Heyerbergkapelle or Borler Kapelle (see above), six small basalt crosses from 1761, 1756, 1699, 1779, 1699 and 1788
References
External links
Municipality’s official webpage
Borler in the collective municipality’s Web pages
Vulkaneifel
|
```yaml
---
# This file has been generated by `helm template datadog-agent datadog/datadog` from datadog/templates/hpa-external-metrics-rbac.yaml. Please re-run `generate.sh` rather than modifying this file manually.
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRole
metadata:
labels: {}
name: datadog-cluster-agent-external-metrics-reader
rules:
- apiGroups:
- "external.metrics.k8s.io"
resources:
- "*"
verbs:
- list
- get
- watch
---
# This file has been generated by `helm template datadog-agent datadog/datadog` from datadog/templates/hpa-external-metrics-rbac.yaml. Please re-run `generate.sh` rather than modifying this file manually.
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRoleBinding
metadata:
labels: {}
name: datadog-cluster-agent-external-metrics-reader
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: datadog-cluster-agent-external-metrics-reader
subjects:
- kind: ServiceAccount
name: horizontal-pod-autoscaler
namespace: kube-system
```
|
Gordoservon or Gordoserbon or Gordoserba (; ) was an early medieval Byzantine city, and a bishopric, suffragan of the Metropolis of Nicaea, in the region of Bithynia, Asia Minor. It is mentioned in several ecclesiastical sources from the period between the 7th and the 9th century. Most notably, the city is mentioned in the acts of the Council of Trullo (691-692), as a seat of bishop Isidore, who attended the council.
The exact location of this city, and etymology of its name, have been a subject of interest for scholars, who proposed several solutions for both questions.
History
In the 7th century, the Byzantine Emperors Constans II (in 657–658) and Justinian II (in 688–689) led expeditions against the Balkan Slavs as far as rivers Struma and Vardar in the region of Macedonia. Many of the conquered tribes were transferred to the Opsikion district of northwestern Asia Minor. Part of those Asia Minor Slavs deserted to the Arabs in 665 and again in 692. As the name of the city could suggest that among its founders were Serbs, some modern scholars consider that the colony was founded by these Slavs, and variously date it to 649, 667, 680, or 688–689. According to Sima Ćirković it is possible that some Serbs which populated Gordoservon were brought from an area near Thessaloniki.
Similarly, in 1129–1130 some Serbs were likely settled in Bithynia by John II Komnenos, due to the mention of a settlement called Servochōria () near Nicomedia, mentioned in the 13th century source Partitio regni Graeci (1204). Some identified Gordoserba with this Servochōria, but the connection is uncertain.
Up to the 20th century, Gordo-Servorum or Gordoservae was commonly equated with nova Juliopolis, which in turn was equated with Gordium (capital of Phrygia) or another place with the same name Gordion, Gordenorum, Gordiu-come(nis), Gordiū-tīchos which became known as Juliopolis (Iuliogordus) according to several 1st-century BCE up to 2nd century CE sources. William Mitchell Ramsay (1890) connected Justinianopolis-Mela, called Nova Justinianopolis Gordi (680), with the bishoprics of Gordoserboi or Gordoserba in Bithynia, Gordorounia or Gordorinia in Phrygia Salutaris, and Gordou-Kome, the former name of Juliopolis in Galatia, and that an ancient country or district along the Sangarios River was called Gordos. Additionally, he argued that Gordoserba was formed into bishopric by Justinian I in the 6th century. Siméon Vailhé, writing for the Catholic Encyclopedia (1913) considered, like Michel Le Quien, that Juliopolis of Nicaea of Bithynia was identical to Gordoserboi, because otherwise the exact location, titulars, and bishops are unknown; and that it should not be confused with Juliopolis of former Gordium.
However, Peter Charanis, analyzing the sources on the early Slavs of Asia Minor, noted that the sources are ambiguous on the exact date of migration, especially concerning Constans II, and that the first certain mention of the place is in 692, during the Quinisext Council, where was mentioned Isidore "ἀνάξιος ἐπίσκοπος Γορδοσέρβων τῆς Βιθυνῶν ἐπαρχίας" ("unworthy bishop of Gordoserba of the province of the Bithynians"). If the settlement is related to the Serbs then it contradicts the date of the Ecthesis of pseudo-Epiphanius (640), a list of cities and bishoprics which mentions Gordoservorum or Gordoserboi in the Metropolis of Nicaea in the province of Bithynia. Charanis and other scholars doubt the Slavic-Serbian origin of the city because among the known bishops (Isidoros, Neophytos, Stephanos) there are none with Slavic names, and due to the uncertainty around the etymology of the Serbian ethnonym.
Etymology
Ladislav Zgusta considered that "-serba" has nothing to do with Slavs and pointed to toponyms such as Άνάζαρβος and Ανάζαρβα Καμουή σαρβον (Anazarbus), while argued that if Gordoserba and Servochōria are identical then both cannot have a connection to John II Komnenos's activity in the 12th century, and contrary to Zgusta, Servochōria most probably means "Serbian land". Predrag Komatina also argued Serbian connection, but denied that "gordo-" derives from Proto-Slavic *gordъ (fortification, city) because Gordos was a name for a district where the settlement was situated and hence the meaning would have been "the place of the Gordos Serbs" rather than "the city of the Serbs".
References
Sources
Populated places of the Byzantine Empire
History of the Serbs
Populated places in Bithynia
Byzantine Bithynia
Defunct dioceses of the Ecumenical Patriarchate of Constantinople
|
Old Eyes is an album by multi-instrumentalist and composer Joe McPhee, recorded in 1979 and first released on the Swiss HatHut label in 1980. It was rereleased on CD in 1992 as Old Eyes & Mysteries with bonus tracks recorded in 1990.
Reception
Allmusic awarded the album 4 stars.
Track listing
All compositions by Joe McPhee
"Eroc Tinu" - 4:00
"Land Dance" - 12:45
"P / G / G"
"BCL / Cello""
"B / DM"
"TS / TS"
"Old Eyes" - 8:50
"Django" (John Lewis) - 14:25
"No Line" - 3:05
"Strings" - 7:10
"Women's Mysteries: Woman of Darkness" - 8:56 Bonus track on CD reissue
"Women's Mysteries: Woman of Passion" - 4:41 Bonus track on CD reissue
"Women's Mysteries: Woman of Lotus" - 5:02 Bonus track on CD reissue
"Women's Mysteries: Woman of Skies" - 5:28 Bonus track on CD reissue
Personnel
Joe McPhee - tenor saxophone, alto saxophone, flugelhorn, trumpet
Urs Leimgruber - tenor saxophone, soprano saxophone (tracks 7-10)
André Jaume - tenor saxophone, bass clarinet (tracks 1-6)
Raymond Boni, Steve Gnitka - guitar (tracks 1-6)
Jean-Charles Capon - cello (tracks 1-6)
Pierre-Yves Sorin - bass (tracks 1-6)
Milo Fine - piano, drums (tracks 1-6)
References
Joe McPhee albums
1980 albums
Hathut Records albums
|
The Askin–Cutler ministry (1968–1969) or Second Askin ministry was the 63rd ministry of the Government of New South Wales, and was led by the 32nd Premier, Bob Askin, of the Liberal Party in coalition with the Country Party, led by Charles Cutler. It was the second of six occasions when Askin was Premier; and when Cutler was Deputy Premier.
Background
Askin was elected to the New South Wales Legislative Assembly in 1950 and served continuously up until 1975, representing variously the seats of Collaroy and Pittwater. Rising through the Liberal Party ranks, Askin served as Deputy Leader from 1954 until he was elected Leader of the NSW Liberal Party and Leader of the NSW Opposition, following the defeat of the Morton/Hughes–led coalition by Cahill's Labor at the 1959 election. Cutler was elected to the NSW Legislative Assembly in 1947 and served continuously up until 1975, representing the seat of Orange. Elected Deputy Leader of the Country Party in 1958 and, like Askin, Cutler was elected as leader of his party following the 1959 state election, replacing Davis Hughes. The Askin/Cutler–led Liberal/Country coalition was defeated at the 1962 election by Labor's Bob Heffron. In April 1964 Jack Renshaw replaced Heffron as Leader of the Labor Party and became Premier. Twelve months later, Renshaw called an election held on 13 May 1965; however after 24 years of consecutive Labor governments, Askin and Cutler led the coalition to government at the 1965 state election.
The first Askin/Cutler ministry was commissioned from 1965 until the 1968 state election; when the coalition again won office.
Composition of ministry
This ministry covers the period from 5 March 1968 until 11 February 1969, when Askin and Cutler reconfigured the Liberal/Country ministry.
Ministers are members of the Legislative Assembly unless otherwise noted.
See also
Members of the New South Wales Legislative Assembly, 1968–1971
Members of the New South Wales Legislative Council, 1967–1970
Notes
References
New South Wales ministries
1968 establishments in Australia
1969 disestablishments in Australia
|
```smalltalk
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics.Contracts;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ReClassNET.Memory;
using ReClassNET.Native;
using ReClassNET.UI;
namespace ReClassNET.Forms
{
public partial class ProcessInfoForm : IconForm
{
private readonly IProcessReader process;
/// <summary>The context menu of the sections grid view.</summary>
public ContextMenuStrip GridContextMenu => contextMenuStrip;
public ProcessInfoForm(IProcessReader process)
{
Contract.Requires(process != null);
this.process = process;
InitializeComponent();
tabControl.ImageList = new ImageList();
tabControl.ImageList.Images.Add(Properties.Resources.B16x16_Category);
tabControl.ImageList.Images.Add(Properties.Resources.B16x16_Page_White_Stack);
modulesTabPage.ImageIndex = 0;
sectionsTabPage.ImageIndex = 1;
modulesDataGridView.AutoGenerateColumns = false;
sectionsDataGridView.AutoGenerateColumns = false;
// TODO: Workaround, Mono can't display a DataGridViewImageColumn.
if (NativeMethods.IsUnix())
{
moduleIconDataGridViewImageColumn.Visible = false;
}
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
GlobalWindowManager.AddWindow(this);
}
protected override void OnFormClosed(FormClosedEventArgs e)
{
base.OnFormClosed(e);
GlobalWindowManager.RemoveWindow(this);
}
#region Event Handler
private async void ProcessInfoForm_Load(object sender, EventArgs e)
{
var sectionsTable = new DataTable();
sectionsTable.Columns.Add("address", typeof(string));
sectionsTable.Columns.Add("size", typeof(string));
sectionsTable.Columns.Add("name", typeof(string));
sectionsTable.Columns.Add("protection", typeof(string));
sectionsTable.Columns.Add("type", typeof(string));
sectionsTable.Columns.Add("module", typeof(string));
sectionsTable.Columns.Add("section", typeof(Section));
var modulesTable = new DataTable();
modulesTable.Columns.Add("icon", typeof(Icon));
modulesTable.Columns.Add("name", typeof(string));
modulesTable.Columns.Add("address", typeof(string));
modulesTable.Columns.Add("size", typeof(string));
modulesTable.Columns.Add("path", typeof(string));
modulesTable.Columns.Add("module", typeof(Module));
await Task.Run(() =>
{
if (process.EnumerateRemoteSectionsAndModules(out var sections, out var modules))
{
foreach (var section in sections)
{
var row = sectionsTable.NewRow();
row["address"] = section.Start.ToString(Constants.AddressHexFormat);
row["size"] = section.Size.ToString(Constants.AddressHexFormat);
row["name"] = section.Name;
row["protection"] = section.Protection.ToString();
row["type"] = section.Type.ToString();
row["module"] = section.ModuleName;
row["section"] = section;
sectionsTable.Rows.Add(row);
}
foreach (var module in modules)
{
var row = modulesTable.NewRow();
row["icon"] = NativeMethods.GetIconForFile(module.Path);
row["name"] = module.Name;
row["address"] = module.Start.ToString(Constants.AddressHexFormat);
row["size"] = module.Size.ToString(Constants.AddressHexFormat);
row["path"] = module.Path;
row["module"] = module;
modulesTable.Rows.Add(row);
}
}
});
sectionsDataGridView.DataSource = sectionsTable;
modulesDataGridView.DataSource = modulesTable;
}
private void SelectRow_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
{
if (!(sender is DataGridView dgv))
{
return;
}
if (e.Button == MouseButtons.Right)
{
int row = e.RowIndex;
if (e.RowIndex != -1)
{
dgv.Rows[row].Selected = true;
}
}
}
private void contextMenuStrip_Opening(object sender, CancelEventArgs e)
{
var sourceControl = (sender as ContextMenuStrip)?.SourceControl;
e.Cancel = sourceControl == null || (sourceControl == modulesDataGridView && GetSelectedModule() == null) || (sourceControl == sectionsDataGridView && GetSelectedSection() == null);
}
private void setCurrentClassAddressToolStripMenuItem_Click(object sender, EventArgs e)
{
LinkedWindowFeatures.SetCurrentClassAddress(GetSelectedAddress(sender));
}
private void createClassAtAddressToolStripMenuItem_Click(object sender, EventArgs e)
{
LinkedWindowFeatures.CreateClassAtAddress(GetSelectedAddress(sender), true);
}
private void dumpToolStripMenuItem_Click(object sender, EventArgs e)
{
Func<SaveFileDialog> createDialogFn;
Action<IRemoteMemoryReader, Stream> dumpFn;
if (GetToolStripSourceControl(sender) == modulesDataGridView)
{
var module = GetSelectedModule();
if (module == null)
{
return;
}
createDialogFn = () => new SaveFileDialog
{
FileName = $"{Path.GetFileNameWithoutExtension(module.Name)}_Dumped{Path.GetExtension(module.Name)}",
InitialDirectory = Path.GetDirectoryName(module.Path)
};
dumpFn = (reader, stream) =>
{
Dumper.DumpModule(reader, module, stream);
MessageBox.Show("Module successfully dumped.", Constants.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
};
}
else
{
var section = GetSelectedSection();
if (section == null)
{
return;
}
createDialogFn = () => new SaveFileDialog
{
FileName = $"Section_{section.Start.ToString("X")}_{section.End.ToString("X")}.dat"
};
dumpFn = (reader, stream) =>
{
Dumper.DumpSection(reader, section, stream);
MessageBox.Show("Section successfully dumped.", Constants.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Information);
};
}
using var sfd = createDialogFn();
sfd.Filter = "All|*.*";
if (sfd.ShowDialog() != DialogResult.OK)
{
return;
}
try
{
using var stream = sfd.OpenFile();
dumpFn(process, stream);
}
catch (Exception ex)
{
Program.ShowException(ex);
}
}
private void sectionsDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
setCurrentClassAddressToolStripMenuItem_Click(sender, e);
Close();
}
#endregion
private IntPtr GetSelectedAddress(object sender)
{
if (GetToolStripSourceControl(sender) == modulesDataGridView)
{
return GetSelectedModule()?.Start ?? IntPtr.Zero;
}
return GetSelectedSection()?.Start ?? IntPtr.Zero;
}
private static Control GetToolStripSourceControl(object sender)
{
return ((sender as ToolStripMenuItem)?.GetCurrentParent() as ContextMenuStrip)?.SourceControl;
}
private Module GetSelectedModule()
{
var row = modulesDataGridView.SelectedRows.Cast<DataGridViewRow>().FirstOrDefault()?.DataBoundItem as DataRowView;
return row?["module"] as Module;
}
private Section GetSelectedSection()
{
var row = sectionsDataGridView.SelectedRows.Cast<DataGridViewRow>().FirstOrDefault()?.DataBoundItem as DataRowView;
return row?["section"] as Section;
}
}
}
```
|
Glenys Ann Beauchamp is a senior Australian public servant. She was a departmental secretary between 2010 and 2020, across multiple departments and portfolios.
Life and career
Beauchamp was awarded a Bachelor of Economics from the Australian National University in 1977.
Beauchamp began her Australian Public Service career as a Graduate in the Industry Commission, an agency that existed between 1990 and 1998 and was responsible for holding public inquiries and reporting on matters referred by the Government; and reporting annually on the economic performance of industry, and the effects of assistance and regulation on industry and the economy.
Before 2006, Beauchamp held a number of positions in the ACT Public Service, including Deputy Chief Executive, Department of Disability, Housing and Community Services and Deputy CEO, Department of Health.
Beauchamp rejoined the Australian Public Service in 2002, in the Department of Family and Community Services.
In January 2006, Beauchamp was appointed a Deputy Secretary in the Department of Families, Community Services and Indigenous Affairs.
Between February and August 2009, Beauchamp was responsible for coordinating a whole of government response to the Victorian bushfires, chairing the Commonwealth Victorian Bushfire Inter-Departmental Committee.
In December 2010, then Prime Minister Julia Gillard appointed Beauchamp to the position of Secretary of the Department of Regional Australia, Regional Development and Local Government, after Beauchamp had been acting in the position since the Department was established in September 2010. In February 2011, the Australian Government nominated Beauchamp to the board of the Queensland Reconstruction Authority.
In February 2020 before retiring, Beauchamp destroyed her notebooks that contained meeting notes relating to the Sports rorts affair (2020). This action was performed prior to a senate inquiry hearing where she would have been required to provide evidence of the scandal, leaving many Australians baffled.
Awards
Beauchamp was awarded a Public Service Medal in June 2010 for outstanding public service in coordinating the Australian Government's response to the 2009 Victorian bushfires. She was appointed an Officer of the Order of Australia in the 2023 Australia Day Honours.
References
Living people
Year of birth missing (living people)
Officers of the Order of Australia
Place of birth missing (living people)
Secretaries of the Australian Government Health Department
Recipients of the Public Service Medal (Australia)
Australian National University alumni
University of Canberra alumni
|
Sir Johannes Bjelke-Petersen (13 January 191123 April 2005), known as Joh Bjelke-Petersen or simply Sir Joh, was a conservative Australian politician. He was the longest-serving and longest-lived premier of Queensland, holding office from 1968 to 1987, during which time the state underwent considerable economic development. He has become one of the most well-known and controversial figures of 20th-century Australian politics because of his uncompromising conservatism (including his role in the downfall of the Whitlam federal government), political longevity, and the institutional corruption of his government.
Bjelke-Petersen's Country (later National) Party controlled Queensland despite frequently receiving a smaller number of votes than the state's two other major parties, achieving the result through a system of electoral malapportionment that resulted in rural votes having a greater value than those cast in city electorates. The system earned Bjelke-Petersen the nickname "the Hillbilly Dictator". Regardless, he was a highly popular figure among conservative voters and over the course of his 19 years as premier he tripled the number of people who voted for the CP and doubled the party's percentage vote. After the Liberal Party pulled out of the coalition government in 1983, Bjelke-Petersen reduced his former partners to a mere eight seats in an election held later that year. In 1985 Bjelke-Petersen launched a campaign to move into federal politics to become prime minister, though the campaign was eventually aborted.
Bjelke-Petersen earned himself a reputation as a "law and order" politician with his repeated use of police force against street demonstrators and strongarm tactics with trade unions, leading to descriptions of Queensland under his leadership as a police state. From 1987 his administration came under the scrutiny of a royal commission into police corruption and its links with state government ministers. Bjelke-Petersen was unable to recover from the series of damaging findings and after initially resisting a party vote that replaced him as leader, resigned from politics on 1 December 1987. Two of his state ministers, as well as the police commissioner Bjelke-Petersen had appointed and later knighted, were jailed for corruption offences and in 1991 Bjelke-Petersen, too, was tried for perjury over his evidence to the royal commission; the jury failed to reach a verdict as the jury foreman was a member of the Young Nationals and a member of the "Friends of Joh" group, and Bjelke-Petersen was deemed too old to face a second trial.
Early life
Bjelke-Petersen was born in Dannevirke which was part of the Hawke's Bay Region of New Zealand, (Now the Tararua District) and lived in Waipukurau, a small town in Hawke's Bay. The Australian Bjelke-Petersen family are of Danish descent.
Bjelke-Petersen's parents were both Danish immigrants, and his father, Carl (known to the family as George), was a Lutheran pastor. In 1913 the family moved to Australia, establishing a farm, "Bethany", near Kingaroy in south-eastern Queensland.
The young Bjelke-Petersen suffered from polio, leaving him with a lifelong limp. The family was poor, and Carl Bjelke-Petersen was frequently in poor health. Bjelke-Petersen left formal schooling at age 14 to work with his mother on the farm, though he later enrolled in correspondence school and undertook a University of Queensland extension course on the "Art of Writing". He taught Sunday school, delivered sermons regularly in nearby towns and joined the Kingaroy debating society.
In 1933, Bjelke-Petersen began work land-clearing and peanut farming on the family's newly acquired second property. His efforts eventually allowed him to begin work as a contract land-clearer and to acquire further capital which he invested in farm equipment and natural resource exploration. He developed a technique for quickly clearing scrub by connecting a heavy anchor chain between two bulldozers. By the time he was 30, he was a prosperous farmer and businessman. Obtaining a pilot's licence early in his adult life, Bjelke-Petersen also started aerial spraying and grass seeding to further speed up pasture development in Queensland.
After failing in a 1944 plebiscite against the sitting member to gain Country Party endorsement in the state seat of Nanango, based on Kingaroy, Bjelke-Petersen was elected in 1946 to the Kingaroy Shire Council, where he developed a profile in the Country Party. With the support of local federal member and shire council chairman Sir Charles Adermann and Sir Frank Nicklin, he gained Country Party endorsement for Nanango and was elected a year later at age 36, going on to give regular radio talks and becoming secretary of the local Nationals branch. He would hold this seat, renamed Barambah in 1950, for the next 40 years. The Labor Party had held power in Queensland since 1932 and Bjelke-Petersen spent eleven years as an opposition member.
Rise to power, 1952–1970
On 31 May 1952, Bjelke-Petersen married typist Florence Gilmour, who would later become a significant political figure in her own right.
In 1957, following a split in the Labor Party, the Country Party under Nicklin came to power, with the Liberal Party as a junior coalition partner. This was a reversal of the situation at the national level. Queensland is Australia's least centralised mainland state; the provincial cities between them have more people than the Brisbane area. In these areas, the Country Party was stronger than the Liberal Party. As a result, the Country Party had historically been the larger of the two non-Labor parties, and had been senior partner in the Coalition (until the parties merged) since 1925.
In 1963 Nicklin appointed Bjelke-Petersen as minister for works and housing, a portfolio that gave him the opportunity to bestow favours and earn the loyalty of backbenchers by approving construction of schools, police stations and public housing in their electorates. At various times, he also served as acting minister for education, police, Aboriginal and Island Affairs, local government and conservation and labour and industry. He would serve in cabinet without interruption until his retirement in 1987. Only Thomas Playford IV, who served in the South Australian cabinet without interruption from 1938 to 1965, served longer as a federal or state cabinet minister.
Nicklin retired in January 1968 and was succeeded as Premier and Country Party leader by Jack Pizzey; Bjelke-Petersen was elected unopposed as deputy Country Party leader. On 31 July 1968, after just seven months in office, Pizzey suffered a heart attack and died. Deputy Premier and Liberal leader Gordon Chalk was sworn in as caretaker premier. The Country Party had 27 seats in Parliament; the Liberals had 20. Nonetheless, there was some dispute over whether the Liberals should take senior status, which would have made Chalk premier in his own right. Matters were brought to a head when Bjelke-Petersen—elected Country Party leader within days of Pizzey's death—threatened to pull the Country Party out of the Coalition unless he became Premier. After seven days Chalk accepted the inevitable, and Bjelke-Petersen was sworn in as Premier on 8 August 1968. He remained Police Minister.
Conflict of interest, party revolt
Within months of becoming premier, Bjelke-Petersen encountered his first controversy over allegations of conflict of interest. In April 1959, while still a backbencher, he had paid £2 for an Authority to Prospect, giving him the right to search for oil over 150,000 km2 near Hughenden in far north Queensland. The next month he incorporated a company, Artesian Basin Oil Co. Pty Ltd, of which he was sole director and shareholder, and the same day entered an agreement to sell 51% of the company's shares to an American company for £12,650. The following day he sought the consent of Mines Minister Ernie Evans to transfer the oil search authority to Artesian for £2; the consent was given a week later.
When the Taxation Commissioner ruled that the £12,650 windfall from the £2 authority was a taxable profit, Bjelke-Petersen appealed, eventually taking the matter to the High Court. The appeal was dismissed, with Justice Taylor ruling that Bjelke-Petersen's six million percent gain from the £2 authority arose from "a profit-making undertaking". In 1962 Artesian transferred its Authority to Prospect to a new company, Exoil NL, for £190,000, and Bjelke-Petersen in turn bought a million shares in Exoil.
On 1 September 1968, three weeks after becoming premier, Bjelke-Petersen's government gave two companies, Exoil NL and Transoil NL—in both of which he was a major shareholder—six-year leases to prospect for oil on the Great Barrier Reef north of Cooktown. Opposition Leader Jack Houston revealed the Premier's financial involvement in the companies at a press conference in March 1969, where he asserted Bjelke-Petersen had gained "fabulous wealth" from the £2 prospecting authority, which had now mushroomed into Exoil shares worth AU$720,000. Bjelke-Petersen said he had done nothing wrong, but resigned his directorship of Artesian in favour of his wife.
The Country-Liberal coalition was returned to power at the 1969 Queensland election, with the state's system of electoral malapportionment delivering the Country Party 26 seats—a third of the parliament's 78 seats—from 21.1% of the primary vote, the Liberals taking 19 seats from 23.7% of the vote and the Labor Party's 45.1% share of the vote leaving it with 31 seats.
Further controversy followed. In June 1970 it was revealed that a number of Queensland government ministers and senior public servants, as well as Florence Bjelke-Petersen, had bought shares in the public float of Comalco, a mining company that had direct dealings with the government and senior ministers. The shares finished their first day of trading at double the price the ministers had paid. Bjelke-Petersen again rejected claims of a conflict of interest, but the Country Party state branch changed its policy to forbid the acceptance of preferential share offers by ministers or members of parliament.
In October, the Country Party lost a by-election in the Gold Coast seat of Albert, prompting several nervous MPs to make plans to oust Bjelke-Petersen as leader and replace him with Ron Camm. Bjelke-Petersen spent the night and the next morning calling MPs to bolster support, surviving a party room vote by a margin of one, after producing a proxy vote of an MP who was overseas and uncontactable. Plans by Country Party members to support a Labor Party vote of no confidence in parliament were quashed after the intervention of party president Robert Sparkes, who warned that anyone who voted against Bjelke-Petersen would lose their status as the party's candidate at the next election.
1971 state of emergency
Bjelke-Petersen seized on the controversial visit of the Springboks, the South African rugby union team, in 1971 to consolidate his position as leader with a display of force.
Springboks matches in southern states had already been disrupted by anti-apartheid demonstrations and a match in Brisbane was scheduled for 24 July 1971, the date of two Queensland by-elections. On 14 July Bjelke-Petersen declared a month-long state of emergency covering the entire state, giving the government almost unlimited power to quell what the government said was expected to be "a climax of violent demonstrations". Six hundred police were transported to Brisbane from elsewhere in the state.
In the week before the match, 40 trade unions staged a 24-hour strike, protesting against the proclamation. A crowd of demonstrators also mounted a peaceful protest outside the Springboks' Wickham Terrace motel and were chased on foot by police moments after being ordered to retreat, with many police attacking the crowd with batons, boots and fists. It was one of a series of violent attacks by police on demonstrators during the Springboks' visit to Queensland.
The football game was played to a crowd of 7000 behind a high barbed-wire fence without incident. The state of emergency, which gave the government the appearance of being strong-willed and decisive, helped steer the government to victory in both by-elections held on match day. Police Special Branch member Don Lane was one of those elected, becoming a political ally of the Premier.
Bjelke-Petersen praised police for their "restraint" during the demonstrations and rewarded the police union for its support with an extra week's leave for every officer in the state. He described the tension over the Springboks' tour as "great fun, a game of chess in the political arena". The crisis, he said, "put me on the map".
The following May—six months before the Labor Party's landslide victory at the 1972 Australian federal election under Gough Whitlam—the Country-Liberal coalition gained another comprehensive win at the 1972 Queensland state election: Bjelke-Petersen's party took 26 seats with 20% of the vote, the Liberals took 21 seats with a 22.2% share and Labor got 33 seats from 46.7%. It was the first state election to be fought following a 1971 electoral redistribution that added four seats to the parliament and created four electoral zones with a weightage towards rural seats, with the result that while Brisbane electorates averaged about 22,000 voters, some rural seats such as Gregory and Balonne had fewer than 7000.
Political ascendancy, 1971–78
From 1971, under the guidance of newly hired press secretary Allen Callaghan, a former Australian Broadcasting Corporation political journalist, Bjelke-Petersen developed a high level of sophistication in dealing with news media. He held daily media conferences where he joked that he "fed the chooks", established direct telex links to newsrooms where he could feed professionally written media releases and became adept at distributing press releases on deadline so journalists had very little chance to research news items. The Premier's public profile rose rapidly with the resulting media coverage. Bjelke-Petersen began regular media and parliamentary attacks on the Whitlam Labor government, vowing to have it defeated, and he and Whitlam exchanged frequent verbal barbs, culminating in the prime minister's 1975 description of the Queensland premier as "a Bible-bashing bastard ... a paranoic, a bigot and fanatical". The pair clashed over federal plans to halt the sale of Queensland coal to Japan, take over the administration of Aboriginal affairs, remove outback petrol subsidies and move the Australian border in the Torres Strait southwards to a point midway between Queensland and Papua New Guinea. Bjelke-Petersen also vehemently opposed the Whitlam government's proposal for Medicare, a publicly funded universal health care system. The battles helped to consolidate Bjelke-Petersen's power as he used the media to emphasise a distinctive Queensland identity he alleged was under threat from the "socialist" federal government.
The Queensland government bought a single-engine aircraft for the Premier's use in November 1971, upgrading it to a twin-engine aircraft in 1973 and even bigger model in 1975. Bjelke-Petersen, a licensed pilot, used it often to visit far-flung parts of the state to campaign and boost his public profile.
In April 1974, in a bid to broaden its appeal beyond rural voters, the Country Party changed its name to the National Party.
The Gair affair
In April 1974 Bjelke-Petersen outmanoeuvred Whitlam after the prime minister offered Democratic Labor Party senator Vince Gair, a bitter opponent of the government, the position of ambassador to Ireland as a way of creating an extra vacant Senate position in Queensland. Whitlam, who lacked a majority in the Senate, hoped Gair's seat would be won by his Labor Party. But when the arrangement was disclosed by newspapers before Gair had resigned from the Senate, the Opposition conspired to keep Gair away from the Senate President (to whom Gair had not yet given his resignation) and ensured he voted in a Senate debate late that night to avoid any move to backdate the resignation. At 5.15pm the Queensland Cabinet met to pass a "flying minute" and advised the Governor, Sir Colin Hannah, to issue writs for five, rather than six, vacancies, denying Labor the chance of gaining Gair's Senate spot. The intention was to have Gair's seat declared a casual vacancy, allowing Bjelke-Petersen to fill the vacancy until the next election.
Labor argued that Gair's appointment, and hence his departure from the senate, was effective from no later than when the Irish government accepted his appointment, in March. This was a matter of protracted debate in the Senate over many days, and was never resolved, but it was rendered irrelevant when Whitlam called a double dissolution of both Houses, in an election gamble he only narrowly won.
1974 state election
In October 1974 Bjelke-Petersen called an early election, setting the 1974 Queensland election for 7 December, declaring it would be fought on "the alien and stagnating, centralist, socialist, communist-inspired policies of the federal Labor government". The premier visited 70 towns and cities in the five-week campaign and attracted record crowds to public meetings. The result was a spectacular rout for the Labor Party, which was left with just 11 of the legislature's 82 seats after a 16.5 percent swing to the Coalition, leading observers to call Labor's caucus a "cricket team." The only seat Labor retained north of Rockhampton was Cairns, by fewer than 200 votes. The National Party, contesting its first state election under the new name and fielding candidates in just 48 seats, lifted its vote from 19.7 percent to 28 percent, creating a threat for the Liberal Party, and also picked up a number of city seats including its first in Brisbane, the eastern suburbs seat of Wynnum. The Nationals even managed to oust Labor leader Perc Tucker in his own seat. The Australian newspaper named Bjelke-Petersen, whom it described as the "undistinguished" Queensland premier, "Australian of the Year", citing "the singular impact he has exerted on national political life".
Role in the Whitlam dismissal
In 1975, Bjelke-Petersen played what turned out to be a key role in the political crisis that brought down the Whitlam government. When Queensland Labor Senator Bertie Milliner died suddenly in June 1975, Bjelke-Petersen requested from the Labor Party a short list of three nominees, from which he would pick one to replace Milliner. The ALP refused to supply such a list, instead nominating Mal Colston, an unsuccessful Labor candidate in the 1970 election, whom Bjelke-Petersen duly rejected. On 3 September Bjelke-Petersen selected political novice Albert Field, a long-time ALP member who was critical of the Whitlam government. Field's appointment was the subject of a High Court challenge and he was on leave from October 1975. During this period, the Coalition led by Malcolm Fraser declined to allot a pair to balance Field's absence. This gave the Coalition control over the Senate. Fraser used that control to obstruct passage of the Supply Bills through Parliament, denying Whitlam's by now unpopular government the legal capacity to appropriate funds for government business and leading to his dismissal as Prime Minister. During the tumultuous election campaign precipitated by Whitlam's dismissal by the governor-general John Kerr, Bjelke-Petersen alleged that Queensland police investigations had uncovered damaging documentation in relation to the Loans Affair. This documentation was never made public and these allegations remained unsubstantiated.
Taxation reform
Queensland was renowned for being the lowest taxed state in Australia for much of Bjelke-Petersen's tenure. Over heated objections by Treasurer Gordon Chalk, Bjelke-Petersen in 1977 announced the removal of state death duties, a move that cost his state $30 million in revenue. So many New South Wales and Victorian residents sought to establish their permanent address in Queensland as a result, boosting state coffers with stamp duty from property transactions, that other states followed suit within months and also abolished the tax. To help compensate for lost revenue, the government introduced football pools; four years later the government granted a casino licence on the Gold Coast, although this too was mired in allegations of corruption and favouritism.
Restriction of civil liberties, growth of police power
Issues of police powers and civil liberties, first raised at the time of the 1971 Springboks tour, resurfaced in July 1976 with a major street demonstration in which more than a thousand university students marched towards the Brisbane city centre to demand better allowances from the federal government. Police stopped the march in Coronation Drive and television cameras captured an incident during the confrontation in which a police inspector struck a 20-year-old female protester over the head with his baton, injuring her. When Police Commissioner Ray Whitrod announced he would hold an inquiry, a move supported by Police Minister Max Hodges, Bjelke-Petersen declared there would be no inquiry. He told reporters he was tired of radical groups believing they could take over the streets. Police officers passed a motion at a meeting commending the premier for his "distinct stand against groups acting outside the law" and censured Whitrod. A week later Bjelke-Petersen relieved Hodges of his police portfolio. Secure in the knowledge that they had the Premier's backing, police officers continued to act provocatively, most notably in a military-style raid on a hippie commune at the Cedar Bay commune in Far North Queensland late the following month. The police, who had been looking for marijuana, set fire to the residents' houses and destroyed their property.
Bjelke-Petersen rejected calls for an inquiry into the raid, declaring the government would believe the police and claiming the public clamour was "all part of an orchestrated campaign to legalise marijuana and denigrate the police". In defiance of the premier, Whitrod went ahead with an inquiry anyway and on 16 November ordered summonses be issued against four police officers on more than 25 charges, including arson. He chose the same day to announce that he was quitting his post. Whitrod claimed his resignation marked a victory for the forces of corruption, but said he had decided to quit rather than tolerate further political interference by the premier and new Police Minister Tom Newbery. Whitrod said Queensland showed signs of becoming a police state and he compared the growing political interference in law enforcement to the rise of the German Nazi state. Whitrod was replaced by Assistant Commissioner Terry Lewis, despite Whitrod's warning to the Police Minister that he was corrupt.
In 1977, Bjelke-Petersen announced that "the day of street marches is over", warning protesters, "Don't bother applying for a march permit. You won't get one. That's government policy now!" Liberal parliamentarians crossed the floor defending the right of association and assembly. One Liberal MP, Colin Lamont, told a meeting at the University of Queensland that the premier was engineering confrontation for electoral purposes and was confronted two hours later by an angry Bjelke-Petersen who said he was aware of the comments. Lamont later said he learned the Special Branch had been keeping files on Liberal rebels and reporting, not to their Commissioner, but directly to the Premier, commenting: "The police state had arrived." When, after two ugly street battles between police and right-to-march protesters, the Uniting Church Synod called on the government to change the march law, Bjelke-Petersen accused the clergy of "supporting communists". His attack sparked a joint political statement by four other major religious denominations, which was shrugged off by the premier.
The government's increasingly hardline approach to civil liberties prompted Queensland National Party president Robert Sparkes to warn the party that it was developing a dangerous "propaganda-created" ultra-conservative, almost fascist image. He told a party conference: "We must studiously avoid any statements or actions which suggest an extreme right-wing posture." Bjelke-Petersen ignored the advice. He condemned the use of Australian foreign aid to prop up communist regimes, urged Prime Minister Malcolm Fraser to stop criticising the governments of South Africa and Rhodesia and from 1977 proposed Queensland secede from Australia and establish its own currency. He also accused political opponents of being covert communists bent on chaos, observing: "I have always found ... you can campaign on anything you like but nothing is more effective than communism ... If he's a Labor man, he's a socialist and a very dangerous man."
Three weeks before the 1977 Queensland election, 400 demonstrators were arrested in what a Melbourne newspaper called "Joh's War". Aided by an electoral redistribution that removed two Liberal-held seats, the Nationals won 35 out of 82 seats, compared with 24 for the Liberals and 23 for a resurgent Labor Party. It was the first time in Queensland political history the Nationals had outpolled the Liberals. Bjelke-Petersen used the party's strength to move key Cabinet posts that had long held by the Liberals into the hands of National Party ministers. In October 1978 thousands of demonstrators again attempted to defy anti-march laws with a protest march in Albert St, Brisbane, which was again repulsed by police lined five deep. In a Brisbane byelection a month later National Party support slumped to just 10 percent, half of what party strategists had expected. But by the end of 1978, both the state Liberal and Labor parties had new parliamentary leaders—the fourth Labor opposition leader during Bjelke-Petersen's reign and the third Liberal leader.
Disintegration of National–Liberal coalition, 1980–86
Florence Bjelke-Petersen was elected to the Senate in October 1980 as a National Party member and six weeks later Joh was successful for a fifth time as premier at the 1980 Queensland election, with the Nationals converting a 27.9 percent primary vote—their highest ever—into 35 of the parliament's 82 seats, or 43 percent of seats. It also created a record 13-seat lead over their coalition partners, the Liberals, who had campaigned by offering Queenslanders an alternative style of moderate government.
The Nationals picked up all four Gold Coast seats and all those on the Sunshine Coast. Once again the premier took advantage of his party's dominance over the Liberals in Cabinet, this time demanding that the seven Liberal ministers sign a coalition agreement in which they promised unquestioned allegiance to Cabinet decisions. The move turned the Nationals' 35 votes to a guaranteed majority of 42 in the House, effectively neutralising any potential opposition by the 15 Liberal backbenchers.
Bjelke-Petersen began making appointments, including judges and the chairmanship of the Totalisator Agency Board, that had traditionally been the domain of Liberal ministers, and accusations arose of political interference and conflicts of interest as mining contracts, casino licences and the rights to build shopping complexes were awarded to business figures with National Party links. Accusations of political interference also arose when police released without charge TAB chairman Sir Edward Lyons, a National Party trustee and close friend of Bjelke-Petersen, after a breathalyser test showed he was driving with more than double the legal blood alcohol limit.
Relations with the Liberal Party continued to deteriorate. By August 1983, after 26 years of coalition, they had reached their nadir. Bjelke-Petersen was angered by a Liberal Party bid to establish a public accounts committee to examine government expenditure. Shortly afterward, Liberal leader Llew Edwards was ousted in a party room coup by Terry White, who had long advocated a greater role for the Liberals in the Coalition. Bjelke-Petersen refused to give Edwards' old post of deputy premier to White, choosing instead to adjourn parliament—which had sat for just 15 days that year—declined to say when it would sit again, and insisted he could govern alone without the need of a coalition, commenting: "The government of Queensland is in very, very good hands." Labor leader Tom Burns said the closure of parliament showed "that no rules exist in the state of Queensland." In a fortnight of political crisis, Bjelke-Petersen defied an ultimatum by Liberal parliamentarians to accept their leader in Cabinet, prompting White to tear up the Coalition agreement and lead the Liberals to the crossbench.
Watching with satisfaction as the Liberal Party engaged in vitriolic infighting, Bjelke-Petersen called an election for 22 October, claiming: "I really believe we can govern Queensland in our own right." The campaign coincided with the launch of an "official" Bjelke-Petersen biography, Jigsaw, which lauded him as a "statesman extraordinaire" and "protectorate of Queensland and her people". Further rubbing salt in the wounds of his former coalition partners, his campaign was boosted by the support of prominent Liberals from other states including Tasmanian premier Robin Gray and former Victorian and NSW premiers Sir Henry Bolte and Tom Lewis. The Nationals also poured significant resources into Brisbane-area Liberal seats, seeing a chance to not only win government in their own right, but destroy their former Liberal partners.
Three months before his 73rd birthday, Bjelke-Petersen and his party recorded a resounding victory, attracting 38.9 percent of the primary vote to give them exactly half the parliament's 82 seats, just one short of a majority. Labor, with 44 percent of the vote, won 32 seats. The Liberals were decimated, losing all but eight of their 21 seats. Bjelke-Petersen openly urged Liberals to cross the floor to the Nationals in hopes of getting an outright majority. Just three days later, two Liberals—former ministers Don Lane and Brian Austin—took up Bjelke-Petersen's offer and joined the Nationals in return for seats in cabinet. With Lane and Austin's defections, the National Party was able to form a majority government for the first time at the state level in Australia.
In 1984 Bjelke-Petersen was created a Knight Commander of the Order of St Michael and St George (KCMG) for "services to parliamentary democracy". Author Evan Whitton suggests the premier had made the nomination himself.
In 1985 Bjelke-Petersen unveiled plans for another electoral redistribution to create seven new seats in four zones: four in the state's populous south-east (with an average enrolment of 19,357 electors per seat) and three in country areas (with enrolments as low as 9386). The boundaries were to be drawn by electoral commissioners specially appointed by the government; one of them, Cairns lawyer Sir Thomas Covacevich, was a fundraiser for the National Party. The malapportionment meant that a vote in the state's west was worth two in Brisbane and the provincial cities. A University of Queensland associate professor of government described the redistribution as "the most criminal act ever perpetrated in politics ... the worst zonal gerrymander in the history of the world" and the most serious action of Bjelke-Petersen's political career.
A "Joh for PM" campaign was conceived in late 1985, driven largely by a group of Gold Coast property developers, promoting Bjelke-Petersen as the most effective conservative challenger to Labor Prime Minister Bob Hawke, and at the 1986 Queensland election he recorded his biggest electoral win ever, winning 49 of the state's 89 seats with 39.6 percent of the primary vote. The ALP's 41.3 percent share of the vote earned it 30 seats, while the Liberal Party won the remaining 10 seats. In his victory speech, Bjelke-Petersen declared the Nationals had prevailed over the "three forces" who had opposed it: "We had the ALP organisation with its deceits, deception and lies, we had the media encouraging and supporting them, and we had the Liberal Party ... our assault on Canberra begins right now."
It was the seventh and final electoral victory of the Bjelke-Petersen era. In January 1987 the premier handed control of the state to Deputy Premier Bill Gunn and announced he would seek election to the House of Representatives, formally embarking on his "Joh for Canberra" push. By early 1987 the campaign, with its promise of a 25 percent flat tax, was attracting the support of 20 per cent of voters in opinion polls.
Downfall and resignation: 1987
In late 1986, two journalists, the ABC's Chris Masters and The Courier-Mail's Phil Dickie, independently began investigating the extent of police and political corruption in Queensland and its links to the National Party state government. Dickie's reports, alleging the apparent immunity from prosecution enjoyed by a group of illegal brothel operators, began appearing in early 1987; Masters' explosive Four Corners investigative report on police corruption entitled The Moonlight State aired on 11 May 1987. Within a week, Acting Premier Gunn decided to initiate a wide-ranging Commission of Inquiry into police corruption, despite opposition from Bjelke-Petersen. Gunn selected former Federal Court judge Tony Fitzgerald as its head. By late June, the terms of inquiry of what became known as the Fitzgerald Inquiry had been widened from members of the force to include "any other persons" with whom police might have been engaged in misconduct since 1977.
On 27 May 1987, Prime Minister Hawke called a federal election for 11 July, catching Bjelke-Petersen unprepared. The premier had flown to the United States two days earlier and had not yet nominated for a federal seat; on 3 June he abandoned his ambitions to become prime minister and resumed his position in the Queensland government. The announcement came too late for the non-Labor forces, as Bjelke-Petersen had pressured the federal Nationals to pull out of the Coalition. Due to a number of three-cornered contests, Labor won a sweeping victory.
Fitzgerald began his formal hearings on 27 July 1987, and a month later the first bombshells were dropped as Sgt Harry Burgess—accused of accepting $221,000 in bribes since 1981—implicated senior officers Jack Herbert, Noel Dwyer, Graeme Parker and Commissioner Terry Lewis in complex graft schemes. Other allegations quickly followed, and on 21 September Police Minister Gunn ordered Lewis—knighted in 1986 at Bjelke-Petersen's behest and now accused of having taken $663,000 in bribes—to stand down.
The ground had begun to shift out from under Bjelke-Petersen's feet even before the hearings began. The first allegations of corruption prompted the Labor opposition to ask the Governor, Sir Walter Campbell, to use his reserve power to sack Bjelke-Petersen. His position deteriorated rapidly; ministers were openly opposing him in Cabinet meetings, which had been almost unthinkable for most of his tenure.
Throughout 1986, Bjelke-Petersen had pushed for approval of construction of the world's tallest skyscraper in the Brisbane CBD, which had been announced in May. The project, which had not been approved by the Brisbane City Council, enraged his backbenchers. During a party meeting, MP Huan Fraser confronted Bjelke-Petersen, saying "I know there is a bloody big payoff to you coming as a result of this. You're a corrupt old bastard, and I'm not going to cop it."
By this time, Sparkes had also turned against Bjelke-Petersen, and was pressuring him to retire. On 7 October, Bjelke-Petersen announced he would retire from politics on 8 August 1988, the 20th anniversary of his swearing-in.
Six weeks later, on 23 November 1987, Bjelke-Petersen visited Campbell and advised him to sack the entire Cabinet and appoint a new one with redistributed portfolios. Under normal circumstances, Campbell would have been bound by convention to act on Bjelke-Petersen's advice. However, Campbell persuaded Bjelke-Petersen to limit his demand to ask for the resignations of those ministers he wanted removed. Bjelke-Petersen then demanded the resignation of five of his ministers, including Gunn and Health Minister Mike Ahern. All refused. Gunn, believing Bjelke-Petersen intended to take over the police portfolio and terminate the Fitzgerald Inquiry, announced he would challenge for the leadership. Bjelke-Petersen persisted regardless and decided to sack three ministers—Ahern, Austin and Peter McKechnie—on the grounds of displaying insufficient loyalty.
The next day, Bjelke-Petersen formally advised Campbell to sack Ahern, Austin and McKechnie and call an early election. However, Ahern, Gunn and Austin told Campbell that Bjelke-Petersen no longer had enough parliamentary support to govern. While Campbell agreed to the ouster of Ahern, Gunn and Austin, he was reluctant to call fresh elections for a legislature that was only a year old. He thus concluded that the crisis was a political one in which he should not be involved. He also believed that Bjelke-Petersen was no longer acting rationally. After Bjelke-Petersen refused numerous requests for a party meeting, the party's management committee called one for 26 November. At this meeting, a spill motion was carried by a margin of 38–9. Bjelke-Petersen boycotted the meeting, and thus did not nominate for the ensuing leadership vote, which saw Ahern elected as the new leader and Gunn elected as deputy.
Ahern promptly wrote to Campbell seeking to be commissioned as premier. This normally should have been a pro forma request, given the Nationals' outright majority. However, Bjelke-Petersen insisted he was still premier, and even sought the support of his old Liberal and Labor foes in order to stay in office. However, even with the combined support of the Liberals and Labor plus Bjelke-Petersen's own vote, Bjelke-Petersen would have needed at least four Nationals floor-crossings to keep his post. Despite Bjelke-Petersen's seemingly tenuous position, Campbell had received legal advice that he could sack Bjelke-Petersen only if he tried to stay in office after being defeated in the legislature. This was per longstanding constitutional practice in Australia, which calls for a first minister (Prime Minister at the federal level, premier at the state level, chief minister at the territorial level) to stay in office unless he resigns or is defeated in the House.
The result was a situation in which, as the Sydney Morning Herald put it, Queensland had a "Premier who is not leader" and the National Party a "Leader who is not Premier". The crisis continued till 1 December, when Bjelke-Petersen announced his retirement from politics. He declared: The policies of the National Party are no longer those on which I went to the people. Therefore I have no wish to lead the Government any longer. It was my intention to take this matter to the floor of State Parliament. However, I now have no further interest in leading the National Party any further.Three months later, Bjelke-Petersen called on voters at the federal by-election in Groom to support the Liberal candidate instead of the National contestant. Bjelke-Petersen said the Nationals had lost their way and turned their backs on traditional conservative policies.
Aftermath: 1988–2003
In February 1988, the Australian Broadcasting Tribunal announced a hearing into the suitability of entrepreneur Alan Bond, the owner of the Nine TV network, to hold a broadcasting licence. The investigation centered on the network's $400,000 payout to Bjelke-Petersen in 1985 to settle a defamation action launched by the premier in 1983. Bond had made the payment (negotiated from an initial $1 million claim) soon after buying the network and a major Queensland brewery and claimed in a later television interview that Bjelke-Petersen told him he would need to make the payment if he wished to continue business in Queensland. (In April 1989 the broadcasting tribunal found that Bjelke-Petersen had placed Bond in a position of "commercial blackmail".)
Bjelke-Petersen was called to the Fitzgerald corruption inquiry on 1 December 1988, where he said that, despite allegations raised in the media and parliament, he had held no suspicion in the previous decade of corruption in Queensland. He said a Hong Kong businessman's 1986 donation of $100,000 to an election slush fund—delivered in cash at the premier's Brisbane office—was not unusual, and that he did not know the identity of other donors who had left sums of $50,000 and $60,000 in cash at his office on other occasions. Questioned by barrister Michael Forde, Bjelke-Petersen—whose citation for his 1984 knighthood noted that he was "a strong believer in historic tradition of parliamentary democracy"—was also unable to explain the doctrine of separation of powers under the Westminster system.
Under Ahern (1987–89) and Russell Cooper (1989), the Nationals were unable to overcome the damage from the revelations about the massive corruption in the Bjelke-Petersen government. At the 1989 state election, Labor swept the Nationals from power in a 24-seat swing—at the time, the worst defeat of a sitting government since responsible government was introduced in Queensland.
As a result of the Fitzgerald inquiry, Lewis was tried, convicted, and jailed on corruption charges. He was later stripped of his knighthood and other honours. A number of other officials, including ministers Don Lane and Austin were also jailed. Another former minister, Russ Hinze, died while awaiting trial.
In 1991 Bjelke-Petersen faced criminal trial for perjury arising out of the evidence he had given to the Fitzgerald inquiry (an earlier proposed charge of corruption was incorporated into the perjury charge). Bjelke-Petersen's former police Special Branch bodyguard Sergeant Bob Carter told the court that in 1986 he had twice been given packages of cash totalling $210,000 at the premier's office. He was told to take them to a Brisbane city law firm and then watch as the money was deposited in a company bank account. The money had been given over by developer Sng Swee Lee, and the bank account was in the name of Kaldeal, operated by Sir Edward Lyons, a trustee of the National Party. John Huey, a Fitzgerald Inquiry investigator, later told Four Corners: "I said to Robert Sng, 'Well what did Sir Joh say to you when you gave him this large sum of money?' And he said, "All he said was, 'thank you, thank you, thank you'." The jury could not agree on a verdict. In 1992 it was revealed that the jury foreman, Luke Shaw, was a member of the Young Nationals and was identified with the "Friends of Joh" movement. A special prosecutor announced in 1992 there would be no retrial because Bjelke-Petersen, then aged 81, was too old. Developer Sng Swee Lee refused to return from Singapore for a retrial. Bjelke-Petersen said his defence costs sent him broke.
Bjelke-Petersen's memoirs, Don't You Worry About That: The Joh Bjelke-Petersen Memoirs, were published the same year. He retired to Bethany where his son John and wife Karyn set up bed and breakfast cottages on the property. He developed progressive supranuclear palsy, a condition similar to Parkinson's disease.
In 2003, he lodged a $338 million compensation claim with the Queensland Labor government for loss of business opportunities resulting from the Fitzgerald inquiry. The claim was based on the assertion that the inquiry had not been lawfully commissioned by state cabinet and that it had acted outside its powers. The government rejected the claim; in his advice to the government, tabled in parliament, Crown Solicitor Conrad Lohe recommended dismissing the claim and said Bjelke-Petersen was "fortunate" not to have faced a second trial.
Electoral history
Death
Bjelke-Petersen died in St Aubyn's Hospital in Kingaroy in April 2005, aged 94, with his wife and family members by his side. He received a State Funeral, held in Kingaroy Town Hall, at which the then Prime Minister, John Howard, and Queensland Premier, Peter Beattie were speakers.
Beattie, who had been sued by Bjelke-Petersen for defamation and was arrested during the 1971 Springbok tour protests, said: "I think too often in the adversarial nature of politics we forget that behind every leader, behind every politician, is indeed a family and we shouldn't forget that."
As the funeral was taking place in Kingaroy, about 2000 protesters gathered in Brisbane to "ensure that those who suffered under successive Bjelke-Petersen governments were not forgotten". Protest organiser Drew Hutton said "Queenslanders should remember what is described as a dark passage in the state's history."
Bjelke-Petersen was buried "beside his trees that he planted and he nurtured and they grew" at the Kingaroy
family property, called "Bethany".
The Bjelke-Petersen Dam in Moffatdale in the South Burnett Region is named after him.
Malapportionment
Bjelke-Petersen's government was kept in power in part due to an electoral malapportionment where rural electoral districts had significantly fewer enrolled voters than those in metropolitan areas. This system was introduced by the Labor Party in 1949 as an overt electoral fix in order to concentrate its base of voters in regional towns and rural areas in as many districts as possible. Under Nicklin the bias in favour of rural constituencies was maintained, but reworked to favour the Country and Liberal parties by carving new Country-leaning seats in the hinterlands of provincial areas and Liberal-leaning seats in Brisbane.
The bias worked to Bjelke-Petersen's benefit in his first election as premier, in 1969. His Country Party won only 21 percent of the primary vote, finishing third behind Labor and the Liberals. However, due to the Country Party's heavy concentration of support in the provincial and rural zones, it won 26 seats, seven more than the Liberals. Combined, the Coalition had 45 seats out of 78, enough to consign Labor to opposition even though it finished percentage points ahead of the Coalition on the two-party vote. While in opposition, Bjelke-Petersen had vehemently criticised the 1949 redistribution, claiming that Labor was effectively telling Queenslanders, "Whether you like it or not, we will be the government."
In 1972, Bjelke-Petersen strengthened the system to favour his own party. To the three existing electoral zones—metropolitan Brisbane, provincial and rural—was added a fourth zone, the remote zone. The seats in this area had even fewer enrolled electors than seats in the rural zone—in some cases, as few as a third of the enrolled electors in a typical Brisbane seat. This had the effect of packing Labor support into the Brisbane area and the provincial cities. On average, it took only 7,000 votes to win a Country/National seat, versus 12,000 for a Labor seat. This gross distortion led to his opponents referring to it as the "Bjelkemander", a play on the term "gerrymander". The 1985 proposal would have made the malapportionment even more severe, to the point that a vote in Brisbane would have only been worth half a country vote. The lack of a state upper house (which Queensland had abolished in 1922) allowed legislation to be passed without the need to negotiate with other political parties.
Character and attitudes
Authoritarianism
Queensland political scientist Rae Wear described Bjelke-Petersen as an authoritarian who treated democratic values with contempt and was intolerant and resentful of opposition, yet who also demonstrated a down-home charm and old-fashioned courtesies as well as kindness to colleagues. Those who worked closely with him described him as stubborn with a propensity to fly into rages in which he would "rant and rave like Adolf Hitler", creating "fantastic performances" as he shook with rage, becoming increasingly incoherent. Many of his National Party colleagues were in terror of him on such occasions. Raised by migrant parents in spartan rural surroundings, he combined a strong work ethic with an ascetic lifestyle that was strongly shaped by his Lutheran upbringing. As a young man Bjelke-Petersen lived alone for 15 years in an old cow bail with a leaky bark roof and only the most basic of facilities. He had a lifelong habit of hard work and long days and while premier often slept for just four hours a night. He valued "the School of Life, the hard knocks of life" more than formal education and showed little respect for academics and universities, although he accepted an honorary doctorate of Laws from the University of Queensland in May 1985, prompting criticism from both students and staff. Wear dismissed Bjelke-Petersen's claim that he was a reluctant and accidental entrant into state politics, concluding that he "seized opportunity whenever it presented and held tenaciously to power", and was later willing to use any device to remain premier. She said that although Bjelke-Petersen denied ever knowing anything about corruption, "the evidence suggests this is untrue. He ignored it because to acknowledge its presence was to hand a weapon to his political enemies and because he was prepared to trade off corruption for police loyalty".
Biographers have suggested that Bjelke-Petersen, raised under a resented patriarch, himself came to play the strong patriarch, refusing to be accountable to anyone: "Rather than explaining himself or answering questions, he demanded to be taken on trust." He believed God had chosen him to save Australia from socialism and also had a profound sense of Christian conscience that he said guided political decisions, explaining, "Your whole instinct cries out whether it's good or bad." A cousin of Bjelke-Petersen said the premier "has an inner certainty that he knows the answers to our political and social woes" and as a good Christian expected to be trusted, thus needing no constitutional checks and balances.
Relations with the media
Guided by media adviser Allen Callaghan, with whom he worked from 1971 to 1979, Bjelke-Petersen was an astute manager of news media. He made himself available to reporters and held daily press conferences where he "fed the chooks". Callaghan released a steady stream of press releases, timing them to coincide with periods when news editors were most desperate for news. For most of Bjelke-Petersen's premiership, Queensland newspapers were supportive of his government, generally supporting the police and government on the street march issue, while Brisbane's Courier-Mail endorsed the return of the coalition government at every state election between 1957 and 1986.
According to Rae Wear, Bjelke-Petersen demanded total loyalty of the media and was unforgiving and vindictive if reporting was not to his satisfaction. In 1984, he reacted to a series of critical articles in the Courier-Mail by switching the government's million-dollar classified advertising account to the rival Daily Sun. He banned a Courier-Mail reporter who was critical of his excessive use of the government aircraft and Wear claims other journalists who wrote critical articles became the subject of rumour-mongering, were harassed by traffic police, or found that "leaks" from the government dried up. Journalists covering industrial disputes and picketing were also afraid of arrest. In 1985, the Australian Journalists Association withdrew from the system of police passes because of police refusal to accredit certain journalists. Journalists, editors and producers were also deterred from critical stories by Bjelke-Petersen's increasing use of defamation actions in order to try to "stop talk about a corrupt government". Queensland historian Ross Fitzgerald was threatened with criminal libel in 1984 when he sought to publish a critical history of the state. The premier and his ministers launched 24 defamation actions against the Opposition leader and Labor Party and trade union figures, with 14 of them publicly funded. He saw no role for the media in making government accountable, telling the Australian Financial Review in 1986: "The greatest thing that could happen to the state and the nation is when we get rid of the media. Then we would live in peace and tranquillity and no one would know anything."
Callaghan's advice to Bjelke-Petersen included the recommendation that he maintain his rambling style of communication with mangled syntax, recognising it added to his homespun appeal to ordinary people and also allowed him to avoid giving answers. His catchphrase response to unwelcome queries was, "Don't you worry about that", a phrase that was used as the title of his 1990 memoir. Wear wrote: "His verbal stumbling communicated decent simplicity and trustworthiness and, in order to enhance his popular appeal, Bjelke-Petersen appears to have exaggerated, or at least not tried to rid himself of, his famous speaking style."
Heritage and environment
The premier showed little concern for heritage and environmental issues, attracting widespread public fury over the 1979 demolition of Brisbane's historic Bellevue Hotel and favouring oil drilling on the Great Barrier Reef and sand mining on Moreton Island. He opposed the expansion of Aboriginal land rights, barred state officials from meeting World Council of Churches delegates who were studying the treatment of Aborigines in Queensland and demonstrated a strong moralistic streak, banning Playboy magazine, opposing school sex education and condom vending machines and in 1980 proposing a ban on women flying south for abortions. In May 1985 the government conducted a series of raids on so-called abortion clinics.
Industrial relations
Bjelke-Petersen had a confrontational approach to industrial relations. As a backbencher he had made clear his opposition to unions and the 40-hour week and in 1979 he pushed for legislation that would lead to the lifetime loss of a driver's licence for union members using their own vehicles to organise strikes.
For four days in 1981, Queensland power workers had been using rotating blackouts and restrictions as a means of pressure. Bjelke-Petersen responded by closing licensed clubs and hotels and publishing the names and addresses of the 260 involved workers, with the aim of inspiring members of the public to harass them. The intimidation tactic worked and the union resumed normal work schedules within 15 minutes of government ads arriving in Brisbane newspapers. "I believe the Government now knows how in the future to approach such disputes in essential services", said Bjelke-Petersen.
In 1982 he ordered the dismissal of teachers who were conducting rolling stoppages on the issue of class sizes. The same year he invoked the Essential Services Act to declare a state of emergency when government blue-collar workers launched industrial action to support a 38-hour week.
His biggest showdown with unions came in February 1985 when electrical workers, opposing the increasing use of contract labour in their industry, placed a ban on performing routine maintenance. Bjelke-Petersen ordered the shutdown of several of the states generators. That led to two weeks of blackouts. The government declared a state of emergency on 7 February, sacked as many as 1100 striking workers but offered their jobs back if they would sign a no-strike clause and work a 40-hour week; most accepted but 400 lost their jobs and superannuation. Labor compared the government with the Nazi regime, calling the new laws "police-state legislation".
Aboriginal people
Bjelke-Petersen believed that he and his government knew what was best for Aboriginal Australians. He excused racially discriminatory legislation as a protective measure and generally supported Aboriginal self-determination at least partly as striking a blow against the monolithic centralism of Canberra under Labor.
In June 1976, Bjelke-Petersen blocked the proposed sale of a pastoral property on the Cape York Peninsula to a group of Aboriginal people, because according to cabinet policy, "The Queensland Government does not view favourably proposals to acquire large areas of additional freehold or leasehold land for development by Aborigines or Aboriginal groups in isolation." This dispute resulted in the case of Koowarta v Bjelke-Petersen, which was decided partly in the High Court in 1982, and partly in the Supreme Court of Queensland in 1988. The courts found that Bjelke-Petersen's policy had discriminated against Aboriginal people.
In 1978, the Uniting Church supported Aborigines at Aurukun and Mornington Island in their struggle with the Queensland Government after it granted a 1900 square kilometre mining lease to a mining consortium under extremely favourable conditions. The Aurukun people challenged the legislation, winning their case in the Supreme Court of Queensland but later losing when the Queensland Government appealed to the Privy Council of the United Kingdom.
Bjelke-Petersen was opposed by Sir Robert Sparkes, church groups and the federal government over a 1982 push to abolish Aboriginal and Islander community reserves and to give title to the reserve lands to local councils elected by communities—titles that could be revoked by the government for unspecified reasons. Bjelke-Petersen claimed there were over-riding issues of defence and security because of fears of a communist plot to create a separate black nation in Australia.
In 1982, Bjelke-Petersen also denied John Koowarta, an Aboriginal Wik man, the sale of the Archer River cattle station that covered large amounts of the Wik ancestral homeland, due to Aboriginal people 'not being allowed to buy large areas of land'. Koowarta appealed the decision to the High Court, arguing that the Queensland Government could not do this under the Racial Discrimination Act 1975 (Cth). The High Court overruled Bjelke-Petersen's decision, allowing the Wik nation's traditional land to be bought by Koowarta. The sale was to proceed, but at the last minute, Bjelke-Petersen, in an act described by Australian Conservation Foundation councillor Kevin Guy as one of "spite and prejudice," declared the Archer River property a national park, the Archer Bend National Park (now known as Oyala Thumotang National Park), to ensure that no one could ever own it. However, on 6 October 2010 Premier Anna Bligh announced that a portion of the park would be given over to the Wik-Mungkana peoples as freehold land. On 22 May 2012 Campbell Newman handed the park to the Oyala Thumotang Land Trust representing the Wik Mungkan, Southern Kaanju and Ayapathu and transferred a portion of land revoked from the park as freehold land.
Anti-homosexual remarks
During his period in office Bjelke-Petersen frequently raised fears of a conspiracy of "southern homosexuals" to gain electoral advantage and to oppose the policies of the federal government or other states.
State development
Considerable development of the state's infrastructure took place during the Bjelke-Petersen era.
He was a leading proponent of Wivenhoe and Burdekin Dams, encouraging the modernising and electrifying of the Queensland railway system, and the construction of the Gateway Bridge. Airports, coal mines, power stations, and dams were built throughout the state. James Cook University was established. In Brisbane, the Queensland Cultural Centre, Griffith University, the Southeast Freeway, and the Captain Cook, Gateway and Merivale bridges were all constructed, as well as the Parliamentary Annexe that was attached to Queensland Parliament House. Bjelke-Petersen was one of the instigators of World Expo 88 (now South Bank Parklands) and the 1982 Brisbane Commonwealth Games.
His government worked closely with property developers on the Gold Coast, who constructed resorts, hotels, a casino and a system of residential developments. In one controversial case, the Queensland government passed special legislation, the Sanctuary Cove Act 1985, to exempt a luxury development, Sanctuary Cove, from local government planning regulations. The developer, Mike Gore, was seen as a key member of the "white shoe brigade", a group of Gold Coast businessmen who became influential supporters of Bjelke-Petersen. The "white-shoe" nickname was a contemptuous allusion to the nouveau riche origins revealed by their gaudy and tasteless choice of clothing, which included brightly coloured or patterned shirts, slacks with white stripes or in pastel shades, and shoes and belts of white leather, these often having gold or gilt buckles. They became known for shady deals with the government concerning property development, often with dire consequences for heritage buildings. A similar piece of legislation was passed to allow the Japanese company, Iwasaki Sangyo, to develop a tourist resort near Yeppoon in Central Queensland.
Personal associations
He was an associate of Milan Brych, who had previously been removed from the New Zealand Medical Register for promoting unproven cancer cures.
References
Notes
Citations
Further reading
Joh Bjelke-Petersen, Don't You Worry About That! The Joh Bjelke-Petersen Memoirs, North Ryde, Angus and Robertson, (1990),
Deane Wells, The Deep North (1979) (Outback Press),
State Library of Queensland holds archives of material by and about Sir Joh Bjelke-Petersen, including The Joh Tapes on Leadership, a series of interviews with past Queensland Premier, about his style of government and factors which shaped that style.
The Making of the aforementioned Joh Tapes tapes Oral History and Digital Story with Richard Lancaster, State Library of Queensland
1911 births
2005 deaths
Australian monarchists
Australian Knights Commander of the Order of St Michael and St George
National Party of Australia members of the Parliament of Queensland
Premiers of Queensland
1975 Australian constitutional crisis
Australian Lutherans
Australian people of Danish descent
New Zealand emigrants to Australia
People from Kingaroy
Deputy Premiers of Queensland
Treasurers of Queensland
Spouses of Australian politicians
People from Dannevirke
Q150 Icons
Foreign born Australian politicians
20th-century Australian farmers
|
```hcl
#
#
# 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.
output "project_id" {
description = "GCP project id"
value = resource.google_container_cluster.ml_cluster[0].project
}
output "region" {
description = "GCP region"
value = resource.google_container_cluster.ml_cluster[0].location
}
output "cluster_name" {
description = "The name of the GKE cluster"
value = resource.google_container_cluster.ml_cluster[0].name
}
output "kubernetes_host" {
description = "Kubernetes cluster host"
value = resource.google_container_cluster.ml_cluster[0].endpoint
}
output "cluster_certicicate" {
description = "Kubernetes cluster ca certificate"
value = base64decode(resource.google_container_cluster.ml_cluster[0].master_auth[0].cluster_ca_certificate)
sensitive = true
}
```
|
```java
package com.thealgorithms.datastructures.lists;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* Skip list is a data structure that allows {@code O(log n)} search complexity
* as well as {@code O(log n)} insertion complexity within an ordered sequence
* of {@code n} elements. Thus it can get the best features of a sorted array
* (for searching) while maintaining a linked list-like structure that allows
* insertion, which is not possible with a static array.
* <p>
* A skip list is built in layers. The bottom layer is an ordinary ordered
* linked list. Each higher layer acts as an "express lane" for the lists
* below.
* <pre>
* [ ] ------> [ ] --> [ ]
* [ ] --> [ ] [ ] --> [ ]
* [ ] [ ] [ ] [ ] [ ] [ ]
* H 0 1 2 3 4
* </pre>
*
* @param <E> type of elements
* @see <a href="path_to_url">Wiki. Skip list</a>
*/
public class SkipList<E extends Comparable<E>> {
/**
* Node before first node.
*/
private final Node<E> head;
/**
* Maximum layers count.
* Calculated by {@link #heightStrategy}.
*/
private final int height;
/**
* Function for determining height of new nodes.
* @see HeightStrategy
*/
private final HeightStrategy heightStrategy;
/**
* Current count of elements in list.
*/
private int size;
private static final int DEFAULT_CAPACITY = 100;
public SkipList() {
this(DEFAULT_CAPACITY, new BernoulliHeightStrategy());
}
public SkipList(int expectedCapacity, HeightStrategy heightStrategy) {
this.heightStrategy = heightStrategy;
this.height = heightStrategy.height(expectedCapacity);
this.head = new Node<>(null, this.height);
this.size = 0;
}
public void add(E e) {
Objects.requireNonNull(e);
Node<E> current = head;
int layer = height;
Node<E>[] toFix = new Node[height + 1];
while (layer >= 0) {
Node<E> next = current.next(layer);
if (next == null || next.getValue().compareTo(e) > 0) {
toFix[layer] = current;
layer--;
} else {
current = next;
}
}
int nodeHeight = heightStrategy.nodeHeight(height);
Node<E> node = new Node<>(e, nodeHeight);
for (int i = 0; i <= nodeHeight; i++) {
if (toFix[i].next(i) != null) {
node.setNext(i, toFix[i].next(i));
toFix[i].next(i).setPrevious(i, node);
}
toFix[i].setNext(i, node);
node.setPrevious(i, toFix[i]);
}
size++;
}
public E get(int index) {
int counter = -1; // head index
Node<E> current = head;
while (counter != index) {
current = current.next(0);
counter++;
}
return current.value;
}
public void remove(E e) {
Objects.requireNonNull(e);
Node<E> current = head;
int layer = height;
while (layer >= 0) {
Node<E> next = current.next(layer);
if (e.equals(current.getValue())) {
break;
} else if (next == null || next.getValue().compareTo(e) > 0) {
layer--;
} else {
current = next;
}
}
for (int i = 0; i <= layer; i++) {
current.previous(i).setNext(i, current.next(i));
if (current.next(i) != null) {
current.next(i).setPrevious(i, current.previous(i));
}
}
size--;
}
/**
* A search for a target element begins at the head element in the top
* list, and proceeds horizontally until the current element is greater
* than or equal to the target. If the current element is equal to the
* target, it has been found. If the current element is greater than the
* target, or the search reaches the end of the linked list, the procedure
* is repeated after returning to the previous element and dropping down
* vertically to the next lower list.
*
* @param e element whose presence in this list is to be tested
* @return true if this list contains the specified element
*/
public boolean contains(E e) {
Objects.requireNonNull(e);
Node<E> current = head;
int layer = height;
while (layer >= 0) {
Node<E> next = current.next(layer);
if (e.equals(current.getValue())) {
return true;
} else if (next == null || next.getValue().compareTo(e) > 0) {
layer--;
} else {
current = next;
}
}
return false;
}
public int size() {
return size;
}
/**
* Print height distribution of the nodes in a manner:
* <pre>
* [ ] --- --- [ ] --- [ ]
* [ ] --- [ ] [ ] --- [ ]
* [ ] [ ] [ ] [ ] [ ] [ ]
* H 0 1 2 3 4
* </pre>
* Values of nodes is not presented.
*
* @return string representation
*/
@Override
public String toString() {
List<boolean[]> layers = new ArrayList<>();
int sizeWithHeader = size + 1;
for (int i = 0; i <= height; i++) {
layers.add(new boolean[sizeWithHeader]);
}
Node<E> current = head;
int position = 0;
while (current != null) {
for (int i = 0; i <= current.height; i++) {
layers.get(i)[position] = true;
}
current = current.next(0);
position++;
}
Collections.reverse(layers);
String result = layers.stream()
.map(layer -> {
StringBuilder acc = new StringBuilder();
for (boolean b : layer) {
if (b) {
acc.append("[ ]");
} else {
acc.append("---");
}
acc.append(" ");
}
return acc.toString();
})
.collect(Collectors.joining("\n"));
String positions = IntStream.range(0, sizeWithHeader - 1).mapToObj(i -> String.format("%3d", i)).collect(Collectors.joining(" "));
return result + String.format("%n H %s%n", positions);
}
/**
* Value container.
* Each node have pointers to the closest nodes left and right from current
* on each layer of nodes height.
* @param <E> type of elements
*/
private static class Node<E> {
private final E value;
private final int height;
private final List<Node<E>> forward;
private final List<Node<E>> backward;
@SuppressWarnings("unchecked")
Node(E value, int height) {
this.value = value;
this.height = height;
// predefined size lists with null values in every cell
this.forward = Arrays.asList(new Node[height + 1]);
this.backward = Arrays.asList(new Node[height + 1]);
}
public Node<E> next(int layer) {
checkLayer(layer);
return forward.get(layer);
}
public void setNext(int layer, Node<E> node) {
forward.set(layer, node);
}
public void setPrevious(int layer, Node<E> node) {
backward.set(layer, node);
}
public Node<E> previous(int layer) {
checkLayer(layer);
return backward.get(layer);
}
public E getValue() {
return value;
}
private void checkLayer(int layer) {
if (layer < 0 || layer > height) {
throw new IllegalArgumentException();
}
}
}
/**
* Height strategy is a way of calculating maximum height for skip list
* and height for each node.
* @see BernoulliHeightStrategy
*/
public interface HeightStrategy {
int height(int expectedSize);
int nodeHeight(int heightCap);
}
/**
* In most common skip list realisation element in layer {@code i} appears
* in layer {@code i+1} with some fixed probability {@code p}.
* Two commonly used values for {@code p} are 1/2 and 1/4.
* Probability of appearing element in layer {@code i} could be calculated
* with <code>P = p<sup>i</sup>(1 - p)</code>
* <p>
* Maximum height that would give the best search complexity
* calculated by <code>log<sub>1/p</sub>n</code>
* where {@code n} is an expected count of elements in list.
*/
public static class BernoulliHeightStrategy implements HeightStrategy {
private final double probability;
private static final double DEFAULT_PROBABILITY = 0.5;
private static final Random RANDOM = new Random();
public BernoulliHeightStrategy() {
this.probability = DEFAULT_PROBABILITY;
}
public BernoulliHeightStrategy(double probability) {
if (probability <= 0 || probability >= 1) {
throw new IllegalArgumentException("Probability should be from 0 to 1. But was: " + probability);
}
this.probability = probability;
}
@Override
public int height(int expectedSize) {
long height = Math.round(Math.log10(expectedSize) / Math.log10(1 / probability));
if (height > Integer.MAX_VALUE) {
throw new IllegalArgumentException();
}
return (int) height;
}
@Override
public int nodeHeight(int heightCap) {
int level = 0;
double border = 100 * (1 - probability);
while (((RANDOM.nextInt(Integer.MAX_VALUE) % 100) + 1) > border) {
if (level + 1 >= heightCap) {
return level;
}
level++;
}
return level;
}
}
}
```
|
```javascript
Use `String.link` to create `<a>` tags without messy concatenation
CSS for when JavaScript is enabled
Vibration API
Fetch API
Drag and Drop API
```
|
AE, Ae, ae, Æ or æ may refer to:
Arts and entertainment
A.E. (video game), 1982
Ae (film), a 2022 Sri Lankan film
Autechre, an electronic music group
L'Année épigraphique, a French publication on epigraphy
Encyclopedia Dramatica, often abbreviated æ
Artix Entertainment, a video game developer and publisher
Language
Characters
Æ or æ, a ligature or letter
list of English words that may be spelled with a ligature, including "AE" being rendered as "Æ"
Ä or ä, a letter sometimes represented as "ae"
Ae (Cyrillic), a Cyrillic-script letter
Ae (digraph), a Latin-script digraph
Languages and dialects
American English, the set of varieties of the English language native to the United States
Avestan, a language, ISO 639-1 language code ae
People
A. E. or Æ, a penname of George William Russell (1867–1935), Irish writer
Anne Ellis (1875 - 1938), American writer
Koichi Ae (born 1976), Japanese football player
Alexander Emelianenko (born 1981), Russian mixed martial artist, with AE Team
Places
Ae, Dumfries and Galloway, Scotland
Water of Ae, a river
Algeria, LOC MARC code
United Arab Emirates, ISO 3166-1 and FIPS 10-4 country code AE
.ae, the top level domain for United Arab Emirates
United States postal abbreviation for US armed forces in Europe
Science and technology
Acoustic emission, the phenomenon of radiation of acoustic waves in solids
Adobe After Effects, graphics software
Adverse event, any untoward medical occurrence in a patient or clinical investigation
Aeon in astronomy, 109 years
Aggregate expenditure, a measure of national income
Almost everywhere, in mathematical analysis
ASCII Express, computer software
Authenticated encryption, a form of encryption
Automatic exposure, a mode available on some cameras
Canon AE-1, a camera
Other uses
Æ or AE, a numismatic abbreviation for "bronze"
American Eagle, a fashion company abbreviated as AE
Air Efficiency Award, a British medal 1942–1999
Ammunition ship
Applied Engineering, a computer hardware retailer
Mandarin Airlines, a Taiwanese airline, IATA designator AE
Toyota Corolla, the fifth generation of which is referred to as "AE"
See also
A&E (disambiguation)
AES (disambiguation)
|
A house painter and decorator is a tradesman responsible for the painting and decorating of buildings, and is also known as a decorator, or house painter. The purpose of painting is to improve the appearance of a building and to protect it from damage by water, corrosion, insects and mould. House painting can also be a form of artistic and/or cultural expression such as Ndebele house painting.
History of the trade in England
In England, little is known of the trade and its structures before the late 13th century, at which point guilds began to form, amongst them the Painters Company and the Stainers Company. These two guilds eventually merged with the consent of the Lord Mayor of the City of London in 1502, forming the Worshipful Company of Painter-Stainers. The guild standardised the craft and acted as a protector of the trade secrets. In 1599, the guild asked Parliament for protection, which was eventually granted in a bill of 1606, which granted the trade protection from outside competition such as plasterers.
The Act legislated for a seven-year apprenticeship, and also barred plasterers from painting, unless apprenticed to a painter, with the penalty for such painting being a fine of £5. The Act also enshrined a maximum daily fee of 16 old pence for their labour.
Enforcement of this Act by the Painter-Stainers Company was sought up until the early 19th century, with master painters gathering irregularly to decide the fees that a journeyman could charge, and also instigating an early version of a job centre in 1769, advertising in the London newspapers a "house of call" system to advertise for journeymen and also for journeymen to advertise for work. The guild's power in setting the fee a journeyman could charge was eventually overturned by law in 1827, and the period after this saw the guild's power diminish, along with that of the other guilds; the guilds were superseded by trade unions, with the Operative United Painters' Union forming sometime around 1831.
In 1894, a national association formed, recreating itself in 1918 as the National Federation of Master Painters and Decorators of England and Wales, then changing its name once again to the British Decorators Association before merging, in 2002, with the Painting & Decorating Federation to form the Painting & Decorating Association. The Construction Industry Joint Council, a body formed of both unions and business organizations, today has responsibility for the setting of pay levels.
Activities of the trade
Historically, the painter was responsible for the mixing of the paint; keeping a ready supply of pigments, oils, thinners and driers. The painter would use his experience to determine a suitable mixture depending on the nature of the job. In modern times, the painter is primarily responsible for preparation of the surface to be painted, such as patching holes in drywall, using masking tape and other protection on surfaces not to be painted, applying the paint and then cleaning up.
Larger firms operating within the trade were generally capable of performing many painting or decoration services, from creating an accent wall to sign writing, to the gilding of objects or the finishing or refinishing of furniture.
Painter-work is described in the 1911 Encyclopædia Britannica Eleventh Edition where the relevant skills include preparing surfaces, mixing paint, gilding, distemper, and faux-finishes including marbleizing and graining.
More recently, professional painters are responsible for all preparation prior to painting. All stucco or popcorn or texture scraping, sanding, wallpaper removal, caulking, drywall or wood repair, patching, stain removal, filling nail holes or any defects with plaster or putty, cleaning, taping, preparation and priming are considered to be done by the professional contracted painter.
Gallery
See also
Accent wall
Adhesion testing
Coating
Environmental impact of paint
Painting and Decorating Contractors of America
Popcorn ceiling
Volatile organic compounds
Wallpaper
References
Articles containing video clips
Construction trades workers
IARC Group 1 carcinogens
Interior design
Paint and coatings industry
Painting
|
Lieutenant General Sir Harry Calvert, 1st Baronet (March 1763 – 3 September 1826) was a British general.
Military career
Calvert was born in 1763 at Hampton, near London. He was educated at Harrow, and at the age of fifteen, was commissioned into the 23rd Foot (Royal Welsh Fusiliers). The following year he served with his regiment in America during the American Revolutionary War. He was at the siege of Charleston, and served through the campaign of Lord Cornwallis which ended with the surrender of Yorktown. From 1781 to 1783 he was a prisoner of war.
Flanders Campaign 1793–1795
Returning to England in 1784, he was promoted Captain 1785, then next saw active service in 1793 in the Campaign in the Low Countries, where he was aide-de-camp to the Duke of York. Sent to discuss surrender terms with the garrison of Valenciennes, he was present at the Siege of Dunkirk 25 Aug-10 September, and the relief of Menin on the 15th. Detached to the Austrian staff of Coburg, he was present at the Battle of Wattignies 15/16 Oct. Promoted Lieutenant Colonel, he remained on York's staff 1794 and saw action at Beaumont (Troisvilles) 26 April. At the Battle of Tourcoing 17/18 May, he narrowly escaped capture with York and was forced to swim the Espierre's brook with him. He again saw action at Tournai (Pont-à-Chin) 22nd, the retreat to Antwerp, June–July, and in the Defence of Holland. In 1795 he was engaged on a confidential mission to Brunswick and Berlin.
One of York's "most trusted staff officers" his Journals & Correspondence remains a vital source of information on the Flanders Campaign of 1793–95.
Administrator
On Calvert's return to Britain he was appointed Deputy Quartermaster General at the Horseguards, then Deputy Adjutant General 1796. He was made Colonel of the 5th West India Regt and Adjutant General 26 Jan 1797. At this time "Calvert was a rising star, already Deputy Adjutant General, and engaged to a niece of Mr. Greenwood, a partner in Cox, Greenwood, Cox & Co., the army agents. Malicious gossip had it that this connexion was likely to do more for him than any show of martial brilliance, for the Duke of York was known to have heavy financial obligations to the firm. But Calvert had more than good looks and influence; he stood firmly for the (staff) college". In 1799, having already served as deputy Adjutant-General, he was made Adjutant-General to the Forces, holding this role until 1818. In this capacity he effected many improvements in the organization and discipline of the service. He greatly improved the administration of the army medical and hospital department, introduced regimental schools, developed the Junior and Senior departments of the new Royal Military College, and was largely responsible for the founding of the Duke of York's School, Chelsea. Promoted Major General on 29th Sept 1803, and Lieutenant General 25 Oct 1809, in recognition of his work as adjutant general he was made a GCB in 1815, a GCH in 1817, and on retiring from office, received a baronetcy in 1818. In 1820 he was made Lieutenant-Governor of the Royal Hospital Chelsea, and elevated to Full General 1821. He died on 3 September 1826, at Middle Claydon, Buckinghamshire.
References
1763 births
1826 deaths
Baronets in the Baronetage of the United Kingdom
Knights Grand Cross of the Order of the Bath
British Army lieutenant generals
British Army personnel of the American Revolutionary War
British Army personnel of the French Revolutionary Wars
People educated at Harrow School
People from Hampton, London
American Revolutionary War prisoners of war held by the United States
Royal Welch Fusiliers officers
British prisoners of war in the American Revolutionary War
|
14 + 14, also spelled 14 plus 14, is a CD and DVD greatest hits album by bachata group Aventura. It contains the songs and music videos from five studio albums and from the live album K.O.B. Live. Every song that has had a music video is on this album, with the exception of "All Up 2 You" which featured Akon and Wisin & Yandel.
Tracklist
Charts
Weekly charts
Year-end charts
References
External links
Aventura official site
2011 greatest hits albums
Aventura (band) compilation albums
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{C8AFB8C3-FFFD-460F-BC13-9AC25D7B117C}</ProjectGuid>
<RootNamespace>gthread</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="glib-build-defines.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="glib-build-defines.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="glib-build-defines.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="glib-build-defines.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;$(GThreadBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
<ImportLibrary>$(TargetDir)$(ProjectName)-$(ApiVersion).lib</ImportLibrary>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PreprocessorDefinitions>$(GThreadBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
<ImportLibrary>$(TargetDir)$(ProjectName)-$(ApiVersion).lib</ImportLibrary>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;$(GThreadBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
<ImportLibrary>$(TargetDir)$(ProjectName)-$(ApiVersion).lib</ImportLibrary>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PreprocessorDefinitions>$(GThreadBuildDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<OutputFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ProgramDatabaseFile>$(OutDir)$(GlibDllPrefix)$(ProjectName)$(GlibDllSuffix).pdb</ProgramDatabaseFile>
<ImportLibrary>$(TargetDir)$(ProjectName)-$(ApiVersion).lib</ImportLibrary>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\gthread\gthread-impl.c" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\..\gthread\gthread.rc" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="glib.vcxproj">
<Project>{12bca020-eabf-429e-876a-a476bc9c10c0}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
```
|
Yonathan Wladimir Andía León (born August 6, 1992) is a Chilean footballer who currently plays for Chilean Primera División club Universidad de Chile as a right back.
Club career
A product of the Escuela de Fútbol (Football Academy) Benjamín Muñoz, he played for several amateur clubs like Club Deportivo Huertos La Perla at local championships and at the Tercera A and Tercera B, the fourth and the fifth level of the Chilean football, respectively, until he was seen by Víctor Rivero, manager of Unión La Calera from 2017 to 2018.
Unión La Calera
He arrived playing as central midfielder, but the coach Francisco Meneghini turned him on right back, being a recurring starting player, appearing also in Copa Sudamericana matches on 2019 and 2020.
Universidad de Chile
After being the runner-up at the Campeonato Nacional AFP PlanVital 2020 along with Unión La Calera, he signed with Universidad de Chile a three-year contract.
International career
He received his first call up to the Chile senior team for the 2022 World Cup qualifiers against Uruguay and Colombia in October 2020, but he made his international debut in a match against Peru on 13 November 2020.
Personal life
Andía is nicknamed Cachorro (Puppy) since he was a child, due to he used to attend to the local amateur matches along with his uncles surnamed León (Lion).
In July 2022, he was involved in legal issues due to that he was arrested after not respecting a red traffic light and drunk driving in La Florida, Santiago. His club, Universidad de Chile, applied him disciplinary bans.
References
External links
Living people
1992 births
People from Bío Bío Province
Footballers from Biobío Region
Chilean men's footballers
Chile men's international footballers
Unión Santa María footballers
General Velásquez footballers
Deportes Limache footballers
Unión La Calera footballers
Club Universidad de Chile footballers
Tercera División de Chile players
Chilean Primera División players
Men's association football defenders
|
David Locke Hall is a highly decorated former Assistant United States Attorney, Naval Intelligence officer, and author.
Early life
Hall was born in California in 1955. He received a BA from Dartmouth College, an MBA from Yale, and JD and MA degrees from the University of Pennsylvania. After law school, Hall served as a law clerk to the Honorable Walter King Stapleton, United States Court of Appeals for the Third Circuit.
Career
Assistant United States Attorney
Hall served for 23 years with the United States Department of Justice as an Assistant United States Attorney, retiring in 2013. He tried a large number of significant cases to verdict, including mobster Roy Stocker of the K&A Gang. Hall also prosecuted the Leath Cocaine Trafficking Organization, the leaders of which were involved in shooting Philadelphia Police Officer Donald McMullin.
A significant focus of Hall's prosecutorial career was the investigation and prosecution of weapons proliferation and technology transfer offenders. In the 1990s, he prosecuted the Armaments Corporation of South Africa (Armscor), Kentron, Fuchs Electronics, and others for violations of the Arms Export Control Act during the apartheid era. The ARMSCOR case was a significant point of contention between the United States and the Republic of South Africa because ARMSCOR and Kentron were state-owned corporations. After lengthy negotiations, the dispute was resolved by the pleas of ARMSCOR, Kentron, and Fuchs to criminal charges and the payment of fines in excess of $11 million.
From 2004 to 2009, Hall investigated and prosecuted Amir Hossein Ardebili, an Iranian arms procurement agent working in Shiraz, Iran, acquiring components for the F4, F14, and other military aircraft, as well as microchips for use in phased array radar. The years-long investigation resulted in an undercover meeting between Ardebili and U.S. agents on October 1 and October 2, 2007, in Tbilisi, Republic of Georgia, where Ardebili was arrested by Georgian authorities. He was extradited to the United States in January 2008. Ardebili pled guilty to violations of the Arms Export Control Act, International Emergency Economic Powers Act, smuggling, conspiracy and money laundering in May 2008. The Ardebili case is the subject of a book, Operation Shakespeare: The True Story of an Elite International Sting, written by John Shiffman.
From 2009 to 2013, Hall led the undercover investigation and prosecution of Xiang Li, a Chinese software pirate. Xiang Li's Chengdu, China-based operation sold over $100 million in cracked software products with multiple high-tech applications, including telecommunications, explosive simulation, aerospace, satellite tracking, and flight simulation. The undercover investigation led to a meeting on Saipan between federal agents and Xiang Li in June 2011. At that meeting, Xiang Li delivered 20 gigabytes of proprietary data hacked from a defense contractor. Xiang Li was charged with trafficking in more than $100 million in stolen copyrighted software. He pled guilty in January 2013 and in June 2013 was sentenced to 12 years incarceration.
Hall has testified before the Subcommittee on the Western Hemisphere, Committee on Foreign Affairs, United States House of Representatives on "Examining the Effectiveness of the Kingpin Designation Act in the Western Hemisphere."
Hall also served as the Special Prosecutor for the FBI Art Crime Team. During this time, he worked closely with FBI Special Agent Robert King Wittman. Hall negotiated the return of three stolen Norman Rockwell paintings from Brazil in 2001. In 2009, he led the successful undercover investigation and prosecution of Marcus Patmon, an art thief who sold stolen works by Picasso. Hall forfeited and returned to Iraq a collection of Mesopotamian artifacts in 2010. In 2011, Hall effected the return to Peru of a gold Moche monkey head (circa 300 A.D.) that had been looted from the royal tombs of Sipan. In 2013, Hall seized and forfeited the Rosenberg Diary, the long-lost diary of Alfred Rosenberg, Nazi propagandist and Reich Minister for the occupied eastern territories. The Rosenberg Diary is now part of the Holocaust Museum collection.
Military service
Hall served in the United States Navy and Navy Reserve as an intelligence officer for thirty years. Commissioned in 1984, he retired at the rank of captain in 2015. He commanded three intelligence units and served with the Defense Intelligence Agency, the Office of Naval Intelligence, the Joint Chiefs of Staff, in addition to numerous Navy commands. He was a third-generation naval officer, his father having served as a Marine Corps officer with the Second Marine Division in World War II.
Awards and recognitions
Throughout his career, Hall has received numerous awards in recognition of his outstanding professional and military service including:
2013- "Meritorious Service Medal" by the United States Navy
2012- "International Achievement Award" by the Department of Homeland Security
2010- "SAFE Beacon Award" by Saving Antiquities for Everyone
2008- "Excellence in Law Enforcement Award" by the Department of Homeland Security
2008- "Defense Meritorious Service Medal" by the Department of Defense
2004- "Navy and Marine Corps Commendation Medal" by the United States Navy
2000- "Joint Service Commendation Medal" by the Department of Defense
1998- "Director's Award for Superior Performance" by the Department of Justice
1997- "FBI Director Citation" by the Federal Bureau of Investigation
Published work
2015- "CRACK99: The Takedown of a $100 Million Chinese Software Pirate" W. W. Norton
2015- "Stolen Cultural Property: A Risk Management Primer" (chapter co-author), "The Legal Guide for Museum Professionals (J. Courtney, ed.)", Rowman and Littlefield
1991- "The Reagan Wars: A Constitutional Perspective on War Powers and the Presidency" Westview Press
References
Further reading
Chinese Citizen Sentenced to 12 Years For Cyber Theft And Piracy Over 100 Million
Rockwell Paintings Recovered in Brazil After 23 Years Missing
Peruvian Artifact Repatriated
Long Lost Rosenberg Diary Recovered
Crack99: The Takedown of a $100 Million Chinese Software Pirate
1955 births
Assistant United States Attorneys
Art crime
Living people
|
```turing
# -*- mode: perl; -*-
use strict;
use warnings;
use lib 't';
use Test::More tests => 50;
# testing of Math::BigInt:Scalar (used by the testsuite),
# primarily for interface/api and not for the math functionality
use Math::BigInt::Scalar;
my $class = 'Math::BigInt::Scalar'; # pass classname to sub's
# _new and _str
my $x = $class->_new("123");
my $y = $class->_new("321");
is(ref($x), 'SCALAR', 'ref($x)');
is($class->_str($x), 123, "$class->_str(\$x)");
is($class->_str($y), 321, "$class->_str(\$y)");
# _add, _sub, _mul, _div
is($class->_str($class->_add($x, $y)), 444,
"$class->_str($class->_add(\$x, \$y)");
is($class->_str($class->_sub($x, $y)), 123,
"$class->_str($class->_sub(\$x, \$y)");
is($class->_str($class->_mul($x, $y)), 39483,
"$class->_str($class->_mul(\$x, \$y))");
is($class->_str($class->_div($x, $y)), 123,
"$class->_str($class->_div(\$x, \$y)");
$class->_mul($x, $y);
is($class->_str($x), 39483, "$class->_str(\$x)");
is($class->_str($y), 321, "$class->_str(\$y)");
my $z = $class->_new("2");
is($class->_str($class->_add($x, $z)), 39485,
"$class->_str($class->_add(\$x, \$z)");
my ($re, $rr) = $class->_div($x, $y);
is($class->_str($re), 123, "$class->_str(\$re)");
is($class->_str($rr), 2, "$class->_str(\$rr)");
# is_zero, _is_one, _one, _zero
is($class->_is_zero($x), 0, "$class->_is_zero($x)");
is($class->_is_one($x), 0, "$class->_is_one($x)");
is($class->_is_one($class->_one()), 1,
"$class->_is_one($class->_one())");
is($class->_is_one($class->_zero()), 0,
"$class->_is_one($class->_zero())");
is($class->_is_zero($class->_zero()), 1,
"$class->_is_zero($class->_zero())");
is($class->_is_zero($class->_one()), 0,
"$class->_is_zero($class->_one())");
# is_odd, is_even
is($class->_is_odd($class->_one()), 1,
"$class->_is_odd($class->_one())");
is($class->_is_odd($class->_zero()), 0,
"$class->_is_odd($class->_zero())");
is($class->_is_even($class->_one()), 0,
"$class->_is_even($class->_one())");
is($class->_is_even($class->_zero()), 1,
"$class->_is_even($class->_zero())");
# _digit
$x = $class->_new("123456789");
is($class->_digit($x, 0), 9, "$class->_digit(\$x, 0)");
is($class->_digit($x, 1), 8, "$class->_digit(\$x, 1)");
is($class->_digit($x, 2), 7, "$class->_digit(\$x, 2)");
is($class->_digit($x, -1), 1, "$class->_digit(\$x, -1)");
is($class->_digit($x, -2), 2, "$class->_digit(\$x, -2)");
is($class->_digit($x, -3), 3, "$class->_digit(\$x, -3)");
# _copy
$x = $class->_new("12356");
is($class->_str($class->_copy($x)), 12356,
"$class->_str($class->_copy(\$x))");
# _acmp
$x = $class->_new("123456789");
$y = $class->_new("987654321");
is($class->_acmp($x, $y), -1, "$class->_acmp(\$x, \$y)");
is($class->_acmp($y, $x), 1, "$class->_acmp(\$y, \$x)");
is($class->_acmp($x, $x), 0, "$class->_acmp(\$x, \$x)");
is($class->_acmp($y, $y), 0, "$class->_acmp(\$y, \$y)");
# _div
$x = $class->_new("3333");
$y = $class->_new("1111");
is($class->_str(scalar $class->_div($x, $y)), 3,
"$class->_str(scalar $class->_div(\$x, \$y))");
$x = $class->_new("33333");
$y = $class->_new("1111");
($x, $y) = $class->_div($x, $y);
is($class->_str($x), 30, "$class->_str(\$x)");
is($class->_str($y), 3, "$class->_str(\$y)");
$x = $class->_new("123");
$y = $class->_new("1111");
($x, $y) = $class->_div($x, $y);
is($class->_str($x), 0, "$class->_str(\$x)");
is($class->_str($y), 123, "$class->_str(\$y)");
# _num
$x = $class->_new("12345");
$x = $class->_num($x);
is(ref($x) || '', '', 'ref($x) || ""');
is($x, 12345, '$x');
# _len
$x = $class->_new("12345");
$x = $class->_len($x);
is(ref($x) || '', '', 'ref($x) || ""');
is($x, 5, '$x');
# _and, _or, _xor
$x = $class->_new("3");
$y = $class->_new("4");
is($class->_str($class->_or($x, $y)), 7,
"$class->_str($class->_or($x, $y))");
$x = $class->_new("1");
$y = $class->_new("4");
is($class->_str($class->_xor($x, $y)), 5,
"$class->_str($class->_xor($x, $y))");
$x = $class->_new("7");
$y = $class->_new("3");
is($class->_str($class->_and($x, $y)), 3,
"$class->_str($class->_and($x, $y))");
# _pow
$x = $class->_new("2");
$y = $class->_new("4");
is($class->_str($class->_pow($x, $y)), 16,
"$class->_str($class->_pow($x, $y))");
$x = $class->_new("2");
$y = $class->_new("5");
is($class->_str($class->_pow($x, $y)), 32,
"$class->_str($class->_pow($x, $y))");
$x = $class->_new("3");
$y = $class->_new("3");
is($class->_str($class->_pow($x, $y)), 27,
"$class->_str($class->_pow($x, $y))");
# _check
$x = $class->_new("123456789");
is($class->_check($x), 0,
"$class->_check(\$x)");
is($class->_check(123), '123 is not a reference',
"$class->_check(123)");
```
|
Terry Michael Smith (born May 1959) is an American sportsman, known for his playing and coaching career in American football and baseball, and his ownership of professional sports teams.
After starting his playing career as a defensive back for American football franchise New England Patriots, Smith moved abroad to the United Kingdom, where he achieved international success as the player and head coach of the Manchester Spartans. Smith was also head coach of the Great Britain national American football team. He later spent ten years as owner and general manager of professional American football teams, and two years as owner and general manager of English soccer club Chester City from 1999 to 2001, including a spell as manager during part of his ownership.
Collegiate career
Smith attended Cornell University for two years, where he played football at wide receiver and free safety and baseball at shortstop and second base.
He then transferred to Furman University, where he played football, baseball, and ran track, becoming the only Furman athlete for the past 50 years to play and letter in three sports. In football, he started at free safety for two years on two Southern Conference Championship Furman teams, leading all defensive backs with more than 150 tackles in two seasons and being selected to the Academic All-Southern Conference and All-Region teams.
He was chosen as the State of South Carolina College Defensive Player of the Week for his outstanding performance in a game versus VMI in 1980, and he was also chosen as the Player of the Week for his performances in games versus both The University of North Carolina in 1980 and The University of Florida in 1981. In the three games combined, Smith totaled 59 tackles, 1 tackle for loss, 3 passes defended, 3 fumbles caused, 1 fumble recovered, and 1 pass interception.
In baseball, he started for two seasons in centerfield, hitting .414 in 1982, the 5th highest single season batting average in Furman history, and he was selected first-team All-Southern Conference and MVP. He finished his career with a .363 career batting average, which is still the second-highest career batting average in Furman history, and the highest career Furman average for the past sixty years. He also stole 29 bases out of 31 attempts, giving him the highest career success rate for steals in Furman history for any player who has attempted more than 10 attempts.
In track, he ran the 100 meter, 200 meter, and 400 meter, and he also ran the 4x100, 4x200, and 4x400 relays. Smith was nominated for the Southern Conference Athlete of the Year.
American football
Professional career
Smith started his professional American football career in 1982. He was signed as a free agent by the New England Patriots. However, he injured his knee in a pre-season game against the Philadelphia Eagles, an injury that required major reconstructive surgery, and was placed on the injured reserve list. He stayed with the Patriots for two years before eventually having to retire because his injured knee would not pass the team physical at the time. He returned to the football field signing for the Arizona Wranglers in the USFL in 1984, and in professional baseball was invited to spring training with the Cincinnati Reds and signed with the Miami Marlins.
In 1988, Smith signed to play and coach for the Manchester Spartans American football team overseas in Great Britain British American Football Association. As a wide receiver and free safety from 1988-1998, Smith set playing records with the Spartans, including setting the then British National League record for pass interceptions in a season with 11 (according to http://www.britballnow.co.uk/), and the British record for pass receptions in a single game with 15 pass receptions for 245 yards on July 7, 1991. His career best receiving yards season was 1988 with 1020 yards. He was named to the All-Europe Team on several occasions as both a wide receiver and free safety.
Coaching career
After coaching at U.S. colleges, Smith went to Great Britain after signing with the Manchester Spartans football club in the NFL-sponsored League. Due to his high level of success, which included turning around a 2-10 team before he arrived into an all-time British record 14-0 undefeated team in his first season in 1988, Smith was chosen by the Great Britain National Governing Body as the head coach of the Great Britain national American football team.
As the Manchester Spartans head coach, he won three straight Division Championships, three straight Conference Championships, two straight British National Championships, one Budweiser Bowl championship in 1989 at Crystal Palace in London, England, one Coca-Cola Bowl championship in 1990 at Crystal Palace in London, England, one Eurobowl championship with the Manchester Spartans in 1990 in Rimini, Italy, and one European Championship in Hamburg, Germany as the National team head coach with the Great Britain National Team in 1989.
As the head coach of the Great Britain national team, Smith and his British national team defeated France 35-6 in the European Quarter-Final in a game played in Birmingham, England, Germany 38-6 in the European Semi-Final in a game played in Hamburg, Germany, and Finland 26-0 in the European Nations Championship Final in Hamburg, Germany.
After leading the Spartans to the Great Britain national championship in order to qualify for the European Football League European Championship competition, Smith led the Spartans to victories over the Dublin Celts from Ireland in a game played in Dublin, Ireland, the Amsterdam Crusaders from the Netherlands in the European Quarter-Final in a game played in Manchester, England, the Berlin Adler from Germany in the European Semi-Final in a game played in Rimini, Italy, and the Legnano Frogs from Italy in the European Championship Final in Rimini, Italy, to win the 1990 Eurobowl Championship. Smith and his Spartans also played in the Schweppes Cool Masters European Final in Hamburg, Germany in 1992.
With the Great Britain National Team, Smith led Great Britain to victories over France, Germany, and Finland by a combined score of 99-12 to win the 1989 European Nations Championship.
Prior to Smith becoming head coach, no British team in history, club team or national team, had ever won a single game in European competition. However, Smith transformed the British game and went a perfect 7 wins and no losses in all European competitions with both of his two teams, the Spartans and the Great Britain national team, winning the first two European Championships in British American football history.
As a result of these successes, Smith was nominated by Queen Elizabeth II for national end-of-year awards.
Smith was the first coach in European history to have won both the Club European Championship and the European Nation’s Championship. He won more than 100 games in total as a head coach, while losing only 15. Due to his coaching success, Smith was selected as the National Coach of the Year three straight times, and as the European Coach of the Year twice. In addition, due to his playing and coaching success, Smith was selected to the Great Britain American Football Hall of Fame in 2004, and to the Minor league football (gridiron) American Football Association (AFA) Hall of Fame in 1995.
Professional sports team ownership
Smith went on to become the owner of several professional sports teams, including the National Champion and European Champion Manchester Spartans. In July 1999, he bought financially struggling English League club Chester City, making him the first American owner, chairman, and chief executive in the history of European football. He declared his belief that the club could reach Division One (now the EFL Championship) within three years. The club was in administration when he took over, and close to folding with more than £1 million in debt. He was credited with rescuing Chester from the brink of bankruptcy by supporters at the time, and announced an intention to appoint three supporters to the club board of directors, which he did.
At the time of Smith's takeover, most veteran players had been sold and the remaining players were mostly young. He kept these young players and tried to develop them in order to keep the player wages low, so that the club could not only balance the budget for that season, but also so they could try to pay off the £1 million of debt that Smith inherited.
Using this low budget strategy, along with increasing revenue through good Cup runs in the FA Cup and the Worthington Cup, increased attendance and commercial advertising, and with Smith serving as both manager and general manager for free at no cost to the club, then Smith was able to get all the club's debts paid off within only five months, which was two and a half years earlier than the administration required. As a result, the club was out of debt for the first time in at least many decades.
In Smith's four months and 21 league matches in charge of team affairs, Chester managed wins against Brighton & Hove Albion, Shrewsbury Town and others, but lost 5–1 and 4–1 to Leyton Orient and Carlisle United respectively, and required a replay to overcome non-league minnows Whyteleafe in the FA Cup. However, they did find success in the Worthington Cup, beating First Division Port Vale 6–5 on aggregate; they won 2–1 at the Deva Stadium in a game which saw both Marcus Bent and Martyn Lancaster sent off, and then drew 4–4 in the return leg at Vale Park.
They also had success in the FA Cup, as they made it to the third round for just the third time in the club's 100-year history. Drawn against Manchester City, they only lost in the final minutes after the score was tied at 1–1 with eleven minutes left. While scouting Man City ahead of the match, Smith, who came up with a very good strategy and team plan for the Man City match, found that when he could watch a match from up in the stands, then he was able to see the necessary tactical adjustments because of his many years of experience coaching American football, where coaches scout opponents by spending hundreds of hours every season watching game footage of their opponents that is filmed from high in the stands. This skill would benefit the team considerably the following season, when Smith would scout all of Chester's impending Cup opponents.
His methods included saying aloud the Lord's Prayer during his pre-match team talk, preparing lengthy written strategic game plans for each match that he went over in his pre-match team talk and gave copies of to each player, always staying positive no matter the current difficulties and circumstances, developing a school program where he went with players to speak with and coach schoolchildren, and to give out free tickets to each child for the upcoming matches, and appointing captains for the defence, midfield and attack.
In late December 1999, with Chester out of debt and on firm financial footing for the first time in decades thanks to Smith’s tight monetary policies, Smith chose to step down as manager. His decision came only one match after his team had pulled itself off the bottom of the Division following a 2-1 win over Halifax Town. Smith hired veteran manager Ian Atkins to the dual role of director of football and manager in a bid to avoid relegation, while Smith himself took on the role of goalkeeper coach for the remainder of the season.
With the excellent improvements in the club’s financial position, the club was able to sign twelve new players that Atkins wanted and chose, doubling the player wage bill compared with when Smith was manager. The club was also able to afford to pay for team travel by luxury coaches to away matches instead of the regular buses used during Smith's period, and was able to pay for the team to stay at top hotels with excellent pre-match meals for all away matches instead of traveling to matches by bus on match day as had occurred during Smith's time period. The club also paid for a proper training facility with two excellent training pitches for Atkins' team, while Smith's team had endured training on a free piece of unlined grass in the middle of a horse racetrack. However, despite these many financial investments in the team, the team began slowly under Atkins, losing seven of his first nine matches in charge, with only one win and one draw, and falling well adrift at the bottom of the Division table. Atkins' team lost his ninth match in charge by a 7-1 score at home to Brighton & Hove Albion, even though Smith's young team had defeated Brighton 3-2 away at Brighton earlier in the season.
Afterwards, however, results began to improve, and a 5-0 home victory over Mansfield Town in April, where Smith signee Angus Eve, Trinidad & Tobago's career leading goal scorer with 43 national team goals, scored two goals, put Chester in a better position.
Going into the final game of the season, Chester had pulled themselves up to 23rd in the 24-team division, and faced a three-way battle with Shrewsbury Town and Carlisle United to avoid the drop to the Conference. With fifteen minutes left in the season, Chester were above both Shrewsbury and Carlisle, but conceded a late goal against Peterborough United that was enough to see them relegated from the Football League on goal difference.
Atkins left, and fan favourite Graham Barrow returned as manager. He completely rebuilt the team, and in the 2000–01 season, his side managed a respectable ninth place, reached the third round of the FA Cup for the second successive season (in a controversial loss to Blackburn Rovers), made it to the semi-finals of the FA Trophy, and won the Conference League Cup, the first silverware for the club in over 70 years. During the season, Smith served as Barrow's scout and set-piece strategist for all Cup opponents, travelling on his own to scout opponents at least once or twice before Chester played them. In this scouting role, Smith utilized his American football background, where every American Football play is planned and choreographed from a set position in intricate detail, to focus on the development of creative set pieces, both corners and free kicks, for all the Cup matches that were based upon the weaknesses he perceived in the opponents' defensive alignment.
In addition, Barrow approached Smith at the start of the season, and asked him to watch the first half of every Chester match from up in the stands as a scout would, and then report what he saw to Barrow at halftime while Barrow was walking from the pitch to the dressing room. This good working relationship between them continued throughout the season.
In spite of this success, ahead of the 2001–02 season, Smith appointed Gordon Hill, an ex-Manchester United and ex-England player who was a personal friend, to become the new manager. Chester made a dreadful start to the season under Hill, winning only one of their first twelve matches. Smith finally sold his interest in the club to Stephen Vaughan and left at the start of October 2001, with the club completely out of debt other than what it owed him.
In 2003, a British court ordered Chester City to repay £300,000 in unpaid loans to Smith and his family. However, Smith still wanted to help the club, and so he accepted a settlement of far less than half that amount.
In 2004, Chester City FC finished first in their division, and was promoted again into the English League Third Division, thereby at that time fully completing the financial and on-field renovation of the club that had begun when Smith first purchased the club in an effort to rescue it from being closed down in 1999.
AppleMagazine.com wrote in its April 23, 2021 edition that Ted Lasso "was actually inspired by the story of Terry Smith, an American gridiron football coach who took over the English association football team Chester City F.C. and subsequently installed himself as the first-team coach".
The writers and actors of the Ted Lasso series often spoke about Terry Smith before the series began. In this interview and AppleTV+ video, Brendan Hunt, the outstanding co-creator of Ted Lasso, and actor who portrays assistant manager Coach Beard in the Ted Lasso series, discusses a 1999 FourFourTwo soccer magazine article about Terry Smith selling the American dream in a positive way, including a photo in the article of Smith wrapped in an American flag. This 22 year-old magazine article was published in England in September, 1999, when Smith was being the first American to ever manage and coach a professional English soccer team.
Personal life
Smith became a full-time professor at Lees-McRae College in North Carolina, teaching eight courses every semester in the School of Business and Management. He was promoted to become the Head of both the Sport Management Department and the Health and Fitness Department within the School of Business and Management. He was also promoted to become the Faculty Athletic Representative where he served in the President’s cabinet and reported directly to Dr. Barry Buxton, the outstanding Lees-McRae College President.
Smith became a Director for Elizabethton High School in Tennessee. Under Smith's leadership, the Bartleby program and Elizabethton High School being selected as one of the 10 XQ Super Schools in the entire United States. Smith then wrote a grant document describing and outlining their program, school courses, and educational methods, a document that resulted in their program and school receiving a $2.3 million grant from the XQ Foundation.
Smith was invited by the United States Congress, and by U.S. Congressman Phil Roe of Tennessee’s First District, to come to Washington, D.C. for Smith to speak on Capitol Hill to the United States Congress. Smith was one of only four public school educators in the entire United States to be honored with this invitation and achievement.
Smith created a television show titled ‘The Veteran's Voice’. As the owner of Mountain Television Network, Smith worked with veteran and author Ken Wiley to air interviews with veterans on local television. He also provided DVD copies of these interviews to veterans' family members. A collection of these DVDs are stored at Watauga County Library.
References
1959 births
Living people
Furman University alumni
Furman Paladins football players
Furman Paladins baseball players
New England Patriots players
Coaches of American football from North Carolina
American soccer coaches
Chester City F.C. managers
American expatriate players of American football
Players of American football from North Carolina
|
```protocol buffer
/*
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.
*/
// This file was autogenerated by go-to-protobuf. Do not edit it manually!
syntax = 'proto2';
package k8s.io.api.certificates.v1beta1;
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
// Package-wide variables from generator "generated".
option go_package = "v1beta1";
// Describes a certificate signing request
message CertificateSigningRequest {
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// The certificate request itself and any additional information.
// +optional
optional CertificateSigningRequestSpec spec = 2;
// Derived information about the request.
// +optional
optional CertificateSigningRequestStatus status = 3;
}
message CertificateSigningRequestCondition {
// request approval state, currently Approved or Denied.
optional string type = 1;
// brief reason for the request state
// +optional
optional string reason = 2;
// human readable message with details about the request state
// +optional
optional string message = 3;
// timestamp for the last update to this condition
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4;
}
message CertificateSigningRequestList {
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
repeated CertificateSigningRequest items = 2;
}
// This information is immutable after the request is created. Only the Request
// and Usages fields can be set on creation, other fields are derived by
// Kubernetes and cannot be modified by users.
message CertificateSigningRequestSpec {
// Base64-encoded PKCS#10 CSR data
optional bytes request = 1;
// allowedUsages specifies a set of usage contexts the key will be
// valid for.
// See: path_to_url#section-4.2.1.3
// path_to_url#section-4.2.1.12
repeated string usages = 5;
// Information about the requesting user.
// See user.Info interface for details.
// +optional
optional string username = 2;
// UID information about the requesting user.
// See user.Info interface for details.
// +optional
optional string uid = 3;
// Group information about the requesting user.
// See user.Info interface for details.
// +optional
repeated string groups = 4;
// Extra information about the requesting user.
// See user.Info interface for details.
// +optional
map<string, ExtraValue> extra = 6;
}
message CertificateSigningRequestStatus {
// Conditions applied to the request, such as approval or denial.
// +optional
repeated CertificateSigningRequestCondition conditions = 1;
// If request was approved, the controller will place the issued certificate here.
// +optional
optional bytes certificate = 2;
}
// ExtraValue masks the value so protobuf can generate
// +protobuf.nullable=true
// +protobuf.options.(gogoproto.goproto_stringer)=false
message ExtraValue {
// items, if empty, will result in an empty slice
repeated string items = 1;
}
```
|
Frank Tang (born Dai Jung Tong, ; November 27, 1905 – June 29, 1968) was a Chinese-American character actor, filmmaker, community leader, and restaurateur who was best-known for directing the 1936 Cantonese-language film Sum Hun.
Biography
Frank was born in San Francisco into a big Chinese-American family. His parents, Yee Tong and Wong Shee, were immigrants. His brother Kam Tong would also become an actor.
He began his career in Hollywood in the late 1920s, and he got a rare chance to work as a director in 1936, when he teamed up with Bruce Wong and Esther Eng to make the Cantonese-language American film Sum Hun. He'd appear in over a dozen films afterward in smaller roles, in addition to serving as a technical advisor.
Later in life, he owned and operated a restaurant called Tang's in Los Angeles's Chinatown neighborhood. He died in 1968 at the age of 62 after an illness, and was survived by his wife, Birdie, and several siblings.
Selected filmography
As director:
Sum Hun (1936)
As actor:
The Hunters (1958)
The Lineup (1958)
The Seventh Sin (1957)
Soldier of Fortune (1955)
God Is My Co-Pilot (1945)
Objective, Burma! (1945)
Dragon Seed (1944)
The Purple Heart (1944)
Destination Tokyo (1943)
The Man from Down Under (1943)
Salute to the Marines (1943)
We've Never Been Licked (1943)
West of Shanghai (1937)
The Leathernecks Have Landed (1936)
The Great Divide (1929)
References
External links
American film directors
American male film actors
American male actors of Chinese descent
20th-century American male actors
Male actors from San Francisco
American film directors of Chinese descent
1905 births
1968 deaths
|
Erpetogomphus compositus, the white-belted ringtail, is a species of clubtail in the family of dragonflies known as Gomphidae. It is found in Central America and North America.
The IUCN conservation status of Erpetogomphus compositus is "LC", least concern, with no immediate threat to the species' survival. The population is stable.
References
Further reading
External links
Gomphidae
Articles created by Qbugbot
Insects described in 1858
Odonata of North America
Insects of Central America
|
Iravan is a 2023 Indian Kannada-language action, thriller film produced by Dr. Niranthara Ganesh and directed by Rams Ranga, starring Jayaram Karthik, Adhvithi Shetty and Vivek Patil with an ensemble supporting cast. The film is written by the director himself along with Kanthraju Kaddipudi
Premise
When a young student studying abroad receives the devastating news of his father's unexpected and suspicious death, he is driven to uncover the truth behind the tragedy. As he delves deeper into the circumstances surrounding his father's demise, he uncovers evidence of political involvement or a powerful medical mafia. Fueled by grief and a thirst for justice, he embarks on a relentless quest for revenge, determined to expose those responsible and bring them to justice.
Cast
Jayaram Karthik as Mithun Chakravarthy
Adhvithi Shetty
Vivek Patil
Avinash as Dr Satya Murthy
Krishna Hebbale
Production
The film is the debut production of doctor turned social worker Dr. Niranthara Ganesh. The film was initially planned to release on OTT platforms, but later the team decided to go for a theatrical release.
Release
The film had a statewide release on June 16, 2023.
References
External links
2023 films
2023 action films
Indian action films
2020s Kannada-language films
|
```smalltalk
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Build.Editor
{
/// <summary>
/// The Build Info defines common properties for a build.
/// </summary>
public interface IBuildInfo
{
/// <summary>
/// Is this build being issued from the command line?
/// </summary>
bool IsCommandLine { get; }
/// <summary>
/// The directory to put the final build output.
/// </summary>
/// <remarks>
/// Defaults to "<see href="path_to_url">Application.dataPath</see>/Builds/Platform Target/"
/// </remarks>
string OutputDirectory { get; set; }
/// <summary>
/// The list of scenes to include in the build.
/// </summary>
IEnumerable<string> Scenes { get; set; }
/// <summary>
/// A pre-build action to raise before building the Unity player.
/// </summary>
Action<IBuildInfo> PreBuildAction { get; set; }
/// <summary>
/// A post-build action to raise after building the Unity player.
/// </summary>
Action<IBuildInfo, BuildReport> PostBuildAction { get; set; }
/// <summary>
/// Build options to include in the Unity player build pipeline.
/// </summary>
BuildOptions BuildOptions { get; set; }
/// <summary>
/// The build target.
/// </summary>
BuildTarget BuildTarget { get; }
/// <summary>
/// Optional parameter to set the player's <see cref="ColorSpace"/>
/// </summary>
ColorSpace? ColorSpace { get; set; }
/// <summary>
/// Optional parameter to set the scripting backend
/// </summary>
ScriptingImplementation? ScriptingBackend { get; set; }
/// <summary>
/// Should the build auto increment the build version number?
/// </summary>
bool AutoIncrement { get; set; }
/// <summary>
/// The symbols associated with this build.
/// </summary>
string BuildSymbols { get; set; }
/// <summary>
/// The build configuration (i.e. debug, release, or master)
/// </summary>
string Configuration { get; set; }
/// <summary>
/// The build platform (i.e. x86, x64)
/// </summary>
string BuildPlatform { get; set; }
/// <summary>
/// The default location of log files generated by sub-processes of the build system.
/// </summary>
/// <remarks>
/// <para>Note that this different from the Unity flag -logFile, which controls the location
/// of the Unity log file. This is specifically for logs generated by other processes
/// that the MRTK build tools produces (for example, when msbuild.exe is involved)</para>
/// </remarks>
string LogDirectory { get; set; }
}
}
```
|
Jeremy Edwards is a retired British and Welsh rower who competed for Great Britain and Wales.
Rowing career
Edwards was part of the lightweight coxless four that reached the final and finished fifth at the 1977 World Rowing Championships in Amsterdam.
In 1986 he rowed for Wales at the 1986 Commonwealth Games in the lightweight coxless four.
References
Living people
British male rowers
Welsh male rowers
Year of birth missing (living people)
Rowers at the 1986 Commonwealth Games
Commonwealth Games competitors for Wales
|
El ciego, is a Mexican telenovela produced by Televisa and originally transmitted by Telesistema Mexicano.
Cast
Julio Alemán as El Ciego
Belem Diaz
Rafael Cabrera
Fina Alvaner
References
External links
Televisa telenovelas
Spanish-language telenovelas
1969 telenovelas
1969 Mexican television series debuts
1969 Mexican television series endings
|
```python
"""Python wrappers around Brain.
This file is MACHINE GENERATED! Do not edit.
"""
import collections as _collections
from google.protobuf import text_format as _text_format
from tensorflow.core.framework import op_def_pb2 as _op_def_pb2
# Needed to trigger the call to _set_call_cpp_shape_fn.
from tensorflow.python.framework import common_shapes as _common_shapes
from tensorflow.python.framework import op_def_registry as _op_def_registry
from tensorflow.python.framework import ops as _ops
from tensorflow.python.framework import op_def_library as _op_def_library
_sparse_feature_cross_outputs = ["output_indices", "output_values",
"output_shape"]
_SparseFeatureCrossOutput = _collections.namedtuple("SparseFeatureCross",
_sparse_feature_cross_outputs)
def sparse_feature_cross(indices, values, shapes, dense, hashed_output,
num_buckets, out_type, internal_type, name=None):
r"""Generates sparse cross form a list of sparse tensors.
The op takes two lists, one of 2D `SparseTensor` and one of 2D `Tensor`, each
representing features of one feature column. It outputs a 2D `SparseTensor` with
the batchwise crosses of these features.
For example, if the inputs are
inputs[0]: SparseTensor with shape = [2, 2]
[0, 0]: "a"
[1, 0]: "b"
[1, 1]: "c"
inputs[1]: SparseTensor with shape = [2, 1]
[0, 0]: "d"
[1, 0]: "e"
inputs[2]: Tensor [["f"], ["g"]]
then the output will be
shape = [2, 2]
[0, 0]: "a_X_d_X_f"
[1, 0]: "b_X_e_X_g"
[1, 1]: "c_X_e_X_g"
if hashed_output=true then the output will be
shape = [2, 2]
[0, 0]: HashCombine(
Fingerprint64("f"), HashCombine(
Fingerprint64("d"), Fingerprint64("a")))
[1, 0]: HashCombine(
Fingerprint64("g"), HashCombine(
Fingerprint64("e"), Fingerprint64("b")))
[1, 1]: HashCombine(
Fingerprint64("g"), HashCombine(
Fingerprint64("e"), Fingerprint64("c")))
Args:
indices: A list of `Tensor` objects of type `int64`.
2-D. Indices of each input `SparseTensor`.
values: A list of `Tensor` objects with types from: `int64`, `string`.
1-D. values of each `SparseTensor`.
shapes: A list with the same number of `Tensor` objects as `indices` of `Tensor` objects of type `int64`.
1-D. Shapes of each `SparseTensor`.
dense: A list of `Tensor` objects with types from: `int64`, `string`.
2-D. Columns represented by dense `Tensor`.
hashed_output: A `bool`.
num_buckets: An `int` that is `>= 0`.
out_type: A `tf.DType` from: `tf.int64, tf.string`.
internal_type: A `tf.DType` from: `tf.int64, tf.string`.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output_indices, output_values, output_shape).
output_indices: A `Tensor` of type `int64`. 2-D. Indices of the concatenated `SparseTensor`.
output_values: A `Tensor` of type `out_type`. 1-D. Non-empty values of the concatenated or hashed
`SparseTensor`.
output_shape: A `Tensor` of type `int64`. 1-D. Shape of the concatenated `SparseTensor`.
"""
result = _op_def_lib.apply_op("SparseFeatureCross", indices=indices,
values=values, shapes=shapes, dense=dense,
hashed_output=hashed_output,
num_buckets=num_buckets, out_type=out_type,
internal_type=internal_type, name=name)
return _SparseFeatureCrossOutput._make(result)
_ops.RegisterShape("SparseFeatureCross")(None)
_sparse_feature_cross_v2_outputs = ["output_indices", "output_values",
"output_shape"]
_SparseFeatureCrossV2Output = _collections.namedtuple("SparseFeatureCrossV2",
_sparse_feature_cross_v2_outputs)
def sparse_feature_cross_v2(indices, values, shapes, dense, hashed_output,
num_buckets, hash_key, out_type, internal_type,
name=None):
r"""Generates sparse cross form a list of sparse tensors.
The op takes two lists, one of 2D `SparseTensor` and one of 2D `Tensor`, each
representing features of one feature column. It outputs a 2D `SparseTensor` with
the batchwise crosses of these features.
For example, if the inputs are
inputs[0]: SparseTensor with shape = [2, 2]
[0, 0]: "a"
[1, 0]: "b"
[1, 1]: "c"
inputs[1]: SparseTensor with shape = [2, 1]
[0, 0]: "d"
[1, 0]: "e"
inputs[2]: Tensor [["f"], ["g"]]
then the output will be
shape = [2, 2]
[0, 0]: "a_X_d_X_f"
[1, 0]: "b_X_e_X_g"
[1, 1]: "c_X_e_X_g"
if hashed_output=true then the output will be
shape = [2, 2]
[0, 0]: FingerprintCat64(
Fingerprint64("f"), FingerprintCat64(
Fingerprint64("d"), Fingerprint64("a")))
[1, 0]: FingerprintCat64(
Fingerprint64("g"), FingerprintCat64(
Fingerprint64("e"), Fingerprint64("b")))
[1, 1]: FingerprintCat64(
Fingerprint64("g"), FingerprintCat64(
Fingerprint64("e"), Fingerprint64("c")))
Args:
indices: A list of `Tensor` objects of type `int64`.
2-D. Indices of each input `SparseTensor`.
values: A list of `Tensor` objects with types from: `int64`, `string`.
1-D. values of each `SparseTensor`.
shapes: A list with the same number of `Tensor` objects as `indices` of `Tensor` objects of type `int64`.
1-D. Shapes of each `SparseTensor`.
dense: A list of `Tensor` objects with types from: `int64`, `string`.
2-D. Columns represented by dense `Tensor`.
hashed_output: A `bool`.
num_buckets: An `int` that is `>= 0`.
hash_key: An `int`.
out_type: A `tf.DType` from: `tf.int64, tf.string`.
internal_type: A `tf.DType` from: `tf.int64, tf.string`.
name: A name for the operation (optional).
Returns:
A tuple of `Tensor` objects (output_indices, output_values, output_shape).
output_indices: A `Tensor` of type `int64`. 2-D. Indices of the concatenated `SparseTensor`.
output_values: A `Tensor` of type `out_type`. 1-D. Non-empty values of the concatenated or hashed
`SparseTensor`.
output_shape: A `Tensor` of type `int64`. 1-D. Shape of the concatenated `SparseTensor`.
"""
result = _op_def_lib.apply_op("SparseFeatureCrossV2", indices=indices,
values=values, shapes=shapes, dense=dense,
hashed_output=hashed_output,
num_buckets=num_buckets, hash_key=hash_key,
out_type=out_type,
internal_type=internal_type, name=name)
return _SparseFeatureCrossV2Output._make(result)
_ops.RegisterShape("SparseFeatureCrossV2")(None)
def _InitOpDefLibrary():
op_list = _op_def_pb2.OpList()
_text_format.Merge(_InitOpDefLibrary.op_list_ascii, op_list)
_op_def_registry.register_op_list(op_list)
op_def_lib = _op_def_library.OpDefLibrary()
op_def_lib.add_op_list(op_list)
return op_def_lib
_InitOpDefLibrary.op_list_ascii = """op {
name: "SparseFeatureCross"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense"
type_list_attr: "dense_types"
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type_attr: "out_type"
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "hashed_output"
type: "bool"
}
attr {
name: "num_buckets"
type: "int"
has_minimum: true
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "out_type"
type: "type"
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "internal_type"
type: "type"
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}
op {
name: "SparseFeatureCrossV2"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense"
type_list_attr: "dense_types"
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type_attr: "out_type"
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "hashed_output"
type: "bool"
}
attr {
name: "num_buckets"
type: "int"
has_minimum: true
}
attr {
name: "hash_key"
type: "int"
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "out_type"
type: "type"
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "internal_type"
type: "type"
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}
"""
_op_def_lib = _InitOpDefLibrary()
```
|
```xml
import * as React from "react";
import { Button } from "../../../../react-common/components/controls/Button";
import { BasicEditorToggleItem, EditorToggle } from "../../../../react-common/components/controls/EditorToggle";
export interface SoundEffectHeaderProps {
selectedView: "editor" | "gallery";
onClose: () => void;
onViewSelected: (view: "editor" | "gallery") => void;
}
export const SoundEffectHeader = (props: SoundEffectHeaderProps) => {
const { selectedView, onClose, onViewSelected } = props;
const toggleItems: BasicEditorToggleItem[] = [
{
label: pxt.U.lf("Editor"),
title: pxt.U.lf("Editor"),
onClick: () => onViewSelected("editor"),
focusable: true
},
{
label: pxt.U.lf("Gallery"),
title: pxt.U.lf("Gallery"),
onClick: () => onViewSelected("gallery"),
focusable: true
}
]
return <div className="sound-effect-header">
<EditorToggle
id="sound-effect-editor-toggle"
items={toggleItems}
selected={selectedView === "editor" ? 0 : 1}
/>
<Button
className="menu-button"
onClick={onClose}
title={lf("Close")}
rightIcon="fas fa-times-circle"
/>
</div>
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.