text
stringlengths 1
22.8M
|
|---|
```objective-c
#pragma once
class lcTimelineWidget : public QTreeWidget
{
Q_OBJECT
public:
lcTimelineWidget(QWidget* Parent);
~lcTimelineWidget();
void Update(bool Clear, bool UpdateItems);
void UpdateSelection();
void InsertStepBefore();
void InsertStepAfter();
void RemoveStep();
void MoveSelection();
void MoveSelectionBefore();
void MoveSelectionAfter();
void SetCurrentStep();
public slots:
void CurrentItemChanged(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
void ItemSelectionChanged();
void CustomMenuRequested(QPoint Pos);
void PreviewSelection(QTreeWidgetItem* Current);
protected:
void dropEvent(QDropEvent* DropEvent) override;
void mousePressEvent(QMouseEvent* MouseEvent) override;
void mouseDoubleClickEvent(QMouseEvent* MouseEvent) override;
void UpdateModel();
void UpdateCurrentStepItem();
QMap<int, QIcon> mIcons;
QMap<lcPiece*, QTreeWidgetItem*> mItems;
QTreeWidgetItem* mCurrentStepItem;
bool mIgnoreUpdates;
};
```
|
John and Patricia Beatty were married American writers, an academic historian and a children's librarian. They wrote several books together until John Beatty's death in 1975, after which Patricia Beatty continued to write until her death in 1991. All Beatty titles have been returned to e-print through Beebliome Books.
John Beatty
John Louis Beatty was born on January 24, 1922, in Portland, Oregon, and later became a history professor. He wrote ten books with his wife Patricia and helped edit a two-volume historical text entitled Heritage of Western Civilization. Beatty served as an assistant professor of history and humanities at the University of California, Riverside and died on March 23, 1975, in Riverside, California.
Patricia Beatty
Patricia Beatty was born August 26, 1922, in Portland, Oregon. She spent part of her life in the Pacific Northwest and occasionally resided on Indian reservations. Beatty graduated from Reed College in Portland and has worked as a children's librarian and a high school teacher. She has written fifty books, ten of which were with her first husband John Beatty. She remarried in 1975 to Carl Uhr, an economics professor at the University of California. She died on July 9, 1991.
Awards and accolades
For Patricia Beatty
1972 Jane Addams Children's Book Award, nomination for Lupita Manana
1974 California Council Medal from the Southern California Council on Literature for Children and Young People, won
1976 California Council Medal from the Southern California Council on Literature for Children and Young People, won
1983 Literature Medal from the Southern California Council on Literature for Children and Young People for Jonathan down Under, won
1984 Western Writers of America Award, won
1987 Western Writers of America Award, won
1988 Scott O'Dell Award for Historical Fiction for Charley Skedaddle, won
For both Beattys
1963 New York Times One Hundred Outstanding Books for Young People for At the Seven Stars
1965 Commonwealth Club of California Medal for best juvenile by a California author for Campion Towers
1966 Horn Book honor list for A Donkey for the King
1967 Southern California Council on Children's and Young People's Literature Medal for The Young Dirk
Bibliography
By both Beattys
At the Seven Stars (1963)
Squaw Dog (1965)
Campion Towers (1965)
A Donkey for the King (1966)
The Royal Dirk (1966)
The Queen's Wizard (1967)
Witch Dog (1968)
Pirate Royal (1969)
Holdfast (1972)
Master Rosalind (1974)
Who Comes to King's Mountain? (1975)
John Beatty alone
Warwick and Holland, Being the Lives of Robert and Henry Rich (1965)
Heritage of Western Civilization Volumes I and II (1982)
Patricia Beatty alone
Bonanza Girl (1962)
The Nickel-Plated Beauty (1964)
Eight Mules from Monterey (1966)
The Queen's Own Grove (1966)
The Sea Pair (1970)
O the Red Rose Tree (1972)
Red Rock over the River (1973)
The Bad Bell of San Salvador (1973)
How Many Miles to Sundown? (1974)
Rufus, Red Rufus (1975)
By Crumbs, It's Mine (1976)
Something to Shout About (1976)
Billy Bedamned, Long Gone By (1977)
I Want My Sunday, Stranger (1977)
Just Some Weeds from the Wilderness (1978)
Lacy Makes a Match (1979)
The Staffordshire Terror (1979)
That's One Ornery Orphan (1980)
Lupita Manana (1981)
Jonathan Down Under (1982)
Melinda Takes a Hand (1983)
The Coach That Never Came (1985)
Behave Yourself Bethany Brant (1986)
Charley Skedaddle (1987)
Be Ever Hopeful, Hannalee (1988)
Eben Tyne, Powder Monkey (1990)
Wait for Me, Watch for Me, Eula Bee (1978)
Who Comes with Cannons? (1990)
Jayhawker (1991)
Turn Homeward, Hannalee (1991)
Sarah and Me and the Lady from the Sea (1994)
John and Patricia Beatty Award
The John and Patricia Beatty Award is an award given by the California Library Association. The award was sponsored by Baker and Taylor until 2012 and Better World Books beginning in 2013. The Beatty Award "honors the author of a distinguished book for children or young adults that best promotes an awareness of California and its people". Patricia Beatty contributed towards the initial funding of the award, which was named after her and her husband. The award was first established in 1990 and the winner of the award receives a prize of $500 and an engraved plaque.
References
External links
20th-century American historians
20th-century American male writers
20th-century American novelists
American children's writers
American male non-fiction writers
Married couples
Novelists from Oregon
Writers from Portland, Oregon
|
```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 org.thingsboard.server.common.data;
import lombok.Getter;
import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;
public enum AttributeScope {
CLIENT_SCOPE(1),
SERVER_SCOPE(2),
SHARED_SCOPE(3);
@Getter
private final int id;
private static final Map<Integer, AttributeScope> values = Arrays.stream(values())
.collect(Collectors.toMap(AttributeScope::getId, scope -> scope));
AttributeScope(int id) {
this.id = id;
}
public static AttributeScope valueOf(int id) {
return values.get(id);
}
}
```
|
Martin Abucha is the Minister of Mining for South Sudan. He was appointed after the resignation of his predecessor, Henry Adwar Dilah.
References
Government ministers of South Sudan
Living people
Year of birth missing (living people)
|
Kangeyampatti is a village in the Thanjavur taluk of Thanjavur district, Tamil Nadu, India.
Demographics
As per the 2001 census, Kangeyampatti had a total population of 1384 with 694 males and 690 females. The sex ratio was 994. The literacy rate was 70.75.
References
Villages in Thanjavur district
|
is a Japanese anime television series, strongly influenced by Shinto, that follows the adventures of teenage goddess Yurie Hitotsubashi and her friends. The title is short for . The series was created by , which is the joint pen name of producer Tomonori Ochikoshi, director Koji Masunari, and writer Hideyuki Kurata. It was broadcast by the anime television network Animax on its respective networks worldwide, including Japan, East Asia, South Asia, Southeast Asia, where it received its first English-language broadcast.
The series was adapted as a manga serialized in Dengeki Daioh, a shōnen manga magazine, and collected in two tankōbon volumes.
In July 2008, Geneon Entertainment and Funimation announced an agreement to distribute select titles in North America. While Geneon still retained the license, Funimation would assume exclusive rights to the manufacturing, marketing, sales and distribution of select titles. Kamichu! was one of several titles involved in the deal. However, as of August 2011, the rights to the series had expired.
Story
Yurie is a shy and otherwise ordinary middle school girl who suddenly discovers that, overnight, she has become a , a goddess in the Shinto sense. She has no idea what sort of goddess she is or what her powers are. Her friends give her the nickname Kamichu, a portmanteau of and . In her journey she meets many other divinities and spirits, and learns the ways of the gods in order to become a great goddess herself. During the course of the series, Yurie grows more in being both a better goddess and as a person.
Kamichu! is set in the Spring of 1983 to the Spring of 1984, in the city of Onomichi, Hiroshima prefecture, on the shores of Japan's Inland Sea. Many of the temples and landmarks shown in the anime are real locations in and around the city, faithfully depicted.
Characters
Yurie is the protagonist of the series. In the first episode, she tells her best friend Mitsue that overnight she has become a goddess; how or why this became so is never further explained. She is remarkably naïve and simple-minded, but always has the best intentions. She has had a crush on Kenji Ninomiya for a long time, and gets very nervous and red-faced around him. Whenever she exercises her divine powers, her hair grows very long and she often falls asleep afterward, due to the taxing effort involved. At the end of the anime she becomes Kenji's girlfriend.
Matsuri is the person in charge of the Raifuku Shrine in Onomichi. She runs the shrine with her sister, Miko, and their widowed father, the chief priest. Matsuri is always thinking of schemes to earn money for the shrine or attract more visitors to the it, usually through exploiting Yurie's newfound divinity. Unlike Miko, she cannot see spirits without the charms that Yurie usually writes (though in the manga and anime, Miko states that Matsuri had been able to see spirits in her childhood). Her name means "worship".
Mitsue is Yurie's bespectacled best friend. She's very down-to-earth, and serves as the "straight man" for her friends, but wishes that her life were more exciting. Yurie often goes to her for advice, which is simple common sense that is always right. She is usually possessed by Yashima when he needs to communicate with people or when he wants to play the guitar.
Miko is Matsuri's shy younger sister. She does the cooking in the house, and is very polite and respectful to everyone. She helps out in the shrine and has the ability to see spirits. She has a crush on the shrine's god, Yashima, whom she often speaks with. Her name, Miko, is also the term for a Shinto shrine attendant.
Kenji is the president and only member of his school's calligraphy club. He is quiet, aloof, and rather slow on the uptake. He loves his brushes, and he often does calligraphy for the Raifuku shrine. He only does calligraphy when he is 'inspired', yet it takes him a while to realise that most of his sources of inspiration revolve around Yurie, who has an intense crush on him. At the end of the anime, he becomes Yurie's boyfriend.
Yashima is the local kami of the Raifuku shrine. He wishes to be a rock star, so he often possesses Mitsue (who is totally against this) in order to fulfil his dream. He is also often seen with an Akita Inu that talks. He seems to be close friends with Miko Saegusa, but it is implied that he is more interested in her sister, Matsuri.
Shoukichi is Yurie's younger brother, who like Miko, attends the same school as his older sister, one grade below. Often, he acts more mature than his sister and often teases her, but he does love her. He has a crush on Miko, and acts differently and blushes whenever he is around her.
A kouhai of Yurie, Matsuri, and Mitsue who is also in love with Kenji.
A male student at Yurie's school who was competing for student council.
A poverty god Yurie takes in after he saves Tama's life. He shares Tama's body.
Yurie's pet cat. After she began to share her body with Bin-chan, she exhibits a number of human traits which make Shoukichi suspicious.
Yurie and Soukichi's mother.
Yurie and Soukichi's father.
Ino, Shika, Chou
Ino
Shika
Chou
The three tiny spirits that the God Association sends to Yurie as her assistants. Their names are puns, as they were given by Yurie for unrelated reasons but correspond to the animals that they resemble. Chou is a butterfly, Ino is a boar and Shika is a deer. "Ino-Shika-Chou" is also a winning hand in the cards game, Hanafuda.
Media
Anime
There are sixteen episodes in the anime series. Twelve episodes were broadcast on TV Asahi in 720p, omitting episodes 8, 11, 13, and 16. The DVD release included all sixteen episodes. The opening theme was performed by Maho Tomita, and the closing theme was performed by MAKO.
On July 3, 2008, Geneon Entertainment and Funimation announced an agreement to distribute select titles in North America. While Geneon Entertainment still retained the license, Funimation would assume exclusive rights to the manufacturing, marketing, sales and distribution of select titles. Kamichu! was one of several titles involved in the deal. However, as of August 2011, the rights to the series had expired.
The titles of several episodes are from Japanese pop songs from the 1980s and 1990s.
Manga
Kamichu! was adapted as a manga serialized by MediaWorks in Dengeki Daioh, a shōnen manga magazine, and collected in two tankōbon volumes.
There are fourteen episodes plus one short episode in the manga series. Four long episodes consist of two parts (02+03, 04+05, 09+10, 12+13).
Music
Three Kamichu! CDs were released:
アイスキャンディー Maxi - 2005-08-24
晴れのちハレ! Maxi - 2005-08-24
Kamichu OST - 2005-10-26
Reception
The anime received an Excellence Prize at the 2005 Japan Media Arts Festival.
See also
Arahitogami: More information on human being as a God(dess) in Shinto religion.
References
External links
Official Kamichu! website by Sony Music
Official Kamichu! website
Interview with Hideyuki Kurata and Koji Masunari - about the anime Kamichu!
2005 manga
Animax original programming
Anime with original screenplays
Aniplex
Brain's Base
Dengeki Comics
Dengeki Daioh
Fantasy anime and manga
Geneon USA
Hideyuki Kurata
Japanese mythology in anime and manga
MediaWorks (publisher)
Religious comics
School life in anime and manga
Shinto in fiction
Shinto kami in anime and manga
Shōnen manga
Slice of life anime and manga
TV Asahi original programming
Television shows about spirit possession
Yōkai in anime and manga
Iyashikei anime and manga
|
Mosely is a family name. Notable people with the name include:
Edward Mosely, the collector of the Mosely Collection of stamps which is now on exhibition in the British Library Philatelic Collections
Martin Ephraim Mosely (1877-1948), English entomologist
Merv Mosely, American football player
Peter Mosely, an American musician
Robert Mosely, American singer and songwriter known for writing "Sha-La-La" and "Midnight Flyer"
Semie Mosely, American guitar maker and founder of Mosrite Guitars
Detective Mosely, a fictional character from the Gabriel Knight game series
See also
Moseley (surname)
Mosley (surname)
Mozley, surname
|
```yaml
- name: regression/issue_590__sys_modules_crap.yml
hosts: test-targets
tasks:
- meta: end_play
when:
- ansible_version.full is version('2.8', '<', strict=True)
- custom_python_uses_distro:
register: out
- assert:
that:
- "'id' in out.info"
fail_msg: out={{out}}
tags:
- issue_590
```
|
The Israeli Artillery Corps (, Heil HaTothanim) is the Israel Defense Forces corps responsible for operating medium and long-range artillery. The current commander of the Artillery Corps is Brigadier General Neri Horowitz. He replaced Brig. Gen. Aviram Sela.
The corps is tasked with two principal missions:
Assisting IDF maneuvering forces, at the place, time and with the firepower required.
Paralyzing and destroying enemy targets throughout the IDF zone of operations.
Structure
The Artillery Corps is an integral corps of GOC Army Headquarters.
It is a diverse corps, with its lion share consisting of high-trajectory barrel artillery. The corps consist of three main support regiments:
214th "David's Sling" Artillery Regiment, UAV training unit
215th "Pillar of Fire" Artillery Regiment, composed of the regular-service battalions Drakon ("Dragon") and Reshef ("Flash") as well as reserve battalions.
282nd "Golan" Artillery Regiment, composed of the regular Namer ("Leopard") and Keren ("Ray") battalions, the Ra'am ("Thunder") MLRS battalion, as well as additional reserve battalions.
425th "Fire Flame" Artillery Regiment, artillery training unit
The corps also operates the Field Artillery School and a training center.
The corps' importance to the IDF is growing due to the rapid evolution of modern technology. The corps is amongst the most advanced components of the IDF, using advanced technology to improve its precision and effectiveness. During the Second Lebanon War the Israeli Artillery Corps was second only to the Israeli Air Force in the firepower it expended.
Artillery Corps soldiers wear Turquoise berets and black army boots.
Reserve units
209th "Kadion" (Reserve) Artillery Regiment
213th "Revival" (Reserve) Artillery Regiment
454th "Tabor" (Reserve) Artillery Regiment
738th (Reserve) Artillery Regiment
Equipment
The primary equipment used in most regular and reserve batteries is the M109 "Doher" (Galloper) self-propelled howitzer. To assist with ammunition carriage and transport, regular batteries use the M548, a modified version of the M113 carrier, nicknamed "Alpha". In addition, batteries also use Humvees and M113 carriers.
Also in service is the M270 MLRS multiple rocket launcher, the Spike NLOS missile system mounted on M113 chassis for precision strike, as well as the Elbit Hermes 450 and IAI Sky Rider UAVs for artillery spotting. On order are the IMI Lynx and IAI JUMPER multiple rocket launchers to bolster its strike capability against enemy positions and rocket-launching cells.
In addition, the corps also possesses radar and navigation system, some of which are classified.
In 1977, the IDF began developing another self-propelled howitzer, the "Sholef" (Gun-slinger), based on the M109 with a Merkava chassis. The main advantage of the "Sholef" was its self-loading ability, which reduced the number of crewmen from 7 to 4. The project was completed but the IDF decided not to mass-produce the "Sholef" because of its high cost, preferring to purchase the M270 MLRS multiple rocket launcher instead. Its main focus switched to improving the precision systems of the "Doher". The "Sholef" was used operationally only once, in 1990.
In 2010, Israel began an overhaul of the Artillery Corps, based on lessons from the 2006 Lebanon War. The Artillery Corps is being upgraded with new, indigenously produced self-propelled cannons, rockets, missiles produced by Israel's defense industries, which will replace older equipment, as well as state-of-the-art command, control, computers, and communications. Its operational role now reflects a new concept in which artillery is seen as an equal part of the combat force rather than a support element.
Training
The Israeli Artillery Corps holds its basic training, commanders course and officers school at the Field Artillery School (, Bislat), better known as Shivta, after the ancient Nabataean town of the same name.
New recruits go through four months of basic training, in which they learn basic infantry weaponry and drills, as well as basic theoretical artillery training. At the end of the basic training stage, the recruits receive their Turquoise berets, symbolizing their acceptance into the corps. They then advance to an additional four months of advanced training, throughout which they participate in IDF operations. After completing their training, soldiers either join operational batteries or advance to the commanders course, for an additional four months of training.
Notable alumni
Dan Harel
Danny Robas
Yuval Banay
Shlomo Artzi
Yair Nitzani
Amos Lapidot
References
Corps of Israel
Artillery administrative corps
Military units and formations established in 1948
|
Pierre-Joseph Céloron de Blainville (29 December 1693, Montreal—14 April 1759, Montreal) — also known as Celeron de Bienville (or Céleron, or Céloron, etc.) — was a French Canadian Officer of Marine. In 1739 and '40 he led a detachment to Louisiana to fight the Chickasaw in the abortive Chickasaw Campaign of 1739. In 1749 he led the 'Lead Plate Expedition' to advance France's territorial claim on the Ohio Valley.
Biography
Pierre Joseph Céloron de Blainville was born at Montreal on 29 December 1693. He was the son of Jean-Baptiste Céloron de Blainville and Hélène Picoté de Belestre.
Céloron entered military service in 1713. At this time the French collaborated with the Indians in pressuring the New England colonies, but his first firm record is an appointment as lieutenant commandant to the post at Michilimackinac in 1734 (Burton, 328). He seems to have been appointed to a second term in 1737, but before the expiration of that term he was called to Louisiana.
The British-allied Chickasaw nation, in present-day northern Mississippi, blocked communication between Upper and Lower
Louisiana. Bienville, Governor of Louisiana, assembled a second grand campaign against them in 1739. In response to a call to the Canadian government for assistance, Céloron was dispatched to Fort de l'Assumption near present-day Memphis, Tennessee, with a 'considerable number of Northern Indians' and a company of cadets. The assembled forces remained in place through the winter without striking the fortified villages of the Chickasaw, 120 miles to the east. But finally in March, 1740, Céloron with his corps of cadets, one hundred regulars, and four or five hundred Indians set forth. After some skirmishing the Chickasaw were found quite willing to make peace (Atkinson, 70).
After his return to Michilimackinac, Céloron was appointed to command of Detroit, at which time he was referred to as a Chevalier of the Military Order of Saint Louis and a Captain in the Department of Marine. In 1744, he was appointed to command at Fort Niagara, and in 1746, Fort St. Frédéric on Lake Champlain (Burton, 327).
The 'Lead Plate' Expedition
From 1743 to 1748, Britain and France fought King George's War. During this war, England blockaded New France, breaking down the French fur trade. The British became the major trading partners with Native Americans in the Ohio valley.
France claimed the Ohio Valley (and indeed the entire Mississippi basin) on the basis of the explorations made by La Salle in 1669 and 1682. Great Britain claimed the Ohio Valley on the basis of purchases from Native Americans in 1744. In fact, both the colonies of Virginia and Pennsylvania had claims on the Ohio valley, although in the 1740s and 1750s, Virginia was more active in pressing her claim.
According to R. E. Banta, author of The Ohio [Rivers of America series], in March of 1749, the Ohio Company of Virginia received a grant from King George, which included 200,000 acres on the south bank of the Ohio between the Monongahela and the Great Kanawha Rivers. One goal of establishing this grant was to test the French's willingness to defend the Ohio. The grant in turn provoked the immediate dispatch of Céloron's expedition from Montreal (page 65).
In 1748, Comte de la Galissoniere, the governor of Canada, ordered Céloron to strengthen the French claim on the Ohio Valley. Céloron carried out this mission in the summer of 1749 by means of an expedition through the contested territory. He set out from Montreal on June 15, 1749, in a flotilla consisting of large boats and canoes. The expedition included 216 French Canadians and 55 Native Americans. On the shore of Lake Erie, at the mouth of Chautauqua Creek in present-day Westfield, New York, the expedition cut a road over the French Portage Road, and carried their boats and equipment overland to Chautauqua Lake, then followed the Chadakoin River and Conewango Creek to the Allegheny River, reaching it on July 29, 1749.
As it progressed, the expedition sought to strengthen France's claim to the territory by marking it at the mouths of several principal tributaries. At each point, a tin or copper plate bearing the French royal arms was nailed to a tree. Below, an inscribed leaden plate was buried, declaring the claims of France. This was a traditional European mode of marking territory, but it might have contributed to Native American anxieties about the intentions of the French, and thus ultimately had a counterproductive effect.
Reaching the Monongahela River, the party boated past Shannopin's Town at the current site of Pittsburgh, and down the Ohio River. They paused at Kittanning, but found the village abandoned except for a Lenape chief, whom they invited to attend a council meeting with Céloron at Logstown. At Logstown, in present-day western Pennsylvania, Céloron discovered English traders. Incensed, he evicted the traders and wrote a scolding note to the governor of Pennsylvania. He then hectored the Native Americans about French dominance of the region. This overbearing behavior offended the Iroquois in his party, some of whom returned to their homeland in present-day New York, tearing down copper plates as they went.
A plate was buried at the mouth of the Muskingum River on August 15, 1749 and the mouth of the Kanawha River on August 18, 1749. Arriving at Lower Shawneetown at the Scioto River's mouth on August 21, he again encountered English traders. Céloron summoned them to his camp on August 25 and demanded that they leave, stating that "they had no right to trade or aught else on the [Ohio] River," but most refused.
The expedition then traveled up the Great Miami River to Pickawillany, arriving there on 13 September. They spent a week camped outside the village and met briefly with the chief Memeskia, who promised to consider returning to live near Detroit as a French ally. Céloron later remarked, speaking in general about his journey, that "the nations of these localities are very badly disposed towards the French, and are entirely devoted to the English."
Five months after the expedition began, it returned to Montreal, arriving November 10, 1749. Céloron's journal is archived at Archives of the Department de la Marine, Paris, France (Galbreath, 12).
In total, Céloron buried at least six lead plates. One was stolen by curious Indians almost immediately, possibly before it was even buried, and placed in British hands. Two more were found in the early 19th Century. Measuring about eleven inches long and seven and one-half inches wide, each lead plate was marked with an inscription as follows (Galbreath, 110-111):
The French continued to press their claim to the Ohio Valley, and colonial friction with the British finally contributed to outbreak of the Seven Years' War.
Last years and death
Upon his return, Céloron was reappointed to the important post at Detroit, and in 1753, was promoted to Major and appointed to Montreal. He died at Montreal on April 14, 1759 (Burton, 332).
Family
Céloron had three children by his first wife, Marie Madeline Blondeau, married December 30. 1724. His second wife was Catherine Eury de la
Parelle, married in Montreal on October 13, 1743, and with whom he enjoyed nine children (Burton, 327).
See also
Céloron de Blainville
Shannopin's Town
Kuskusky
Logstown
Kittanning (village)
Lower Shawneetown
Pickawillany
Joseph Pierre de Bonnecamps
Sources
pp. 62–73
Chapter on Céloron, pp. 327–333
Céloron's Ohio Expedition journal and other accounts
Account of Céloron at Logstown, pg. 26
Hildreth, S. P.: Pioneer History: Being an Account of the First Examinations of the Ohio Valley, and the Early Settlement of the Northwest Territory, H. W. Derby and Co., Cincinnati, Ohio (1848) pp. 18–24.
Andrew Arnold Lambing, translator. "Celeron's Journal." In Expedition of Céloron to the Ohio Country in 1749. Edited by Charles B. Galbreath. Columbus, Ohio: F.J. Heer Printing Company, 1921. Pages 12 to 77.
Marshall, O.H. "De Céloron's Expedition to the Ohio in 1749." Magazine of American History II (3) (1878): 127-150. [ Marshall, who in 1878 wrote the first complete account of Céloron's journey, is credited with discovering the explorer's journals in the 1850s in the archives of the Department de la Marine and Grandes Archives of the Depot de la Marine in Paris.]
References
External links
Biography at the Dictionary of Canadian Biography Online
1693 births
1759 deaths
French Canadian people of the French and Indian War
Explorers of the United States
French explorers of North America
Canadian explorers
|
```html
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: Member List</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>PxBVH34MidphaseDesc Member List</h1>This is the complete list of members for <a class="el" href="structPxBVH34MidphaseDesc.html">PxBVH34MidphaseDesc</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="structPxBVH34MidphaseDesc.html#4d52261bfb1c125867e33a6fdfb187d3">isValid</a>() const </td><td><a class="el" href="structPxBVH34MidphaseDesc.html">PxBVH34MidphaseDesc</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structPxBVH34MidphaseDesc.html#8f709ea9ebe56b30019983826ebf02d2">numTrisPerLeaf</a></td><td><a class="el" href="structPxBVH34MidphaseDesc.html">PxBVH34MidphaseDesc</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structPxBVH34MidphaseDesc.html#c0848cd6f8b3b771e5e5761df2f6b033">setToDefault</a>()</td><td><a class="el" href="structPxBVH34MidphaseDesc.html">PxBVH34MidphaseDesc</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr style="width: 100%; height: 2px;"><br>
</body>
</html>
```
|
The following are the national records in Olympic weightlifting in Kenya. Records are maintained in each weight class for the snatch lift, clean and jerk lift, and the total for both lifts by the Kenya Amateur Weightlifting Association.
Current records
Men
Women
References
Kenya
weightlifting
weightlifting
|
```xml
// Vendored / modified from @facebook/metro
// path_to_url
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
export interface CustomTransformOptions {
[key: string]: unknown;
}
export type TransformProfile = 'default' | 'hermes-stable' | 'hermes-canary';
export interface BabelTransformerOptions {
readonly customTransformOptions?: CustomTransformOptions;
readonly dev: boolean;
readonly enableBabelRCLookup?: boolean;
readonly enableBabelRuntime: boolean | string;
readonly extendsBabelConfigPath?: string;
readonly experimentalImportSupport?: boolean;
readonly hermesParser?: boolean;
readonly hot: boolean;
readonly minify: boolean;
readonly unstable_disableES6Transforms?: boolean;
readonly platform: string | null;
readonly projectRoot: string;
readonly publicPath: string;
readonly unstable_transformProfile?: TransformProfile;
readonly globalPrefix: string;
}
export interface BabelTransformerArgs {
readonly filename: string;
readonly options: BabelTransformerOptions;
readonly plugins?: unknown;
readonly src: string;
}
export interface BabelTransformer {
transform: (args: BabelTransformerArgs) => {
ast: unknown;
metadata: unknown;
};
getCacheKey?: () => string;
}
```
|
An ethical job is a broad term to describe a job which accords with a person's ethics or values.
Surveys
In 2005, The Guardian newspaper polled 2,000 undergraduates in the UK, and found that "over 70% of students said that a company's ethical track record is a crucial factor when choosing their employer".
A 2005 poll by High Fliers Research of 6,227 final-year students at universities in Australia and New Zealand found that 40% said it was "very important" that their first employer be socially responsible, and 30% said it was "very important" that their first employer be environmentally responsible.
In 2007, Harris Interactive published the results of an opinion poll of 1,741 workers in the United States. 73% of respondents said it was "important that [one's] employer be environmentally and socially responsible".
In a 2009 poll of employers at Australian non-profit organizations conducted by EthicalJobs.com.au, 87% said that job seekers were more likely to apply for a position seen to be ethical.
See also
Green job
Green-collar worker
Corporate social responsibility
References
External links
ABC Radio National: Life Matters, Ethical Jobs, 23 June 2009.
Rosemary Sainty, Ethics and Graduate Recruitment November 2006.
UK Net Guide, Guide to Ethical Careers
Economy and the environment
Employment classifications
|
Francesco Vianello (30 August 1952 – 3 May 2009), better known by his nickname Fravia (sometimes +Fravia or Fravia+), was a software reverse engineer, who maintained a web archive of reverse engineering techniques and papers. He also worked on steganography. He taught on subjects such as data mining, anonymity and stalking.
Vianello spoke six languages (including Latin) and had a degree in the history of the early Middle Ages. He was an expert in linguistics-related informatics. For five years he made available a large quantity of material related to reverse engineering through his website, which also hosted the advice of reverse engineering experts, known as reversers, who provided tutorials and essays on how to hack software code as well as advice related to the assembly and disassembly of applications, and software protection reversing.
Vianello's web presence dates from 1995 when he first got involved in research related to reverse code engineering (RCE). In 2000 he changed his focus and concentrated on advanced internet search methods and the reverse engineering of search engine code.
His websites "www.fravia.com" and "www.searchlores.org" contained a large amount of specialised information related to data mining. His website "www.searchlores.org" has been called a "very useful instrument for searching the web", and his "www.fravia.com" site has been described as "required reading for any spy wanting to go beyond simple Google searches."
There are still several mirrors of Fravia's old websites, even though the original domain names are no longer functional. The last mirror of Search Lores linked originally by Fravia directly from his website ("search.lores.eu") went offline in February 2020, but a new mirror came to existence later in 2020 at fravia.net.
As Francesco Vianello
In the 1980s, he was a member of the Esteban Canal chess club in Venice, before moving to CES in Brussels.
Graduated in history at the University of Venice in 1994, Vianello had a master's degree in history and philosophy in 1999. He was interested in studying the arts and humanities and was aiming to build a collective knowledge on the particular subject of learning and Web-searching as an art.
He spoke six languages (including Latin). Fravia participated as a speaker in the 22nd Chaos Communication Congress. His lecture was on the subject of Hacking.
As Fravia
Vianello was focusing on privacy and created the myth of Fjalar Ravia (aka fravia+, msre, Spini, Red Avenger, ~S~ Sustrugiel, Pellet, Ravia F.) as protection from hostile seekers.
At least two distinct phases of his internet public work can be identified.
The first, from 1995 (starting date of his internet presence) to 1999 was related to software reversing, software protection, decompiling, disassembling, and deep software code deconstruction. At those times the WDasm disassembler by Eric Grass, which also included a debugger, was a popular download.
The second, starting in 2000, where the first stage left off, was focused on an (apparently) entirely different field: Internet Knowledge search. In February 2001, Vianello made a conference at the École Polytechnique in Paris about "The art of information searching on today's Internet". He also presented his work "Wizard searching: reversing the commercial Web for fun and knowledge" at REcon 2005.
First Period: Reverse Engineering ("Reality Cracking")
In the first period Vianello focused on reverse-engineering software protection, content copyright, and software patents. The steps for cracking software protection were in many cases published on his website, in the form of essays and Old Red Cracker's lessons.
Vianello asked the community to remove from the web every copy of his old site (www.fravia.org – now a spam advertisement website), corresponding to this period, because "The idea was to convert young crackers [...] The experiment worked only in part, hence the decision a couple of years ago to freeze that site". Nevertheless, some mirrors still exist. The site has been described as containing "useful tools and products".
According to the 2001 ACM Multimedia Workshops of the Association for Computing Machinery, Vianello's website contained information which could assist hackers of a certain classification who were not skilled enough "to mount a new or novel attack". His website also analysed brute force attacks on steganography.
This period included papers related to reality-cracking, i.e. the capacity of the seeker to decode the hidden facts behind appearance.
Reverse engineering a legitimately bought program and studying or modifying its code for knowledge was claimed as legal by Vianello at least in the European Union under some restricted conditions.
Second Period: Web Searching ("Search Lores")
The transition between the two phases occurred after realizing the growing importance of Internet search engines as tools to access information. According to his vision, access to information should not be restricted, and he was advocating for a true openness of web information contents. He strongly criticized the large amount of advertising on the Internet, which he considered as promoting unnecessary products to a population of naive consumers.
Richard Stallman, in his web article "Ubuntu Spyware: What to do?", mentions that it was Vianello who alerted him to the fact that performing a file search on a computer running Microsoft Windows would cause it to send a network packet to an Internet server, which was then detected by the firewall in Vianello's computer.
In the second stage of his work, Vianello explained how the content is currently structured on the World Wide Web and the difficulties of finding relevant information through search engines because of the growing number of ads, that search engines promote today.
In 2005, Vianello was the keynote speaker at the T2 infosec conference. The subject of his speech was: "The Web – Bottomless Cornucopia and Immense Garbage Dump".
+HCU
Vianello was a member of the so-called High Cracking University (+HCU), founded by Old Red Cracker to advance research into Reverse Code Engineering (RCE). The addition of the "+" sign in front of the nickname of a reverser signified membership in the +HCU.
+HCU published a new reverse engineering problem annually and a small number of respondents with the best replies qualified for an undergraduate position at the "university". Vianello's website was known as "+Fravia's Pages of Reverse Engineering" and he used it to challenge programmers as well as the wider society to "reverse engineer" the "brainwashing of a corrupt and rampant materialism". In its heyday, his website received millions of visitors per year and its influence was described as "widespread".
Nowadays most of the graduates of +HCU have migrated to Linux and few have remained as Windows reversers. The information at the university has been rediscovered by a new generation of researchers and practitioners of RCE who have started new research projects in the field.
Legacy
Vianello has been described as an inspiration for many hackers and reversers, a friend of the founder of the CCC Wau Holland, and a motivation for Jon Lech Johansen to understand the inner workings of computer programs. Johansen commented in a blog post that Fravia's site was a goldmine during his education as a reverse engineer. In his later years, he moved from software reversing to free software and searching the web further. His website has been described as the meeting point of the people who wanted to search the web deeper still.
In September 2008, Vianello stopped updating his site and holding conferences, after being diagnosed with and receiving treatment for squamous cell carcinoma of the tonsil, which metastasized. His site was frozen for several months but was updated again on 9 March 2009 while he was slowly recovering and focusing on Linux. He died suddenly on Sunday, 3 May 2009 at the age of 56.
Published works
Francesco Vianello, Gli Unruochingi e la famiglia di Beggo conte di Parigi. (ricerche sull'alta aristocrazia carolingia) // Bollettino dell'Istituto storico italiano per il Medioevo 91 (1984).
Francesco Vianello, Università di Padova, I mercanti di Chiavenna in età moderna visti dalla Terraferma veneta.
Francesco Vianello,
Fravia (ed.) Annotation and exegesis of Origo Gentis Langobardorum.
Notes and references
External links
An archive of Fravia's Searchlores (no longer updated)
Fravia's website (mirror)
Fravia's Real Identity (mirror)
Fravia's fake auto-biography (mirror)
Fravia's farewell (April 2009) (mirror)
Fravia at ccc congress 2005
Fravia at ccc congress 2002
Last known mirror of the original "reversing site"
Video of a Fravia conference presentation at Recon 2005 in Montreal
Video of a Fravia conference presentation at Recon 2006 in Montreal
I have seen the ICE age, by Malay
+Greythorne's Privacy Nexus (Fravia's Partner +gthorne)
Iczelion's Win32 Assembly Homepage
1952 births
2009 deaths
Deaths from cancer in Belgium
Italian computer programmers
Computer security specialists
|
```xml
import { useEffect } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
const useSearchParamsEffect = (cb: (params: URLSearchParams) => URLSearchParams | undefined, deps: any[]) => {
const history = useHistory();
const location = useLocation();
useEffect(() => {
const params = new URLSearchParams(location.search);
const result = cb(params);
if (result) {
history.replace({ ...location, search: result.toString() });
}
}, [location.search, ...deps]);
};
export default useSearchParamsEffect;
```
|
```go
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package namespace
import (
"bytes"
"fmt"
"net/http"
"path"
"github.com/gogo/protobuf/jsonpb"
"go.uber.org/zap"
clusterclient "github.com/m3db/m3/src/cluster/client"
"github.com/m3db/m3/src/cluster/placementhandler/handleroptions"
nsproto "github.com/m3db/m3/src/dbnode/generated/proto/namespace"
"github.com/m3db/m3/src/dbnode/namespace"
"github.com/m3db/m3/src/query/api/v1/options"
"github.com/m3db/m3/src/query/api/v1/route"
"github.com/m3db/m3/src/query/api/v1/validators"
"github.com/m3db/m3/src/query/generated/proto/admin"
"github.com/m3db/m3/src/query/util/logging"
xerrors "github.com/m3db/m3/src/x/errors"
"github.com/m3db/m3/src/x/instrument"
xhttp "github.com/m3db/m3/src/x/net/http"
)
var (
// M3DBAddURL is the url for the M3DB namespace add handler.
M3DBAddURL = path.Join(route.Prefix, M3DBServiceNamespacePathName)
// AddHTTPMethod is the HTTP method used with this resource.
AddHTTPMethod = http.MethodPost
)
// AddHandler is the handler for namespace adds.
type AddHandler struct {
Handler
validator options.NamespaceValidator
}
// NewAddHandler returns a new instance of AddHandler.
func NewAddHandler(
client clusterclient.Client,
instrumentOpts instrument.Options,
validator options.NamespaceValidator,
) *AddHandler {
return &AddHandler{
Handler: Handler{
client: client,
instrumentOpts: instrumentOpts,
},
validator: validator,
}
}
func (h *AddHandler) ServeHTTP(
svc handleroptions.ServiceNameAndDefaults,
w http.ResponseWriter,
r *http.Request,
) {
ctx := r.Context()
logger := logging.WithContext(ctx, h.instrumentOpts)
md, rErr := h.parseRequest(r)
if rErr != nil {
logger.Error("unable to parse request", zap.Error(rErr))
xhttp.WriteError(w, rErr)
return
}
opts := handleroptions.NewServiceOptions(svc, r.Header, nil)
nsRegistry, err := h.Add(md, opts)
if err != nil {
if err == validators.ErrNamespaceExists {
logger.Error("namespace already exists", zap.Error(err))
xhttp.WriteError(w, xhttp.NewError(err, http.StatusConflict))
return
}
logger.Error("unable to add namespace", zap.Error(err))
xhttp.WriteError(w, err)
return
}
resp := &admin.NamespaceGetResponse{
Registry: &nsRegistry,
}
xhttp.WriteProtoMsgJSONResponse(w, resp, logger)
}
func (h *AddHandler) parseRequest(r *http.Request) (*admin.NamespaceAddRequest, error) {
defer r.Body.Close() // nolint:errcheck
rBody, err := xhttp.DurationToNanosBytes(r.Body)
if err != nil {
return nil, xerrors.NewInvalidParamsError(err)
}
addReq := new(admin.NamespaceAddRequest)
if err := jsonpb.Unmarshal(bytes.NewReader(rBody), addReq); err != nil {
return nil, xerrors.NewInvalidParamsError(err)
}
return addReq, nil
}
// Add adds a namespace.
func (h *AddHandler) Add(
addReq *admin.NamespaceAddRequest,
opts handleroptions.ServiceOptions,
) (nsproto.Registry, error) {
var emptyReg nsproto.Registry
md, err := namespace.ToMetadata(addReq.Name, addReq.Options)
if err != nil {
return emptyReg, xerrors.NewInvalidParamsError(fmt.Errorf("bad namespace metadata: %v", err))
}
store, err := h.client.Store(opts.KVOverrideOptions())
if err != nil {
return emptyReg, err
}
currentMetadata, version, err := Metadata(store)
if err != nil {
return emptyReg, err
}
if err := h.validator.ValidateNewNamespace(md, currentMetadata); err != nil {
if err == validators.ErrNamespaceExists {
return emptyReg, err
}
return emptyReg, xerrors.NewInvalidParamsError(err)
}
newMDs := append(currentMetadata, md)
if err = validateNamespaceAggregationOptions(newMDs); err != nil {
return emptyReg, xerrors.NewInvalidParamsError(err)
}
nsMap, err := namespace.NewMap(newMDs)
if err != nil {
return emptyReg, xerrors.NewInvalidParamsError(err)
}
protoRegistry, err := namespace.ToProto(nsMap)
if err != nil {
return emptyReg, fmt.Errorf("error constructing namespace protobuf: %v", err)
}
_, err = store.CheckAndSet(M3DBNodeNamespacesKey, version, protoRegistry)
if err != nil {
return emptyReg, fmt.Errorf("failed to add namespace: %v", err)
}
return *protoRegistry, nil
}
```
|
```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.haulmont.cuba.web.gui.components;
import com.haulmont.cuba.gui.components.HasContextHelp;
import java.util.function.Consumer;
/**
* {@link CompositeComponent} having a context help.
* Default implementations delegate their execution to {@link CompositeComponent#getComposition()}.
*/
public interface CompositeWithContextHelp extends HasContextHelp {
@Override
default String getContextHelpText() {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
return hasContextHelp.getContextHelpText();
}
@Override
default void setContextHelpText(String contextHelpText) {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
hasContextHelp.setContextHelpText(contextHelpText);
}
@Override
default boolean isContextHelpTextHtmlEnabled() {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
return hasContextHelp.isContextHelpTextHtmlEnabled();
}
@Override
default void setContextHelpTextHtmlEnabled(boolean enabled) {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
hasContextHelp.setContextHelpTextHtmlEnabled(enabled);
}
@Override
default Consumer<ContextHelpIconClickEvent> getContextHelpIconClickHandler() {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
return hasContextHelp.getContextHelpIconClickHandler();
}
@Override
default void setContextHelpIconClickHandler(Consumer<ContextHelpIconClickEvent> handler) {
HasContextHelp hasContextHelp = (HasContextHelp) ((CompositeComponent) this).getComposition();
hasContextHelp.setContextHelpIconClickHandler(handler);
}
}
```
|
Canton of Cholet-1 is a canton of France, located in the Maine-et-Loire department, in the Pays de la Loire region. Since the French canton reorganisation which came into effect in March 2015, the canton contains the southwestern part of the commune of Cholet.
See also
Arrondissement of Cholet
Cantons of the Maine-et-Loire department
Communes of the Maine-et-Loire department
References
External links
Canton of Cholet 1 on the website of the General Council of Maine-et-Loire
Cholet 1
Cholet
|
```php
<?php
declare(strict_types=1);
/**
*/
namespace OCA\UserStatus\Tests\Controller;
use OCA\DAV\CalDAV\Status\StatusService as CalendarStatusService;
use OCA\UserStatus\Controller\UserStatusController;
use OCA\UserStatus\Db\UserStatus;
use OCA\UserStatus\Exception\InvalidClearAtException;
use OCA\UserStatus\Exception\InvalidMessageIdException;
use OCA\UserStatus\Exception\InvalidStatusIconException;
use OCA\UserStatus\Exception\InvalidStatusTypeException;
use OCA\UserStatus\Exception\StatusMessageTooLongException;
use OCA\UserStatus\Service\StatusService;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\OCS\OCSBadRequestException;
use OCP\AppFramework\OCS\OCSNotFoundException;
use OCP\IRequest;
use Psr\Log\LoggerInterface;
use Test\TestCase;
use Throwable;
class UserStatusControllerTest extends TestCase {
/** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
/** @var StatusService|\PHPUnit\Framework\MockObject\MockObject */
private $statusService;
/** @var CalendarStatusService|\PHPUnit\Framework\MockObject\MockObject $calendarStatusService */
private $calendarStatusService;
/** @var UserStatusController */
private $controller;
protected function setUp(): void {
parent::setUp();
$request = $this->createMock(IRequest::class);
$userId = 'john.doe';
$this->logger = $this->createMock(LoggerInterface::class);
$this->statusService = $this->createMock(StatusService::class);
$this->calendarStatusService = $this->createMock(CalendarStatusService::class);
$this->controller = new UserStatusController(
'user_status',
$request,
$userId,
$this->logger,
$this->statusService,
$this->calendarStatusService,
);
}
public function testGetStatus(): void {
$userStatus = $this->getUserStatus();
$this->statusService->expects($this->once())
->method('findByUserId')
->with('john.doe')
->willReturn($userStatus);
$response = $this->controller->getStatus();
$this->assertEquals([
'userId' => 'john.doe',
'status' => 'invisible',
'icon' => '',
'message' => 'On vacation',
'clearAt' => 60000,
'statusIsUserDefined' => true,
'messageIsPredefined' => false,
'messageId' => null,
], $response->getData());
}
public function testGetStatusDoesNotExist(): void {
$this->calendarStatusService->expects(self::once())
->method('processCalendarStatus')
->with('john.doe');
$this->statusService->expects($this->once())
->method('findByUserId')
->with('john.doe')
->willThrowException(new DoesNotExistException(''));
$this->expectException(OCSNotFoundException::class);
$this->expectExceptionMessage('No status for the current user');
$this->controller->getStatus();
}
/**
* @param string $statusType
* @param string|null $statusIcon
* @param string|null $message
* @param int|null $clearAt
* @param bool $expectSuccess
* @param bool $expectException
* @param Throwable|null $exception
* @param bool $expectLogger
* @param string|null $expectedLogMessage
*
* @dataProvider setStatusDataProvider
*/
public function testSetStatus(string $statusType,
?string $statusIcon,
?string $message,
?int $clearAt,
bool $expectSuccess,
bool $expectException,
?Throwable $exception,
bool $expectLogger,
?string $expectedLogMessage): void {
$userStatus = $this->getUserStatus();
if ($expectException) {
$this->statusService->expects($this->once())
->method('setStatus')
->with('john.doe', $statusType, null, true)
->willThrowException($exception);
} else {
$this->statusService->expects($this->once())
->method('setStatus')
->with('john.doe', $statusType, null, true)
->willReturn($userStatus);
}
if ($expectLogger) {
$this->logger->expects($this->once())
->method('debug')
->with($expectedLogMessage);
}
if ($expectException) {
$this->expectException(OCSBadRequestException::class);
$this->expectExceptionMessage('Original exception message');
}
$response = $this->controller->setStatus($statusType);
if ($expectSuccess) {
$this->assertEquals([
'userId' => 'john.doe',
'status' => 'invisible',
'icon' => '',
'message' => 'On vacation',
'clearAt' => 60000,
'statusIsUserDefined' => true,
'messageIsPredefined' => false,
'messageId' => null,
], $response->getData());
}
}
public function setStatusDataProvider(): array {
return [
['busy', '', 'Busy developing the status feature', 500, true, false, null, false, null],
['busy', '', 'Busy developing the status feature', 500, false, true, new InvalidStatusTypeException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to an invalid status type "busy"'],
];
}
/**
* @param string $messageId
* @param int|null $clearAt
* @param bool $expectSuccess
* @param bool $expectException
* @param Throwable|null $exception
* @param bool $expectLogger
* @param string|null $expectedLogMessage
*
* @dataProvider setPredefinedMessageDataProvider
*/
public function testSetPredefinedMessage(string $messageId,
?int $clearAt,
bool $expectSuccess,
bool $expectException,
?Throwable $exception,
bool $expectLogger,
?string $expectedLogMessage): void {
$userStatus = $this->getUserStatus();
if ($expectException) {
$this->statusService->expects($this->once())
->method('setPredefinedMessage')
->with('john.doe', $messageId, $clearAt)
->willThrowException($exception);
} else {
$this->statusService->expects($this->once())
->method('setPredefinedMessage')
->with('john.doe', $messageId, $clearAt)
->willReturn($userStatus);
}
if ($expectLogger) {
$this->logger->expects($this->once())
->method('debug')
->with($expectedLogMessage);
}
if ($expectException) {
$this->expectException(OCSBadRequestException::class);
$this->expectExceptionMessage('Original exception message');
}
$response = $this->controller->setPredefinedMessage($messageId, $clearAt);
if ($expectSuccess) {
$this->assertEquals([
'userId' => 'john.doe',
'status' => 'invisible',
'icon' => '',
'message' => 'On vacation',
'clearAt' => 60000,
'statusIsUserDefined' => true,
'messageIsPredefined' => false,
'messageId' => null,
], $response->getData());
}
}
public function setPredefinedMessageDataProvider(): array {
return [
['messageId-42', 500, true, false, null, false, null],
['messageId-42', 500, false, true, new InvalidClearAtException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to an invalid clearAt value "500"'],
['messageId-42', 500, false, true, new InvalidMessageIdException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to an invalid message-id "messageId-42"'],
];
}
/**
* @param string|null $statusIcon
* @param string $message
* @param int|null $clearAt
* @param bool $expectSuccess
* @param bool $expectException
* @param Throwable|null $exception
* @param bool $expectLogger
* @param string|null $expectedLogMessage
* @param bool $expectSuccessAsReset
*
* @dataProvider setCustomMessageDataProvider
*/
public function testSetCustomMessage(?string $statusIcon,
string $message,
?int $clearAt,
bool $expectSuccess,
bool $expectException,
?Throwable $exception,
bool $expectLogger,
?string $expectedLogMessage,
bool $expectSuccessAsReset = false): void {
$userStatus = $this->getUserStatus();
if ($expectException) {
$this->statusService->expects($this->once())
->method('setCustomMessage')
->with('john.doe', $statusIcon, $message, $clearAt)
->willThrowException($exception);
} else {
if ($expectSuccessAsReset) {
$this->statusService->expects($this->never())
->method('setCustomMessage');
$this->statusService->expects($this->once())
->method('clearMessage')
->with('john.doe');
$this->statusService->expects($this->once())
->method('findByUserId')
->with('john.doe')
->willReturn($userStatus);
} else {
$this->statusService->expects($this->once())
->method('setCustomMessage')
->with('john.doe', $statusIcon, $message, $clearAt)
->willReturn($userStatus);
$this->statusService->expects($this->never())
->method('clearMessage');
}
}
if ($expectLogger) {
$this->logger->expects($this->once())
->method('debug')
->with($expectedLogMessage);
}
if ($expectException) {
$this->expectException(OCSBadRequestException::class);
$this->expectExceptionMessage('Original exception message');
}
$response = $this->controller->setCustomMessage($statusIcon, $message, $clearAt);
if ($expectSuccess) {
$this->assertEquals([
'userId' => 'john.doe',
'status' => 'invisible',
'icon' => '',
'message' => 'On vacation',
'clearAt' => 60000,
'statusIsUserDefined' => true,
'messageIsPredefined' => false,
'messageId' => null,
], $response->getData());
}
}
public function setCustomMessageDataProvider(): array {
return [
['', 'Busy developing the status feature', 500, true, false, null, false, null],
['', '', 500, true, false, null, false, null, false],
['', '', 0, true, false, null, false, null, false],
['', 'Busy developing the status feature', 500, false, true, new InvalidClearAtException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to an invalid clearAt value "500"'],
['', 'Busy developing the status feature', 500, false, true, new InvalidStatusIconException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to an invalid icon value ""'],
['', 'Busy developing the status feature', 500, false, true, new StatusMessageTooLongException('Original exception message'), true,
'New user-status for "john.doe" was rejected due to a too long status message.'],
];
}
public function testClearMessage(): void {
$this->statusService->expects($this->once())
->method('clearMessage')
->with('john.doe');
$response = $this->controller->clearMessage();
$this->assertEquals([], $response->getData());
}
private function getUserStatus(): UserStatus {
$userStatus = new UserStatus();
$userStatus->setId(1337);
$userStatus->setUserId('john.doe');
$userStatus->setStatus('invisible');
$userStatus->setStatusTimestamp(5000);
$userStatus->setIsUserDefined(true);
$userStatus->setCustomIcon('');
$userStatus->setCustomMessage('On vacation');
$userStatus->setClearAt(60000);
return $userStatus;
}
}
```
|
Umagon can refer to:
a character in the Command & Conquer series of video games
a character in the anime series Konjiki no Gash Bell! (called Ponygon in the English version)
|
```glsl
namespace ${ROOT_NAMESPACE}
module AssemblyInfo =
open System.Reflection
open System.Runtime.CompilerServices
open Android.App
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[<assembly: AssemblyTitle("${PROJECT_NAME}")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[<assembly: AssemblyVersion("1.0.0")>]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[<assembly: AssemblyDelaySign(false)>]
//[<assembly: AssemblyKeyFile("")>]
()
```
|
```go
// +build linux freebsd
package fileutils // import "github.com/docker/docker/pkg/fileutils"
import (
"fmt"
"io/ioutil"
"os"
"github.com/sirupsen/logrus"
)
// GetTotalUsedFds Returns the number of used File Descriptors by
// reading it via /proc filesystem.
func GetTotalUsedFds() int {
if fds, err := ioutil.ReadDir(fmt.Sprintf("/proc/%d/fd", os.Getpid())); err != nil {
logrus.Errorf("Error opening /proc/%d/fd: %s", os.Getpid(), err)
} else {
return len(fds)
}
return -1
}
```
|
```xml
import { Observable } from '../Observable';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { EmptyError } from '../util/EmptyError';
import { OperatorFunction } from '../../internal/types';
import { filter } from './filter';
import { takeLast } from './takeLast';
import { throwIfEmpty } from './throwIfEmpty';
import { defaultIfEmpty } from './defaultIfEmpty';
import { identity } from '../util/identity';
/* tslint:disable:max-line-length */
export function last<T, D = T>(
predicate?: null,
defaultValue?: D
): OperatorFunction<T, T | D>;
export function last<T, S extends T>(
predicate: (value: T, index: number, source: Observable<T>) => value is S,
defaultValue?: S
): OperatorFunction<T, S>;
export function last<T, D = T>(
predicate: (value: T, index: number, source: Observable<T>) => boolean,
defaultValue?: D
): OperatorFunction<T, T | D>;
/* tslint:enable:max-line-length */
/**
* Returns an Observable that emits only the last item emitted by the source Observable.
* It optionally takes a predicate function as a parameter, in which case, rather than emitting
* the last item from the source Observable, the resulting Observable will emit the last item
* from the source Observable that satisfies the predicate.
*
* 
*
* @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
* callback if the Observable completes before any `next` notification was sent.
* @param {function} [predicate] - The condition any source emitted item has to satisfy.
* @param {any} [defaultValue] - An optional default value to provide if last
* predicate isn't met or no values were emitted.
* @return {Observable} An Observable that emits only the last item satisfying the given condition
* from the source, or an NoSuchElementException if no such items are emitted.
* @throws - Throws if no items that match the predicate are emitted by the source Observable.
*/
export function last<T, D>(
predicate?: ((value: T, index: number, source: Observable<T>) => boolean) | null,
defaultValue?: D
): OperatorFunction<T, T | D> {
const hasDefaultValue = arguments.length >= 2;
return (source: Observable<T>) => source.pipe(
predicate ? filter((v, i) => predicate(v, i, source)) : identity,
takeLast(1),
hasDefaultValue ? defaultIfEmpty<T | D>(defaultValue) : throwIfEmpty(() => new EmptyError()),
);
}
```
|
Roger Cardinal (1940 - 2017) was a Canadian film director from Quebec. He was most noted for the 1988 film Malarek, for which he was a Genie Award nominee for Best Director at the 10th Genie Awards in 1989.
His other credits included the films The Storm, Sex in the Snow (Après-ski), L'Apparition, Captive, Dead Silent, Risque and Brilliant, and episodes of the television series Urban Angel, Au nom du père et du fils and René Lévesque.
References
External links
1940 births
2017 deaths
20th-century Canadian screenwriters
20th-century Canadian male writers
Film directors from Quebec
Canadian screenwriters in French
Canadian male screenwriters
Screenwriters from Quebec
|
```objective-c
#ifndef LAGRANGEHALFC_ARITHMETIC_H
#define LAGRANGEHALFC_ARITHMETIC_H
///@file
///@brief This file contains the declaration of operations on LagrangeHalfC polynomials
#include "polynomials.h"
//initialize the LagrangeHalfCPolynomial structure
//(equivalent of the C++ constructor)
EXPORT void init_LagrangeHalfCPolynomial(LagrangeHalfCPolynomial* obj, const int32_t N);
//destroys the LagrangeHalfCPolynomial structure
//(equivalent of the C++ destructor)
EXPORT void destroy_LagrangeHalfCPolynomial(LagrangeHalfCPolynomial* obj);
/**
* FFT functions
*/
EXPORT void IntPolynomial_ifft(LagrangeHalfCPolynomial* result, const IntPolynomial* p);
EXPORT void TorusPolynomial_ifft(LagrangeHalfCPolynomial* result, const TorusPolynomial* p);
EXPORT void TorusPolynomial_fft(TorusPolynomial* result, const LagrangeHalfCPolynomial* p);
//MISC OPERATIONS
/** sets to zero */
EXPORT void LagrangeHalfCPolynomialClear(LagrangeHalfCPolynomial* result);
/** sets to this torus32 constant */
EXPORT void LagrangeHalfCPolynomialSetTorusConstant(LagrangeHalfCPolynomial* result, const Torus32 mu);
EXPORT void LagrangeHalfCPolynomialAddTorusConstant(LagrangeHalfCPolynomial* result, const Torus32 cst);
// /* sets to X^ai-1 */
//This function is commented, because it is not used
//in the current version. However, it may be included in future releases
//EXPORT void LagrangeHalfCPolynomialSetXaiMinusOne(LagrangeHalfCPolynomial* result, const int32_t ai);
/** multiplication via direct FFT */
EXPORT void torusPolynomialMultFFT(TorusPolynomial* result, const IntPolynomial* poly1, const TorusPolynomial* poly2);
EXPORT void torusPolynomialAddMulRFFT(TorusPolynomial* result, const IntPolynomial* poly1, const TorusPolynomial* poly2);
EXPORT void torusPolynomialSubMulRFFT(TorusPolynomial* result, const IntPolynomial* poly1, const TorusPolynomial* poly2);
/** termwise multiplication in Lagrange space */
EXPORT void LagrangeHalfCPolynomialMul(
LagrangeHalfCPolynomial* result,
const LagrangeHalfCPolynomial* a,
const LagrangeHalfCPolynomial* b);
/** termwise multiplication and addTo in Lagrange space */
EXPORT void LagrangeHalfCPolynomialAddTo(
LagrangeHalfCPolynomial* accum,
const LagrangeHalfCPolynomial* a);
EXPORT void LagrangeHalfCPolynomialAddMul(
LagrangeHalfCPolynomial* accum,
const LagrangeHalfCPolynomial* a,
const LagrangeHalfCPolynomial* b);
EXPORT void LagrangeHalfCPolynomialSubMul(
LagrangeHalfCPolynomial* accum,
const LagrangeHalfCPolynomial* a,
const LagrangeHalfCPolynomial* b);
#endif // LAGRANGEHALFC_ARITHMETIC_H
```
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_WASM_VALUE_TYPE_H_
#define V8_WASM_VALUE_TYPE_H_
#include "src/machine-type.h"
#include "src/wasm/wasm-constants.h"
namespace v8 {
namespace internal {
template <typename T>
class Signature;
namespace wasm {
enum ValueType : uint8_t {
kWasmStmt,
kWasmI32,
kWasmI64,
kWasmF32,
kWasmF64,
kWasmS128,
kWasmAnyRef,
kWasmAnyFunc,
kWasmNullRef,
kWasmExceptRef,
kWasmVar,
};
using FunctionSig = Signature<ValueType>;
inline size_t hash_value(ValueType type) { return static_cast<size_t>(type); }
// TODO(clemensh): Compute memtype and size from ValueType once we have c++14
// constexpr support.
#define FOREACH_LOAD_TYPE(V) \
V(I32, , Int32, 2) \
V(I32, 8S, Int8, 0) \
V(I32, 8U, Uint8, 0) \
V(I32, 16S, Int16, 1) \
V(I32, 16U, Uint16, 1) \
V(I64, , Int64, 3) \
V(I64, 8S, Int8, 0) \
V(I64, 8U, Uint8, 0) \
V(I64, 16S, Int16, 1) \
V(I64, 16U, Uint16, 1) \
V(I64, 32S, Int32, 2) \
V(I64, 32U, Uint32, 2) \
V(F32, , Float32, 2) \
V(F64, , Float64, 3) \
V(S128, , Simd128, 4)
class LoadType {
public:
enum LoadTypeValue : uint8_t {
#define DEF_ENUM(type, suffix, ...) k##type##Load##suffix,
FOREACH_LOAD_TYPE(DEF_ENUM)
#undef DEF_ENUM
};
// Allow implicit convertion of the enum value to this wrapper.
constexpr LoadType(LoadTypeValue val) // NOLINT(runtime/explicit)
: val_(val) {}
constexpr LoadTypeValue value() const { return val_; }
constexpr unsigned size_log_2() const { return kLoadSizeLog2[val_]; }
constexpr unsigned size() const { return 1 << size_log_2(); }
constexpr ValueType value_type() const { return kValueType[val_]; }
constexpr MachineType mem_type() const { return kMemType[val_]; }
static LoadType ForValueType(ValueType type) {
switch (type) {
case kWasmI32:
return kI32Load;
case kWasmI64:
return kI64Load;
case kWasmF32:
return kF32Load;
case kWasmF64:
return kF64Load;
default:
UNREACHABLE();
}
}
private:
const LoadTypeValue val_;
static constexpr uint8_t kLoadSizeLog2[] = {
#define LOAD_SIZE(_, __, ___, size) size,
FOREACH_LOAD_TYPE(LOAD_SIZE)
#undef LOAD_SIZE
};
static constexpr ValueType kValueType[] = {
#define VALUE_TYPE(type, ...) kWasm##type,
FOREACH_LOAD_TYPE(VALUE_TYPE)
#undef VALUE_TYPE
};
static constexpr MachineType kMemType[] = {
#define MEMTYPE(_, __, memtype, ___) MachineType::memtype(),
FOREACH_LOAD_TYPE(MEMTYPE)
#undef MEMTYPE
};
};
#define FOREACH_STORE_TYPE(V) \
V(I32, , Word32, 2) \
V(I32, 8, Word8, 0) \
V(I32, 16, Word16, 1) \
V(I64, , Word64, 3) \
V(I64, 8, Word8, 0) \
V(I64, 16, Word16, 1) \
V(I64, 32, Word32, 2) \
V(F32, , Float32, 2) \
V(F64, , Float64, 3) \
V(S128, , Simd128, 4)
class StoreType {
public:
enum StoreTypeValue : uint8_t {
#define DEF_ENUM(type, suffix, ...) k##type##Store##suffix,
FOREACH_STORE_TYPE(DEF_ENUM)
#undef DEF_ENUM
};
// Allow implicit convertion of the enum value to this wrapper.
constexpr StoreType(StoreTypeValue val) // NOLINT(runtime/explicit)
: val_(val) {}
constexpr StoreTypeValue value() const { return val_; }
constexpr unsigned size_log_2() const { return kStoreSizeLog2[val_]; }
constexpr unsigned size() const { return 1 << size_log_2(); }
constexpr ValueType value_type() const { return kValueType[val_]; }
constexpr MachineRepresentation mem_rep() const { return kMemRep[val_]; }
static StoreType ForValueType(ValueType type) {
switch (type) {
case kWasmI32:
return kI32Store;
case kWasmI64:
return kI64Store;
case kWasmF32:
return kF32Store;
case kWasmF64:
return kF64Store;
default:
UNREACHABLE();
}
}
private:
const StoreTypeValue val_;
static constexpr uint8_t kStoreSizeLog2[] = {
#define STORE_SIZE(_, __, ___, size) size,
FOREACH_STORE_TYPE(STORE_SIZE)
#undef STORE_SIZE
};
static constexpr ValueType kValueType[] = {
#define VALUE_TYPE(type, ...) kWasm##type,
FOREACH_STORE_TYPE(VALUE_TYPE)
#undef VALUE_TYPE
};
static constexpr MachineRepresentation kMemRep[] = {
#define MEMREP(_, __, memrep, ___) MachineRepresentation::k##memrep,
FOREACH_STORE_TYPE(MEMREP)
#undef MEMREP
};
};
// A collection of ValueType-related static methods.
class V8_EXPORT_PRIVATE ValueTypes {
public:
static inline bool IsSubType(ValueType expected, ValueType actual) {
return (expected == actual) ||
(expected == kWasmAnyRef && actual == kWasmNullRef) ||
(expected == kWasmAnyRef && actual == kWasmAnyFunc) ||
(expected == kWasmAnyRef && actual == kWasmExceptRef) ||
(expected == kWasmAnyFunc && actual == kWasmNullRef) ||
// TODO(mstarzinger): For now we treat "null_ref" as a sub-type of
// "except_ref", which is correct but might change. See here:
// path_to_url
(expected == kWasmExceptRef && actual == kWasmNullRef);
}
static inline bool IsReferenceType(ValueType type) {
// This function assumes at the moment that it is never called with
// {kWasmNullRef}. If this assumption is wrong, it should be added to the
// result calculation below.
DCHECK_NE(type, kWasmNullRef);
return type == kWasmAnyRef || type == kWasmAnyFunc ||
type == kWasmExceptRef;
}
static byte MemSize(MachineType type) {
return 1 << i::ElementSizeLog2Of(type.representation());
}
static int ElementSizeInBytes(ValueType type) {
switch (type) {
case kWasmI32:
case kWasmF32:
return 4;
case kWasmI64:
case kWasmF64:
return 8;
case kWasmS128:
return 16;
case kWasmAnyRef:
case kWasmAnyFunc:
case kWasmExceptRef:
return kSystemPointerSize;
default:
UNREACHABLE();
}
}
static int ElementSizeLog2Of(ValueType type) {
switch (type) {
case kWasmI32:
case kWasmF32:
return 2;
case kWasmI64:
case kWasmF64:
return 3;
case kWasmS128:
return 4;
default:
UNREACHABLE();
}
}
static byte MemSize(ValueType type) { return 1 << ElementSizeLog2Of(type); }
static ValueTypeCode ValueTypeCodeFor(ValueType type) {
switch (type) {
case kWasmI32:
return kLocalI32;
case kWasmI64:
return kLocalI64;
case kWasmF32:
return kLocalF32;
case kWasmF64:
return kLocalF64;
case kWasmS128:
return kLocalS128;
case kWasmAnyRef:
return kLocalAnyRef;
case kWasmAnyFunc:
return kLocalAnyFunc;
case kWasmExceptRef:
return kLocalExceptRef;
case kWasmStmt:
return kLocalVoid;
default:
UNREACHABLE();
}
}
static MachineType MachineTypeFor(ValueType type) {
switch (type) {
case kWasmI32:
return MachineType::Int32();
case kWasmI64:
return MachineType::Int64();
case kWasmF32:
return MachineType::Float32();
case kWasmF64:
return MachineType::Float64();
case kWasmAnyRef:
case kWasmAnyFunc:
case kWasmExceptRef:
return MachineType::TaggedPointer();
case kWasmS128:
return MachineType::Simd128();
case kWasmStmt:
return MachineType::None();
default:
UNREACHABLE();
}
}
static MachineRepresentation MachineRepresentationFor(ValueType type) {
switch (type) {
case kWasmI32:
return MachineRepresentation::kWord32;
case kWasmI64:
return MachineRepresentation::kWord64;
case kWasmF32:
return MachineRepresentation::kFloat32;
case kWasmF64:
return MachineRepresentation::kFloat64;
case kWasmAnyRef:
case kWasmAnyFunc:
case kWasmExceptRef:
return MachineRepresentation::kTaggedPointer;
case kWasmS128:
return MachineRepresentation::kSimd128;
case kWasmStmt:
return MachineRepresentation::kNone;
default:
UNREACHABLE();
}
}
static ValueType ValueTypeFor(MachineType type) {
switch (type.representation()) {
case MachineRepresentation::kWord8:
case MachineRepresentation::kWord16:
case MachineRepresentation::kWord32:
return kWasmI32;
case MachineRepresentation::kWord64:
return kWasmI64;
case MachineRepresentation::kFloat32:
return kWasmF32;
case MachineRepresentation::kFloat64:
return kWasmF64;
case MachineRepresentation::kTaggedPointer:
return kWasmAnyRef;
case MachineRepresentation::kSimd128:
return kWasmS128;
default:
UNREACHABLE();
}
}
static char ShortNameOf(ValueType type) {
switch (type) {
case kWasmI32:
return 'i';
case kWasmI64:
return 'l';
case kWasmF32:
return 'f';
case kWasmF64:
return 'd';
case kWasmAnyRef:
return 'r';
case kWasmAnyFunc:
return 'a';
case kWasmS128:
return 's';
case kWasmStmt:
return 'v';
case kWasmVar:
return '*';
default:
return '?';
}
}
static const char* TypeName(ValueType type) {
switch (type) {
case kWasmI32:
return "i32";
case kWasmI64:
return "i64";
case kWasmF32:
return "f32";
case kWasmF64:
return "f64";
case kWasmAnyRef:
return "anyref";
case kWasmAnyFunc:
return "anyfunc";
case kWasmNullRef:
return "nullref";
case kWasmExceptRef:
return "exn";
case kWasmS128:
return "s128";
case kWasmStmt:
return "<stmt>";
case kWasmVar:
return "<var>";
default:
return "<unknown>";
}
}
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ValueTypes);
};
} // namespace wasm
} // namespace internal
} // namespace v8
#endif // V8_WASM_VALUE_TYPE_H_
```
|
```javascript
/**
*
* This program is free software: you can redistribute it and/or modify
* as published by the Free Software Foundation.
*
* This program 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 this program. If not, see <path_to_url
*
*/
import { combineReducers, } from 'redux'
import liveValueReducer from './liveValueReducer'
const metadataReducer = combineReducers({
liveValues: liveValueReducer,
})
export default metadataReducer
```
|
```scala
package com.prisma.deploy.connector.postgres
import java.sql.Driver
import com.prisma.config.DatabaseConfig
import com.prisma.deploy.connector._
import com.prisma.deploy.connector.jdbc.PostgresDatabaseInspector
import com.prisma.deploy.connector.jdbc.database.{JdbcClientDbQueries, JdbcDeployMutactionExecutor}
import com.prisma.deploy.connector.jdbc.persistence.{JdbcCloudSecretPersistence, JdbcMigrationPersistence, JdbcProjectPersistence, JdbcTelemetryPersistence}
import com.prisma.deploy.connector.persistence.{CloudSecretPersistence, MigrationPersistence, ProjectPersistence, TelemetryPersistence}
import com.prisma.deploy.connector.postgres.database._
import com.prisma.shared.models.{ConnectorCapabilities, Project, ProjectIdEncoder}
import org.joda.time.DateTime
import slick.dbio.Effect.Read
import slick.dbio.{DBIOAction, NoStream}
import slick.jdbc.PostgresProfile.api._
import scala.concurrent.{ExecutionContext, Future}
import scala.util.{Failure, Success}
case class PostgresDeployConnector(
dbConfig: DatabaseConfig,
driver: Driver
)(implicit ec: ExecutionContext)
extends DeployConnector {
override def capabilities: ConnectorCapabilities = ConnectorCapabilities.postgresPrototype
lazy val internalDatabases = PostgresInternalDatabaseDefs(dbConfig, driver)
lazy val setupDatabases = internalDatabases.setupDatabase
lazy val managementDatabases = internalDatabases.managementDatabase
lazy val projectDatabases = internalDatabases.managementDatabase
lazy val managementDatabase = managementDatabases.primary.database
lazy val projectDatabase = projectDatabases.primary.database
lazy val postgresTypeMapper = PostgresTypeMapper()
lazy val mutationBuilder = PostgresJdbcDeployDatabaseMutationBuilder(managementDatabases.primary, postgresTypeMapper)
override lazy val projectPersistence: ProjectPersistence = JdbcProjectPersistence(managementDatabases.primary, dbConfig)
override lazy val migrationPersistence: MigrationPersistence = JdbcMigrationPersistence(managementDatabases.primary)
override lazy val cloudSecretPersistence: CloudSecretPersistence = JdbcCloudSecretPersistence(managementDatabases.primary)
override lazy val telemetryPersistence: TelemetryPersistence = JdbcTelemetryPersistence(managementDatabases.primary)
override lazy val deployMutactionExecutor: DeployMutactionExecutor = JdbcDeployMutactionExecutor(mutationBuilder)
override lazy val databaseInspector: DatabaseInspector = PostgresDatabaseInspector(projectDatabases.primary)
override def createProjectDatabase(id: String): Future[Unit] = {
val action = mutationBuilder.createDatabaseForProject(id = id)
projectDatabase.run(action)
}
override def deleteProjectDatabase(id: String): Future[Unit] = {
val action = mutationBuilder.deleteProjectDatabase(projectId = id).map(_ => ())
projectDatabase.run(action)
}
override def getAllDatabaseSizes(): Future[Vector[DatabaseSize]] = {
val action = {
val query = sql"""
SELECT schemaname, SUM(pg_total_relation_size(quote_ident(schemaname) || '.' || quote_ident(tablename))) / 1024 / 1024 FROM pg_tables GROUP BY schemaname
"""
query.as[(String, Double)].map { tuples =>
tuples.map { tuple =>
DatabaseSize(tuple._1, tuple._2)
}
}
}
projectDatabase.run(action)
}
override def clientDBQueries(project: Project): ClientDbQueries = JdbcClientDbQueries(project, projectDatabases.primary)
override def getOrCreateTelemetryInfo(): Future[TelemetryInfo] = telemetryPersistence.getOrCreateInfo()
override def updateTelemetryInfo(lastPinged: DateTime): Future[Unit] = telemetryPersistence.updateTelemetryInfo(lastPinged)
override def projectIdEncoder: ProjectIdEncoder = ProjectIdEncoder('$')
override def initialize(): Future[Unit] = {
// We're ignoring failures for createDatabaseAction as there is no "create if not exists" in psql
setupDatabases.primary.database
.run(InternalDatabaseSchema.createDatabaseAction(internalDatabases.dbName))
.transformWith { _ =>
val action = InternalDatabaseSchema.createSchemaActions(internalDatabases.managementSchemaName, recreate = false)
projectDatabase.run(action)
}
.flatMap(_ => setupDatabases.shutdown)
}
override def reset(): Future[Unit] = truncateManagementTablesInDatabase(managementDatabase)
override def shutdown() = {
managementDatabases.shutdown
}
override def managementLock(): Future[Unit] = {
managementDatabase.run(sql"SELECT pg_advisory_lock(1000);".as[String].head.withPinnedSession).transformWith {
case Success(_) => Future.successful(())
case Failure(err) => Future.failed(err)
}
}
protected def truncateManagementTablesInDatabase(database: Database)(implicit ec: ExecutionContext): Future[Unit] = {
for {
schemas <- database.run(getTables())
_ <- database.run(dangerouslyTruncateTables(schemas))
} yield ()
}
private def getTables()(implicit ec: ExecutionContext): DBIOAction[Vector[String], NoStream, Read] = {
sql"""SELECT table_name
FROM information_schema.tables
WHERE table_schema = '#${internalDatabases.managementSchemaName}'
AND table_type = 'BASE TABLE';""".as[String]
}
private def dangerouslyTruncateTables(tableNames: Vector[String]): DBIOAction[Unit, NoStream, Effect] = {
DBIO.seq(tableNames.map(name => sqlu"""TRUNCATE TABLE "#$name" cascade"""): _*)
}
}
```
|
The United Dioceses of Dublin and Glendalough is a diocese of the Church of Ireland in the east of Ireland. It is headed by the Archbishop of Dublin, who is also styled the Primate of Ireland. The diocesan cathedral is Christ Church Cathedral, Dublin.
Overview and history
Early Christianity in Ireland
The broad Dublin area was Christian long before Dublin had a distinct diocese, with monasteries such as Glendalough as well as at Finglas, Glasnevin, Rathmichael, Swords, Tallaght. Several of these functioned as "head churches" and the most powerful of all was Glendalough.
In the early church in Ireland, the church had a monastic basis, with greatest power vested in the Abbots of the major communities. There were bishops but not organised dioceses in the modern sense, and the offices of abbot and bishop were often comprised in one person. Some early "Bishops of Dublin", back to 633, are mentioned in Ware's Antiquities of Ireland but the Diocese of Dublin is not considered to have begun until 1038, and when Ireland began to see organised dioceses, all of the current Diocese of Dublin, and more, was comprised in the Diocese of Glendalough.
The Norse Diocese of Dublin
Following a reverted conversion by one Norse King of Dublin, Sitric, his son Godfrey became Christian in 943, and the Kingdom of Dublin first sought to have a bishop of its own in the 11th century, under Sitric MacAulaf, who had been on pilgrimage to Rome. He sent his chosen candidate, Donat (or Donagh or Donatus), to be consecrated in Canterbury in 1038, and the new prelate set up the Diocese of Dublin as a small territory within the walled city, over which he presided until 1074. The new diocese was not part of the Church in Ireland but of the Norse Province of Canterbury. Sitric also provided for the building of Christ Church Cathedral in 1038 "with the lands of Baldoyle, Raheny and Portrane for its maintenance."
At the Synod of Rathbreasail, convened in 1118 by Gillebert (Gilbert), Bishop of Limerick, on papal authority, the number of dioceses in Ireland was fixed at twenty-four. Dublin was not included, the city being described as lying in the Diocese of Glendalough, but the Norse Bishops continued, still attached to Canterbury.
The Reorganisation of the Church in Ireland, 1152
Then, in 1151, Pope Eugene III commissioned Cardinal Paparo to go to Ireland and establish four metropolitans, and at a general synod at Kells in 1152, Armagh, Dublin, Cashel, and Tuam, were created archiepiscopal sees. In a document drawn up by the then Archbishop of Tuam in 1214, the cardinal is described as finding both a bishop based in Dublin, who at the time exercised his episcopal office within the city walls only, and "He found in the same Diocese another church in the mountains, which likewise had the name of a city (Glendalough) and had a certain chorepiscopus. But he delivered the pallium to Dublin which was the best city and appointed that the diocese (Glendalough) in which both these cities were should be divided, and that one part thereof should fall to the metropolitan."
The part of North County Dublin known as Fingall was taken from Glendalough Diocese and attached to Dublin City. The new Archdiocese had 40 parishes, in deaneries based on the old senior monasteries. All dependence upon English churches such as Canterbury was also ended.
The Early Archbishops
The founding Archbishop of the larger Dublin Diocese, consecrated at Lambeth, was Gregory, with the Bishops of Kildare, Ossory, Leighlin, Ferns, and Glendalough reporting to him.
The second Archbishop, from 1161 to 1179, was Saint Laurence O'Toole, previously Abbot of Glendalough, who had previously been elected as Bishop of Glendalough but had declined that office. During his time in office, the presence of the Church grew in Dublin city (by 1170 there were six churches other than the cathedral within the walls) and religious orders from the continent came to Ireland (Augustinians, Dominicans, Franciscans and Carmelites had houses in Dublin, and the great convent of Grace Dieu, near Donabate, was an example of women's religious life and education). As part of this trend, Laurence installed a community of canons to minister according to the Aroasian Rule in the Cathedral of the Holy Trinity, later known as Christchurch. The important house of Abbey of Saint Mary was founded in Dublin at that time, first under the Benedictine Rule, then passing to the Cistercians.
Not only was the Irish Church transformed in that 12th century by new organisation and new arrivals from abroad, but Ireland's political scene was changed permanently by the coming of the Normans and the influence of the English Crown.
Saint Laurence's successor was a Norman, and from then onward to the time of the Reformation in Ireland, Dublin's Archbishops were all either Norman or English.
Merger of Dublin and Glendalough
In 1185, the Lord of Ireland, John Lackland, granted the merger of the dioceses of Dublin and Glendalough. This was initially without effect as the charter lacked papal approval. When the bishop Macrobius died in 1192, a synod was held in Dublin under the direction of the papal legate Metthew O Enna. William Piro was elected as bishop of Glendalough and remained in office at least until 1212. Robert de Bedford was elected as successor in 1213 or 1214 but he had never the opportunity to take possession of the diocesan seat. Instead, John, now King of England, reissued a grant to join Glendalough to Dublin which was finally approved by Pope Innocent III in 1216 and confirmed by his successor Honorius III in the same year.
Reformation
The English-speaking minority in Ireland post-Reformation mostly adhered to the Church of Ireland or to Presbyterianism; the dioceses became integrated into this new church independent from the Catholic Church. In 1833, the two provinces of Dublin and Cashel were merged. Over the centuries, numerous dioceses were merged, in view of declining membership.
Structure
The united entity comprises 95 parishes, many now operating in unions. The parishes and other religious organisations in diocesan jurisdiction include:
Archdiocese of Dublin
Parishes
Booterstown (Mount Merrion was United with Booterstown)
Bray
Castleknock
Christ Church Cathedral Group of Parishes (St. Andrew, St. Werburgh with St Mary, St. Michan and St. Paul, and All Saints', Grangegorman)
Clondalkin
Clontarf, comprising also Killester for many centuries
Coolock, in Union with Raheny since 1960
Crinken
Crumlin
Dalkey
Donnybrook
Drumcondra
Dun Laoghaire
Glenageary
Holmpatrick (Skerries)
Howth
Kill
Killiney (Ballybrack)
Killiney, Holy Trinity
Kilternan
Malahide
Monkstown
Raheny, in Union with Coolock since 1960
Rathfarnham
Rathmichael
Rathmines
Sandford
Sandymount
Santry - St. Pappan's Church
St. Ann
St. Bartholomew
St. George and St. Thomas
St. Patrick's Cathedral Group of Parishes (St. Catherine and St. James, St. Audoen's)
Stillorgan
Swords
Tallaght
Taney
Tullow
Whitechurch
Zion
Other entities
Adelaide and Meath Hospital, Tallaght
C.O.R E. (City Outreach through Renewal and Evangelisation)
Church of Ireland Theological College
CMSI Dublin
General Synod Education Office
Irish Church Missions
Rathdown School
St. Columba's College
The King's Hospital
University College, Dublin
University of Dublin
Diocese of Glendalough
Parishes
Arklow
Athy
Blessington
Castlemacadam
Celbridge
Delgany
Donoughmore
Dunganstown
Greystones
Leixlip
Narraghmore
Newcastle
Powerscourt
Rathdrum
Wicklow
Other entities
East Glendalough School
See also
List of Anglican dioceses in the United Kingdom and Ireland
References
External links
List of Church of Ireland Parishes in Dublin and Glendalough - Church of Ireland Website
Whitechurch
The Church of Ireland
Dublin and Glendalough
Dioceses established in the 11th century
Religion in County Wicklow
Christianity in County Dublin
Church of Ireland in the Republic of Ireland
|
Thiessen may refer to:
Alfred H. Thiessen (1872–1956), American meteorologist
Brad Thiessen (ice hockey player, born 1986), Canadian ice hockey player
Bradley Thiessen, American statistician and academic administrator
Dan Thiessen (1946–2014), college football coach
Dan Thiessen (politician) (1922-2012), Kansas state legislator
Del Thiessen, American psychology professor
Duane D. Thiessen (born 1951), Lieutenant General in US Marine Corps
Georg Heinrich Thiessen (1914–1961), German astronomer
Gordon Thiessen (born 1938), Governor of the Bank of Canada from 1994–2001
J. Grant Thiessen (born 1947), Canadian bibliographer and bookseller
Jack Thiessen (1931-2022), lexicographer
James Thiessen (born 1974), former Australian rules footballer
Jayson Thiessen (born 1976), Canadian director
Juliana Thiessen Day (born 1980), former 1998 Miss Canadian Universe
Marc Thiessen (born 1967), American author and speech-writer for President George W. Bush
Matt Thiessen (born 1980), Canadian-American musician
Nolan Thiessen (born 1980), Canadian curler
Peter Adolf Thiessen (1899–1990), German physical chemist
Tiffani Thiessen (born 1974), American actress
Vern Thiessen (born 1964), Canadian playwright
Places
Thiessen (crater), a lunar impact crater that lies in the far northern latitudes, on the far side of the Moon. To the west of Thiessen is the younger crater Ricco, and to the south-southwest is Roberts. Farther to the east lies Heymans
Thießen, a village in Saxony-Anhalt, Germany
See also
Theissen (disambiguation)
Thiess (disambiguation)
Theiss (disambiguation)
Thissen (disambiguation)
Thyssen (disambiguation)
Danish-language surnames
German-language surnames
North German surnames
Surnames from given names
Russian Mennonite surnames
|
The Moara Dracului Gorge () is a natural monument in Suceava County, Romania. It is a 60-70 m long and 4-5 m wide gorge with vertical walls, situated on the upper course of the small river Valea Caselor, a tributary of the Moldova.
References
Protected areas of Romania
Geography of Suceava County
|
```javascript
//your_sha256_hash---------------------------------------
//your_sha256_hash---------------------------------------
function write(v) { WScript.Echo(v + ""); }
Array.prototype.getClass = Object.prototype.toString;
Boolean.prototype.getClass = Object.prototype.toString;
Date.prototype.getClass = Object.prototype.toString;
Function.prototype.getClass = Object.prototype.toString;
Number.prototype.getClass = Object.prototype.toString;
RegExp.prototype.getClass = Object.prototype.toString;
String.prototype.getClass = Object.prototype.toString;
var a1 = new Array();
var b1 = new Boolean(false);
var d1 = new Date();
var f1 = new Function("return undefined;");
var n1 = new Number(+0);
var r1 = new RegExp();
var s1 = new String("hello");
write("a1.getClass() : " + a1.getClass());
write("Array.prototype.getClass() : " + Array.prototype.getClass());
write("b1.getClass() : " + b1.getClass());
write("Boolean.prototype.getClass() : " + Boolean.prototype.getClass());
write("d1.getClass() : " + d1.getClass());
write("Date.prototype.getClass() : " + Date.prototype.getClass());
write("f1.getClass() : " + f1.getClass());
write("Function.prototype.getClass(): " + Function.prototype.getClass());
write("n1.getClass() : " + n1.getClass());
write("Number.prototype.getClass() : " + Number.prototype.getClass());
write("r1.getClass() : " + r1.getClass());
write("RegExp.prototype.getClass() : " + RegExp.prototype.getClass());
write("s1.getClass() : " + s1.getClass());
write("String.prototype.getClass() : " + String.prototype.getClass());
```
|
Rauman Työväen Urheilijat (abbreviated RTU) is a sports club from Rauma in Finland. The club was formed in 1929. They participate in orienteering, floorball and athletics.
Background
RTU was founded in 1929 when local social democratic workers association formed the club. In 1952 club reached its highest membership count to date with 1317 members. RTU is the only club from Rauma to play top tier football in Finland, they were also first club from Satakunta to play in premier division.
Season to season in football
External links
References
Sports clubs and teams in Finland
Football clubs in Finland
Sport in Rauma, Finland
|
The County of Kintore is one of the 49 counties of South Australia. Located on the state's west coast, it was proclaimed in 1890 and named for the Governor Algernon Keith-Falconer.
Hundreds
The County of Kintore contains the following 8 hundreds, covering approximately the southern half of its total area:
From west to east in the modern locality of Bookabie: Nash, Magarey, Giles
From northwest to southeast in the modern locality of Penong: Cohen, Burgoyne, Bagster, Kevin, Keith
See also
Lands administrative divisions of South Australia
References
Kintore
|
Liquid Air EP is the second EP by German electronic band Air Liquide, which was released in 1992.
Track listing
Side A
"Liquid Air"
"Revelation"
"Liquid Air (Bionaut Remix)"
Side B
"Liquid Men With Liquid Hearts"
"Psy 9"
"Liquid Air (Xenon Remix)"
1992 EPs
Air Liquide (band) albums
|
"Lost in the Supermarket" is a 1979 song by the Clash. Written by Joe Strummer and Mick Jones and produced by Guy Stevens, it is credited to the Strummer/Jones songwriting partnership. It was released on their third studio album London Calling. It is the eighth song on the track listing. Although it features Jones on lead vocals, the song was written by Strummer. The supermarket in question was the International, located at 471–473 Kings Road, beneath the World's End Estate. Strummer lived at 31 Whistler Walk at the time with his girlfriend Gaby Salter, her two younger brothers and her mother. The song appears in the Apple TV+ show Loot.
Music and lyrics
"Lost in the Supermarket" is described as a post-punk, pop, R&B, and soul song.
Strummer first wrote the lyrics of the chorus on the reverse of an Ernie Ball Custom Gauge Strings paper envelope. The song's lyrics describe someone struggling to deal with an increasingly commercialised world and rampant consumerism. The song opens with Strummer's autobiographical memories of his parents' home in suburban Warlingham, with a hedge "over which I never could see." With lines such as "I came in here for that special offer – guaranteed personality", the protagonist bemoans the depersonalisation of the world around him. The song speaks of numbness from suburban alienation and the feelings of disillusionment that come through youth in modern society.
In the Making of 'London Calling': The Last Testament DVD, released with the 25th anniversary edition of London Calling in 2004, Strummer said he wrote the lyrics imagining Jones' life growing up in a basement with his mother and grandmother.
Topper Headon used a tom-tom drum on the song instead of a snare drum after seeing Taj Mahal's drummer doing the same thing in a concert the night before the recording.
Covers
Ben Folds covered the song for the soundtrack of the film Over the Hedge.
The Afghan Whigs covered the song for the 1999 compilation album Burning London: The Clash Tribute.
Fred Armisen and Jesse Malin covered the song at the Los Angeles Clash Tribute in 2020.
Personnel
Mick Jones – lead guitar, lead vocals
Joe Strummer – rhythm guitar, backing vocals
Paul Simonon – bass guitar
Topper Headon – drums
Notes
References
1979 songs
The Clash songs
British rock songs
Songs written by Mick Jones (The Clash)
Songs written by Joe Strummer
Song recordings produced by Guy Stevens
Songs about consumerism
|
Parandak (; also known as Shahrak-e Parandak) is a village in Manjilabad Rural District, in the Central District of Robat Karim County, Tehran Province, Iran. At the 2006 census, its population was 4,613, in 1,088 families.
See also
23rd Takavar Division – based at Parandak garrison
References
Populated places in Robat Karim County
|
```kotlin
package `in`.hbb20.countrycodepickerproject
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.hbb20.CountryCodePicker
import com.hbb20.CountryCodePicker.Language.*
/**
* A simple [Fragment] subclass.
*/
class LanguageSupportFragment: Fragment() {
private lateinit var radioGroup: RadioGroup
private lateinit var radioEnglish: RadioButton
private lateinit var radioJapanese: RadioButton
private lateinit var radioSpanish: RadioButton
private lateinit var ccp: CountryCodePicker
private lateinit var buttonNext: Button
private lateinit var rootView: View
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
rootView = inflater.inflate(R.layout.fragment_language_support, container, false)
return rootView
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
assignViews()
setClickListener()
}
private fun setClickListener() {
radioGroup.setOnCheckedChangeListener { _, checkedId ->
when (checkedId) {
R.id.radioEnglish -> {
ccp.changeDefaultLanguage(ENGLISH)
Toast.makeText(context, "Language is updated to ENGLISH", Toast.LENGTH_SHORT).show()
}
R.id.radioJapanese -> {
ccp.changeDefaultLanguage(JAPANESE)
Toast.makeText(context, "Language is updated to JAPANESE", Toast.LENGTH_SHORT).show()
}
R.id.radioSpanish -> {
ccp.changeDefaultLanguage(SPANISH)
Toast.makeText(context, "Language is updated to SPANISH", Toast.LENGTH_SHORT).show()
}
}
}
buttonNext.setOnClickListener { (activity as ExampleActivity).viewPager.currentItem = (activity as ExampleActivity).viewPager.currentItem + 1 }
}
private fun assignViews() {
ccp = rootView.findViewById(R.id.ccp)
radioGroup = rootView.findViewById(R.id.radioGroup)
radioEnglish = rootView.findViewById(R.id.radioEnglish)
radioJapanese = rootView.findViewById(R.id.radioJapanese)
radioSpanish = rootView.findViewById(R.id.radioSpanish)
buttonNext = view!!.findViewById(R.id.button_next)
}
}
```
|
Eric Mark Chelgren (born January 21, 1968) is an American politician who served in the Iowa Senate. He is a member of the Republican Party. He was elected to the Iowa Senate in 2010 and re-elected in 2014. He represented District 41.
He has drawn controversy for proposing legislation that would cap the percentage difference in political parties of professors and instructors that state universities can hire. He also drew controversy for his false claim of having a "business degree" from the "Forbco Management School," which was in fact a manager training course run by a company that operated Sizzler restaurants in southern California.
Chelgren announced in March 2018 that he would not be a candidate for reelection in 2018.
Early life
Chelgren was born in Ross, California on January 21, 1968. He grew up in Huntington Beach, and graduated from Huntington Beach High School in 1986. At the start of his career, Chelgren's employment included manager of a Sizzler restaurant in Torrance, California.
Business
In the 1990s, Chelgren relocated to Iowa, and settled in Vinton. The Iowa Senate Republicans organization states that "Senator Chelgren is an entrepreneur with multiple patents, primarily focused in health care".
Education
As of February 2017, Chelgren's Iowa State Legislature biography lists his education as an A.S. at Riverside Community College and says he attended "University of California" [at Riverside]. His Senate biography used to indicate that he "has a degree in business management from Forbco Management school and attended the University of California at Riverside majoring in astro-physics, geo-physics and mathematics."
Chelgren's education became an issue in 2017 when he proposed a bill to quiz prospective university professors on their political affiliation, and enact a percentage system to ensure that Iowa's institutions of higher learning did not hire what he deemed an inappropriately high percentage of Democrats and liberals. In defending his proposed legislation, Chelgren claimed to have witnessed what he termed excessive liberal advocacy among the professors of the college he attended. Subsequent investigation of his educational background called this claim into question.
In February 2017, news accounts revealed that Forbco Management was not an accredited school that awarded degrees but was a company "which ran Sizzler restaurants and a few other different restaurants." Chelgren worked for Forbco as an assistant manager at a Sizzler restaurant while a young adult in California and completed the 6-month course as part of his training.
Prior to February 2017, a Republican Party site's biography indicated he attended the University of California, Riverside for three years. When the university's spokesman indicated that he had attended for one school year, 1992 to 1993, Chelgren told NBC that he had attended University of California, Riverside for one year, and had earned an associate degree in science from Riverside Community College after two years of attendance. When asked if he mischaracterized his educational background, Chelgren said, "No, I did not."
Other biographies are also inconsistent on the question of Chelgren's higher education. In the biography on one of his business's websites, FrogLegs Incorporated he claims to have "completed his education in Astro- and Geo-Physics at the University of California in Riverside"."
Chelgren's biography in the Iowa Republican Party's 2014 candidate guide states that "He received his degree in Astro- and Geo-Physics at the
University of California in Riverside."
In a biography from a 2015-2016 Iowa Legislature directory, he lists an associate degree from Riverside Community College and attendance at the University of California. In a 2016 legislative biography published by the Advocacy Cooperative of Des Moines, Chelgren is listed as holding a "Degree in Astrophysics and Geophysics (University of California Riverside)".
Political career
In 2010, Chelgren was elected to the Iowa Senate, defeating incumbent Democrat Keith Kreiman with 9,572 to 9,582 votes. In 2011, Chelgren endorsed Michele Bachmann in the 2012 presidential election.
In 2014, Chelgren was re-elected, defeating Democrat Steve Siegel 10,331 to 9,954 votes.
In 2015, he provoked controversy when he suggested "if an undocumented person who committed a felony is deported and then tries to return to the U.S., he or she should be subject to capital punishment."
In 2016, Chelgren was a U.S. Congressional candidate for Iowa's 2nd District but withdrew in March.
In 2018, Chelgren announced that he would not be a candidate for reelection that year.
In 2022, Chelgren was seeking to be elected (as a house representative instead of a state senator) to fill the vacant seat of the newly-created house district 26, however, he was defeated by Austin Harris.
Electoral history
References
|-
University of California, Riverside alumni
People from Ottumwa, Iowa
Republican Party Iowa state senators
1968 births
Living people
People from Ross, California
21st-century American politicians
|
```javascript
const { assert, skip, test, module: describe } = require('qunit');
const { GPU, HeadlessGLKernel, WebGLKernel, WebGL2Kernel, CPUKernel } = require('../../src');
describe('issue #91');
function getResult(mode) {
const A = [
[1, 2],
[3, 4],
[5, 6]
];
const B = [
[6, 5, 4],
[3, 2, 1]
];
const gpu = new GPU({ mode });
function multiply(b, a, y, x) {
let sum = 0;
for (let i = 0; i < 2; i++) {
sum += b[y][i] * a[i][x];
}
return sum;
}
const kernels = gpu.createKernelMap({
multiplyResult: multiply
}, function (a, b) {
return multiply(b, a, this.thread.y, this.thread.x);
})
.setOutput([2, 2]);
const result = kernels(A, B).result;
assert.deepEqual(Array.from(result[0]), [21,32]);
assert.deepEqual(Array.from(result[1]), [9,14]);
gpu.destroy();
return kernels;
}
(GPU.isWebGL2Supported || (GPU.isHeadlessGLSupported && HeadlessGLKernel.features.kernelMap) ? test : skip)("Issue #91 - type detection auto", () => {
getResult();
});
(GPU.isWebGL2Supported || (GPU.isHeadlessGLSupported && HeadlessGLKernel.features.kernelMap) ? test : skip)("Issue #91 - type detection gpu", () => {
getResult('gpu');
});
(GPU.isWebGLSupported ? test : skip)("Issue #91 - type detection webgl", () => {
const kernel = getResult('webgl');
assert.equal(kernel.kernel.constructor, WebGLKernel, 'kernel type is wrong');
});
(GPU.isWebGL2Supported ? test : skip)("Issue #91 - type detection webgl2", () => {
const kernel = getResult('webgl2');
assert.equal(kernel.kernel.constructor, WebGL2Kernel, 'kernel type is wrong');
});
(GPU.isHeadlessGLSupported ? test : skip)("Issue #91 - type detection headlessgl", () => {
const kernel = getResult('headlessgl');
assert.equal(kernel.kernel.constructor, HeadlessGLKernel, 'kernel type is wrong');
});
test("Issue #91 - type detection cpu", () => {
const kernel = getResult('cpu');
assert.equal(kernel.kernel.constructor, CPUKernel, 'kernel type is wrong');
});
```
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>svg collection</title>
<style>
html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
display: block
}
audio, canvas, progress, video {
display: inline-block
}
.si-figure {
padding: 5px 0;
position: relative;
display: inline-block;
margin: 0;
background-color: #f9f9f9;
outline: 1px solid #fff;
height: 100px;
color: #999;
vertical-align: top;
text-align: center;
font-size: 14px;
cursor: pointer
}
.si-figure svg {
width: 50px;
height: 50px;
fill: gray
}
.si-figure:hover {
background-color: #dfd;
color: #337ab7
}
.si-figure:hover svg {
fill: #337ab7
}
.si-figure.selected {
background-color: #337ab7;
color: #fff;
opacity: .9
}
.si-figure.selected svg {
fill: #fff
}
@media only screen and (min-width: 768px) {
.si-figure {
width: 12%
}
}
@media only screen and (max-width: 768px) {
.si-figure {
width: 24%
}
}
@media only screen and (max-width: 480px) {
.si-figure {
width: 48%
}
}
.si.inline {
height: 1.2em;
width: 1.2em;
vertical-align: sub
}
.si.white {
fill: #fff
}
</style>
</head>
<body>
<%= svgSprite %>
<article><% ids.forEach(function (id) { %>
<figure class="si-figure">
<div id="figure-<%= id %>">
<div class="si-wrapper <%= id %>">
<svg class="si">
<use xlink:href="#<%= id %>"></use>
</svg>
</div>
</div>
<figcaption><%= id %></figcaption>
</figure><% }); %>
</article>
</body>
</html>
```
|
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace SampleSite
{
public class Program
{
public static void Main(string[] args)
{
throw new InvalidOperationException("Boom!");
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
```
|
```c++
#include "node_string.h"
#include "node/inspector/protocol/Protocol.h"
#include <unicode/unistr.h>
namespace node {
namespace inspector {
namespace protocol {
namespace StringUtil {
size_t kNotFound = std::string::npos;
// NOLINTNEXTLINE(runtime/references) V8 API requirement
void builderAppendQuotedString(StringBuilder& builder, const String& string) {
builder.put('"');
if (!string.empty()) {
icu::UnicodeString utf16 = icu::UnicodeString::fromUTF8(
icu::StringPiece(string.data(), string.length()));
escapeWideStringForJSON(
reinterpret_cast<const uint16_t*>(utf16.getBuffer()), utf16.length(),
&builder);
}
builder.put('"');
}
std::unique_ptr<Value> parseJSON(const String& string) {
if (string.empty())
return nullptr;
icu::UnicodeString utf16 =
icu::UnicodeString::fromUTF8(icu::StringPiece(string.data(),
string.length()));
return parseJSONCharacters(
reinterpret_cast<const uint16_t*>(utf16.getBuffer()), utf16.length());
}
std::unique_ptr<Value> parseJSON(v8_inspector::StringView string) {
if (string.length() == 0)
return nullptr;
if (string.is8Bit())
return parseJSONCharacters(string.characters8(), string.length());
return parseJSONCharacters(string.characters16(), string.length());
}
String StringViewToUtf8(v8_inspector::StringView view) {
if (view.length() == 0)
return "";
if (view.is8Bit()) {
return std::string(reinterpret_cast<const char*>(view.characters8()),
view.length());
}
const uint16_t* source = view.characters16();
const UChar* unicodeSource = reinterpret_cast<const UChar*>(source);
static_assert(sizeof(*source) == sizeof(*unicodeSource),
"sizeof(*source) == sizeof(*unicodeSource)");
size_t result_length = view.length() * sizeof(*source);
std::string result(result_length, '\0');
icu::UnicodeString utf16(unicodeSource, view.length());
// ICU components for std::string compatibility are not enabled in build...
bool done = false;
while (!done) {
icu::CheckedArrayByteSink sink(&result[0], result_length);
utf16.toUTF8(sink);
result_length = sink.NumberOfBytesAppended();
result.resize(result_length);
done = !sink.Overflowed();
}
return result;
}
String fromDouble(double d) {
std::ostringstream stream;
stream.imbue(std::locale("C")); // Ignore locale
stream << d;
return stream.str();
}
double toDouble(const char* buffer, size_t length, bool* ok) {
std::istringstream stream(std::string(buffer, length));
stream.imbue(std::locale("C")); // Ignore locale
double d;
stream >> d;
*ok = !stream.fail();
return d;
}
std::unique_ptr<Value> parseMessage(const std::string& message, bool binary) {
if (binary) {
return Value::parseBinary(
reinterpret_cast<const uint8_t*>(message.data()),
message.length());
}
return parseJSON(message);
}
ProtocolMessage jsonToMessage(String message) {
return message;
}
ProtocolMessage binaryToMessage(std::vector<uint8_t> message) {
return std::string(reinterpret_cast<const char*>(message.data()),
message.size());
}
String fromUTF8(const uint8_t* data, size_t length) {
return std::string(reinterpret_cast<const char*>(data), length);
}
String fromUTF16(const uint16_t* data, size_t length) {
icu::UnicodeString utf16(reinterpret_cast<const char16_t*>(data), length);
std::string result;
return utf16.toUTF8String(result);
}
const uint8_t* CharactersUTF8(const String& s) {
return reinterpret_cast<const uint8_t*>(s.data());
}
size_t CharacterCount(const String& s) {
icu::UnicodeString utf16 =
icu::UnicodeString::fromUTF8(icu::StringPiece(s.data(), s.length()));
return utf16.countChar32();
}
} // namespace StringUtil
} // namespace protocol
} // namespace inspector
} // namespace node
```
|
```javascript
/**
* @fileoverview
* Object representing a Scratch variable.
*/
const uid = require('../util/uid');
const xmlEscape = require('../util/xml-escape');
class Variable {
/**
* @param {string} id Id of the variable.
* @param {string} name Name of the variable.
* @param {string} type Type of the variable, one of '' or 'list'
* @param {boolean} isCloud Whether the variable is stored in the cloud.
* @constructor
*/
constructor (id, name, type, isCloud) {
this.id = id || uid();
this.name = name;
this.type = type;
this.isCloud = isCloud;
switch (this.type) {
case Variable.SCALAR_TYPE:
this.value = 0;
break;
case Variable.LIST_TYPE:
this.value = [];
break;
case Variable.BROADCAST_MESSAGE_TYPE:
this.value = this.name;
break;
default:
throw new Error(`Invalid variable type: ${this.type}`);
}
}
toXML (isLocal) {
isLocal = (isLocal === true);
return `<variable type="${this.type}" id="${this.id}" islocal="${isLocal
}" iscloud="${this.isCloud}">${xmlEscape(this.name)}</variable>`;
}
/**
* Type representation for scalar variables.
* This is currently represented as ''
* for compatibility with blockly.
* @const {string}
*/
static get SCALAR_TYPE () {
return '';
}
/**
* Type representation for list variables.
* @const {string}
*/
static get LIST_TYPE () {
return 'list';
}
/**
* Type representation for list variables.
* @const {string}
*/
static get BROADCAST_MESSAGE_TYPE () {
return 'broadcast_msg';
}
}
module.exports = Variable;
```
|
Jason Yates (born 1972 in Detroit, Michigan) is a contemporary artist who lives and works in Los Angeles, California.
Education
Yates got his BFA from the University of Michigan in 1995 and his MFA from Art Center College of Design, Pasadena, CA in 2000.
Early career / Fast Friends Inc.
Yates's early work in the late 1990s to the mid 2000s, was typified by a collaborative ethos and bridging the gap between various genres, namely art, music, fashion and design. Raised in Detroit and while still in his teens, Yates became a friend and collaborator with funk/jazz/ fusion musician George Clinton. Speaking about Clinton and the musician's influence on his own practice, Yates says "I always thought of Clinton not as a musician but as a total artist. As much as the art world endeavours to branch out, it's still very specialized. To Clinton, making art was part of his normal trajectory. He was an artist-musician. And I always saw art as being a component of a lot of different movements and incredibly dependent on a group dynamic." This way of thinking was a formative influence on his Yates' practice.
After moving to Los Angeles to study with Mike Kelley, Mayo Thompson and Liz Larner in the MFA program at Art Center, Yates formed 'Fast Friends Inc.' a collaborative project to disseminate art outside the conventional gallery system and to distribute the work on the artist's own terms. Chris Kraus writes in Where Art Belongs "Yates is an exceptional artist. For six years as Fast Friends he created band posters for Ariel Pink, (Matt) Fishbeck (of the band Holy Shit) and others that are also original art works. Any study of the confluence between music and visual culture in the last two decades would cite Yates' work".
The Fast Friends art works, which double as functional concert posters, are works on paper with mixed media and have been described as "each a colorful psychedelic explosion of creatures, captions, and hundreds of stickers" and "rough drawings and graphic riffs push to a visual density that quickly becomes a blur of coloured pencil and grotesque figuration. A central figure or head, ranging from fanciful creatures to Captain Beefheart, anchors the composition, and little droves of colour file out and disperse around the head, almost like oceans of saints around the godhead in Byzantine mosaics." In the work Shit Age (2007), "witchy pyramid triangles cut out of Mylar surrounded by rivers of watery brush strokes are infested with animal eyes, pot seeds and pills like buried in gobs of glittery glue...the deranged menagerie seemingly supported on a nest of hatched lines. Weed green rods of lightning burst out of the sky". Describing these works, Yates says they "were all infused with inside jokes, inside critiques, inside information". The "hatched lines" and Mylar, Kraus speaks of, will also reappear in Yates' more formal, pared down paintings. The Fast Friends inc. works were shown in the exhibition "Burnout, The Fast Friends Inc. Project, A Depiction of DYI Dandyism and Pop by Cult Hero Jason Yates" at Tiny Creatures gallery Los Angeles 2007 and at Circus Gallery, Los Angeles in 2009.
Paintings, sculptures and installations
Yates' exhibitions are characterized by installations including paintings, sculptures, wall drawings, and hand etched mirrors. These installations have been called "not a collection of well installed objects, which it also is, but a total experience, a site-specific installation whose whole far outweighs the sum of its parts."
Yates' paintings are large scale single or two-panel works, some three-dimensional and free standing, and covered in a cross hatched motif with the canvas being cut away in regular patterns to create a cascading effect. In these works "Yates invites us to not only explore the surface, but like Lucio Fontana, he lets you look behind the normally
unseen space behind the mark making." They have been described by Los Angeles Times critic Christopher Knight as starting "with clusters of parallel strokes reminiscent of Jasper Johns' hatch paintings from the 70's...the canvas is cut in scores of scalloped shapes, curled away from the surface and held out from it by a rod glued inside" These flaps are backed with a flat color or metallic Mylar in silver or gold, as are the newly exposed surfaces underneath." The effect of the Mylar in the canvas "complicate the visual appeal, adding unexpected flashes of reflected internal light" as the viewer moves around the paintings. The cross hatched motif, at once obsessive and meditative, recurs throughout Yates' two dimensional works, appearing in hand etched mirrors, wall drawings, wallpaper and as mentioned above some of the Fast Friends Inc. works and "Yates’ incessant modular mark making affirms a zoned out, altered experience of time’s passing and an insistently manual reclamation of space as a place to get lost in"
Yates' sculptures called "Monk Boxes" are both aesthetic objects and functional ones. Typically made of black stained red maple, and pierced with holes in a regular sequence along the edges through which are wrapped with thick rope, the works have a simple, austere beauty and in these works and others "Yates shares with monastic orders a devotion to a toiling obsessiveness marked by blunt repetition."
For his show at anna meliksetian | MJBriggs gallery Every Self Portrait is a Cry for Help in 2012, Yates' repurposed the forms of these sculptures to create an installation, a bedroom environment including a king size bed, vanities, and side tables. The sculptures were complemented by hand etched mirrors, paintings, artist designed wall paper and hand silkscreened sheets, all of which featured the artist's characteristic cross hatching patterns in various forms. The installation played with the context of the neighborhood, which has many furniture shops, as well as being a comment on the city itself, a decadent environment, a "place to die" as the artist has called it.
Selected solo exhibitions
2013
"Ghost of an Ideal Life", anna meliksetian | MJBriggs, Los Angeles, CA.
2012
Every Self Portrait is a Cry for Help, anna melisketian | MJBriggs, Los Angeles, CA.
All We Ever Wanted Was Everything, Barbara Davis Gallery, Houston.
Master and Servant, Land of Tomorrow Gallery, Louisville, KY.
2009
The Rise and Fall of Shame, Circus Gallery, Hollywood, CA.
2007
Burn Out, Tiny Creatures, Los Angeles, CA.
Two person exhibitions
2004
Cocaine Unicorn with Ariel Pink, Geffen Contemporary at MOCA, Los Angeles, CA.
1992
Grafilthists with George Clinton, Industry, Pontiac, MI.
Projects and commissions (selected)
Iconoclast Editions, Cincinnati, Ohio 2010
Emma Grey HQ, Los Angeles, California 2010
Penny Ante Editions, Los Angeles, California 2010
The Arnott Family, Corona Del Mar, California 2010
Los Angeles Contemporary Exhibitions, Hollywood, California 2009
Ariel Pink's Haunted Graffiti, Los Angeles, California 2009
Soundscreen Design, Brooklyn, New York 2009
Glasslands Gallery, Brooklyn, New York 2008
The Bley Family, Los Angeles, California 2008/10
Narnack Records, Los Angeles, California 2008
Christophe Lemaire, Paris, France 2008
Merok, London, United Kingdom 2008
Tiny Creatures, Los Angeles, California 2008
Shadow Play, Asheville, North Carolina 2008
Mushrooms International San Francisco, California 2008
Sticky World, Chicago, Illinois 2008
Welcome Hunters, Los Angeles, California 2008
Insound Magazine, New York, New York 2008
Human Ear, Los Angeles, California 2007
Stephane Leonard, Berlin, Germany 2007
Golden Boots / Park The Van Records, Tucson, Arizona 2007
References
1972 births
American artists
American poster artists
University of Michigan alumni
Living people
|
```go
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package util
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"strings"
"time"
)
// GetExp returns token expiration time, or error on failures.
func GetExp(token string) (time.Time, error) {
claims, err := parseJwtClaims(token)
if err != nil {
return time.Time{}, err
}
if claims["exp"] == nil {
// The JWT doesn't have "exp", so it's always valid. E.g., the K8s first party JWT.
return time.Time{}, nil
}
var expiration time.Time
switch exp := claims["exp"].(type) {
case float64:
expiration = time.Unix(int64(exp), 0)
case json.Number:
v, _ := exp.Int64()
expiration = time.Unix(v, 0)
}
return expiration, nil
}
// GetAud returns the claim `aud` from the token. Returns nil if not found.
func GetAud(token string) ([]string, error) {
claims, err := parseJwtClaims(token)
if err != nil {
return nil, err
}
rawAud := claims["aud"]
if rawAud == nil {
return nil, fmt.Errorf("no aud in the token claims")
}
data, err := json.Marshal(rawAud)
if err != nil {
return nil, err
}
var singleAud string
if err = json.Unmarshal(data, &singleAud); err == nil {
return []string{singleAud}, nil
}
var listAud []string
if err = json.Unmarshal(data, &listAud); err == nil {
return listAud, nil
}
return nil, err
}
type jwtPayload struct {
// Aud is JWT token audience - used to identify 3p tokens.
// It is empty for the default K8S tokens.
Aud []string `json:"aud"`
}
// ExtractJwtAud extracts the audiences from a JWT token. If aud cannot be parse, the bool will be set
// to false. This distinguishes aud=[] from not parsed.
func ExtractJwtAud(jwt string) ([]string, bool) {
jwtSplit := strings.Split(jwt, ".")
if len(jwtSplit) != 3 {
return nil, false
}
payload := jwtSplit[1]
payloadBytes, err := DecodeJwtPart(payload)
if err != nil {
return nil, false
}
structuredPayload := jwtPayload{}
err = json.Unmarshal(payloadBytes, &structuredPayload)
if err != nil {
return nil, false
}
return structuredPayload.Aud, true
}
func parseJwtClaims(token string) (map[string]any, error) {
parts := strings.Split(token, ".")
if len(parts) != 3 {
return nil, fmt.Errorf("token contains an invalid number of segments: %d, expected: 3", len(parts))
}
// Decode the second part.
claimBytes, err := DecodeJwtPart(parts[1])
if err != nil {
return nil, err
}
dec := json.NewDecoder(bytes.NewBuffer(claimBytes))
claims := make(map[string]any)
if err := dec.Decode(&claims); err != nil {
return nil, fmt.Errorf("failed to decode the JWT claims")
}
return claims, nil
}
func DecodeJwtPart(seg string) ([]byte, error) {
if l := len(seg) % 4; l > 0 {
seg += strings.Repeat("=", 4-l)
}
return base64.URLEncoding.DecodeString(seg)
}
```
|
Mendrisio San Martino railway station () is a railway station in the municipality of Mendrisio, in the Swiss canton of Ticino. It is an intermediate stop on the standard gauge Gotthard line of Swiss Federal Railways.
Services
the following services stop at Mendrisio San Martino:
/ : half-hourly service between and and hourly service to , , or .
: hourly service between and Mendrisio.
References
External links
Railway stations in Ticino
Swiss Federal Railways stations
Railway stations in Switzerland opened in 2013
|
The 2014 Nordic Futsal Championship, was the fourth edition of the Nordic Futsal Championship hosted by Tampere, Finland.
Final standings
Matches and results
Awards
Winner: Vegakameratene
Runners-up: Ilves
Third-Place: Golden Futsal Team
Top scorer:
Best Player:
References
External links
Futsal Planet
2016
2014–15 in European futsal
2014
2014 in Finnish football
Sports competitions in Tampere
|
Beautempsia is a genus of flowering plants belonging to the family Capparaceae.
Its native range is Ecuador to Peru.
Species:
Beautempsia avicenniifolia
References
Capparaceae
Brassicales genera
|
The 1992–93 Iraq FA Cup was the 16th edition of the Iraq FA Cup as a clubs-only competition. The tournament was won by Al-Zawraa for the eighth time in their history, beating Al-Talaba 2–1 in the final.
Bracket
Matches
Quarter-finals
Semi-finals
Final
References
External links
Iraqi Football Website
Iraq FA Cup
Cup
|
Damansara was a federal constituency in the Federal Territories, Malaysia, that was represented in the Dewan Rakyat from 1974 to 1986.
The federal constituency was created in the 1974 redistribution and was mandated to return a single member to the Dewan Rakyat under the first past the post voting system.
History
Representation history
Election results
References
Defunct Federal Territories of Malaysia federal constituencies
|
St Andrew Street, Hertford is the west entry road to Hertford, England. It runs from North Road to Old Cross and includes shops, houses and a church. The history of the buildings on St Andrew Street date back to the 14th century.
History
All the buildings in St Andrew Street have a long history, being either built or reconstructed upon an ancient site. Numbers 58 and 60 are reputed to be the oldest, perhaps 14th century or earlier.
No 43, now Beckwiths, is dated to 1450 and at the former Three Tuns, now the Baan Thitiya Thai restaurant, an 18th-century front has been added to a much earlier rear.
The majority of the properties which line St Andrew Street are listed. From the late 18th century until more recent times there were habitable yards, of which only two names remain: Brewhouse Lane – which was rebuilt in a traditional style – and Victoria Place – now extended.
The former Fiddle Yard is now Arbon Court, with newly completed houses for sale. Other yards and property were swept away by the relief road in the 1960s and the Oaken Buildings were eventually replaced by the St Andrew Street car park.
The Church of St Andrew was possibly of Saxon origin and additions to the original building failed to accommodate sufficient of its worshippers. By the mid 19th century, the old church was in a parlous state and re-building was thought necessary. The new church was consecrated on 24 March 1870.
Six years later, by the generosity of Earl Cowper of Panshanger and Mr. Robert Smith of Goldings, the tower was replaced. The architect was J. Johnson of Moorgate Street and the style is of the transitional period between Early English and decorated styles of Medieval architecture.
Shops
The street is now home to a number of independent traders, as well as doctor surgeries and private businesses. The church is also still there and holds regular services and group meetings, as well as weddings, charity and community events.
References
External links
Hertford & Ware Local History Society
Hertford Town Council
Discover Hertford
Geography of Hertford
Transport in Hertfordshire
|
In game theory, a multi-stage game is a sequence of several simultaneous games played one after the other. This is a generalization of a repeated game: a repeated game is a special case of a multi-stage game, in which the stage games are identical.
Multi-Stage Game with Different Information Sets
As an example, consider a two-stage game in which the stage game in Figure 1 is played in each of two periods:
The payoff to each player is the simple sum of the payoffs of both games.
Players cannot observe the action of the other player within a round; however, at the beginning of Round 2, Player 2 finds out about Player 1's action in Round 1, while Player 1 does not find out about Player 2's action in Round 1.
For Player 1, there are strategies.
For Player 2, there are strategies.
The extensive form of this multi-stage game is shown in Figure 2:
In this game, the only Nash Equilibrium in each stage is (B, b).
(BB, bb) will be the Nash Equilibrium for the entire game.
Multi-Stage Game with Changing Payoffs
In this example, consider a two-stage game in which the stage game in Figure 3 is played in the first period and the game in Figure 4 is played in the second:
The payoff to each player is the simple sum of the payoffs of both games.
Players cannot observe the action of the other player within a round; however, at the beginning of Round 2, both players find out about the other's action in Round 1.
For Player 1, there are strategies.
For Player 2, there are strategies.
The extensive form of this multi-stage game is shown in Figure 5:
Each of the two stages has two Nash Equilibria: which are (A, a), (B, b), (X, x), and (Y, y).
If the complete contingent strategy of Player 1 matches Player 2 (i.e. AXXXX, axxxx), it will be a Nash Equilibrium. There are 32 such combinations in this multi-stage game. Additionally, all of these equilibria are subgame-perfect.
References
Game theory game classes
|
```javascript
module.exports = { extends: ['@commitlint/config-conventional'] };
```
|
```objective-c
//
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
#import "Common/GREYSwizzler.h"
#include <dlfcn.h>
#include <objc/runtime.h>
#import "Common/GREYDefines.h"
#import "Common/GREYFatalAsserts.h"
typedef NS_ENUM(NSUInteger, GREYMethodType) {
GREYMethodTypeClass,
GREYMethodTypeInstance
};
#pragma mark - GREYResetter
/**
* Utility class to hold original implementation of a method of a class for the purpose of
* resetting.
*/
@interface GREYResetter : NSObject
/**
* @remark init is not an available initializer. Use the other initializers.
*/
- (instancetype)init NS_UNAVAILABLE;
/**
* Designated initializer.
*
* @param originalMethod Method being swizzled
* @param originalIMP Implementation of the method being swizzled
*/
- (instancetype)initWithOriginalMethod:(Method)originalMethod
originalImplementation:(IMP)originalIMP;
/**
* Reset the original method selector to its unmodified/vanilla implementations.
*/
- (void)reset;
@end
@implementation GREYResetter {
Method _originalMethod;
IMP _originalIMP;
}
- (instancetype)initWithOriginalMethod:(Method)originalMethod
originalImplementation:(IMP)originalIMP {
self = [super init];
if (self) {
_originalMethod = originalMethod;
_originalIMP = originalIMP;
}
return self;
}
- (void)reset {
method_setImplementation(_originalMethod, _originalIMP);
}
@end
#pragma mark - GREYSwizzler
@implementation GREYSwizzler {
NSMutableDictionary *_resetters;
}
- (instancetype)init {
self = [super init];
if (self) {
_resetters = [[NSMutableDictionary alloc] init];
}
return self;
}
- (BOOL)resetClassMethod:(SEL)methodSelector class:(Class)klass {
if (!klass || !methodSelector) {
NSLog(@"Nil Parameter(s) found when swizzling.");
return NO;
}
NSString *key = [[self class] grey_keyForClass:klass
selector:methodSelector
type:GREYMethodTypeClass];
GREYResetter *resetter = _resetters[key];
if (resetter) {
[resetter reset];
[_resetters removeObjectForKey:key];
return YES;
} else {
NSLog(@"Resetter was nil for class: %@ and class selector: %@",
NSStringFromClass(klass),
NSStringFromSelector(methodSelector));
return NO;
}
}
- (BOOL)resetInstanceMethod:(SEL)methodSelector class:(Class)klass {
if (!klass || !methodSelector) {
NSLog(@"Nil Parameter(s) found when swizzling.");
return NO;
}
NSString *key = [[self class] grey_keyForClass:klass
selector:methodSelector
type:GREYMethodTypeInstance];
GREYResetter *resetter = _resetters[key];
if (resetter) {
[resetter reset];
[_resetters removeObjectForKey:key];
return YES;
} else {
NSLog(@"Resetter was nil for class: %@ and instance selector: %@",
NSStringFromClass(klass),
NSStringFromSelector(methodSelector));
return NO;
}
}
- (void)resetAll {
for (GREYResetter *resetter in [_resetters allValues]) {
[resetter reset];
}
[_resetters removeAllObjects];
}
- (BOOL)swizzleClass:(Class)klass
replaceClassMethod:(SEL)methodSelector1
withMethod:(SEL)methodSelector2 {
if (!klass || !methodSelector1 || !methodSelector2) {
NSLog(@"Nil Parameter(s) found when swizzling.");
return NO;
}
Method method1 = class_getClassMethod(klass, methodSelector1);
Method method2 = class_getClassMethod(klass, methodSelector2);
// Only swizzle if both methods are found.
if (method1 && method2) {
// Save the current implementations
IMP imp1 = method_getImplementation(method1);
IMP imp2 = method_getImplementation(method2);
[self grey_saveOriginalMethod:method1
originalIMP:imp1
originalClass:klass
swizzledMethod:method2
swizzledIMP:imp2
swizzledClass:klass
methodType:GREYMethodTypeClass];
// To add a class method, we need to get the class meta first.
// path_to_url
Class classMeta = object_getClass(klass);
if (class_addMethod(classMeta, methodSelector1, imp2, method_getTypeEncoding(method2))) {
class_replaceMethod(classMeta, methodSelector2, imp1, method_getTypeEncoding(method1));
} else {
method_exchangeImplementations(method1, method2);
}
return YES;
} else {
NSLog(@"Swizzling Method(s) not found while swizzling class %@.", NSStringFromClass(klass));
return NO;
}
}
- (BOOL)swizzleClass:(Class)klass
replaceInstanceMethod:(SEL)methodSelector1
withMethod:(SEL)methodSelector2 {
if (!klass || !methodSelector1 || !methodSelector2) {
NSLog(@"Nil Parameter(s) found when swizzling.");
return NO;
}
Method method1 = class_getInstanceMethod(klass, methodSelector1);
Method method2 = class_getInstanceMethod(klass, methodSelector2);
// Only swizzle if both methods are found.
if (method1 && method2) {
// Save the current implementations
IMP imp1 = method_getImplementation(method1);
IMP imp2 = method_getImplementation(method2);
[self grey_saveOriginalMethod:method1
originalIMP:imp1
originalClass:klass
swizzledMethod:method2
swizzledIMP:imp2
swizzledClass:klass
methodType:GREYMethodTypeInstance];
if (class_addMethod(klass, methodSelector1, imp2, method_getTypeEncoding(method2))) {
class_replaceMethod(klass, methodSelector2, imp1, method_getTypeEncoding(method1));
} else {
method_exchangeImplementations(method1, method2);
}
return YES;
} else {
NSLog(@"Swizzling Method(s) not found while swizzling class %@.", NSStringFromClass(klass));
return NO;
}
}
- (BOOL)swizzleClass:(Class)klass
addInstanceMethod:(SEL)addSelector
withImplementation:(IMP)addIMP
andReplaceWithInstanceMethod:(SEL)instanceSelector {
if (!klass || !addSelector || !addIMP || !instanceSelector) {
NSLog(@"Nil Parameter(s) found when swizzling.");
return NO;
}
// Check for whether an implementation forwards to a nil selector or not.
// This is caused when you use the incorrect methodForSelector call in order
// to get the implementation for a selector.
void *messageForwardingIMP = dlsym(RTLD_DEFAULT, "_objc_msgForward");
if (addIMP == messageForwardingIMP) {
NSLog(@"Wrong Type of Implementation obtained for selector %@", NSStringFromClass(klass));
return NO;
}
Method instanceMethod = class_getInstanceMethod(klass, instanceSelector);
if (instanceMethod) {
struct objc_method_description *desc = method_getDescription(instanceMethod);
if (!desc || desc->name == NULL) {
NSLog(@"Failed to get method description.");
return NO;
}
if (!class_addMethod(klass, addSelector, addIMP, desc->types)) {
NSLog(@"Failed to add class method.");
return NO;
}
return [self swizzleClass:klass replaceInstanceMethod:instanceSelector withMethod:addSelector];
} else {
NSLog(@"Instance method: %@ does not exist in the class %@.",
NSStringFromSelector(instanceSelector), NSStringFromClass(klass));
return NO;
}
}
#pragma mark - Private
+ (NSString *)grey_keyForClass:(Class)klass selector:(SEL)sel type:(GREYMethodType)methodType {
GREYFatalAssert(klass);
GREYFatalAssert(sel);
NSString *methodTypeString;
if (methodType == GREYMethodTypeClass) {
methodTypeString = @"+";
} else {
methodTypeString = @"-";
}
return [NSString stringWithFormat:@"%@[%@ %@]",
methodTypeString,
NSStringFromClass(klass),
NSStringFromSelector(sel)];
}
- (void)grey_saveOriginalMethod:(Method)originalMethod
originalIMP:(IMP)originalIMP
originalClass:(Class)originalClass
swizzledMethod:(Method)swizzledMethod
swizzledIMP:(IMP)swizzledIMP
swizzledClass:(Class)swizzledClass
methodType:(GREYMethodType)methodType {
GREYFatalAssert(originalMethod);
GREYFatalAssert(originalIMP);
GREYFatalAssert(originalClass);
GREYFatalAssert(swizzledMethod);
GREYFatalAssert(swizzledIMP);
NSString *keyForOriginal = [[self class] grey_keyForClass:originalClass
selector:method_getName(originalMethod)
type:methodType];
if (!_resetters[keyForOriginal]) {
GREYResetter *resetter = [[GREYResetter alloc] initWithOriginalMethod:originalMethod
originalImplementation:originalIMP];
_resetters[keyForOriginal] = resetter;
}
NSString *keyForSwizzled = [[self class] grey_keyForClass:swizzledClass
selector:method_getName(swizzledMethod)
type:methodType];
if (!_resetters[keyForSwizzled]) {
GREYResetter *resetter = [[GREYResetter alloc] initWithOriginalMethod:swizzledMethod
originalImplementation:swizzledIMP];
_resetters[keyForSwizzled] = resetter;
}
}
@end
```
|
Clementine Barnabet (born ) was an accused American serial killer who was convicted of killing one person and confessed to have killed as many as 35. However, doubt has since been cast on her involvement.
Early life
Clementine Barnabet is believed to have been born around 1894 in St. Martinville, Louisiana, to Nina Porter and Raymond Barnabet. She had three brothers, one of them named Zepherin. Barnabet's father reportedly abused his family. They moved to Lafayette in 1909.
Murders and investigation
Professor Vance McLaughlin wrote: "Between 1911 and 1912, in towns along the Southern Pacific railroad line running through Louisiana and Texas, a minimum of twelve African-American families were murdered in their homes. All the murders occurred at night and an axe was used to fracture the skulls of the victims. Only one person, Clementine Barnabet, was ever punished for any of these homicides."
Raymond Barnabet, Clementine's father, was arrested on suspicion of murdering the four-person Andrus family, who had been killed in February 1911 in Lafayette, Louisiana. He was released for insufficient evidence, but re-arrested months later and ultimately convicted of the Andrus murders. His daughter Clementine and son Zepherin both testified against Raymond, claiming he had returned home with bloodied clothes and boasting of the Andrus murders. Raymond's attorneys successfully filed for an appeal, but he was held in jail pending a new trial.
In November 1911, while Raymond was imprisoned, Norbert and Asima Randall of Lafayette were murdered with their four children in a manner similar to the previous slayings. Clementine lived a few blocks away, and came under suspicion due to blood allegedly found on the fence latch of her house and on clothes found in her bedroom.
While Clementine and Zepherin were both held in custody, the ax murders of families continued, casting doubt on their involvement.
Arrest and confession
Barnabet eventually confessed to 35 murders. She explained her connection to the Church of Sacrifice, an offshoot of a Christ's Sanctified Holy Church congregation in Lake Charles, Louisiana.
Clementine further claimed that a priestess of the Church of Sacrifice had given her and her friends "conjure bags" (a good luck charm found in Hoodoo) that would grant them supernatural powers and make them undetectable to the authorities. This spurred Barnabet into committing her first murder to test whether or not the claim of magical protection was true.
Her confession was described in contemporary reports as "very self-contradictory," such as sometimes claiming to have committed the murders alone and other times to have acted with others. She named many of her alleged accomplices, but none were ever charged with a crime.
Modern analysts have tended to doubt Barnabet's involvement in the murders. In their 2017 book The Man from the Train, authors Bill James and Rachel McCarthy James argue that some, but not all, of the murders were committed by a serial killer named Paul Mueller, with others committed by copycats. Other than the fact that she had purchased conjure bags from a specific person, they write, "nothing that Clementine said about the murders (a) can be confirmed by any other party, or (b) has the ring of truth about it. A great deal of what she said is demonstrably false."
Sentencing and disappearance
In October 1912, Clementine Barnabet was sentenced to life in Louisiana State Penitentiary. In July 1913, she escaped jail for a few hours, but was caught.
However, in August 1923, Barnabet was released from prison after an unspecified surgical operation was believed to have cured her (not a lobotomy, which was unknown in the United States until a decade later). James and James argue that, "if authorities had actually believed that she was behind these terrible murders, it is unlikely that she would have been released after a few years in jail. She was turned loose so soon because the authorities didn't believe her story, either."
After Barnabet's release, no knowledge exists on her whereabouts.
See also
Axeman of New Orleans
List of serial killers in the United States
List of serial killers by number of victims
References
1890s births
1911 murders in the United States
1912 murders in the United States
20th-century African-American people
20th-century African-American women
20th-century American criminals
American people convicted of murder
American prisoners sentenced to life imprisonment
Axe murder
Crimes involving Satanism or the occult
Criminals from Louisiana
People from St. Martinville, Louisiana
People convicted of murder by Louisiana
Prisoners sentenced to life imprisonment by Louisiana
Suspected serial killers
Year of birth uncertain
Year of death missing
|
```java
/*-
* #%L
* This file is part of QuPath.
* %%
* Contact: IP Management (ipmanagement@qub.ac.uk)
* %%
* QuPath is free software: you can redistribute it and/or modify
* published by the Free Software Foundation, either version 3 of the
*
* QuPath 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 QuPath. If not, see <path_to_url
* #L%
*/
package qupath.lib.analysis.algorithms;
import java.util.PriorityQueue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import qupath.lib.analysis.images.SimpleImage;
import qupath.lib.analysis.images.SimpleModifiableImage;
/**
* Implementation of 2D watershed transform.
* <p>
* TODO: Implement any further optimizations added to the ImageJ version
*
* @author Pete Bankhead
*
*/
public class Watershed {
private static final Logger logger = LoggerFactory.getLogger(Watershed.class);
/**
* Apply a 2D watershed transform.
*
* @param ip image containing intensity information
* @param ipLabels image containing starting labels; these will be modified
* @param conn8 true if 8-connectivity should be used; alternative is 4-connectivity
*/
public static void doWatershed(final SimpleImage ip, final SimpleModifiableImage ipLabels, final boolean conn8) {
doWatershed(ip, ipLabels, Double.NEGATIVE_INFINITY, conn8);
}
/**
* Apply a 2D watershed transform, constraining region growing using an intensity threshold.
*
* @param ip image containing intensity information
* @param ipLabels image containing starting labels; these will be modified
* @param minThreshold minimum threshold; labels will not expand into pixels with values below the threshold
* @param conn8 true if 8-connectivity should be used; alternative is 4-connectivity
*/
public static void doWatershed(final SimpleImage ip, final SimpleModifiableImage ipLabels, final double minThreshold, final boolean conn8) {
long startTime = System.currentTimeMillis();
int width = ip.getWidth();
int height = ip.getHeight();
// Create & initialize a priority queue
WatershedQueueWrapper queue = new WatershedQueueWrapper(ip, ipLabels, minThreshold);
// Process the queue
while (!queue.isEmpty()) {
PixelWithValue pwv = queue.poll();
float lastLabel;
if (conn8)
lastLabel = getNeighborLabels8(ipLabels, pwv.x, pwv.y, width, height);
else
lastLabel = getNeighborLabels4(ipLabels, pwv.x, pwv.y, width, height);
if (Float.isNaN(lastLabel))
continue;
ipLabels.setValue(pwv.x, pwv.y, lastLabel);
if (conn8)
addNeighboursToQueue8(queue, pwv.x, pwv.y, width, height);
else
addNeighboursToQueue4(queue, pwv.x, pwv.y, width, height);
}
long endTime = System.currentTimeMillis();
logger.trace(String.format("Watershed time taken: %.2fs", (endTime - startTime)/1000.0));
}
private static float getNeighborLabels4(final SimpleImage ipLabels, final int x, final int y, final int w, final int h) {
float lastLabel = Float.NaN;
if (x > 0) {
float label = ipLabels.getValue(x-1, y);
if (label != 0) {
// if (Float.isNaN(lastLabel))
lastLabel = label;
// else if (lastLabel != label)
// return Float.NaN;
}
}
if (x < w-1) {
float label = ipLabels.getValue(x+1, y);
if (label != 0) {
if (Float.isNaN(lastLabel))
lastLabel = label;
else if (lastLabel != label)
return Float.NaN;
}
}
if (y > 0) {
float label = ipLabels.getValue(x, y-1);
if (label != 0) {
if (Float.isNaN(lastLabel))
lastLabel = label;
else if (lastLabel != label)
return Float.NaN;
}
}
if (y < h-1) {
float label = ipLabels.getValue(x, y+1);
if (label != 0) {
if (Float.isNaN(lastLabel))
lastLabel = label;
else if (lastLabel != label)
return Float.NaN;
}
}
return lastLabel;
}
private static void addNeighboursToQueue4(final WatershedQueueWrapper queue, final int x, final int y , int w, final int h) {
queue.add(x, y-1);
queue.add(x-1, y);
queue.add(x+1, y);
queue.add(x, y+1);
}
private static float getNeighborLabels8(final SimpleImage ipLabels, final int x, final int y, final int w, final int h) {
float lastLabel = Float.NaN;
for (int yy = Math.max(y-1, 0); yy <= Math.min(h-1, y+1); yy++) {
for (int xx = Math.max(x-1, 0); xx <= Math.min(w-1, x+1); xx++) {
if (xx == x && yy == y)
continue;
float label = ipLabels.getValue(xx, yy);
// TODO: CONSIDER USE OF -1 BOUNDARIES
if (label <= 0)
continue;
if (Float.isNaN(lastLabel))
lastLabel = label;
else if (lastLabel != label)
return Float.NaN;
}
}
return lastLabel;
}
private static void addNeighboursToQueue8(final WatershedQueueWrapper queue, final int x, final int y, final int w, final int h) {
queue.add(x-1, y-1);
queue.add(x, y-1);
queue.add(x+1, y-1);
queue.add(x-1, y);
queue.add(x+1, y);
queue.add(x-1, y+1);
queue.add(x, y+1);
queue.add(x+1, y+1);
}
private static final class WatershedQueueWrapper {
private PriorityQueue<PixelWithValue> queue = new PriorityQueue<>();
private boolean[] queued = null;
private long counter = 0;//Long.MIN_VALUE;
private int width, height;
private SimpleImage ip;
public WatershedQueueWrapper(SimpleImage ip, SimpleImage ipLabels, double minThreshold) {
this.ip = ip;
this.width = ip.getWidth();
this.height = ip.getHeight();
// Keep a record of already-queued pixels
queued = new boolean[width * height];
// Loop through and populate the queue sensibly; background assumed to be zero
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
float val = ip.getValue(x, y);
// Mark below-threshold pixels as queued (even if they aren't...) to indicate they shouldn't be added later
if (val <= minThreshold) {
queued[y * width + x] = true;
continue;
}
// Mark already-labeled pixels as queued as well,
// and add pixels immediately adjacent to a labeled pixel to the queue
if (ipLabels.getValue(x, y) != 0)
queued[y * width + x] = true;
else {
boolean front = (x > 0 && ipLabels.getValue(x-1, y) != 0) ||
(y > 0 && ipLabels.getValue(x, y-1) != 0) ||
(x < width-1 && ipLabels.getValue(x+1, y) != 0) ||
(y > height-1 && ipLabels.getValue(x, y+1) != 0);
if (front) {
queued[y * width + x] = true;
queue.add(new PixelWithValue(x, y, val, ++counter));
}
}
}
}
}
public final void add(int x, int y) {
// Don't add to the queue twice
if (!mayAddToQueue(x, y))
return;
addWithoutCheck(x, y, ip.getValue(x, y));
}
protected final void addWithoutCheck(int x, int y, float val) {
// Add, while storing a count variable, effectively turning the PriorityQueue into a FIFO queue whenever values are equal
// This is necessary to produce reasonable-looking watershed results where there are plateaus (i.e. pixels with the same value)
queue.add(new PixelWithValue(x, y, val, ++counter));
// Keep track of the fact this has been queued - won't need it again
queued[y * width + x] = true;
}
// public final boolean mayAddToQueue(int x, int y) {
// return !queued[y * width + x];
// }
public final boolean mayAddToQueue(int x, int y) {
return x >= 0 && x < width && y >= 0 && y < height && !queued[y * width + x];
}
public final PixelWithValue poll() {
return queue.poll();
}
public final boolean isEmpty() {
return queue.isEmpty();
}
}
private static final class PixelWithValue implements Comparable<PixelWithValue> {
public int x, y;
public float value;
private long count;
public PixelWithValue(final int x, final int y, final float value, final long count) {
this.x = x;
this.y = y;
this.value = value;
this.count = count;
}
@Override
public int compareTo(final PixelWithValue pwv) {
// Profiling indicates that the many comparisons are the slowest part of the algorithm...
if (value < pwv.value) {
return 1;
}
else if (value > pwv.value) {
return -1;
}
return count > pwv.count ? 1 : -1;
// // Profiling indicates that the many comparisons are the slowest part of the algorithm...
// if (value > pwv.value)
// return 1;
// else if (value < pwv.value)
// return -1;
// return count > pwv.count ? 1 : -1;
}
}
}
```
|
Weekends Away is the first EP from Seattle, Washington indie pop band Math and Physics Club and was released in February 2005.
The band's initial demo attracted the attention of both Jimmy Tassos of Matinee Recordings and the influential KEXP DJ John Richards. As they played their second show in December, they were already receiving considerable attention, including frequent spins on KEXP and WOXY.
The band's original demo featured four songs in nearly the same sequence, with "Nothing Really Happened" in place of "Love, Again." The demo version of "Nothing Really Happened" was released on a compilation called Strength in Numbers in mid-2005, and the song was re-recorded in 2007 for belated release on their third EP Baby I'm Yours. The song "Love, Again" was recorded after the first demo sessions and added to the EP before release.
"Sixteen and Pretty" garnered exposure and airplay for the band, leading to the band's appearance at the 2005 Sasquatch Festival.
Pitchfork Media wrote that they "set the match of literate, vivid lyrics and irrepressible melody to their faded-picturebook boy/girl harmonies" and KEXP described the EP as "utterly charming." Allmusic said that the "band's first EP is a four track gem that manages to escape any charges of imitation by delivering four very strong songs loaded with tender emotion and easy going charm."
Track listing
"Weekends Away"
"Sixteen and Pretty"
"Love, Again"
"When We Get Famous"
External links
Official Math and Physics Club website
Math and Physics Club @ MySpace
[ Review]
2005 EPs
Math and Physics Club albums
|
The Château d'Assier is located in Assier, in the Lot department of the Occitanie region of south-west France. It is an example of the diffusion of Renaissance château architecture from the Loire Valley into other parts of France.
History
Built between 1518 and 1535, the château was commissioned by Jacques Galiot de Genouillac (1465–1546), Grand Squire of France under King François I. The château was designed as a large quadrangle, on each side, flanked by massive round towers at each corner, capped with ogival domes.
Jeanne, only heiress of Galiot de Genouillac, married Charles de Crussol, vicomte d'Uzès (1483–1546). In 1768, their descendant, the duc d'Uzès, sold most of the château to demolition contractors, who pulled down the buildings and sold the materials. The duke retained the west wing for agricultural uses. In spite of the classification of the building as a historic monument, by Prosper Mérimée in 1841, the agricultural use continued until the whole of the surviving building was acquired by the French state in 1934. In 1901, it was registered as a monument historique. The building is now in the care of the Centre des monuments nationaux, and is open to the public.
Architecture
The remaining west wing retains its pedimented gateway, which sheltered, in a niche at first floor level, an equestrian statue of Galiot de Genouillac. The courtyard frontage is decorated with two broad friezes, richly carved with emblems referring to the military achievements of Galiot de Genouillac, and to the legend of Hercules. Inside, a grand staircase, vaulted on intersecting ribs, leads up to a marble pillar, decorated with "grotesques", which is thought to be the work of Jean Goujon or one of his pupils. The interior comprises a series of vaulted rooms, decorated with martial trophies, and containing a small museum. The external and interior decoration is typical of the French Renaissance style, with Classical orders (ionic, doric, Corinthian), scenes from the legend of Hercules, such as the Lernaean Hydra and the Nemean lion, as well as more personal motifs, such as the cannons, swords, the collar of the Order of Saint Michael.
A tower-shaped dovecote, dating to 1537, contains 2,500 terracotta nesting boxes, which were accessed by a rotating ladder. Now private property, the dovecote was registered as a monument historique on 21 November 2005. The mill was built on the site of a medieval mill, and was rebuilt several times.
References
External links
Château d'Assier, Centre des monuments nationaux (English language website)
Châteaux in Lot (department)
Historic house museums in Occitania (administrative region)
Museums in Lot (department)
Monuments historiques of Lot (department)
Houses completed in 1535
1535 establishments in France
Monuments of the Centre des monuments nationaux
|
```go
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package wasm
import "istio.io/istio/pkg/monitoring"
// Const strings for label value.
const (
// For remote fetch metric.
fetchSuccess = "success"
downloadFailure = "download_failure"
manifestFailure = "manifest_failure"
checksumMismatch = "checksum_mismatched"
// For Wasm conversion metric.
conversionSuccess = "success"
noRemoteLoad = "no_remote_load"
marshalFailure = "marshal_failure"
unmarshalFailure = "unmarshal_failure"
fetchFailure = "fetch_failure"
missRemoteFetchHint = "miss_remote_fetch_hint"
)
var (
hitTag = monitoring.CreateLabel("hit")
resultTag = monitoring.CreateLabel("result")
wasmCacheEntries = monitoring.NewGauge(
"wasm_cache_entries",
"number of Wasm remote fetch cache entries.",
)
wasmCacheLookupCount = monitoring.NewSum(
"wasm_cache_lookup_count",
"number of Wasm remote fetch cache lookups.",
)
wasmRemoteFetchCount = monitoring.NewSum(
"wasm_remote_fetch_count",
"number of Wasm remote fetches and results, including success, download failure, and checksum mismatch.",
)
wasmConfigConversionCount = monitoring.NewSum(
"wasm_config_conversion_count",
"number of Wasm config conversion count and results, including success, no remote load, marshal failure, remote fetch failure, miss remote fetch hint.",
)
wasmConfigConversionDuration = monitoring.NewDistribution(
"wasm_config_conversion_duration",
"Total time in milliseconds istio-agent spends on converting remote load in Wasm config.",
[]float64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384},
)
)
```
|
Richard Morton Soash Sr. (August 3, 1941 – October 1, 2019) was an American rancher, farmer and politician.
Soash was born on the Soash ranch near Steamboat Springs, Colorado. He graduated from Steamboat Springs High School and from Colorado State University. Soash was a rancher and farmer. He served in the Colorado Senate from 1976 until 1984 and was a Democrat. He died in Florida.
Notes
External links
1941 births
2019 deaths
People from Steamboat Springs, Colorado
Colorado State University alumni
Farmers from Colorado
Ranchers from Colorado
Democratic Party Colorado state senators
|
```python
"""
"""
# Created on 2014.04.30
#
# Author: Giovanni Cannata
#
#
# This file is part of ldap3.
#
# ldap3 is free software: you can redistribute it and/or modify
# (at your option) any later version.
#
# ldap3 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 ldap3 in the COPYING and COPYING.LESSER files.
# If not, see <path_to_url
# implements RFC4532
from pyasn1.type.univ import NoValue
from ...extend.operation import ExtendedOperation
from ...utils.conv import to_unicode
from ...protocol.rfc4511 import OctetString
class WhoAmI(ExtendedOperation):
def config(self):
self.request_name = '1.3.6.1.4.1.4203.1.11.3'
self.response_attribute = 'authzid'
def populate_result(self):
try:
self.result['authzid'] = to_unicode(self.decoded_response) if self.decoded_response else None
except TypeError:
self.result['authzid'] = self.decoded_response if self.decoded_response else None
```
|
Uga is a town in Aguata Local Government Area of Anambra State, Nigeria. It is 13 km South East of Igbo-Ukwu, 12 km South of Ekwulobia, and 45 km South of Awka, the Anambra State Capital. It has four (4) communities namely : Umueze, Oka, Umuoru and Awarasi. It has recognised landmarks and tourist attractions such as the "Obizi Uga", a natural spring and a spectacular scenery which was the site of an ancient tale in the Uga oral tradition. Uga is the site of an annual traditional celebration known as the "OBUOFOR" festival held every 26 December. Uga has one of the largest markets in the Aguata local government area known as "ORIE" which supports the economic activities of the local community and other surrounding towns.
The town has an official Post Office.
History
Nigerian Civil War
Uga was an important theatre in the Biafran War by hosting an airstrip alongside Uli and rising to prominent use after the major strip in Uli was destroyed. Biafra's two main airfields were at Enugu and Port Harcourt. Three other landing grounds existed at Calabar, Owerri and Ogoja, but with little (if any) landing facilities, such as landing aids, etc. The loss of Enugu, Biafra Capital on 4 October 1967 and two weeks later Calabar in the South East helped the Federal troops to control the Biafra-Cameroon border and seal off the Biafran coastal ports. The Biafran Pilots were forced to transfer international communications, including valuable arms flights to Port Harcourt which became Biafra's main outlet to the world until May 1968. It was the loss of Enugu that prompted the concept of establishing a series of secret airstrips in the Biafran hinterland and a team of Biafran engineers began to select the possible sites. So the effort concentrated upon the site, codenamed "Annabelle", just to the South of the village at Uli. By far the largest of the projected new airstrips, Uli became synonymous with the entire Biafran effort to survive. Next to the "Rising Sun" National insignia, it undoubtedly became the best known symbol of Biafra. The strip was converted from a stretch of the main Owerri to Ihiala road. Nevertheless, it was commented by one airlift pilot much later, "a nice wide road, but a damned narrow runway". For inbound flights Uli operated only between the hours of darkness officially from 17:00 to 05:00 UTC or GMT at the time. Landing was only permissible after the crew had transmitted the correct landing-code for the night. The coded phases changed regularly. Towards the end of January 1969 the Biafran Air Force introduced a new frequency shift system for the final approach and landing phase. With this new arrangement, pilots initially contact Biafra Air Control Center (ACC) using the normal code format. As soon the contact with an inbound aircraft was established and confirmed. then, depending on weather, enemy activity, traffic, ACC would then clear the aircraft to Uli tower in plain language to until touchdown. Ihiala is just off the road, along the approach to Uli had a Church with two tall spires, visible on approach to Uli. Landing planes passed just over it. Many aviators were buried there. By the end of war 35 airmen were buried there. Nigeria bulldozed the graves.
Uga Air Strip
Disgusted by the suffering and mounting death toll in Biafra from starvation as well as the continuous harassment of the relief planes by the Nigerian Air Force, Carl Gustaf von Rosen resigned as a Red Cross relief pilot and helped Biafra to form an Airforce of five Minicoin planes Malmö MFI-9 stationed at the Uga airstrip. He named his tiny but effective airforce "Babies of Biafra" in honour of the babies who died via starvation inside Biafra.
Uga was only 27 kilometers to the North-east of Uli. Like Uli the strip at Uga was converted from a stretch of the main Orlu to Awka road. By the end of 1968, it was declared operational but only as a secondary strip to Uli and strictly for Government and Military usage only. The first known landing of a regular Military flight to Uga came on the night of 10/11 May 1969 when Jack Matlock and crew, flew one of his own DC-7CFs, into Uga. None relished the idea of using Uga airstrip again. The landing surface was not as good as Uli with considerable amounts of lose stone and shingles. The surface proved to be a major hazard especially when putting heavily laden DC-7CF into reverse pitch after landing. Contrary to popular belief, very few flights were made by DC-7s or L-1049Gs into Uga. Uga was the T-6Gs base, From here we took off for targets in the front line, Air Bases and in the back of enemy lines. The Headquarters chose the targets, we executed them. If necessary in emergency or with the Migs 17 overflying our base, we had South of Umuahia another airstrip at Mbawsi. The Migs 17 locate the airstrip and several retaliation attacks were carried out against the strip on 26 November and 1 December in the hope of either hitting the aircraft or rendering the strip sufficiently deniable for use. The NAF bombed and strafed Uga many times but never hit a plane or one of us. There is God. The bombs are not for us, O di naka Chukwu.
Geography
Obizi is a spring located in Uga and a major source of potable water and water recreation. In 2017, the Anambra Government in partnership with World Bank spent about N1.2 billion to reactivate the Obizi Water Scheme. The water project was the biggest in the state and when completed, would be expected to provide water to Uga and 45 communities in Aguata and its environs.
Climate
In Uga, the dry season is muggy and partly cloudy, and the temperature is warm all year round. The wet season is oppressive and overcast. The average annual temperature ranges from 65 to 86 degrees Fahrenheit; it rarely falls below 58 or rises above 89.
It is meaningless to talk about hot and cold seasons in Uga because the temperature changes there so little throughout the course of the year.
Economy
Education
Uga is made up of numerous notable schools including the secondary school attended by the incumbent governor Charles Chukwuma Soludo, Uga boys secondary school. The school is known to have produced number of elite people in the society today.
Other schools located in Uga include Our Lady of Waldenstein Nursery, Primary and Secondary School founded by Late. Msgr Prof John Bosco Akam it is located in Oka, Uga Aguata Anambra State.
Other Schools include:
Immaculate Heart Nursery and Primary School
St James Nursery and Primary School
Central School
Oka Community School
Victorious Impartation International Nursery and Primary School
Nwagwasi Primary School
Culture and Arts
Obuofor
The is one of the numerous historic event that Uga people remember each year. Obuofo memorial is a symbol of staunch of indigenous believe system destroyed by the advent of Christianity. It was not so easy to do that as many notable indigenes fought valiantly to defend who they were and their belief system. in 1910.
Hospitality
Government and politics
Transportation
Notable People
Andy Uba, Senator who represented Anambra South Senatorial District at the 8th National Assembly
Chris Uba Nigerian Politician Party member of PDP and brother to Andy Uba
Rev Prof John Bosco Akam, Founder Tansian University
Chief Ike Ndiokwelu, OON President, University of Ibadan Alumni Association, Abuja branch. 1991 - 1993
Chukwuma Izuchukwu Ezenobi, 21, a native of Awarasi in Uga, is the founder of Uga Development Foundation to be launched in November 2019, The Foundation is mainly to engage Uga Youths in I.T. Skills
Engr T. O Ezenwaka (MNSE), a native of Umueze in Uga served the Nigerian Federal Ministry of works and Housing and retired as a deputy director. He was awarded with A full presidential award during his Youth Service days for a project he single-handedly executed in Calabar.
References
Populated places in Anambra State
|
Cupidesthes jacksoni, the Jackson's ciliate blue, is a butterfly in the family Lycaenidae. It is found in Ivory Coast and Ghana. The habitat consists of wet forests.
Adults of both sexes have been found on the flowers of Eupatorium species.
References
Butterflies described in 1969
Lycaenesthini
|
```go
package log
/*
* 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,
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* specific language governing permissions and limitations
*/
import (
"log"
"strings"
)
// StandardLogger returns a new Logger which will write the appropriate prefix for standard log Printf calls.
// This allows the given logger to prefix correctly when passed to third-party or standard library functions which only know about the standard Logger interface.
// It does this by wrapping logger's error print as a writer, and sets that as the new Logger's io.Writer.
//
// prefix is a prefix to add, which will be added immediately before messages, but after any existing prefix on logger and the timestamp.
func StandardLogger(logger *log.Logger, prefix string) *log.Logger {
return log.New(&standardLoggerWriter{realLogger: logger, prefix: prefix}, "", 0)
}
type standardLoggerWriter struct {
realLogger *log.Logger
prefix string
}
// Write writes to writer's underlying log, in the standard log format (note this is not the Event log format).
// The writer.realLogger may be nil, in which case this does nothing.
// This always returns len(p) and nil, claiming it successfully wrote even if it didn't.
func (writer *standardLoggerWriter) Write(p []byte) (n int, err error) {
Logln(writer.realLogger, writer.prefix+strings.TrimSpace(string(p)))
return len(p), nil
}
```
|
Gul Sanobar is an Indian fantasy adventure television series created by Dhirubhai Gohil which aired on DD national from 1999 to 2000. It is based on the Persian legend of Gul o Sanaubar and the Arabian Nights.
Cast
Asif Sheikh as Shehzada Tamaas of Hindustan
Seema Kapoor as Mehrangez
Parikshit Sahni as Sultan of Hindustan
Ranjeet as Veer Singh the commander of Hindustan
Vindu Dara Singh as Turki
Saeed Jaffery as Sultan of Iran
Pradeep Rawat
Vinod Kapoor
Nimay Bali as Jhigala
Deep Dhilon as Zargam
Shiva as Ziyaak
Arjun (Firoz Khan) as Almaas
Mamik Singh as Changez
Sheeba Akashdeep as Zeenat
Episodes
Source:
The return of Prince Taimas
Execution of Kabul Prince
Escaped prisoners
The arrogant queen
Unsolved mystery of Gul Sanobar
The torture of queen Mehrangez
Search for absconding prisoners
Declare of war on Turkistan
The beginning of war
Capture of Zighala
The evil blood
The mystery of stone statue
Death of Veer Singh
Home media
RDG Productions Pvt. Ltd. re-released the show on its YouTube channel starting from 2018.
References
External links
Indian period television series
Doordarshan original programming
Television series based on One Thousand and One Nights
DD National original programming
|
Red Wing Regional Airport is a city-owned public-use airport located in Pierce County, Wisconsin, three nautical miles (6 km) northeast of the central business district of Red Wing, a city in Goodhue County, Minnesota, United States.
Although most U.S. airports use the same three-letter location identifier for the FAA and IATA, this airport is assigned RGK by the FAA but has no designation from the IATA. It is included in the Federal Aviation Administration (FAA) National Plan of Integrated Airport Systems for 2021–2025, in which it is categorized as a regional general aviation facility.
Facilities and aircraft
Red Wing Regional Airport covers an area of at an elevation of 780 feet (238 m) above mean sea level. It has one runway designated 9/27 with an asphalt surface measuring 5,010 by 100 feet (1,527 x 30 m).
For the 12-month period ending June 30, 2019, the airport had 14,050 aircraft operations, an average of 38 per day: 93% general aviation, 5% military and 2% air taxi. In May 2023, there were 62 aircraft based at this airport: 36 single-engine, 5 multi-engine and 21 jet.
Accidents and Incidents
On September 6, 2022, a Stoddard-Hamilton Glasair Super II impacted terrain off Highway 35 on airport property. Two people were killed.
See also
List of airports in Minnesota
List of airports in Wisconsin
References
External links
Airports in Wisconsin
Buildings and structures in Pierce County, Wisconsin
Red Wing, Minnesota
|
Anne MacLeod (born 1951) is a Scottish writer.
She was born in Aberfeldy and grew up in Inverness. MacLeod studied medicine at the University of Aberdeen and works as a dermatologist. She is the mother of four children. MacLeod lives on the Black Isle.
She has published two collections of poetry:
Standing by Thistles (1997)
Just the Caravaggio (1999)
both of which were well-received by critics. She has also published two novels The Dark Ship (2001) and The Blue Moon Book (2004).
References
1951 births
Living people
Scottish women poets
Scottish women novelists
|
This is a list of British television related events from 2001.
Events
January
1 January – The BBC reality show Castaway 2000 comes to an end as its participants leave the island of Taransay.
4 January – The popular classic children's characters Bill and Ben return to television with a brand new stop-motion animated series on BBC One. The series features the voice of comedian John Thomson.
7 January – Blankety Blank makes its debut on ITV, hosted by Lily Savage.
8 January – Debut of GMTV's Inch-Loss Island where volunteers attend a Castaway-style location in an attempt to collectively lose weight.
10 January – Debut of ITV's Popstars which will follow efforts to put together a five-piece band who will then record and release a single.
11 January – The Mole debuts on Channel 5, based on an idea from Belgium, the series sees ten contestants complete a number of tasks as they are whittled down to an eventual winner who will win £200,000. However, one of the contestants is a mole, deliberately planted to work against the team.
12 January – Johnny Vaughan and Denise van Outen end their second stint as presenters of The Big Breakfast, exactly 5 years after former presenter Gaby Roslin left the series. The show will be relaunched with a team of five presenters from 22 January as producers attempt to reverse the programme's falling ratings.
13 January – Debut of the ten-part BBC Two series I Love the '80s which examines the pop culture of the 1980s. The series debuts with I Love 1980 and concludes on 24 March with I Love 1989.
15 January
The ITC clears Celador and ITV of allegations that Judith Keppel's win on Who Wants to Be a Millionaire? had been rigged to draw audiences away from BBC One.
Carlton Television is criticised by the Independent Television Commission after the word "punami", popularised by comedian Sacha Baron Cohen was shown onscreen prior to an item about his alter ego, Ali G on its daytime show Celebrity TV in October 2000. The Commission felt the slang term for a part of the female anatomy would be offensive to the Afro-Caribbean community.
A new Jim Henson co-production called The Hoobs debuts on Channel 4 with early-morning repeats until 2014.
17 January
Prime Minister Tony Blair rejects calls to take part in US-style televised debates with opposition politicians during the forthcoming election campaign.
Vanessa Feltz has been dropped by the BBC following the conclusion of her two-year contract with the Corporation, it is reported.
18 January – Channel 4 launches E4, a digital entertainment channel at 8:15pm.
19 January – The ITV Nightly News is shown on ITV for the last time after 2 years.
20 January – BBC Two airs live coverage of the inauguration of George W. Bush as the 43rd President of the United States.
22 January
News at Ten returns to ITV, having been axed 2 years earlier. It is once again presented by Trevor McDonald.
Footballer turned presenter Ian Wright signs a two-year contract with the BBC where he will front a number of shows.
Channel 4's The Big Breakfast is relaunched with Donna Air, Amanda Byram, Paul Tonkinson, Melanie Sykes and Richard Bacon as its main presenters.
26 January – Channel 5 airs the 1000th episode of its soap Family Affairs.
28 January – Carlton and Granada are holding discussions aimed at merging their internet operations to create a single online business for ITV under the brand itv.co.uk or itv.com. The current itv.co.uk is a basic information service, but the broadcasters wish to compete with the BBC.
February
1 February – Launch of the film channel The Studio, a joint venture between NTL and Vivendi Universal.
3 February – Danny Foster, Myleene Klass, Kym Marsh, Suzanne Shaw and Noel Sullivan are chosen as the winners of Popstars, an ITV series that sought to put together a five-member pop group from members of the public who were invited to audition for the series.
5 February – Four programmes aired on this day by E4, Popworld, North Hollywood High, Shipwrecked and Generation E are recorded as having a zero audience share by the Broadcasters' Audience Research Board's overnight viewing figures.
6 February – Mr. Bean: The Animated Series, an animated spinoff from Mr. Bean, is announced and would begin airing in January 2002.
8 February – A 1982 interview given by serial killer Dr. Harold Shipman to ITV's World in Action in which he speaks about the benefits of caring for patients in the community rather than hospitalising them is rebroadcast as part of the Tonight programme. The footage is shown as police continue an investigation to determine the number of people killed by the GP.
12 February – The Independent Television Commission reprimands Channel 4 for airing part of a World Wrestling Federation in October 2000 that featured a wrestler threatening a rival's assistant with a sledgehammer. The ITC deemed the scene was inappropriate when children could be watching. Also, a viewer's complaint of impartiality is upheld against an edition of Fifteen to One in which presenter William G. Stewart made a lengthy argument for returning the Elgin Marbles to Greece, but did not explore the opposing case.
14 February – On Valentine's Day, ITV's This Morning features a gay wedding as two men are "married" live on air. The ceremony, a blessing performed by a cleric from the Society for Independent Christian Ministry, is not recognised under UK law at the time when same-sex marriage was not legal in the UK. The segment results in 117 viewer complaints to the Independent Television Commission, many suggesting it was unsuitable for broadcast at a time when children could have been watching and undermined the religious significance of marriage. In response, Granada Television says that the ceremony was discussed at length at the beginning of the programme, meaning viewers would have been aware it was going to take place. The ITC subsequently rejects the complaints, but notes that due to the show's "drop in" nature offence may have been caused to those who did not see the start of the programme.
16 February – The Midlands-based talk show Central Weekend issues an onscreen apology after a complaint was made to the Independent Television Commission when it emerged that an edition of the show from July 2000 had featured fake guests. A debate on the effects of soap operas on the lives of individuals had featured two patients of a "soap clinic" who it later emerged had been fakes.
20 February – The network television premiere of Paul Verhoeven's 1997 American science-fiction action blockbuster Starship Troopers on Channel 5, starring Casper Van Dien, Denise Richards, Dina Meyer, Michael Ironside Jake Busey and Neil Patrick Harris.
24 February – Hear'Say, the band formed by ITV's Popstars make their singing debut on the channel's chart show, CD:UK. They had been required to mime during a previous performance recorded for Channel 5's The Pepsi Chart Show because their backing tapes had not been completed.
March
1 March
The current foot-and-mouth outbreak has required rural-based soaps and continuing dramas such as Emmerdale and Heartbeat to adjust their filming schedules, it is reported.
EastEnders character Phil Mitchell (played by Steve McFadden) is wounded by a mystery gunman on his doorstep in one of the most memorable TV storylines of the year. The episode is watched by 17 million viewers.
BBC One airs Sailing through Heaven and Hell, a documentary chronicling Ellen MacArthur's participation in the 2000–2001 Vendée Globe solo round-the-world sailing race.
2 March – The Guardian reports that ITV have signed a deal with Universal Studios to air episodes of Northern Exposure, The Incredible Hulk and Dr. Katz. Northern Exposure which aired on Channel 4 during the 1990s, will begin showing nightly from 5 March, following The Late Show with David Letterman, while Dr. Katz will air on Saturdays.
4 March – A bomb explodes outside BBC Television Centre. The blast is later attributed to dissident Irish Republican terrorists and it is suggested the BBC Panorama programme which named individuals as participants in the Omagh bombing was the motive.
5 March
Anne Robinson appears as a guest on an edition of BBC Two's Room 101 in which she nominates Welsh people for inclusion in the fictional Orwellian Room 101, describing them as "irritating and annoying". Her comments provoke fury among Welsh politicians, an invitation to appear before the Welsh Affairs Select Committee as part of their investigation into Wales's overseas image and an investigation into the incident by the BBC Board of Governors. In addition, 427 complaints are received by the Broadcasting Standards Commission and North Wales Police launch an investigation into allegations of racial hatred.
The ITV soap Crossroads returns with a new series after an absence of 13 years. Response is initially favourable, but the show is soon criticised for its confusing storylines.
6 March – Shopping channel Ideal World goes off the air temporarily due to a large fire at its facilities in Peterborough. The channel would go back on the air within weeks of the fire, broadcasting from temporary facilities, but its main facilities in Peterborough wouldn’t be fully operational until September 2002.
7 March – BBC Two airs a special edition of TOTP2 in which Lionel Richie talks about his life and career and performs some of his hits.
9 March
The first series of Celebrity Big Brother sees six celebrities enter the Big Brother 1 house for a week-long series, in aid of Comic Relief. As Comic Relief is shown by the BBC this is a rare collaboration between two rival television networks. While Channel 4 airs daily highlight shows, BBC One also broadcasts 10-minute updates, as well as the final which is part of the Red Nose Day telethon.
Zi Khan wins the first series of Channel 5's The Mole.
11 March
ITV airs the 5000th episode of Coronation Street.
Channel 5 signs a deal with the distributors of Gladiator to give the film its British terrestrial television debut in 2003.
13 March
In an interview with the Radio Times, film director Ken Loach launches a scathing attack on the "destruction" of some of UK television's long-established news and current affairs programmes. In particular, he describes ITV's decision to scrap World in Action as "one of the television crimes of the century".
London's Chief Fire Officer Brian Robinson criticises the BBC for "grossly irresponsible behaviour" after the day's episode of EastEnders showed a character breaking a smoke alarm with a broom handle after it was activated in a smoke-filled kitchen.
14 March
ITV signs a £100 million deal with Luxembourg-based Société Européenne des Satellites, the company that relays BSkyB channels in the United Kingdom to make its service available through the Astra satellite. The deal paves the way for negotiations with Sky to carry ITV as part of its digital satellite service. A deal between the two broadcasters is subsequently agreed on 18 November.
Channel 5 airs its first terrestrial television showing of Robert Kurtzman's 1997 American fantasy horror film Wishmaster, starring Tammy Lauren, Andrew Divoff and Ted Raimi, as well as the three slasher icons include A Nightmare on Elm Streets Robert Englund, Friday the 13ths Kane Hodder and Candymans Tony Todd.
16 March
Highlights of the 2001 Comic Relief telethon include a prerecorded piece in which David and Victoria Beckham are interviewed by the character Ali G.
Comedian Jack Dee is voted the winner of Celebrity Big Brother.
17 March – William Friedkin's controversial 1973 Oscar-winning supernatural horror film The Exorcist is shown on British television for the first time when it is screened by Channel 4.
18 March – Hear'Say reach number one in the UK singles chart with their debut single Pure and Simple. With sales of almost 550,000, the song enters the record books as Britain's most successful debut pop single. They also become the first British group to simultaneously top both the UK singles and album charts with a debut release when their album Popstars reaches number one on the album charts on 1 April.
23 March – The Mirror reports that Brookside actress Claire Sweeney has been offered the presenting role of a new ITV series, Challenge of a Lifetime, described as a spin-off of Don't Try This at Home, after impressing producers during her recent Celebrity Big Brother appearance. London Weekend Television confirms in April that Sweeney will front a 12-part series of the show.
28 March – Channel 5 attracts its largest audience to date as 5.5 million viewers tune in to watch the World Cup qualifier match between England and Albania.
30 March – Channel 5 celebrates its fourth birthday.
April
2 April
Imperial College London wins the 2000–01 series of University Challenge, beating St John's College, Oxford 250–195.
ITV launches an online version of Who Wants to Be a Millionaire?.
5 April – The culmination of the Who Shot Phil? storyline in EastEnders with the revelation that Phil Mitchell (played by Steve McFadden) was shot by Lisa Fowler (Lucy Benjamin). To make way for the 45-minute episode in the schedules, the BBC negotiated to have the kick-off of the UEFA Cup semi final between Liverpool and Barcelona delayed by fifteen minutes. The episode receives 20.05 million viewers, the highest rated EastEnders episode of the decade.
6 April – The Big Breakfast co-presenter Paul Tomkinson has been sacked from the show, it is reported, bosses having told him of their decision to let him go the previous day. His role on the morning's edition of the programme is filled by Mike McClean.
11 April – The Independent Television Commission turns down a request from Channel 5 to move its main evening news bulletin forward half an hour to 5:30pm. However, an extended Five News and Talk planned for the run-up to the General Election beginning at 5:30pm is given the go-ahead.
16 April – The Broadcasting Standards Commission rules that Anne Robinson's comments about Welsh people "came close to the boundaries of acceptability", but fell short of being racist.
17 April – The Press Complaints Commission upholds a complaint against the News of the World made by Granada Television after the newspaper sent two undercover journalists to a Christmas party for the cast and crew of Emmerdale in the hope of finding a story. The assignment had proved to be fruitless because the reporters were ejected when their identity was discovered.
20 April
Celador Productions, makers of Who Wants to Be a Millionaire?, is awarded the Queen's Award for Enterprise for selling the ITV game show to over 60 countries worldwide.
Channel 4 scraps Right to Reply. The programme had been on air since the launch of the channel in 1982 and was the only programme that Channel 4 produced in-house.
21 April – David Edwards, a schoolteacher from Staffordshire and former Mastermind winner, becomes the second person to win the £1 million prize on ITV's Who Wants to Be a Millionaire?. News of his win had leaked out before the episode was transmitted.
24 April
Eric Richard makes his final appearance as Sergeant Bob Cryer in The Bill.
A little over a year after it began airing US soap Days of Our Lives, Channel 5 announces that the series will disappear from its schedules from the following day, an audience of 200,000 deemed not to be high enough for the timeslot in which it has been shown.
25 April – Carlton and Granada announce proposals to align their television and internet assets under the ITV banner. itv.co.uk will also relaunch as itv.com, allowing ITV to compete with the BBC for online users.
26 April – On the second anniversary of the murder of Jill Dando, the Jill Dando Institute, a teaching and research facility dedicated to crime science, is established at University College London.
27 April – Channel 4 game show Countdown celebrates its 3000th edition.
May
3 May – Kevin Lygo, head of music and entertainment at Channel 4, is to move to Channel 5 where he will become director of programming.
4 May – The BBC announces the closure of the loss-making BBC Experience.
7 May – The Guardian reports that BSkyB is planning to close its interactive shopping service Open after buying out the other partners in their parent company, British Interactive Broadcasting.
12 May – Tanel Padar, Dave Benton and 2XL win the 2001 Eurovision Song Contest for Estonia with the song Everybody.
14 May – Channel 4 confirms that Donna Air has left The Big Breakfast. The show will now be presented by Richard Bacon and Amanda Byram, alongside various guest hosts.
15 May
The online version of Who Wants to Be a Millionaire? has made the ITV website the 48th most popular in the UK according to Nielsen, with half a million visits during April.
The Smash Hits TV channel is launched.
16 May
BBC Two airs a special edition of TOTP2 featuring performances by Billy Joel.
Ask Tony Blair, an election debate chaired by Jonathan Dimbleby, is aired on ITV.
17 May
BBC One airs a Question Time election special from Newcastle with Liberal Democrat leader Charles Kennedy.
Channel 5 have signed an £18m deal with Columbia Tristar International which will see the channel premiere the studio's films from 2000, including Erin Brockovich.
20 May – ITV airs the final episode of the thirteenth series of London's Burning. This is the last series to be aired with a hiatus.
21 May – The UK version of Survivor debuts on ITV.
22 May – Actors from the Australian soap Home and Away will fly to the UK to record episodes in London to coincide with the show's return to British TV, it is confirmed. The series will make its Channel 5 debut on Monday 16 July.
23 May
BBC One airs a Question Time election special from Manchester with Conservative leader William Hague.
ITV airs Ask Charles Kennedy, an election debate chaired by Jonathan Dimbleby.
24 May – Letitia Dean returns to EastEnders as Sharon Watts, having last appeared in 1995.<ref>{{cite news|url=http://news.bbc.co.uk/1/hi/entertainment/1348913.stm|title=Letitia Dean back in ‘’EastEnders|work=BBC News|date=24 May 2001|access-date=22 September 2019}}</ref>
25 May – When singer Elton John pulls out of appearing on Have I Got News for You at the last minute, he is replaced by taxi driver Ray Johnson, credited as 'Ray Elton John Son' who works as a lookalike. However, Johnson is introduced to the audience as the genuine Elton John and keeps silent for the whole recording. On-screen captions between rounds provide the only clues to the deception.
30 May
BBC One airs a Question Time election special from Milton Keynes with Prime Minister and Labour Party leader Tony Blair.
ITV airs Ask William Hague, an election debate chaired by Jonathan Dimbleby.
June
7 June – Nestlé has signed a sponsorship with Carlton Cinema to sponsor the Heroes Season.
7–8 June – Coverage of the 2001 General Election is shown on television. The election sees the Labour Party attain a second successive General Election victory.
8 June – Tessa Jowell is appointed as Culture Secretary in a post-election Cabinet reshuffle, replacing Chris Smith.
9 June – ITV screens an edited version of The Dam Busters in which all references to Commander Guy Gibson's dog, Nigger have been removed, leading to criticism from the anti-censorship group Index on Censorship who argue the cuts were "unnecessary and ridiculous" as the dog is an important part of the story. It is the second time the film has been aired with the cuts, it having originally been shown by the network in December 1999. ITV attributes the cuts to a London Weekend Television employee who did not seek approval before editing the film.
11 June
British pop group Atomic Kitten will make a cameo appearance in Home and Away episodes to be filmed in London, it is confirmed. The storyline will feature Donald Fisher bringing his family to the UK.
Due to poor ratings, from this day weekly episodes of Survivor are reduced from two to one, airing on Mondays at 9pm.
19 June – Channel 4 announce plans to axe The Big Breakfast in early 2002, but signal their willingness to extend the series if suitable proposals to rework the programme are developed.
20 June – The Queen's Speech to the new session of parliament includes plans to legislate for the creation of Ofcom, a new media regulator to replace several existing authorities. The body is conceived as a "super-regulator" to oversee media channels that are rapidly converging through digital transmission and its introduction will see the largest shakeup in the British media since the Broadcasting Act 1990.
23 June – Late Night with Jerry Springer returns to Channel 5 for a ten-week run, with guests on the opening show including Hear'Say. Other guests to appear in this series include Emma Bunton, Atomic Kitten, Wyclef Jean, Clive James, Antony Worrall Thompson, Ron Atkinson, Sally Lindsay, Pat Cash and Victoria Beckham. The programme attracts some comment following a report about remarks made by Beckham about Geri Halliwell and Alex Ferguson in an interview recorded for the show's 24 August edition.
25 June – Interactive television makes its debut during coverage of the Wimbledon tennis tournament.
28 June – Wish You Were Here...? presenter Mary Nightingale announces she is stepping down from the role after two years to spend more time with her family.
29 June – S4C's Chwaraeon/Sport 2000 promotional video has won three silver awards in the "Best In-House Promo" at the world Promax Awards ceremony in Miami, Florida.
30 June – A power failure at the BBC Television Centre knocks out all BBC television broadcasts for around 20 minutes.
July
3 July – Rosa Baden-Powell wins the 2001 series of MasterChef.
4 July – Stanley Kubrick's controversial 1971 film A Clockwork Orange makes its British television debut through Sky Box Office.
9 July – The first episode of the popular sitcom The Office is broadcast on BBC Two, starring Ricky Gervais.
11 July – ONdigital is rebranded ITV Digital.
12 July – Richard Madeley and Judy Finnigan host their final edition of This Morning, 13 years after the show launched, having previously announced their intention to leave the series. They were approached by Channel 4 to host a similar show which will begin in the Autumn.
14 July – Emma Wilkinson, performing as Dusty Springfield wins the thirteenth series of Stars in Their Eyes.
16 July
Australian soap Home and Away makes its debut on Channel 5.
A one-minute news summary called 60 Seconds launches on BBC Choice.
21 July – ITV airs a one-off junior edition of Stars in Their Eyes. The episode is aired again in August 2002 as the first edition of an expanded junior series. The episode is won by Lewis Devine performing as Donny Osmond.
25 July – Charlotte Hobrough, a 25-year-old Detective Constable from Cardiff, wins the first UK series of Survivor and the show's £1million prize money.
26 July
Martin Kemp, who plays Steve Owen in EastEnders will leave the soap after signing a two-year contract with ITV, it is reported. He will depart from the series in March 2002 when his contract with the soap expires.
Channel 4 airs the controversial one-off special of the spoof documentary series Brass Eye which features celebrities endorsing a fake anti-paedophile campaign. The programme, presented by Chris Morris attracts more than 1,000 complaints to Channel 4 by the following day and a further 500 to the ITC. Both the ITC and Broadcasting Standards Commission launch investigations into the show. Despite the controversy caused by its broadcast, the episode is shown again in the early hours of 28 July, while Channel 4 defends its decision to show the programme, saying it makes a serious point about the media's sensational treatment of paedophilia.
27 July
London Weekend Television has been fined £100,000 by the Independent Television Commission for breaching rules on sponsorship and product placement in its series Club@vision which had charged nightclubs fees to be included in the programme.
The US series Will & Grace, the country's first primetime gay sitcom, makes its British television debut on Channel 4.
Brian Dowling, an air steward from Ireland, wins the second series of Big Brother.
S2 closes after two years on air. It is initially replaced by the ITV Sport Channel then later ITV2.
28 July – Former Spice Girl Melanie Brown makes her television presenting debut as the host of ITV's This is My Moment which returns for a full series. The programme performs poorly in the ratings and is axed in February 2002.
29 July – The BBC announce plans for The Saturday Show, a new Saturday morning entertainment programme to replace Live & Kicking. Dani Behr, former host of Channel 4's The Word and Joe Mace who presents the BBC's TOTP Plus are subsequently chosen as its presenters.
30 July – After watching the spoof Brass Eye documentary about paedophiles, Culture Secretary Tessa Jowell asks the Independent Television Commission to change its procedures so it can rule more swiftly on similar programmes in future.
31 July – The hit sitcom Small Potatoes returns to Channel 4 for a second series.
August
9 August – Lecturers at Teesside University have claimed that the raft of detective dramas on television has led to a surge of interest in a new course teaching forensic investigation and crime scene science offered by the university.
10 August – The BBC introduces a fourth weekly episode of EastEnders, to be broadcast on Fridays at 8pm. This causes some controversy as the first episode clashes with Coronation Street which has been moved to 8pm to make way for an hour-long episode of Emmerdale at 7pm. In this first head-to-head battle, EastEnders claims victory over its rival.
11 August – ITV in England and Wales changes its name to ITV1, due to the growing number of other ITV services, including ITV2, ITV Digital and the ITV Sport Channel which launches on the same day. The ITV1 name is used until 2013, but returns in 2022.
15 August
Unveiling its Autumn schedule, the BBC announces that the ten-part World War II drama, Band of Brothers will air on BBC Two, instead of BBC One as originally planned. The broadcaster says the decision to move the series is to allow "an uninterrupted 10-week run" and not because it was considered not to be mainstream enough.
Ruth England is named as the new presenter of Wish You Were Here...?, replacing Mary Nightingale.
16 August – Former model Twiggy Lawson and 70s pop singer Coleen Nolan are chosen to take over from Richard Madeley and Judy Finnigan as presenters of This Morning. They will host the show on a rotation basis with Fern Britton and John Leslie.
18 August
ITV1's The Premiership goes on air with much fanfare at 7pm. ITV had won the television rights to show FA Premier League highlights the previous year and had decided to air the show at a time when they thought that football fans and family alike could watch it together. A later edition of the show goes out at 11pm, providing extended highlights. The hugely controversial move proved unpopular with viewers and the following week ITV suffered their worst Saturday night ratings for five years. After two months, figures had not greatly improved and in October the early evening slot was deemed to have been a failure and was axed.
Debut of the ten-part BBC Two series I Love the '90s which examines the pop culture of the 1990s. The series begins with I Love 1990 and concludes on 3 November with I Love 1999.
19 August – ITV1 broadcasts Beech on the Run, a 90-minute special of The Bill filmed in Sydney, Australia and featuring the return of Don Beech (played by Billy Murray). The episode is a precursor to a full series featuring Beech and titled Beech is Back.
22 August – Pay-per-view service ONrequest rebrands as ITV Select.
24 August – A special edition of the BBC One garden makeover programme Ground Force sees Alan Titchmarsh, Charlie Dimmock and Tommy Walsh design and create a memorial garden for Jill Dando in her home town of Weston-super-Mare.
29 August – American illusionist David Blaine appears on GMTV where he is interviewed by presenter Eamonn Holmes, but refuses to speak and instead gives him the "evil eye". Holmes has subsequently cited this interview as the most awkward moment of his professional career.
30 August – ITV1 will reduce its number of weekly episodes of Crossroads from five to four, dropping its Friday episode from the week beginning 10 September. The move is to make way for a new interactive game show, The Biggest Game in Town which will air on Fridays and also be part of the channel's daily lunchtime schedule.
31 August – After a 5 year break, the hit sitcom Absolutely Fabulous returns for a full series on BBC One.
September
1 September – Northern Ireland air stewardess Ellie Barr wins the final edition of ITV1's This Is My Moment and a £135,000 prize, after impressing viewers with her rendition of Ralph McTell's Streets of London.
2 September – .tv, formerly The Computer Channel, closes down due to low ratings.
3 September
Kent and Sussex get their own news programme, BBC South East Today.
Twiggy Lawson and Coleen Nolan make their debut as replacements for Richard Madeley and Judy Finnigan as presenters of This Morning. Overnight viewing figures published the following day suggest the show had an audience of 1 million.
ITV1 debuts Soapstars, the broadcaster's latest reality series. It sees members of the public auditioning to become one of five new characters in Emmerdale.
5 September – The actors' union Equity criticises ITV1's Soapstars as demeaning to its members.
6 September
Stars from The Royle Family and Coronation Street help to launch Excuses Kill – Get a Smoke Alarm, a government campaign to fit smoke alarms.
The Independent Television Commission orders Channel 4 to broadcast an apology over the controversial special edition of satirical series Brass Eye that featured celebrities giving their backing to a spoof anti-paedophilia campaign and attracted a raft of complaints from viewers. The ITC rules that Channel 4 breached the guidelines by failing to give sufficient warning about the programme's nature and not doing enough to avoid causing "gratuitous offence". The ITC's findings are supported by the Broadcasting Standards Commission.
10 September
The BBC unveils more details of The Saturday Show which will compete with ITV1's SMTV Live by having a more grown-up feel to it.
During a recording of the ITV game show Who Wants to Be a Millionaire?, contestant Charles Ingram wins the £1,000,000 prize. However, the payout is later suspended when he is accused of cheating by having his wife, Diana and an accomplice, Tecwen Whittock, cough when host Chris Tarrant read out the correct answers.
11 September
Viewers around the world witness a terrorist attack on the United States and the collapse of the Twin Towers in New York City, live on television. Most broadcasters abandon regular programming to provide up to date coverage of unfolding events. ITV1's scheduled programmes are switched to ITV2 for the remainder of the day, while Channel 4 is later criticised for its slow response after it continues showing the day's afternoon film That Hamilton Woman for over an hour after other networks have been covering the terrorist attacks.
ITV rejects claims that Twiggy has been demoted as the main presenter of This Morning after reports television insiders had criticised her presenting style as wooden. She will now take turns with Coleen Nolan anchoring the show alongside John Leslie.
13 September – An edition of the political debate show Question Time devoted to the political implications of the 9/11 attacks, features many contributions from members of the audience expressing strong anti-American views. The BBC receives more than 2,000 complaints in the show's aftermath and later apologises to viewers for causing offence, stating that the edition should not have been broadcast live, but rather should have been recorded and edited.
14 September – A national memorial service held at St Paul's Cathedral for the victims of the 11 September terrorist attacks. The service is televised by all major television networks.
15 September – The BBC One Saturday morning magazine show Live & Kicking comes to an end after eight years. The final edition is presented by Sarah Cawood, Heather Suttie, Ortis Deley and Trey Farley.
17 September – Channel 4's The Big Breakfast is criticised by the Independent Television Commission after presenter Richard Bacon made jokes about Alzheimer's disease during a newspaper review of an article discussing a new vaccine against the illness.
21 September – BBC One and ITV are among broadcasters worldwide to air a live feed of America: A Tribute to Heroes, a two-hour telethon from the US to raise money for the victims of the 11 September terrorist attacks. The telethon features stars of film and music which is aired across 35 television networks in the US and over 200 countries worldwide. The event is repeated by BBC One on 23 September. The telethon raises $150m (£103m) which will be donated to the United Way's 11 September Fund.
22 September – Debut of The Saturday Show on BBC One, but with an audience of 800,000, the first edition fails to match the 1.9 million tuning into its ITV counterpart, SMTV Live.
24 September – The long-running Channel 4 game show Countdown starts its new 15-round format and 45-minute running time, its biggest change to its format since it first aired in 1982.
26 September – BBC Two airs a special edition of TOTP2, featuring a live concert from Elton John.
28 September – Granada Television's flagship nightly news programme Granada Tonight is rebranded to its original title Granada Reports.
29 September
Jason Hain, Dee Whitehead, Mark Jardine, Elspeth Brodie and Ruth Abram are announced as the winners of ITV1's Soapstars. They will play a new family in Emmerdale.
Former company director Robert Brydges became the third person ever to win £1 million on Who Wants to Be a Millionaire?. The edition including his win was recorded on 25 September and was broadcast on that day.
30 September – Twiggy Lawson is axed from This Morning because of falling ratings. ITV confirms on 2 October that she will not be seen on screen again, having presented her final show on 28 September.
October
1 October
BBC London is launched, replacing Newsroom South East.
Actors' union Equity denies reports in the Daily Star that its members have refused to work with the winners of ITV1's Soapstars.
Films such as A Bug's Life and Toy Story 2 will make their British television debut on the BBC after they signed a deal with Buena Vista International Television for the broadcast rights to several of its films.
2 October – With the following day's Channel 4 schedule including another showing of That Hamilton Woman, the film it was screening on the afternoon of 11 September, Mirror TV critic Jim Shelley uses his Shelley Vision column to criticise the channel's slow response to the 11 September terrorist attacks.
5 October
Tamzin Outhwaite bows out of EastEnders as Melanie Owen and will depart in April 2002.
The World War II epic Band of Brothers makes its UK television debut.
6 October
A Match of the Day special covering England's World Cup qualifier match against Greece is watched by 6.8 million viewers, gaining a 57.1% audience share and beating ITV1's Saturday afternoon lineup.
Challenge of a Lifetime debuts on ITV1.
The UK version of Pop Idol debuts on ITV1.
7 October – ITV1 airs Anybody's Nightmare, a dramatisation of the case of Sheila Bowler, a woman wrongly convicted of the murder of an aunt.
11 October – ITV's London Weekend Television says it is considering the future of one of its entertainers, Michael Barrymore after he was cautioned by police for possession of cannabis and allowing it to be smoked at his home. The caution follows an investigation into the death of a 31-year-old man at a party at Barrymore's property earlier in the year. The broadcaster announces on 20 November that a new series of My Kind of Music has been commissioned for early 2002. But following an inquest into the death which records an open verdict, ITV announces in September 2002 that it will not be commissioning any more programmes from him. The case is reopened in December 2006 and Barrymore is subsequently questioned about the incident along with two other men, but the Crown Prosecution Service advises in September 2007 that nobody should be charged over the death.
14 October – An advert on the back pages of several Sunday newspapers appeals for potential participants for a new BBC series titled The Experiment which will attempt to recreate the controversial Stanford prison experiment] of 1971, a psychological study that sought to study the effects of becoming a prisoner or prison guard on a group of students and which its creator had said should never be repeated because of the adverse effect on those who took part. In January 2002, it is reported that the project which had been due to last ten days, was finished early after the behaviour of those involved began to degenerate, a similar fate that befell the original experiment. However, psychologists say they have gathered a lot of useful data about the understanding of power and powerlessness.
30 October – Michael Barrymore speaks publicly for the first time about events preceding the death of a man at his home in an interview with journalist Martin Bashir for ITV1's Tonight with Trevor McDonald.
November
2 November – Jenny Richards, a young mother from Newport, Wales wins the first series of Channel 4's Model Behaviour. Her prize is a 12-month contract with Premier Model Management.
5 November
BBC 2W, a new digital channel for Wales, is launched.
Fern Britton returns to This Morning following her maternity leave and will alternate presenting it with John Leslie and Coleen Nolan. Her return leads to the programme's first increase in audience figures since the departure of Richard and Judy earlier in the year.
UK Food launches. Consequently, UK Style focusses on programming about the home.
6 November – Launch of ITV1's latest soap, Night and Day about the lives of six families living in a street in Greenwich. Three weekday episodes are aired on Tuesdays, Wednesdays and Thursdays, as well as a late night edited for adults version on Thursdays. The programme's theme tune, Always & Forever is sung by Kylie Minogue. The series is unusual for UK soaps in that it contains background music.
7 November – The soap family assembled by ITV1's reality series Soapstars make their debut in Emmerdale. Originally contracted to appear in the series for three months, their contract is extended by a further three months.
12 November
Figures released by the Independent Television Commission show a decline in the percentage of viewers watching ITV, down from 29.6% in 2000 to 28% in 2001. Audiences for BBC One and Channel 4 have also dropped, while BBC Two's audience share increased slightly.
The running time of ITV1's This Morning is reduced by 30 minutes, making it a 90-minute programme.
14 November
BBC Two announces that the current idents which have been in use since 1991 are to be axed and will be replaced by a new set of four computer generated idents on 19 November.
British terrestrial television premiere of the 1999 James Bond film The World Is Not Enough on ITV1, starring Pierce Brosnan, Sophie Marceau, Denise Richards and Robert Carlyle.
15 November – Debut of BBC One's Walking with Beasts, a six-part sequel to Walking with Dinosaurs that takes place after the extinction of the dinosaurs and recreates animals of the Cenozoic with computer-generated imagery and animatronics. The series concludes on 20 December.
16 November – The BBC's seven-hour Children in Need television fundraiser has so far raised nearly £13 million for charity.
17 November – From that day, The Premiership is moved from its original 7pm slot to a permanent later time of 10:30pm, with repeats shown early on Sunday mornings. The last 7pm show had aired the previous Saturday (10 November).
19 November
BBC Two introduces a new set of four computer generated idents at 7am, replacing the previous set of over 20, four of which dating back to 1991. ITV2 rebrands on the same day.
Helen O'Rahilly, a BBC producer and former Director of Television Production at RTÉ is appointed as the first Channels Executive for BBCi.
The BBC announces details of two forthcoming digital channels for children to be launched in Spring 2002. CBeebies will be aimed at preschool children, while CBBC will offer programming for a slightly older audience. The digital channels will have a budget of £40 million. The new channels would actually launch on 11 February 2002.
24 November – ITN reporter Andrea Catherwood is injured in the knee by shrapnel when a Taliban prisoner explodes a concealed grenade that kills himself and two other men close by. Catherwood was reporting from Mazari Sharif where she was watching captured Taliban prisoners disembarking from lorries.
26 November – Richard & Judy debuts on Channel 4.
27 November
The Independent Television Commission is investigating WHSmith's Christmas advertising campaign featuring a family of fat people from Newcastle upon Tyne after criticism and complaints that it is offensive to Geordies.
ITV dismisses media reports that its dilemma-based quiz show Shafted has been axed after three episodes. The programme, aired in the Monday night ITV1 schedule at 8:30pm is replaced by Who Wants to Be a Millionaire? because it was affecting audience figures for the drama Cold Feet which goes out afterwards, but an ITV spokeswoman says the show will return for an uninterrupted run in the channel's Winter schedule. The show did not return, however and in 2006 was included as one of the worst British television shows of the 2000s in the Penguin TV Companion.
29 November – ITV signs a £500,000 deal with Disneyland Paris for it to sponsor the broadcaster's New Year programming on 31 December and 1 January.
December
1 December
Ant & Dec present their final editions of SM:TV and CD:UK, having decided to leave the programmes to concentrate on developing their primetime television careers.
The Carlton channel Taste CFN closes after 5 years on the air.
8 December – The S Club 7 single "Don't Stop Movin'" is voted the 2001 Record of the Year by ITV viewers.
9 December
Footballer David Beckham is named as this year's BBC Sports Personality of the Year.
Chris Lintern wins the second series of The Mole.
12 December – BBC Director of Television Mark Thompson is named as the new Chief Executive of Channel 4, succeeding Michael Jackson in March 2002.
13 December – Lynette Lithgow, a 51-year-old former BBC newsreader, is found murdered with her mother and brother-in-law at the family home in Trinidad. Lester Pitman and Daniel Agard, the latter a relative of the family are subsequently charged and in July 2004 are sentenced to death by hanging after being convicted of the murders. A retrial is subsequently ordered for Agard, while Pitman's death sentence is later commuted to one of 40 years.
17 December
Former Culture Secretary Chris Smith has taken up a consultative role with Disney Television, his office confirms.
The original Top Gear airs for the last time. It is relaunched in its current format the following year.
Gullane Entertainment, the then-owners of Thomas the Tank Engine, Sooty and Art Attack, purchases a majority stake in the Welsh children's series Fireman Sam for £16 million from S4C International. The deal allowed for a new season of 26 episodes to be produced and a remaster of the first four series.
19 December – BSkyB has signed a deal with Channel 5 that will allow its breakfast show, Sky News Sunrise to be shown on the channel from 6am to 6:30am on weekdays and 7am to 8am at weekends. The programme will appear on Channel 5 from 7 January 2002 and will be the first time Sky News content has been seen on terrestrial television for a decade, the last time it was shown on terrestrial television was on the last few months of broadcasting of TV-am in 1992.
20 December – A joint venture between BSkyB and Princess Productions has been awarded the contract to produce a replacement breakfast programme for Channel 4 when The Big Breakfast is axed in March 2002.
22 December
Pop Idol contestant Rik Waller withdraws from the knockout stage of the competition because of a throat infection, having been allowed to sit out the previous week's show in the hope he would recover. His place is taken by Darius Danesh who was third in the same qualifying heat as Waller.
The pilot for Harry Hill's TV Burp is aired on ITV1. The first full series is shown from November next year.
23 December – BBC One airs the network television premiere of Notting Hill, starring Julia Roberts and Hugh Grant.
25 December – Only Fools and Horses returns for the first of three Christmas specials after previously ending in 1996 for the classic sitcom's 20th anniversary. The special, If They Could See Us Now gets 21.34 million viewers, the UK's highest rated show of the entire decade of 2000–2009. Other Christmas Day highlights on BBC One include Toy Story, the first part of a two-part dramatisation of Arthur Conan Doyle's The Lost World and Sliding Doors.
29 December – That evening's episode of Blind Date sees contestant Hannarle Davies from Essex propose to Mark Ackerell from Buckinghamshire after they fell in love on their date to Vienna, Austria.
31 December – Smallville makes its UK television debut on Channel 4.
Debuts
BBC
1 January
Gentlemen's Relish (2001)
Two Thousand Acres of Sky (2001–2003)
Fun at the Funeral Parlour (2001–2002)
3 January – Custer's Last Stand-up (2001)
5 January – El Nombre (2001–2003)
7 January – Rebel Heart (2001)
9 January – Judge John Deed (2001–2007)
10 January – In a Land of Plenty (2001)
13 January – I Love the '80s (2001)
16 January – Look and Read: Zzaap and the Word Master (2001)
20 January – Jet Set (2001–2007)
30 January – Congo (2001)
2 February
Adrian Mole: The Cappuccino Years (2001)
Office Gossip (2001)
4 February – Love in a Cold Climate (2001)
18 February – Best of Both Worlds (2001)
19 February – In Deep (2001–2003)
25 February – Attention Scum (2001)
26 February – Two Pints of Lager and a Packet of Crisps (2001–2011)
4 March – Are You Dave Gorman? (2001)
12 March – The Inspector Lynley Mysteries (2001–2008)
20 March – Happiness (2001–2003)
26 March
So What Now? (2001)
NCS: Manhunt (2001–2002)
6 April – Malcolm in the Middle (2000–2006)
14 April – Dog Eat Dog (2001–2002)
22 April – Murder in Mind (2001–2003)
24 April – The Savages (2001)
9 May – Residents (2001)
10 May – Perfect Strangers (2001)
26 May – Messiah (2001–2008)
4 June – Score (2001)
9 June – The Joy of Text (2001)
10 June – Speed (2001)
14 June – Nice Guy Eddie (2001–2002)
22 June – The Cazalets (2001)
24 June – World of Pub (2001)
1 July – Velvet Soup (2001–2003)
9 July – The Office (2001–2003)
10 July – Strumpet (2001)
16 July
60 Seconds (2001–2016)
Merseybeat (2001–2004)
22 July – Life as We Know It (2001)
2 August – Tales from Pleasure Beach (2001)
18 August – I Love the '90s (2001)
26 August – Victoria & Albert (2001)
28 August – Bedtime (2001–2003)
3 September
The Cramp Twins (2001–2005)
South East Today (2001–present)
What the Victorians Did for Us (2001)
4 September – Ultimate Book of Spells (2001–2002)
10 September – 'Orrible (2001)
12 September – The Blue Planet (2001)
16 September – Armadillo (2001)
22 September – The Saturday Show (2001–2005)
22 September — So Little Time (2001–2002)
24 September – Eureka TV (2001–2005)
26 September – Oscar Charlie (2001)
27 September – Hollywood 7 (2001)
30 September – Vacuuming Completely Nude in Paradise (2001)
1 October – BBC London News (2001–present)
5 October – Band of Brothers (2001)
8 October – Robot Wars Extreme (2001–2003)
10 October – Babyfather (2001–2002)
14 October – LA Pool Party (2001–2002)
15 October – Sweet Revenge (2001)
17 October – The Bench (2001–2002)
28 October
Invasion (2001)
Aaagh! It's the Mr. Hell Show! (2001–2002)
30 October – Linda Green (2001–2002)
2 November – Friday Night with Jonathan Ross (2001–2010)
6 November – Blood of the Vikings (2001)
7 November – Wild Africa (2001)
11 November – The Way We Live Now (2001)
12 November
The Kumars at No. 42 (2001–2006 BBC, 2014–present Sky)
Dr. Terrible's House of Horrible (2001)
Mr. Charity (2001)
15 November – Walking with Beasts (2001)
17 November – The Waiting Game (2001–2002)
29 November – What Not to Wear (2001–2007)
8 December – The Private Life of a Masterpiece (2001–2010)
9 December – I Was a Rat (2001)
25 December – The Lost World (2001)
28 December – Red Cap (2001, 2003–2004)
Unknown – Binka (2001)
ITV (Including ITV1 and ITV2)
3 January – Club Reps (2001–2004)
10 January – Popstars (2001)
21 March – The Hunt (2001)
22 April – High Stakes (2001)
12 May – Slap Bang with Ant & Dec (2001)
14 May – Sam's Game (2001)
21 May – Survivor (2001–2002)
27 May – The Glass (2002)
6 June – Real Crime (2001–present)
10 June – Tiny Planets (2001–2002)
1 July – Ky’s Bommerang (2001–2003)
5 August – Take Me (2001)
18 August
The Goal Rush (2001–2003)
The Premiership (2001–2004)
3 September – Cardcaptors 3 September – Soapstars (2001)
10 September
Bob & Rose (2001)
The Biggest Game in Town (2001)
The Sketch Show (2001–2003)
6 October – Pop Idol (2001–2003)
14 October
Hidden Treasure (2001)
2DTV (2001–2004)
15 October – Angelina Ballerina (2001–2006)
22 October – Back Home (2001)
28 October – My Uncle Silas (2001–2003)
5 November
Sooty (2001–2004)
Shafted (2001)
6 November – Night and Day (2001–2003)
19 November – 24Seven (2001–2002)
28 November – Weirdsister College (2001)
26 December – Micawber (2001)
Unknown – The Russian Bride (2001)
Channel 4
4 January – The 1940s House (2001)
12 January – Get Your Kit Off (UK Game Show) (2001)
14 January – Phoenix Nights (2001–2002)
15 January – The Hoobs (2001–2003)
18 January – The West Wing (1999–2006)
20 January – Popworld (2001–2007)
22 January – As If (2001–2004)
17 February – Pelswick (2000–2002)
21 February – Metrosexuality (2001)
9 March – Celebrity Big Brother (Channel 4 2001–2010, Channel 5 2011–present)
21 March – Teachers (2001–2004)
3 April – Will & Grace (1998–2006)
3 June – Men Only (2001)
30 August – The Armando Iannucci Shows (2001)
10 September – The Six Wives of Henry VIII (2001)
21 September – Model Behaviour (2001–2002)
25 September
Extinct (2001)
X-Fire (2001–2002)
1 October – Lost (2001)
5 November – Swallow (2001)
13 November – It's a Girl Thing (2001)
26 November – Richard & Judy (2001–2008)
31 December – Smallville (2001–2011)
Channel 5
12 January – The Mole (2001)
11 March – Touch the Truck (2001)
18 May – Greed (2001)
9 June – CSI: Crime Scene Investigation (2000–2015)
Sky
22 April – Do or Die (2001)
19 September – Now You See Her (2001)
20 October – Yu-Gi-Oh! (2001–2006)
Challenge TV
12 November – Stake Out (2001)
Play UK
6 October – The Mitchell and Webb Situation (2001)
E4
18 January – Banzai (2001–2003)
S4C
7 January – Arachnid (2001)
Cartoon Network UK
15 January – Mobile Suit Gundam Wing 5 February – Tenchi Muyo 4 May – Home Movies (1999–2004)
4 May – Sheep in the Big City (2000–2002)
3 September – The Cramp Twins (2001–2005)
3 September – X-Men: Evolution (2000–2004)
23 November – Samurai Jack (2001–2004)
Nickelodeon UK
8 January – As Told by Ginger (2000–2006)
30 April – Cardcaptors (2000–2002)
30 July – The Amanda Show (2001–2014)
1 October – Taina (2001–2002)
10 November – Pelswick (2000–2002)
Disney Channel UK
4 June – Lloyd In Space (2001–2004)
3 September – Lizzie McGuire (2001–2004)
Fox Kids UK
16 April – Jackie Chan Adventures (2001–2005)
3 September – Braceface (2001–2004)
3 September – Power Rangers: Time Force (2001)
3 November – Totally Spies! (2001–2008)
Channels
New channels
Defunct channels
Rebranded channels
Television shows
Changes of network affiliation
Returning this year after a break of one year or longer
2 January – The Flower Pot Men (1952–1958, 2001–2002)
22 January – ITV News at Ten (1967–1999, 2001–2004, 2008–present)
5 March – Crossroads (1964–1988, 2001–2003)
31 August – Absolutely Fabulous (1992–1996, 2001–2004, 2011–2012)
25 December – Only Fools and Horses (1981–1996, 2001–2003, 2014)
Continuing television shows
1920s
BBC Wimbledon (1927–present)
1930s
The Boat Race (1938–1939, 1946–2019)
1950s
Panorama (1953–present)
What the Papers Say (1956–2008)
Captain Pugwash (1957–1975, 1997–2002)
The Sky at Night (1957–present)
Blue Peter (1958–present)
Grandstand (1958–2007)
1960s
Coronation Street (1960–present)
Songs of Praise (1961–present)
Top of the Pops (1964–2006)
Match of the Day (1964–present)
Call My Bluff (1965–2005)
The Money Programme (1966–2010)
1970s
Emmerdale (1972–present)
Newsround (1972–present)
Last of the Summer Wine (1973–2010)
Wish You Were Here...? (1974–2003)
Arena (1975–present)
One Man and His Dog (1976–present)
Grange Hill (1978–2008)
Ski Sunday (1978–present)
Blankety Blank (1979–1990, 1997–2002)
Antiques Roadshow (1979–present)
Question Time (1979–present)
1980s
Children in Need (1980–present)
Timewatch (1982–present)
Brookside (1982–2003)
Countdown (1982–present)
James the Cat (1984–1992, 1998–2003)
The Bill (1984–2010)
Channel 4 Racing (1984–2016)
Thomas the Tank Engine & Friends (1984–present)
EastEnders (1985–present)
Comic Relief (1985–present)
Casualty (1986–present)
ChuckleVision (1987–2009)
London's Burning (1988–2002)
On the Record (1988–2002)
Fifteen to One (1988–2003, 2013–2019)
This Morning (1988–present)
1990s
Stars in Their Eyes (1990–2006)
Big Break (1991–2002)
Heartbeat (1992–2010)
999 (1992–2003)
The Big Breakfast (1992–2002)
Breakfast with Frost (1993–2005)
Wipeout (1994–2002)
Animal Hospital (1994–2004)
Room 101 (1994–2007, 2012–present)
Time Team (1994–2013)
The National Lottery Draws (1994–2017)
Top of the Pops 2 (1994–present)
Dalziel and Pascoe (1996–2007)
Teletubbies (1997–2002, 2007–2009, 2012, 2015–present)
Y Clwb Rygbi, Wales (1997–present)
Dream Team (1997–2007)
Family Affairs (1997–2005)
Midsomer Murders (1997–present)
Who Wants to Be a Millionaire? (1998–2014)
Bob the Builder (1998–present)
British Soap Awards (1999–2019, 2022–present
Holby City (1999–2022)
My Parents Are Aliens (1999–2006)
Small Potatoes (1999–2001)
Tweenies (1999–2002)
2000s
Doctors (2000–present)
Big Brother (2000–2018)
The Weakest Link (2000–2012, 2017–present)
The People Versus (2000–2002)
Time Gentlemen Please (2000–2002)
At Home with the Braithwaites (2000–2003)
Clocking Off (2000–2003)
Ending this year
It's a Knockout (1966–1982, 1999–2001)
Words and Pictures (1970–2001, 2006–2007)
Record Breakers (1972–2001)
The original Top Gear (1977–2001, 2002–present)
Right to Reply (1982–2001)
Blockbusters (1983–1993, 1994–1995, 1997, 2000–2001, 2012, 2019–present)
Surprise, Surprise (1984–2001, 2012–present)
Central Weekend (1986–2001)
Equinox (1986–2001)
Wheel of Fortune (1988–2001)
Dale's Supermarket Sweep (1993–2001, 2007)
Live & Kicking (1993–2001)
ZZZap! (1993–2001)
Numbertime (1993–2001)
Kavanagh QC (1995–2001)
Ballykissangel (1996–2001)
100% (1997–2001)
Teletubbies (1997–2001, 2007–2009, 2012, 2015–2018)
Don't Try This at Home (1998–2001)
The Moment of Truth (1998–2001)
ITV Nightly News (1999–2001)
See It Saw It (1999–2001)
Small Potatoes (1999–2001)
Castaway 2000 (2000–2001)
Without Motive (2000–2001)
So What Now? (2001)
Extinct (2001)
The original Shipwrecked'' (1999–2001, 2006–2009, 2011–2012, 2019–present)
Births
24 February – Ramona Marquez, actress
15 March – Ellie Leach, actress
9 July – Maisie Smith, actress and singer
16 December – Sebastian Croft, actor
Deaths
See also
2001 in British music
2001 in British radio
2001 in the United Kingdom
List of British films of 2001
References
External links
List of 2001 British television series at IMDb
|
```java
/*
* 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.
*/
package org.apache.beam.sdk.extensions.sql.impl.rel;
import java.util.Set;
import org.apache.beam.sdk.extensions.sql.BeamSqlSeekableTable;
import org.apache.beam.sdk.extensions.sql.impl.transform.BeamJoinTransforms;
import org.apache.beam.sdk.extensions.sql.impl.utils.CalciteUtils;
import org.apache.beam.sdk.schemas.Schema;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.PCollectionList;
import org.apache.beam.sdk.values.Row;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelOptCluster;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.plan.RelTraitSet;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelNode;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.CorrelationId;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Join;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.JoinRelType;
import org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode;
/**
* A {@code BeamJoinRel} which does Lookup Join
*
* <p>This Join Covers the case:
*
* <ul>
* <li>SeekableTable JOIN non SeekableTable
* </ul>
*
* <p>As Join is implemented as lookup, there are some constraints:
*
* <ul>
* <li>{@code FULL OUTER JOIN} is not supported.
* <li>If it's a {@code LEFT OUTER JOIN}, the non Seekable table should on the left side.
* <li>If it's a {@code RIGHT OUTER JOIN}, the non Seekable table should on the right side.
* </ul>
*
* <p>General constraints:
*
* <ul>
* <li>Only equi-join is supported.
* <li>CROSS JOIN is not supported.
* </ul>
*/
public class BeamSideInputLookupJoinRel extends BeamJoinRel {
public BeamSideInputLookupJoinRel(
RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
Set<CorrelationId> variablesSet,
JoinRelType joinType) {
super(cluster, traitSet, left, right, condition, variablesSet, joinType);
}
@Override
public PTransform<PCollectionList<Row>, PCollection<Row>> buildPTransform() {
// if one of the sides is Seekable & the other is non Seekable
// then do a sideInputLookup join.
// When doing a sideInputLookup join, the windowFn does not need to match.
// Only support INNER JOIN & LEFT OUTER JOIN where left side of the join must be
// non Seekable & RIGHT OUTER JOIN where right side of the join must be non Seekable
if (joinType == JoinRelType.FULL) {
throw new UnsupportedOperationException(
"FULL OUTER JOIN is not supported when join "
+ "a Seekable table with a non Seekable table.");
}
if ((joinType == JoinRelType.LEFT && seekableInputIndex().get() == 0)
|| (joinType == JoinRelType.RIGHT && seekableInputIndex().get() == 1)) {
throw new UnsupportedOperationException(
String.format("%s side of an OUTER JOIN must be a non Seekable table.", joinType.name()));
}
return new SideInputLookupJoin();
}
private class SideInputLookupJoin extends PTransform<PCollectionList<Row>, PCollection<Row>> {
@Override
public PCollection<Row> expand(PCollectionList<Row> pinput) {
Schema schema = CalciteUtils.toSchema(getRowType());
BeamRelNode seekableRel =
BeamSqlRelUtils.getBeamRelInput(getInput(seekableInputIndex().get()));
BeamRelNode nonSeekableRel =
BeamSqlRelUtils.getBeamRelInput(getInput(nonSeekableInputIndex().get()));
// Offset field references according to which table is on the left
int factColOffset =
nonSeekableInputIndex().get() == 0
? 0
: CalciteUtils.toSchema(seekableRel.getRowType()).getFieldCount();
int lkpColOffset =
seekableInputIndex().get() == 0
? 0
: CalciteUtils.toSchema(nonSeekableRel.getRowType()).getFieldCount();
// HACK: if the input is an immediate instance of a seekable IO, we can do lookups
// so we ignore the PCollection
BeamIOSourceRel seekableInput = (BeamIOSourceRel) seekableRel;
BeamSqlSeekableTable seekableTable = (BeamSqlSeekableTable) seekableInput.getBeamSqlTable();
// getPCollectionInputs() ensures that there is only one and it is the non-seekable input
PCollection<Row> nonSeekableInput = pinput.get(0);
return nonSeekableInput
.apply(
"join_as_lookup",
new BeamJoinTransforms.JoinAsLookup(
condition,
seekableTable,
CalciteUtils.toSchema(seekableInput.getRowType()),
schema,
factColOffset,
lkpColOffset))
.setRowSchema(schema);
}
}
@Override
public Join copy(
RelTraitSet traitSet,
RexNode conditionExpr,
RelNode left,
RelNode right,
JoinRelType joinType,
boolean semiJoinDone) {
return new BeamSideInputLookupJoinRel(
getCluster(), traitSet, left, right, conditionExpr, variablesSet, joinType);
}
}
```
|
```python
from dataclasses import dataclass, field
import logging
import pprint
from typing import (
Any,
Callable,
Collection,
Dict,
ItemsView,
KeysView,
List,
Optional,
Set,
Tuple,
Type,
Union,
ValuesView,
)
from ray.rllib.core.models.specs.typing import SpecType
from ray.rllib.core.rl_module.rl_module import RLModule, RLModuleSpec
from ray.rllib.policy.sample_batch import MultiAgentBatch
from ray.rllib.utils import force_list
from ray.rllib.utils.annotations import (
ExperimentalAPI,
override,
OverrideToImplementCustomLogic,
)
from ray.rllib.utils.checkpoints import Checkpointable
from ray.rllib.utils.deprecation import Deprecated
from ray.rllib.utils.serialization import serialize_type, deserialize_type
from ray.rllib.utils.typing import ModuleID, StateDict, T
from ray.util.annotations import PublicAPI
logger = logging.getLogger("ray.rllib")
@PublicAPI(stability="alpha")
class MultiRLModule(RLModule):
"""Base class for an RLModule that contains n sub-RLModules.
This class holds a mapping from ModuleID to underlying RLModules. It provides
a convenient way of accessing each individual module, as well as accessing all of
them with only one API call. Whether a given module is trainable is
determined by the caller of this class (not the instance of this class itself).
The extension of this class can include any arbitrary neural networks as part of
the MultiRLModule. For example, a MultiRLModule can include a shared encoder network
that is used by all the individual (single-agent) RLModules. It is up to the user
to decide how to implement this class.
The default implementation assumes the data communicated as input and output of
the APIs in this class are `MultiAgentBatch` types. The `MultiRLModule` simply
loops through each `module_id`, and runs the forward pass of the corresponding
`RLModule` object with the associated `SampleBatch` within the `MultiAgentBatch`.
It also assumes that the underlying RLModules do not share any parameters or
communication with one another. The behavior of modules with such advanced
communication would be undefined by default. To share parameters or communication
between the underlying RLModules, you should implement your own
`MultiRLModule` subclass.
"""
def __init__(self, config: Optional["MultiRLModuleConfig"] = None) -> None:
"""Initializes a MultiRLModule instance.
Args:
config: An optional MultiRLModuleConfig to use. If None, will use
`MultiRLModuleConfig()` as default config.
"""
super().__init__(config or MultiRLModuleConfig())
@override(RLModule)
def setup(self):
"""Sets up the underlying RLModules."""
self._rl_modules = {}
self.__check_module_configs(self.config.modules)
# Make sure all individual RLModules have the same framework OR framework=None.
framework = None
for module_id, module_spec in self.config.modules.items():
self._rl_modules[module_id] = module_spec.build()
if framework is None:
framework = self._rl_modules[module_id].framework
else:
assert self._rl_modules[module_id].framework in [None, framework]
self.framework = framework
@OverrideToImplementCustomLogic
@override(RLModule)
def get_initial_state(self) -> Any:
# TODO (sven): Replace by call to `self.foreach_module`, but only if this method
# supports returning dicts.
ret = {}
for module_id, module in self._rl_modules.items():
ret[module_id] = module.get_initial_state()
return ret
@OverrideToImplementCustomLogic
@override(RLModule)
def is_stateful(self) -> bool:
initial_state = self.get_initial_state()
assert isinstance(initial_state, dict), (
"The initial state of an RLModule must be a dict, but is "
f"{type(initial_state)} instead."
)
return bool(any(sa_init_state for sa_init_state in initial_state.values()))
@classmethod
def __check_module_configs(cls, module_configs: Dict[ModuleID, Any]):
"""Checks the module configs for validity.
The module_configs be a mapping from module_ids to RLModuleSpec
objects.
Args:
module_configs: The module configs to check.
Raises:
ValueError: If the module configs are invalid.
"""
for module_id, module_spec in module_configs.items():
if not isinstance(module_spec, RLModuleSpec):
raise ValueError(f"Module {module_id} is not a RLModuleSpec object.")
def items(self) -> ItemsView[ModuleID, RLModule]:
"""Returns a keys view over the module IDs in this MultiRLModule."""
return self._rl_modules.items()
def keys(self) -> KeysView[ModuleID]:
"""Returns a keys view over the module IDs in this MultiRLModule."""
return self._rl_modules.keys()
def values(self) -> ValuesView[ModuleID]:
"""Returns a keys view over the module IDs in this MultiRLModule."""
return self._rl_modules.values()
def __len__(self) -> int:
"""Returns the number of RLModules within this MultiRLModule."""
return len(self._rl_modules)
@override(RLModule)
def as_multi_rl_module(self) -> "MultiRLModule":
"""Returns self in order to match `RLModule.as_multi_rl_module()` behavior.
This method is overridden to avoid double wrapping.
Returns:
The instance itself.
"""
return self
def add_module(
self,
module_id: ModuleID,
module: RLModule,
*,
override: bool = False,
) -> None:
"""Adds a module at run time to the multi-agent module.
Args:
module_id: The module ID to add. If the module ID already exists and
override is False, an error is raised. If override is True, the module
is replaced.
module: The module to add.
override: Whether to override the module if it already exists.
Raises:
ValueError: If the module ID already exists and override is False.
Warnings are raised if the module id is not valid according to the
logic of ``validate_module_id()``.
"""
from ray.rllib.core.rl_module import validate_module_id
validate_module_id(module_id)
if module_id in self._rl_modules and not override:
raise ValueError(
f"Module ID {module_id} already exists. If your intention is to "
"override, set override=True."
)
# Set our own inference_only flag to False as soon as any added Module
# has `inference_only=False`.
if not module.config.inference_only:
self.config.inference_only = False
self._rl_modules[module_id] = module
# Update our `MultiRLModuleConfig`, such that - if written to disk -
# it'll allow for proper restoring this instance through `.from_checkpoint()`.
self.config.modules[module_id] = RLModuleSpec.from_module(module)
def remove_module(
self, module_id: ModuleID, *, raise_err_if_not_found: bool = True
) -> None:
"""Removes a module at run time from the multi-agent module.
Args:
module_id: The module ID to remove.
raise_err_if_not_found: Whether to raise an error if the module ID is not
found.
Raises:
ValueError: If the module ID does not exist and raise_err_if_not_found is
True.
"""
if raise_err_if_not_found:
self._check_module_exists(module_id)
del self._rl_modules[module_id]
del self.config.modules[module_id]
def foreach_module(
self, func: Callable[[ModuleID, RLModule, Optional[Any]], T], **kwargs
) -> List[T]:
"""Calls the given function with each (module_id, module).
Args:
func: The function to call with each (module_id, module) tuple.
Returns:
The lsit of return values of all calls to
`func([module_id, module, **kwargs])`.
"""
return [
func(module_id, module.unwrapped(), **kwargs)
for module_id, module in self._rl_modules.items()
]
def __contains__(self, item) -> bool:
"""Returns whether the given `item` (ModuleID) is present in self."""
return item in self._rl_modules
def __getitem__(self, module_id: ModuleID) -> RLModule:
"""Returns the RLModule with the given module ID.
Args:
module_id: The module ID to get.
Returns:
The RLModule with the given module ID.
Raises:
KeyError: If `module_id` cannot be found in self.
"""
self._check_module_exists(module_id)
return self._rl_modules[module_id]
def get(
self,
module_id: ModuleID,
default: Optional[RLModule] = None,
) -> Optional[RLModule]:
"""Returns the module with the given module ID or default if not found in self.
Args:
module_id: The module ID to get.
Returns:
The RLModule with the given module ID or `default` if `module_id` not found
in `self`.
"""
if module_id not in self._rl_modules:
return default
return self._rl_modules[module_id]
@override(RLModule)
def output_specs_train(self) -> SpecType:
return []
@override(RLModule)
def output_specs_inference(self) -> SpecType:
return []
@override(RLModule)
def output_specs_exploration(self) -> SpecType:
return []
@override(RLModule)
def _default_input_specs(self) -> SpecType:
"""MultiRLModule should not check the input specs.
The underlying single-agent RLModules will check the input specs.
"""
return []
@override(RLModule)
def _forward_train(
self, batch: MultiAgentBatch, **kwargs
) -> Union[Dict[str, Any], Dict[ModuleID, Dict[str, Any]]]:
"""Runs the forward_train pass.
TODO(avnishn, kourosh): Review type hints for forward methods.
Args:
batch: The batch of multi-agent data (i.e. mapping from module ids to
SampleBaches).
Returns:
The output of the forward_train pass the specified modules.
"""
return self._run_forward_pass("forward_train", batch, **kwargs)
@override(RLModule)
def _forward_inference(
self, batch: MultiAgentBatch, **kwargs
) -> Union[Dict[str, Any], Dict[ModuleID, Dict[str, Any]]]:
"""Runs the forward_inference pass.
TODO(avnishn, kourosh): Review type hints for forward methods.
Args:
batch: The batch of multi-agent data (i.e. mapping from module ids to
SampleBaches).
Returns:
The output of the forward_inference pass the specified modules.
"""
return self._run_forward_pass("forward_inference", batch, **kwargs)
@override(RLModule)
def _forward_exploration(
self, batch: MultiAgentBatch, **kwargs
) -> Union[Dict[str, Any], Dict[ModuleID, Dict[str, Any]]]:
"""Runs the forward_exploration pass.
TODO(avnishn, kourosh): Review type hints for forward methods.
Args:
batch: The batch of multi-agent data (i.e. mapping from module ids to
SampleBaches).
Returns:
The output of the forward_exploration pass the specified modules.
"""
return self._run_forward_pass("forward_exploration", batch, **kwargs)
@override(RLModule)
def get_state(
self,
components: Optional[Union[str, Collection[str]]] = None,
*,
not_components: Optional[Union[str, Collection[str]]] = None,
inference_only: bool = False,
**kwargs,
) -> StateDict:
state = {}
for module_id, rl_module in self.get_checkpointable_components():
if self._check_component(module_id, components, not_components):
state[module_id] = rl_module.get_state(
components=self._get_subcomponents(module_id, components),
not_components=self._get_subcomponents(module_id, not_components),
inference_only=inference_only,
)
return state
@override(RLModule)
def set_state(self, state: StateDict) -> None:
"""Sets the state of the multi-agent module.
It is assumed that the state_dict is a mapping from module IDs to the
corresponding module's state. This method sets the state of each module by
calling their set_state method. If you want to set the state of some of the
RLModules within this MultiRLModule your state_dict can only include the
state of those RLModules. Override this method to customize the state_dict for
custom more advanced multi-agent use cases.
Args:
state: The state dict to set.
"""
for module_id, module_state in state.items():
if module_id in self:
self._rl_modules[module_id].set_state(module_state)
@override(Checkpointable)
def get_checkpointable_components(self) -> List[Tuple[str, Checkpointable]]:
return list(self._rl_modules.items())
def __repr__(self) -> str:
return f"MARL({pprint.pformat(self._rl_modules)})"
def _run_forward_pass(
self,
forward_fn_name: str,
batch: Dict[ModuleID, Any],
**kwargs,
) -> Dict[ModuleID, Dict[ModuleID, Any]]:
"""This is a helper method that runs the forward pass for the given module.
It uses forward_fn_name to get the forward pass method from the RLModule
(e.g. forward_train vs. forward_exploration) and runs it on the given batch.
Args:
forward_fn_name: The name of the forward pass method to run.
batch: The batch of multi-agent data (i.e. mapping from module ids to
SampleBaches).
**kwargs: Additional keyword arguments to pass to the forward function.
Returns:
The output of the forward pass the specified modules. The output is a
mapping from module ID to the output of the forward pass.
"""
outputs = {}
for module_id in batch.keys():
self._check_module_exists(module_id)
rl_module = self._rl_modules[module_id]
forward_fn = getattr(rl_module, forward_fn_name)
outputs[module_id] = forward_fn(batch[module_id], **kwargs)
return outputs
def _check_module_exists(self, module_id: ModuleID) -> None:
if module_id not in self._rl_modules:
raise KeyError(
f"Module with module_id {module_id} not found. "
f"Available modules: {set(self.keys())}"
)
@PublicAPI(stability="alpha")
@dataclass
class MultiRLModuleSpec:
"""A utility spec class to make it constructing MultiRLModules easier.
Users can extend this class to modify the behavior of base class. For example to
share neural networks across the modules, the build method can be overriden to
create the shared module first and then pass it to custom module classes that would
then use it as a shared module.
Args:
multi_rl_module_class: The class of the MultiRLModule to construct. By
default it is set to MultiRLModule class. This class simply loops
throught each module and calls their foward methods.
module_specs: The module specs for each individual module. It can be either a
RLModuleSpec used for all module_ids or a dictionary mapping
from module IDs to RLModuleSpecs for each individual module.
load_state_path: The path to the module state to load from. NOTE: This must be
an absolute path. NOTE: If the load_state_path of this spec is set, and
the load_state_path of one of the RLModuleSpecs' is also set,
the weights of that RL Module will be loaded from the path specified in
the RLModuleSpec. This is useful if you want to load the weights
of a MultiRLModule and also manually load the weights of some of the RL
modules within that MultiRLModule from other checkpoints.
modules_to_load: A set of module ids to load from the checkpoint. This is
only used if load_state_path is set. If this is None, all modules are
loaded.
"""
multi_rl_module_class: Type[MultiRLModule] = MultiRLModule
inference_only: bool = False
# TODO (sven): Once we support MultiRLModules inside other MultiRLModules, we would
# need this flag in here as well, but for now, we'll leave it out for simplicity.
# learner_only: bool = False
module_specs: Union[RLModuleSpec, Dict[ModuleID, RLModuleSpec]] = None
load_state_path: Optional[str] = None
modules_to_load: Optional[Set[ModuleID]] = None
# To be deprecated (same as `multi_rl_module_class`).
marl_module_class: Type[MultiRLModule] = MultiRLModule
def __post_init__(self):
if self.module_specs is None:
raise ValueError(
"Module_specs cannot be None. It should be either a "
"RLModuleSpec or a dictionary mapping from module IDs to "
"RLModuleSpecs for each individual module."
)
def get_multi_rl_module_config(self) -> "MultiRLModuleConfig":
"""Returns the MultiRLModuleConfig for this spec."""
return MultiRLModuleConfig(
# Only set `inference_only=True` if all single-agent specs are
# `inference_only`.
inference_only=all(
spec.inference_only for spec in self.module_specs.values()
),
modules=self.module_specs,
)
@OverrideToImplementCustomLogic
def build(self, module_id: Optional[ModuleID] = None) -> RLModule:
"""Builds either the multi-agent module or the single-agent module.
If module_id is None, it builds the multi-agent module. Otherwise, it builds
the single-agent module with the given module_id.
Note: If when build is called the module_specs is not a dictionary, it will
raise an error, since it should have been updated by the caller to inform us
about the module_ids.
Args:
module_id: The module_id of the single-agent module to build. If None, it
builds the multi-agent module.
Returns:
The built module. If module_id is None, it returns the multi-agent module.
"""
self._check_before_build()
# ModuleID provided, return single-agent RLModule.
if module_id:
return self.module_specs[module_id].build()
# Return MultiRLModule.
module_config = self.get_multi_rl_module_config()
module = self.multi_rl_module_class(module_config)
return module
def add_modules(
self,
module_specs: Dict[ModuleID, RLModuleSpec],
override: bool = True,
) -> None:
"""Add new module specs to the spec or updates existing ones.
Args:
module_specs: The mapping for the module_id to the single-agent module
specs to be added to this multi-agent module spec.
override: Whether to override the existing module specs if they already
exist. If False, they are only updated.
"""
if self.module_specs is None:
self.module_specs = {}
for module_id, module_spec in module_specs.items():
if override or module_id not in self.module_specs:
# Disable our `inference_only` as soon as any single-agent module has
# `inference_only=False`.
if not module_spec.inference_only:
self.inference_only = False
self.module_specs[module_id] = module_spec
else:
self.module_specs[module_id].update(module_spec)
def remove_modules(self, module_ids: Union[ModuleID, Collection[ModuleID]]) -> None:
"""Removes the provided ModuleIDs from this MultiRLModuleSpec.
Args:
module_ids: Collection of the ModuleIDs to remove from this spec.
"""
for module_id in force_list(module_ids):
self.module_specs.pop(module_id, None)
@classmethod
def from_module(self, module: MultiRLModule) -> "MultiRLModuleSpec":
"""Creates a MultiRLModuleSpec from a MultiRLModule.
Args:
module: The MultiRLModule to create the spec from.
Returns:
The MultiRLModuleSpec.
"""
# we want to get the spec of the underlying unwrapped module that way we can
# easily reconstruct it. The only wrappers that we expect to support today are
# wrappers that allow us to do distributed training. Those will be added back
# by the learner if necessary.
module_specs = {
module_id: RLModuleSpec.from_module(rl_module.unwrapped())
for module_id, rl_module in module._rl_modules.items()
}
multi_rl_module_class = module.__class__
return MultiRLModuleSpec(
multi_rl_module_class=multi_rl_module_class,
inference_only=module.config.inference_only,
module_specs=module_specs,
)
def _check_before_build(self):
if not isinstance(self.module_specs, dict):
raise ValueError(
f"When build() is called on {self.__class__}, the module_specs "
"should be a dictionary mapping from module IDs to "
"RLModuleSpecs for each individual module."
)
def to_dict(self) -> Dict[str, Any]:
"""Converts the MultiRLModuleSpec to a dictionary."""
return {
"multi_rl_module_class": serialize_type(self.multi_rl_module_class),
"inference_only": self.inference_only,
"module_specs": {
module_id: module_spec.to_dict()
for module_id, module_spec in self.module_specs.items()
},
}
@classmethod
def from_dict(cls, d) -> "MultiRLModuleSpec":
"""Creates a MultiRLModuleSpec from a dictionary."""
return MultiRLModuleSpec(
multi_rl_module_class=deserialize_type(d["multi_rl_module_class"]),
inference_only=d["inference_only"],
module_specs={
module_id: RLModuleSpec.from_dict(module_spec)
for module_id, module_spec in d["module_specs"].items()
},
)
def update(
self,
other: Union["MultiRLModuleSpec", RLModuleSpec],
override: bool = False,
) -> None:
"""Updates this spec with the other spec.
Traverses this MultiRLModuleSpec's module_specs and updates them with
the module specs from the other MultiRLModuleSpec.
Args:
other: The other spec to update this spec with.
override: Whether to override the existing module specs if they already
exist. If False, they are only updated.
"""
if isinstance(other, RLModuleSpec):
# Disable our `inference_only` as soon as any single-agent module has
# `inference_only=False`.
if not other.inference_only:
self.inference_only = False
for mid, spec in self.module_specs.items():
self.module_specs[mid].update(other, override=False)
elif isinstance(other.module_specs, dict):
self.add_modules(other.module_specs, override=override)
else:
assert isinstance(other, MultiRLModuleSpec)
if not self.module_specs:
self.inference_only = other.inference_only
self.module_specs = other.module_specs
else:
if not other.inference_only:
self.inference_only = False
self.module_specs.update(other.module_specs)
def as_multi_rl_module_spec(self) -> "MultiRLModuleSpec":
"""Returns self in order to match `RLModuleSpec.as_multi_rl_module_spec()`."""
return self
def __contains__(self, item) -> bool:
"""Returns whether the given `item` (ModuleID) is present in self."""
return item in self.module_specs
def __getitem__(self, item) -> RLModuleSpec:
"""Returns the RLModuleSpec under the ModuleID."""
return self.module_specs[item]
@Deprecated(new="MultiRLModuleSpec.as_multi_rl_module_spec()", error=True)
def as_multi_agent(self):
pass
@Deprecated(new="MultiRLModuleSpec.get_multi_rl_module_config", error=True)
def get_marl_config(self, *args, **kwargs):
pass
# TODO (sven): Shouldn't we simply use this class inside MultiRLModuleSpec instead
# of duplicating all data records (e.g. `inference_only`) in `MultiRLModuleSpec`?
# Same for RLModuleSpec, which should use RLModuleConfig instead of
# duplicating all settings, e.g. `observation_space`, `inference_only`, ...
@ExperimentalAPI
@dataclass
class MultiRLModuleConfig:
inference_only: bool = False
modules: Dict[ModuleID, RLModuleSpec] = field(default_factory=dict)
def to_dict(self):
return {
"inference_only": self.inference_only,
"modules": {
module_id: module_spec.to_dict()
for module_id, module_spec in self.modules.items()
},
}
@classmethod
def from_dict(cls, d) -> "MultiRLModuleConfig":
return cls(
inference_only=d["inference_only"],
modules={
module_id: RLModuleSpec.from_dict(module_spec)
for module_id, module_spec in d["modules"].items()
},
)
```
|
```org
#+TITLE: org-mode
#+URL: path_to_url
#+AUTHOR: lujun9972
#+TAGS: org-mode
#+DATE: [2016-12-24 Sat 21:37]
#+LANGUAGE: zh-CN
#+OPTIONS: H:6 num:nil toc:t \n:nil ::t |:t ^:nil -:nil f:t *:t <:nil
org-mode,,, =C-c ^=. (,a,n).
,.
key,:
#+BEGIN_EXAMPLE
The range of lines is the range between the nearest horizontal separator
lines, or the entire table of no such lines exist.
#+END_EXAMPLE
```
|
```c++
// NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
#if defined(BOOST_PP_IS_ITERATING)
//
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
//
// See path_to_url for documentation.
// $Id$
// $Date$
// $Revision$
#include <boost/preprocessor/enum_params.hpp>
#include <boost/preprocessor/enum_shifted_params.hpp>
#include <boost/preprocessor/comma_if.hpp>
#include <boost/preprocessor/repeat.hpp>
#include <boost/preprocessor/dec.hpp>
#include <boost/preprocessor/cat.hpp>
#define i_ BOOST_PP_FRAME_ITERATION(1)
#if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
# define AUX778076_VECTOR_TAIL(vector, i_, T) \
BOOST_PP_CAT(vector,i_)< \
BOOST_PP_ENUM_PARAMS(i_, T) \
> \
/**/
#if i_ > 0
template<
BOOST_PP_ENUM_PARAMS(i_, typename T)
>
struct BOOST_PP_CAT(vector,i_)
: v_item<
BOOST_PP_CAT(T,BOOST_PP_DEC(i_))
, AUX778076_VECTOR_TAIL(vector,BOOST_PP_DEC(i_),T)
>
{
typedef BOOST_PP_CAT(vector,i_) type;
};
#endif
# undef AUX778076_VECTOR_TAIL
#else // "brute force" implementation
# if i_ > 0
template<
BOOST_PP_ENUM_PARAMS(i_, typename T)
>
struct BOOST_PP_CAT(vector,i_)
{
typedef aux::vector_tag<i_> tag;
typedef BOOST_PP_CAT(vector,i_) type;
# define AUX778076_VECTOR_ITEM(unused, i_, unused2) \
typedef BOOST_PP_CAT(T,i_) BOOST_PP_CAT(item,i_); \
/**/
BOOST_PP_REPEAT(i_, AUX778076_VECTOR_ITEM, unused)
# undef AUX778076_VECTOR_ITEM
typedef void_ BOOST_PP_CAT(item,i_);
typedef BOOST_PP_CAT(T,BOOST_PP_DEC(i_)) back;
// Borland forces us to use 'type' here (instead of the class name)
typedef v_iter<type,0> begin;
typedef v_iter<type,i_> end;
};
template<>
struct push_front_impl< aux::vector_tag<BOOST_PP_DEC(i_)> >
{
template< typename Vector, typename T > struct apply
{
typedef BOOST_PP_CAT(vector,i_)<
T
BOOST_PP_COMMA_IF(BOOST_PP_DEC(i_))
BOOST_PP_ENUM_PARAMS(BOOST_PP_DEC(i_), typename Vector::item)
> type;
};
};
template<>
struct pop_front_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
{
typedef BOOST_PP_CAT(vector,BOOST_PP_DEC(i_))<
BOOST_PP_ENUM_SHIFTED_PARAMS(i_, typename Vector::item)
> type;
};
};
template<>
struct push_back_impl< aux::vector_tag<BOOST_PP_DEC(i_)> >
{
template< typename Vector, typename T > struct apply
{
typedef BOOST_PP_CAT(vector,i_)<
BOOST_PP_ENUM_PARAMS(BOOST_PP_DEC(i_), typename Vector::item)
BOOST_PP_COMMA_IF(BOOST_PP_DEC(i_))
T
> type;
};
};
template<>
struct pop_back_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
{
typedef BOOST_PP_CAT(vector,BOOST_PP_DEC(i_))<
BOOST_PP_ENUM_PARAMS(BOOST_PP_DEC(i_), typename Vector::item)
> type;
};
};
# endif // i_ > 0
# if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
&& !defined(BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC)
template< typename V >
struct v_at<V,i_>
{
typedef typename V::BOOST_PP_CAT(item,i_) type;
};
# else
namespace aux {
template<> struct v_at_impl<i_>
{
template< typename V_ > struct result_
{
typedef typename V_::BOOST_PP_CAT(item,i_) type;
};
};
}
template<>
struct at_impl< aux::vector_tag<i_> >
{
template< typename V_, typename N > struct apply
{
typedef typename aux::v_at_impl<BOOST_MPL_AUX_VALUE_WKND(N)::value>
::template result_<V_>::type type;
};
};
#if i_ > 0
template<>
struct front_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
{
typedef typename Vector::item0 type;
};
};
template<>
struct back_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
{
typedef typename Vector::back type;
};
};
template<>
struct empty_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
: false_
{
};
};
#endif
template<>
struct size_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
: long_<i_>
{
};
};
template<>
struct O1_size_impl< aux::vector_tag<i_> >
: size_impl< aux::vector_tag<i_> >
{
};
template<>
struct clear_impl< aux::vector_tag<i_> >
{
template< typename Vector > struct apply
{
typedef vector0<> type;
};
};
# endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
#endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES
#undef i_
#endif // BOOST_PP_IS_ITERATING
```
|
This is Littleton is a 4-part sketch comedy series produced by High Wire Films which premiered in Australia on ABC2.
Overview
The series is set in and around Littleton City Council. Its staff and ratepayers navigate busking licence auditions, animal control officers convinced they are in the mob and Mayors with delusions of grandeur, while its municipal rooms-for-hire lure wildly inappropriate dance teachers, dubious self-improvement classes and harangued relationship counsellors.
The series was created by Amanda Brotchie and Nicole Minchin and directed by Amanda Brotchie. Executive Producers are Amanda Brotchie, Nicole Minchin and Adam Zwar. Head Writers are Amanda Brotchie, Karl Chandler, Tony Moclair, Dave O'Neil and Steen Raskopoulos.
The sketches are written and performed by Ronny Chieng, Matt Okine, Melinda Cklamovska, Tegan Higginbotham, Nathan Lovejoy, Miles O'Neil, Morgana O'Reilly, Stevo Petkovic, Steen Raskopoulos, Zachary Ruane, Vachel Spirason, Jackson Tozer and Adele Vuko. It premiered on 20 February 2014 and ended on 13 March 2014.
The debut episode rated 73,000 in the top 5 capital city markets.
See also
List of Australian television series
References
External links
Australian Broadcasting Corporation original programming
Australian satirical television shows
2014 Australian television series debuts
English-language television shows
Australian television sketch shows
|
```objective-c
/****************************************************************************
*
* psfixed.h
*
* Adobe's code for Fixed Point Mathematics (specification only).
*
*
* This software, and all works of authorship, whether in source or
* object code form as indicated by the copyright notice(s) included
* herein (collectively, the "Work") is made available, and may only be
* LICENSE.TXT. Additionally, subject to the terms and conditions of the
* to any individual or legal entity exercising permissions granted by
* "Your") a perpetual, worldwide, non-exclusive, no-charge,
* royalty-free, irrevocable (except as stated in this section) patent
* license to make, have made, use, offer to sell, sell, import, and
* otherwise transfer the Work, where such license applies only to those
* patent claims licensable by such contributor that are necessarily
* infringed by their contribution(s) alone or by combination of their
* contribution(s) with the Work to which such contribution(s) was
* submitted. If You institute patent litigation against any entity
* (including a cross-claim or counterclaim in a lawsuit) alleging that
* the Work or a contribution incorporated within the Work constitutes
* direct or contributory patent infringement, then any patent licenses
* the date such litigation is filed.
*
* By using, modifying, or distributing the Work you indicate that you
* have read and understood the terms and conditions of the
* and you accept them fully.
*
*/
#ifndef PSFIXED_H_
#define PSFIXED_H_
FT_BEGIN_HEADER
/* rasterizer integer and fixed point arithmetic must be 32-bit */
#define CF2_Fixed CF2_F16Dot16
typedef FT_Int32 CF2_Frac; /* 2.30 fixed point */
#define CF2_FIXED_MAX ( (CF2_Fixed)0x7FFFFFFFL )
#define CF2_FIXED_MIN ( (CF2_Fixed)0x80000000L )
#define CF2_FIXED_ONE ( (CF2_Fixed)0x10000L )
#define CF2_FIXED_EPSILON ( (CF2_Fixed)0x0001 )
/* in C 89, left and right shift of negative numbers is */
/* implementation specific behaviour in the general case */
#define cf2_intToFixed( i ) \
( (CF2_Fixed)( (FT_UInt32)(i) << 16 ) )
#define cf2_fixedToInt( x ) \
( (FT_Short)( ( (FT_UInt32)(x) + 0x8000U ) >> 16 ) )
#define cf2_fixedRound( x ) \
( (CF2_Fixed)( ( (FT_UInt32)(x) + 0x8000U ) & 0xFFFF0000UL ) )
#define cf2_doubleToFixed( f ) \
( (CF2_Fixed)( (f) * 65536.0 + 0.5 ) )
#define cf2_fixedAbs( x ) \
( (x) < 0 ? NEG_INT32( x ) : (x) )
#define cf2_fixedFloor( x ) \
( (CF2_Fixed)( (FT_UInt32)(x) & 0xFFFF0000UL ) )
#define cf2_fixedFraction( x ) \
( (x) - cf2_fixedFloor( x ) )
#define cf2_fracToFixed( x ) \
( (x) < 0 ? -( ( -(x) + 0x2000 ) >> 14 ) \
: ( ( (x) + 0x2000 ) >> 14 ) )
/* signed numeric types */
typedef enum CF2_NumberType_
{
CF2_NumberFixed, /* 16.16 */
CF2_NumberFrac, /* 2.30 */
CF2_NumberInt /* 32.0 */
} CF2_NumberType;
FT_END_HEADER
#endif /* PSFIXED_H_ */
/* END */
```
|
Alexander Vasilievich Stepanov (; August 26, 1908 – May 16, 1972) was a Soviet physicist and material scientist who pioneered the study of crystal deformation, the molecular structures of materials, studies on stress and breakage. He contributed to the development of composite materials. His technique for producing what are called shaped crystals was influential in the field of material studies and continues to be used, known as the "Stepanov method".
Life and work
Stepanov was born in St. Petersburg where his father was a building technician. He graduated from the Leningrad Polytechnic Institute in 1930. He worked at the laboratory of Ivan Obreimov at Leningrad, followed by Kharkiv, and still later at the lab of Abram Ioffe. He spent some time at the optics laboratory headed by V. K. Fredericks. In 1937 he worked at the Pokrovskii Pedagogical Institute at Leningrad. He worked on growing perfect crystals to examine their structures, and mechanical properties including elasticity, strength, anisotropy and other aspects of solids. He developed optical polarization approaches to examine stresses. He introduced the use of silver chloride as a model material for study. He attempted to extend his findings to develop a theory on fracture of materials including natural structures like wood and bones. He noted changes in thermal conductivity under shear stresses and connected melt heat and strain and in 1933 he noted the phenomenon of charge dislocation caused by plastic deformation of ionic crystals. In the 1940s he developed methods to produce monocrystal plates of zinc, aluminium and other metals. His methods have been used subsequently in the manufacture of semiconductor materials.
Stepanov developed a method for producing crystals by pulling shapes from melts, supposedly inspired by observations of water striders on the surface of water. He used plates with holes on the surface of metal melts to pull metal profiles with cross sections formed in the shapes of the holes. He believed that this would preserve crystal structure unlike methods involving rolling and extrusion. He attempted to get a Russian patent for this in 1940 and it was refused with claims that it was the same as Foucault's method for glass sheet pulling.
Stepanov was a keen sportsman, took part in alpine skiing, played tennis and was a referee at soccer. He died in Crimea while on a Spring holiday for water skiing.
References
External links
Brief biography (in Russian) with portrait
1908 births
1972 deaths
Soviet physicists
|
```go
// Unless explicitly stated otherwise all files in this repository are licensed
// This product includes software developed at Datadog (path_to_url
//go:build docker
package util
import (
"context"
"regexp"
"strconv"
"strings"
"time"
"github.com/DataDog/datadog-agent/comp/core/config"
workloadmeta "github.com/DataDog/datadog-agent/comp/core/workloadmeta/def"
"github.com/DataDog/datadog-agent/pkg/util/ecs/metadata/v3or4"
"github.com/DataDog/datadog-agent/pkg/util/flavor"
"github.com/DataDog/datadog-agent/pkg/util/log"
)
// TaskParser is a function that parses ECS tasks
type TaskParser func(ctx context.Context) ([]workloadmeta.CollectorEvent, error)
// IsTaskCollectionEnabled returns true if the task metadata collection is enabled for core agent
// If agent launch type is EC2, collector will query the latest ECS metadata endpoint for each task returned by v1/tasks
// If agent launch type is Fargate, collector will query the latest ECS metadata endpoint
func IsTaskCollectionEnabled(cfg config.Component) bool {
return cfg.GetBool("ecs_task_collection_enabled") && (flavor.GetFlavor() == flavor.DefaultAgent)
}
// ParseV4Task parses a metadata v4 task into a workloadmeta.ECSTask
func ParseV4Task(task v3or4.Task, seen map[workloadmeta.EntityID]struct{}) []workloadmeta.CollectorEvent {
events := []workloadmeta.CollectorEvent{}
entityID := workloadmeta.EntityID{
Kind: workloadmeta.KindECSTask,
ID: task.TaskARN,
}
seen[entityID] = struct{}{}
arnParts := strings.Split(task.TaskARN, "/")
taskID := arnParts[len(arnParts)-1]
taskContainers, containerEvents := ParseV4TaskContainers(task, seen)
region, awsAccountID := parseRegionAndAWSAccountID(task.TaskARN)
entity := &workloadmeta.ECSTask{
EntityID: entityID,
EntityMeta: workloadmeta.EntityMeta{
Name: taskID,
},
ClusterName: parseClusterName(task.ClusterName),
AWSAccountID: awsAccountID,
Region: region,
Family: task.Family,
Version: task.Version,
DesiredStatus: task.DesiredStatus,
KnownStatus: task.KnownStatus,
VPCID: task.VPCID,
ServiceName: task.ServiceName,
EphemeralStorageMetrics: task.EphemeralStorageMetrics,
Limits: task.Limits,
AvailabilityZone: task.AvailabilityZone,
Containers: taskContainers,
Tags: task.TaskTags,
ContainerInstanceTags: task.ContainerInstanceTags,
PullStartedAt: parseTime(taskID, "PullStartedAt", task.PullStartedAt),
PullStoppedAt: parseTime(taskID, "PullStoppedAt", task.PullStoppedAt),
ExecutionStoppedAt: parseTime(taskID, "ExecutionStoppedAt", task.ExecutionStoppedAt),
}
source := workloadmeta.SourceNodeOrchestrator
entity.LaunchType = workloadmeta.ECSLaunchTypeEC2
if strings.ToUpper(task.LaunchType) == "FARGATE" {
entity.LaunchType = workloadmeta.ECSLaunchTypeFargate
source = workloadmeta.SourceRuntime
}
events = append(events, containerEvents...)
events = append(events, workloadmeta.CollectorEvent{
Source: source,
Type: workloadmeta.EventTypeSet,
Entity: entity,
})
return events
}
// ParseV4TaskContainers extracts containers from a metadata v4 task and parse them
func ParseV4TaskContainers(
task v3or4.Task,
seen map[workloadmeta.EntityID]struct{},
) ([]workloadmeta.OrchestratorContainer, []workloadmeta.CollectorEvent) {
taskContainers := make([]workloadmeta.OrchestratorContainer, 0, len(task.Containers))
events := make([]workloadmeta.CollectorEvent, 0, len(task.Containers))
for _, container := range task.Containers {
containerID := container.DockerID
taskContainers = append(taskContainers, workloadmeta.OrchestratorContainer{
ID: containerID,
Name: container.Name,
})
entityID := workloadmeta.EntityID{
Kind: workloadmeta.KindContainer,
ID: containerID,
}
seen[entityID] = struct{}{}
image, err := workloadmeta.NewContainerImage(container.ImageID, container.Image)
if err != nil {
log.Debugf("cannot split image name %q: %s", container.Image, err)
}
ips := make(map[string]string)
for _, net := range container.Networks {
if net.NetworkMode == "awsvpc" && len(net.IPv4Addresses) > 0 {
ips["awsvpc"] = net.IPv4Addresses[0]
}
}
containerEvent := &workloadmeta.Container{
EntityID: entityID,
EntityMeta: workloadmeta.EntityMeta{
Name: container.DockerName,
Labels: container.Labels,
},
State: workloadmeta.ContainerState{
Running: container.KnownStatus == "RUNNING",
ExitCode: container.ExitCode,
},
Owner: &workloadmeta.EntityID{
Kind: workloadmeta.KindECSTask,
ID: task.TaskARN,
},
ECSContainer: &workloadmeta.ECSContainer{
DisplayName: container.Name,
Type: container.Type,
KnownStatus: container.KnownStatus,
DesiredStatus: container.DesiredStatus,
LogOptions: container.LogOptions,
LogDriver: container.LogDriver,
ContainerARN: container.ContainerARN,
Snapshotter: container.Snapshotter,
Networks: make([]workloadmeta.ContainerNetwork, 0, len(container.Networks)),
Volumes: make([]workloadmeta.ContainerVolume, 0, len(container.Volumes)),
},
Image: image,
NetworkIPs: ips,
Ports: make([]workloadmeta.ContainerPort, 0, len(container.Ports)),
}
containerEvent.Resources = workloadmeta.ContainerResources{}
if _, ok := container.Limits["CPU"]; ok {
cpuLimit := float64(container.Limits["CPU"])
containerEvent.Resources.CPULimit = &cpuLimit
}
if _, ok := container.Limits["Memory"]; ok {
memoryLimit := container.Limits["Memory"]
containerEvent.Resources.MemoryLimit = &memoryLimit
}
if container.StartedAt != "" {
containerEvent.State.StartedAt = *parseTime(containerID, "StartedAt", container.StartedAt)
}
if container.CreatedAt != "" {
containerEvent.State.CreatedAt = *parseTime(containerID, "CreatedAt", container.CreatedAt)
}
for _, network := range container.Networks {
containerEvent.Networks = append(containerEvent.Networks, workloadmeta.ContainerNetwork{
NetworkMode: network.NetworkMode,
IPv4Addresses: network.IPv4Addresses,
IPv6Addresses: network.IPv6Addresses,
})
}
for _, port := range container.Ports {
containerEvent.Ports = append(containerEvent.Ports, workloadmeta.ContainerPort{
Port: int(port.ContainerPort),
Protocol: port.Protocol,
HostPort: port.HostPort,
})
}
for _, volume := range container.Volumes {
containerEvent.Volumes = append(containerEvent.Volumes, workloadmeta.ContainerVolume{
Name: volume.DockerName,
Source: volume.Source,
Destination: volume.Destination,
})
}
if container.Health != nil {
containerEvent.Health = &workloadmeta.ContainerHealthStatus{
Status: container.Health.Status,
Since: parseTime(containerID, "Health.Since", container.Health.Since),
ExitCode: container.Health.ExitCode,
Output: container.Health.Output,
}
}
source := workloadmeta.SourceNodeOrchestrator
containerEvent.Runtime = workloadmeta.ContainerRuntimeDocker
if task.LaunchType == "FARGATE" {
source = workloadmeta.SourceRuntime
containerEvent.Runtime = workloadmeta.ContainerRuntimeECSFargate
}
events = append(events, workloadmeta.CollectorEvent{
Source: source,
Type: workloadmeta.EventTypeSet,
Entity: containerEvent,
})
}
return taskContainers, events
}
func parseTime(fieldOwner, fieldName, fieldValue string) *time.Time {
if fieldValue == "" {
return nil
}
result, err := time.Parse(time.RFC3339, fieldValue)
if err != nil {
log.Debugf("cannot parse %s %s for %s: %s", fieldName, fieldValue, fieldOwner, err)
}
return &result
}
// parseRegionAndAWSAccountID parses the region and AWS account ID from a task ARN.
func parseRegionAndAWSAccountID(taskARN string) (string, int) {
arnParts := strings.Split(taskARN, ":")
if len(arnParts) < 5 {
return "", 0
}
if arnParts[0] != "arn" || arnParts[1] != "aws" {
return "", 0
}
region := arnParts[3]
if strings.Count(region, "-") < 2 {
region = ""
}
id := arnParts[4]
// aws account id is 12 digits
// path_to_url
if len(id) != 12 {
return region, 0
}
awsAccountID, err := strconv.Atoi(id)
if err != nil {
return region, 0
}
return region, awsAccountID
}
func parseClusterName(cluster string) string {
parts := strings.Split(cluster, "/")
if len(parts) != 2 {
return cluster
}
return parts[1]
}
// ecsAgentRegexp is a regular expression to match ECS agent versions
// \d+(?:\.\d+){0,2} for versions like 1.32.0, 1.3 and 1
// (-\w+)? for optional pre-release tags like -beta
var ecsAgentVersionRegexp = regexp.MustCompile(`\bv(\d+(?:\.\d+){0,2}(?:-\w+)?)\b`)
// ParseECSAgentVersion parses the ECS agent version from the version string
// Instance metadata returns the version in the format `Amazon ECS Agent - v1.30.0 (02ff320c)`
func ParseECSAgentVersion(s string) string {
match := ecsAgentVersionRegexp.FindStringSubmatch(s)
if len(match) > 1 {
return match[1]
}
return ""
}
```
|
```swift
import ExpoModulesCore
internal class PictureInPictureUnsupportedException: Exception {
override var reason: String {
"Picture in picture is not supported on this device"
}
}
internal class DRMUnsupportedException: GenericException<DRMType> {
override var reason: String {
"DRMType: `\(param)` is unsupported on iOS"
}
}
internal class DRMLoadException: GenericException<String?> {
override var reason: String {
"Failed to decrypt the video stream: \(param ?? "unknown")"
}
}
internal class PlayerException: GenericException<String?> {
override var reason: String {
"Failed to initialise the player: \(param ?? "unknown")"
}
}
internal class PlayerItemLoadException: GenericException<String?> {
override var reason: String {
"Failed to load the player item: \(param ?? "unknown")"
}
}
```
|
Vidar Jusnes Vang (born 22 September 1976) is a Norwegian songwriter and musician. He has recorded eight albums.
Early life
Vidar Vang grew up in Bjerkvik, in Northern Norway. He started to write songs in his teens.
Musical career
In 1998, Vidar Vang released his unofficial debut album Blue, recorded in his hometown Bjerkvik. The album was sold at concerts throughout northern Norway.
In late 1999, Vang recorded his first demo with a band, at Hønsehuset Studio in Bodø. This demo gave him and his band the opportunity to play by:Larm in Bergen in 2000, and the Norwegian Wood festival in Oslo the following summer. In August 2000, Vang moved to Oslo. In 2001, after playing by:Larm in Tromsø, the Quart Festival and the main stage at Norwegian Wood, he got signed to EMI. Vidar Vang and his band went on their first Norwegian tour in late 2001, before they entered Juke Joint Studio at Notodden, together with producers Seasick Steve and Cato “Salsa” Thomassen to record his official debut album. In September 2002, Vang made his official recording debut releasing the album Rodeo. Rodeo received a Norwegian Grammy nomination the year after. The single "Under Six Strings" has become one of Vang’s signature songs.
In 2004, Vang released the follow-up to Rodeo, Stand Up Straight. Vang's band, childhood friends from Bjerkvik and Bodø, now had become The Northern Men. "Here It Is" was released as a single and received extensive radio play in the fall of 2004. The album songs "Happy", and the duet with Ingrid Olava "Highways of My Mind", were also released as singles. On the eponymous Vidar Vang (2006), Vang recorded his songs with a more acoustic sound than on previous albums. Vidar and The Northern Men went separate ways in 2005 and Vang subsequently recorded with other musicians. The single "Stand Up" is one of Vang’s most known and played songs. Before and after the release of Vidar Vang, Vang toured Norway and Sweden, and also supported The Waterboys and Madrugada on their European tours.
In 2010, Vang released his fifth album, Sleepless Songs, produced by Frode Jacobsen and Alexander Kloster-Jensen. Album singles were "10 Below" and the duet "Love, Love, Love" with Tift Merritt.
On Sidewalk Silhouettes (2012), Vang recorded 18 songs alone with his guitar, before him and his producer, Cato “Salsa” Thomassen, overdubbed them lightly with old, analog synthesizers, sparse drum machines and electric guitars. Starting with the 2015 album Vårres egen lille krig, he dropped English as the primary language and switched to his native Norwegian.
Discography
Albums
Blue (1999)
Rodeo (2002) (also on limited edition vinyl plus CD with five bonus tracks)
Stand Up Straight (2004)
Vidar Vang (2006)
Sleepless Songs (2010)
Sidewalk Silhouettes (2012)
Vårres egen lille krig (2015)
8530 Bjerkvik (2018)
EPs
Vidar Vang & friemann (2001)
Under Six Strings (2002)
References
External links
Vidar Vang official homepage
1976 births
Living people
Musicians from Narvik
Norwegian male singer-songwriters
Norwegian singer-songwriters
21st-century Norwegian singers
|
Paimpont (; ; Gallo: Penpont) is a commune in the Ille-et-Vilaine department in Brittany in northwestern France.
The name is a compound of Old Breton pen "head" and the Latin borrowing pont "bridge" and is first attested in the 9th century in the Latinised form Caput Pontis and then in 870 CE as Penpont. The town grew up around the , which was founded by the Breton king and Catholic saint Judicael in 645 CE on the shore of a small lake now known as the Étang de Paimpont.
Population
Inhabitants of Paimpont are called Paimpontais in French.
See also
Paimpont forest
Communes of the Ille-et-Vilaine department
References
External links
Official website Paimpont
Cultural Heritage
www.paimpont.org
Communes of Ille-et-Vilaine
|
Przewalsky's gecko (Phyllopezus przewalskii) is a species of gecko, a lizard in the family Phyllodactylidae. The species is endemic to South America.
Etymology
The specific name, przewalskii, is in honor of Russian naturalist Nikolay Przhevalsky.
Geographic range
P. przewalskii is found in Argentina, Bolivia, Brazil, and Paraguay.
Description
The holotype has the following measurements: total length ; head, ; body, ; tail, .
References
Further reading
Koslowsky J (1895). "Un nuevo geco de Matto Grosso ". Revista del Museo de la Plata 6: 371-373 + Plate I. (Phyllopezus przewalskii, new species). (in Spanish).
Phyllopezus
Reptiles of Brazil
Reptiles described in 1895
Taxa named by Julio Germán Koslowsky
|
```java
/*
* 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 org.apache.shardingsphere.authority.distsql.parser.core;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.distsql.parser.autogen.AuthorityDistSQLStatementParser;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.api.ASTNode;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
/**
* SQL parser for authority DistSQL.
*/
public final class AuthorityDistSQLParser extends AuthorityDistSQLStatementParser implements SQLParser {
public AuthorityDistSQLParser(final TokenStream input) {
super(input);
}
@Override
public ASTNode parse() {
return new ParseASTNode(execute(), (CommonTokenStream) getTokenStream());
}
}
```
|
Rogaia Mustafa Abusharaf is a Sudanese ethnographer and is Professor of Anthropology at Georgetown University in Qatar.
Biography
Abusharaf was born on 2 October 1961 in Sudan. Her parents Mustafa and Fatima were both teachers. In 1987 she married the academic Mohamed Hussein, they have two children. She was educated at Cairo University, where she was awarded a BA from the School of Social and Political Sciences. She studied at the University of Connecticut for both her MA and her PhD.
Research
Abusharaf's research focuses on the anthropology of gender, human rights and diaspora issues in Sudan, culture and politics. Migration whether inside Sudan, or externally in a major theme in her research and she has worked on Sudanese migration to North America. Her interest in Sudanese politics has led to a study of Abdel Khaliq Mahgoub, his role in the Sudanese Communist Party and his interpretation of Marxism.
She has published work on the lives of displaced women living in squatter settlements, as well as research on the migration of Sudanese women more generally. She has researched female circumcision in Africa, in particular foregrounding the experience of indigenous women's voices. She supports the need for "own voices" to be part of the critical discourse on FGM and includes other African feminist opinions in research. Her research in FGM has explored the role of colonialism in its expression. Her work on colonial Sudan includes work on Dr Ina Beasley, who was Controller of Girls' Education in the Anglo-Sudan, 1939-49.
Violence in the lives of women in Sudan is another area of Abusharaf's research, particularly within politics. This study has extended to research on how violence in Darfur is discussed within Sudan, Qatar and the United States. She has also written about the intersection of gender justice and religion in Sudan. She has worked on interpretations of feminism within the life of the radical Mona Abul-Fadl.
Abusharaf also researches relationships between Africa and the Gulf region. She has published the first research into migration to pre-oil Qatar, looking to the country's history pre-1930s.
She has previously been a visiting scholar in human rights at Harvard Law School. She is co-editor of HAWWA: Journal of Women of the Middle East and Islamic World.
References
Sudanese women anthropologists
1961 births
Living people
Harvard Law School alumni
University of Connecticut alumni
Ethnographers
|
The 2010 Cerveza Club Premium Open was a professional tennis tournament played on outdoor red clay courts. It was the sixteenth edition of the tournament which was part of the 2010 ATP Challenger Tour. It took place in Quito, Ecuador between 4 and 11 October 2010.
ATP entrants
Seeds
Rankings are as of September 27, 2010.
Other entrants
The following players received wildcards into the singles main draw:
Júlio César Campozano
Giovanni Lapentti
Roberto Quiroz
Walter Valarezo
The following players received entry from the qualifying draw:
Diego Álvarez
Tiago Lopes
Maciek Sykut
Daniel Yoo
Christopher Racz (Lucky loser replacing Bruno Rodríguez)
Champions
Singles
Giovanni Lapentti def. João Souza, 2–6, 6–3, 6–4
Doubles
Daniel Garza / Eric Nunez def. Alejandro González / Carlos Salamanca, 7–5, 6–4
References
Official website
ATP World Tour official website
ITF Search
Cerveza Club Premium Open
Cerveza Club Premium Open
Clay court tennis tournaments
Tennis tournaments in Ecuador
Cerveza Club Premium Open
|
CSU Aurel Vlaicu Arad is a Romanian semi-professional rugby union club from Arad, which plays in the 2018–2019 season of the Divizia Națională de Seniori, the second level of Romanian rugby.
Current squad
International honours
Roman Gobjila
Oliver Breffit
See also
Rugby union in Romania
External links
Divizia Națională de Seniori Squad Details
PlanetaOvala.ro - Romanian Rugby News
Rugby union teams in Romania
Rugby clubs established in 2001
|
Wellington Baroni (born April 1, 1989), is a Brazilian professional footballer who plays for PSTC in Brazil, as a defender.
References
1989 births
Living people
Brazilian men's footballers
Men's association football defenders
Paraná Clube players
Brazilian expatriate men's footballers
Expatriate men's footballers in Romania
Brazilian expatriate sportspeople in Romania
Club Atlético River Plate (Montevideo) players
Men's association football midfielders
Footballers from Curitiba
|
Episyrphus contax is a species of hoverfly, first described from Guadalcanal.
References
Syrphini
Insects described in 1947
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\Vault;
class MailCountResult extends \Google\Collection
{
protected $collection_key = 'nonQueryableAccounts';
protected $accountCountErrorsType = AccountCountError::class;
protected $accountCountErrorsDataType = 'array';
protected $accountCountsType = AccountCount::class;
protected $accountCountsDataType = 'array';
/**
* @var string
*/
public $matchingAccountsCount;
/**
* @var string[]
*/
public $nonQueryableAccounts;
/**
* @var string
*/
public $queriedAccountsCount;
/**
* @param AccountCountError[]
*/
public function setAccountCountErrors($accountCountErrors)
{
$this->accountCountErrors = $accountCountErrors;
}
/**
* @return AccountCountError[]
*/
public function getAccountCountErrors()
{
return $this->accountCountErrors;
}
/**
* @param AccountCount[]
*/
public function setAccountCounts($accountCounts)
{
$this->accountCounts = $accountCounts;
}
/**
* @return AccountCount[]
*/
public function getAccountCounts()
{
return $this->accountCounts;
}
/**
* @param string
*/
public function setMatchingAccountsCount($matchingAccountsCount)
{
$this->matchingAccountsCount = $matchingAccountsCount;
}
/**
* @return string
*/
public function getMatchingAccountsCount()
{
return $this->matchingAccountsCount;
}
/**
* @param string[]
*/
public function setNonQueryableAccounts($nonQueryableAccounts)
{
$this->nonQueryableAccounts = $nonQueryableAccounts;
}
/**
* @return string[]
*/
public function getNonQueryableAccounts()
{
return $this->nonQueryableAccounts;
}
/**
* @param string
*/
public function setQueriedAccountsCount($queriedAccountsCount)
{
$this->queriedAccountsCount = $queriedAccountsCount;
}
/**
* @return string
*/
public function getQueriedAccountsCount()
{
return $this->queriedAccountsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MailCountResult::class, 'Google_Service_Vault_MailCountResult');
```
|
```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.netflix.hollow.diff.ui.pages;
import com.netflix.hollow.core.read.engine.HollowTypeReadState;
import com.netflix.hollow.diff.ui.HollowDiffUI;
import com.netflix.hollow.diff.ui.model.HollowDiffOverviewTypeEntry;
import com.netflix.hollow.tools.diff.HollowTypeDiff;
import com.netflix.hollow.ui.HollowUISession;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.velocity.VelocityContext;
public class DiffOverviewPage extends DiffPage {
public DiffOverviewPage(HollowDiffUI diffUI) {
super(diffUI, "diff-overview.vm");
}
@Override
protected void setUpContext(HttpServletRequest req, HollowUISession session, VelocityContext ctx) {
String sortBy = param(req, session, "overview", "sortBy", "diffs");
ctx.put("typeOverviewEntries", getTypeEntries(sortBy));
}
private List<HollowDiffOverviewTypeEntry> getTypeEntries(String sortBy) {
List<HollowDiffOverviewTypeEntry> overviewEntries = new ArrayList<>();
for(HollowTypeDiff diff : getDiff().getTypeDiffs()) {
long totalDiffScore = diff.getTotalDiffScore();
int unmatchedInFrom = diff.getUnmatchedOrdinalsInFrom().size();
int unmatchedInTo = diff.getUnmatchedOrdinalsInTo().size();
int fromCount = 0;
try {
fromCount = diff.getTotalItemsInFromState();
} catch (Exception ex) {
System.out.println("DIFF_ERROR: Unable to getTotalItemsInFromState for type=" + diff.getTypeName());
ex.printStackTrace();
}
int toCount = 0;
try {
toCount = diff.getTotalItemsInToState();
} catch (Exception ex) {
System.out.println("DIFF_ERROR: Unable to getTotalItemsInToState for type=" + diff.getTypeName());
ex.printStackTrace();
}
HollowTypeReadState fromTypeState = diff.getFromTypeState();
HollowTypeReadState toTypeState = diff.getToTypeState();
overviewEntries.add(new HollowDiffOverviewTypeEntry(diff.getTypeName(), diff.hasMatchPaths(), totalDiffScore, unmatchedInFrom, unmatchedInTo, fromCount, toCount,
fromTypeState==null ? 0:fromTypeState.getApproximateHeapFootprintInBytes(), toTypeState==null ? 0:toTypeState.getApproximateHeapFootprintInBytes(),
fromTypeState==null ? 0:fromTypeState.getApproximateHoleCostInBytes(), toTypeState==null ? 0:toTypeState.getApproximateHoleCostInBytes()));
}
if(sortBy == null || "diffs".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> {
int result = Comparator
.comparing(HollowDiffOverviewTypeEntry::getTotalDiffScore)
.thenComparing(HollowDiffOverviewTypeEntry::getDeltaSize)
.thenComparing(HollowDiffOverviewTypeEntry::hasData)
.thenComparing(HollowDiffOverviewTypeEntry::hasUnmatched)
.thenComparing(HollowDiffOverviewTypeEntry::hasUniqueKey)
.compare(o2, o1);
// Fallback to Type Name Ordering
if (result==0) {
return o1.getTypeName().compareTo(o2.getTypeName());
}
return result;
});
} else if("unmatchedFrom".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> o2.getUnmatchedInFrom() - o1.getUnmatchedInFrom());
} else if("unmatchedTo".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> o2.getUnmatchedInTo() - o1.getUnmatchedInTo());
} else if("fromCount".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> o2.getTotalInFrom() - o1.getTotalInFrom());
} else if("toCount".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> o2.getTotalInTo() - o1.getTotalInTo());
} else if("fromHeap".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> (int) (o2.getHeapInFrom() - o1.getHeapInFrom()));
} else if("toHeap".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> (int) (o2.getHeapInTo() - o1.getHeapInTo()));
} else if("fromHole".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> (int) (o2.getHoleInFrom() - o1.getHoleInFrom()));
} else if("toHole".equals(sortBy)) {
overviewEntries.sort((o1, o2) -> (int) (o2.getHoleInTo() - o1.getHoleInTo()));
}
return overviewEntries;
}
}
```
|
```go
package logging
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
func TestFieldsInjectExtractFromContext(t *testing.T) {
c := context.Background()
f := ExtractFields(c)
require.Equal(t, Fields(nil), f)
f = f.AppendUnique([]any{"a", "1", "b", "2"})
require.Equal(t, Fields{"a", "1", "b", "2"}, f)
c2 := InjectFields(c, f)
// First context should be untouched.
f = ExtractFields(c)
require.Equal(t, Fields(nil), f)
f = ExtractFields(c2)
require.Equal(t, Fields{"a", "1", "b", "2"}, f)
f = Fields{"a", "changed"}.WithUnique(f)
require.Equal(t, Fields{"a", "changed", "b", "2"}, f)
c3 := InjectFields(c, f)
// Old contexts should be untouched.
f = ExtractFields(c)
require.Equal(t, Fields(nil), f)
f = ExtractFields(c2)
require.Equal(t, Fields{"a", "1", "b", "2"}, f)
f = ExtractFields(c3)
require.Equal(t, Fields{"a", "changed", "b", "2"}, f)
}
func TestFieldsDelete(t *testing.T) {
f := Fields{"a", "1", "b", "2"}
f.Delete("a")
require.Equal(t, Fields{"b", "2"}, f)
f.Delete("b")
require.Equal(t, Fields{}, f)
f.Delete("c")
require.Equal(t, Fields{}, f)
}
```
|
Lawrence Amos McLouth, A.B., LL.D. (1863–1927) was an American Germanic scholar, born at Ontonagon, Michigan He graduated from the University of Michigan in 1887, as a member of the Zeta Psi fraternity. He served as principal of the Danville, Illinois High School for three years, then proceeded to Europe for additional training, studying for two years at Leipzig, Heidelberg, and Munich. He returned to the University of Michigan as instructor in German. In 1895 he became professor of Germanic languages and literatures at New York University. He edited Huldrych Zwingli's sermons (1902) and some of the novels of Friedrich Gerstäcker (1904) and Paul Johann Ludwig von Heyse (1910). He published The Teaching of Foreign Literature (1903) and Verses (1910).
American book editors
American translators
1863 births
1927 deaths
University of Michigan alumni
University of Michigan faculty
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class template dynamic_local_time_adjustor</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp" title="Header <boost/date_time/local_time_adjustor.hpp>">
<link rel="prev" href="utc_adjustment.html" title="Class template utc_adjustment">
<link rel="next" href="static_local_time_adjustor.html" title="Class template static_local_time_adjustor">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="utc_adjustment.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="static_local_time_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.date_time.dynam_1_3_12_15_3_30_2_1_2"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template dynamic_local_time_adjustor</span></h2>
<p>boost::date_time::dynamic_local_time_adjustor — Allow sliding utc adjustment with fixed dst rules. </p>
</div>
<h2 xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp" title="Header <boost/date_time/local_time_adjustor.hpp>">boost/date_time/local_time_adjustor.hpp</a>>
</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> time_type<span class="special">,</span> <span class="keyword">typename</span> dst_rules<span class="special">></span>
<span class="keyword">class</span> <a class="link" href="dynam_1_3_12_15_3_30_2_1_2.html" title="Class template dynamic_local_time_adjustor">dynamic_local_time_adjustor</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">dst_rules</span> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
<span class="comment">// types</span>
<span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">time_duration_type</span> <a name="boost.date_time.dynam_1_3_12_15_3_30_2_1_2.time_duration_type"></a><span class="identifier">time_duration_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">date_type</span> <a name="boost.date_time.dynam_1_3_12_15_3_30_2_1_2.date_type"></a><span class="identifier">date_type</span><span class="special">;</span>
<span class="comment">// <a class="link" href="dynam_1_3_12_15_3_30_2_1_2.html#boost.date_time.dynam_1_3_12_15_3_30_2_1_2construct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="dynam_1_3_12_15_3_30_2_1_2.html#id-1_3_12_15_3_30_2_1_2_7-bb"><span class="identifier">dynamic_local_time_adjustor</span></a><span class="special">(</span><span class="identifier">time_duration_type</span><span class="special">)</span><span class="special">;</span>
<span class="comment">// <a class="link" href="dynam_1_3_12_15_3_30_2_1_2.html#id-1_3_12_15_3_30_2_1_2_6-bb">public member functions</a></span>
<span class="identifier">time_duration_type</span> <a class="link" href="dynam_1_3_12_15_3_30_2_1_2.html#id-1_3_12_15_3_30_2_1_2_6_1-bb"><span class="identifier">utc_offset</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.12.15.3.30.5.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.12.15.3.30.5.4.2"></a><h3>
<a name="boost.date_time.dynam_1_3_12_15_3_30_2_1_2construct-copy-destruct"></a><code class="computeroutput">dynamic_local_time_adjustor</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="id-1_3_12_15_3_30_2_1_2_7-bb"></a><span class="identifier">dynamic_local_time_adjustor</span><span class="special">(</span><span class="identifier">time_duration_type</span> utc_offset<span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.12.15.3.30.5.4.3"></a><h3>
<a name="id-1_3_12_15_3_30_2_1_2_6-bb"></a><code class="computeroutput">dynamic_local_time_adjustor</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="identifier">time_duration_type</span> <a name="id-1_3_12_15_3_30_2_1_2_6_1-bb"></a><span class="identifier">utc_offset</span><span class="special">(</span><span class="keyword">bool</span> is_dst<span class="special">)</span><span class="special">;</span></pre>Presumes local time. </li></ol></div>
</div>
</div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<code class="filename">LICENSE_1_0.txt</code> or copy at <a href="path_to_url" target="_top">path_to_url
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="utc_adjustment.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time_adjustor_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="static_local_time_adjustor.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```xml
export { default as SetRedirectPathMutation } from "./SetRedirectPathMutation";
export { default as ApproveCommentMutation } from "./ApproveCommentMutation";
export { default as RejectCommentMutation } from "./RejectCommentMutation";
```
|
```go
package xdr_test
import (
"database/sql"
"github.com/stellar/go/xdr"
. "github.com/stellar/go/xdr"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
)
var _ = Describe("sql.Scanner implementations", func() {
DescribeTable("AccountFlags",
func(in interface{}, val AccountFlags, shouldSucceed bool) {
var scanned AccountFlags
err := scanned.Scan(in)
if shouldSucceed {
Expect(err).To(BeNil())
} else {
Expect(err).ToNot(BeNil())
}
Expect(scanned).To(Equal(val))
},
Entry("zero", int64(0), AccountFlags(0), true),
Entry("required", int64(1), AccountFlags(1), true),
Entry("revokable", int64(2), AccountFlags(2), true),
Entry("immutable", int64(4), AccountFlags(4), true),
Entry("string", "0", AccountFlags(0), false),
)
DescribeTable("AssetType",
func(in interface{}, val AssetType, shouldSucceed bool) {
var scanned AssetType
err := scanned.Scan(in)
if shouldSucceed {
Expect(err).To(BeNil())
} else {
Expect(err).ToNot(BeNil())
}
Expect(scanned).To(Equal(val))
},
Entry("native", int64(0), AssetTypeAssetTypeNative, true),
Entry("credit alphanum4", int64(1), AssetTypeAssetTypeCreditAlphanum4, true),
Entry("credit alphanum12", int64(2), AssetTypeAssetTypeCreditAlphanum12, true),
Entry("string", "native", AssetTypeAssetTypeNative, false),
)
DescribeTable("Int64",
func(in interface{}, val Int64, shouldSucceed bool) {
var scanned Int64
err := scanned.Scan(in)
if shouldSucceed {
Expect(err).To(BeNil())
} else {
Expect(err).ToNot(BeNil())
}
Expect(scanned).To(Equal(val))
},
Entry("pos", int64(1), Int64(1), true),
Entry("neg", int64(-1), Int64(-1), true),
Entry("zero", int64(0), Int64(0), true),
Entry("string", "0", Int64(0), false),
)
DescribeTable("Thresholds",
func(in interface{}, val Thresholds, shouldSucceed bool) {
var scanned Thresholds
err := scanned.Scan(in)
if shouldSucceed {
Expect(err).To(BeNil())
} else {
Expect(err).ToNot(BeNil())
}
Expect(scanned).To(Equal(val))
},
Entry("default", "AQAAAA==", Thresholds{0x01, 0x00, 0x00, 0x00}, true),
Entry("non-default", "AgACAg==", Thresholds{0x02, 0x00, 0x02, 0x02}, true),
Entry("bytes", []byte("AQAAAA=="), Thresholds{0x01, 0x00, 0x00, 0x00}, true),
Entry("number", 0, Thresholds{}, false),
)
DescribeTable("ClaimPredicate",
func(in interface{}, val ClaimPredicate, shouldSucceed bool) {
var scanned ClaimPredicate
err := scanned.Scan(in)
if shouldSucceed {
Expect(err).To(BeNil())
} else {
Expect(err).ToNot(BeNil())
}
Expect(scanned).To(Equal(val))
},
Entry("default", "AAAAAA==", xdr.ClaimPredicate{
Type: xdr.ClaimPredicateTypeClaimPredicateUnconditional,
}, true),
)
DescribeTable("Scanning base64 strings (happy paths only)",
func(dest interface{}, in string) {
err := dest.(sql.Scanner).Scan(in)
Expect(err).To(BeNil())
},
Entry("ClaimablePredicate", &ClaimPredicate{},
"AAAAAA=="),
Entry("LedgerEntryChanges", &LedgerEntryChanges{},
"AAAAAgAAAAMAAAABAAAAAAAAAABi/your_sha256_hashAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAAAAAABi/B0L0JGythwN1lY0aypo19NHxvLCyO5tBEcCVvwF9w3gtrOnY/+cAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="),
Entry("LedgerHeader", &LedgerHeader{},
"AAAAAWPZj1Nu5o0bJ7W4nyOvUxG3Vpok+vFAOtC1K2M7B76ZlmEdOpVCM5HLr9FNj55qa6w2HKMtqTPFLvG8yPU/your_sha256_hashlDMwwqujKcyQzs97F/AETiCgQPrw63wqaPGOtj0VqejCRGn8A4KwJni7nqeau/0Ehh/your_sha256_hashyour_sha256_hashyour_sha256_hashAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),
Entry("ScpEnvelope", &ScpEnvelope{},
"AAAAAHrhN3GHEnrzTWJhFpClc59zx+BDb5xg65XqGyour_sha512_hash+your_sha512_hash+ya58L+Lv4KwYBeCxaibmjuqjlYL7EnIYORmAWVQPYHoviKOIidnB6JHfWXkZ+BQ=="),
Entry("ScpQuorumSet", &ScpQuorumSet{},
your_sha256_hash),
Entry("TransactionEnvelope", &TransactionEnvelope{},
"AAAAAGL8HQvQkbK2HA3WVjRrKmjX00fG8sLI7m0ERwJW/AX3AAAAZAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA5BFB2+Hs81DQkyour_sha512_hash6BR1M6SG/KVzTJSlIY8ovSVywuthk9dOW9jm23siTiIZE0IAl84wK83gnAcEK"),
Entry("TransactionMeta", &TransactionMeta{},
your_sha256_hashyour_sha256_hashyour_sha256_hash8sLI7m0ERwJW/your_sha256_hashAAA"),
Entry("TransactionResult", &TransactionResult{},
"AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA="),
)
})
```
|
```ruby
# frozen_string_literal: true
namespace :decidim do
namespace :mailers do
desc "Sends the notification digest email with the daily report"
task notifications_digest_daily: :environment do
notifications_digest(:daily)
end
desc "Sends the notification digest email with the weekly report"
task notifications_digest_weekly: :environment do
notifications_digest(:weekly)
end
end
def notifications_digest(frequency)
target_users = Decidim::User.where(notifications_sending_frequency: frequency)
time = Time.now.utc
target_users.find_each do |user|
Decidim::EmailNotificationsDigestGeneratorJob.perform_later(user.id, frequency, time:)
end
end
end
```
|
Rosenvinge is a surname, and may refer to:
Rosenvinge (noble family), a Danish and Norwegian noble family since 1505
Carina Rosenvinge Christiansen (born 1991), Danish archer
Christina Rosenvinge (born 1964), Spanish singer-songwriter
Janus Lauritz Andreas Kolderup-Rosenvinge (1792 – 1850), Danish jurist
Lauritz Kolderup Rosenvinge (1858–1939), Danish botanist and phycologist
Mette Rosenvinge (born 1942), Norwegian speed skater
|
```javascript
class MegaMobileNode extends MegaMobileComponent {
constructor(options) {
options.componentClassname = `mega-node ${options.componentClassname || ''}`;
options.nodeType = 'a';
super(options);
if (!options.nodeHandle) {
console.error('Node handle not given');
return;
}
if (!this.domNode) {
return;
}
const classNames = [];
Object.defineProperty(this, 'handle', {
value: options.nodeHandle,
writable: false
});
Object.defineProperty(this, 'node', {
value: M.getNodeByHandle(options.nodeHandle),
writable: false
});
if (!this.node) {
console.error(`No such node exist - ${this.handle}`);
return;
}
// Set lazy for previewable parameter
this.resetPreviewable();
classNames.push(this.node.t === 1 ? 'folder' : 'file');
if (this.versioned) {
classNames.push('versioned');
}
if (missingkeys[this.handle]) {
this.undecryptable = true;
classNames.push('undecryptable');
}
this.domNode.id = this.domNode.dataset.handle = this.node.h;
this.linked = M.getNodeShare(this.node.h);
let subNode = document.createElement('div');
subNode.className = 'mobile fm-item-img';
this.iconNode = document.createElement('i');
this.iconNode.className = this.icon;
subNode.appendChild(this.iconNode);
if (this.node.fa) {
this.thumbNode = document.createElement('img');
subNode.appendChild(this.thumbNode);
this.thumbNode.classList.add('theme-dark-forced');
}
this.domNode.appendChild(subNode);
subNode = document.createElement('div');
subNode.className = 'mobile fm-item-name';
subNode.textContent = this.name;
this.domNode.appendChild(subNode);
const props = document.createElement('div');
props.className = 'mobile props';
this.domNode.appendChild(props);
let numDetails = document.createElement('span');
if (M.currentdirid === 'out-shares') {
numDetails.className = 'shared-owner';
// Creating the public link for an item doesn't share it with a specific person,
// so exclude that key from the "shared with" count
const sharedWith = M.getNodeShareUsers(this.handle, 'EXP');
numDetails.textContent = mega.icu.format(l.shared_with, sharedWith.length);
props.appendChild(numDetails);
}
else if (this.node.t === 1) {
numDetails.className = 'mobile num-files';
numDetails.textContent = this.subNodeCount;
props.appendChild(numDetails);
}
else if (this.node.t === 0) {
numDetails = document.createElement('span');
numDetails.className = 'mobile file-size';
numDetails.textContent = `${this.size}, ${this.time}`;
props.appendChild(numDetails);
}
// label
subNode = document.createElement('i');
subNode.className = `mobile colour-label ${this.lbl}`;
props.appendChild(subNode);
// takedown-link
subNode = document.createElement('i');
subNode.className = 'mobile icon-takedown sprite-mobile-fm-mono icon-alert-triangle-thin-solid';
props.appendChild(subNode);
// link
subNode = document.createElement('i');
subNode.className = 'mobile icon-link sprite-mobile-fm-mono icon-link-thin-outline icon';
props.appendChild(subNode);
// show correct link icon
MegaMobileNode.updateLinkIcon(this);
// fav - show fav only if the file/folder is not taken down
if (!this.takedown && M.currentrootid !== 'shares') {
subNode = document.createElement('i');
subNode.className = 'mobile icon-favourite sprite-mobile-fm-mono icon-heart-thin-solid icon';
props.appendChild(subNode);
if (this.fav) {
this.domNode.classList.add('favourited');
}
}
this.domNode.classList.add('mobile', 'fm-item', ...classNames);
const btnNode = new MegaMobileButton({
type: 'icon',
parentNode: this.domNode,
icon: 'sprite-mobile-fm-mono icon-more-horizontal-thin-outline',
iconSize: 24,
componentClassname: 'context-btn open-context-menu text-icon'
});
btnNode.on('tap', () => {
mega.ui.contextMenu.show(this.handle);
return false;
});
this.on('tap', () => {
if (typeof options.onTap === 'function') {
options.onTap(this.node);
}
else if (this.node.t === 1) {
const target = M.currentCustomView ? `${M.currentrootid}/${this.handle}` : this.handle;
M.openFolder(target);
}
else {
if (!validateUserAction()) {
return false;
}
// Get the node handle and node
var isVideo = is_video(this.node);
if (!this.node || this.linked.down) {
if (this.node) {
mega.ui.contextMenu.show(this.handle);
}
return false;
}
// If this is an previewable but not text, load the preview slideshow
if (this.previewable && this.previewable !== 'text') {
if (isVideo) {
$.autoplay = this.handle;
}
slideshow(this.handle);
}
else {
// Non Pre-viewable file
mega.ui.viewerOverlay.show(this.handle);
}
}
return false;
});
}
// Previewable states cannot really change normally, hence using lazy
resetPreviewable() {
lazy(this, 'previewable', () => {
if (is_video(this.node)) {
return 'video';
}
else if (is_image2(this.node)) {
return 'image';
}
else if (is_text(this.node)) {
return 'text';
}
return false;
});
}
get size() {
return bytesToSize(this.node.t === 1 ? this.node.tb || 0 : this.node.s);
}
get subNodeCount() {
return fm_contains(this.node.tf, this.node.td);
}
get shared() {
return this.node.shares;
}
get name() {
if (this.undecryptable) {
return this.node.t ? l[8686] : l[8687];
}
return this.node.name;
}
get icon() {
return MegaMobileNode.mFileIcon(this.node);
}
get fileType() {
return this.takedown || this.undecryptable ? l[7381] : this.node.t === 1 ? l[1049] : filetype(this.node, 0, 1);
}
get lbl() {
return this.node.lbl && !folderlink && M.getLabelClassFromId(this.node.lbl) || '';
}
get fav() {
return this.node.fav && !folderlink;
}
get time() {
return M.currentCustomView.type === 'public-links' && this.linked ?
time2date(this.linked.ts) : time2date(this.node.mtime || this.node.ts);
}
get versioned() {
return !this.node.t && this.node.tvf;
}
get takedown() {
return this.linked && this.linked.down;
}
get rights() {
return M.getNodeRights(this.handle);
}
static updateLinkIcon(component) {
const {linked, domNode} = component;
const classname = linked ? linked.down ? 'taken-down' : 'linked' : '';
if (classname) {
domNode.classList.add(classname);
}
}
static mFileIcon(node) {
let icon = 'generic';
if (!this.takedown && !this.undecryptable) {
const media = is_video(node);
const fileExt = ext[fileext(node.name)];
if (node.t) {
return MegaMobileNode.mFolderIcon(node);
}
else if (fileExt && fileExt[0] !== 'mega') {
icon = fileExt[0] === 'threed' ? '3d' : fileExt[0];
}
else if (media > 0) {
icon = media > 1 ? 'audio' : 'video';
}
}
return `sprite-mobile-fm-uni mime-${icon}-solid`;
}
static mFolderIcon(node) {
let icon = 'folder';
// Outgoing share
if (node.t & M.IS_SHARED || M.ps[node.h] || M.getNodeShareUsers(node, 'EXP').length) {
icon = 'folder-outgoing';
}
// Incoming share
else if (node.su) {
icon = 'folder-incoming';
}
// File request folder
else if (
mega.fileRequestCommon.storage.cache.puHandle[node.h]
&& mega.fileRequestCommon.storage.cache.puHandle[node.h].s !== 1
&& mega.fileRequestCommon.storage.cache.puHandle[node.h].p
) {
icon = 'folder-request';
}
// Camera uploads
else if (node.h === M.CameraId) {
icon = 'folder-camera-uploads';
}
return `sprite-mobile-fm-uni mime-${icon}-solid`;
}
update(type) {
const _shouldUpdate = key => !type || type === key;
if (_shouldUpdate('name')) {
this.domNode.querySelector('.fm-item-name').textContent = this.name;
// Node name change may update previewable state
this.resetPreviewable();
}
if (_shouldUpdate('icon')) {
const iconNode = this.domNode.querySelector('.fm-item-img i');
const imgNode = iconNode.parentNode;
if (iconNode.className !== this.icon) {
// Rendering issue fix. File/folder blocks were not re-rendered when changing svg icon classname
iconNode.remove();
mCreateElement('i', {'class': this.icon}, imgNode);
}
}
if (_shouldUpdate('fav')) {
this.domNode.classList[this.fav ? 'add' : 'remove']('favourited');
}
if (_shouldUpdate('lbl')) {
this.domNode.classList.remove('colour-label', ...Object.keys(M.megaRender.labelsColors));
const lbl = this.lbl;
const lblElm = this.domNode.querySelector('.colour-label');
if (lblElm) {
lblElm.classList.remove(...Object.keys(M.megaRender.labelsColors));
if (lbl) {
lblElm.classList.add(lbl);
}
}
}
if (_shouldUpdate('time') && this.node.t === 0) {
this.domNode.querySelector('.date').textContent = this.time;
}
if (_shouldUpdate('linked')) {
this.linked = M.getNodeShare(this.handle);
this.domNode.classList.remove('taken-down', 'linked');
MegaMobileNode.updateLinkIcon(this);
}
if (_shouldUpdate('versioned')) {
this.domNode.classList[this.versioned ? 'add' : 'remove']('versioned');
}
if (_shouldUpdate('subNodeCount') && this.domNode.querySelector('.mobile.num-files')) {
this.domNode.querySelector('.mobile.num-files').textContent = this.subNodeCount;
}
}
}
MegaMobileNode.getNodeComponentByHandle = h => {
'use strict';
return M.megaRender && M.megaRender.nodeMap[h] && M.megaRender.nodeMap[h].component;
};
```
|
```less
@import '../../styles/common';
@import '../../Button/styles/index';
@import '../../Loader/styles/mixin';
@import 'mixin';
// Uploader
// ----------------------
.rs-uploader {
&-trigger {
input[type='file'] {
position: absolute !important;
clip: rect(1px 1px 1px 1px);
}
}
&-file-item-disabled {
opacity: 0.3;
cursor: not-allowed;
&:hover {
background-color: transparent !important;
}
.rs-uploader-picture & .rs-uploader-file-item-status {
cursor: not-allowed;
}
.rs-uploader-file-item-btn-remove {
display: none;
}
}
&-file-item-icon-reupload {
cursor: pointer;
margin-left: 10px;
color: var(--rs-text-primary);
font-size: 12px;
}
}
.rs-uploader-file-item {
&:hover &-title {
.high-contrast-mode({
color: var(--rs-uploader-item-hover-text);
text-decoration: underline;
});
}
}
.rs-uploader-text {
.rs-uploader-file-items {
margin-top: @uploader-file-list-margin-top;
}
.rs-uploader-file-item {
padding: @padding-y 30px @padding-y 36px;
position: relative;
transition: 0.3s linear background-color;
&:hover {
background-color: var(--rs-uploader-item-hover-bg);
}
&-icon-wrapper {
position: absolute;
display: inline-flex;
align-items: center;
top: @padding-y;
left: @padding-x;
width: @line-height-computed;
height: @line-height-computed;
justify-content: center;
}
&-icon-loading {
.rs-uploader-file-item-icon {
.set-side-length(@loader-default-diameter);
.loader-spin();
> svg {
display: none;
}
}
}
&-content {
display: flex;
justify-content: space-between;
color: var(--rs-text-primary);
transition: color 0.3s;
}
&-title {
.ellipsis();
flex: 1 1 auto;
}
&-size {
flex: 0 0 auto;
color: var(--rs-text-secondary);
padding: 0 @uploader-base-padding;
}
&-status {
flex: 0 0 auto;
> a {
.reset-link-text-decoration();
}
}
&-btn-remove {
position: absolute;
font-size: 14px;
top: 12px;
right: @padding-x;
color: var(--rs-text-secondary);
cursor: pointer;
padding: 0;
&:hover,
&:focus {
text-decoration: none;
}
}
&-panel {
position: relative;
}
&-progress {
position: absolute;
bottom: 0;
width: 100%;
left: 0;
&-bar {
height: 2px;
background-color: var(--rs-primary-500);
transition: width 0.3s ease-in-out;
}
}
}
.rs-uploader-file-item-has-error {
.rs-uploader-file-item-content,
.rs-uploader-file-item-title {
color: var(--rs-state-error);
}
}
}
.rs-uploader-picture {
display: inline-block;
.clearfix();
.rs-uploader-trigger-btn {
.rs-btn();
.rs-btn-subtle();
width: @uploader-picture-side-length;
height: @uploader-picture-side-length;
margin: 0;
padding: 0;
border: 2px dotted var(--rs-border-primary);
border-radius: @border-radius;
margin-top: @uploader-picture-item-gap;
}
.rs-uploader-trigger.rs-uploader-trigger-disabled .rs-uploader-trigger-btn {
color: var(--rs-btn-subtle-text) !important;
background-color: transparent !important;
&::after {
display: none;
}
}
.rs-uploader-trigger,
.rs-uploader-file-item {
float: left;
}
.rs-uploader-file-items {
display: inline;
}
.rs-uploader-file-item {
width: @uploader-picture-side-length;
height: @uploader-picture-side-length;
overflow: hidden;
background-color: var(--rs-uploader-item-bg);
border-radius: @border-radius;
position: relative;
margin-top: @uploader-picture-item-gap;
margin-right: @uploader-picture-item-gap;
&-preview {
position: relative;
height: @uploader-picture-side-length;
vertical-align: middle;
text-align: center;
z-index: @zindex-uploader-picture-preview;
> img {
.img-cover();
}
.rs-uploader-file-item-icon {
font-size: @uploader-file-item-icon-font-size;
margin: @uploader-file-item-icon-margin-plus;
}
}
&-status {
position: absolute;
top: 0;
left: 0;
width: @uploader-picture-side-length;
height: @uploader-picture-side-length;
text-align: center;
z-index: @zindex-uploader-picture-error-wrapper;
background-color: var(--rs-uploader-overlay-bg);
cursor: default;
color: var(--rs-state-error);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
> span {
white-space: nowrap;
}
> a:hover {
text-decoration: none;
}
}
&-icon-wrapper {
display: none;
}
&-btn-remove {
color: var(--rs-text-secondary);
cursor: pointer;
position: absolute;
top: 3px;
right: 3px;
width: @uploader-picture-remove-button-radius;
height: @uploader-picture-remove-button-radius;
line-height: @uploader-picture-remove-button-radius;
text-align: center;
background-color: var(--rs-uploader-overlay-bg);
border-radius: 50%;
visibility: hidden;
opacity: 0;
transition: 0.2s opacity;
z-index: @zindex-uploader-picture-remove-button;
display: flex;
align-items: center;
justify-content: center;
padding-top: 0;
&:hover,
&:focus {
text-decoration: none;
}
}
&:hover .rs-uploader-file-item-btn-remove {
opacity: 1;
visibility: visible;
}
&-icon-loading {
display: block;
width: @uploader-picture-side-length;
height: @uploader-picture-side-length;
line-height: @uploader-picture-side-length;
background-color: var(--rs-uploader-overlay-bg);
position: absolute;
top: 0;
left: 0;
z-index: @zindex-uploader-picture-loading-wrapper;
text-align: center;
.rs-uploader-file-item-icon {
.set-side-length(@loader-default-diameter);
.loader-spin();
display: inline-block;
position: relative;
> svg {
display: none;
}
}
}
}
// Reset margin-left.
.rs-uploader-file-item-icon-reupload {
margin-left: 0;
display: block;
}
}
.rs-uploader-picture-text {
.rs-uploader-file-item {
position: relative;
height: @uploader-picture-text-preview-side-length;
padding-left: @uploader-picture-text-preview-side-length;
margin-top: @uploader-picture-item-gap;
padding-right: 30px;
border: 1px solid var(--rs-border-primary);
border-radius: @border-radius;
overflow: hidden;
transition: 0.3s linear background-color;
&:hover {
background-color: var(--rs-uploader-item-hover-bg);
}
&-icon-wrapper {
display: none;
}
&-preview {
position: absolute;
left: 0;
top: 0;
width: @uploader-picture-text-preview-side-length;
height: @uploader-picture-text-preview-side-length;
vertical-align: middle;
text-align: center;
background-color: var(--rs-border-primary);
overflow: hidden;
border-radius: @border-radius 0 0 @border-radius;
> img {
.img-cover();
}
.rs-uploader-file-item-icon {
font-size: @uploader-file-item-icon-font-size;
margin: @uploader-file-item-icon-margin;
}
}
&-content {
padding: 5px 12px;
.rs-uploader-file-item-title,
.rs-uploader-file-item-size {
display: block;
}
.rs-uploader-file-item-title {
color: var(--rs-text-primary);
.ellipsis();
}
.rs-uploader-file-item-size {
color: var(--rs-text-secondary);
}
}
&-btn-remove {
position: absolute;
top: 0;
right: @padding-x;
color: var(--rs-text-secondary);
cursor: pointer;
height: @uploader-picture-text-preview-side-length;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
&:hover,
&:focus {
text-decoration: none;
}
}
&-progress {
position: absolute;
bottom: 0;
width: 100%;
left: 0;
padding-left: @uploader-picture-text-preview-side-length;
&-bar {
height: 2px;
background-color: var(--rs-primary-500);
transition: width 0.3s ease-in-out;
}
}
&-icon-loading {
position: absolute;
top: 0;
left: 0;
display: block;
width: @uploader-picture-text-preview-side-length;
height: @uploader-picture-text-preview-side-length;
z-index: 1;
background-color: var(--rs-border-primary);
text-align: center;
line-height: 50px;
.rs-uploader-file-item-icon {
.set-side-length(@loader-default-diameter);
.loader-spin();
display: inline-block;
position: relative;
> svg {
display: none;
}
}
}
}
.rs-uploader-file-item-has-error {
.rs-uploader-file-item-size {
display: none;
}
.rs-uploader-file-item-title,
.rs-uploader-file-item-status {
display: block;
color: var(--rs-state-error);
}
}
}
.rs-uploader-draggable {
.rs-uploader-trigger-customize .rs-uploader-trigger-btn {
display: block;
background: var(--rs-uploader-dnd-bg);
border: 1px dashed var(--rs-uploader-dnd-border);
}
.rs-uploader-trigger.rs-uploader-trigger-customize:not(.rs-uploader-trigger-disabled)
.rs-uploader-trigger-btn:hover,
.rs-uploader-trigger-drag-over .rs-uploader-trigger-btn.rs-uploader-trigger-customize {
border-color: var(--rs-uploader-dnd-hover-border);
}
.rs-uploader-trigger-disabled {
cursor: not-allowed;
}
.rs-uploader-trigger-disabled .rs-uploader-trigger-btn {
pointer-events: none;
}
}
```
|
```xml
<UserControl x:Class="TwitchLeecher.Gui.Views.PreferencesView"
xmlns="path_to_url"
xmlns:fa="path_to_url"
xmlns:x="path_to_url"
xmlns:enums="clr-namespace:TwitchLeecher.Core.Enums;assembly=TwitchLeecher.Core"
xmlns:ctrl="clr-namespace:TwitchLeecher.Gui.Controls"
xmlns:converters="clr-namespace:TwitchLeecher.Gui.Converters">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Theme/Constants.xaml" />
<ResourceDictionary Source="../Theme/Templates.xaml" />
<ResourceDictionary Source="../Theme/Styles.xaml" />
<ResourceDictionary Source="../Theme/Images.xaml" />
<ResourceDictionary>
<converters:VideoTypeToBooleanConverter x:Key="videoTypeToBooleanConverter" />
<converters:LoadLimitToBooleanConverter x:Key="loadLimitToBooleanConverter" />
<BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto">
<Grid VerticalAlignment="Center" Margin="20" HorizontalAlignment="Center" Grid.IsSharedSizeScope="True" Width="550">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Border Grid.Row="0" Margin="0, 0, 0, 10" Padding="0,0,0,5" BorderThickness="0,0,0,1">
<Border.BorderBrush>
<SolidColorBrush Color="{StaticResource Global.Theme.Color}" />
</Border.BorderBrush>
<TextBlock Text="Application" FontSize="21.333" FontWeight="Bold" />
</Border>
<Grid Grid.Row="1" Margin="15,0,0,0">
<Grid.RowDefinitions>
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="15" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<CheckBox Grid.Row="0" Grid.Column="0" Content="Check for Updates" IsChecked="{Binding CurrentPreferences.AppCheckForUpdates}" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="0" Grid.Column="2" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Check for Updates" />
<TextBlock TextAlignment="Justify">
You will automatically be informed if a new version
of Twitch Leecher is available for download.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<CheckBox Grid.Row="2" Grid.Column="0" Content="Show Donation Button" IsChecked="{Binding CurrentPreferences.AppShowDonationButton}" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="2" Grid.Column="2" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Show Donation Button" />
<TextBlock TextAlignment="Justify">
Show or hide the donation button ($) in the titlebar
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
</Grid>
<Border Grid.Row="2" Margin="0, 20, 0, 10" Padding="0,0,0,5" BorderThickness="0,0,0,1">
<Border.BorderBrush>
<SolidColorBrush Color="{StaticResource Global.Theme.Color}" />
</Border.BorderBrush>
<TextBlock Text="Search" FontSize="21.333" FontWeight="Bold" />
</Border>
<Grid Grid.Row="3" Margin="15,0,0,0">
<Grid.RowDefinitions>
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="g2" />
<ColumnDefinition Width="15" />
<ColumnDefinition />
<ColumnDefinition Width="15" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Favourite Channels" VerticalAlignment="Center" HorizontalAlignment="Right" />
<Grid Grid.Row="0" Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<ComboBox Grid.Column="0" IsEditable="True" Text="{Binding CurrentPreferences.SearchChannelName, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding CurrentPreferences.SearchFavouriteChannels}" VerticalAlignment="Center" />
<Button Grid.Column="2" Style="{StaticResource TlMiniButton}" Command="{Binding AddFavouriteChannelCommand}" Height="Auto">
<fa:ImageAwesome Icon="Plus" Width="11" Height="11" RenderTransformOrigin="0.5,0.5" />
</Button>
<Button Grid.Column="4" Style="{StaticResource TlMiniButton}" Command="{Binding RemoveFavouriteChannelCommand}" Height="Auto">
<fa:ImageAwesome Icon="Minus" Width="11" Height="11" RenderTransformOrigin="0.5,0.5" />
</Button>
</Grid>
<fa:ImageAwesome Grid.Row="0" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Favourite Channels" />
<TextBlock TextAlignment="Justify">
Specify a list of your favourite channels for the search dialog. The one selected here will be pre-selected in the search dialog. Use the +/- buttons in order to add/remove channels to/from the dropdown list.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Row="2" Grid.Column="0" Text="Video Type" VerticalAlignment="Center" HorizontalAlignment="Right" />
<StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal">
<RadioButton GroupName="VideoType" Content="Broadcast" IsChecked="{Binding CurrentPreferences.SearchVideoType, Converter={StaticResource videoTypeToBooleanConverter}, ConverterParameter={x:Static enums:VideoType.Broadcast}}" HorizontalAlignment="Left" VerticalAlignment="Center" />
<RadioButton GroupName="VideoType" Content="Highlight" IsChecked="{Binding CurrentPreferences.SearchVideoType, Converter={StaticResource videoTypeToBooleanConverter}, ConverterParameter={x:Static enums:VideoType.Highlight}}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0" />
<RadioButton GroupName="VideoType" Content="Upload" IsChecked="{Binding CurrentPreferences.SearchVideoType, Converter={StaticResource videoTypeToBooleanConverter}, ConverterParameter={x:Static enums:VideoType.Upload}}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0" />
</StackPanel>
<fa:ImageAwesome Grid.Row="2" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Video Type" />
<TextBlock TextAlignment="Justify">
Specify a default video type to use in the search dialog.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Row="4" Grid.Column="0" Text="Load Limit" VerticalAlignment="Center" HorizontalAlignment="Right" />
<StackPanel Grid.Row="4" Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
<RadioButton GroupName="LoadLimit" Content="Last" IsChecked="{Binding CurrentPreferences.SearchLoadLimitType, Converter={StaticResource loadLimitToBooleanConverter}, ConverterParameter={x:Static enums:LoadLimitType.Timespan}}" HorizontalAlignment="Left" />
<ctrl:TlIntegerUpDown Minimum="1" Maximum="999" Width="60" IsEnabled="{Binding CurrentPreferences.SearchLoadLimitType, Converter={StaticResource loadLimitToBooleanConverter}, ConverterParameter={x:Static enums:LoadLimitType.Timespan}}" Value="{Binding CurrentPreferences.SearchLoadLastDays}" Margin="5,0,0,0" HorizontalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" />
<TextBlock Text="days" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" />
</StackPanel>
<fa:ImageAwesome Grid.Row="4" Grid.Column="4" Style="{StaticResource Img_Help}" VerticalAlignment="Center">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Load Limit" />
<TextBlock TextAlignment="Justify">
Specify a default video load limit to use in the search dialog.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
<RadioButton GroupName="LoadLimit" Content="Last" IsChecked="{Binding CurrentPreferences.SearchLoadLimitType, Converter={StaticResource loadLimitToBooleanConverter}, ConverterParameter={x:Static enums:LoadLimitType.LastVods}}" HorizontalAlignment="Left" />
<ctrl:TlIntegerUpDown Minimum="1" Maximum="999" Width="60" IsEnabled="{Binding CurrentPreferences.SearchLoadLimitType, Converter={StaticResource loadLimitToBooleanConverter}, ConverterParameter={x:Static enums:LoadLimitType.LastVods}}" Value="{Binding CurrentPreferences.SearchLoadLastVods}" Margin="5,0,0,0" HorizontalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" />
<TextBlock Text="VODs" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" />
</StackPanel>
<RadioButton Grid.Row="8" Grid.Column="2" GroupName="LoadLimit" Content="Only today" IsChecked="{Binding CurrentPreferences.SearchLoadLimitType, Converter={StaticResource loadLimitToBooleanConverter}, ConverterParameter={x:Static enums:LoadLimitType.OnlyToday}}" VerticalAlignment="Center" HorizontalAlignment="Left" />
<CheckBox Grid.Row="10" Grid.Column="2" IsChecked="{Binding CurrentPreferences.SearchOnStartup}" Content="Search on Start" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="12" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Search on Start" />
<TextBlock TextAlignment="Justify">
If enabled, Twitch Leecher performs a search with the above settings on application startup.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
</Grid>
<Border Grid.Row="4" Margin="0, 20, 0, 10" Padding="0,0,0,5" BorderThickness="0,0,0,1">
<Border.BorderBrush>
<SolidColorBrush Color="{StaticResource Global.Theme.Color}" />
</Border.BorderBrush>
<TextBlock Text="Download" FontSize="21.333" FontWeight="Bold" />
</Border>
<Grid Grid.Row="5" Margin="15,0,0,0">
<Grid.RowDefinitions>
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="g2" />
<ColumnDefinition Width="15" />
<ColumnDefinition />
<ColumnDefinition Width="15" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" Text="Temporary Folder" VerticalAlignment="Center" HorizontalAlignment="Right" />
<Grid Grid.Column="2" Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Grid.Row="0" Text="{Binding CurrentPreferences.DownloadTempFolder, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="True" />
<Button Style="{StaticResource TlMiniButton}" Command="{Binding ChooseDownloadTempFolderCommand}" Grid.Column="2" Grid.Row="0" Content="..." Height="Auto" />
</Grid>
<fa:ImageAwesome Grid.Row="0" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Temporary Folder" />
<TextBlock TextAlignment="Justify">
Specify a temporary download folder. This folder will be used to store temporary files during the download process. You need write permissions on this folder.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Column="0" Grid.Row="2" Text="Download Folder" VerticalAlignment="Center" HorizontalAlignment="Right" />
<Grid Grid.Column="2" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Grid.Row="0" Text="{Binding CurrentPreferences.DownloadFolder, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="True" />
<Button Style="{StaticResource TlMiniButton}" Command="{Binding ChooseDownloadFolderCommand}" Grid.Column="2" Grid.Row="0" Content="..." Height="Auto" />
</Grid>
<fa:ImageAwesome Grid.Row="2" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Download Folder" />
<TextBlock TextAlignment="Justify">
Specify a default download folder to use in the download dialog. You need write permissions on this folder.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Row="4" Grid.Column="0" Text="Filename Template" VerticalAlignment="Center" />
<TextBox Grid.Row="4" Grid.Column="2" Text="{Binding CurrentPreferences.DownloadFileName, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" />
<fa:ImageAwesome Grid.Row="4" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="415">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Filename Template" />
<TextBlock TextAlignment="Justify">
Specify a default filename template for your downloads.
</TextBlock>
<Grid Margin="0,5,0,0">
<Grid.RowDefinitions>
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
<RowDefinition Height="5" />
<RowDefinition SharedSizeGroup="r2" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="15" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="15" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Wildcard" FontWeight="Bold" />
<TextBlock Grid.Row="0" Grid.Column="2" Text="Description" FontWeight="Bold" />
<TextBlock Grid.Row="0" Grid.Column="4" Text="Example" FontWeight="Bold" />
<TextBlock Grid.Row="2" Grid.Column="0" Text="{}{id}" />
<TextBlock Grid.Row="2" Grid.Column="2" Text="Twitch Video ID" />
<TextBlock Grid.Row="2" Grid.Column="4" Text="54869708" />
<TextBlock Grid.Row="4" Grid.Column="0" Text="{}{channel}" />
<TextBlock Grid.Row="4" Grid.Column="2" Text="Channel Name" />
<TextBlock Grid.Row="4" Grid.Column="4" Text="FakeSmileRevolution" />
<TextBlock Grid.Row="6" Grid.Column="0" Text="{}{title}" />
<TextBlock Grid.Row="6" Grid.Column="2" Text="Video Title" />
<TextBlock Grid.Row="6" Grid.Column="4" Text="Best Strim Evr!!!" />
<TextBlock Grid.Row="8" Grid.Column="0" Text="{}{res}" />
<TextBlock Grid.Row="8" Grid.Column="2" Text="Video Resolution" />
<TextBlock Grid.Row="8" Grid.Column="4" Text="1920x1080" />
<TextBlock Grid.Row="10" Grid.Column="0" Text="{}{year}" />
<TextBlock Grid.Row="10" Grid.Column="2" Text="Year" />
<TextBlock Grid.Row="10" Grid.Column="4" Text="2022" />
<TextBlock Grid.Row="12" Grid.Column="0" Text="{}{month}" />
<TextBlock Grid.Row="12" Grid.Column="2" Text="Month" />
<TextBlock Grid.Row="12" Grid.Column="4" Text="07" />
<TextBlock Grid.Row="14" Grid.Column="0" Text="{}{day}" />
<TextBlock Grid.Row="14" Grid.Column="2" Text="Day" />
<TextBlock Grid.Row="14" Grid.Column="4" Text="25" />
<TextBlock Grid.Row="16" Grid.Column="0" Text="{}{hr24}" />
<TextBlock Grid.Row="16" Grid.Column="2" Text="Hour (00-23)" />
<TextBlock Grid.Row="16" Grid.Column="4" Text="07" />
<TextBlock Grid.Row="18" Grid.Column="0" Text="{}{hr}" />
<TextBlock Grid.Row="18" Grid.Column="2" Text="Hour (00-11)" />
<TextBlock Grid.Row="18" Grid.Column="4" Text="19" />
<TextBlock Grid.Row="20" Grid.Column="0" Text="{}{min}" />
<TextBlock Grid.Row="20" Grid.Column="2" Text="Minutes" />
<TextBlock Grid.Row="20" Grid.Column="4" Text="47" />
<TextBlock Grid.Row="22" Grid.Column="0" Text="{}{sec}" />
<TextBlock Grid.Row="22" Grid.Column="2" Text="Seconds" />
<TextBlock Grid.Row="22" Grid.Column="4" Text="55" />
<TextBlock Grid.Row="24" Grid.Column="0" Text="{}{apm}" />
<TextBlock Grid.Row="24" Grid.Column="2" Text="AM/PM" />
<TextBlock Grid.Row="24" Grid.Column="4" Text="PM" />
<TextBlock Grid.Row="26" Grid.Column="0" Text="{}{start}" />
<TextBlock Grid.Row="26" Grid.Column="2" Text="Crop start time (HHmmss)" />
<TextBlock Grid.Row="26" Grid.Column="4" Text="012744" />
<TextBlock Grid.Row="28" Grid.Column="0" Text="{}{end}" />
<TextBlock Grid.Row="28" Grid.Column="2" Text="Crop end time (HHmmss)" />
<TextBlock Grid.Row="28" Grid.Column="4" Text="025317" />
</Grid>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Row="6" Grid.Column="0" Text="Default Quality" VerticalAlignment="Center" />
<ComboBox Grid.Row="6" Grid.Column="2" ItemsSource="{Binding CurrentPreferences.DownloadDefaultQualities}" SelectedItem="{Binding CurrentPreferences.DownloadDefaultQuality}" VerticalAlignment="Center">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<fa:ImageAwesome Grid.Row="6" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="415">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Default Quality" />
<TextBlock TextAlignment="Justify">
Specify a default quality you want to have pre-selected in the download dialog. If the desired quality is not available, the next lower quality will be selected. If there is no lower quality, the next higher quality will be selected.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<CheckBox Grid.Row="8" Grid.Column="2" IsChecked="{Binding CurrentPreferences.DownloadSubfoldersForFav}" Content="Create subfolders for favourite channels" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="8" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Create subfolders for favourite channels" />
<TextBlock TextAlignment="Justify">
If enabled, VODs of your favorite channels will be downloaded to their own subfolders within the download folder.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<CheckBox Grid.Row="10" Grid.Column="2" IsChecked="{Binding CurrentPreferences.DownloadRemoveCompleted}" Content="Remove successful downloads from queue" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="10" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Remove Successful Downloads" />
<TextBlock TextAlignment="Justify">
If enabled, successfully downloaded VODs get removed from the download queue.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<CheckBox Grid.Row="12" Grid.Column="2" IsChecked="{Binding CurrentPreferences.DownloadDisableConversion}" Content="Disable conversion to mp4 (also disables cropping)" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="12" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Disable conversion to mp4" />
<TextBlock TextAlignment="Justify">
Depending on the video containing muted parts, frame drops or the encoding settings of the streamer, the conversion to mp4 can introduce A/V desync in rare cases. If you want to download the raw .ts video file from Twitch, enable this option. Cropping is not available in this mode.
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
</Grid>
<Border Grid.Row="6" Margin="0, 20, 0, 10" Padding="0,0,0,5" BorderThickness="0,0,0,1">
<Border.BorderBrush>
<SolidColorBrush Color="{StaticResource Global.Theme.Color}" />
</Border.BorderBrush>
<TextBlock Text="Miscellaneous" FontSize="21.333" FontWeight="Bold" />
</Border>
<Grid Grid.Row="7" Margin="15,0,0,0">
<Grid.RowDefinitions>
<RowDefinition SharedSizeGroup="r1" />
<RowDefinition Height="10" />
<RowDefinition SharedSizeGroup="r1" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="g2" />
<ColumnDefinition Width="15" />
<ColumnDefinition />
<ColumnDefinition Width="15" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<CheckBox Grid.Row="0" Grid.Column="2" Content="Use external video player" IsChecked="{Binding CurrentPreferences.MiscUseExternalPlayer}" VerticalAlignment="Center" HorizontalAlignment="Left" />
<fa:ImageAwesome Grid.Row="0" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Use external video player" />
<TextBlock TextAlignment="Justify">
Use an external video player (e.g. VLC) to watch the videos instead of opening them in the browser
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
<TextBlock Grid.Row="2" Grid.Column="0" Text="Video Player" VerticalAlignment="Center" HorizontalAlignment="Right" />
<Grid Grid.Row="2" Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Grid.Row="0" Grid.Column="0" Text="{Binding CurrentPreferences.MiscExternalPlayer, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="True" />
<Button Grid.Row="0" Grid.Column="2" Style="{StaticResource TlMiniButton}" Command="{Binding ChooseExternalPlayerCommand}" Content="..." Height="Auto" />
<Button Grid.Row="0" Grid.Column="4" Style="{StaticResource TlMiniButton}" Command="{Binding ClearExternalPlayerCommand}" Height="Auto" ToolTip="Clear">
<fa:ImageAwesome Icon="Eraser" Width="16" Height="16" RenderTransformOrigin="0.5,0.5" />
</Button>
</Grid>
<fa:ImageAwesome Grid.Row="2" Grid.Column="4" Style="{StaticResource Img_Help}">
<fa:ImageAwesome.ToolTip>
<ToolTip Width="350">
<StackPanel>
<TextBlock Style="{StaticResource TlToolTipHeadlineText}" Text="Video Player" />
<TextBlock TextAlignment="Justify">
The external video player to use (preferably VLC because it works great with Twitch streams)
</TextBlock>
</StackPanel>
</ToolTip>
</fa:ImageAwesome.ToolTip>
</fa:ImageAwesome>
</Grid>
</Grid>
</ScrollViewer>
</UserControl>
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.