text
stringlengths 1
22.8M
|
|---|
```ruby
# Purpose
# This code example demonstrates how to list the verified email addresses for Amazon Simple Email Service (Amazon SES).
# snippet-start:[ruby.example_code.ses.v1.list_identities]
require "aws-sdk-ses" # v2: require 'aws-sdk'
# Create client in us-west-2 region
# Replace us-west-2 with the AWS Region you're using for Amazon SES.
client = Aws::SES::Client.new(region: "us-west-2")
# Get up to 1000 identities
ids = client.list_identities({
identity_type: "EmailAddress"
})
ids.identities.each do |email|
attrs = client.get_identity_verification_attributes({
identities: [email]
})
status = attrs.verification_attributes[email].verification_status
# Display email addresses that have been verified
if status == "Success"
puts email
end
end
# snippet-end:[ruby.example_code.ses.v1.list_identities]
```
|
Barker Passage is a channel through reef about a kilometre south of North Island in the Houtman Abrolhos. Its gazetted location is , but it is actually located nearly 2½ kilometres west of there, at approximately .
References
North Island (Houtman Abrolhos)
Straits of Australia
|
```groff
y
y
```
|
Isidoro Carini (7 January 1843, in Palermo – 25 January 1895, in Rome) was an Italian religious, teacher, historian and palaeographer.
Biography
He attended the Jesuit college of Palermo and wanted to enter that Order, but was hindered by his father Giacinto Carini, who had participated, as battalion leader, in the action of the Thousand in Sicily, being wounded in Palermo. Pia Carini, Isidoro's younger sister, married the archaeologist Alfonso Bartoli and Alfonso's sister, Maria, married Alfonso Battelli: Giulio Battelli, paleographer and historian, was born from the marriage.
Isidoro Carini was trained in the Congregation of the oratory. In 1865 he founded the weekly L'Amico della religione, which ceased after the popular uprisings of Palermo in September 1866. In 1868 he was ordained a priest and in the same year he founded the weekly Ape iblea. The following year he founded the bi-weekly La Sicilia Cattolica, which absorbed the previous one. In 1874 he was among the founders of the Sicilian Society for Homeland History.
In 1876 he was appointed professor of paleography at the University of Palermo. He devoted himself to the edition of the Greek and Arab diplomas, present in the Sicilian archives. He was the first to be a lecturer in the School of paleography and historical criticism - as the Vatican School of diplomatic and archival paleography was then called - established by Pope Leo XIII, at the Vatican Secret Archive, with motu proprio of 19 May 1884. His appointment was as sub archivist of the Holy See and consultant of the Commission of Cardinals. In 1888, Isidoro Carini founded the Roman Society for Biblical Studies. In 1890, he was appointed by Pope Leo XIII as "first custodian" of the Vatican Apostolic Library.
On 26 January 1893 he became a member of the Turin Academy of Sciences.
References
Bibliography
External links
Isidoro Carini at Internet Archive
19th-century Italian Roman Catholic priests
Academic staff of the University of Palermo
Vatican City people
|
Anna M. Longshore Potts (, Longshore; April 16, 1829 – October 24, 1912) was an American physician and medical lecturer of the long nineteenth century. She was one of eight members of the first graduating class of the Woman's Medical College of Pennsylvania in Philadelphia. She practiced in Philadelphia for a few years after her graduation, then for five years in Adrian, Michigan. Thereafter, she made a tour of the Pacific coast and elsewhere in the United States as well as New Zealand, Australia, and England on the prevention of sickness. She traveled around the world twice and gained a reputation as an author and lecturer. Her lifework was a crusade against ignorance and prejudice; as she said, a "diffusion of physiological knowledge would not only tend to prevent disease, but would also be a potent factor in the preservation of morality". Potts belonged to numerous clubs.
Early life and education
Anna Mary Longshore was born in Attleboro (now Langhorne), in Bucks County, Pennsylvania, on April 16, 1829. Her parents were Abram and Rhoda Longshore. Anna's siblings included brothers Cary Longshore, Isaac S. Longshore, Thomas Ellwood Longshore, and Dr. Joseph S. Longshore,and at least one sister, Elizabeth Longshore Burgess.
In 1852, at the age of 22, Potts graduated from the Woman's Medical College of Pennsylvania in Philadelphia, as one of eight students in the college's first graduating class.. One of her classmates, Hannah Longshore, married Potts' brother Thomas and became the mother of Potts' niece Lucretia Longshore Blankenburg.
Career
After earning a medical degree from the Woman's Medical College of Pennsylvania in 1852, Potts opened a lucrative medical practice in Philadelphia. Her health became impaired, and in 1857, she returned to her hometown of Langhorne, where she married a merchant, Lambert Hibbs Potts (b. 1831). They had a son, Emerson.
A few years later, Dr. Longshore, now Dr. Longshore-Potts, moved to Adrian, Michigan, where she quickly rose to a high position in her profession. She became imbued with the belief that a physician's most sacred duty is to prevent rather than cure disease, and to that end, she gave many private lectures to her patients. The ability of those talks led to her giving a course of public lectures, the meeting being called by the mayor, leading physicians and clergymen. That was in 1876. Her addresses were so favorably received that she concluded to devote all her time to them. She commenced first in small towns, with a boy as agent, who engaged churches and wrote with crayon in blank spaces the place and time of the meetings. Her success was continuous and, as she traveled out into larger towns, became almost phenomenal. The first city of any consequence which she visited as a lecturer was San Francisco, where she appeared in 1881. She then visited the principal coast towns, north as far as Seattle, Washington and south to San Diego, California.
In May, 1883, she sailed with her party, then consisting of seven, for New Zealand, where, from Auckland to Invercargill, the largest houses were packed to listen to Potts. In November, 1883, she stood before an audience of 4,500 people in the exhibition building, Sydney, New South Wales, where she was introduced by Charles A. Kahlothen, U.S. Consul. The proportions of her enterprise may be judged from the fact that her party had been increased to nine people, and it cost her to rent the chairs necessary to seat that building for five lectures. She received a greeting there which was repeated in Melbourne, Brisbane, and the larger interior towns of the colonies.
In November, 1884, she sailed for London, England, where she delivered her first lecture in the large St James's Hall, on February 17, 1885, where Edwin Atkins Merritt, then U.S. Consul-General, presented her to an audience of 3,500 people. Lady Claude Hamilton placed her mansion in Portland Place at Potts' disposal, and between her lectures, which continued for five months, and her receptions in the Hamilton mansion, she stirred London. Every daily paper and all the leading weeklies accorded her praise. She gave one course of lectures for the benefit of the woman's hospital in Soho Square. Many leading charities received substantial aid from her. She spent nearly three years in the U.K., lecturing in all the chief provincial cities and repeating her lectures in London at frequent intervals.
In October, 1887, she returned to the United States, making her first appearance in Tremont Temple, Boston. She then appeared in Chickering Hall, in New York City, and from there went to California, lecturing only in the large cities. Just five years from the time she sailed for the Antipodes, she stood before an audience in the Baldwin Theater, San Francisco, that packed that building. Before her departure from the U.S., she purchased of wild land near San Diego, and during her absence, she had it converted into a garden, in the center of which was erected a beautiful house of three stories, costing upwards of , an institution that became a public monument to her brother, Dr. Joseph Longshore, who was the most active in obtaining the charter for her alma mater.
After her return to the U.S., in 1889, she established the Paradise Hotel and Sanitarium in National City, California. She also visited all the large cities in the country. In January, 1890, the close of her lectures in the Grand Opera House, Indianapolis, Indiana, was marked by an unusual scene. The large audience of women rose and greeted her with prolonged cheers, and a committee presented her with an elegant testimonial engrossed on parchment and signed by Caroline Scott Harrison, Eliza Hendricks, May Wright Sewall, Mary Harrison McKee, Governor Alvin Peterson Hovey and many members of the State Senate and House of Representatives, and when she returned there two months later, the common council placed the use of Tomlinson Hall at her disposal without charge.
Potts published three books, Discourses to women on medical subjects (1887), Love, courtship and marriage (1891), and
The logic of a lifetime (1911). The last of these was a volume of essays self-published at Alameda, California. According to a review in Light (1911):— "It consists of more than 60 brief papers in essay form ranging over many subjects, useful and educative, although at times, a trifle declamatory. Various passages in the book show that the author is in full sympathy with the great harmonising conception of a life beyond, and she writes with conviction of the soul's eventual entrance into another sphere."
Death
Anna Mary Longshore Potts died in San Diego, California, October 24, 1912. At the time of her death, she was believed to have been the last surviving member of the first graduating class of the Women's Medical College of Philadelphia.
Selected works
Discourses to women on medical subjects, 1887
Love, courtship and marriage, 1891
The logic of a lifetime, 1911
References
External links
1829 births
1912 deaths
19th-century American physicians
20th-century American physicians
19th-century American women physicians
20th-century American women physicians
Wikipedia articles incorporating text from A Woman of the Century
American medical writers
Women medical writers
People from Langhorne, Pennsylvania
Physicians from Pennsylvania
Woman's Medical College of Pennsylvania alumni
Clubwomen
20th-century American essayists
American women essayists
American lecturers
|
```yaml
apiVersion: release-notes/v2
kind: feature
area: installation
releaseNotes:
- |
**Added** an automatically set `GOMEMLIMIT` and `GOMAXPROCS` to all deployments to improve performance.
```
|
Bertharius () ( 810 – 883) was a Benedictine abbot of Monte Cassino who is venerated as a saint and martyr. He was also a poet and a writer. A member of the Lombard nobility, Bertharius as a young man made a pilgrimage to Monte Cassino at the time of the abbacy of Bassacius and decided as a result to become a monk.
He became abbot in 856, succeeding Bassacius in that position. He became abbot at a critical time, in which Muslim incursions threatened central and southern Italy. The basilicas extra muros of Rome had been sacked in 846 AD.
Bertharius fortified the abbey with massive walls and towers between 856 and 873, while Louis II of Italy conducted various expeditions against the Muslim forces, beating them back temporarily.
Bertharius founded the city that he named Eulogimenopoli, later renamed San Germano, and today called Cassino. Bertharius promoted the study of texts and embellished the abbatial church with precious furnishings. He established a new monastery for women at Teano and maintained good relations with the city of Capua.
In 873, Muslim raids in Campania and Latium resumed, and a band of raiders paid by the Duke of Naples, Athanasius, established a base in the Apennines in 882. They burned the abbey of San Vincenzo al Volturno, killing some of the monks there, and on September 4, 882, raiders attacked Monte Cassino, burning and destroying it. Bertharius and the monks managed to escape, finding refuge at the foot of the mountain of Monte Cassino, in the monastery of San Salvatore. Angelarius, a prior of Monte Cassino, took most of the monks to Teano. However, Bertharius remained at Monte Cassino.
In 883, the monastery was again attacked, and Bertharius was killed along with some other monks at the altar of St. Martin on October 22 of that year in the church of Saint Salvator at the foot of the hill.
Bertharius was succeeded by Angelarius, who rebuilt the church of St. Salvator (later named St. Germanus).
Veneration
Bertharius’ body was immediately translated to Monte Cassino and in 1486 moved to the abbatial church there, in front of the tombs of Saints Benedict and Scholastica. In 1514, a chapel was dedicated in his honor; his body was placed under the altar. Various artistic depictions of Bertharius were made during succeeding centuries, but these were lost during the Battle of Monte Cassino in World War II. His cult was confirmed on August 26, 1727, by Pope Benedict XIII.
He is also venerated in the Eastern Orthodox Church, his feast day being October 22.
References
External links
Saints.SQPN: Bertharius
Catholic Online: Bertharius
Abbots of Monte Cassino
810s births
883 deaths
9th-century Christian martyrs
Christian saints killed by Muslims
Italian Roman Catholic saints
Canonizations by Pope Benedict XIII
|
The environmental policy of the Donald Trump administration represented a shift from the policy priorities and goals of the preceding Barack Obama administration. Where President Obama's environmental agenda prioritized the reduction of carbon emissions through the use of renewable energy with the goal of conserving the environment for future generations, the Trump administration policy was for the US to attain energy independence based on fossil fuel use and to rescind many environmental regulations. By the end of Trump's term, his administration had rolled back 98 environmental rules and regulations, leaving an additional 14 rollbacks still in progress. As of early 2021, the Biden administration was making a public accounting of regulatory decisions under the Trump administration that had been influenced by politics rather than science.
The Trump administration supported energy development on federal land, including gas and oil drilling in national forests and near national monuments and parks. Soon after taking office, Trump began to implement his "America First Energy Plan" and signed executive orders to approve two controversial oil pipelines. In 2018, the Department of the Interior announced plans to allow drilling in nearly all U.S. waters, the largest expansion of offshore oil and gas leasing ever proposed. In 2019, the Administration completed plans for opening the entire coastal plain of the Arctic National Wildlife Refuge to drilling.
Trump and his cabinet appointees did not believe the consensus of most scientists that climate change will have catastrophic impacts nor that carbon dioxide is a primary contributor to climate change. Trump pulled the United States out of the Paris climate accord, leaving the U.S. the only nation that was not part of the agreement. He avoided environmental discussions at both the 44th G7 summit held in Canada and the 45th G7 summit held in France by departing early from these conferences. In September 2019, the Trump administration replaced the Obama-era Clean Power Plan with the Affordable Clean Energy rule, which did not cap emissions. In April 2020, he issued his new vehicle emissions standards, which were projected to result in an additional billion tons of carbon dioxide, increasing annual U.S. emissions by about one-fifth. In 2020, environmentalists feared that a successful reelection of Trump could have resulted in severe and irreversible changes in the climate.
The administration repealed the Clean Water Rule and rewrote the EPA's pollution-control policies—including policies on chemicals known to be serious health risks—particularly benefiting the chemicals industry, A 2018 analysis reported that the Trump administration's rollbacks and proposed reversals of environmental rules would likely "cost the lives of over 80,000 US residents per decade and lead to respiratory problems for many more than 1 million people."
Background
At a Republican primary debate in Detroit on March 3, 2016, Trump said: "Department of Environmental Protection: We are going to get rid of it in almost every form. We're going to have little tidbits left. But we're going to take a tremendous amount out." During the campaign, Trump expressed the view that global warming and cooling is a natural process. He often described global warming as a "hoax"; and sometimes attributed the "hoax" to the Chinese government as a plot to sabotage American manufacturing, but later claimed that had been a joke. As a candidate Trump said he would rescind Obama's Climate Action Plan, cancel U.S. participation in the Paris Climate Agreement, and stop all U.S. payments towards United Nations global warming programs.
Many of his first cabinet picks were people with a history of opposition to the agency they were named to head. Within days after taking office, he invited American manufacturers to suggest which regulations should be eliminated; industry leaders submitted 168 comments, of which nearly half targeted Environmental Protection Agency (EPA) rules. Within his first couple months in office, he required a federal review of the Clean Water Rule and the Clean Power Plan.
He did not attend the climate discussions held during both the 2018 and 2019 G7 meetings, the only world leader not in attendance.
Appointments
Trump's cabinet nominees reflect his desire to scale back federal environmental regulation and to promote domestic production of coal, oil, and natural gas. In some cases his appointees had a history of conflict with the agencies they now lead. Although the scientific conclusion is that "it is extremely likely (95 to 100 percent probable) that human influence has been the dominant cause of the observed warming since the mid-20th century," Trump's department head appointees do not agree that global warming has been man-made.
President Trump's appointments to key agencies dealing in energy and environmental policy reflect his commitment to deregulation, particularly of the fossil fuel industry. Three of the four chair-level members of Trump's transition team commissioned to draw up a list of proposals to guide his Native American policies had links to the oil industry. In July 2018, amid numerous ethics investigations, Trump's first appointment for administrator of the Environmental Protection Agency (EPA), Scott Pruitt, resigned and was replaced by Andrew Wheeler.
First EPA administrator, Scott Pruitt
As the attorney general of Oklahoma, Trump's choice of EPA administrator Scott Pruitt challenged EPA regulations in court more than a dozen times. With some cases still pending, Pruitt declined to say if he would recuse himself with regard to those suits. Pruitt hired former Oklahoma banker Albert Kelly to head the Superfund program, which is responsible for cleaning up the nation's most contaminated land. Kelly completely lacked any experience with environmental issues, and had just received a lifetime ban from working in banking, his career until then, due to "unfitness to serve".
Pruitt said he planned to prioritize state and local control over federal land use and ease regulations on the environmental impacts of industries. A March 2017 executive order allowed Pruitt to start a review process of the Obama administration's regulations of the coal industry, reflecting Trump's repeated promises to support the coal industry and "bring back jobs" in coal mining. Such changes are likely to affect America's ability to meet the climate emission goals of the Paris Agreement. Pruitt has said he does not believe carbon dioxide is a primary contributor to global warming. While admitting that the climate is warming, Pruitt believes that warming is not necessarily harmful and could be beneficial. "Do we really know what the ideal surface temperature should be in the year 2100, in the year 2018? That's fairly arrogant for us to think that we know exactly what it should be in 2100." Climate experts, including Michael Mann and Chris Field who oversaw a United Nations and World Meteorological Organization scientific report on climate change, disagree with Pruitt's position. According to Field, "thousands" of studies document that a warming planet causes a host of problems, not just from high temperatures but also from heat waves, higher seas, heavier downpours, and more frequent destructive hurricanes and wildfires."
In April 2018, Pruitt drew criticism for what some consider to be the excessive security expenditures which he had requested. Trump defended Pruitt in a tweet stating, "Record clean Air & Water while saving USA Billions of Dollars." However, according to PolitiFact no new figures on air quality have been released since 2016. To state the nation's waters as being at record clean levels is also inaccurate since while a report was issued in 2017, the information was gathered in 2012 or earlier. Commenting on Pruitt's claim that his excessive security expenses are related to his need for security, The New York Times commented that the high expenses appear to be "driven more by a desire to avoid tough questions from the public than by concerns about security." In April 2018, thirty-nine members of the Senate and more than 130 members of the House of Representatives
called for Pruitt's resignation.
On July 5, 2018, President Trump tweeted, "I have accepted the resignation of Scott Pruitt as the Administrator of the Environmental Protection Agency. Within the Agency Scott has done an outstanding job, and I will always be thankful to him for this." At the time of his resignation Pruitt was facing numerous ethics investigations.
Second EPA administrator, Andrew Wheeler
In 2017 Trump nominated Andrew Wheeler to be the deputy administrator of the EPA. Wheeler has worked as a coal industry lobbyist, specializing in energy and environmental policy. He is a critic of nationwide limits on greenhouse gas emissions and has supported the continued use of fossil fuels. The Senate rejected him in 2017 and Trump resubmitted his name in January 2018. In March 2018, Wheeler commented to CNN that the EPA is "brainwashing our kids." His nomination was confirmed on April 12, 2018, by a mostly party line vote of 53–45, that included three Democratic senators. Following Pruitt's resignation, Wheeler was appointed to head the EPA on July 5, 2018.
Following his appointment Sierra Club executive director Michael Brune commented, "He fought against safeguards to limit mercury poisoning. He fought against protections to limit the amount of ozone in our skies. He fought against air pollution from neighboring states. He's a climate denier. So, sadly, he fits in well with EPA leadership."
Department of Energy
The United States Department of Energy is tasked with developing technology for better and more efficient energy sources as well as energy education. Trump chose Rick Perry to head the department, who had called for eliminating it when he was running for the Republican nomination for president in 2012. His confirmation as head of the Department of Energy was a source of contention among Democrats due to his previous denial of man-made climate change and his close ties to the Texas oil and gas industry. During his confirmation hearing, Perry said he regretted his promise to abolish the Department of Energy.
In March 2017, Perry met with Murray Energy CEO Robert Murray and coal lobbyist Andrew Wheeler who would later replace Scott Pruitt as head of the EPA. Murray submitted a confidential "action plan" at the meeting. In an interview with the Associated Press (AP) Simon Edelman, who was at the time a government photographer who was taking photos of the meeting, the actions Murray wanted the Trump administration to take "included replacing members of the Federal Energy Regulatory Commission, pulling the United States out of the Paris climate accords and revoking the Clean Power Plan." He said that he was fired shortly after he released the photographs of the meeting. A copy of the plan was obtained by The New York Times and the AP in January 2018. They reported that "it mirrors policy later pushed by the Trump administration."
Department of the Interior
Ryan Zinke was appointed Secretary of the Interior in 2017. Following his appointment, Zinke said that he had made "probably the greatest reorganization in the history of the Department of the Interior." Some scientists charged that some of the staff changes were politically motivated. Zinke supported Trump's plan to reduce the DOI budget by $1.6 billion (~$ in ) in 2018, which would have caused roughly 4,000 employees to lose their jobs and a rollback of many of the regulations that Obama put in place. When questioned about global warming during his senate confirmation hearing, Zinke replied, "...I don't know definitively, there's a lot of debate on both sides of the aisle."
In January 2019, Zinke was replaced with David Bernhardt, an attorney and oil industry lobbyist who had been serving as Trump's United States Deputy Secretary of the Interior since 2017. At his confirmation hearing, speaking regarding his policy decisions related to global warming he said, "We're going to look at the science whatever it is, but ... policy decisions are made – this president ran and he won on a particular perspective." During Bernhardt's tenure as deputy secretary and acting secretary, the department embarked on a program of deregulation and substantially increased fossil fuel sales on public land. In March 2019, Politico reported that heads of the oil industry lobbyist group Independent Petroleum Association of America (IPAA) boasted about their ties to Bernhardt.
Department of Agriculture
Sonny Perdue, former governor of Georgia, was appointed Agriculture Secretary. His supporters say that his experience in agriculture and conservative views on immigration make him an appropriate choice. Perdue says that he plans to rid the department of
"onerous regulations" that do not contribute to a better environment. Opponents fear that he will not sufficiently address the effects that farm pollution has on sources of drinking water. Speaking on climate change, Perdue says that he agrees that the climate is warming but "we don't know definitively in my opinion what is causing climate change."
Council on Environmental Quality
The Council on Environmental Quality is a division of the Executive Office of the President that coordinates federal environmental efforts and works closely with agencies and other White House offices on the development of environmental and energy policies and initiatives. In October 2017, Trump nominated Kathleen Hartnett White, former chair of the Texas Commission on Environmental Quality, to be chair of CEQ. Some of Hartnett's energy views have been considered controversial. She has "called renewable energy unreliable and parasitic" and she has "suggested that climate regulation is a conspiracy pushed by communists." Her nomination was withdrawn in February 2018 as she did not garner enough support in the Senate.
National Oceanic and Atmospheric Administration
Trump nominated Barry Lee Myers to head the National Oceanic and Atmospheric Administration (NOAA). NOAA is a scientific agency within the United States Department of Commerce that warns of dangerous weather, focuses on the conditions of the atmosphere, oceans and major waterways, and guides the use and protection of ocean and coastal resources. Myers is an attorney and businessman who has served as CEO of AccuWeather, a company that provides commercial weather forecasting services. In the past, he has strongly advocated against NOAA's capability to provide a weather information service directly to the public via the National Weather Service.
Myers nomination has not been confirmed and Neil Jacobs has been serving as active Under Secretary of Commerce for Oceans and Atmosphere since February 25, 2019, following Timothy Gallaudet and Benjamin Friedman.
In what came to be known as Sharpiegate, in September 2019, President Trump incorrectly stated that the path of Hurricane Dorian would include Alabama. Rather than correct his mistake he went on to frequently claim he was correct and on September 4 he held a news conference in which he held up a map which showed the expected path of the hurricane with a black sharpie extension that included Alabama. On September 6, under Jacob's leadership, NOAA released a statement that backed Trump's false claim. An investigation of the incident found that Jacob had twice violated codes of the agency's scientific integrity policy.
Secretary of State
In March 2018, President Trump nominated Mike Pompeo as his new Secretary of State, succeeding Rex Tillerson. Pompeo has referred to the Obama administration's environment and climate change plans as "damaging" and "radical". He opposes the regulation of greenhouse gas emissions, and supports eliminating the United States federal register of greenhouse gas emissions. He has stated, "Federal policy should be about the American family, not worshipping a radical environmental agenda." In 2012 he called for the permanent elimination of wind power production tax credits calling them an "enormous government handout". In 2015 he voted against the Obama Administration's Clean Power Plan resolution. In 2019 Pompeo refused to sign on to a joint statement addressing the need for protection of the Arctic region from the threat of rapidly melting ice unless all mentions of climate change were removed from the document. He stated "climate change is actually good for the Arctic, since melting ice caps are 'opening up new shipping routes' and thus making it more economically viable to expand oil drilling in the region."
Assistant Attorney General for the Environment and Natural Resources Division
In 2018, Trump appointed Jeffrey Clark as the nation's top environmental lawyer. Clark previously represented numerous oil industry clients and represented BP in lawsuits over the 2010 oil spill. He has also represented the Chamber of Commerce in lawsuits challenging the government's authority to regulate carbon emissions and has argued that it is not appropriate to base government policymaking on the scientific consensus presented by the Intergovernmental Panel on Climate Change (IPCC).
In 2021, Clark was involved in the attempts to overturn the 2020 United States presidential election. In an attempt to pressure Georgia election officials to reverse its election results, Trump floated a plan to replace the acting Attorney General Jeffrey Rosen with Clark who would then reverse the decisions of the previous Attorney General, open an investigation, and pressure Georgia election officials to void Joe Biden's win in that state.
Domestic energy policy
Deregulation
Trump unveiled what he called the "America First Energy Plan" soon after his inauguration. His administration claimed that American business "has been held back by burdensome regulations on [its] energy industry". The "America First" plan emphasized fossil fuels and did not mention renewable energy.
His main focus was on environmental rules imposed or proposed during the Obama administration. He portrayed himself as a champion of the environment, fighting for clean air and water while his critics said that his policies showed the opposite of what he claimed.
The Trump administration estimated deregulation would increase wages by over $30 billion by 2024. This figure specifically refers to the removal of Obama's Climate Action Plan and was drawn from a study from the Institute for Energy Research, a conservative non-profit organization specializing in research of global energy markets; the report actually based that figure on increased oil drilling on federal land and offshore, not on reduction of regulations.
When Trump took office the EPA focused on a range of topics including air, emergency management, land and cleanup, pesticides, toxic substances, waste, and water. Trump said he would refocus its efforts to solely protect clean air and clean water. This resulted in a 31% proposed budget cut to the EPA. Environmentalists, current EPA staff members, and former EPA staff members believed that the EPA would have a harder time upholding environmental standards with a smaller budget.
In a 2018 analysis, David Cutler and Francesca Dominici of Harvard University stated that under the most conservative estimate, the Trump administration's rollbacks and proposed reversals of environmental rules would likely "cost the lives of over 80 000 US residents per decade and lead to respiratory problems for many more than 1 million people." The EPA responded to the analysis by stating "This is not a scientific article, it's a political article."
Water use reduction programs
In 2006 the EPA launched the WaterSense program to reduce water use of fixtures such as toilets. WaterSense certified toilets, for example, use only 1.28 gallons per flush, 20% less than the current federal standard of 1.6 gallons. Other fixtures and appliances can be WaterSense certified as well. In December 2019, after meeting with small business owners Trump announced he had ordered a federal review of water efficiency standards pertaining to bathroom fixtures. He said it was "common sense" to review standards which resulted in showers with water "quietly dripping out", toilets that end up using more water because "people are flushing toilets 10 times, 15 times as opposed to once" and sink water faucets with such a diminished flow that it takes twice as long to wash one's hands. At their website the EPA states that "recent advancements have allowed toilets to use 1.28 gallons per flush or less while still providing equal or superior performance." In December 2019, Trump said "women tell me" they have to run modern dishwashers more than once to get clean dishes.
Renewable energy policy
In 2016 it was reported that America currently had 264 billion barrels of oil reserves, the largest oil reserve of any nation. The United States also has a vast amount of coal reserves, amounting to 26% of the world's total, more than any other nation. Its untapped oil and coal resources are estimated to be worth about $50 trillion according to the Trump administration. However, reports from the Natural Resources Defense Council (NRDC) show that coal consumption in the US has steadily declined by about 20% over the last 10 years, with natural gas and renewable energy quickly taking over. Christina Simeone, director of policy and external affairs with the Kleinman Center for Energy Policy at the University of Pennsylvania, says that strict regulations aren't the only reason for the faltering coal market; natural gas has now become a cheaper option.
Trump wants America to achieve energy independence from OPEC and all nations hostile to the interests of the United States to ensure national security, and insulate it from any supply disruptions and price fluctuations from the global oil market. However, fossil fuels are finite, and entities such as the Pentagon claim climate change also poses a threat to national security. The NRDC has argued that a more reliable long-term solution would be to develop more of a reliance on renewable energy rather than maintaining a reliance on fossil fuels.
The America First Energy Plan does not mention renewable energy and instead reflects the president's focus on fossil fuels. During the campaign, Trump praised solar technology during a rally in California the summer of 2016 but then criticized it for being too expensive and has since complained about the subsidies renewable energy companies receive. In June 2017, Trump said in a White House meeting that the wall with Mexico should be covered with solar panels. The statement was not taken seriously.
The Trump administration's 2019 budget proposes large cuts in programs that research renewable energy and that study the effects of and ways to mitigate climate change.
Wind power is one of the fastest job-growing industries in the country and it is producing a substantial amount of power in some areas; for example, 25% of the energy in Iowa and North and South Dakota is from the wind. Minnesota, which ranks 7th in the nation at 18%, plans to shut down all of its coal-fired plants by 2030 and switch to renewable energy for all of its power needs.
Trump has repeatedly claimed, without evidence, that noise from windmills causes cancer. He has also repeatedly said that they cause avian deaths, which is true. The US Fish and Wildlife Service reports that up to 300,000 birds a year are killed by windmills; however, they say that that number is low compared to other sources: "Communication towers kill 40 million, power lines kill 140 million, and cats kill hundreds of millions."
COVID-19 pandemic relaxation of regulations
In response to oil industry lobbyists, the Trump administration suspended the enforcement of certain environmental laws during the ongoing COVID-19 pandemic. In March 2020, it was announced that the EPA would not expect routine monitoring and compliance or reporting of pollution emissions and would not pursue penalties for breaking those rules as long as it could be claimed that the violations were caused by the pandemic. Because COVID-19 attacks the lungs, environmental groups expressed particular concern over air pollution emitted from industrial facilities, which are predominantly located in communities with large numbers of people of color and low-income people.
At the urging of The Heritage Foundation, a conservative think tank, the pandemic was also used as a reason to increase the sale of public land to industry to open them to mining, drilling for gas and oil, and cutting timber. Cynthia Giles, head of EPA enforcement during the Obama administration, commented, "I am not aware of any instance when EPA ever relinquished this fundamental authority as it does in this memo. This memo amounts to a nationwide moratorium on enforcing the nation's environmental laws and is an abdication of EPA's responsibility to protect the public."
Keystone XL and Dakota Access pipeline
The construction of the Keystone XL and Dakota Access had been placed on hold by then-president Barack Obama, who considered it a major contributor to climate change due to the greenhouse gas intensive extraction of oil from tar sands.
After months of protest, in December 2016 the United States Army Corps of Engineers (USACE) under the Obama administration announced that it would not grant an easement for the pipeline to be drilled under Lake Oahe and that USACE was undertaking an environmental impact statement to look at possible alternative routes.
Many Sioux tribes said that the pipeline threatens the tribe's environmental and economic well-being, and that it has damaged and destroyed sites of great historic, religious, and cultural significance. The tribe has expressed concern about leaks because the pipeline passes under Lake Oahe, which serves as a major source of water. Protests at pipeline construction sites in North Dakota began in the spring of 2016 and drew indigenous people from throughout North America as well as many other supporters, creating the largest gathering of Native Americans in the past hundred years.
An executive order reviving the plans for the pipelines was signed by Trump on January 24, 2017, with the hopes of creating jobs and bolstering domestic energy production. The pipeline became commercially operational on June 1, 2017 In September 2018, the Dakota Access pipeline was estimated to have created 51 permanent jobs across the four states that it passes through.
The Standing Rock Sioux Tribe sued and in March 2020 a federal judge sided with the tribe and ordered USACE to do a full environmental impact statement. The Judge found the existing impact statement extremely lacking, noting numerous factors that had not been taken into account or were clearly not accurate. In July 2020, saying federal officials failed to carry out a complete analysis of its environmental impacts, U.S. District Judge James Boasberg ruled that the pipeline must be shut down by August 5. Pipeline owner Energy Transfer appealed and on August 5, the Court of Appeals sided with Energy Transfer to allow the pipeline to stay open. However the court did not grant Energy Transfer's motion to block the review, which must continue.
Executive order on climate change
Amid protests, on March 28, 2017, Trump signed a "sweeping executive order" instructing EPA "regulators to rewrite key rules curbing U.S. carbon emissions and other environmental regulations." Trump was accompanied by "coal miners and coal executives" among others and he devoted his remarks on the executive order to "praising coal miners, pipelines and U.S. manufacturing." He addressed the coal-miners directly, "Come on, fellas. Basically, you know what this is? You know what it says, right? You're going back to work." A Trump official said that the executive order plans to put American jobs first by not supporting climate change policies that place the economy at risk.
Auto fuel economy and emissions standards
More than 20 percent of greenhouse gas emissions in the U.S. come from light-duty trucks and cars. The Obama administration 2012 fuel economy plan called for a doubling in fuel economy for new cars and light trucks, to more than by 2025, equivalent to a real-world average of .
In April 2018, saying "those standards are inappropriate and should be revised," Scott Pruitt announced that the EPA was rolling back the Obama administration's fuel efficiency and emissions standards. Democratic Senate Minority Leader Chuck Schumer expressed his concern.
The state of California has a waiver that allows it to set its own auto emissions standards, which it has used to combat smog and, more recently, global warming. Thirteen other states and the District of Columbia have adopted the California standards as their own. Arguing that the Pruitt plan violates the federal Clean Air Act and doesn't follow the agency's own regulations, in April California sued the Trump administration. Joining California were Connecticut, Delaware, Illinois, Iowa, Maine, Maryland, Minnesota, New Jersey, New York, Oregon, Rhode Island, Vermont, Washington, Massachusetts, Pennsylvania, Virginia and the District of Columbia. All have Democratic attorneys general.
While automakers sought a relaxation of emission control requirements, they found the Trump rollback proposal extreme and were concerned it would split the American car market into two regulatory regimes. In July 2019, four automakers —Ford, Honda, Volkswagen Group of America and BMW of North America – rejected the Trump rule proposal and adopted the California emission standards. Shortly thereafter, the Department of Justice began an antitrust investigation of these four companies on the basis that working the deal together may have restricted consumer choice. By February 2020, the DOJ announced it had ended the investigation with no action.
In April 2018, the administration announced plans to undo the Obama administration's auto fuel efficiency and emissions standards. In September 2019, Trump announced he planned to roll back the California waiver. State attorney general Xavier Becerra said Trump had "no basis and no authority" to revoke the waiver. In a statement, Governor Gavin Newsom said, "It's a move that could have devastating consequences for our kids' health and the air we breathe if California were to roll over. We will fight this latest attempt and defend our clean car standards."
On April 1, 2020, the administration released its final rule on mileage standards through 2026. In a statement EPA head Andrew Wheeler said, "We are delivering on President Trump's promise to correct the current fuel economy and greenhouse gas emissions standards." The administration says the less stringent mileage standards will allow consumers to continue to buy the less fuel-efficient SUVs that U.S. drivers have favored for years.
It is expected that states and environmental groups will challenge the Trump rules, and a U.S. District Court will likely issue a temporary order shelving them until it decides whether they are legal.
In December 2020, following Joseph Biden's successful bid for the presidency General Motors CEO Mary Barra announced that GM would drop its participation in the Trump administration lawsuit seeking to block California's right to set its own clean air standards. Commenting, she said that "the ambitious electrification goals of the president-elect, California, and General Motors are aligned, to address climate change by drastically reducing automobile emissions."
Nuclear
in 2017, Trump announced that his administration would "begin to revive and expand our nuclear energy sector, which I'm so happy about, which produces clean, renewable and emissions-free energy." In line with this, he signed the Nuclear Energy Innovation Capabilities Act of 2017.
Rollback of efficient lighting regulations
In September 2019, the Energy Department announced the reversal of a 2014 regulation that would have taken effect on January 1, 2020, and implemented the last round of energy-saving light bulb regulations outlined by the Energy Independence and Security Act of 2007. A spokesperson for the Alliance to Save Energy disputed the Department's regulations, saying that an average American household's lighting cost would increase by about $100 a year. The spokesperson also said that using less efficient light bulbs would require the electricity produced by 25 coal power plants. The ruling would allow some types of incandescent bulbs to remain in service. The U.S. states of California, Colorado, Nevada, Washington, and Vermont adopted their own energy standards. The California law was challenged in court by light bulb manufacturers but a judge ruled it was proper under the congressional exemption previously granted. In 2021, the Biden administration rolled back the Trump regulations and introduced energy efficient standards on bulbs and many home appliances as well.
Proposed EPA budget cuts
While campaigning for office Trump had proposed the idea of eliminating the Environmental Protection Agency to help balance the United States' budget. Trump said, "We're going to have little tidbits left but we're going to get most of it out". Following his election, in March 2017, he announced plans to cut the EPA 2018 budget by 31%, by far the largest budget cut to any federal agency. The cut would result in a loss of 19% of the workforce or roughly 3,200 employees, through both staff buyouts and layoffs. The choice to remove the Clean Power Plan, which was put in place to reduce carbon dioxide emissions chiefly from coal-fired Power Plants, would effectively eliminate Obama's efforts to curb climate change. This plan would also remove the $100 million allocated to fund research combating climate change. The National Oceanic and Atmospheric Administration provides $250 million for programs which aid countries with high risk of impacts from rising and increasingly warm and acidic sea water levels. These programs would be eliminated under the new set of budget cuts. If enacted, this would mean the elimination of up to 38 of the agency's programs. Programs to be eliminated included the radon program, grants to clean up industrial sites ("brownfields"), climate change research, and the Office of Environmental Justice.
Trump's objectives include the lifting of regulations from various energy industries to boost domestic energy production. Trump asked American manufacturers which regulations made production the most difficult. The industry leaders responded, and an overwhelming number of them recommended lifting restrictions related to the environment and workers' rights. In an open letter to Scott Pruitt, Mustafa Ali, former head of the EPA's Environmental Justice Program who resigned in protest to Pruitt's budget cuts, expressed concerns with how the budget cuts will effect pollution in poor and minority neighborhoods.
The administration said it planned to refocus the EPA mission on clean water, air, and other core responsibilities. It also planned to delegate more of the EPA's enforcement activities to the states, while decreasing the amount of money given to states for that purpose by 30%. Issues like greenhouse gas emissions would be trimmed significantly or eliminated from the budget.
On September 12, 2018, the Senate approved a so-called Minibus funding bill or Omnibus spending bill, which reduced the EPA's budget from $8.2 billion annually to $5.7 billion, a decrease of $2.5 billion or −31%. The bill was expected to eliminate more than 50 programs and 3,200 jobs, discontinue funding for international climate-change programs, cut funding for the Office of Research and development in half, cut funding for the Superfund cleanup program and the Office of Enforcement and Compliance, and prioritizes drinking water and wastewater infrastructure projects.
Department of the Interior
The Department of the Interior is responsible for the management and conservation of natural resources, most federal lands such as national parks and forests, wildlife refuges and tribal territories. Trump accused President Obama of "denying millions of Americans access to the energy wealth sitting under our feet" by his leasing restrictions and the banning new coal extraction on federal lands. Trump campaigned on a promise to "unleash America's $50 trillion in untapped shale, oil, and natural gas reserves, plus hundreds of years in clean coal reserves." Trump's proposed 2018 budget aimed to cut $1.5 billion (~$ in ) of funding from the Department of Interior.
In a White House speech in 2019, Trump hailed "America's environmental leadership" under his watch, asserting his administration was "being good stewards of our public land," reducing carbon emissions and promoting the "cleanest air" and "crystal clean" water. Experts noted that the cited achievements were the result of actions taken by his predecessors going all the way back to the Nixon administration.
Trump appointed Congressman Ryan Zinke of Montana as Secretary of the Interior. Zinke is an advocate for mining and logging on federal lands.
Commenting on the Trump presidency, the president of the American Petroleum Institute, a Washington DC-based lobby group, said, "This opportunity is unique, maybe once in a lifetime," in regards to increased access to federal leases.
The Trump administration stated plans to open up more federal land for energy development, such as fracking and drilling. The Clean Water Rule, issued by the EPA and the Army Corps of Engineers in 2015, was also a target for possible repeal. The rule clarifies the federal government's jurisdiction to protect small streams and wetlands from pollution. Developers, business, and agriculture groups oppose the rule because they believe that their private property rights are violated and that undue regulatory burdens are created. In January 2018, the EPA formally suspended the 2015 regulation and announced plans to issue a new version later in 2018. Fifteen states, two cities and several environmental organizations have challenged EPA's suspension in several lawsuits. On September 12, 2019, the Trump administration repealed the Clean Water Rule.
Tongass National Forest
In August 2019, Trump had instructed Agriculture Secretary Sonny Perdue to exempt Alaska's Tongass National Forest from logging restrictions established nearly 20 years ago during the Clinton administration. The move opens it to potential logging and energy and mining projects. Tongass is the world's largest intact temperate rainforest, containing old-growth cedar, hemlock and spruce, fjords and rivers with salmon runs. It serves as an enormous natural carbon sink, holding an estimated 8% of all carbon stored in U.S. national forests. Unlike most other national forests, most of the forest is in a natural condition. The Forest Service had finalized a plan to phase out old-growth logging in 2016 and Congress had designated more than 5.7 million acres of the forest as wilderness, not to be developed under any circumstances. Should Trump's plan be successful, it could affect 9.5 million acres. On September 25, 2020, the Trump administration submitted a revised environmental impact study which recommended a "full exemption" for the Tongass, opening the forest to more development and logging. Responding, Andy Moderow of the Alaska Wilderness League said that Tongass plays an important role in helping to combat climate change noting that it "stores more than 400 million metric tons of CO2 and sequesters an additional 3 million metric tons annually, equivalent to taking nearly 650,000 cars off the road each year." If elected, presidential candidate Joe Biden could reverse the decision.
In November 2021, the Biden administration announced they would start to reinstate the Roadless Rule, protecting about 9 million acres of Tongass National Forest. In a statement Agriculture Secretary Tom Vilsack said, "'Restoring the Tongas'’ roadless protections supports the advancement of economic, ecologic and cultural sustainability in Southeast Alaska in a manner that is guided by local voces".
Proposed Alaska gold and copper mine
In July 2020, Trump reversed the Obama administration's decision against a proposed Alaska gold and copper mining operation, Pebble Mine in Bristol Bay. The Obama administration had found that a mine would permanently harm the region's sockeye salmon fisheries. The Trump administration's reversal was, according to The Washington Post, typical of the administration's "whiplash" decisions which have "methodically dismantled many of his predecessor's actions on climate change, conservation and pollution." The Army Corps of Engineers denied the Pebble Mine permit on November 25, 2020. The proposal had been opposed by 80 percent of Bristol Bay residents.
Boundary Waters Canoe Area Wilderness
The Boundary Waters Canoe Area Wilderness is a wilderness area in the state of Minnesota. In 2018, the Trump administration cleared the way for renewed mineral leasing within the watershed of the BWCA. The Obama administration had proposed a 20-year mining ban and asked for an environmental study based on concerns that mining in the Boundary Waters watershed could lead to irreversible harm to the BWCA. Environmentalists challenged the reversal of the decisions in federal court. In January 2022, the Biden administration cancelled the mining leases granted by Trump saying that the department's Office of Solicitor ruled that they had been improperly renewed.
Hunting
The International Wildlife Conservation Council (IWCC) was created under the Department of the Interior to loosen restrictions around importing endangered wildlife hunting trophies like heads and skins. After a judge ruled in February 2020 that the council's legitimacy could be challenged in court, the Department of the Interior told the judge that the council's charter had already ended and would not be renewed.
In June 2020, the administration changed a five-year-old Obama-era rule to allow, once again, hunters on federal land in Alaska to use food to lure bears out of hibernation; to use artificial light to enter wolf dens; and to shoot animals from planes, boats, and snowmobiles.
National monuments
In April 2017, President Trump directed the Department of the Interior to review 27 monuments of at least in size through Executive Order 13792. The vast majority of the lands under review were set aside by President Obama.
In June 2017, Zinke issued an interim report as requested in the executive order. He proposed a scaling back of the Bears Ears National Monument. In August 2017, Zinke delivered a final report to Trump. The report called for the reduction of Bears Ears (established by Obama – 2016), Cascade–Siskiyou (Clinton – 2000), Gold Butte (Obama – 2016), Grand Staircase–Escalante (Clinton – 1996), Pacific Remote Islands Marine (Bush – 2006), and Rose Atoll Marine (Bush – 2009).
Bears Ears Monument
Bears Ears National Monument, located in southeastern Utah, was established by presidential proclamation by Barack Obama in 2016. Five native American tribes urged Obama to create the monument to preserve about 9,000 recorded archaeological sites, including petroglyphs, woven cloth, human remains and ancient roads. In 2017 Donald Trump reduced it by 85%. Members of the Navajo tribe in particular were integral to the monument's passage. A tribal spokesperson stated that a reduction in the size of the Bear's Ears Monument would be "an attack on a significant part of the foundation of American conservation law." A different opinion was offered by Republican Utah state representative Mike Noel who sees a shrinking of the Bears Ears Monument as a victory over federal restrictions over mining and animal grazing. "When you turn the management over to the tree-huggers, the bird and bunny lovers and the rock lickers, you turn your heritage over."
Legal scholars have argued that the reduction is not authorized by law and several federal lawsuits have been filed challenging Trump's action. They contend that the Trump administration stacked the Federal Advisory Committee Act committee, which is supposed to be balanced and not unduly influenced by the financial interests of its members, with politicians and ranchers with a conflict of interest. An attorney who works with Democracy Forward commented, "The Bears Ears committee was designed to protect a treasure of the American West and stacking it with opponents of the monument could violate federal law." (See update above)
Northeast Canyons and Seamounts Marine National Monument
On June 5, 2020, President Trump signed a proclamation that opened the Northeast Canyons and Seamounts Marine National Monument, the Atlantic Ocean's only fully protected marine sanctuary, to commercial fishing. In 2016 the Obama administration created the monument, an area of nearly 5,000 square miles, to protect whales and other endangered species and to allow marine life to recover from overfishing. Soon after Trump took office he ordered his administration to review marine sanctuaries and Ryan Zinke, Interior Department Secretary at that time, met with fishermen and fishing industry groups that were attempting to overturn the Obama legislation. During a roundtable discussion held in Maine in June 2020, Trump met with Maine's former governor Paul LePage, a Trump supporter, and commercial fishermen and signed an executive order to end the restrictions on commercial fishing. The current governor, Janet Mills, was not invited to the event. Responding to Trump's ruling a senior attorney for the Center for Biological Diversity, an organization that works to protect endangered species, said, "Gutting these safeguards attacks the very idea of marine monuments."
(See update above)
Offshore drilling
In January 2018, the Interior Department announced plans to allow drilling in nearly all U.S. waters. This would be the largest expansion of offshore oil and gas leasing ever proposed, and includes regions that were long off-limits to development and more than 100 million acres in the Arctic and the Eastern Seaboard, regions that President Obama had placed under a drilling moratorium.
Opening the Arctic National Wildlife Refuge and North Slope to drilling
The Trump administration tax bill passed in December 2017, including a provision introduced by Alaska senator Lisa Murkowski that required Interior Secretary Ryan Zinke to approve at least two lease sales for drilling in Alaska's Arctic National Wildlife Refuge (ANWR). Scientists, environmentalists and former Interior Department officials have warned that fossil fuel extraction in the ANWR could harm the landscape and the species that live there.
In September 2019, the administration said they would like to see the entire coastal plain opened for gas and oil exploration, the most aggressive of the suggested development options. The Interior Department's Bureau of Land Management (BLM) has filed a final environmental impact statement and plans to start granting leases by the end of the year. The area includes areas where caribou visit for calving and polar bears who have been driven to spend more of their time along the refuge's coastal plain due to melting ice caused by global warming have their dens. There are concerns for the Indigenous populations as well because many of them rely on subsistence hunting and fishing.
In a review of the statement the U.S. Fish and Wildlife Service said the BLM's final statement underestimated the climate impacts of the oil leases because they viewed global warming as cyclical rather than human-made. The administration's plan calls for "the construction of as many as four places for airstrips and well pads, 175 miles of roads, vertical supports for pipelines, a seawater-treatment plant and a barge landing and storage site."
On August 17, 2020, the Trump Administration finalized and announced its decision to open the ANWR to drilling. Interior Secretary David Bernhardt, formerly an oil industry lobbyist, said that the administration's oil and gas leasing program could "create thousands of jobs" and "mark a new chapter in American energy independence." Due to the fact that world markets are currently flooded bringing crude oil to historically low prices, that due to the ongoing coronavirus pandemic the market for oil has collapsed, and since Trump took office in 2017 there has been an increased awareness of the need to combat global warming, it is unlikely that any drilling would soon begin. However, Trump's decision has been seen as a way to make the opening of the region to drilling harder to undo should a new administration be voted in during the November 2020 presidential election.
In January 2021 President Trump finalized legislation to allow drilling in 18.6 million acres in the Alaska North Slope (see map above) along the Arctic Ocean. Tribal and environmental groups warned that expanding drilling will potentially imperil wildlife and Native Alaskans who count on caribou hunting for sustenance.
In June 2021,`the Biden Administration suspended all drilling in the Arctic National Wildlife Refuge and the North Slope.
Great American Outdoors Act and the LWCF
In August 2020, Trump signed the bipartisan Great American Outdoors Act, which gives billions of dollars to fix national park infrastructure. It also provides annual funding to the decades-old Land and Water Conservation Fund (LWCF). However, on November 9, 2020, Interior Secretary David Bernhardt signed an order allowing state and local leaders to veto land acquisitions made by the federal government under LWCF.
Privatization of Native American reservations
Within the Interior Department, the Bureau of Indian Affairs handles some federal relations with Native Americans. Native American reservations are estimated to contain about a fifth of the nation's oil and gas, along with vast coal reserves. In December 2016, a Trump advisory group put forth a plan to privatize Native American reservations to open them up to drilling and mining. Many Native Americans view such efforts as a violation of tribal self-determination and culture.
Trump's transition team commissioned a Native American coalition to draw up a list of proposals to guide his Indian policy. According to a Reuters investigative report, "The backgrounds of the coalition's leadership are one sign of its pro-drilling bent. At least three of four chair-level members have links to the oil industry."
Endangered species threats
In February 2018, Trump and Interior Secretary Ryan Zinke presented their recommendation for the 2019 budget. It did not grant any funding for state efforts for the recovery of endangered species. The Cooperative Endangered species Conservation Fund, a program authorized by the Endangered Species Act, supports conservation planning, habitat restoration, land acquisition, research, and education. The administration justified the budget change saying that it "is not requesting funding for these activities in order to support higher priorities."
A senior scientist with the Center for Biological Diversity said gutting the fund would push endangered species toward extinction.
"This is especially damaging because [the] funding is often the backbone of state non-game programs and helps animals across the country, from bats and butterflies to salmon and grizzlies." The former director of the U.S. Fish and Wildlife Service who served during Obama's time in office said, "We were very proud of the record we set, that we had recovered and delisted more species than all previous administrations combined. And that didn't happen by accident. It happened because we applied the resources to get species over that last mile."
In July 2018, more than two dozen pieces of "legislation, policy initiatives and amendments designed to weaken" the Endangered Species Act were introduced or voted on by congress. Former oil lobbyist David Bernhardt, the deputy interior secretary, led the push to review the endangered species act. Utah Republican representative Rob Bishop, chairman of the House Natural Resources Committee, said. "We're all aware that the Endangered Species Act hasn't undergone any significant updates in over 40 years. Now is the time to modernize this antiquated law to simultaneously benefit both endangered species and the American people." Bruce Babbitt, who served as the interior secretary under the Clinton administration, commented, "This is the first time that we've seen an orchestrated effort by the president, the Republican leaders in the House, the industry and the Interior Department all working together in a concentrated effort to eviscerate the act." Andrew Rosenberg, director of the Union of Concerned Scientists, commented, "I think the Endangered Species Act is endangered. They haven't been able to do this for 20 years, but this looks like their one chance."
In August 2019, the Department of Interior announced a list of major changes to the Endangered Species Act. Industry groups and Republican lawmakers applauded the proposed changes while critics expressed concerns as they are coming at a time of crisis when as many as one million plant and animal species are at risk of extinction. Numerous state attorneys general and environmental groups have said that they will sue the administration over the changes, alleging they are illegal because they're not grounded in scientific evidence.
One of Trump's final acts as president, on the morning of his successor's inauguration, was to pardon Robert Bowker, a man who had pled guilty decades earlier to a violation the Lacey Act involving snakes and alligators. The official statement said that Bowker had since taken interest in "animal conservation efforts."
Mexico border wall concerns
President Donald Trump's signature campaign promise was the construction of a big wall on the southern border. The administration has described the project as including a 30 ft-tall concrete and steel "big, beautiful wall", a 150 ft 'enforcement zone' which will be kept clear of vegetation, and a road. Critical habitats are on the border with Mexico in California, Arizona, New Mexico and Texas. The Endangered Species Act of 1973 and candidates for that list from the United States Fish and Wildlife Service includes ninety-three species whose ranges are near or cross the border.
Trump's proposed border wall will block the movement of threatened wildlife and interfere with the movement of animals in response to climate change and could prevent genetic exchange. Among the threatened species are the jaguar (the largest cat native to North America), the ocelot ( cats that could be making a comeback), the Mexican wolf (the smallest Gray Wolf in North America), the Sonoran pronghorn (related to giraffes, they can run and are North America's fastest land mammals), the tiny cactus ferruginous pygmy owl (who fly at about , lower than the wall), and the Quino checkerspot butterfly (who fly no higher than ).
In July 2018, citing "bypassed environmental laws, habitat destruction, and losses to conservation and scientific research", in a report published in the scientific journal BioScience thousands of scientists "expressed alarm" over the expansion of the U.S.-Mexico border wall. The report has 16 co-authors and as of July 24, 2,700, signatures from almost 50 countries.
In December 2018, the U.S. Supreme Court issued a ruling which allowed the Trump administration to waive federal environmental protection laws to construct a border wall cutting through the National Butterfly Center in Mission, Texas. The center has been called the most diverse butterfly sanctuary in the country. Habitat restoration has also attracted birds which can not be seen anywhere else in the continental U.S. The wall will also slice through the Santa Ana National Wildlife Refuge and the Bentsen-Rio Grande Valley State Park.
Yellowstone grizzly
Grizzly bears in the Lower 48 States were placed on the endangered list in 1975 because they had lost 98 percent of their historical range and the Yellowstone-area population had dropped to fewer than 140 bears. In June 2017, the Trump administration announced a decision to remove protections for Yellowstone grizzly bears under the Endangered Species Act. They argued that the population had sufficiently recovered from the threat of extinction, however numerous conservation and tribal organizations argued that the grizzly population remained genetically vulnerable. Numerous tribes revere the grizzly as sacred and they and environmentalists expressed fears about trophy hunts, livestock and logging interests, and the gas, coal, and oil extraction industries. They sued the administration (Crow Tribe et al v. Zinke) and in September 2018 they won their lawsuit and on July 30, 2019, the Yellowstone grizzly was officially returned to federal protection. At a hearing on August 1, 2019, Congresswoman Liz Cheney, Republican from Wyoming which is one of the states affected by the ruling, stated that the successful litigation by the tribes and environmentalists "was not based on science or facts" but motivated by plaintiffs "intent on destroying our Western way of life."
Threats to migratory birds from industry
The Trump administration proposal to rollback protections that have been in place for more than a century was announced in June 2020. This would greatly limit federal authority to prosecute industries for practices that kill migratory birds. The new proposal would only punish oil and gas and construction companies if they intentionally kill birds. A study done by the U.S. Fish and Wildlife Service shows that "As the legal certainty increases, fewer entities would likely implement best practices ... resulting in increased bird mortality."
Noah Greenwald, endangered species director at the Center for Biological Diversity, called the analysis "a cynical effort" to justify a policy that is "clearly bad for birds, clearly cruel and inconsistent with the MBTA in every way." The courts ruled that the legal opinion which serves as the basis for this action does not align with the intent and language of the law in August 2010. The ruling stated that the policy "runs counter to the purpose of the MBTA to protect migratory bird populations" and is "contrary to the plain meaning of the MBTA".
Endangered gray wolves
In October 2020 the Trump administration announced that they had removed grey wolves from the endangered species list. Grey wolves were put on the list in 1967 when only 1000 remained in the Lower 48 states and at this time there are less than 8,000, mostly in three Midwestern states—Minnesota, Wisconsin, and Michigan. Conservationists say that the population remains severely depleted in thousands of acres of historical wolf habitat areas in states such as Washington, California, and Oregon. They criticized the removal saying that the agency had not considered the impact that illegal hunting could have on the wolf population and concerns that in some isolated areas without connections to the larger populations they may be unable to survive.
In February 2022, a federal judge restored grey wolf protections in 45 states saying the US Fish and Wildlife Service "failed to adequately analyze and consider the impacts of partial delisting and of historical range loss on the already-listed species."
Regulation of hazardous chemicals
It has been charged that the Trump administration has attempted to change the way the federal government evaluates hazardous chemicals that may pose a risk to human health, making them more aligned with the chemical industry's wishes. Trump appointed Nancy B. Beck as a top deputy of the EPA's toxic chemical unit, while during her previous five years she had been an executive at the industry trade association American Chemistry Council for American chemical companies. Shortly after her appointment in May 2017, Beck rewrote, among others, the regulations covering the chemical, perfluorooctanoic acid, or PFOA, which has been linked to many serious health problems. Her revisions make it harder to track the health consequences of the chemical, and therefore harder to regulate.
Pesticides
In March 2017, EPA administrator Scott Pruitt denied that he had met with Dow Chemicals CEO Andrew Liveris before making a decision to deny a petition to ban Dow's chlorpyrifos pesticide that had been initiated by the Obama administration. Research has concluded that even minuscule amounts of chlorpyrifos can disrupt the development of fetuses and infants. In August, it was revealed that in fact Pruitt and other EPA officials had met with industry representatives on dozens of occasions in the weeks immediately prior to the March decision, promising them that it was "a new day" and assuring them that their wish to continue using chlorpyrifos had been heard. Ryan Jackson, Pruitt's chief of staff, said in a March 8 email that he had "scared" career staff into going along with the political decision to deny the ban, adding "[T]hey know where this is headed and they are documenting it well." Emails also indicated that the decision was closely coordinated with the White House and the Department of Agriculture. Following the decision, the American Academy of Pediatrics said they were "deeply alarmed" and urged Pruitt to take chlorpyrifos off the market saying, "There is a wealth of science demonstrating the detrimental effects of chlorpyrifos exposure to developing fetuses, infants, children and pregnant women. The risk to infant and children's health and development is unambiguous."
Wendy Cleland-Hamnett, the agency's previous top official overseeing pesticides and toxic chemicals, said she first felt concern when the EPA's new leadership decided to reevaluate a plan to ban methylene chloride, and trichloroethylene, two chemicals that have caused deaths and severe health problems. "It was extremely disturbing to me. The industry met with EPA political appointees. And then I was asked to change the agency's stand." In March 2017, Hamnett was again instructed to ignore the recommendation of EPA scientists and deny the ban of chlorpyrifos. Hamnett retired in September and was replaced by a toxicologist who has spent years helping businesses fight EPA restrictions.
In 2017, a coalition of attorneys general for several states, farm workers, and environmental groups sued then-EPA chief Scott Pruitt over his chlorpyrifos ban reversal. Saying that the EPA had "violated federal law by ignoring the conclusions of agency scientists that chlorpyrifos is harmful," on August 9, 2018, the United States Court of Appeals for the Ninth Circuit in San Francisco ordered the EPA to remove chlorpyrifos from sale in the United States within 60 days. In July 2019, the EPA announced it would not ban chlorpyrifos. In April 2021, under the Biden administration the EPA reversed the Trump ruling and restored the ban saying the EPA would follow science and "put health and safety first."
The US EPA had also recently taken a variety of actions to regulate the use of neonicotinoids, pesticides linked to declining bee numbers. In 2014, under the Obama presidency, a blanket ban was issued against the use of neonicotinoids in National Wildlife Refuges in response to concerns about off-target effects, and a lawsuit from environmental groups. In 2018, the Trump administration reversed this decision, stating that decisions on neonicotinoid usage on farms in wildlife refuges will be made on a case-by-case basis. The Trump decision also ended the policy of prohibiting large tracts of land to be used for the growing of biotech crops such as corn and soybeans in the refuges.
In 2020, the Trump EPA found that glyphosate, the main ingredient in the pesticide Roundup, did not expose people to a health risk. Its maker, Monsanto, is facing billions of dollars in payments to people who claim that glyphosate caused their cancers. In June 2022, the California Circuit Court of Appeals ordered the EPA to reexamine EPA's finding of no risk to human health because "
it was not supported by substantial evidence" and that "EPA fell short of its obligations under the Endangered Species Act by inadequately examining glyphosate’s impact on animal species and vegetation."
Lead paint standards
According to the EPA, lead poisoning is the number one environmental health threat for children ages 6 and younger. No new standards have been set since 2001, though it is agreed that the old standards need to be updated. In December 2017, after Pruitt requested six more years to regulate lead levels, a divided federal appeals court issued a writ of mandamus ordering Pruitt to regulate lead within the next 90 days. The Court called the lead paint risks for children "severe". In December 2020 the EPA announced new clearance levels for lead-contaminated dust from chipped or peeling lead-based paint. This dust can remain at the sites of lead removal activities, such as pre-1978 homes and childcare facilities. The change strengthened federal lead clearance level restrictions for the first time in almost 20 years.
PFOS and PFOA study publication withheld
Using information gained through a Freedom of Information Act request, in May 2018 it was learned that January 2018 emails between the EPA, the White House, and the Department of Health and Human Services (DHHS) showed an apparent decision to withhold the results of a study done by the DHHS Agency for Toxic Substances and Disease Registry (ATSDR) that was planned for publication. Looking at the chemicals widely known as PFOS and PFOA, the study showed that they endanger human health at a far lower level than EPA has previously called safe. They have been found to contaminate several areas, reaching water supplies near military bases, chemical plants, and other sites in the Mid-Atlantic and Midwest. One White House email said, "The public, media, and Congressional reaction to these numbers is going to be huge. The impact to EPA and [the Defense Department] is going to be extremely painful. We (DoD and EPA) cannot seem to get ATSDR to realize the potential public relations nightmare this is going to be."
When questioned about the release of the study the White House referred questions to DHHS, which confirmed that the study has no scheduled release date. Pruitt's chief of staff, Ryan Jackson, defended EPA's decision to withhold the results of the study to "ensure that the federal government is responding in a uniform way to our local, state, and Congressional constituents and partners."
Members of Congress had a very strong reaction to the release of information regarding the withholding of the study, including Representative Brian Fitzpatrick, Representative Peter Welch, and Senator Patrick Leahy.
Pruitt conceded that his agency should take "concrete action" related to chemicals like PFAS, but testified that he was unaware of any delay in the release of the study.<ref name=Senate>Legal defense fund in place — Pruitt , E&E News, Kevin Bogardus, May 16, 2018. Retrieved May 17, 2018.</ref> On May 16 Pruitt announced a "leadership summit" on PFOA, PFOS and related chemicals scheduled for the following week.
When the "invitation only" leadership summit was held on May 22 and 23, news agencies, including Politico, E&E News, and CNN were initially barred from the hearing. An Associated Press journalist was told she was not on the invitation list and forcibly removed from the room. CNN commented, "We understand the importance of an open and free press and we hope the EPA does, too," Jahan Wilcox, speaking for the EPA, justified the agency's actions by claiming the summit was not a "federal advisory committee event, " to which the public would be entitled to access, but instead was an opportunity "for EPA's state, tribal, and federal government partners and national organizations to share a range of individual perspectives" regarding PFASs.
Senator Tom Udall, the ranking Democrat on a committee with oversight of EPA, did not agree. He sent a letter to Pruitt saying "Clean drinking water is a public health issue that does not belong behind closed doors."
Toxic waste clean-up
In attempts to lift regulations on oil, mining, drilling, and farming industries, the Trump administration proposed a 31% budget cut to the EPA that would result in reduced initiatives to protect water and air quality, leaving much of the effort up to the states. Environmentalists fear that these cuts will result in health problems. EPA budget cuts are also expected to lead to decreased regulation of hydraulic fracturing (fracking), which would result in less federal oversight of clean-up projects in these areas.
EPA administrator Scott Pruitt hired former Oklahoma banker Albert Kelly to head the Superfund program, which is responsible for cleaning up the nation's most contaminated land. Kelly completely lacked any experience with environmental issues, and had just received a lifetime ban from working in banking, his career until then.
Clean water legislation
Rollback of Obama administration regulations
Much of the Trump administration's efforts to decrease pollution regulation involved directly rescinding or overturning pollution regulations enacted under the Obama administration. In February 2017, Trump signed a resolution overturning President Obama's Stream Protection Rule, after being in effect for less than 30 days. When he signed the resolution repealing the rule, Trump predicted that striking down the rule would save thousands of U.S. mining-related jobs. The administration has also proposed a rollback on the Obama administration's extension of federal jurisdiction over lands protected by the Clean Water Act in attempts to reduce water pollution in areas surrounding toxic waste facilities.
Great Lakes Restoration Initiative
During Trump's first year in office he called for eliminating the Great Lakes Restoration Initiative, initiated by President Obama, and in the following two years he called for a 90% cut to the program. However Congress overruled him, giving the program $300 million each year. In 2019 he cut the program from $300 million to just $30 million. In March 2019, speaking at a rally in Michigan, which borders Lake Michigan, he commented:
I support the Great Lakes. Always have. They are beautiful. They are big, very deep. Record deepness, right? And I am going to get, in honor of my friends, full funding of $300 million for the Great Lakes Restoration Initiative which you have been trying to get for over 30 years. So, we will get it done.
Clean Water Rule
Soon after taking office, on February 28, 2017, President Trump signed an executive order to allow the EPA administrator to revise or rescind the Obama era Clean Water Rule, also referred to as Waters of the United States (WOTUS). The executive order cited a need to pursue "economic growth" and to avoid "regulatory uncertainty."
The Obama rule placed pollution limits on about 60 percent of the nation's bodies of water, protecting both large bodies of water and the tributaries, streams, and wetlands that drain into them. Research cited by the EPA shows that one in three Americans get their water from public drinking water systems which are partly sourced from streams protected by the Clean Water Rule. These streams may be in danger of pollution by industrial and agricultural waste, sewage, radioactive materials and a large number of other pollutants now covered by the Clean Water Rule. The Audubon Society has expressed concerns about a repeal of the Rule. They write at their website: "...the Trump administration's intent is clear: to reverse Obama-era environmental protections no matter what, even if they have been effective at protecting avian and human life." On September 12, 2019, the Trump administration repealed the Clean Water Rule.
In August 2021 a federal judge nullified the Trump rule regarding the scope of waterways under federal protection which had significantly cut back on the range of waterways under federal supervision leaving vast areas vulnerable to potential pollution and degradation. The judge concluded that Trump officials were guilty of "serious errors" when putting the rule together and the Trump-era provisions that were put in place could culminate in "serious environmental harm."
In November 2021 the Army Corps of Engineers and the EPA announced that they would undo the Trump administration water regulations. The EPA said the new wording would be "updated to reflect consideration of Supreme Court decisions."
Clean Water Act
On April 10, 2019, President Trump issued two executive orders aimed at boosting the production of fossil fuels by cutting back on regulations he sees as"unnecessary red tape". The new regulations benefit energy companies by making it more difficult for states to block projects such as oil pipelines by using the Clean Water Act. Currently under Section 401 of the Clean Water Act, states can reject any project if they believe it could impact the state's water. Under Trump's order any decisions related to permits will no longer be made by the state secretary, but by the president.
On April 23, 2020, the Supreme Court ruled in County of Maui v. Hawaii Wildlife Fund that the federal Clean Water Act applies to pollution of underground water that flows into nearby bodies of water and streams. The Trump administration argued that the law didn't apply to groundwater. The decision came after a sewage treatment plant in Hawaii claimed that the law covered only "point sources" of pollution, such as an effluent pipe. Following months of investigation it was shown that the treatment plant was contaminating underground water which was seeping into the nearby ocean bay and harming sealife. The case was argued by Earth Justice; it was widely watched as a technical test case for future decisions related to the Clean Water Act.
In June 2020, the EPA finalized a rule which will end the long-standing rights of states, tribes and the public to object to federal permits for projects that could pollute waterways. The energy industry sees the change as a way to speed up oil pipelines and other projects, while environmentalists are concerned that it could undercut state and tribal efforts to safeguard rivers and drinking water. In June 2021 the administration of President Joe Biden announced that it would begin a new rulemaking to reverse the 2019/2020 replacement rule.
New lead standards
Saying "We are delivering on the president's commitment that all Americans have access to clean and safe drinking water," on October 10, 2019, the administration announced their proposals for new regulations on lead and copper in drinking water. The draft plan includes requirements that water utilities disclose inventories of lead service pipes and requires that daycare centers and schools report elevated lead levels within 24 hours rather than the current standard of 30 days. However, environmental activists are critical of the relaxation of other standards that have been proposed that slow the timetable for the replacement of lead pipes found to contain high levels of lead, extending the replacement time from 7 percent of lead service lines each year to just 3 percent. The Natural Resources Defense Council calls the slower timetable for lead pipe replacement "a huge weakening change that will swallow up the few small improvements in the proposal."
Clean Air Act standards
The Clean Air Act is a federal law designed to control air pollution on a national level. In June 2017, Pruitt announced that he would delay designating which areas met new National Ambient Air Quality Standards for ozone, a byproduct of pollutants from burning fossil fuels that has been linked to asthma. In August 2017, Pruitt said he would reverse that decision after being sued by 16 state attorneys general. In March 2018, Pruitt was finally ordered to do so by U.S. district judge Haywood Stirling Gilliam Jr.
As of May 2020, the Trump administration was trying to roll back restrictions on ethylene oxide, a carcinogenic air pollutant. It is widely used to produce antifreeze, fumigate crops, and sterilize medical equipment.
Coal emission standards
On August 21, 2018, the Trump administration announced plans to cut back Obama's coal emissions standards for coal-fired power plants, calling them "overly prescriptive and burdensome." The Trump plan increases the leeway given states to make their own decisions on coal emission standards, saying it "empowers states, promotes energy independence, and facilitates economic growth and job creation." Critics say the proposal would allow states to run and extend the life of older less efficient power plants and use less stringent emission guidelines for establishing new plants.The New York Times reported in October 2019 that the Trump EPA planned to roll back or eliminate a 2015 limitation on coal-fired power plants releasing heavy metals like arsenic, lead and mercury into water supplies. In April 2020, the administration announced that the EPA had changed the way that they calculate the benefits of mercury controls. The changes will reduce the positive health effects of regulations on paper and raise their economic costs so as to loosen restrictions on any pollutant that the fossil fuel industry has deemed too costly to control. Environmental lawyers say that the new method will undermine the legal underpinnings of controls on mercury and many other pollutants. David Konisky, a professor of public and environmental affairs, said, "That is the big unstated goal. This is less about mercury than about potentially constraining or handcuffing future efforts by the E.P.A. to regulate air pollution."
Landscape conservation cooperatives
Established under the Obama administration, Landscape conservation cooperatives (LCC) are research centers that address broad issues such as flooding, species extinction, and climate change. When Trump entered office he eliminated LCC funding in his budget proposals. However, following pressure from state fish and wildlife agencies, NGOs and tribal groups, Congress restored the LCC funding. In April 2019, it was reported that while Congress had set aside funding for LCC projects, the Trump administration had either closed 16 of the 22 research centers or put them on indefinite hiatus. Another six remain open receiving support from other sources.
Rollback of the National Environmental Policy Act
Trump has frequently criticized environmental rules calling them "burdensome" and responsible for slowing work on infrastructure projects. In January 2020, Trump proposed changes in the Environmental impact statement process (EIS) as required by the National Environmental Policy Act (NEPA), which was passed in 1969. NEPA changed environmental oversight in the U.S. by requiring federal agencies to consider whether a project would harm the air, land, water or wildlife. Thus, NEPA has prevented federal agencies from dividing large projects into smaller chunks to make the environmental impact appear to be insignificant. For example, the proposal for a forest road would require that the impact of logging that it was built to accommodate be evaluated as well. NEPA also requires that the public be allowed to review and provide input on proposals. Democratic lawmakers and environmental groups have voiced concerns that Trump's proposals would gut environmental protections and remove the public's right to know and make comments of project's potential harms to the environment. January 9, 2020 PBS NewsHour
In June 2020, Trump further weakened standards when he signed an executive order to waive long-standing environmental laws and speed up approval for pipelines, highways, new mines, and other projects. On June 19 he declared that the COVID-19 pandemic had given rise to an economic "emergency" which evoked a section of federal law allowing "action with significant environmental impact" without observing normal requirements imposed by laws such as the National Environmental Policy Act or the Endangered Species Act.
In October 2021, the Biden Administration White House Council on Environmental Quality announced it planned to restore the NEPA policies which were rolled back under Trump. The changes will come in phases, beginning with reinstating the key aspects of the laws that were dismantled by the Trump administration.
Climate change
Although in the scientific literature there is overwhelming scientific consensus that global surface temperatures have increased in recent decades and that the trend is caused by human-induced emissions of greenhouse gases, neither Trump nor any of the department heads he has appointed believe that global warming is human-related. Speaking in a 2017 interview he stated, "You have scientists on both sides of it. My uncle was a great professor at MIT for many years, Dr. John Trump, and I didn't talk to him about this particular subject, but I have a natural instinct for science, and I will say that you have scientists on both sides of the picture." Calling himself "an environmentalist", he said, "Everything I want and everything I have is clean. Clean is very important – water, air. I want absolutely crystal clear water and I want the cleanest air on the planet and our air now is cleaner than it's ever been. Very important to me."
Following Trump's election large amounts of climate information from the EPA website was altered or removed. There was widespread concern among environmentalists and scientists and a coalition of scientific and academic groups began to make copies of the EPA web pages before they were deleted. According to the Environmental Data & Governance Initiative which tracks changes to government websites under the Trump administration, over 200 web pages providing climate information were omitted during Trump's first year in office. Other pages were altered to remove mentions of climate and climate change. In August 2017, the Trump administration rolled back regulations that required the federal government to account for climate change and sea-level rise when building infrastructure.
Responding to a 2018 government-funded study which warned of potentially catastrophic climate change impacts, Trump said he had read part of the report but did not believe it.
In May 2019, The New York Times reported that the White House-appointed director of the United States Geological Survey (USGS), James Reilly, who has background in petroleum geology, ordered that the USGS only project impacts of climate change to 2040, instead of their previous practice of projecting to 2099. Thus, according to the Times, the 2022 National Climate Assessment, or other government reports on science, will not automatically include "such worst-case scenario projections". Models show that carbon emissions will only significantly change Earth's rate of warming around 2050. The Times also reported that the Trump administration is also planning to create a climate change review panel headed by William Happer, who is presently serving on Trump's United States National Security Council. Happer has repeatedly publicly stated, "the demonization of carbon dioxide is just like the demonization of the poor Jews under Hitler."
In June 2019, Trump's White House reportedly tried to prevent a State Department intelligence analyst, Rod Schoonover, from testifying to Congress about "possibly catastrophic" effects of human-caused climate change. Trump's White House reportedly prevented Schoonover's written testimony from being included in the official Congressional Record because it "doesn't reflect the coordinated [intelligence committee] position, or the administration's position". The National Security Council offered many criticisms of Schoonover's testimony, including a comment that "a consensus of peer reviewed literature has nothing to do with the truth." The New York Times quoted two anonymous sources as saying that the comments came from William Happer, a denier of the scientific consensus on global warming. The White House Office of Legislative Affairs also reportedly proposed removing five pages of testimony about the "Scientific Baseline" regarding climate change and the "Stresses to Human and Societal Systems" posed by climate change. Schoonover resigned July 2019. In 2020, looking back at the Trump administration's first term policy changes, some environmentalists believe that a second Trump term would mean severe and irreversible changes in the climate.
During the summer of 2020 numerous large fires burned thousands of acres with the loss of many homes and lives. Scientists report that they are related to climate changes which have increased the likelihood of more fires that will burn more widely and intensely than in the past. Trump was briefed in September on the status of fires in California–more than two dozen were burning at that time. Wade Crowfoot, California's secretary for natural resources and other officials repeatedly urged him to consider the role of global warming. Trump replied, "It'll start getting cooler. You just—you just watch" and Crowfoot replied, "I wish science agreed with you." Trump replied, "Well, I don't think science knows, actually."
The Sabin Center for Climate Change listed 175 deregulations made by the Trump administration.
Paris Climate Agreement
On June 1, 2017, Trump announced United States withdrawal from the Paris Agreement, causing the U.S. to become the third out of 197 nations worldwide to not sign the agreement. As of 2018 the remaining two nations signed and the U.S. is the only nation that has not ratified the Paris Agreement. Since the terms of the agreement prohibit any country from withdrawing during the first three years, the Trump decision to withdraw will not be finalized until November 2019 and then it will not become official for another year after that, the day after the 2020 presidential election.
Prior to withdrawal, the U.S. had pledged to reduce greenhouse gas emissions by 26–28% below 2005 levels by 2025 and assign $3 million in aid to foreign countries combating climate change. The withdrawal was supported by several Republican lawmakers who felt that backing out was in-line with Trump's "America First" policy and goals to diverge from the environmental policies of the Obama administration. The announcement has been criticized by many national and international leaders, domestic politicians, business leaders and academics, as well as a large majority of American citizens (7 out of 10 according to a study by the Yale Program on Climate Change Communication).
Trump opposed the agreement on the grounds that it would compromise U.S. sovereignty and cause many Americans to lose their jobs. Proponents of the agreement argue, however, that backing out will result in a loss for our economy as new green jobs are offered instead to competitors overseas. Trump also announced his attempts to reach a negotiation with leaders involved in the agreement, who responded saying that the accord was "non-negotiable."
The process of withdrawal is expected to take several years, and in the meantime there has been a vocal resistance on the state and local levels. Hawaii became the first state to independently commit to the goals initially lined out by the accord. Shortly after Trump's announcement, state governments in California, New York, and Washington founded the United States Climate Alliance to continue advancing the objectives of the Paris Agreement. The sentiment has also been expressed by other state governors, by mayors and businesses, and the alliance now has 10 states with governors of both the Democratic and Republican parties pledging to abide by the agreement.New York Times, June 1, 2017, Bucking Trump, These Cities, States and Companies Commit to Paris Accord Additionally, shortly after withdrawal California governor Jerry Brown met personally with President Xi Jinping of China to declare the states' compliance with the Paris Accord. In September 2017, some administration officials stated that the administration remains open to staying in the agreement "under the right conditions."
Clean Power Plan
The Clean Power Plan, first proposed in 2014, was an Obama administration policy aimed at combating global warming. The plan's goal was to move away from coal and instead use renewable energy or gas to generate electricity, which would reduce particulate matter in the environment. On March 1, 2017, Murray Energy Corporation sent a letter to the Trump administration with an Action Plan "which will help getting America's coal miners back to work." Doing away with Obama's Clean Power Plan was at the top of the list. Their second priority was doing away with the "endangerment finding" (the legal and scientific foundation for climate action) in the Clean Air Act. Their third priority was the elimination of tax credits for solar panels and windmills, and fourth was the withdrawal from the Paris Climate Accord. Other suggestions included cutting back of EPA staffing to at least half. On March 28, 2017, Trump signed an executive order to withdraw and rewrite Obama's Clean Power Plan, aimed at reviving the coal mining industry and unburdening the automotive industry. EPA staff emails obtained through a Freedom of Information Act request submitted by the Environmental Defense Fund in 2018 show that, within days of Trump's announcement, EPA director Scott Pruitt directed EPA staff to remove much of the climate change information from the agency's website and "[modify] search results for 'Clean Power Plan' to feature a page touting Trump's executive order featuring a photo of the president posing with smiling coal miners, Pruitt and other members of his cabinet."
In May 2019, Administrator Andrew Wheeler announced plans to change the way the EPA calculates health risks of air pollution, resulting in the reporting of far fewer health-related deaths and making it easier to roll back the Obama administration's Clean Power Plan. The Trump administration has argued that the Obama administration over-estimated the health risks for various environmental regulations, to the detriment of industry. Administrator Wheeler defended the change as a way to rectify inconsistencies in the current cost-benefit analyses used by the agency. The new plan is known as the Affordable Clean Energy rule (ACE). The planned changes were hailed by industry representatives.
Environmentalists are fighting the administration's power plant regulation rollbacks. In April 2020, several environmental groups and twenty-two states filed their first legal briefs in an attempt to fight the administration's attempt to loosen emission standards. Environmentalists were concerned that the new standards are so limited in the pollution controls it requires power producers to install that it could hamstring future administrations from addressing climate-altering pollution. On January 19, 2021, the federal United States Court of Appeals for the District of Columbia Circuit ruled the Affordable Clean Energy rule violated the Clean Air Act, leaving the administration of incoming President Joe Biden to make a rule from scratch.
Carbon Monitoring System
The Carbon Monitoring System (CMS) is a NASA remote monitoring system used to measure carbon dioxide and methane, using instruments placed in satellites and aircraft. The information provided by the CMS can be used to verify the national emission cuts agreed to in the Paris climate accords. CMS has also supported other research projects including providing information that has helped countries assess their carbon emissions from deforestation and forest degradation. In April 2018, President Trump ended funding for the CMS.
2016 methane rule
In September 2018, the Trump administration submitted plans to roll back Obama-era legislation designed to reduce venting, flaring, and other emissions of methane gas by the oil and gas industry. At that time it was believed that the proposed new rule would put an additional 380,000 tons of methane into the atmosphere from 2019 to 2025, an amount that is roughly equivalent to more than 30 million tons of carbon dioxide. The Trump EPA noted that while increased pollution as a result of the proposal "may also degrade air quality and adversely affect health and welfare," their plan will save $75 million in regulatory costs annually. Governor Jerry Brown of California called the administration's proposal "perhaps the most obvious and dangerous and irresponsible action by Mr. Trump – and that's saying quite a lot." In August 2020, Trump rolled back the methane rule even as new scientific studies showed that methane is contributing even more to global warming than previously thought.
Disbanding the social cost of carbon group
In March 2017, Trump signed an executive order which disbanded the Interagency Working Group on Social Cost of Greenhouse Gases and withdrew the documents in which the group set forth a social cost of carbon which monetized the effects of greenhouse gas emissions. The system was introduced by Obama who claimed that "no challenge poses a greater threat to future generations than climate change." His administration set the social cost of Carbon at $51 per ton. Trump slashed the cost to $7 per ton. Forbes wrote, "President Trump's new order is an about face, directing agencies to evaluate many of those regulations and to 'suspend, revise, or rescind' them." In February 2021, President Biden restored the Obama-era working group and brought the cost of carbon back up to $51 (~$ in ) per ton. In February 2022, a Trump-appointed judge reversed the social cost of carbon back to back to Trump's estimate of $7 per ton. The reversal was a result of a lawsuit of 10 Republican attorneys general.
2018 National Climate Assessment
In November 2018, the government released its Fourth National Climate Assessment, largely compiled during the Obama Administration. The report, issued every four years, is written by 13 federal agencies and more than 300 leading climate scientists. The report warns of the potential catastrophic impacts of climate change including changes to the availability of food and water, increasing extreme weather and decreasing air quality, and the spread of new diseases by insects and pests. When questioned about the report President Trump replied, "I've seen it. I've read some of it. It's fine [but] I don't believe it."
Following its release the Trump Administration criticized the report saying it was not factually based. Acting EPA head Andrew Wheeler said he "wouldn't be surprised if the Obama administration directed authors to the worst-case scenario." Wheeler's statement was followed by an EPA press release which said that Wheeler "was right" adding, "In fact, the Obama administration did just that." The EPA used a report done by the Daily Caller, a conservative website founded by Fox News pundit Tucker Carlson, as proof of their claims. FactCheck.Org found the Caller's claims to be "false, exaggerated or unsubstantiated."
In October, the United Nations Intergovernmental Panel on Climate Change released a report that had been commissioned by policymakers at the Paris climate talks in 2016. The report, authored by the world's leading climate scientists, warned there are only 12 years for global warming to be kept to a maximum of 1.5C, beyond which "even half a degree will significantly worsen the risks of drought, floods, extreme heat and poverty for hundreds of millions of people."
G7 meetings
Trump attended the 44th G7 summit held in Canada in 2018 and the 45th G7 summit held in France in 2019. G7 Summits are conferences held between industrialized nations to discuss world affairs. Trump arrived late for the 2018 meeting, missing the full discussions on gender equality. He left early to attend a meeting with Kim Jong Un, choosing to not take part in the discussions about climate change and cleaning up the oceans which were being held on the third day of the summit meetings.
On the third day of the 2019 G7 talks world leaders discussed climate change, biodiversity, and warming oceans. A spokesperson said Trump had to skip the discussion due to a scheduled meeting with Chancellor Angela Merkel and Prime Minister Narendra Modi, although they were both attending the climate meeting. Later in the day when reporters asked him about the climate session he replied, "We're having it in a little while." although the meeting had already taken place. At a press conference Trump said he was "an environmentalist" adding, "I think I know more about the environment than most people."
The 46th G7 summit was scheduled to be held somewhere in the United States in 2020. In October 2019, Trump's chief of staff Mick Mulvaney announced that the event would be held at the Trump National Doral Miami, a golf resort in Florida which is owned by Trump. Mulvaney told reporters "Climate change will not be on the agenda." The state of Florida is the state most vulnerable to the effects of global warming such as rising ocean levels and more severe storms. The 46th G7 summit was cancelled due to the COVID-19 pandemic.
Lawsuits
During its first few months, the Trump administration rescinded rules limiting mercury and air toxins from power plants, limiting water pollution from coal plants, banning the pesticide chlorpyrifos, and banning methane emissions from landfills, among other rules, which has resulted in lawsuits from various environmental groups such as the Environmental Defense Fund and the Natural Resources Defense Council.
Some lawsuits against the Trump administration's regulation rollbacks have been successful, such as a lawsuit from the Environmental Defense Fund and other environmental groups against the administration's decision to suspend a rule which limited methane emissions from oil and gas wells, a decision which was overturned by the United States Court of Appeals for the District of Columbia Circuit. Following legal action, the administration has also reversed its decision to do away with an Obama-era plan requiring dentists to prevent about five tons of mercury, used in their practice, from getting into the nation's waterways.
By February 2018, New York's attorney general Eric Schneiderman had filed over 50 lawsuits opposing the Trump administration's environmental revisions, saying New York had "beaten back" several of the administration's deregulation attempts, "from energy efficiency rollbacks to smog."
In November 2022, the United States Court of Appeals for the Ninth Circuit, overruled a 3-judge panel of the court and scheduled a rehearing of the case against the Trump administration-proposed land swap in Alaska to allow a road through the Izembek National Wildlife Refuge. In an unusual action, President Jimmy Carter filed a statement of support for the environmental-groups' lawsuit, saying the swap violated the Alaska National Interest Lands Conservation Act (Anilca). Anilca was passed in 1980 near the end of Carter's term in office. Carter said the act "may be the most significant domestic achievement of my political life" at the time of his filing.
Commentary
Trump environmental policies drew comments from environmentalists and others.
Noam Chomsky
Speaking in April 2020 during the coronavirus emergency, Noam Chomsky noted that when Trump and his administration released their budget for the coming year they had defunded the CDC and other government institutions responsible for health while increasing the administration's funding for fossil fuel production. While calling the pandemic "bad and serious", Chomsky said the U.S. will recover, however, "We're not going to recover from the melting of the polar ice sheets, which is leading to a feedback effect, well known, that increases — as they melt, there's less reflective surface, more absorption in the dark seas. The warming that's melting increases. That's just one of the factors that's leading to destruction, unless we do something about it."
Biden administration's restoration of pre-Trump policies
Writing in January 2021, The New York Times noted that while President Biden had run on a policy "to restore environmental protections frayed over the past four years [and] ordered the review of more than 100 rules and regulations on air, water, public lands, endangered species and climate change that were weakened or rolled back by his predecessor," it could take two to three years or even most of Biden's term in office to restore many of the previous environmental rules. While The Times'' noted that in a limited number of cases Biden would be able to use executive authority to cancel some projects, such as the Keystone XL pipeline, others could take years.
See also
Carbon bubble
List of lawsuits involving Donald Trump
March for Science
People's Climate March (2017)
Trump administration political interference with science agencies
Space-based measurements of carbon dioxide, * Greenhouse Gases Observing Satellite, and TanSat
References
2017 in the environment
Environmental policy in the United States
Policies of Donald Trump
Presidency of Donald Trump
Climate change denial
Climate change controversies
Trump administration controversies
Articles containing video clips
Trumpism
|
Rifle Creek Dam is owned by Mount Isa Mines. A concrete arch dam, it was constructed in 1929 to replace the earlier Experimental Dam (the first arch dam in Queensland, completed in September 1925) as the primary water supply to the town of Mt Isa, and the mine. The initial full supply volume was 600 million gallons (2,727 megalitres), the spillway was raised in 1953, and the current full capacity is 9,500 megalitres. The dam was replaced as Mt Isa's primary water supply by Lake Moondarra following the completion of that dam in 1958. Rifle Creek Dam now serves as a backup water supply for Mt Isa Mines.
See also
List of dams and reservoirs in Australia
References
Reservoirs in Queensland
North West Queensland
Dams in Queensland
|
```objective-c
/*
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that copyright
* notice and this permission notice appear in supporting documentation, and
* that the name of the copyright holders not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. The copyright holders make no representations
* about the suitability of this software for any purpose. It is provided "as
* is" without express or implied warranty.
*
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#ifndef __DRM_CONNECTOR_H__
#define __DRM_CONNECTOR_H__
#include <linux/list.h>
#include <linux/llist.h>
#include <linux/ctype.h>
#include <linux/hdmi.h>
#include <linux/notifier.h>
#include <drm/drm_mode_object.h>
#include <drm/drm_util.h>
#include <drm/drm_property.h>
#include <uapi/drm/drm_mode.h>
struct drm_connector_helper_funcs;
struct drm_modeset_acquire_ctx;
struct drm_device;
struct drm_crtc;
struct drm_encoder;
struct drm_panel;
struct drm_property;
struct drm_property_blob;
struct drm_printer;
struct drm_privacy_screen;
struct edid;
struct i2c_adapter;
enum drm_connector_force {
DRM_FORCE_UNSPECIFIED,
DRM_FORCE_OFF,
DRM_FORCE_ON, /* force on analog part normally */
DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
};
/**
* enum drm_connector_status - status for a &drm_connector
*
* This enum is used to track the connector status. There are no separate
* #defines for the uapi!
*/
enum drm_connector_status {
/**
* @connector_status_connected: The connector is definitely connected to
* a sink device, and can be enabled.
*/
connector_status_connected = 1,
/**
* @connector_status_disconnected: The connector isn't connected to a
* sink device which can be autodetect. For digital outputs like DP or
* HDMI (which can be realiable probed) this means there's really
* nothing there. It is driver-dependent whether a connector with this
* status can be lit up or not.
*/
connector_status_disconnected = 2,
/**
* @connector_status_unknown: The connector's status could not be
* reliably detected. This happens when probing would either cause
* flicker (like load-detection when the connector is in use), or when a
* hardware resource isn't available (like when load-detection needs a
* free CRTC). It should be possible to light up the connector with one
* of the listed fallback modes. For default configuration userspace
* should only try to light up connectors with unknown status when
* there's not connector with @connector_status_connected.
*/
connector_status_unknown = 3,
};
/**
* enum drm_connector_registration_state - userspace registration status for
* a &drm_connector
*
* This enum is used to track the status of initializing a connector and
* registering it with userspace, so that DRM can prevent bogus modesets on
* connectors that no longer exist.
*/
enum drm_connector_registration_state {
/**
* @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
* but has yet to be exposed to userspace. There should be no
* additional restrictions to how the state of this connector may be
* modified.
*/
DRM_CONNECTOR_INITIALIZING = 0,
/**
* @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
* and registered with sysfs, as such it has been exposed to
* userspace. There should be no additional restrictions to how the
* state of this connector may be modified.
*/
DRM_CONNECTOR_REGISTERED = 1,
/**
* @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
* to userspace and has since been unregistered and removed from
* userspace, or the connector was unregistered before it had a chance
* to be exposed to userspace (e.g. still in the
* @DRM_CONNECTOR_INITIALIZING state). When a connector is
* unregistered, there are additional restrictions to how its state
* may be modified:
*
* - An unregistered connector may only have its DPMS changed from
* On->Off. Once DPMS is changed to Off, it may not be switched back
* to On.
* - Modesets are not allowed on unregistered connectors, unless they
* would result in disabling its assigned CRTCs. This means
* disabling a CRTC on an unregistered connector is OK, but enabling
* one is not.
* - Removing a CRTC from an unregistered connector is OK, but new
* CRTCs may never be assigned to an unregistered connector.
*/
DRM_CONNECTOR_UNREGISTERED = 2,
};
enum subpixel_order {
SubPixelUnknown = 0,
SubPixelHorizontalRGB,
SubPixelHorizontalBGR,
SubPixelVerticalRGB,
SubPixelVerticalBGR,
SubPixelNone,
};
/**
* enum drm_connector_tv_mode - Analog TV output mode
*
* This enum is used to indicate the TV output mode used on an analog TV
* connector.
*
* WARNING: The values of this enum is uABI since they're exposed in the
* "TV mode" connector property.
*/
enum drm_connector_tv_mode {
/**
* @DRM_MODE_TV_MODE_NTSC: CCIR System M (aka 525-lines)
* together with the NTSC Color Encoding.
*/
DRM_MODE_TV_MODE_NTSC,
/**
* @DRM_MODE_TV_MODE_NTSC_443: Variant of
* @DRM_MODE_TV_MODE_NTSC. Uses a color subcarrier frequency
* of 4.43 MHz.
*/
DRM_MODE_TV_MODE_NTSC_443,
/**
* @DRM_MODE_TV_MODE_NTSC_J: Variant of @DRM_MODE_TV_MODE_NTSC
* used in Japan. Uses a black level equals to the blanking
* level.
*/
DRM_MODE_TV_MODE_NTSC_J,
/**
* @DRM_MODE_TV_MODE_PAL: CCIR System B together with the PAL
* color system.
*/
DRM_MODE_TV_MODE_PAL,
/**
* @DRM_MODE_TV_MODE_PAL_M: CCIR System M (aka 525-lines)
* together with the PAL color encoding
*/
DRM_MODE_TV_MODE_PAL_M,
/**
* @DRM_MODE_TV_MODE_PAL_N: CCIR System N together with the PAL
* color encoding. It uses 625 lines, but has a color subcarrier
* frequency of 3.58MHz, the SECAM color space, and narrower
* channels compared to most of the other PAL variants.
*/
DRM_MODE_TV_MODE_PAL_N,
/**
* @DRM_MODE_TV_MODE_SECAM: CCIR System B together with the
* SECAM color system.
*/
DRM_MODE_TV_MODE_SECAM,
/**
* @DRM_MODE_TV_MODE_MAX: Number of analog TV output modes.
*
* Internal implementation detail; this is not uABI.
*/
DRM_MODE_TV_MODE_MAX,
};
/**
* struct drm_scrambling: sink's scrambling support.
*/
struct drm_scrambling {
/**
* @supported: scrambling supported for rates > 340 Mhz.
*/
bool supported;
/**
* @low_rates: scrambling supported for rates <= 340 Mhz.
*/
bool low_rates;
};
/*
* struct drm_scdc - Information about scdc capabilities of a HDMI 2.0 sink
*
* Provides SCDC register support and capabilities related information on a
* HDMI 2.0 sink. In case of a HDMI 1.4 sink, all parameter must be 0.
*/
struct drm_scdc {
/**
* @supported: status control & data channel present.
*/
bool supported;
/**
* @read_request: sink is capable of generating scdc read request.
*/
bool read_request;
/**
* @scrambling: sink's scrambling capabilities
*/
struct drm_scrambling scrambling;
};
/**
* struct drm_hdmi_dsc_cap - DSC capabilities of HDMI sink
*
* Describes the DSC support provided by HDMI 2.1 sink.
* The information is fetched fom additional HFVSDB blocks defined
* for HDMI 2.1.
*/
struct drm_hdmi_dsc_cap {
/** @v_1p2: flag for dsc1.2 version support by sink */
bool v_1p2;
/** @native_420: Does sink support DSC with 4:2:0 compression */
bool native_420;
/**
* @all_bpp: Does sink support all bpp with 4:4:4: or 4:2:2
* compressed formats
*/
bool all_bpp;
/**
* @bpc_supported: compressed bpc supported by sink : 10, 12 or 16 bpc
*/
u8 bpc_supported;
/** @max_slices: maximum number of Horizontal slices supported by */
u8 max_slices;
/** @clk_per_slice : max pixel clock in MHz supported per slice */
int clk_per_slice;
/** @max_lanes : dsc max lanes supported for Fixed rate Link training */
u8 max_lanes;
/** @max_frl_rate_per_lane : maximum frl rate with DSC per lane */
u8 max_frl_rate_per_lane;
/** @total_chunk_kbytes: max size of chunks in KBs supported per line*/
u8 total_chunk_kbytes;
};
/**
* struct drm_hdmi_info - runtime information about the connected HDMI sink
*
* Describes if a given display supports advanced HDMI 2.0 features.
* This information is available in CEA-861-F extension blocks (like HF-VSDB).
*/
struct drm_hdmi_info {
/** @scdc: sink's scdc support and capabilities */
struct drm_scdc scdc;
/**
* @y420_vdb_modes: bitmap of modes which can support ycbcr420
* output only (not normal RGB/YCBCR444/422 outputs). The max VIC
* defined by the CEA-861-G spec is 219, so the size is 256 bits to map
* up to 256 VICs.
*/
unsigned long y420_vdb_modes[BITS_TO_LONGS(256)];
/**
* @y420_cmdb_modes: bitmap of modes which can support ycbcr420
* output also, along with normal HDMI outputs. The max VIC defined by
* the CEA-861-G spec is 219, so the size is 256 bits to map up to 256
* VICs.
*/
unsigned long y420_cmdb_modes[BITS_TO_LONGS(256)];
/** @y420_dc_modes: bitmap of deep color support index */
u8 y420_dc_modes;
/** @max_frl_rate_per_lane: support fixed rate link */
u8 max_frl_rate_per_lane;
/** @max_lanes: supported by sink */
u8 max_lanes;
/** @dsc_cap: DSC capabilities of the sink */
struct drm_hdmi_dsc_cap dsc_cap;
};
/**
* enum drm_link_status - connector's link_status property value
*
* This enum is used as the connector's link status property value.
* It is set to the values defined in uapi.
*
* @DRM_LINK_STATUS_GOOD: DP Link is Good as a result of successful
* link training
* @DRM_LINK_STATUS_BAD: DP Link is BAD as a result of link training
* failure
*/
enum drm_link_status {
DRM_LINK_STATUS_GOOD = DRM_MODE_LINK_STATUS_GOOD,
DRM_LINK_STATUS_BAD = DRM_MODE_LINK_STATUS_BAD,
};
/**
* enum drm_panel_orientation - panel_orientation info for &drm_display_info
*
* This enum is used to track the (LCD) panel orientation. There are no
* separate #defines for the uapi!
*
* @DRM_MODE_PANEL_ORIENTATION_UNKNOWN: The drm driver has not provided any
* panel orientation information (normal
* for non panels) in this case the "panel
* orientation" connector prop will not be
* attached.
* @DRM_MODE_PANEL_ORIENTATION_NORMAL: The top side of the panel matches the
* top side of the device's casing.
* @DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP: The top side of the panel matches the
* bottom side of the device's casing, iow
* the panel is mounted upside-down.
* @DRM_MODE_PANEL_ORIENTATION_LEFT_UP: The left side of the panel matches the
* top side of the device's casing.
* @DRM_MODE_PANEL_ORIENTATION_RIGHT_UP: The right side of the panel matches the
* top side of the device's casing.
*/
enum drm_panel_orientation {
DRM_MODE_PANEL_ORIENTATION_UNKNOWN = -1,
DRM_MODE_PANEL_ORIENTATION_NORMAL = 0,
DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,
DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
};
/**
* struct drm_monitor_range_info - Panel's Monitor range in EDID for
* &drm_display_info
*
* This struct is used to store a frequency range supported by panel
* as parsed from EDID's detailed monitor range descriptor block.
*
* @min_vfreq: This is the min supported refresh rate in Hz from
* EDID's detailed monitor range.
* @max_vfreq: This is the max supported refresh rate in Hz from
* EDID's detailed monitor range
*/
struct drm_monitor_range_info {
u16 min_vfreq;
u16 max_vfreq;
};
/**
* struct drm_luminance_range_info - Panel's luminance range for
* &drm_display_info. Calculated using data in EDID
*
* This struct is used to store a luminance range supported by panel
* as calculated using data from EDID's static hdr metadata.
*
* @min_luminance: This is the min supported luminance value
*
* @max_luminance: This is the max supported luminance value
*/
struct drm_luminance_range_info {
u32 min_luminance;
u32 max_luminance;
};
/**
* enum drm_privacy_screen_status - privacy screen status
*
* This enum is used to track and control the state of the integrated privacy
* screen present on some display panels, via the "privacy-screen sw-state"
* and "privacy-screen hw-state" properties. Note the _LOCKED enum values
* are only valid for the "privacy-screen hw-state" property.
*
* @PRIVACY_SCREEN_DISABLED:
* The privacy-screen on the panel is disabled
* @PRIVACY_SCREEN_ENABLED:
* The privacy-screen on the panel is enabled
* @PRIVACY_SCREEN_DISABLED_LOCKED:
* The privacy-screen on the panel is disabled and locked (cannot be changed)
* @PRIVACY_SCREEN_ENABLED_LOCKED:
* The privacy-screen on the panel is enabled and locked (cannot be changed)
*/
enum drm_privacy_screen_status {
PRIVACY_SCREEN_DISABLED = 0,
PRIVACY_SCREEN_ENABLED,
PRIVACY_SCREEN_DISABLED_LOCKED,
PRIVACY_SCREEN_ENABLED_LOCKED,
};
/**
* enum drm_colorspace - color space
*
* This enum is a consolidated colorimetry list supported by HDMI and
* DP protocol standard. The respective connectors will register
* a property with the subset of this list (supported by that
* respective protocol). Userspace will set the colorspace through
* a colorspace property which will be created and exposed to
* userspace.
*
* DP definitions come from the DP v2.0 spec
* HDMI definitions come from the CTA-861-H spec
*
* A note on YCC and RGB variants:
*
* Since userspace is not aware of the encoding on the wire
* (RGB or YCbCr), drivers are free to pick the appropriate
* variant, regardless of what userspace selects. E.g., if
* BT2020_RGB is selected by userspace a driver will pick
* BT2020_YCC if the encoding on the wire is YUV444 or YUV420.
*
* @DRM_MODE_COLORIMETRY_DEFAULT:
* Driver specific behavior.
* @DRM_MODE_COLORIMETRY_NO_DATA:
* Driver specific behavior.
* @DRM_MODE_COLORIMETRY_SMPTE_170M_YCC:
* (HDMI)
* SMPTE ST 170M colorimetry format
* @DRM_MODE_COLORIMETRY_BT709_YCC:
* (HDMI, DP)
* ITU-R BT.709 colorimetry format
* @DRM_MODE_COLORIMETRY_XVYCC_601:
* (HDMI, DP)
* xvYCC601 colorimetry format
* @DRM_MODE_COLORIMETRY_XVYCC_709:
* (HDMI, DP)
* xvYCC709 colorimetry format
* @DRM_MODE_COLORIMETRY_SYCC_601:
* (HDMI, DP)
* sYCC601 colorimetry format
* @DRM_MODE_COLORIMETRY_OPYCC_601:
* (HDMI, DP)
* opYCC601 colorimetry format
* @DRM_MODE_COLORIMETRY_OPRGB:
* (HDMI, DP)
* opRGB colorimetry format
* @DRM_MODE_COLORIMETRY_BT2020_CYCC:
* (HDMI, DP)
* ITU-R BT.2020 Y'c C'bc C'rc (constant luminance) colorimetry format
* @DRM_MODE_COLORIMETRY_BT2020_RGB:
* (HDMI, DP)
* ITU-R BT.2020 R' G' B' colorimetry format
* @DRM_MODE_COLORIMETRY_BT2020_YCC:
* (HDMI, DP)
* ITU-R BT.2020 Y' C'b C'r colorimetry format
* @DRM_MODE_COLORIMETRY_DCI_P3_RGB_D65:
* (HDMI)
* SMPTE ST 2113 P3D65 colorimetry format
* @DRM_MODE_COLORIMETRY_DCI_P3_RGB_THEATER:
* (HDMI)
* SMPTE ST 2113 P3DCI colorimetry format
* @DRM_MODE_COLORIMETRY_RGB_WIDE_FIXED:
* (DP)
* RGB wide gamut fixed point colorimetry format
* @DRM_MODE_COLORIMETRY_RGB_WIDE_FLOAT:
* (DP)
* RGB wide gamut floating point
* (scRGB (IEC 61966-2-2)) colorimetry format
* @DRM_MODE_COLORIMETRY_BT601_YCC:
* (DP)
* ITU-R BT.601 colorimetry format
* The DP spec does not say whether this is the 525 or the 625
* line version.
*/
enum drm_colorspace {
/* For Default case, driver will set the colorspace */
DRM_MODE_COLORIMETRY_DEFAULT = 0,
/* CEA 861 Normal Colorimetry options */
DRM_MODE_COLORIMETRY_NO_DATA = 0,
DRM_MODE_COLORIMETRY_SMPTE_170M_YCC = 1,
DRM_MODE_COLORIMETRY_BT709_YCC = 2,
/* CEA 861 Extended Colorimetry Options */
DRM_MODE_COLORIMETRY_XVYCC_601 = 3,
DRM_MODE_COLORIMETRY_XVYCC_709 = 4,
DRM_MODE_COLORIMETRY_SYCC_601 = 5,
DRM_MODE_COLORIMETRY_OPYCC_601 = 6,
DRM_MODE_COLORIMETRY_OPRGB = 7,
DRM_MODE_COLORIMETRY_BT2020_CYCC = 8,
DRM_MODE_COLORIMETRY_BT2020_RGB = 9,
DRM_MODE_COLORIMETRY_BT2020_YCC = 10,
/* Additional Colorimetry extension added as part of CTA 861.G */
DRM_MODE_COLORIMETRY_DCI_P3_RGB_D65 = 11,
DRM_MODE_COLORIMETRY_DCI_P3_RGB_THEATER = 12,
/* Additional Colorimetry Options added for DP 1.4a VSC Colorimetry Format */
DRM_MODE_COLORIMETRY_RGB_WIDE_FIXED = 13,
DRM_MODE_COLORIMETRY_RGB_WIDE_FLOAT = 14,
DRM_MODE_COLORIMETRY_BT601_YCC = 15,
/* not a valid value; merely used for counting */
DRM_MODE_COLORIMETRY_COUNT
};
/**
* enum drm_bus_flags - bus_flags info for &drm_display_info
*
* This enum defines signal polarities and clock edge information for signals on
* a bus as bitmask flags.
*
* The clock edge information is conveyed by two sets of symbols,
* DRM_BUS_FLAGS_*_DRIVE_\* and DRM_BUS_FLAGS_*_SAMPLE_\*. When this enum is
* used to describe a bus from the point of view of the transmitter, the
* \*_DRIVE_\* flags should be used. When used from the point of view of the
* receiver, the \*_SAMPLE_\* flags should be used. The \*_DRIVE_\* and
* \*_SAMPLE_\* flags alias each other, with the \*_SAMPLE_POSEDGE and
* \*_SAMPLE_NEGEDGE flags being equal to \*_DRIVE_NEGEDGE and \*_DRIVE_POSEDGE
* respectively. This simplifies code as signals are usually sampled on the
* opposite edge of the driving edge. Transmitters and receivers may however
* need to take other signal timings into account to convert between driving
* and sample edges.
*/
enum drm_bus_flags {
/**
* @DRM_BUS_FLAG_DE_LOW:
*
* The Data Enable signal is active low
*/
DRM_BUS_FLAG_DE_LOW = BIT(0),
/**
* @DRM_BUS_FLAG_DE_HIGH:
*
* The Data Enable signal is active high
*/
DRM_BUS_FLAG_DE_HIGH = BIT(1),
/**
* @DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE:
*
* Data is driven on the rising edge of the pixel clock
*/
DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE = BIT(2),
/**
* @DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE:
*
* Data is driven on the falling edge of the pixel clock
*/
DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE = BIT(3),
/**
* @DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE:
*
* Data is sampled on the rising edge of the pixel clock
*/
DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
/**
* @DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE:
*
* Data is sampled on the falling edge of the pixel clock
*/
DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
/**
* @DRM_BUS_FLAG_DATA_MSB_TO_LSB:
*
* Data is transmitted MSB to LSB on the bus
*/
DRM_BUS_FLAG_DATA_MSB_TO_LSB = BIT(4),
/**
* @DRM_BUS_FLAG_DATA_LSB_TO_MSB:
*
* Data is transmitted LSB to MSB on the bus
*/
DRM_BUS_FLAG_DATA_LSB_TO_MSB = BIT(5),
/**
* @DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE:
*
* Sync signals are driven on the rising edge of the pixel clock
*/
DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE = BIT(6),
/**
* @DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE:
*
* Sync signals are driven on the falling edge of the pixel clock
*/
DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE = BIT(7),
/**
* @DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE:
*
* Sync signals are sampled on the rising edge of the pixel clock
*/
DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE = DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
/**
* @DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE:
*
* Sync signals are sampled on the falling edge of the pixel clock
*/
DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE = DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
/**
* @DRM_BUS_FLAG_SHARP_SIGNALS:
*
* Set if the Sharp-specific signals (SPL, CLS, PS, REV) must be used
*/
DRM_BUS_FLAG_SHARP_SIGNALS = BIT(8),
};
/**
* struct drm_display_info - runtime data about the connected sink
*
* Describes a given display (e.g. CRT or flat panel) and its limitations. For
* fixed display sinks like built-in panels there's not much difference between
* this and &struct drm_connector. But for sinks with a real cable this
* structure is meant to describe all the things at the other end of the cable.
*
* For sinks which provide an EDID this can be filled out by calling
* drm_add_edid_modes().
*/
struct drm_display_info {
/**
* @width_mm: Physical width in mm.
*/
unsigned int width_mm;
/**
* @height_mm: Physical height in mm.
*/
unsigned int height_mm;
/**
* @bpc: Maximum bits per color channel. Used by HDMI and DP outputs.
*/
unsigned int bpc;
/**
* @subpixel_order: Subpixel order of LCD panels.
*/
enum subpixel_order subpixel_order;
#define DRM_COLOR_FORMAT_RGB444 (1<<0)
#define DRM_COLOR_FORMAT_YCBCR444 (1<<1)
#define DRM_COLOR_FORMAT_YCBCR422 (1<<2)
#define DRM_COLOR_FORMAT_YCBCR420 (1<<3)
/**
* @panel_orientation: Read only connector property for built-in panels,
* indicating the orientation of the panel vs the device's casing.
* drm_connector_init() sets this to DRM_MODE_PANEL_ORIENTATION_UNKNOWN.
* When not UNKNOWN this gets used by the drm_fb_helpers to rotate the
* fb to compensate and gets exported as prop to userspace.
*/
int panel_orientation;
/**
* @color_formats: HDMI Color formats, selects between RGB and YCrCb
* modes. Used DRM_COLOR_FORMAT\_ defines, which are _not_ the same ones
* as used to describe the pixel format in framebuffers, and also don't
* match the formats in @bus_formats which are shared with v4l.
*/
u32 color_formats;
/**
* @bus_formats: Pixel data format on the wire, somewhat redundant with
* @color_formats. Array of size @num_bus_formats encoded using
* MEDIA_BUS_FMT\_ defines shared with v4l and media drivers.
*/
const u32 *bus_formats;
/**
* @num_bus_formats: Size of @bus_formats array.
*/
unsigned int num_bus_formats;
/**
* @bus_flags: Additional information (like pixel signal polarity) for
* the pixel data on the bus, using &enum drm_bus_flags values
* DRM_BUS_FLAGS\_.
*/
u32 bus_flags;
/**
* @max_tmds_clock: Maximum TMDS clock rate supported by the
* sink in kHz. 0 means undefined.
*/
int max_tmds_clock;
/**
* @dvi_dual: Dual-link DVI sink?
*/
bool dvi_dual;
/**
* @is_hdmi: True if the sink is an HDMI device.
*
* This field shall be used instead of calling
* drm_detect_hdmi_monitor() when possible.
*/
bool is_hdmi;
/**
* @has_audio: True if the sink supports audio.
*
* This field shall be used instead of calling
* drm_detect_monitor_audio() when possible.
*/
bool has_audio;
/**
* @has_hdmi_infoframe: Does the sink support the HDMI infoframe?
*/
bool has_hdmi_infoframe;
/**
* @rgb_quant_range_selectable: Does the sink support selecting
* the RGB quantization range?
*/
bool rgb_quant_range_selectable;
/**
* @edid_hdmi_rgb444_dc_modes: Mask of supported hdmi deep color modes
* in RGB 4:4:4. Even more stuff redundant with @bus_formats.
*/
u8 edid_hdmi_rgb444_dc_modes;
/**
* @edid_hdmi_ycbcr444_dc_modes: Mask of supported hdmi deep color
* modes in YCbCr 4:4:4. Even more stuff redundant with @bus_formats.
*/
u8 edid_hdmi_ycbcr444_dc_modes;
/**
* @cea_rev: CEA revision of the HDMI sink.
*/
u8 cea_rev;
/**
* @hdmi: advance features of a HDMI sink.
*/
struct drm_hdmi_info hdmi;
/**
* @non_desktop: Non desktop display (HMD).
*/
bool non_desktop;
/**
* @monitor_range: Frequency range supported by monitor range descriptor
*/
struct drm_monitor_range_info monitor_range;
/**
* @luminance_range: Luminance range supported by panel
*/
struct drm_luminance_range_info luminance_range;
/**
* @mso_stream_count: eDP Multi-SST Operation (MSO) stream count from
* the DisplayID VESA vendor block. 0 for conventional Single-Stream
* Transport (SST), or 2 or 4 MSO streams.
*/
u8 mso_stream_count;
/**
* @mso_pixel_overlap: eDP MSO segment pixel overlap, 0-8 pixels.
*/
u8 mso_pixel_overlap;
/**
* @max_dsc_bpp: Maximum DSC target bitrate, if it is set to 0 the
* monitor's default value is used instead.
*/
u32 max_dsc_bpp;
/**
* @vics: Array of vics_len VICs. Internal to EDID parsing.
*/
u8 *vics;
/**
* @vics_len: Number of elements in vics. Internal to EDID parsing.
*/
int vics_len;
/**
* @quirks: EDID based quirks. Internal to EDID parsing.
*/
u32 quirks;
};
int drm_display_info_set_bus_formats(struct drm_display_info *info,
const u32 *formats,
unsigned int num_formats);
/**
* struct drm_connector_tv_margins - TV connector related margins
*
* Describes the margins in pixels to put around the image on TV
* connectors to deal with overscan.
*/
struct drm_connector_tv_margins {
/**
* @bottom: Bottom margin in pixels.
*/
unsigned int bottom;
/**
* @left: Left margin in pixels.
*/
unsigned int left;
/**
* @right: Right margin in pixels.
*/
unsigned int right;
/**
* @top: Top margin in pixels.
*/
unsigned int top;
};
/**
* struct drm_tv_connector_state - TV connector related states
* @select_subconnector: selected subconnector
* @subconnector: detected subconnector
* @margins: TV margins
* @legacy_mode: Legacy TV mode, driver specific value
* @mode: TV mode
* @brightness: brightness in percent
* @contrast: contrast in percent
* @flicker_reduction: flicker reduction in percent
* @overscan: overscan in percent
* @saturation: saturation in percent
* @hue: hue in percent
*/
struct drm_tv_connector_state {
enum drm_mode_subconnector select_subconnector;
enum drm_mode_subconnector subconnector;
struct drm_connector_tv_margins margins;
unsigned int legacy_mode;
unsigned int mode;
unsigned int brightness;
unsigned int contrast;
unsigned int flicker_reduction;
unsigned int overscan;
unsigned int saturation;
unsigned int hue;
};
/**
* struct drm_connector_state - mutable connector state
*/
struct drm_connector_state {
/** @connector: backpointer to the connector */
struct drm_connector *connector;
/**
* @crtc: CRTC to connect connector to, NULL if disabled.
*
* Do not change this directly, use drm_atomic_set_crtc_for_connector()
* instead.
*/
struct drm_crtc *crtc;
/**
* @best_encoder:
*
* Used by the atomic helpers to select the encoder, through the
* &drm_connector_helper_funcs.atomic_best_encoder or
* &drm_connector_helper_funcs.best_encoder callbacks.
*
* This is also used in the atomic helpers to map encoders to their
* current and previous connectors, see
* drm_atomic_get_old_connector_for_encoder() and
* drm_atomic_get_new_connector_for_encoder().
*
* NOTE: Atomic drivers must fill this out (either themselves or through
* helpers), for otherwise the GETCONNECTOR and GETENCODER IOCTLs will
* not return correct data to userspace.
*/
struct drm_encoder *best_encoder;
/**
* @link_status: Connector link_status to keep track of whether link is
* GOOD or BAD to notify userspace if retraining is necessary.
*/
enum drm_link_status link_status;
/** @state: backpointer to global drm_atomic_state */
struct drm_atomic_state *state;
/**
* @commit: Tracks the pending commit to prevent use-after-free conditions.
*
* Is only set when @crtc is NULL.
*/
struct drm_crtc_commit *commit;
/** @tv: TV connector state */
struct drm_tv_connector_state tv;
/**
* @self_refresh_aware:
*
* This tracks whether a connector is aware of the self refresh state.
* It should be set to true for those connector implementations which
* understand the self refresh state. This is needed since the crtc
* registers the self refresh helpers and it doesn't know if the
* connectors downstream have implemented self refresh entry/exit.
*
* Drivers should set this to true in atomic_check if they know how to
* handle self_refresh requests.
*/
bool self_refresh_aware;
/**
* @picture_aspect_ratio: Connector property to control the
* HDMI infoframe aspect ratio setting.
*
* The %DRM_MODE_PICTURE_ASPECT_\* values much match the
* values for &enum hdmi_picture_aspect
*/
enum hdmi_picture_aspect picture_aspect_ratio;
/**
* @content_type: Connector property to control the
* HDMI infoframe content type setting.
* The %DRM_MODE_CONTENT_TYPE_\* values much
* match the values.
*/
unsigned int content_type;
/**
* @hdcp_content_type: Connector property to pass the type of
* protected content. This is most commonly used for HDCP.
*/
unsigned int hdcp_content_type;
/**
* @scaling_mode: Connector property to control the
* upscaling, mostly used for built-in panels.
*/
unsigned int scaling_mode;
/**
* @content_protection: Connector property to request content
* protection. This is most commonly used for HDCP.
*/
unsigned int content_protection;
/**
* @colorspace: State variable for Connector property to request
* colorspace change on Sink. This is most commonly used to switch
* to wider color gamuts like BT2020.
*/
enum drm_colorspace colorspace;
/**
* @writeback_job: Writeback job for writeback connectors
*
* Holds the framebuffer and out-fence for a writeback connector. As
* the writeback completion may be asynchronous to the normal commit
* cycle, the writeback job lifetime is managed separately from the
* normal atomic state by this object.
*
* See also: drm_writeback_queue_job() and
* drm_writeback_signal_completion()
*/
struct drm_writeback_job *writeback_job;
/**
* @max_requested_bpc: Connector property to limit the maximum bit
* depth of the pixels.
*/
u8 max_requested_bpc;
/**
* @max_bpc: Connector max_bpc based on the requested max_bpc property
* and the connector bpc limitations obtained from edid.
*/
u8 max_bpc;
/**
* @privacy_screen_sw_state: See :ref:`Standard Connector
* Properties<standard_connector_properties>`
*/
enum drm_privacy_screen_status privacy_screen_sw_state;
/**
* @hdr_output_metadata:
* DRM blob property for HDR output metadata
*/
struct drm_property_blob *hdr_output_metadata;
};
/**
* struct drm_connector_funcs - control connectors on a given device
*
* Each CRTC may have one or more connectors attached to it. The functions
* below allow the core DRM code to control connectors, enumerate available modes,
* etc.
*/
struct drm_connector_funcs {
/**
* @dpms:
*
* Legacy entry point to set the per-connector DPMS state. Legacy DPMS
* is exposed as a standard property on the connector, but diverted to
* this callback in the drm core. Note that atomic drivers don't
* implement the 4 level DPMS support on the connector any more, but
* instead only have an on/off "ACTIVE" property on the CRTC object.
*
* This hook is not used by atomic drivers, remapping of the legacy DPMS
* property is entirely handled in the DRM core.
*
* RETURNS:
*
* 0 on success or a negative error code on failure.
*/
int (*dpms)(struct drm_connector *connector, int mode);
/**
* @reset:
*
* Reset connector hardware and software state to off. This function isn't
* called by the core directly, only through drm_mode_config_reset().
* It's not a helper hook only for historical reasons.
*
* Atomic drivers can use drm_atomic_helper_connector_reset() to reset
* atomic state using this hook.
*/
void (*reset)(struct drm_connector *connector);
/**
* @detect:
*
* Check to see if anything is attached to the connector. The parameter
* force is set to false whilst polling, true when checking the
* connector due to a user request. force can be used by the driver to
* avoid expensive, destructive operations during automated probing.
*
* This callback is optional, if not implemented the connector will be
* considered as always being attached.
*
* FIXME:
*
* Note that this hook is only called by the probe helper. It's not in
* the helper library vtable purely for historical reasons. The only DRM
* core entry point to probe connector state is @fill_modes.
*
* Note that the helper library will already hold
* &drm_mode_config.connection_mutex. Drivers which need to grab additional
* locks to avoid races with concurrent modeset changes need to use
* &drm_connector_helper_funcs.detect_ctx instead.
*
* Also note that this callback can be called no matter the
* state the connector is in. Drivers that need the underlying
* device to be powered to perform the detection will first need
* to make sure it's been properly enabled.
*
* RETURNS:
*
* drm_connector_status indicating the connector's status.
*/
enum drm_connector_status (*detect)(struct drm_connector *connector,
bool force);
/**
* @force:
*
* This function is called to update internal encoder state when the
* connector is forced to a certain state by userspace, either through
* the sysfs interfaces or on the kernel cmdline. In that case the
* @detect callback isn't called.
*
* FIXME:
*
* Note that this hook is only called by the probe helper. It's not in
* the helper library vtable purely for historical reasons. The only DRM
* core entry point to probe connector state is @fill_modes.
*/
void (*force)(struct drm_connector *connector);
/**
* @fill_modes:
*
* Entry point for output detection and basic mode validation. The
* driver should reprobe the output if needed (e.g. when hotplug
* handling is unreliable), add all detected modes to &drm_connector.modes
* and filter out any the device can't support in any configuration. It
* also needs to filter out any modes wider or higher than the
* parameters max_width and max_height indicate.
*
* The drivers must also prune any modes no longer valid from
* &drm_connector.modes. Furthermore it must update
* &drm_connector.status and &drm_connector.edid. If no EDID has been
* received for this output connector->edid must be NULL.
*
* Drivers using the probe helpers should use
* drm_helper_probe_single_connector_modes() to implement this
* function.
*
* RETURNS:
*
* The number of modes detected and filled into &drm_connector.modes.
*/
int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
/**
* @set_property:
*
* This is the legacy entry point to update a property attached to the
* connector.
*
* This callback is optional if the driver does not support any legacy
* driver-private properties. For atomic drivers it is not used because
* property handling is done entirely in the DRM core.
*
* RETURNS:
*
* 0 on success or a negative error code on failure.
*/
int (*set_property)(struct drm_connector *connector, struct drm_property *property,
uint64_t val);
/**
* @late_register:
*
* This optional hook can be used to register additional userspace
* interfaces attached to the connector, light backlight control, i2c,
* DP aux or similar interfaces. It is called late in the driver load
* sequence from drm_connector_register() when registering all the
* core drm connector interfaces. Everything added from this callback
* should be unregistered in the early_unregister callback.
*
* This is called while holding &drm_connector.mutex.
*
* Returns:
*
* 0 on success, or a negative error code on failure.
*/
int (*late_register)(struct drm_connector *connector);
/**
* @early_unregister:
*
* This optional hook should be used to unregister the additional
* userspace interfaces attached to the connector from
* late_register(). It is called from drm_connector_unregister(),
* early in the driver unload sequence to disable userspace access
* before data structures are torndown.
*
* This is called while holding &drm_connector.mutex.
*/
void (*early_unregister)(struct drm_connector *connector);
/**
* @destroy:
*
* Clean up connector resources. This is called at driver unload time
* through drm_mode_config_cleanup(). It can also be called at runtime
* when a connector is being hot-unplugged for drivers that support
* connector hotplugging (e.g. DisplayPort MST).
*/
void (*destroy)(struct drm_connector *connector);
/**
* @atomic_duplicate_state:
*
* Duplicate the current atomic state for this connector and return it.
* The core and helpers guarantee that any atomic state duplicated with
* this hook and still owned by the caller (i.e. not transferred to the
* driver by calling &drm_mode_config_funcs.atomic_commit) will be
* cleaned up by calling the @atomic_destroy_state hook in this
* structure.
*
* This callback is mandatory for atomic drivers.
*
* Atomic drivers which don't subclass &struct drm_connector_state should use
* drm_atomic_helper_connector_duplicate_state(). Drivers that subclass the
* state structure to extend it with driver-private state should use
* __drm_atomic_helper_connector_duplicate_state() to make sure shared state is
* duplicated in a consistent fashion across drivers.
*
* It is an error to call this hook before &drm_connector.state has been
* initialized correctly.
*
* NOTE:
*
* If the duplicate state references refcounted resources this hook must
* acquire a reference for each of them. The driver must release these
* references again in @atomic_destroy_state.
*
* RETURNS:
*
* Duplicated atomic state or NULL when the allocation failed.
*/
struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
/**
* @atomic_destroy_state:
*
* Destroy a state duplicated with @atomic_duplicate_state and release
* or unreference all resources it references
*
* This callback is mandatory for atomic drivers.
*/
void (*atomic_destroy_state)(struct drm_connector *connector,
struct drm_connector_state *state);
/**
* @atomic_set_property:
*
* Decode a driver-private property value and store the decoded value
* into the passed-in state structure. Since the atomic core decodes all
* standardized properties (even for extensions beyond the core set of
* properties which might not be implemented by all drivers) this
* requires drivers to subclass the state structure.
*
* Such driver-private properties should really only be implemented for
* truly hardware/vendor specific state. Instead it is preferred to
* standardize atomic extension and decode the properties used to expose
* such an extension in the core.
*
* Do not call this function directly, use
* drm_atomic_connector_set_property() instead.
*
* This callback is optional if the driver does not support any
* driver-private atomic properties.
*
* NOTE:
*
* This function is called in the state assembly phase of atomic
* modesets, which can be aborted for any reason (including on
* userspace's request to just check whether a configuration would be
* possible). Drivers MUST NOT touch any persistent state (hardware or
* software) or data structures except the passed in @state parameter.
*
* Also since userspace controls in which order properties are set this
* function must not do any input validation (since the state update is
* incomplete and hence likely inconsistent). Instead any such input
* validation must be done in the various atomic_check callbacks.
*
* RETURNS:
*
* 0 if the property has been found, -EINVAL if the property isn't
* implemented by the driver (which shouldn't ever happen, the core only
* asks for properties attached to this connector). No other validation
* is allowed by the driver. The core already checks that the property
* value is within the range (integer, valid enum value, ...) the driver
* set when registering the property.
*/
int (*atomic_set_property)(struct drm_connector *connector,
struct drm_connector_state *state,
struct drm_property *property,
uint64_t val);
/**
* @atomic_get_property:
*
* Reads out the decoded driver-private property. This is used to
* implement the GETCONNECTOR IOCTL.
*
* Do not call this function directly, use
* drm_atomic_connector_get_property() instead.
*
* This callback is optional if the driver does not support any
* driver-private atomic properties.
*
* RETURNS:
*
* 0 on success, -EINVAL if the property isn't implemented by the
* driver (which shouldn't ever happen, the core only asks for
* properties attached to this connector).
*/
int (*atomic_get_property)(struct drm_connector *connector,
const struct drm_connector_state *state,
struct drm_property *property,
uint64_t *val);
/**
* @atomic_print_state:
*
* If driver subclasses &struct drm_connector_state, it should implement
* this optional hook for printing additional driver specific state.
*
* Do not call this directly, use drm_atomic_connector_print_state()
* instead.
*/
void (*atomic_print_state)(struct drm_printer *p,
const struct drm_connector_state *state);
/**
* @oob_hotplug_event:
*
* This will get called when a hotplug-event for a drm-connector
* has been received from a source outside the display driver / device.
*/
void (*oob_hotplug_event)(struct drm_connector *connector);
/**
* @debugfs_init:
*
* Allows connectors to create connector-specific debugfs files.
*/
#ifdef __linux__
void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
#endif
};
/**
* struct drm_cmdline_mode - DRM Mode passed through the kernel command-line
*
* Each connector can have an initial mode with additional options
* passed through the kernel command line. This structure allows to
* express those parameters and will be filled by the command-line
* parser.
*/
struct drm_cmdline_mode {
/**
* @name:
*
* Name of the mode.
*/
char name[DRM_DISPLAY_MODE_LEN];
/**
* @specified:
*
* Has a mode been read from the command-line?
*/
bool specified;
/**
* @refresh_specified:
*
* Did the mode have a preferred refresh rate?
*/
bool refresh_specified;
/**
* @bpp_specified:
*
* Did the mode have a preferred BPP?
*/
bool bpp_specified;
/**
* @pixel_clock:
*
* Pixel Clock in kHz. Optional.
*/
unsigned int pixel_clock;
/**
* @xres:
*
* Active resolution on the X axis, in pixels.
*/
int xres;
/**
* @yres:
*
* Active resolution on the Y axis, in pixels.
*/
int yres;
/**
* @bpp:
*
* Bits per pixels for the mode.
*/
int bpp;
/**
* @refresh:
*
* Refresh rate, in Hertz.
*/
int refresh;
/**
* @rb:
*
* Do we need to use reduced blanking?
*/
bool rb;
/**
* @interlace:
*
* The mode is interlaced.
*/
bool interlace;
/**
* @cvt:
*
* The timings will be calculated using the VESA Coordinated
* Video Timings instead of looking up the mode from a table.
*/
bool cvt;
/**
* @margins:
*
* Add margins to the mode calculation (1.8% of xres rounded
* down to 8 pixels and 1.8% of yres).
*/
bool margins;
/**
* @force:
*
* Ignore the hotplug state of the connector, and force its
* state to one of the DRM_FORCE_* values.
*/
enum drm_connector_force force;
/**
* @rotation_reflection:
*
* Initial rotation and reflection of the mode setup from the
* command line. See DRM_MODE_ROTATE_* and
* DRM_MODE_REFLECT_*. The only rotations supported are
* DRM_MODE_ROTATE_0 and DRM_MODE_ROTATE_180.
*/
unsigned int rotation_reflection;
/**
* @panel_orientation:
*
* drm-connector "panel orientation" property override value,
* DRM_MODE_PANEL_ORIENTATION_UNKNOWN if not set.
*/
enum drm_panel_orientation panel_orientation;
/**
* @tv_margins: TV margins to apply to the mode.
*/
struct drm_connector_tv_margins tv_margins;
/**
* @tv_mode: TV mode standard. See DRM_MODE_TV_MODE_*.
*/
enum drm_connector_tv_mode tv_mode;
/**
* @tv_mode_specified:
*
* Did the mode have a preferred TV mode?
*/
bool tv_mode_specified;
};
/**
* struct drm_connector - central DRM connector control structure
*
* Each connector may be connected to one or more CRTCs, or may be clonable by
* another connector if they can share a CRTC. Each connector also has a specific
* position in the broader display (referred to as a 'screen' though it could
* span multiple monitors).
*/
struct drm_connector {
/** @dev: parent DRM device */
struct drm_device *dev;
/** @kdev: kernel device for sysfs attributes */
struct device *kdev;
/** @attr: sysfs attributes */
struct device_attribute *attr;
/**
* @fwnode: associated fwnode supplied by platform firmware
*
* Drivers can set this to associate a fwnode with a connector, drivers
* are expected to get a reference on the fwnode when setting this.
* drm_connector_cleanup() will call fwnode_handle_put() on this.
*/
struct fwnode_handle *fwnode;
/**
* @head:
*
* List of all connectors on a @dev, linked from
* &drm_mode_config.connector_list. Protected by
* &drm_mode_config.connector_list_lock, but please only use
* &drm_connector_list_iter to walk this list.
*/
struct list_head head;
/**
* @global_connector_list_entry:
*
* Connector entry in the global connector-list, used by
* drm_connector_find_by_fwnode().
*/
struct list_head global_connector_list_entry;
/** @base: base KMS object */
struct drm_mode_object base;
/** @name: human readable name, can be overwritten by the driver */
char *name;
/**
* @mutex: Lock for general connector state, but currently only protects
* @registered. Most of the connector state is still protected by
* &drm_mode_config.mutex.
*/
struct rwlock mutex;
/**
* @index: Compacted connector index, which matches the position inside
* the mode_config.list for drivers not supporting hot-add/removing. Can
* be used as an array index. It is invariant over the lifetime of the
* connector.
*/
unsigned index;
/**
* @connector_type:
* one of the DRM_MODE_CONNECTOR_<foo> types from drm_mode.h
*/
int connector_type;
/** @connector_type_id: index into connector type enum */
int connector_type_id;
/**
* @interlace_allowed:
* Can this connector handle interlaced modes? Only used by
* drm_helper_probe_single_connector_modes() for mode filtering.
*/
bool interlace_allowed;
/**
* @doublescan_allowed:
* Can this connector handle doublescan? Only used by
* drm_helper_probe_single_connector_modes() for mode filtering.
*/
bool doublescan_allowed;
/**
* @stereo_allowed:
* Can this connector handle stereo modes? Only used by
* drm_helper_probe_single_connector_modes() for mode filtering.
*/
bool stereo_allowed;
/**
* @ycbcr_420_allowed : This bool indicates if this connector is
* capable of handling YCBCR 420 output. While parsing the EDID
* blocks it's very helpful to know if the source is capable of
* handling YCBCR 420 outputs.
*/
bool ycbcr_420_allowed;
/**
* @registration_state: Is this connector initializing, exposed
* (registered) with userspace, or unregistered?
*
* Protected by @mutex.
*/
enum drm_connector_registration_state registration_state;
/**
* @modes:
* Modes available on this connector (from fill_modes() + user).
* Protected by &drm_mode_config.mutex.
*/
struct list_head modes;
/**
* @status:
* One of the drm_connector_status enums (connected, not, or unknown).
* Protected by &drm_mode_config.mutex.
*/
enum drm_connector_status status;
/**
* @probed_modes:
* These are modes added by probing with DDC or the BIOS, before
* filtering is applied. Used by the probe helpers. Protected by
* &drm_mode_config.mutex.
*/
struct list_head probed_modes;
/**
* @display_info: Display information is filled from EDID information
* when a display is detected. For non hot-pluggable displays such as
* flat panels in embedded systems, the driver should initialize the
* &drm_display_info.width_mm and &drm_display_info.height_mm fields
* with the physical size of the display.
*
* Protected by &drm_mode_config.mutex.
*/
struct drm_display_info display_info;
/** @funcs: connector control functions */
const struct drm_connector_funcs *funcs;
/**
* @edid_blob_ptr: DRM property containing EDID if present. Protected by
* &drm_mode_config.mutex. This should be updated only by calling
* drm_connector_update_edid_property().
*/
struct drm_property_blob *edid_blob_ptr;
/** @properties: property tracking for this connector */
struct drm_object_properties properties;
/**
* @scaling_mode_property: Optional atomic property to control the
* upscaling. See drm_connector_attach_content_protection_property().
*/
struct drm_property *scaling_mode_property;
/**
* @vrr_capable_property: Optional property to help userspace
* query hardware support for variable refresh rate on a connector.
* connector. Drivers can add the property to a connector by
* calling drm_connector_attach_vrr_capable_property().
*
* This should be updated only by calling
* drm_connector_set_vrr_capable_property().
*/
struct drm_property *vrr_capable_property;
/**
* @colorspace_property: Connector property to set the suitable
* colorspace supported by the sink.
*/
struct drm_property *colorspace_property;
/**
* @path_blob_ptr:
*
* DRM blob property data for the DP MST path property. This should only
* be updated by calling drm_connector_set_path_property().
*/
struct drm_property_blob *path_blob_ptr;
/**
* @max_bpc_property: Default connector property for the max bpc to be
* driven out of the connector.
*/
struct drm_property *max_bpc_property;
/** @privacy_screen: drm_privacy_screen for this connector, or NULL. */
struct drm_privacy_screen *privacy_screen;
/** @privacy_screen_notifier: privacy-screen notifier_block */
struct notifier_block privacy_screen_notifier;
/**
* @privacy_screen_sw_state_property: Optional atomic property for the
* connector to control the integrated privacy screen.
*/
struct drm_property *privacy_screen_sw_state_property;
/**
* @privacy_screen_hw_state_property: Optional atomic property for the
* connector to report the actual integrated privacy screen state.
*/
struct drm_property *privacy_screen_hw_state_property;
#define DRM_CONNECTOR_POLL_HPD (1 << 0)
#define DRM_CONNECTOR_POLL_CONNECT (1 << 1)
#define DRM_CONNECTOR_POLL_DISCONNECT (1 << 2)
/**
* @polled:
*
* Connector polling mode, a combination of
*
* DRM_CONNECTOR_POLL_HPD
* The connector generates hotplug events and doesn't need to be
* periodically polled. The CONNECT and DISCONNECT flags must not
* be set together with the HPD flag.
*
* DRM_CONNECTOR_POLL_CONNECT
* Periodically poll the connector for connection.
*
* DRM_CONNECTOR_POLL_DISCONNECT
* Periodically poll the connector for disconnection, without
* causing flickering even when the connector is in use. DACs should
* rarely do this without a lot of testing.
*
* Set to 0 for connectors that don't support connection status
* discovery.
*/
uint8_t polled;
/**
* @dpms: Current dpms state. For legacy drivers the
* &drm_connector_funcs.dpms callback must update this. For atomic
* drivers, this is handled by the core atomic code, and drivers must
* only take &drm_crtc_state.active into account.
*/
int dpms;
/** @helper_private: mid-layer private data */
const struct drm_connector_helper_funcs *helper_private;
/** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
struct drm_cmdline_mode cmdline_mode;
/** @force: a DRM_FORCE_<foo> state for forced mode sets */
enum drm_connector_force force;
/**
* @edid_override: Override EDID set via debugfs.
*
* Do not modify or access outside of the drm_edid_override_* family of
* functions.
*/
const struct drm_edid *edid_override;
/**
* @edid_override_mutex: Protect access to edid_override.
*/
struct rwlock edid_override_mutex;
/** @epoch_counter: used to detect any other changes in connector, besides status */
u64 epoch_counter;
/**
* @possible_encoders: Bit mask of encoders that can drive this
* connector, drm_encoder_index() determines the index into the bitfield
* and the bits are set with drm_connector_attach_encoder().
*/
u32 possible_encoders;
/**
* @encoder: Currently bound encoder driving this connector, if any.
* Only really meaningful for non-atomic drivers. Atomic drivers should
* instead look at &drm_connector_state.best_encoder, and in case they
* need the CRTC driving this output, &drm_connector_state.crtc.
*/
struct drm_encoder *encoder;
#define MAX_ELD_BYTES 128
/** @eld: EDID-like data, if present */
uint8_t eld[MAX_ELD_BYTES];
/** @latency_present: AV delay info from ELD, if found */
bool latency_present[2];
/**
* @video_latency: Video latency info from ELD, if found.
* [0]: progressive, [1]: interlaced
*/
int video_latency[2];
/**
* @audio_latency: audio latency info from ELD, if found
* [0]: progressive, [1]: interlaced
*/
int audio_latency[2];
/**
* @ddc: associated ddc adapter.
* A connector usually has its associated ddc adapter. If a driver uses
* this field, then an appropriate symbolic link is created in connector
* sysfs directory to make it easy for the user to tell which i2c
* adapter is for a particular display.
*
* The field should be set by calling drm_connector_init_with_ddc().
*/
struct i2c_adapter *ddc;
/**
* @null_edid_counter: track sinks that give us all zeros for the EDID.
* Needed to workaround some HW bugs where we get all 0s
*/
int null_edid_counter;
/** @bad_edid_counter: track sinks that give us an EDID with invalid checksum */
unsigned bad_edid_counter;
/**
* @edid_corrupt: Indicates whether the last read EDID was corrupt. Used
* in Displayport compliance testing - Displayport Link CTS Core 1.2
* rev1.1 4.2.2.6
*/
bool edid_corrupt;
/**
* @real_edid_checksum: real edid checksum for corrupted edid block.
* Required in Displayport 1.4 compliance testing
* rev1.1 4.2.2.6
*/
u8 real_edid_checksum;
/** @debugfs_entry: debugfs directory for this connector */
struct dentry *debugfs_entry;
/**
* @state:
*
* Current atomic state for this connector.
*
* This is protected by &drm_mode_config.connection_mutex. Note that
* nonblocking atomic commits access the current connector state without
* taking locks. Either by going through the &struct drm_atomic_state
* pointers, see for_each_oldnew_connector_in_state(),
* for_each_old_connector_in_state() and
* for_each_new_connector_in_state(). Or through careful ordering of
* atomic commit operations as implemented in the atomic helpers, see
* &struct drm_crtc_commit.
*/
struct drm_connector_state *state;
/* DisplayID bits. FIXME: Extract into a substruct? */
/**
* @tile_blob_ptr:
*
* DRM blob property data for the tile property (used mostly by DP MST).
* This is meant for screens which are driven through separate display
* pipelines represented by &drm_crtc, which might not be running with
* genlocked clocks. For tiled panels which are genlocked, like
* dual-link LVDS or dual-link DSI, the driver should try to not expose
* the tiling and virtualize both &drm_crtc and &drm_plane if needed.
*
* This should only be updated by calling
* drm_connector_set_tile_property().
*/
struct drm_property_blob *tile_blob_ptr;
/** @has_tile: is this connector connected to a tiled monitor */
bool has_tile;
/** @tile_group: tile group for the connected monitor */
struct drm_tile_group *tile_group;
/** @tile_is_single_monitor: whether the tile is one monitor housing */
bool tile_is_single_monitor;
/** @num_h_tile: number of horizontal tiles in the tile group */
/** @num_v_tile: number of vertical tiles in the tile group */
uint8_t num_h_tile, num_v_tile;
/** @tile_h_loc: horizontal location of this tile */
/** @tile_v_loc: vertical location of this tile */
uint8_t tile_h_loc, tile_v_loc;
/** @tile_h_size: horizontal size of this tile. */
/** @tile_v_size: vertical size of this tile. */
uint16_t tile_h_size, tile_v_size;
#ifdef __OpenBSD__
struct backlight_device *backlight_device;
struct drm_property *backlight_property;
#endif
/**
* @free_node:
*
* List used only by &drm_connector_list_iter to be able to clean up a
* connector from any context, in conjunction with
* &drm_mode_config.connector_free_work.
*/
struct llist_node free_node;
/** @hdr_sink_metadata: HDR Metadata Information read from sink */
struct hdr_sink_metadata hdr_sink_metadata;
};
#define obj_to_connector(x) container_of(x, struct drm_connector, base)
int drm_connector_init(struct drm_device *dev,
struct drm_connector *connector,
const struct drm_connector_funcs *funcs,
int connector_type);
int drm_connector_init_with_ddc(struct drm_device *dev,
struct drm_connector *connector,
const struct drm_connector_funcs *funcs,
int connector_type,
struct i2c_adapter *ddc);
int drmm_connector_init(struct drm_device *dev,
struct drm_connector *connector,
const struct drm_connector_funcs *funcs,
int connector_type,
struct i2c_adapter *ddc);
void drm_connector_attach_edid_property(struct drm_connector *connector);
int drm_connector_register(struct drm_connector *connector);
void drm_connector_unregister(struct drm_connector *connector);
int drm_connector_attach_encoder(struct drm_connector *connector,
struct drm_encoder *encoder);
void drm_connector_cleanup(struct drm_connector *connector);
static inline unsigned int drm_connector_index(const struct drm_connector *connector)
{
return connector->index;
}
static inline u32 drm_connector_mask(const struct drm_connector *connector)
{
return 1 << connector->index;
}
/**
* drm_connector_lookup - lookup connector object
* @dev: DRM device
* @file_priv: drm file to check for lease against.
* @id: connector object id
*
* This function looks up the connector object specified by id
* add takes a reference to it.
*/
static inline struct drm_connector *drm_connector_lookup(struct drm_device *dev,
struct drm_file *file_priv,
uint32_t id)
{
struct drm_mode_object *mo;
mo = drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_CONNECTOR);
return mo ? obj_to_connector(mo) : NULL;
}
/**
* drm_connector_get - acquire a connector reference
* @connector: DRM connector
*
* This function increments the connector's refcount.
*/
static inline void drm_connector_get(struct drm_connector *connector)
{
drm_mode_object_get(&connector->base);
}
/**
* drm_connector_put - release a connector reference
* @connector: DRM connector
*
* This function decrements the connector's reference count and frees the
* object if the reference count drops to zero.
*/
static inline void drm_connector_put(struct drm_connector *connector)
{
drm_mode_object_put(&connector->base);
}
/**
* drm_connector_is_unregistered - has the connector been unregistered from
* userspace?
* @connector: DRM connector
*
* Checks whether or not @connector has been unregistered from userspace.
*
* Returns:
* True if the connector was unregistered, false if the connector is
* registered or has not yet been registered with userspace.
*/
static inline bool
drm_connector_is_unregistered(struct drm_connector *connector)
{
return READ_ONCE(connector->registration_state) ==
DRM_CONNECTOR_UNREGISTERED;
}
void drm_connector_oob_hotplug_event(struct fwnode_handle *connector_fwnode);
const char *drm_get_connector_type_name(unsigned int connector_type);
const char *drm_get_connector_status_name(enum drm_connector_status status);
const char *drm_get_subpixel_order_name(enum subpixel_order order);
const char *drm_get_dpms_name(int val);
const char *drm_get_dvi_i_subconnector_name(int val);
const char *drm_get_dvi_i_select_name(int val);
const char *drm_get_tv_mode_name(int val);
const char *drm_get_tv_subconnector_name(int val);
const char *drm_get_tv_select_name(int val);
const char *drm_get_dp_subconnector_name(int val);
const char *drm_get_content_protection_name(int val);
const char *drm_get_hdcp_content_type_name(int val);
int drm_get_tv_mode_from_name(const char *name, size_t len);
int drm_mode_create_dvi_i_properties(struct drm_device *dev);
void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
int drm_mode_create_tv_margin_properties(struct drm_device *dev);
int drm_mode_create_tv_properties_legacy(struct drm_device *dev,
unsigned int num_modes,
const char * const modes[]);
int drm_mode_create_tv_properties(struct drm_device *dev,
unsigned int supported_tv_modes);
void drm_connector_attach_tv_margin_properties(struct drm_connector *conn);
int drm_mode_create_scaling_mode_property(struct drm_device *dev);
int drm_connector_attach_content_type_property(struct drm_connector *dev);
int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
u32 scaling_mode_mask);
int drm_connector_attach_vrr_capable_property(
struct drm_connector *connector);
int drm_connector_attach_colorspace_property(struct drm_connector *connector);
int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
bool drm_connector_atomic_hdr_metadata_equal(struct drm_connector_state *old_state,
struct drm_connector_state *new_state);
int drm_mode_create_aspect_ratio_property(struct drm_device *dev);
int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
u32 supported_colorspaces);
int drm_mode_create_dp_colorspace_property(struct drm_connector *connector,
u32 supported_colorspaces);
int drm_mode_create_content_type_property(struct drm_device *dev);
int drm_mode_create_suggested_offset_properties(struct drm_device *dev);
int drm_connector_set_path_property(struct drm_connector *connector,
const char *path);
int drm_connector_set_tile_property(struct drm_connector *connector);
int drm_connector_update_edid_property(struct drm_connector *connector,
const struct edid *edid);
void drm_connector_set_link_status_property(struct drm_connector *connector,
uint64_t link_status);
void drm_connector_set_vrr_capable_property(
struct drm_connector *connector, bool capable);
int drm_connector_set_panel_orientation(
struct drm_connector *connector,
enum drm_panel_orientation panel_orientation);
int drm_connector_set_panel_orientation_with_quirk(
struct drm_connector *connector,
enum drm_panel_orientation panel_orientation,
int width, int height);
int drm_connector_set_orientation_from_panel(
struct drm_connector *connector,
struct drm_panel *panel);
int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
int min, int max);
void drm_connector_create_privacy_screen_properties(struct drm_connector *conn);
void drm_connector_attach_privacy_screen_properties(struct drm_connector *conn);
void drm_connector_attach_privacy_screen_provider(
struct drm_connector *connector, struct drm_privacy_screen *priv);
void drm_connector_update_privacy_screen(const struct drm_connector_state *connector_state);
/**
* struct drm_tile_group - Tile group metadata
* @refcount: reference count
* @dev: DRM device
* @id: tile group id exposed to userspace
* @group_data: Sink-private data identifying this group
*
* @group_data corresponds to displayid vend/prod/serial for external screens
* with an EDID.
*/
struct drm_tile_group {
struct kref refcount;
struct drm_device *dev;
int id;
u8 group_data[8];
};
struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,
const char topology[8]);
struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
const char topology[8]);
void drm_mode_put_tile_group(struct drm_device *dev,
struct drm_tile_group *tg);
/**
* struct drm_connector_list_iter - connector_list iterator
*
* This iterator tracks state needed to be able to walk the connector_list
* within struct drm_mode_config. Only use together with
* drm_connector_list_iter_begin(), drm_connector_list_iter_end() and
* drm_connector_list_iter_next() respectively the convenience macro
* drm_for_each_connector_iter().
*
* Note that the return value of drm_connector_list_iter_next() is only valid
* up to the next drm_connector_list_iter_next() or
* drm_connector_list_iter_end() call. If you want to use the connector later,
* then you need to grab your own reference first using drm_connector_get().
*/
struct drm_connector_list_iter {
/* private: */
struct drm_device *dev;
struct drm_connector *conn;
};
void drm_connector_list_iter_begin(struct drm_device *dev,
struct drm_connector_list_iter *iter);
struct drm_connector *
drm_connector_list_iter_next(struct drm_connector_list_iter *iter);
void drm_connector_list_iter_end(struct drm_connector_list_iter *iter);
bool drm_connector_has_possible_encoder(struct drm_connector *connector,
struct drm_encoder *encoder);
const char *drm_get_colorspace_name(enum drm_colorspace colorspace);
/**
* drm_for_each_connector_iter - connector_list iterator macro
* @connector: &struct drm_connector pointer used as cursor
* @iter: &struct drm_connector_list_iter
*
* Note that @connector is only valid within the list body, if you want to use
* @connector after calling drm_connector_list_iter_end() then you need to grab
* your own reference first using drm_connector_get().
*/
#define drm_for_each_connector_iter(connector, iter) \
while ((connector = drm_connector_list_iter_next(iter)))
/**
* drm_connector_for_each_possible_encoder - iterate connector's possible encoders
* @connector: &struct drm_connector pointer
* @encoder: &struct drm_encoder pointer used as cursor
*/
#define drm_connector_for_each_possible_encoder(connector, encoder) \
drm_for_each_encoder_mask(encoder, (connector)->dev, \
(connector)->possible_encoders)
#endif
```
|
Colonne de la liberté (French for "Column of Liberty") may refer to:
Colonne de la liberté (France)
Colonne de la liberté (Quebec)
|
J. Karunanithi is an Indian politician Member of Legislative Assembly of Tamil Nadu. He was elected from Thiyagaraya Nagar as an Dravida Munnetra Kazhagam candidate in 2021.
Electoral performance
References
Tamil Nadu MLAs 2021–2026
Living people
Dravida Munnetra Kazhagam politicians
Year of birth missing (living people)
|
is a Japanese politician. He served two terms in the House of Councillors in the Diet (national legislature) from 1998 until 2010 as a member of the Liberal Democratic Party. A native of Hiroshima Prefecture and graduate of the University of Tokyo, he worked at the Ministry of Agriculture, Forestry and Fisheries from 1966 to 1996.
References
External links
in Japanese.
Members of the House of Councillors (Japan)
Living people
1943 births
Liberal Democratic Party (Japan) politicians
|
```java
package com.ctrip.xpipe.redis.checker.healthcheck;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.redis.checker.AbstractCheckerIntegrationTest;
import com.ctrip.xpipe.redis.checker.healthcheck.actions.ping.PingAction;
import com.ctrip.xpipe.redis.checker.healthcheck.actions.ping.PingActionContext;
import com.ctrip.xpipe.redis.core.entity.ClusterMeta;
import com.ctrip.xpipe.redis.core.entity.DcMeta;
import com.ctrip.xpipe.redis.core.entity.RedisMeta;
import com.ctrip.xpipe.redis.core.entity.ShardMeta;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
/**
* @author chen.zhu
* <p>
* Sep 06, 2018
*/
public class AbstractHealthCheckActionTest extends AbstractCheckerIntegrationTest {
@Autowired
private List<HealthCheckActionListener> listeners;
@Autowired
private HealthCheckInstanceManager instanceManager;
@Test
public void testOnActionWithPing() {
DcMeta dcMeta = new DcMeta("dc");
ClusterMeta clusterMeta = new ClusterMeta("cluster");
ShardMeta shardMeta = new ShardMeta("shard");
RedisMeta redisMeta = new RedisMeta().setIp("127.0.0.1").setPort(6379).setMaster(null);
shardMeta.addRedis(redisMeta);
clusterMeta.addShard(shardMeta);
dcMeta.addCluster(clusterMeta);
RedisHealthCheckInstance instance = instanceManager.getOrCreate(redisMeta);
PingAction action = new PingAction(scheduled, instance, executors);
action.addListeners(listeners);
action.notifyListeners(new PingActionContext(instance, true));
instanceManager.remove(new HostPort(instance.getEndpoint().getHost(), instance.getEndpoint().getPort()));
}
}
```
|
```shell
#!/bin/bash -eu
#
#
# 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.
#
################################################################################
cd numpy
unset CFLAGS
unset CXXFLAGS
unset LIB_FUZZING_ENGINE
python3 -m pip install .
mkdir -p $SRC/numpy-fuzzers
cd $SRC/numpy-fuzzers
# Build fuzzers in $OUT.
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
compile_python_fuzzer $fuzzer
done
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url">
<html xmlns="path_to_url">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>Introduction_to_Algorithms: anonymous_namespace{dfs_test.h} Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Introduction_to_Algorithms
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('namespaceanonymous__namespace_02dfs__test_8h_03.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">anonymous_namespace{dfs_test.h} Namespace Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a37ec41bc82ae94b1f3736e26c9754ffb"><td class="memItemLeft" align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceanonymous__namespace_02dfs__test_8h_03.html#a37ec41bc82ae94b1f3736e26c9754ffb">DFS_N</a> = 10</td></tr>
<tr class="separator:a37ec41bc82ae94b1f3736e26c9754ffb"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a37ec41bc82ae94b1f3736e26c9754ffb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int anonymous_namespace{dfs_test.h}::DFS_N = 10</td>
</tr>
</table>
</div><div class="memdoc">
<p> </p>
<p>Definition at line <a class="el" href="dfs__test_8h_source.html#l00027">27</a> of file <a class="el" href="dfs__test_8h_source.html">dfs_test.h</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceanonymous__namespace_02dfs__test_8h_03.html">anonymous_namespace{dfs_test.h}</a></li>
<li class="footer">Generated by
<a href="path_to_url">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html>
```
|
The Sharjah Museum of Islamic Civilization is a museum in Sharjah, United Arab Emirates (UAE). The museum, opened in 2008, covers Islamic culture, with more than 5,000 artifacts from the Islamic world. Objects include calligraphy, carvings, ceramics, coins, glass, manuscripts, metalwork, and scientific instruments. It was formerly known as the Islamic Museum and opened in 1996 before being moved and re-housed in the current building.
Location
The museum is located on the Corniche Street in the Al Majarrah area, on the opposite side of the street from Sharjah Creek. It is openly visible because of its large size and characteristic golden dome. The museum is situated in the historical centre of Sharjah on the Majarrah Waterfront, in a building originally constructed as a souq (indoor market).
Sheikh Sultan bin Muhammad Al-Qasimi, a member of the Supreme Council of the UAE and ruler of Sharjah, inaugurated the museum on 5 June 2008. It celebrated its tenth birthday in November 2018, with an exhibition titled "Crossroads: Cultural Exchange between the Islamic Civilization, Europe and Beyond", mounted in co-operation with the Museum of Islamic Art, Berlin.
Displays
The museum displays over five thousand Islamic artifacts which have been collected globally and displayed in seven thematic galleries, six of them dedicated to housing permanent exhibitions.
A gallery dedicated to the history and nature of Islam, the Abu Bakr Gallery of Islamic Faith, displays, among other objects, a copy of the Quran of the third Caliph, Uthman ibn Affan, who ruled from 644–656 AD. Alongside rare objects such as this and a Kiswa, the covering used for the Kaaba in Mecca, are early black and white images of Sharjah citizens embarking on the then arduous Haj pilgrimage.
A gallery devoted to the history of Islamic science, technology and innovation, the Ibn Al-Haytham Gallery of Science and Technology, includes displays showing Islamic scientific advancements, including complex early clocks, navigational aids and weapons. Four further galleries display Islamic art through the ages, as well as displays of modest fashion and contemporary pieces.
Displays along the central boulevard include cases of Islamic coins as well as clocks and other items.
A seventh gallery houses temporary exhibitions, with a regular roster of displays co-curated with other museums, ranging from Ottoman Masterpieces from the Museum of Applied Arts in Budapest to Persian calligraphy from the Islamic Arts Museum of Malaysia.
Facilities
The museum features prayer rooms, a cafeteria, a souvenir shop, spacious parking, rest rooms and has facilities and wheel chair access for the disabled.
See also
Sharjah Museums Department
References
External links
Sharjah Museum of Islamic Civilization website
Art museums established in 2008
Art museums and galleries in the United Arab Emirates
Museums in Sharjah (city)
Decorative arts museums
History museums in the United Arab Emirates
Islamic culture
Islamic museums
Domes
2008 establishments in the United Arab Emirates
Arab art scene
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MAIN //
/**
* Returns a callback to be invoked upon calling the `redraw` command.
*
* @private
* @param {Presentation} pres - presentation instance
* @returns {Function} callback
*/
function command( pres ) {
return onCommand;
/**
* Redraws the current presentation slide.
*
* @private
*/
function onCommand() {
pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle
/**
* Callback invoked upon a `drain` event.
*
* @private
*/
function onDrain() {
pres.show();
}
}
}
// EXPORTS //
module.exports = command;
```
|
Dom Peter, Duke of Coimbra, KG ( ), (9 December 1392 – 20 May 1449) was a Portuguese infante (prince) of the House of Aviz, son of King Dom John I of Portugal and his wife, Philippa of Lancaster, daughter of John of Gaunt. In Portugal, he is known as Infante Dom Pedro das Sete Partidas [do Mundo], "of the Seven Parts [of the World]" because of his travels. Possibly the best-travelled prince of his time, he was regent between 1439 and 1448. He was also 1st Lord of Montemor-o-Velho, Aveiro, Tentúgal, Cernache, Pereira, Condeixa and Lousã.
Early life
From the time he was born, Peter was one of John I's favourite sons. Along with his siblings, he received an exceptional education rarely seen in those times for the children of royalty. Close to his brothers Edward, the future king of Portugal, and John, Lord of Reguengos de Monsaraz, Peter grew up in a calm environment free of intrigues.
On 14 August 1415, he accompanied his father and brothers Edward and Henry for the Battle of Ceuta in Morocco. His mother had died the previous month, giving each of her sons on her deathbed an arming sword she had ordered forged for them. Peter refused to be knighted before showing valour in battle, and he was knighted along with his brothers the following day; he was also created Duke of Coimbra. His younger brother Henry was made Duke of Viseu. These were the first dukedoms created in Portugal.
On finishing a translation of Seneca's De Beneficiis in 1418, he initiated extensive travels throughout Europe, which would keep him away from Portugal for the next ten years. After meeting with John II of Castile in Valladolid, he continued to Hungary, where he met with the Holy Roman Emperor Sigismund, and entered his service. He fought with the Imperial armies against the Turks and in the Hussite Wars in Bohemia and was awarded the march of Treviso in Northern Italy in 1422. In 1424 he left the Holy Roman Empire, meeting first with Murad II, Sultan of the Ottoman Empire, on the island of Patmos, and then continuing to Constantinople, capital of the Byzantine Empire; the hopeless position of the city against the Ottoman onslaught did not fail to impress him. From Constantinople he travelled to the Holy Land via Alexandria and Cairo.
European travels
In 1425, Peter travelled to France and England and visited the universities of Paris and Oxford before arriving in Flanders in 1426, where he spent the next two years at the Burgundian court. After the death of the second wife of Philip the Good of Burgundy in 1425, Peter recommended his sister Isabella to him as a wife. Philip sent a delegation to Portugal in 1428–29 that included Jan van Eyck, who painted two portraits of the Infanta. Philip and Isabella eventually married on 7 January 1430, and one of their sons became Duke Charles the Bold of Burgundy.
In 1427, Peter wrote a famous letter to his older brother, later King Edward, on "the proper administration of the kingdoms", from Bruges. Later that year, King Henry VI of England (his first cousin once removed) made him a Knight of the Garter (as were already his father and older brother Edward).
In 1428, Peter visited his marquisate of Treviso and the nearby Republic of Venice, where he was presented with a copy of the book of Marco Polo by the doge. He later gave that book, as well as maps of the Venetian trade routes in the Orient, to his younger brother Prince Henry the Navigator. One of the maps was created by the famous Venetian cartographer Albertinus de Virga in 1411 and possibly shows North America before it was officially discovered. This map was found in the Alcobaça Monastery which was the main library of the Portuguese Royal family. From Venice he traveled to Rome, where he was received by Pope Martin V, and from there he continued to Barcelona, where he negotiated the marriage of his brother Edward with Eleanor of Aragon as well as his own future marriage with Isabella of Urgell, before finally returning to Portugal.
In 1433, he completed his famous six-volume work, the Tratado da Virtuosa Benfeitoria.
Regent
When Peter's brother King Edward I of Portugal died in 1438, Peter's nephew Afonso V ascended the throne as an infant. At first, the choice for regent was the Queen mother Eleanor of Aragon. This choice was not popular among many Portuguese, because Eleanor was Aragonese. Among the Portuguese aristocracy, however, especially among nobles around Peter's half-brother Afonso, Count of Barcelos, Eleanor of Aragon was preferred. There were also doubts about Peter's political ability. At a meeting of the Portuguese Cortes summoned by Peter's brother John, Lord of Reguengos de Monsaraz, Peter was appointed regent, a choice that pleased both the people and the fast-growing bourgeoisie.
In 1443, in a gesture of reconciliation, Peter created his half-brother Afonso Duke of Braganza, and relations between the two seemed to return to normality. But, in 1445, the new duke of Braganza took offence because Isabella of Coimbra, Peter's daughter was the choice for Afonso V's wife, and not one of his granddaughters. Indifferent to the intrigues, Peter continued his regency and the country prospered under his influence. It is during this period that the first subsidies for the exploration of the Atlantic Ocean were implemented under the auspices of Peter's brother Henry the Navigator.
Alleged Rebellion
On 9 June 1448, Peter returned control of the country to the king. Influenced by Afonso, the Duke of Braganza, Afonso V nullified all of Peter's edicts, including the ones that concentrated power in the figure of the king.
The following year, under accusations that years later would prove false, Afonso V declared Peter a rebel. The situation became unsustainable and a civil war began. It did not last long, because Peter died on 20 May 1449 during the Battle of Alfarrobeira, near Alverca. The exact conditions of his death are debatable: some say it was in combat, while others say he was assassinated by one of his own men.
With the death of Peter, Portugal fell under control of Afonso, Duke of Braganza, with a growing influence over the destiny of the country. However, Peter's regency would never be forgotten, and Peter was cited many times by his grandson King John II of Portugal as his main influence. The cruel persecution of the Braganzas by John II was perhaps the response to the conspiracies that caused the fall of one of the major princes of the Ínclita Geração.
Marriage and issue
In 1428 Peter married Isabella of Urgell, daughter of James II, Count of Urgell, and candidate to the throne of the Crown of Aragon at the Compromise of Caspe. The couple had the following children:
Infante Peter (1429–1466), Constable of Portugal, Count of Barcelona and disputed King of Aragon.
Infante John (1431–1457), married Charlotte of Lusignan, heiress of Cyprus, in 1456. He was created titular Prince of Antioch, and was possibly poisoned by his mother-in-law.
Infanta Isabella (1432–1455), Queen of Portugal by marriage to Afonso V of Portugal. Mother of John II of Portugal.
Infante James (1433–1459), Cardinal and Archbishop of Lisbon, lived in Italy; his tomb is in the convent church of San Miniato al Monte in Florence.
Infanta Beatrice (1435–1462), married Adolph of Cleves, Lord of Ravenstein.
Infanta Philippa (1437–1493), a nun in the Convent of Odivelas.
Catherine ( – between 1462 and 1466)
Ancestry
References
Bibliography
The Dukes of Coimbra General Books LLC, 2010.
Elbl, Ivana, "Friendship, Disasters, and Social Capital: The Silva Meneses, 1415-1481" – Portuguese Studies Review, Volume 30, Issue 1, 2022, pages 39–82. Available at https://trentu.academia.edu/ivanaElbl . Accessed 7 May 2023. Deals with the Duke of Coimbra, his marriage to Isabella of Urgell, his son, his allies and friends and servants, including Aires Gomes de Silva.
.
.
Sir G.F.Hill, History of Cyprus (1940), (2nd ed. CUP, 2010), vol.1 of 4.
1392 births
1449 deaths
101
15th-century Portuguese people
House of Aviz
Knights of the Garter
Portuguese infantes
Portuguese people of English descent
Portuguese Renaissance humanists
Regents of Portugal
Sons of kings
|
```xml
import React from 'react';
import { fireEvent, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { clearAll, renderWithProviders } from '../../../contacts/tests/render';
import Spams from '../Spams';
import SpamModal from '../modals/SpamModal';
describe('Spams - Incoming defaults', () => {
afterEach(() => {
clearAll();
});
it('Should display an empty list', () => {
renderWithProviders(<Spams />);
expect(screen.getByRole('button', { name: 'Add address or domain' })).toBeInTheDocument();
expect(screen.queryByRole('table')).not.toBeInTheDocument();
});
it('Should display blocked email modal', async () => {
renderWithProviders(<Spams />);
fireEvent.click(screen.getByRole('button', { name: 'Add address or domain' }));
fireEvent.click(screen.getByRole('button', { name: 'Block' }));
const modal = await screen.findByTestId('spam-modal');
expect(modal).toHaveTextContent('Add to block list');
});
it('Should display blocked email modal with organization', async () => {
renderWithProviders(<Spams isOrganization />);
fireEvent.click(screen.getByRole('button', { name: 'Add address or domain' }));
fireEvent.click(screen.getByRole('button', { name: 'Block' }));
const modal = await screen.findByTestId('spam-modal');
expect(modal).toHaveTextContent('Add to block list');
});
it('Modal submission should return correct values', async () => {
const mockedSubmit = jest.fn();
const EMAIL = 'homer@simpsons.fr';
renderWithProviders(
<SpamModal
modalProps={{
open: true,
}}
type="SPAM"
onAdd={mockedSubmit}
/>
);
const emailInputs = screen.getAllByLabelText('Email');
const emailRadio = emailInputs[0];
const emailInput = emailInputs[1];
await userEvent.click(emailRadio);
expect(emailRadio).toBeChecked();
await userEvent.type(emailInput, EMAIL);
// Dom actually got 2 button called "add address" at this moment. The submit one is the second
const submitButton = screen.getByRole('button', { name: 'Add address' });
await userEvent.click(submitButton);
const submitCalls = mockedSubmit.mock.calls.length;
const submitCallsMode = mockedSubmit.mock.calls[0][0];
const submitCallsEmail = mockedSubmit.mock.calls[0][1];
expect(submitCalls).toBe(1);
expect(submitCallsMode).toBe('email');
expect(submitCallsEmail).toBe(EMAIL);
});
});
```
|
```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.
// gnostic-plugin-request is a development tool that captures and optionally
// displays the contents of the gnostic plugin interface.
package main
import (
"log"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
openapiv2 "github.com/google/gnostic/openapiv2"
openapiv3 "github.com/google/gnostic/openapiv3"
plugins "github.com/google/gnostic/plugins"
surface "github.com/google/gnostic/surface"
)
func main() {
env, err := plugins.NewEnvironment()
env.RespondAndExitIfError(err)
if env.Verbose {
for _, model := range env.Request.Models {
log.Printf("model %s", model.TypeUrl)
switch model.TypeUrl {
case "openapi.v2.Document":
document := &openapiv2.Document{}
err = proto.Unmarshal(model.Value, document)
if err == nil {
log.Printf("%+v", document)
}
case "openapi.v3.Document":
document := &openapiv3.Document{}
err = proto.Unmarshal(model.Value, document)
if err == nil {
log.Printf("%+v", document)
}
case "surface.v1.Model":
document := &surface.Model{}
err = proto.Unmarshal(model.Value, document)
if err == nil {
log.Printf("%+v", document)
}
}
}
}
// export the plugin request as JSON
{
file := &plugins.File{}
file.Name = "plugin-request.json"
m := jsonpb.Marshaler{Indent: " "}
s, err := m.MarshalToString(env.Request)
file.Data = []byte(s)
env.RespondAndExitIfError(err)
env.Response.Files = append(env.Response.Files, file)
}
// export the plugin request as binary protobuf
{
file := &plugins.File{}
file.Name = "plugin-request.pb"
file.Data, err = proto.Marshal(env.Request)
env.RespondAndExitIfError(err)
env.Response.Files = append(env.Response.Files, file)
}
env.RespondAndExit()
}
```
|
```javascript
//your_sha256_hash---------------------------------------
//your_sha256_hash---------------------------------------
var echo = WScript.Echo;
var x0 = 0;
echo("Nested in function expression");
(function(){
var x1 = 1;
function f1() {
var x11 = 11;
echo(x0, x1, x11, typeof f1);
}
f1();
function f2(a2) {
echo(a2, arguments[0], typeof arguments, typeof f1);
}
f2("a2");
})();
echo();
echo("Nested in function expression with arguments");
(function(a0){
var x1 = 1;
function f1() {
echo(x0, x1, a0, typeof f1);
}
f1();
})("a0");
echo();
echo("Nested in named function expression, hidden and unhidden");
(function f(a0){
var x1 = 1;
function f1() {
echo(typeof f, x0, x1, a0, typeof f1);
}
f1();
})("a0");
(function f(a0, f){
var x1 = 1;
function f1() {
echo(typeof f, x0, x1, a0, typeof f1);
}
f1();
})("a0");
echo();
echo("Nested in function expression with eval");
(function(a0){
eval("x1 = 1; var x2 = 2");
function f1() {
echo(x0, x1, x2, a0, typeof f1);
}
f1();
try {
// Make sure global-eval-scoped functions work right in ES6
WScript.Echo(eval('let x; function z() { return z; } z();'));
} catch(e) {}
})("a0");
echo();
echo("Nested in _named_ function expression");
(function f0(){
var x1 = 1;
function f1() {
var x11 = 11;
echo(x0, x1, x11, typeof f1, typeof f0);
}
f1();
function f2(a2) {
echo(a2, arguments[0], typeof arguments, typeof f1, typeof f0);
}
f2("a2");
})();
echo();
echo("Nested in _named_ function expression with arguments");
(function f0(a0){
var x1 = 1;
function f1() {
echo(x0, x1, a0, typeof f1, typeof f0);
}
f1();
})("a0");
echo();
echo("Nested in _named_ function expression with eval");
(function f0(a0, a1){
eval("x1 = 1; var x3 = 3");
var x2 = 2;
function f1() {
echo(x0, x1, x2, x3, a0, a1, typeof f1, typeof f0);
}
f1();
})("a0", "a1");
echo();
echo("Deeply nested");
(function f0(a0, a1){
eval("x1 = 1");
var x2 = 2;
function f1(af1) {
function f2() {
echo(x0, x1, x2, a0, a1, af1, typeof f1, typeof f0);
}
f2();
}
f1("af1");
})("a0", "a1");
echo();
echo("Deeply nested func expr");
(function f0(a0, a1){
eval("x1 = 1");
var x2 = 2;
(function(){
(function(){
function f3() {
echo(x0, x1, x2, a0, a1, typeof f0);
}
f3();
})();
})();
})("a0", "a1");
echo();
echo("Parent func has arguments");
(function() {
function foo(a, b) {
echo(arguments, typeof bar);
function bar(){}
}
foo(1,2);
})();
//-------------------------- eval ---------------------------
var x = "global";
geval = eval;
echo("Child calls eval");
(function(){
var x = "local";
function f1(af1) {
eval("echo(x)");
}
f1();
})();
echo("Deeply nested child calls eval");
(function(){
var x = "local";
function f1() {
function f2() {
(function(){
function f4() {
eval("echo(x)");
}
f4();
})();
}
f2();
}
f1();
})();
echo("Child calls (eval)");
(function(){
var x = "local";
function f1() {
(eval)("echo(x)");
}
f1();
})();
echo("Child calls (,eval)");
(function(){
var x = "local";
function f1() {
(1,eval)("echo(x)");
}
f1();
})();
echo("Child calls geval");
(function(){
var x = "local";
function f1() {
geval("echo(x)");
}
f1();
})();
echo("Child calls leval");
(function(){
var x = "local";
function f1() {
var leval = eval;
function f2() {
leval("echo(x)");
}
f2();
}
f1();
})();
echo("Parent in strict mode, child eval syntax error");
(function(){
"use strict";
function f0() {
function f1() {
eval("arguments = 42;");
}
f1();
};
try {
f0();
} catch (e) {
echo(e); // expect syntax error for "arguments = 42"
}
})();
echo();
//----------------- with -------------------
var a = "global";
var b = "global";
var x = {a:"with"};
echo("func inside with is not deferred");
with (x) {
var f1 = function() {
function f2() {
echo(a, b);
}
f2();
};
f1();
}
echo("simple with (no outer symbol access)");
(function(){
function f0() {
with (x) {
var f1 = function() {
echo(a, b);
};
f1();
}
}
f0();
})();
echo("simple access from with");
(function(){
var a = "local";
var b = "local";
function f0() {
with (x) {
echo(a, b);
}
}
f0();
})();
echo("call func from with");
(function () {
var obj = {};
function foo() {
echo("foo");
}
function bar() {
with (obj) {
foo();
}
}
bar();
})();
echo("call self from with");
(function() {
var i = 0;
function foo() {
echo("foo", i++);
if (i > 0) {
return;
}
with (x) {
foo();
}
}
foo();
})();
echo();
//----------------- try/catch -------------------
echo("parent is catch scope");
(function(){
try {
echo(no_such_var);
} catch(e) {
// This is inside catch, should not be deferred.
(0, function(){
echo(e);
})();
}
})();
echo("parent func contains catch scope");
(function(){
function f0() {
try {
echo(no_such_var);
} catch(e) {
echo(no_such_var);
}
// This can be deferred
(0, function() {
})();
}
try {
f0();
} catch(e) {
echo(e);
}
})();
echo("parent func contains catch scope and eval");
(function(){
function f0() {
eval("");
try {
echo(no_such_var);
} catch(e) {
echo(no_such_var);
}
// This can be deferred
(0, function() {
})();
}
try {
f0();
} catch(e) {
echo(e);
}
})();
echo();
echo("Win8 540999: arguments identifier used as parameter");
(function () {
function foo() {
function unwrapArguments(arguments) {
for (var i = 0; i < arguments.length; i++) {
echo(arguments[i]);
}
}
function bar() {
unwrapArguments();
}
bar();
}
try {
foo();
} catch (e) {
echo(e);
}
})();
echo();
echo("Win8 649401: Same named parameters + eval");
(function () {
function foo(x, x, x, x, x, x) {
function bar() { };
eval('echo("x:", x)'); // eval
}
foo(0);
foo(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
})();
echo();
echo("Win8 649401: Same named parameters + arguments");
(function () {
function foo(x, x, x, x, x, x) {
function bar() { };
echo("x:", x);
for (var i = 0; i < arguments.length; i++) {
echo(arguments[i]);
}
}
foo(0);
foo(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
})();
```
|
Karolina Konieczna is a road cyclist from Poland. She represented her nation at the 2006 UCI Road World Championships.
References
External links
profile at Procyclingstats.com
Polish female cyclists
Living people
Place of birth missing (living people)
Year of birth missing (living people)
|
The black scabbardfish (Aphanopus carbo) is a bathypelagic cutlassfish of the family Trichiuridae found in the Atlantic Ocean between latitudes 69°N and 27°N at depths between . Its length is up to , but it reaches maturity around .
Description
The black scabbardfish has an extremely elongated body; its body height is about one-eighth of the standard length, which is up to . The snout is large with strong, fang-like teeth. The dorsal fin has 34 to 41 spines and 52 to 56 soft rays. The anal fin has two spines and 43 to 48 soft rays. The pelvic fin is represented by a single spine in juveniles, but is entirely absent in adults. The color is a coppery black with an iridescent tint. The inside of the mouth and gill cavities are black. Juveniles are believed to be mesopelagic, living at depths from .
Biology
The black scabbardfish is bathypelagic by day, but moves upwards in the water column at night to feed at middle depths on crustaceans, cephalopods, and other fishes, mostly grenadiers, codlings (family Moridae) and naked heads (family Alepocephalidae). The black scabbardfish coexists spatially with Aphanopus intermedius, which is a species commonly known as the intermediate scabbardfish. The narrow, elongated body of the black scabbardfish, along with its pointed head and long dorsal fin, is adapted for fast swimming. This fish has a large terminal mouth with large fang-like teeth for efficient predation. To camouflage well, it has a coppery-black coloration with an iridescent tint. The fish's large eyes, which have a diameter around 18% of the head length, are of such a large size to facilitate sight in low light. They become sexually mature at a length around . Both the eggs and the larvae are pelagic, drifting with the plankton. In general, the size distribution moves towards higher values from north to south of the Northeast Atlantic. Eggs and larval stages of this fish are unknown and juvenile fish are rarely caught. Juveniles, however, are reported to be mesopelagic. The lifecycle of black scabbardfish is unknown, but the most common hypothesis is that one single stock undertakes a large-scale clockwise migration around the Northeast Atlantic. Spawning is restricted to certain areas, including Madeira, the Canary Islands, and possibly further south. The juvenile black scabbardfish stay to feed and grow for a few years in the fisheries south of the Faroe Islands and the west of the British Isles. Afterwards, the juveniles then move south towards mainland Portugal and even further south to the spawning areas. The most recent studies indicate that the maximum age of the black scabbardfish from Madeira was about 14 years and the maximum age in mainland Portugal was about 12 years. As opposed to most shelf demersal and pelagic commercial fish, the black scabbardfish exhibits a slow growth rate in adults, which results from energy investment in growth and reproduction.
Reproduction
The black scabbardfish is an iteroparous species, meaning it can spawn multiple times throughout its life. It is also a total spawner, meaning that it releases all of its eggs in one single event per breeding season. It also exhibits determinate fecundity, meaning that all of the eggs are oocytes in the ovary before spawning. The females are expected to be able to spawn for a period of 8 years, but skip spawning may occur. If nonreproductive males are mixed with spawning adults, the females allocate their energy towards large-scale migration and growth and participate in skip spawning. The mature and spawning adult fish have only been observed in the last quarter of the year in certain locations including Madeira, the Canaries, and the northwest coast of Africa. The gonadosomatic index is higher for the same body length in the black scabbardfish located around Madeira as opposed to off mainland Portugal or to the west of the British Isles. This occurrence may be due to the areas lacking intrinsic and extrinsic factors that condition the maturity process in these areas. According to recent studies, developing females are dominant from April to August, and the reproduction period lasts from September to December with a prevalent number of prespawning and spawning females during this period. From December to March, most females have spawned. Developing males are seen throughout the year, though, mainly from March to August. Prespawning males are more abundant from July to November. Similar to the females, postspawning males are prevalent from December to April. Generally, developing females are prevalent in Madeiran waters around spring and their reproductive cycles continue in this area, whereas mainland Portugal females begin to suffer from a generalized atresia from July on.
Diet
Black scabbardfish have 35 or more prey categories, including crustaceans, cephalopods, mesopelagic fish, shrimp, teleost fish, and blue whiting. Blue whiting may be a preferred prey; other mesopelagic fish are also preferred. When black scabbardfish are not feeding on these, they may chase after baitfish, feeding on Sardina pilchardus, Scomber colias, or squid.
Parasitic infection
The black scabbardfish is a suitable host for the parasite Anisakis, mainly due to the fishes’ diet of infected hosts such as crustaceans (euphausiids, copepods, and amphipods), fish, and cephalopods. This parasite is a nematode capable of entering the hosts’ stomach wall or intestines. Scientists have used these parasites to track where the black scabbardfish has traveled. These parasites are commonly used for tracking, since they are prevalent in waters near Portugal and the Madeira Islands. A study has been conducted on the infectivity of the Anisakis app. Larvae (Nematoda: Aniskidae) in the black scabbardfish near Portuguese waters. The three regions that were observed in the study were the mainland coast of Portugal, Madeira, and the Azores. The mainland and Madeira regions were observed throughout four seasons by scientists and the Azores were observed in two seasons. In all fish observed, all were infected by L3 larvae. Consumption of raw or undercooked black scabbard fish can result in health complications for humans. The only reliable treatment for a human affected with anisakiasis is the removal of the nematodes through endoscopy, or surgery.
Migration and habitat
The black scabbardfish can be found throughout the Northeast Atlantic in differing stages of growth through its life. This fish performs a clockwise migration during its lifecycle driven by reproduction and feeding habits. The black scabbardfish spawns near the Madeira Islands and the Canary Archipelago during October through December. They then are thought to head north to cooler waters, where they feed and grow. Upon reaching adulthood, they then move south again to the waters off Portugal until they are of reproductive maturity age and return to their spawning grounds. Some debate exists on the spawning areas of the black scabbardfish. Though the Madeira spawning area is well known, some other spawning areas off the northwestern coast of Africa may be used, as mature females have been found in this region during the reproductive time.
Economic value
The black scabbardfish is of economic importance to fisheries associated with countries of the Iberian Peninsula, and especially the Madeira Islands, where they are prized for food. The species is also fished around Iceland, France, Ireland, and some areas of the Canary Islands. Because of its good flesh quality, it usually fetches high prices. The black scabbardfish, along with the crab, are the two most sought-after sea products for consumption in the Madeira Islands and Portugal, so play a significant economic role in these locations. In areas in Portuguese waters, the black scabbardfish has traditionally been caught by line gear. In the Atlantic around France and Ireland, the fish are caught by trawlers. The black scabbardfish, has high economic value in areas such as Portugal, it is the most important deep-water fish exploited, and landings increased from 2700 tonnes per year between 1988 and 1993 and around 2000 and increased to 2900 tonnes in landings in 2007. In the last decade alone, landings have increased to about 6000 tonnes, 3000 tonnes in Madeira and 3000 tonnes in mainland Portugal.
Consumption and health
Despite having huge market value and a strong hold in the typical Southern European diet, several health risks are associated with consumption of the black scabbardfish due to the presence of several toxic metals found within the fish, including lead, mercury, and cadmium. Even in very small quantities, these metals can be deadly to humans if consumed. However, according to standards set by the World Health Organization and the Food and Agricultural Organization, as long as the liver is not consumed, no real health risks exist in consuming the black scabbardfish in moderation. The levels of toxic metals found in the fish were:
Liver: between 2.37 mg/kg and 4.5 mg/kg of mercury found
Skin: between 0.36 mg/kg and 0.59 mg/kg of mercury found 0.11 mg/kg of cadmium found
Muscle: 0.9 mg/kg mercury found, 0.09 mg/kg maximum cadmium levels found
In every sample, the lead found was less than 0.10 mg/kg. Black scabbardfish are known hosts to Anisakis. Eating raw or undercooked black scabbardfish could result in a parasitic infection known as anisakiasis, and the only way this condition can be treated is by removal of the nematodes through endoscopy, or surgery.
Conservation
Black scabbardfish are deep-sea creatures, existing in abundance between 800 and 1300 m deep. They are mainly caught in mixed trawl fisheries along with other deep-water species, and are highly vulnerable to overfishing. The Marine Conservation Society ranks this species as a number five out of five on the sustainability chart. This means that the species is vital to their ecosystem. Preservation of this species is highly recommended. However, this species is of high commercial importance, with annual catches reaching up to 14,000 tonnes. The high abundance of this species is declining in some areas of the Northeast Atlantic.
References
black scabbardfish
Fish of the North Atlantic
Commercial fish
Madeiran cuisine
black scabbardfish
Taxa named by Richard Thomas Lowe
|
```smalltalk
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
//
//
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using Behaviac.Design.Properties;
namespace Behaviac.Design.Attributes
{
[AttributeUsage(/*AttributeTargets.Field | */AttributeTargets.Property)]
public class DesignerArrayFloat : DesignerArray
{
/// <summary>
/// Creates a new designer attribute for handling a string value.
/// </summary>
/// <param name="displayName">The name shown on the node and in the property editor for the property.</param>
/// <param name="description">The description shown in the property editor for the property.</param>
/// <param name="category">The category shown in the property editor for the property.</param>
/// <param name="displayMode">Defines how the property is visualised in the editor.</param>
/// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param>
/// <param name="flags">Defines the designer flags stored for the property.</param>
public DesignerArrayFloat(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags)
: base(displayName, description, category, displayMode, displayOrder, flags)
{
}
}
}
```
|
An earthworm is a soil-dwelling terrestrial invertebrate that belongs to the phylum Annelida. The term is the common name for the largest members of the class (or subclass, depending on the author) Oligochaeta. In classical systems, they were in the order of Opisthopora since the male pores opened posterior to the female pores, although the internal male segments are anterior to the female. Theoretical cladistic studies have placed them in the suborder Lumbricina of the order Haplotaxida, but this may change. Other slang names for earthworms include "dew-worm", "rainworm", "nightcrawler", and "angleworm" (from its use as angling hookbaits). Larger terrestrial earthworms are also called megadriles (which translates to "big worms") as opposed to the microdriles ("small worms") in the semiaquatic families Tubificidae, Lumbricidae and Enchytraeidae. The megadriles are characterized by a distinct clitellum (more extensive than that of microdriles) and a vascular system with true capillaries.
Earthworms are commonly found in moist, compost-rich soil, eating a wide variety of organic matters, which include detritus, living protozoa, rotifers, nematodes, bacteria, fungi and other microorganisms. An earthworm's digestive system runs the length of its body. They are one of nature's most important detritivores and coprophages, and also serve as food for many low-level consumers within the ecosystems.
Earthworms exhibit an externally segmented tube-within-a-tube body plan with corresponding internal segmentations, and usually have setae on all segments. They have a cosmopolitan distribution wherever soil, water and temperature conditions allow. They have a double transport system made of coelomic fluid that moves within the fluid-filled coelom and a simple, closed circulatory system, and respires (breathes) via cutaneous respiration. As soft-bodied invertebrates, they lack a true skeleton, but their structure is maintained by fluid-filled coelom chambers that function as a hydrostatic skeleton.
Earthworms have a central nervous system consisting of two ganglia above the mouth, one on either side, connected to an axial nerve running along its length to motor neurons and sensory cells in each segment. Large numbers of chemoreceptors concentrate near its mouth. Circumferential and longitudinal muscles edging each segment let the worm move. Similar sets of muscles line the gut tube, and their actions propel digested food toward the worm's anus.
Earthworms are hermaphrodites: each worm carries male and female reproductive organs and genital pores. When mating, two individual earthworms will exchange sperm and fertilize each other's ova.
Anatomy
Form and function
Depending on the species, an adult earthworm can be from long and wide to long and over wide, but the typical Lumbricus terrestris grows to about long. Probably the longest worm on confirmed records is Amynthas mekongianus that extends up to 3 m (10 ft) in the mud along the banks of the 4,350 km (2,703 mi) Mekong River in Southeast Asia.
From front to back, the basic shape of the earthworm is a cylindrical tube-in-a-tube, divided into a series of segments (called metameres) that compartmentalize the body. Furrows are generally externally visible on the body demarking the segments; dorsal pores and nephridiopores exude a fluid that moistens and protects the worm's surface, allowing it to breathe. Except for the mouth and anal segments, each segment carries bristlelike hairs called lateral setae used to anchor parts of the body during movement; species may have four pairs of setae on each segment or more than eight sometimes forming a complete circle of setae per segment. Special ventral setae are used to anchor mating earthworms by their penetration into the bodies of their mates.
Generally, within a species, the number of segments found is consistent across specimens, and individuals are born with the number of segments they will have throughout their lives. The first body segment (segment number 1) features both the earthworm's mouth and, overhanging the mouth, a fleshy lobe called the prostomium, which seals the entrance when the worm is at rest, but is also used to feel and chemically sense the worm's surroundings. Some species of earthworm can even use the prehensile prostomium to grab and drag items such as grasses and leaves into their burrow.
An adult earthworm develops a belt-shaped glandular swelling, called the clitellum, which covers several segments toward the front part of the animal. This is part of the reproductive system and produces egg capsules. The posterior is most commonly cylindrical like the rest of the body, but depending on the species, it may also be quadrangular, octagonal, trapezoidal, or flattened. The last segment is called the periproct; the earthworm's anus, a short vertical slit, is found on this segment.
The exterior of an individual segment is a thin cuticle over the skin, commonly pigmented red to brown, which has specialized cells that secrete mucus over the cuticle to keep the body moist and ease movement through the soil. Under the skin is a layer of nerve tissue, and two layers of muscles—a thin outer layer of circular muscle, and a much thicker inner layer of longitudinal muscle. Interior to the muscle layer is a fluid-filled chamber called a coelom that by its pressurization provides structure to the worm's boneless body. The segments are separated from each other by septa (the plural of "septum") which are perforated transverse walls, allowing the coelomic fluid to pass between segments. A pair of structures called nephrostomes are located at the back of each septum; a nephric tubule leads from each nephrostome through the septum and into the following segment. This tubule then leads to the main body fluid filtering organ, the nephridium or metanephridium, which removes metabolic waste from the coelomic fluid and expels it through pores called nephridiopores on the worm's sides; usually, two nephridia (sometimes more) are found in most segments. At the centre of a worm is the digestive tract, which runs straight through from mouth to anus without coiling, and is flanked above and below by blood vessels (the dorsal blood vessel and the ventral blood vessel as well as a subneural blood vessel) and the ventral nerve cord, and is surrounded in each segment by a pair of pallial blood vessels that connect the dorsal to the subneural blood vessels.
Many earthworms can eject coelomic fluid through pores in the back in response to stress; the Australian Didymogaster sylvaticus (known as the "blue squirter earthworm") can squirt fluid as high as .
Nervous system
Central nervous system
The CNS consists of a bilobed brain (cerebral ganglia, or supra-pharyngeal ganglion), sub-pharyngeal ganglia, circum-pharyngeal connectives and a ventral nerve cord.
Earthworms' brains consist of a pair of pear-shaped cerebral ganglia. These are located in the dorsal side of the alimentary canal in the third segment, in a groove between the buccal cavity and pharynx.
A pair of circum-pharyngeal connectives from the brain encircle the pharynx and then connect with a pair of sub-pharyngeal ganglia located below the pharynx in the fourth segment. This arrangement means the brain, sub-pharyngeal ganglia and the circum-pharyngeal connectives form a nerve ring around the pharynx.
The ventral nerve cord (formed by nerve cells and nerve fibers) begins at the sub-pharyngeal ganglia and extends below the alimentary canal to the most posterior body segment. The ventral nerve cord has a swelling, or ganglion, in each segment, i.e. a segmental ganglion, which occurs from the fifth to the last segment of the body. There are also three giant axons, one medial giant axon (MGA) and two lateral giant axons (LGAs) on the mid-dorsal side of the ventral nerve cord. The MGA is 0.07 mm in diameter and transmits in an anterior-posterior direction at a rate of 32.2 m/s. The LGAs are slightly narrower at 0.05 mm in diameter and transmit in a posterior-anterior direction at 12.6 m/s. The two LGAs are connected at regular intervals along the body and are therefore considered one giant axon.
Peripheral nervous system
Eight to ten nerves arise from the cerebral ganglia to supply the prostomium, buccal chamber and pharynx.
Three pairs of nerves arise from the subpharyangeal ganglia to supply the second, third and fourth segment.
Three pairs of nerves extend from each segmental ganglion to supply various structures of the segment.
The sympathetic nervous system consists of nerve plexuses in the epidermis and alimentary canal. (A plexus is a web of connected nerve cells.) The nerves that run along the body wall pass between the outer circular and inner longitudinal muscle layers of the wall. They give off branches that form the intermuscular plexus and the subepidermal plexus. These nerves connect with the cricopharyngeal connective.
Movement
On the surface, crawling speed varies both within and among individuals. Earthworms crawl faster primarily by taking longer "strides" and a greater frequency of strides. Larger Lumbricus terrestris worms crawl at a greater absolute speed than smaller worms. They achieve this by taking slightly longer strides but with slightly lower stride frequencies.
Touching an earthworm, which causes a "pressure" response as well as (often) a response to the dehydrating quality of the salt on human skin (toxic to earthworms), stimulates the subepidermal nerve plexus which connects to the intermuscular plexus and causes the longitudinal muscles to contract. This causes the writhing movements observed when a human picks up an earthworm. This behaviour is a reflex and does not require the CNS; it occurs even if the nerve cord is removed. Each segment of the earthworm has its own nerve plexus. The plexus of one segment is not connected directly to that of adjacent segments. The nerve cord is required to connect the nervous systems of the segments.
The giant axons carry the fastest signals along the nerve cord. These are emergency signals that initiate reflex escape behaviours. The larger dorsal giant axon conducts signals the fastest, from the rear to the front of the animal. If the rear of the worm is touched, a signal is rapidly sent forwards causing the longitudinal muscles in each segment to contract. This causes the worm to shorten very quickly as an attempt to escape from a predator or other potential threat. The two medial giant axons connect with each other and send signals from the front to the rear. Stimulation of these causes the earthworm to very quickly retreat (perhaps contracting into its burrow to escape a bird).
The presence of a nervous system is essential for an animal to be able to experience nociception or pain. However, other physiological capacities are also required such as opioid sensitivity and central modulation of responses by analgesics. Enkephalin and α-endorphin-like substances have been found in earthworms. Injections of naloxone (an opioid antagonist) inhibit the escape responses of earthworms. This indicates that opioid substances play a role in sensory modulation, similar to that found in many vertebrates.
Sensory reception
Photosensitivity
Earthworms do not have eyes (although some worms do); however, they do have specialized photosensitive cells called "light cells of Hess". These photoreceptor cells have a central intracellular cavity (phaosome) filled with microvilli. As well as the microvilli, there are several sensory cilia in the phaosome which are structurally independent of the microvilli. The photoreceptors are distributed in most parts of the epidermis but are more concentrated on the back and sides of the worm. A relatively small number occurs on the ventral surface of the first segment. They are most numerous in the prostomium and reduce in density in the first three segments; they are very few in number past the third segment.
Epidermal receptor (Sense organ)
These receptors are abundant and distributed all over the epidermis. Each receptor shows a slightly elevated cuticle which covers a group of tall, slender and columnar receptor cells. These cells bear small hairlike processes at their outer ends and their inner ends are connected with nerve fibres. The epidermal receptors are tactile in function. They are also concerned with changes in temperature and respond to chemical stimuli. Earthworms are extremely sensitive to touch and mechanical vibration.
Buccal receptor (Sense organ)
These receptors are located only in the epithelium of the buccal chamber. These receptors are gustatory and olfactory (related to taste and smell). They also respond to chemical stimuli. (Chemoreceptor)
Digestive system
The gut of the earthworm is a straight tube that extends from the worm's mouth to its anus. It is differentiated into an alimentary canal and associated glands which are embedded in the wall of the alimentary canal itself. The alimentary canal consists of a mouth, buccal cavity (generally running through the first one or two segments of the earthworm), pharynx (running generally about four segments in length), esophagus, crop, gizzard (usually), and intestine.
Food enters at the mouth. The pharynx acts as a suction pump; its muscular walls draw in food. In the pharynx, the pharyngeal glands secrete mucus. Food moves into the esophagus, where calcium (from the blood and ingested from previous meals) is pumped in to maintain proper blood calcium levels in the blood and food pH. From there the food passes into the crop and gizzard. In the gizzard, strong muscular contractions grind the food with the help of mineral particles ingested along with the food. Once through the gizzard, food continues through the intestine for digestion. The intestine secretes pepsin to digest proteins, amylase to digest polysaccharides, cellulase to digest cellulose, and lipase to digest fats. Earthworms use, in addition to the digestive proteins, a class of surface active compounds called drilodefensins, which help digest plant material. Instead of being coiled like a mammalian intestine, in an earthworm's intestine a large mid-dorsal, tongue-like fold is present, called typhlosole which increases surface area to increase nutrient absorption by having many folds running along its length. The intestine has its own pair of muscle layers like the body, but in reverse order—an inner circular layer within an outer longitudinal layer.
Circulatory system
Earthworms have a dual circulatory system in which both the coelomic fluid and a closed circulatory system carry the food, waste, and respiratory gases. The closed circulatory system has five main blood vessels: the dorsal (top) vessel, which runs above the digestive tract; the ventral (bottom) vessel, which runs below the digestive tract; the subneural vessel, which runs below the ventral nerve cord; and two lateroneural vessels on either side of the nerve cord.
The dorsal vessel is mainly a collecting structure in the intestinal region. It receives a pair commissural and dorsal intestines in each segment. The ventral vessel branches off to a pair of ventro-tegumentaries and ventro-intestinals in each segment. The subneural vessel also gives out a pair of commissurals running along the posterior surface of the septum.
The pumping action on the dorsal vessel moves the blood forward, while the other four longitudinal vessels carry the blood rearward. In segments seven through eleven, a pair of aortic arches ring the coelom and acts as hearts, pumping the blood to the ventral vessel that acts as the aorta. The blood consists of ameboid cells and haemoglobin dissolved in the plasma. The second circulatory system derives from the cells of the digestive system that line the coelom. As the digestive cells become full, they release non-living cells of fat into the fluid-filled coelom, where they float freely but can pass through the walls separating each segment, moving food to other parts and assist in wound healing.
Excretory system
The excretory system contains a pair of nephridia in every segment, except for the first three and the last ones. The three types of nephridia are: integumentary, septal, and pharyngeal. The integumentary nephridia lie attached to the inner side of the body wall in all segments except the first two. The septal nephridia are attached to both sides of the septa behind the 15th segment. The pharyngeal nephridia are attached to the fourth, fifth and sixth segments. The waste in the coelom fluid from a forward segment is drawn in by the beating of cilia of the nephrostome. From there it is carried through the septum (wall) via a tube which forms a series of loops entwined by blood capillaries that also transfer waste into the tubule of the nephrostome. The excretory wastes are then finally discharged through a pore on the worm's side.
Respiration
Earthworms have no special respiratory organs. Gases are exchanged through the moist skin and capillaries, where the oxygen is picked up by the haemoglobin dissolved in the blood plasma and carbon dioxide is released. Water, as well as salts, can also be moved through the skin by active transport.
Life and physiology
At birth, earthworms emerge small but fully formed, lacking only their sex structures which develop in about 60 to 90 days. They attain full size in about one year. Scientists predict that the average lifespan under field conditions is four to eight years, while most garden varieties live only one to two years.
Reproduction
Several common earthworm species are mostly parthenogenetic, meaning that growth and development of embryos happens without fertilization.
Among lumbricid earthworms, parthenogenesis arose from sexual relatives many times. Parthenogenesis in some Aporrectodea trapezoides lineages arose 6.4 to 1.1 million years ago from sexual ancestors. A few species exhibit pseudogamous parthogenesis, meaning that mating is necessary to stimulate reproduction, even though no male genetic material passes to the offspring.
Earthworm mating occurs on the surface, most often at night. Earthworms are hermaphrodites; that is, they have both male and female sexual organs. The sexual organs are located in segments 9 to 15. Earthworms have one or two pairs of testes contained within sacs. The two or four pairs of seminal vesicles produce, store and release the sperm via the male pores. Ovaries and oviducts in segment 13 release eggs via female pores on segment 14, while sperm is expelled from segment 15. One or more pairs of spermathecae are present in segments 9 and 10 (depending on the species) which are internal sacs that receive and store sperm from the other worm during copulation. As a result, segment 15 of one worm exudes sperm into segments 9 and 10 with its storage vesicles of its mate. Some species use external spermatophores for sperm transfer.
In Hormogaster samnitica and Hormogaster elisae transcriptome DNA libraries were sequenced and two sex pheromones, Attractin and Temptin, were detected in all tissue samples of both species. Sex pheromones are probably important in earthworms because they live in an environment where chemical signaling may play a crucial role in attracting a partner and in facilitating outcrossing. Outcrossing would provide the benefit of masking the expression of deleterious recessive mutations in progeny (see Complementation).
Copulation and reproduction are separate processes in earthworms. The mating pair overlap front ends ventrally and each exchanges sperm with the other. The clitellum becomes very reddish to pinkish in colour. Sometime after copulation, long after the worms have separated, the clitellum (behind the spermathecae) secretes material which forms a ring around the worm. The worm then backs out of the ring, and as it does so, it injects its own eggs and the other worm's sperm into it. Thus each worm becomes the genetic father of some of their offspring (due to its own sperm transferred to other earthworm) and the genetic mother (offsprings from its own egg cells) of the rest. As the worm slips out of the ring, the ends of the cocoon seal to form a vaguely onion-shaped incubator (cocoon) in which the embryonic worms develop. Hence fertilization is external. The cocoon is then deposited in the soil. After three weeks, 2 to 20 offspring hatch with an average of 4. Development is direct i.e. without formation of any larva.
Locomotion
Earthworms travel underground by means of waves of muscular contractions which alternately shorten and lengthen the body (peristalsis). The shortened part is anchored to the surrounding soil by tiny clawlike bristles (setae) set along its segmented length. In all the body segments except the first, last and clitellum, there is a ring of S-shaped setae embedded in the epidermal pit of each segment (perichaetine). The whole burrowing process is aided by the secretion of lubricating mucus. As a result of their movement through their lubricated tunnels, worms can make gurgling noises underground when disturbed. Earthworms move through soil by expanding crevices with force; when forces are measured according to body weight, hatchlings can push 500 times their own body weight whereas large adults can push only 10 times their own body weight.
Regeneration
Earthworms have the ability to regenerate lost segments, but this ability varies between species and depends on the extent of the damage. Stephenson (1930) devoted a chapter of his monograph to this topic, while G. E. Gates spent 20 years studying regeneration in a variety of species, but "because little interest was shown", Gates (1972) published only a few of his findings that, nevertheless, show it is theoretically possible to grow two whole worms from a bisected specimen in certain species.
Gates's reports included:
Eisenia fetida (Savigny, 1826) with head regeneration, in an anterior direction, possible at each intersegmental level back to and including 23/24, while tails were regenerated at any levels behind 20/21; thus two worms may grow from one.
Lumbricus terrestris (Linnaeus, 1758) replacing anterior segments from as far back as 13/14 and 16/17 but tail regeneration was never found.
Perionyx excavatus (Perrier, 1872) readily regenerated lost parts of the body, in an anterior direction from as far back as 17/18, and in a posterior direction as far forward as 20/21.
Lampito mauritii (Kinberg, 1867) with regeneration in anterior direction at all levels back to 25/26 and tail regeneration from 30/31; head regeneration was sometimes believed to be caused by internal amputation resulting from Sarcophaga sp. larval infestation.
Criodrilus lacuum (Hoffmeister, 1845) also has prodigious regenerative capacity with 'head' regeneration from as far back as 40/41.
An unidentified Tasmanian earthworm shown growing a replacement head has been reported.
Taxonomy and distribution
Within the world of taxonomy, the stable 'Classical System' of Michaelsen (1900) and Stephenson (1930) was gradually eroded by the controversy over how to classify earthworms, such that Fender and McKey-Fender (1990) went so far as to say, "The family-level classification of the megascolecid earthworms is in chaos." Over the years, many scientists have developed their own classification systems for earthworms, which led to confusion, and these systems have been and still continue to be revised and updated. The classification system used here which was developed by Blakemore (2000), is a modern reversion to the Classical System that is historically proven and widely accepted.
Categorization of a megadrile earthworm into one of its taxonomic families under suborders Lumbricina and Moniligastrida is based on such features as the makeup of the clitellum, the location and disposition of the sex features (pores, prostatic glands, etc.), number of gizzards, and body shape. Currently, over 6,000 species of terrestrial earthworms are named, as provided in a species name database, but the number of synonyms is unknown.
The families, with their known distributions or origins:
Acanthodrilidae
Ailoscolecidae – the Pyrenees and the southeast USA
Almidae – tropical equatorial (South America, Africa, Indo-Asia)
Benhamiinae – Ethiopian, Neotropical (a possible subfamily of Octochaetidae)
Criodrilidae – southwestern Palaearctic: Europe, Middle East, Russia and Siberia to Pacific coast; Japan (Biwadrilus); mainly aquatic
Diplocardiinae/-idae – Gondwanan or Laurasian? (a subfamily of Acanthodrilidae)
Enchytraeidae – cosmopolitan but uncommon in tropics (usually classed with Microdriles)
Eudrilidae – Tropical Africa south of the Sahara
Exxidae – Neotropical: Central America and the Caribbean
Glossoscolecidae – Neotropical: Central and South America, Caribbean
Haplotaxidae – cosmopolitan distribution (usually classed with Microdriles)
Hormogastridae – Mediterranean
Kynotidae – Malagasian: Madagascar
Lumbricidae – Holarctic: North America, Europe, Middle East, Central Asia to Japan
Lutodrilidae – Louisiana the southeast USA
Megascolecidae
Microchaetidae – Terrestrial in Africa especially South African grasslands
Moniligastridae – Oriental and Indian subregion
Ocnerodrilidae – Neotropics, Africa; India
Octochaetidae – Australasian, Indian, Oriental, Ethiopian, Neotropical
Octochaetinae – Australasian, Indian, Oriental (subfamily if Benhamiinae is accepted)
Sparganophilidae – Nearctic, Neotropical: North and Central America
Tumakidae – Colombia, South America
As an invasive species
From a total of around 7,000 species, only about 150 species are widely distributed around the world. These are the peregrine or cosmopolitan earthworms.
Of the 182 taxa of earthworms found in the United States and Canada, 60 (33%) are introduced species.
Ecology
Earthworms are classified into three main ecophysiological categories: (1) leaf litter- or compost-dwelling worms that are nonburrowing, live at the soil-litter interface and eat decomposing organic matter (epigeic) e.g. Eisenia fetida; (2) topsoil- or subsoil-dwelling worms that feed (on soil), burrow and cast within the soil, creating horizontal burrows in upper 10–30 cm of soil (endogeic); and (3) worms that construct permanent deep vertical burrows which they use to visit the surface to obtain plant material for food, such as leaves (anecic, meaning "reaching up"), e.g. Lumbricus terrestris.
Earthworm populations depend on both physical and chemical properties of the soil, such as temperature, moisture, pH, salts, aeration, and texture, as well as available food, and the ability of the species to reproduce and disperse. One of the most important environmental factors is pH, but earthworms vary in their preferences. Most favour neutral to slightly acidic soils. Lumbricus terrestris is still present in a pH of 5.4, Dendrobaena octaedra at a pH of 4.3 and some Megascolecidae are present in extremely acidic humic soils. Soil pH may also influence the numbers of worms that go into diapause. The more acidic the soil, the sooner worms go into diapause, and remain in diapause the longest time at a pH of 6.4.
Earthworms are preyed upon by many species of birds (e.g. robins, starlings, thrushes, gulls, crows), snakes, wood turtles, mammals (e.g. bears, boars, foxes, hedgehogs, pigs, moles) and invertebrates (e.g. ants, flatworms, ground beetles and other beetles, snails, spiders, and slugs). Earthworms have many internal parasites, including protozoa, platyhelminthes, mites, and nematodes; they can be found in the worms' blood, seminal vesicles, coelom, or intestine, or in their cocoons (e.g. the mite Histiostoma murchiei is a parasite of earthworm cocoons).
Nitrogenous fertilizers tend to create acidic conditions, which are fatal to the worms, and dead specimens are often found on the surface following the application of substances such as DDT, lime sulphur, and lead arsenate. In Australia, changes in farming practices such as the application of superphosphates on pastures and a switch from pastoral farming to arable farming had a devastating effect on populations of the giant Gippsland earthworm, leading to their classification as a protected species. Globally, certain earthworms populations have been devastated by deviation from organic production and the spraying of synthetic fertilizers and biocides, with at least three species now listed as extinct but many more endangered.
This earthworm activity aerates and mixes the soil, and is conducive to mineralization of nutrients and their uptake by vegetation. Certain species of earthworm come to the surface and graze on the higher concentrations of organic matter present there, mixing it with the mineral soil. Because a high level of organic matter mixing is associated with soil fertility, an abundance of earthworms is generally considered beneficial by farmers and gardeners. As long ago as 1881 Charles Darwin wrote: "It may be doubted whether there are many other animals which have played so important a part in the history of the world, as have these lowly organized creatures."
Also, while, as the name suggests, the main habitat of earthworms is in soil, they are not restricted to this habitat. The brandling worm Eisenia fetida lives in decaying plant matter and manure. Arctiostrotus vancouverensis from Vancouver Island and the Olympic Peninsula is generally found in decaying conifer logs. Aporrectodea limicola, Sparganophilus spp., and several others are found in mud in streams. Some species are arboreal, some aquatic and some euryhaline (salt-water tolerant) and littoral (living on the sea-shore, e.g. Pontodrilus litoralis). Even in the soil species, special habitats, such as soils derived from serpentine, have an earthworm fauna of their own.
Vermicomposting of organic "wastes" and addition of this organic matter to the soil, preferably as a surface mulch, will provide several species of earthworms with their food and nutrient requirements, and will create the optimum conditions of temperature and moisture that will stimulate their activity.
Earthworms are environmental indicators of soil health. Earthworms feed on the decaying matter in the soil and analyzing the contents of their digestive tracts gives insight into the overall condition of the soil. The earthworm gut accumulates chemicals, including heavy metals such as cadmium, mercury, zinc, and copper. The population size of the earthworm indicates the quality of the soil, as healthy soil would contain a larger number of earthworms.
Environmental impacts
The major benefits of earthworm activities to soil fertility for agriculture can be summarized as:
Biological: In many soils, earthworms play a major role in the conversion of large pieces of organic matter into rich humus, thus improving soil fertility. This is achieved by the worm's actions of pulling below the surface deposited organic matter such as leaf fall or manure, either for food or to plug its burrow. Once in the burrow, the worm will shred the leaf, partially digest it and mingle it with the earth. Worm casts (see bottom right) can contain 40 percent more humus than the top of soil in which the worm is living.
Chemical: In addition to dead organic matter, the earthworm also ingests any other soil particles that are small enough—including sand grains up to —into its gizzard, wherein those minute fragments of grit grind everything into a fine paste which is then digested in the intestine. When the worm excretes this in the form of casts, deposited on the surface or deeper in the soil, minerals and plant nutrients are changed to an accessible form for plants to use. Investigations in the United States show that fresh earthworm casts are five times richer in available nitrogen, seven times richer in available phosphates, and 11 times richer in available potassium than the surrounding upper of soil. In conditions where humus is plentiful, the weight of casts produced may be greater than per worm per year.
Physical: The earthworm's burrowing creates a multitude of channels through the soil and is of great value in maintaining the soil structure, enabling processes of aeration and drainage. Permaculture co-founder Bill Mollison points out that by sliding in their tunnels, earthworms "act as an innumerable army of pistons pumping air in and out of the soils on a 24-hour cycle (more rapidly at night)". Thus, the earthworm not only creates passages for air and water to traverse the soil, but also modifies the vital organic component that makes a soil healthy (see Bioturbation). Earthworms promote the formation of nutrient-rich casts (globules of soil, stable in soil mucus) that have high soil aggregation and soil fertility and quality. In podzol soils, earthworms can obliterate the characteristic banded appearance of the soil profile by mixing the organic (LFH), eluvial (E) and upper illuvial (B) horizons to create a single dark Ap horizon.
Earthworms accelerate nutrient cycling in the soil-plant system through fragmentation & mixing of plant debris – physical grinding & chemical digestion. The earthworm's existence cannot be taken for granted. Dr. W. E. Shewell-Cooper observed "tremendous numerical differences between adjacent gardens", and worm populations are affected by a host of environmental factors, many of which can be influenced by good management practices on the part of the gardener or farmer.
Darwin estimated that arable land contains up to of worms, but more recent research has produced figures suggesting that even poor soil may support , whilst rich fertile farmland may have up to , meaning that the weight of earthworms beneath a farmer's soil could be greater than that of the livestock upon its surface. Richly organic topsoil populations of earthworms are much higher – averaging and up to 400 g2 – such that, for the 7 billion of us, each person alive today has support of 7 million earthworms.
The ability to break down organic materials and excrete concentrated nutrients makes the earthworm a functional contributor in restoration projects. In response to ecosystem disturbances, some sites have utilized earthworms to prepare soil for the return of native flora. Research from the Station d'écologie Tropicale de Lamto asserts that the earthworms positively influence the rate of macroaggregate formation, an important feature for soil structure. The stability of aggregates in response to water was also found to be improved when constructed by earthworms.
Though not fully quantified yet, greenhouse gas emissions of earthworms likely contribute to global warming, especially since top-dwelling earthworms increase the speed of carbon cycles and have been spread by humans into many new geographies.
Economic impact
Various species of worms are used in vermiculture, the practice of feeding organic waste to earthworms to decompose food waste. These are usually Eisenia fetida (or its close relative Eisenia andrei) or the brandling worm, commonly known as the tiger worm or red wiggler. They are distinct from soil-dwelling earthworms. In the tropics, the African nightcrawler Eudrilus eugeniae and the Indian blue Perionyx excavatus are used.
Earthworms are sold all over the world; the market is sizable. According to Doug Collicutt, "In 1980, 370 million worms were exported from Canada, with a Canadian export value of $13 million and an American retail value of $54 million."
Earthworms provide an excellent source of protein for fish, fowl and pigs but were also used traditionally for human consumption. Noke is a culinary term used by the Māori of New Zealand, and refers to earthworms which are considered delicacies for their chiefs.
See also
Drilosphere, the part of the soil influenced by earthworm secretions and castings
The Formation of Vegetable Mould through the Action of Worms, an 1881 book by Charles Darwin
Soil life
Vermicompost
Vermifilter
Vermifilter toilet
Worm charming
References
Works cited
Further reading
Edwards, Clive A. (ed.) Earthworm Ecology. Boca Raton: CRC Press, 2004. Second revised edition.
Lee, Keneth E. Earthworms: Their Ecology and Relationships with Soils and Land Use. Academic Press. Sydney, 1985.
Stewart, Amy. The Earth Moved: On the Remarkable Achievements of Earthworms. Chapel Hill, N.C.: Algonquin Books, 2004.
External links
Annelids
Invertebrate common names
Paraphyletic groups
Soil biology
lt:Sliekas
|
```c++
*
*
* 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.
*/
#include <assert.h>
#include "rosx_introspection/ros_type.hpp"
namespace RosMsgParser
{
ROSType::ROSType(const std::string& name) : _base_name(name)
{
int pos = -1;
for (size_t i = 0; i < name.size(); i++)
{
if (name[i] == '/')
{
pos = i;
break;
}
}
if (pos == -1)
{
_msg_name = _base_name;
}
else
{
_pkg_name = std::string_view(_base_name.data(), pos);
pos++;
_msg_name = std::string_view(_base_name.data() + pos, _base_name.size() - pos);
}
_id = toBuiltinType(_msg_name);
_hash = std::hash<std::string>{}(_base_name);
}
ROSType& ROSType::operator=(const ROSType& other)
{
int pos = other._pkg_name.size();
_base_name = other._base_name;
_pkg_name = std::string_view(_base_name.data(), pos);
if (pos > 0)
pos++;
_msg_name = std::string_view(_base_name.data() + pos, _base_name.size() - pos);
_id = other._id;
_hash = other._hash;
return *this;
}
ROSType& ROSType::operator=(ROSType&& other)
{
int pos = other._pkg_name.size();
_base_name = std::move(other._base_name);
_pkg_name = std::string_view(_base_name.data(), pos);
if (pos > 0)
pos++;
_msg_name = std::string_view(_base_name.data() + pos, _base_name.size() - pos);
_id = other._id;
_hash = other._hash;
return *this;
}
void ROSType::setPkgName(std::string_view new_pkg)
{
assert(_pkg_name.size() == 0);
size_t pos = new_pkg.size();
_base_name = std::string(new_pkg) + "/" + _base_name;
_pkg_name = std::string_view(_base_name.data(), pos++);
_msg_name = std::string_view(_base_name.data() + pos, _base_name.size() - pos);
_hash = std::hash<std::string>{}(_base_name);
}
} // namespace RosMsgParser
```
|
```c++
// QCodeEditor
#include <QLineNumberArea>
#include <QSyntaxStyle>
#include <QCodeEditor>
// Qt
#include <QTextEdit>
#include <QPainter>
#include <QPaintEvent>
#include <QTextBlock>
#include <QScrollBar>
#include <QAbstractTextDocumentLayout>
QLineNumberArea::QLineNumberArea(QCodeEditor* parent) :
QWidget(parent),
m_syntaxStyle(nullptr),
m_codeEditParent(parent)
{
}
QSize QLineNumberArea::sizeHint() const
{
if (m_codeEditParent == nullptr)
{
return QWidget::sizeHint();
}
// Calculating width
int digits = 1;
int max = qMax(1, m_codeEditParent->document()->blockCount());
while (max >= 10) {
max /= 10;
++digits;
}
#if QT_VERSION >= 0x050B00
int space = 13 + m_codeEditParent->fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
#else
int space = 13 + m_codeEditParent->fontMetrics().width(QLatin1Char('9')) * digits;
#endif
return {space, 0};
}
void QLineNumberArea::setSyntaxStyle(QSyntaxStyle* style)
{
m_syntaxStyle = style;
}
QSyntaxStyle* QLineNumberArea::syntaxStyle() const
{
return m_syntaxStyle;
}
void QLineNumberArea::paintEvent(QPaintEvent* event)
{
QPainter painter(this);
// Clearing rect to update
painter.fillRect(
event->rect(),
m_syntaxStyle->getFormat("Text").background().color()
);
auto blockNumber = m_codeEditParent->getFirstVisibleBlock();
auto block = m_codeEditParent->document()->findBlockByNumber(blockNumber);
auto top = (int) m_codeEditParent->document()->documentLayout()->blockBoundingRect(block).translated(0, -m_codeEditParent->verticalScrollBar()->value()).top();
auto bottom = top + (int) m_codeEditParent->document()->documentLayout()->blockBoundingRect(block).height();
auto currentLine = m_syntaxStyle->getFormat("CurrentLineNumber").foreground().color();
auto otherLines = m_syntaxStyle->getFormat("LineNumber").foreground().color();
painter.setFont(m_codeEditParent->font());
while (block.isValid() && top <= event->rect().bottom())
{
if (block.isVisible() && bottom >= event->rect().top())
{
QString number = QString::number(blockNumber + 1);
auto isCurrentLine = m_codeEditParent->textCursor().blockNumber() == blockNumber;
painter.setPen(isCurrentLine ? currentLine : otherLines);
painter.drawText(
-5,
top,
sizeHint().width(),
m_codeEditParent->fontMetrics().height(),
Qt::AlignRight,
number
);
}
block = block.next();
top = bottom;
bottom = top + (int) m_codeEditParent->document()->documentLayout()->blockBoundingRect(block).height();
++blockNumber;
}
}
```
|
is a Japanese former voice actress who was previously represented by Gekidan Moonlight and by Atomic Monkey at the time of her retirement. She was born in Atami, Shizuoka. On August 30, 2018, she announced her retirement from voice acting, which she attributed to personal reasons.
Filmography
Anime
{| class="wikitable sortable"
! Year !! Name !! Japanese !! Role !! Notes !! Ref
|-
| 1995 || Legend of the Angel of Love, Wedding Peach || 愛天使伝説ウェディングピーチ|| Scarlet O'Hara/Angel Salvia || ||
|-
| rowspan="3" | 1996 || Burn Up W || バーンナップW || Rio Kinezono || ||
|-
| Apocalypse Zero || 覚悟のススメ || Hiroko Uchiyama || Ep. 1 ||
|-
| Bakusō Kyōdai Let's & Go!! || 爆走兄弟レッツ&ゴー!! || Kai Okita || ||
|-
| rowspan="4" | 1997 || Burn Up Excess || バーンナップEXCESS || Rio Kinezono || ||
|-
| VS Knight Ramune & 40 Fire || VS騎士ラムネ&40炎 || Drum, Electone || ||
|-
| Maze || MAZE☆爆熱時空 || Ranchiki || ||
|-
| El Hazard 2: The Magnificent World || 神秘の世界エルハザード || (Kalia || ||
|-
|1998-1999|| Saber Marionette J to X || セイバーマリオネット J to X || Otaru Mamiya || ||
|-
| rowspan="3" | 1999 || Crest of the Stars || 星界の紋章 || Jinto || ||
|-
| Revolutionary Girl Utena || 少女革命ウテナ || Wakaba Shinohara || ||
|-
| Magical DoReMi || おジャ魔女どれみ || Miss Yuki/Queen of the Witch World || ||
|-
| 1999-2001 || 'Excel Saga || エクセル♥サーガ || Misaki Matsuya || ||
|-
| rowspan="4" | 2000 || Boys Be... || ボーイズ・ビー || Shoko Sayama || Eps. 8, 13 ||
|-
| Mon Colle Knights || 六門天外モンコレナイト || Guko || ||
|-
| Now and Then, Here and There || 今、そこに いる僕 || Nabuca || ||
|-
| One Piece || ONE PIECE || Tobio || ||
|-
| rowspan="3" | 2001 || Fruits Basket || フルーツバスケット || Arisa Uotani, young Akito Sohma || ||
|-
| Final Fantasy: Unlimited || ファイナルファンタジー:アンリミテッド || Yu Hayakawa || ||
|-
| Puni Puni Poemy || ぷにぷに☆ぽえみぃ || Futaba Aasu || ||
|-
| 2001-2002 || Digimon Tamers || デジモンテイマーズ || Renamon, Alice McCoy, Hata Seiko, Makino Rumiko || ||
|-
| 2003 || Peacemaker Kurogane || PEACE MAKER鐵 || Suzu Kitamura || ||
|-
| 2003-2004 || Di Gi Charat Nyo! || デ・ジ・キャラットにょ || Look-Alike of Akari Usada || ||
|-
| 2003-2006 || Zatch Bell! || 金色のガッシュ!! || Lori || ||
|-
| rowspan="2" | 2005 || Mushishi || 蟲師 || Nagi || Ep. 6 ||
|-
| Banner of the Stars || 星界の戦旗 || Jinto || ||
|-
| 2006 || Oh My Goddess! || ああっ女神さまっ || Chihiro Fujimi || ||
|-
| 2006-2007 || Futari wa Pretty Cure Splash Star || ふたりはプリキュア Splash Star || Kaoru Kiryuu || ||
|-
| 2008-2010 || Duel Masters || ゼロ デュエル・マスターズ || Rekuta Kadoko || ||
|-
| rowspan="2" | 2009-2010 || Fresh Pretty Cure! || フレッシュプリキュア! || Queen of the Mekurumeku Kingdom || ||
|-
| Suite PreCure || スイートプリキュア♪ || Misori Minamino || ||
|-
| 2011 || Uta no Prince-sama Maji Love 1000% || うたの☆プリンスさまっ♪ マジLOVE1000% || Tomochika Shibuya || Season 1 ||
|-
| 2011-2012 || Smile PreCure! || スマイルプリキュア! || Forest of Girl || ||
|-
| 2012-2013 || Doki Doki! PreCure || ドキドキ!プリキュア || Ai/Princess Marie Ange || ||
|-
| 2013 || Uta no Prince-sama Maji Love 2000% || うたの☆プリンスさまっ♪マジLOVE2000% || Tomochika Shibuyaa || 1 ep. ||
|-
| 2015 || Uta no Prince-sama Maji Love Revolutions || うたの☆プリンスさまっ♪マジLOVEレボリューションズ || Tomochika Shibuya || ||
|-
| 2017 || Ojarumaru || おじゃる丸 || Hoshiemon Hiraki (Young); Mariko Juumonji; Nozomi; Otome-sensei (Season 3+); Sayuri Tamura (Young); Warashi; Yuri Tanabe || ||
|}
Video games
1997: Kurumi Miracle as Kurumi
1997: Tales of Destiny as Rutee Katrea
1999: Galerians as Rita
2002: Mega Man Zero as Fairy Leviathan
2004: Shadow Hearts: Covenant as Princess Anastasia Romanov
2004: Growlanser II: The Sense of Justice as Wein Cruz
2005: Namco × Capcom as Rutee Katrea, Lilith Aensland
2006: Final Fantasy XII as Larsa Ferrinas Solidor
2006: Mega Man ZX as Model L
2009: Kazoku Keikaku'' as Jun Ogawara, Kei Hisami (credited as Junko Sugisawa)
Other
Final Fantasy Tactics Advance radio edition (Marche Radiuju)
References
External links
Official blog
Official agency profile
Yuka Imai at GamePlaza-Haruka Voice Acting Database
Yuka Imai at Hitoshi Doi's Seiyuu Database
1970 births
Living people
Voice actresses from Shizuoka Prefecture
Japanese video game actresses
Japanese voice actresses
20th-century Japanese actresses
21st-century Japanese actresses
|
```java
import com.google.gson.Gson;
import software.amazon.awssdk.auth.credentials.EnvironmentVariableCredentialsProvider;
import software.amazon.awssdk.services.quicksight.QuickSightClient;
import org.junit.jupiter.api.*;
import com.example.quicksight.*;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient;
import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueRequest;
import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
/**
* To run these integration tests, you must set the required values
* in the config.properties file or AWS Secrets Manager.
*/
@TestInstance(TestInstance.Lifecycle.PER_METHOD)
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class QuickSightTest {
private static QuickSightClient qsClient;
private static String account = "";
private static String analysisId = "";
private static String dashboardId = "";
private static String templateId = "";
private static String dataSetArn = "";
private static String analysisArn = "";
@BeforeAll
public static void setUp() {
qsClient = QuickSightClient.builder()
.region(Region.US_EAST_1)
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
.build();
// Get the values to run these tests from AWS Secrets Manager.
Gson gson = new Gson();
String json = getSecretValues();
SecretValues values = gson.fromJson(json, SecretValues.class);
account = values.getAccount();
analysisId = values.getAnalysisId();
dashboardId = values.getDashboardId();
templateId = values.getTemplateId();
dataSetArn = values.getDataSetArn();
analysisArn = values.getAnalysisArn();
// Uncomment this code block if you prefer using a config.properties file to
// retrieve AWS values required for these tests.
/*
*
* try (InputStream input =
* QuickSightTest.class.getClassLoader().getResourceAsStream("config.properties"
* )) {
* Properties prop = new Properties();
* if (input == null) {
* System.out.println("Sorry, unable to find config.properties");
* return;
* }
* prop.load(input);
* account = prop.getProperty("account");
* analysisId = prop.getProperty("analysisId");
* dashboardId = prop.getProperty("dashboardId");
* templateId = prop.getProperty("templateId");
* dataSetArn = prop.getProperty("dataSetArn");
* analysisArn = prop.getProperty("analysisArn");
*
* } catch (IOException ex) {
* ex.printStackTrace();
* }
*/
}
@Test
@Tag("IntegrationTest")
@Order(1)
public void DescribeAnalysis() {
assertDoesNotThrow(() -> DescribeAnalysis.describeSpecificAnalysis(qsClient, account, analysisId));
System.out.println("DescribeAnalysis test passed");
}
@Test
@Tag("IntegrationTest")
@Order(2)
public void DescribeDashboard() {
assertDoesNotThrow(() -> DescribeDashboard.describeSpecificDashboard(qsClient, account, dashboardId));
System.out.println("DescribeDashboard test passed");
}
@Test
@Tag("IntegrationTest")
@Order(3)
public void DescribeTemplate() {
assertDoesNotThrow(() -> DescribeTemplate.describeSpecificTemplate(qsClient, account, templateId));
System.out.println("DescribeTemplate test passed");
}
@Test
@Tag("IntegrationTest")
@Order(4)
public void ListThemes() {
assertDoesNotThrow(() -> ListThemes.listAllThemes(qsClient, account));
System.out.println("ListThemes test passed");
}
@Test
@Tag("IntegrationTest")
@Order(6)
public void ListAnalyses() {
assertDoesNotThrow(() -> ListAnalyses.listAllAnAnalyses(qsClient, account));
System.out.println("ListAnalyses test passed");
}
@Test
@Tag("IntegrationTest")
@Order(7)
public void ListDashboards() {
assertDoesNotThrow(() -> ListDashboards.listAllDashboards(qsClient, account));
System.out.println("ListDashboards test passed");
}
@Test
@Tag("IntegrationTest")
@Order(8)
public void ListTemplates() {
assertDoesNotThrow(() -> ListTemplates.listAllTemplates(qsClient, account));
System.out.println("ListTemplates test passed");
}
@Test
@Tag("IntegrationTest")
@Order(9)
public void UpdateDashboard() {
assertDoesNotThrow(
() -> UpdateDashboard.updateSpecificDashboard(qsClient, account, dashboardId, dataSetArn, analysisArn));
System.out.println("UpdateDashboard test passed");
}
private static String getSecretValues() {
SecretsManagerClient secretClient = SecretsManagerClient.builder()
.region(Region.US_EAST_1)
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
.build();
String secretName = "test/quicksight";
GetSecretValueRequest valueRequest = GetSecretValueRequest.builder()
.secretId(secretName)
.build();
GetSecretValueResponse valueResponse = secretClient.getSecretValue(valueRequest);
return valueResponse.secretString();
}
@Nested
@DisplayName("A class used to get test values from test/quicksight (an AWS Secrets Manager secret)")
class SecretValues {
private String account;
private String analysisId;
private String dashboardId;
private String templateId;
private String dataSetArn;
private String analysisArn;
public String getAccount() {
return account;
}
public String getAnalysisId() {
return analysisId;
}
public String getDashboardId() {
return dashboardId;
}
public String getTemplateId() {
return templateId;
}
public String getDataSetArn() {
return dataSetArn;
}
public String getAnalysisArn() {
return analysisArn;
}
}
}
```
|
```kotlin
package mega.privacy.android.domain.usecase.transfers.active
import mega.privacy.android.domain.entity.transfer.ActiveTransferTotals
import mega.privacy.android.domain.entity.transfer.TransferType
import mega.privacy.android.domain.repository.TransferRepository
import javax.inject.Inject
/**
* Get the active transfer totals of a given [TransferType] from the local database.
*/
class GetActiveTransferTotalsUseCase @Inject constructor(private val transferRepository: TransferRepository) {
/**
* Invoke
* @param transferType [TransferType]
* @return the [ActiveTransferTotals] of the given type
*/
suspend operator fun invoke(transferType: TransferType) =
transferRepository.getCurrentActiveTransferTotalsByType(transferType)
}
```
|
Leap Year is a 2010 romantic comedy directed by Anand Tucker and written by Harry Elfont and Deborah Kaplan. Leap Year stars Amy Adams and Matthew Goode.The film follows a real estate worker who heads to Ireland to meet her boyfriend on leap day, when tradition holds that women may propose marriage to men on that day. Her plans are interrupted by a series of events and are further complicated when she hires an Irish innkeeper to take her to her boyfriend in Dublin. Principal photography took place in County Wicklow, Dublin, County Mayo, and County Galway, taking place in and around the Aran Islands, Connemara, Temple Bar, Georgian Dublin, Wicklow National Park, and Olaf Street, Waterford.Leap Year premiered in New York City on January 6, 2010, and was released theatrically on January 8, 2010, by Universal Pictures in the United States and on February 28 by Optimum Releasing in Ireland. The film received mostly negative reviews from critics, with many criticising the film’s pacing, plot and limited chemistry between Adams and Goode.
Plot
Successful real estate stager Anna Brady is frustrated that her cardiologist boyfriend Jeremy Sloane still has not proposed to her after four years. She decides to travel from Boston to Dublin, to propose to him on February 29, leap day, while he is there at a conference. Anna plans to invoke an Irish tradition, Bachelor's Day, when a woman may propose to a man on leap day.
During the flight, a storm diverts the plane to Cardiff on the British side of the Irish Sea. Anna hires a boat to take her west to Cork. The severity of the storm results in her being put ashore at a small seaside village called Dingle. Anna requests Declan O'Callaghan, a surly Irish innkeeper, to give her a ride to Dublin. At first he refuses, but as his tavern is threatened with foreclosure, he agrees to drive her for €500. Along the way, he mocks her belief in a leap year tradition of women proposing to men.
A herd of cows blocks the road. Anna steps in cow dung while attempting to move the animals, and tries to clean her shoes while leaning on Declan's car, which causes it to roll downhill into a stream. Continuing on foot, Anna flags down a van with three travellers who offer her a lift. Ignoring Declan's warning, Anna hands them her luggage. They drive off without her. Anna and Declan make their way on foot to a roadside pub, where they fin the three thieves going through Anna's luggage. Declan fights them and retrieves Anna's bag.
While waiting for a train, they ask each other what they would grab if their homes were on fire and they had only 60 seconds to flee. They lose track of time and miss the train. They are forced to stay at a bed & breakfast in Tipperary, where they pretend to be married so that their conservative hosts will allow them to stay. During dinner, when the other couples kiss to show their love for each other, Anna and Declan are "forced" to kiss as well. This stirs feelings that neither had expected. They sleep in the same bed, but do not admit their new feelings for each other.
While hitchhiking, Anna and Declan are caught in a hailstorm and take shelter in a nearby church, where a wedding is taking place. They are invited to the reception, where she gets drunk. Anna questions her own intentions with Jeremy and realizes that she has feelings for Declan. Just as they are about to kiss, she vomits and passes out.
The following day they arrive in Dublin. Declan reveals he was once engaged but his fiancée ran off to Dublin with his mother's claddagh ring and his best friend. Anna suggests that while there, he should ask for the ring back. When they arrive at the hotel where Jeremy is staying, Jeremy surprises Anna by proposing to her right in the lobby. Seeing that Declan had already walked out of the hotel, she accepts his proposal.
At their engagement party in Boston, Anna learns that Jeremy proposed because he thought it was the only way to appease the co-op board of the apartment building the couple wanted to move into. Dismayed, she pulls the fire alarm and waits, testing the 60-second concept she discussed with Declan earlier. Jeremy retrieves all of their electronic materials and neglects to check for Anna. She realizes there is nothing in the apartment that means anything to her, including Jeremy. Meanwhile, in Dublin, Declan retrieves his mother's claddagh ring from his ex-fiancée.
Anna returns to the tavern in Dingle, where Declan has pulled together the balance he owed his property owner with the help of the community. She tells him she has broken off her engagement and proposes that they get together, and not make plans. Declan leaves.
Thinking she has been rejected, Anna rushes outside to the edge of a cliff overlooking the sea. Declan emerges, revealing that he went out to retrieve his mother's claddagh ring. Declan says he wants to make plans with her, and proposes on the cliffside. Anna happily accepts. A short time later they drive away in Declan's car with a 'Just Married' sign and Anna tosses aside the map, leaving their destination open to fate.
Cast
Amy Adams as Anna Brady
Matthew Goode as Declan O'Callaghan
Adam Scott as Jeremy Sloane
John Lithgow as Jack Brady, Anna's father
Kaitlin Olson as Libby Brady
Noel O'Donovan as Seamus
Tony Rohr as Frank
Pat Laffan as Donal
Alan Devlin as Joe
Ian McElhinney as Priest
Vincenzo Nicoli as Stefano
Flaminia Cinque as Carla
Peter O'Meara as Ron
Dominique McElligott as Bride
Liza Ross as Edith
Production
On October 17, 2008, it was announced that Amy Adams was to star in the film as Anna Brady. On November 23, Anand Tucker signed on to direct the film, with Harry Elfont and Deborah Kaplan collaborating on the screenplay.
On February 12, 2009, it was announced that Matthew Goode would be playing the role of Declan O'Callaghan, the surly innkeeper. On March 18, it was announced that Adam Scott was to play Jeremy Sloane, Anna's long time boyfriend, and that Kaitlin Olson would play Libby, Anna's best friend.
The film was shot in County Wicklow, Dublin, County Mayo and County Galway, with filming taking place in and around the Aran Islands, Connemara, Temple Bar, Georgian Dublin, Wicklow National Park and Olaf Street, Waterford.
On October 19, it was announced that Randy Edelman had been chosen to compose the film's score. The decision to choose Edelman came as a surprise, as Tucker had used Barrington Pheloung for two of his previous films, Hilary & Jackie and When Did You Last See Your Father?.
Soundtrack
An audio CD soundtrack for Leap Year was released on the Varèse Sarabande record label on January 12, 2010. That album contains only the original score, composed and conducted by Randy Edelman. The musical selections that were used, and credited at the end of the film, are not available on the CD. Those include:
"More and More of Your Amor" by Nat "King" Cole (Bitter:Sweet's production released 2009)
"I Want You" by Kelly Clarkson
"I'll Tell My Ma" by the Colonials featuring Candice Gordon
"The Irish Rover" by the Colonials featuring Candice Gordon
"Day to Day" by Eulogies
"Waltz with Anna" by the Brombies
"Patsy Fagan" by Dessie O'Halloran and Sharon Shannon
"Within a Mile of Home" by Flogging Molly
"Buffalo Gals" by the Brombies
"A Pint for Breakfast" by the Brombies
"Leaping Lizards" by the Brombies
"The Staunton Lick" by Lemon Jelly
"Dream a Little Dream" cover by Cass Elliot
"Only Love Can Break Your Heart" by Gwyneth Herbert
"Never Forget You" by Noisettes
"You Got Me" by Colbie Caillat, over the closing scene/credits
"Just Say Yes" by Snow Patrol, used in the trailer
Release
The film opened at the American box office at number 6, with a modest US$9,202,815, behind blockbusters Avatar, Sherlock Holmes, Alvin and the Chipmunks: The Squeakquel, as well as Daybreakers and It's Complicated. The film's final gross of US$25,918,920 in the United States against a production budget of US$19,000,000. In addition to this, the film made US$6,688,396 in international markets, for a final worldwide gross of US$32,607,316.Leap Year was released on DVD in the United States on May 4, 2010. It debuted at number 4 on the American DVD rentals chart, with a first week rental index of 56.63. It placed 5th on the DVD sales chart, selling an estimated 159,843 units, and has sold almost 800,000 units in total to April 2013.<ref>Leap Year - DVD Sales. The Numbers. Retrieved 2013-04-07.</ref>
Reception
On Rotten Tomatoes the film has an approval rating of 24% and an average rating of 4.30/10 based on reviews from 144 critics. The site's critical consensus is that: "Amy Adams is as appealing as ever, but her charms aren't enough to keep Leap Year from succumbing to an overabundance of clichés and an unfunny script'." On Metacritic the film has a weighted average score out of 33 out of 100, based on 30 reviews. Audiences surveyed by CinemaScore gave the film a grade B on scale of A to F.
Roger Ebert of the Chicago Sun-Times gave it three out of four stars, and described Leap Year as a 'full-bore, PG-rated, sweet rom-com'. 'It sticks to the track, makes all the scheduled stops, and bears us triumphantly to the station'. Owen Gleiberman of Entertainment Weekly gave the film a B− grade, stating that the film could have used more 'pizzazz'.
Nathan Rabin of The A.V. Club, gave it a grade of C− and concluded, "The film functions as the cinematic equivalent of a Shamrock Shake: sickeningly, artificially sweet, formulaic, and about as authentically Gaelic as an Irish Spring commercial".
A. O. Scott of The New York Times saw it as "so witless, charmless, and unimaginative, that it can be described as a movie only in a strictly technical sense".
Richard Roeper gave it a C−, stating that it had a 'Recycled plot, lame sight gags, Leprechaun-like stock Irish characters,' adding that 'The charms of Amy Adams rescue Leap Year from Truly Awful status'.
Donald Clarke of The Irish Times gave the film one star out of five, and in a scathing review, described it as 'offensive, reactionary, patronising filth' and cited the film as evidence that 'Hollywood is incapable of seeing the Irish as anything but IRA men or twinkly rural imbeciles'. Paul Whitington of the Irish Independent describes the film as "grotesque and insulting paddywhackery" and says Goode is out of his depth as he "struggle[s] badly with his accent".
The film's lead actor Matthew Goode admitted 'I just know that there are a lot of people who will say it is the worst film of 2010' and revealed that the main reason he signed on to the film was so that he could work close to home and be able to see his girlfriend and newborn daughter.
References
External links
Page from Studio Canal
2010 films
2010 romantic comedy films
American aviation films
American romantic comedy films
English-language Irish films
Films about weddings
Films produced by Roger Birnbaum
Films scored by Randy Edelman
Films set in Boston
Films set in Ireland
Films shot in County Kildare
Films shot in County Wicklow
Films shot in Dublin (city)
Films shot in the Republic of Ireland
Irish romantic comedy films
Spyglass Entertainment films
Films directed by Anand Tucker
Irish aviation films
American comedy road movies
Irish comedy road movies
2010s English-language films
2010s American films
|
Mopa is a village in Pernem, Goa in India. The Manohar International Airport is located at Mopa. Mopa Airport Terminal 2 will be built by 5 August 2023.
References
External links
Villages in North Goa district
[[Category: Mopa Airport | Manohar International Airport Goa]]
|
Chung Jin-suk (Korean: 정진석, born 4 September 1960) is a South Korean journalist, activist, and politician who briefly served as the interim President of the Saenuri Party (now the People Power Party) from 11 May 2016 to 1 June 2016. He has been the Member of the National Assembly for Gongju-Buyeo-Cheongyang since 2016 and was previously MP for Gongju-Yeongi from 2000 to 2004, and again from 2005 to 2008. He was the Senior Secretary to the President for Political Affairs in the Lee Myung-bak government from 2010 to 2011.
Chung was born in Gongju and attended Sungdong High School, before going on to Korea University to study political science and diplomacy. He joined the now-defunct Alliance of Liberal Democrats (ALDE) in 1999, and before entering parliament worked as the party spokesperson. Chung was elected to the National Assembly at the 2000 election, winning the Gongju-Yeongi constituency in South Chungcheong. He moved to the People First Party (PFP) in 2006, where he served as its parliamentary leader and a vice president. He then subsequently joined the Grand National Party (GNP).
After the GNP's victory in the 2008 election, he was appointed President of the Intelligence Committee; he was also made Senior Secretary to the President for Political Affairs. In the 2012 election, he moved to Seoul Central but lost to Chyung Ho-joon, a son of Chyung Dai-chul. After the electoral lost, he was made Chief Secretary to the Speaker of the National Assembly, and then Secretary-General of the National Assembly.
Following Saenuri's defeat in the 2016 election, Chung stood against Na Kyung-won in the ensuring parliamentary leadership election. Although the election was widely expected as neck and neck, Chung defeated Na by obtaining additional supports from 23 MPs. He was also made interim party president; the position was vacant since the resignation of Kim Moo-sung. Chung, however, stepped down amid the impeachment of the then President Park Geun-hye in December 2016. After his re-election as an MP in the 2020 election, he was a potential Deputy Speaker of the National Assembly by the United Future Party, but he refused the bid. He accepted the bid in 2021 and was elected on 31 August 2021.
Early life
Chung Jin-suk was born in Gongju, South Chungcheong, the son of Chung Suk-mo and Yoon Seok-nam. His mother was from Papyeong Yoon clan and a direct descendant of Yun Jeung, while his father was from Dongnae Chung clan. His father was a prominent politician, serving as the Governor of Gangwon, the 2-term Governor of South Chungcheong, the Deputy Minister and the Minister of Home Affairs, a 6-term MP and so on. Chung Jin-suk is the 2nd son and the youngest of the 2 sons and a daughter of his parents. His brother, Chung Jin-ho, is a businessman.
Education
Chung was educated at Sungdong High School in Central District, Seoul. There he became involved in student politics and was elected President of the Student Council. It was also there where he organised a massive anti-US protest after it was disclosed that the intelligence of the Jimmy Carter administration were bugging the Blue House. He led the demonstration till a roundabout in Sindang-dong.
After the graduation in 1979, Chung studied political science and diplomacy at Korea University, where he met his wife, Lee Mi-ho. He also received an honorary doctorate in public administration from Kongju National University in 2011.
Pre-parliamentary career
After completing his political science and diplomacy degree, Chung joined Hankook Ilbo, where he worked as a journalist and an editorial writer for about 15 years. He was involved in the International Department, the Social Department, and the Political Department of the press; he used to be the Deputy Head of the latter department. In the mid-1990s, Chung took crucial roles as a Washington, D.C. correspondent; in 1994, he flew to Port-au-Prince, Haiti in order to report the situation of a civil war. In 1995, he met Kim Jong-pil who was briefly staying in Washington, D.C. after withdrew from the then ruling Democratic Liberal Party (DLP) following an internal conflict with the then President Kim Young-sam. Chung advised Kim to establish a new Hoseo-based party, which is the Alliance of Liberal Democrats (ALDE). Since then, he was known as the "Top No 1 Founder of the ALDE". In the 1996 election, the ALDE became the 3rd largest party in the National Assembly, winning 50 out of 299 seats.
Early political career
Entry to the National Assembly
Prior to the 2000 election, Chung was brought into the Alliance of Liberal Democrats (ALDE) in 1999. He became the Special Adviser to the then Honorary Chairman of the ALDE and the Prime Minister Kim Jong-pil on 16 September 1999. From this time, he had been risen as the potential candidate for Gongju-Yeongi, which was also his father's former constituency. As his father was not seeking the bid, Chung won preselection for Gongju-Yeongi. However, Kim Goh-sung, the then MP for Yeongi who lost ALDE preselection, quit the party and joined the newly formed minor New Korea Party of Hope (NKPH). Amid the 10-cornered fight, Chung barely elected to the National Assembly with approximately 25.2%; this made him as the winner with the lowest votes.
The ruling DJP Alliance consisted of the Millennium Democratic Party (MDP) and the Alliance of Liberal Democrats (ALDE) narrowly lost to the main opposition Grand National Party (GNP) amid internal conflicts between the ruling coalition. For the ALDE, the party only secured 17 seats that was 3 seats fall short of the minimum requirement to form a parliamentary group. Initially, the party was willing to ease the requirement from 20 to 10 seats, but instead, the MDP sent 3 seats to the ALDE, which was controversial till the Deputy Chairman Kang Chang-hee opposed the decision, but was expelled from the party in the end. As the party's future was seemed unclear, Chung urged the party to ensure its own identity, including reconcile with the MDP. Despite of his effort, the DJP Alliance finally broke up on 3 September 2001 after the ALDE voted in favour of a motion of no-confidence against the Minister of Unification Lim Dong-won. Following the collapse of the DJP Alliance, Chung was appointed Spokesperson of the ALDE on 12 October.
In 2004, the National Assembly voted for the impeachment of Roh Moo-hyun following his remarks that supporting the then de facto ruling Uri Party. Despite the strong boycott of the Uri Party, 193 MPs from the 3 oppositions (GNP, MDP and ALDE) voted in favour of the impeachment, and Chung was one of them (only Lee Nak-yon and Kim Chong-hoh voted against). The event, however, provoked a widespread anger among the people, which let the Uri Party to win the majority (152 out of 300 seats) at the 2004 election. The ALDE only secured 4 seats; Chung also lost his seat to Oh Si-deok. Nevertheless, he had an opportunity to return as Oh's election was annulled on 27 January 2005. He subsequently withdrew from the ALDE and ran as an independent candidate for Gongju-Yeongi at the by-elections on 30 April. He defeated the Uri candidate Lee Byung-ryung with a margin of 4,630 votes.
People First Party
By the time he withdrew from the ALDE, Chung was widely speculated to join the proposed Hoseo-based localist conservative party, projected by the Governor of South Chungcheong Shim Dae-pyung and the Mayor of Daejeon Yŏm Hong-ch'ŏl; Yŏm instead joined the Uri Party. On 19 October, the formation of the new party named the People First Party (PFP) was announced by several key figures including Shim, Chung and so on.
On 17 January 2006, the PFP was officially established. Shim Dae-pyung and Shin Kook-hwan was elected co-presidents, while Chung was appointed parliamentary leader the following day.
However, on 14 December 2007, 5 days before the presidential election, Chung made an announcement to leave the PFP. He did not mention the reasons clearly, but several newspapers suggested that he opposed the Shim's withdrawal in order to support the independent candidate Lee Hoi-chang, as he was in favour of the GNP candidate Lee Myung-bak. Following the landslide victory of Lee, Chung officially joined the GNP on 17 January 2008.
Government era (2008-2017)
After Chung joined the GNP, he immediately sought a re-election for Gongju-Yeongi at the 2008 election, but failed to become the candidate. Instead, he ran 8th in the GNP list and was elected. On 8 June 2010, he became the President of the Intelligence Committee of the National Assembly.
Senior Secretary to the President for Political Affairs (2010-2011)
On 13 July 2010, Chung was nominated Senior Secretary to the President for Political Affairs by the President Lee Myung-bak. He then subsequently resigned as an MP due to a law that prohibiting MPs to hold positions of the Blue House; the vacancy was succeeded by Kim Sung-dong, son of the former Speaker Kim Soo-han.
The GNP was undergoing internal conflicts between pro-Lee Myung-bak and pro-Park Geun-hye faction over several issues, including the construction of Sejong City. One of Chung's first moves as Senior Secretary to the President for Political Affairs was the arbitration between Lee and Park. He organised meetings between two key figures of the party at the Blue House; the first was on 21 August. He also coordinated a project to make Park as the Lee's special envoy to Netherlands, Portugal and Greece in April 2011. Despite several criticisms during this period, his projects were widely regarded as successful.
Secretary-General of the National Assembly (2013-2014)
After the resignation on 10 June 2011, Chung became the Saenuri candidate for Seoul Central at the 2012 election. He contested against Chyung Ho-joon, a son of Chyung Dai-chul who was the former 5-term MP for the constituency. He failed to make a comeback by securing 28,904 votes (46.33%) that was lower than Chyung's 31,364 votes (50.27%). Instead, he was appointed Chief Secretary to the Speaker Kang Chang-hee on 2 July.
On 27 December, shortly after Park Geun-hye was elected President, Chung was nominated Secretary-General of the National Assembly. 193 out of 224 MPs voted in favour of his appointment on 1 January 2013. He oversaw several parliamentary reforms, including the establishment of suicide prevention facilities at the National Assembly Secretariat, as well as changing its temporary workers into full-time.
He resigned on 27 February 2014 in order to run as the Governor of South Chungcheong at the local elections in June. He won Saenuri preselection but lost to the incumbent Ahn Hee-jung.
Parliamentary leader of the Saenuri Party (2016)
In the 2016 election, Chung contested for Gongju-Buyeo-Cheongyang and defeated the Democratic candidate Park Soo-hyun. Nevertheless, his Saenuri Party suffered an upset crushing defeat, which resulted in a hung parliament. Kim Moo-sung subsequently resigned as party president, which let the position to be vacant until a new person is elected.
On 1 May, Chung launched his bid to run for the parliamentary leadership. 2 days later, he defeated Na Kyung-won and Yoo Ki-june by receiving 69 out of 119 votes. This made him as the first non-MP parliamentary leader in South Korean history ever, as his term was not started yet. He also became the interim President of the party, which he hold until being replaced by Kim Hee-ok on 2 June.
He also led a negotiation with Woo Sang-ho (Democratic) and Park Jie-won (People's) on 8 June. The Saenuri lost 2 committees (the Foreign Affairs and Unification Committee and the Special Committee on Budget and Accounts) to the Democratic. The Legislation and Judiciary Committee, which was often regarded as the de facto "Senate", was taken by the Democratic during the last session (2012-2016), but was handed over to the Saenuri in this time. The Saenuri failed to maintain the speakership that was taken over by Chung Sye-kyun of the Democratic.
The President Park Geun-hye was under public pressure to resign following a report of JTBC about Choi Soon-sil on 24 October. While 3 opposition parties (Democratic, People's, and Justice) agreed to bring the impeachment vote, Chung previously mentioned that the Saenuri would not vote against. On 9 December, 234 out of 300 MPs (1 did not attend) voted in favour of the impeachment of Park, and therefore Park's duty was immediately suspended. The next day, JoongAng Ilbo analysed that about 62 Saenuri MPs voted for, and 20 out of 62 are pro-Park MPs. 2 days later, Chung made an official announcement to step down as the parliamentary leader, saying, "As the parliamentary leader of the ruling party, I think it is reasonable to be responsible for the impeachment vote."
Return to Opposition
On 10 March 2017, the Constitutional Court upheld the impeachment of Park Geun-hye in a unanimous 8–0 decision, which provoked the snap presidential election on 9 May. The result was the outright victory of Moon Jae-in, who ran against Park Geun-hye 5 years ago.
In the 2020 election, Chung sought a re-election for Gongju-Buyeo-Cheongyang and again faced a challenge from Park Soo-hyun. Although various polls suggested that he might lose to Park, he successfully defeated Park with a margin of 2,624 votes (2.22%).
Chung, who became a 5-term MP, was considered one of the potential candidates for the Deputy Speaker of the National Assembly. When Suh Byung-soo declined the bid, Chung was likely to be the sole candidate from the United Future Party (UFP). However, Chung rejected the deputy speakership on 29 June in a protest of the Democratic Party's decision to dominate the entire committees of the National Assembly. The UFP also confirmed to boycott the position on 8 July.
On 16 April 2021, Chung announced he would not run for the party leadership election on 11 June. The party leadership was won by Lee Jun-seok.
On 31 August, Chung was elected Deputy Speaker of the National Assembly.
In February 2023, Chung said that South Korea might need nuclear weapons.
Controversies
"Leftist Zombies" remark
During the hearing session of the Prime Minister-nominee Lee Nak-yon on 24 May 2017, the MP for Jeungpyeong-Jincheon-Eumseong Kyeong Dae-soo put forwarded a question to Lee regarding an issue of the default of national service of his son. However, Kyeong was immediately attacked by netizens after it was reported that Kyeong's son also defaulted national service. Soon, Chung denounced them using a term "Leftist Zombies (좌파 좀비)" on his Facebook. Following a public backlash, he removed the term.
MV Sewol tragedy remarks
On 15 June 2018, following a crushing defeat of the Liberty Korea Party (LKP) at the 2018 local elections, Chung replied to a reporter's question, saying, "We were fully sunken like MV Sewol. Scathing self-reflections and self-examinations should be first, and we need to think carefully." Several netizens harshly criticised his response.
On 16 April 2019, Chung again provoked a controversy related to the MV Sewol tragedy by posting a following post on his Facebook:
A day before, Cha Myong-jin, the former MP for Sosa, also provoked a controversy by posting defamatory remarks against the bereaved families of the tragedy.
Lee Jae-jung, the Spokesperson of the Democratic Party, urged the LKP to sack them immediately. Park Joo-min, a Democratic MP, said, "Sick of it? It's actually people like you. Not only sick of, but also scared of."
Chung soon removed the post and made an apology to the bereaved families. He was warned by the party on 29 May.
Personal life
Chung was married to Lee Mi-ho, a daughter of the founder of Chungnam Spinning Group and Hyejeon College, the former Deputy Chairman of the Korean National Party (KNP), the former MP for Cheongyang-Hongseong-Yesan Lee Jong-sung. Both met each other when Chung was a Year 1 student at Korea University, and had a relationship before married her. Their marriage was held at Myeongdong Cathedral on 10 May 1984. They have 2 daughters — Chung Ga-young and Chung Won-young.
On 21 June 2020, Chung's elder daughter married the eldest son of Park Duk-hyum, the MP for Boeun-Okcheon-Yeongdong-Goesan, at a hotel in Gwangjin, Seoul. The marriage was, however, simple with their family and relatives; without inviting other politicians due to the COVID-19 pandemic. Both Chung and Park later sent a text message of apology to other MPs. Later, on 23 September, Park withdrew from the PPP following corruption allegations. The same day, Chung met the party's interim President Kim Chong-in, and Kim told Chung, "it's better for Park to leave the party." Chung subsequently met Park and told him Kim's will, and Park later quit the PPP. Later, Chung revealed that the withdrawal from the party was Park's willingness.
He is a Roman Catholic, and was baptised Savio.
Election results
General elections
Local elections
Governor of South Chungcheong
References
External links
Chung Jin-suk on Facebook
Profile at National Assembly of South Korea
1960 births
Living people
People from Gongju
Korea University alumni
People Power Party (South Korea) politicians
Deputy Speakers of the National Assembly (South Korea)
|
```xml
import {act, cleanup, fireEvent, render, screen} from '@testing-library/react';
import {useState} from 'react';
import {useClick, useFloating, useHover, useInteractions} from '../../src';
import type {UseClickProps} from '../../src/hooks/useClick';
function App({
button = true,
typeable = false,
initialOpen = false,
...props
}: UseClickProps & {
button?: boolean;
typeable?: boolean;
initialOpen?: boolean;
}) {
const [open, setOpen] = useState(initialOpen);
const {refs, context} = useFloating({
open,
onOpenChange: setOpen,
});
const {getReferenceProps, getFloatingProps} = useInteractions([
useClick(context, props),
]);
const Tag = typeable ? 'input' : button ? 'button' : 'div';
return (
<>
<Tag
{...getReferenceProps({ref: refs.setReference})}
data-testid="reference"
/>
{open && (
<div role="tooltip" {...getFloatingProps({ref: refs.setFloating})} />
)}
</>
);
}
describe('default', () => {
test('changes `open` state to `true` after click', () => {
render(<App />);
const button = screen.getByRole('button');
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('changes `open` state to `false` after two clicks', () => {
render(<App />);
const button = screen.getByRole('button');
fireEvent.click(button);
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
cleanup();
});
});
describe('mousedown `event` prop', () => {
test('changes `open` state to `true` after click', () => {
render(<App event="mousedown" />);
const button = screen.getByRole('button');
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('changes `open` state to `false` after two clicks', () => {
render(<App event="mousedown" />);
const button = screen.getByRole('button');
fireEvent.click(button);
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
cleanup();
});
});
describe('`toggle` prop', () => {
test('changes `open` state to `true` after click', () => {
render(<App toggle={false} />);
const button = screen.getByRole('button');
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('`open` state remains `true` after two clicks', () => {
render(<App toggle={false} />);
const button = screen.getByRole('button');
fireEvent.click(button);
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('`open` state remains `true` after two clicks with `mousedown`', () => {
render(<App toggle={false} event="mousedown" />);
const button = screen.getByRole('button');
fireEvent.click(button);
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('`open` state becomes `false` after clicking when initially open', () => {
render(<App initialOpen={true} />);
const button = screen.getByRole('button');
fireEvent.click(button);
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
cleanup();
});
});
describe('non-buttons', () => {
test('adds Enter keydown', () => {
render(<App button={false} />);
const button = screen.getByTestId('reference');
fireEvent.keyDown(button, {key: 'Enter'});
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('adds Space keyup', () => {
render(<App button={false} />);
const button = screen.getByTestId('reference');
fireEvent.keyDown(button, {key: ' '});
fireEvent.keyUp(button, {key: ' '});
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('typeable reference does not receive space key handler', async () => {
render(<App typeable={true} />);
const button = screen.getByTestId('reference');
fireEvent.keyDown(button, {key: ' '});
fireEvent.keyUp(button, {key: ' '});
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
cleanup();
});
test('typeable reference does receive Enter key handler', async () => {
render(<App typeable={true} />);
const button = screen.getByTestId('reference');
fireEvent.keyDown(button, {key: 'Enter'});
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
});
test('ignores Space keydown on another element then keyup on the button', async () => {
render(<App />);
await act(async () => {});
const button = screen.getByRole('button');
fireEvent.keyDown(document.body, {key: ' '});
fireEvent.keyUp(button, {key: ' '});
expect(screen.queryByRole('tooltip')).not.toBeInTheDocument();
});
test('with useHover does not close on mouseleave after click', async () => {
function App() {
const [open, setOpen] = useState(false);
const {refs, context} = useFloating({
open,
onOpenChange: setOpen,
});
const {getReferenceProps, getFloatingProps} = useInteractions([
useHover(context),
useClick(context),
]);
return (
<>
<button
{...getReferenceProps({ref: refs.setReference})}
data-testid="reference"
/>
{open && (
<div role="tooltip" {...getFloatingProps({ref: refs.setFloating})} />
)}
</>
);
}
render(<App />);
const button = screen.getByTestId('reference');
fireEvent.mouseEnter(button);
fireEvent.click(button);
fireEvent.mouseLeave(button);
expect(screen.queryByRole('tooltip')).toBeInTheDocument();
cleanup();
});
test('reason string', async () => {
function App() {
const [isOpen, setIsOpen] = useState(false);
const {refs, context} = useFloating({
open: isOpen,
onOpenChange(isOpen, _, reason) {
setIsOpen(isOpen);
expect(reason).toBe('click');
},
});
const focus = useClick(context);
const {getReferenceProps, getFloatingProps} = useInteractions([focus]);
return (
<>
<button ref={refs.setReference} {...getReferenceProps()} />
{isOpen && (
<div role="tooltip" ref={refs.setFloating} {...getFloatingProps()} />
)}
</>
);
}
render(<App />);
const button = screen.getByRole('button');
fireEvent.click(button);
await act(async () => {});
fireEvent.click(button);
});
```
|
Coleophora hydrolapathella is a moth of the family Coleophoridae. It is found from Great Britain to Poland, Slovakia, Hungary and Romania and from Norway and Sweden to Belgium, Germany and Austria. It is also known from Latvia and southern Russia.
The wingspan is 13–14 mm. Adults are on wing from June to early August in one generation per year.
The larvae feed on the flowers and seeds of water dock (Rumex hydrolapathum). They create a reddish-brown, tubular case made entirely of silk. Full-grown larvae attach their case to the stem of the food plant and hibernate.
References
hydrolapathella
Moths described in 1921
Moths of Europe
Taxa named by Erich Martin Hering
|
```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\Aiplatform;
class GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue extends \Google\Model
{
/**
* @var float
*/
public $score;
/**
* @param float
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue::class, your_sha256_hashMatchMetricValue');
```
|
Avishai (Yaish) Jano () is an Israeli international footballer. Jano played usually as an attacking right defender or a right winger. He spent most of his career in Maccabi Haifa (1995–2004), with whom he won all of his honours. Jano retired from football in 2009.
Honours
Israeli Premier League (3):
2000–01, 2001–02, 2003–04
Israel State Cup (1):
1997–98
Toto Cup (1):
2001–02
References
External links
Profile and biography of Avishai Jano on Maccabi Haifa's official website
Profile and statistics of Avishai Jano on One.co.il
1970 births
Living people
Israeli Jews
Israeli men's footballers
Maccabi Haifa F.C. players
Maccabi Netanya F.C. players
Hapoel Nof HaGalil F.C. players
Hapoel Hadera F.C. players
Ironi Tiberias F.C. players
Israel men's international footballers
Liga Leumit players
Israeli Premier League players
Israeli people of Moroccan-Jewish descent
Footballers from Nof HaGalil
Men's association football defenders
|
In coding theory, a coset leader is a word of minimum weight in any particular coset - that is, a word with the lowest amount of non-zero entries. Sometimes there are several words of equal minimum weight in a coset, and in that case, any one of those words may be chosen to be the coset leader.
Coset leaders are used in the construction of a standard array for a linear code, which can then be used to decode received vectors. For a received vector y, the decoded message is y - e, where e is the coset leader of y. Coset leaders can also be used to construct a fast decoding strategy. For each coset leader u we calculate the syndrome . When we receive v we evaluate and find the matching syndrome. The corresponding coset leader is the most likely error pattern and we assume that v+u was the codeword sent.
References
Coding theory
Error detection and correction
|
Bakauheni is a town in the southern part of the province of Lampung, Indonesia, and is the largest and busiest port in the province, and also one of the busiest ports in Indonesia. Ferries carrying passengers and vehicles, particularly large trucks, connect Bakauheni with Port of Merak in Java across the Sunda Strait. There are plans for a Sunda Strait Bridge to connect the Bakauheni district with Java. The harbour is managed by the national ferry company ASDP Indonesia Ferry.
The Merak-Bakauheni ferry route is operated 24 hours per day, with on average one ferry departure per 12 minutes. The average duration of trips required between Bakauheni - Merak or otherwise by ferry is about 2 hours. Public transportation users can also use small boats to speed up the trip, reducing travel time to about an hour. However, this option is also more expensive, and ships are only available from morning until the late afternoon, when the water is not too rough. The port is busier during mudik tradition, especially in new year and Ied Mubarak days.
References
B
Populated places in Lampung
Lampung
|
Virve-Elfriide Köster (née Haavik; 30 January 1928 – 10 December 2022), best known as Kihnu Virve, was an Estonian folk singer. Her songs are among the top-selling folk music in Estonia.
Biography
Virve Köster was born Virve Haavik in 1928 in Pärnu, Estonia, the closest large city to her home island of Kihnu. As a performer, she went by the name Kihnu Virve.
Virve lived in a log cabin on the small women-dominated island of Kihnu. She was the island's best-known songwriter and one of its most famous residents.
Virve began writing songs at age 15, and she went on to write over 300 of them. She composed the songs, both melody and lyrics, in her head, then wrote them down later. The songs often drew from her own life and experiences, as well as describing the island residents' unique lifestyle. Stylistically, they resemble traditional music from her youth in the 1930s–60s.
After writing and performing music for family and friends for decades, Virve reinvented herself in her seventies and found widespread success as a folk musician, becoming one of Estonia's top-selling female folk singers. Perhaps her best-known song is "Merepidu" ("Feast of the Sea"), which was first brought to national attention through a cover by the Tallinn-based folk group Kukerpillid.
Virve remained physically active, notably going sky-diving at age 81 in 2009, reportedly becoming the first person from Kihnu to make a parachute jump. She toured the country, often performing alongside her family.
A Kihnu Veeteed ferry is named after her. In 2011, she was given the Order of the White Star, Fifth Class, for her cultural contributions.
Virve died on 10 December 2022, at the age of 94.
References
External Links
1928 births
2022 deaths
20th-century Estonian women singers
21st-century Estonian women singers
Estonian women writers
Estonian folk musicians
Estonian songwriters
Recipients of the Order of the White Star, 5th Class
People from Pärnu
|
```javascript
import { flushSync } from 'svelte';
import { test } from '../../test';
export default test({
async test({ assert, target, logs }) {
const [b1] = target.querySelectorAll('button');
b1.click();
flushSync();
// TODO: this should likely be ['works'], as if we don't use spread this works as intended
assert.deepEqual(logs, ['fails']);
}
});
```
|
```python
#!/usr/bin/env python3
import os
import sys
import glob
import argparse
import datetime
import subprocess
from tests.utils.cmd_args import parser
from tests.utils.logger import log
test_args = []
summary_file_name = "summary.txt"
def check_subdirs(_dir):
error = False
tests = sorted(glob.glob(_dir+"/*.py"))
if tests:
for test in tests:
root_error = run_script(test)
if root_error:
error = root_error
return error
def run_script(_test, _multiplier = 1, _interpreter = None ):
try:
with open(summary_file_name, "a+") as summary:
interpreter = _interpreter if _interpreter else "python3"
ret_code = subprocess.call(interpreter + " " + _test + " " + test_args, shell=True)
if ret_code == 0:
summary.writelines("Test `{0}` passed.\n".format(_test))
return False
else:
summary.writelines("Test `{0}` failed.\n".format(_test))
return True
except Exception as _ex:
log.exception("Exception occures in run_script `{0}`".format(str(_ex)))
return True
if __name__ == "__main__":
if os.path.isfile(summary_file_name):
os.remove(summary_file_name)
with open(summary_file_name, "a+") as summary:
summary.writelines("Cli wallet test started at {0}.\n".format(str(datetime.datetime.now())[:-7]))
args = parser.parse_args()
for key, val in args.__dict__.items():
if val :
test_args.append("--"+key.replace("_","-")+ " ")
test_args.append(val)
test_args = " ".join(test_args)
try:
error = True
if os.path.isdir("./tests"):
error = check_subdirs("./tests")
except Exception as _ex:
log.exception("Exception occured `{0}`.".format(str(_ex)))
error = True
finally:
if error:
log.error("At least one test has faild. Please check summary.txt file.")
exit(1)
else:
log.info("All tests pass.")
exit(0)
```
|
Erik Mattias Andersson (born 29 March 1978) is a retired Swedish handballer and currently a goalkeeper coach. He competed for the Swedish national team at the 2012 Summer Olympics in London where they won the silver medal.
Honours
Bundesliga:
: 2002, 2005, 2006, 2007, 2008, 2018
German Cup:
: 2007, 2008, 2015
German Super Cup:
: 2005, 2007, 2008
EHF Champions League:
: 2007, 2014
EHF Cup Winner's Cup:
: 2012
EHF Cup:
: 2002, 2004
EHF Champions Trophy:
: 2007
References
External links
1978 births
Living people
Swedish male handball players
Olympic handball players for Sweden
Handball players at the 2012 Summer Olympics
Handball players at the 2016 Summer Olympics
Sportspeople from Malmö
Olympic silver medalists for Sweden
Olympic medalists in handball
Medalists at the 2012 Summer Olympics
SG Flensburg-Handewitt players
THW Kiel players
Expatriate handball players
Handball-Bundesliga players
Swedish expatriate sportspeople in Germany
Swedish expatriate sportspeople in Spain
FC Barcelona Handbol players
Liga ASOBAL players
HK Drott players
Ystads IF players
Swedish handball coaches
|
```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.
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
// ResourcePolicyRuleApplyConfiguration represents a declarative configuration of the ResourcePolicyRule type for use
// with apply.
type ResourcePolicyRuleApplyConfiguration struct {
Verbs []string `json:"verbs,omitempty"`
APIGroups []string `json:"apiGroups,omitempty"`
Resources []string `json:"resources,omitempty"`
ClusterScope *bool `json:"clusterScope,omitempty"`
Namespaces []string `json:"namespaces,omitempty"`
}
// ResourcePolicyRuleApplyConfiguration constructs a declarative configuration of the ResourcePolicyRule type for use with
// apply.
func ResourcePolicyRule() *ResourcePolicyRuleApplyConfiguration {
return &ResourcePolicyRuleApplyConfiguration{}
}
// WithVerbs adds the given value to the Verbs field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Verbs field.
func (b *ResourcePolicyRuleApplyConfiguration) WithVerbs(values ...string) *ResourcePolicyRuleApplyConfiguration {
for i := range values {
b.Verbs = append(b.Verbs, values[i])
}
return b
}
// WithAPIGroups adds the given value to the APIGroups field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the APIGroups field.
func (b *ResourcePolicyRuleApplyConfiguration) WithAPIGroups(values ...string) *ResourcePolicyRuleApplyConfiguration {
for i := range values {
b.APIGroups = append(b.APIGroups, values[i])
}
return b
}
// WithResources adds the given value to the Resources field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Resources field.
func (b *ResourcePolicyRuleApplyConfiguration) WithResources(values ...string) *ResourcePolicyRuleApplyConfiguration {
for i := range values {
b.Resources = append(b.Resources, values[i])
}
return b
}
// WithClusterScope sets the ClusterScope field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ClusterScope field is set to the value of the last call.
func (b *ResourcePolicyRuleApplyConfiguration) WithClusterScope(value bool) *ResourcePolicyRuleApplyConfiguration {
b.ClusterScope = &value
return b
}
// WithNamespaces adds the given value to the Namespaces field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Namespaces field.
func (b *ResourcePolicyRuleApplyConfiguration) WithNamespaces(values ...string) *ResourcePolicyRuleApplyConfiguration {
for i := range values {
b.Namespaces = append(b.Namespaces, values[i])
}
return b
}
```
|
```rust
#![warn(rust_2018_idioms)]
use tokio::pin;
use tokio::sync::oneshot;
use tokio_util::sync::{CancellationToken, WaitForCancellationFuture};
use core::future::Future;
use core::task::{Context, Poll};
use futures_test::task::new_count_waker;
#[test]
fn cancel_token() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
assert!(!token.is_cancelled());
let wait_fut = token.cancelled();
pin!(wait_fut);
assert_eq!(
Poll::Pending,
wait_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
let wait_fut_2 = token.cancelled();
pin!(wait_fut_2);
token.cancel();
assert_eq!(wake_counter, 1);
assert!(token.is_cancelled());
assert_eq!(
Poll::Ready(()),
wait_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
wait_fut_2.as_mut().poll(&mut Context::from_waker(&waker))
);
}
#[test]
fn cancel_token_owned() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
assert!(!token.is_cancelled());
let wait_fut = token.clone().cancelled_owned();
pin!(wait_fut);
assert_eq!(
Poll::Pending,
wait_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
let wait_fut_2 = token.clone().cancelled_owned();
pin!(wait_fut_2);
token.cancel();
assert_eq!(wake_counter, 1);
assert!(token.is_cancelled());
assert_eq!(
Poll::Ready(()),
wait_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
wait_fut_2.as_mut().poll(&mut Context::from_waker(&waker))
);
}
#[test]
fn cancel_token_owned_drop_test() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
let future = token.cancelled_owned();
pin!(future);
assert_eq!(
Poll::Pending,
future.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
// let future be dropped while pinned and under pending state to
// find potential memory related bugs.
}
#[test]
fn cancel_child_token_through_parent() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
let child_token = token.child_token();
assert!(!child_token.is_cancelled());
let child_fut = child_token.cancelled();
pin!(child_fut);
let parent_fut = token.cancelled();
pin!(parent_fut);
assert_eq!(
Poll::Pending,
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
token.cancel();
assert_eq!(wake_counter, 2);
assert!(token.is_cancelled());
assert!(child_token.is_cancelled());
assert_eq!(
Poll::Ready(()),
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
}
#[test]
fn cancel_grandchild_token_through_parent_if_child_was_dropped() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
let intermediate_token = token.child_token();
let child_token = intermediate_token.child_token();
drop(intermediate_token);
assert!(!child_token.is_cancelled());
let child_fut = child_token.cancelled();
pin!(child_fut);
let parent_fut = token.cancelled();
pin!(parent_fut);
assert_eq!(
Poll::Pending,
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
token.cancel();
assert_eq!(wake_counter, 2);
assert!(token.is_cancelled());
assert!(child_token.is_cancelled());
assert_eq!(
Poll::Ready(()),
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
}
#[test]
fn cancel_child_token_without_parent() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
let child_token_1 = token.child_token();
let child_fut = child_token_1.cancelled();
pin!(child_fut);
let parent_fut = token.cancelled();
pin!(parent_fut);
assert_eq!(
Poll::Pending,
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
child_token_1.cancel();
assert_eq!(wake_counter, 1);
assert!(!token.is_cancelled());
assert!(child_token_1.is_cancelled());
assert_eq!(
Poll::Ready(()),
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
let child_token_2 = token.child_token();
let child_fut_2 = child_token_2.cancelled();
pin!(child_fut_2);
assert_eq!(
Poll::Pending,
child_fut_2.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
token.cancel();
assert_eq!(wake_counter, 3);
assert!(token.is_cancelled());
assert!(child_token_2.is_cancelled());
assert_eq!(
Poll::Ready(()),
child_fut_2.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
}
#[test]
fn create_child_token_after_parent_was_cancelled() {
for drop_child_first in [true, false].iter().cloned() {
let (waker, wake_counter) = new_count_waker();
let token = CancellationToken::new();
token.cancel();
let child_token = token.child_token();
assert!(child_token.is_cancelled());
{
let child_fut = child_token.cancelled();
pin!(child_fut);
let parent_fut = token.cancelled();
pin!(parent_fut);
assert_eq!(
Poll::Ready(()),
child_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
}
if drop_child_first {
drop(child_token);
drop(token);
} else {
drop(token);
drop(child_token);
}
}
}
#[test]
fn drop_multiple_child_tokens() {
for drop_first_child_first in &[true, false] {
let token = CancellationToken::new();
let mut child_tokens = [None, None, None];
for child in &mut child_tokens {
*child = Some(token.child_token());
}
assert!(!token.is_cancelled());
assert!(!child_tokens[0].as_ref().unwrap().is_cancelled());
for i in 0..child_tokens.len() {
if *drop_first_child_first {
child_tokens[i] = None;
} else {
child_tokens[child_tokens.len() - 1 - i] = None;
}
assert!(!token.is_cancelled());
}
drop(token);
}
}
#[test]
fn cancel_only_all_descendants() {
// ARRANGE
let (waker, wake_counter) = new_count_waker();
let parent_token = CancellationToken::new();
let token = parent_token.child_token();
let sibling_token = parent_token.child_token();
let child1_token = token.child_token();
let child2_token = token.child_token();
let grandchild_token = child1_token.child_token();
let grandchild2_token = child1_token.child_token();
let great_grandchild_token = grandchild_token.child_token();
assert!(!parent_token.is_cancelled());
assert!(!token.is_cancelled());
assert!(!sibling_token.is_cancelled());
assert!(!child1_token.is_cancelled());
assert!(!child2_token.is_cancelled());
assert!(!grandchild_token.is_cancelled());
assert!(!grandchild2_token.is_cancelled());
assert!(!great_grandchild_token.is_cancelled());
let parent_fut = parent_token.cancelled();
let fut = token.cancelled();
let sibling_fut = sibling_token.cancelled();
let child1_fut = child1_token.cancelled();
let child2_fut = child2_token.cancelled();
let grandchild_fut = grandchild_token.cancelled();
let grandchild2_fut = grandchild2_token.cancelled();
let great_grandchild_fut = great_grandchild_token.cancelled();
pin!(parent_fut);
pin!(fut);
pin!(sibling_fut);
pin!(child1_fut);
pin!(child2_fut);
pin!(grandchild_fut);
pin!(grandchild2_fut);
pin!(great_grandchild_fut);
assert_eq!(
Poll::Pending,
parent_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
sibling_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
child1_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
child2_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
grandchild_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
grandchild2_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Pending,
great_grandchild_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 0);
// ACT
token.cancel();
// ASSERT
assert_eq!(wake_counter, 6);
assert!(!parent_token.is_cancelled());
assert!(token.is_cancelled());
assert!(!sibling_token.is_cancelled());
assert!(child1_token.is_cancelled());
assert!(child2_token.is_cancelled());
assert!(grandchild_token.is_cancelled());
assert!(grandchild2_token.is_cancelled());
assert!(great_grandchild_token.is_cancelled());
assert_eq!(
Poll::Ready(()),
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
child1_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
child2_fut.as_mut().poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
grandchild_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
grandchild2_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(
Poll::Ready(()),
great_grandchild_fut
.as_mut()
.poll(&mut Context::from_waker(&waker))
);
assert_eq!(wake_counter, 6);
}
#[test]
fn drop_parent_before_child_tokens() {
let token = CancellationToken::new();
let child1 = token.child_token();
let child2 = token.child_token();
drop(token);
assert!(!child1.is_cancelled());
drop(child1);
drop(child2);
}
#[test]
fn derives_send_sync() {
fn assert_send<T: Send>() {}
fn assert_sync<T: Sync>() {}
assert_send::<CancellationToken>();
assert_sync::<CancellationToken>();
assert_send::<WaitForCancellationFuture<'static>>();
assert_sync::<WaitForCancellationFuture<'static>>();
}
#[test]
fn run_until_cancelled_test() {
let (waker, _) = new_count_waker();
{
let token = CancellationToken::new();
let fut = token.run_until_cancelled(std::future::pending::<()>());
pin!(fut);
assert_eq!(
Poll::Pending,
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
token.cancel();
assert_eq!(
Poll::Ready(None),
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
}
{
let (tx, rx) = oneshot::channel::<()>();
let token = CancellationToken::new();
let fut = token.run_until_cancelled(async move {
rx.await.unwrap();
42
});
pin!(fut);
assert_eq!(
Poll::Pending,
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
tx.send(()).unwrap();
assert_eq!(
Poll::Ready(Some(42)),
fut.as_mut().poll(&mut Context::from_waker(&waker))
);
}
}
```
|
```smalltalk
using System;
using LuaInterface;
public static class TestProtol
{
[LuaByteBufferAttribute]
public static byte[] data;
}
```
|
Lieutenant Colonel Haroon Islam was an officer in the Pakistan Army's Special Service Group (also known as Black Storks) who died during Operation Silence. He was a commanding officer of Operation Silence while commanding the Zarrar Anti Terrorist Unit. He was killed in fierce fighting which took place inside the Red Mosque Complex while leading a small force of 150 SSG members. The Special Service Group successfully took over the complex. On March 23, 2008, he was posthumously awarded the second highest civilian award, Hilal-e-Shujaat (Crescent of Bravery) by the President of Pakistan.
Biography
Haroon was born in a family of military background. His father himself was a deputy commissioner who had also participated in the Indo-Pakistani War of 1971. His elder brother is an Assistant Director in the FIA while another brother, Major Ehtisham-ul-Islam, is a retired Army Officer. He joined and gained commission in the 3rd Battalion of the Sindh Regiment of Pakistan Army in 1988. He was a graduate of Command and Staff College, Quetta in 1993 and joined Pakistan Army's elite special forces branch SSG (Special Service Group) in 1993. He had a successful military career. In 1998, his unit was deployed in Kargil, and had participated in Kargil War where he had led successful military operations.
In recognition of his services, he was awarded Chief of Army Staff Commendation Medal. During his career with the SSG, he commanded the elite Zarrar Company (The anti-terrorist unit of the SSG).
Operation Sunrise
In 2007, the conflict between Lal Masjid and the Government of Pakistan deepened, and the Government of Pakistan decided to launch a military operation against the Islamic extremists and Taliban terrorists. In July 2007, one of SSG battalion was assigned to a mission to capture and take absolute control of Red Mosque from Taliban militants. To achieve this task, the Pakistan Army assigned this task to 7th Commando Zarrar Battalion of SSG led by Lt. Col. Haroon Islam and the Army Rangers Anti-Terrorist Company (ATC) led by Major Tariq Anees. The operation, codenamed Operation Silence, was launched on July 3, 2007 and Islam was killed on the midnight of 8 July 2007, two days after having been hit by small arms fire while commanding the raid on Lal Masjid in Islamabad. The Second-in-Command Army Ranger's Major Tariq Anees was also seriously wounded. Reports indicate that he was hit while planting explosives on the outer perimeter wall of the complex. The shooter was Muhammad Maqsood, guard of Maulana Abdul Rashid Ghazi. He was killed in the retaliatory fire by the security forces.
Free fall accident
Previously in his life, he survived a potentially fatal free fall accident when his parachute entangled with another. He not only survived the accident but became fit enough to rejoin the SSG. He was also a graduate of the prestigious Command and Staff College, Quetta. Because of his meritorious services, he had been awarded Chief of Army Staff Commendation Card.
In mourning
His death has left a deep legacy in Special Services Group. While he gained a respected place in SSG Division, on behalf of Prime Minister Shaukat Aziz and the federal cabinet, a two-member delegation consisting of Additional Secretary (Cabinet Division) Saeed Ahmad Khan and Joint Secretary (Cabinet Committee) Muhammad Zahid Khan visited the widow of Colonel Haroon Islam. On July 08, 2007, President and Chief of Army Staff General Pervez Musharraf, Vice Chief of Army Staff General Ahsan Saleem Hyat and a large number of other senior civil and military officers and relatives of the martyred officer had attended the Namaz-e-Janaza held at Chaklala, Pakistan. The Pakistan Army presented Guard of honour to Shaheed Lieutenant Colonel Haroon-ul-Islam. Later, his body was sent to Lahore for burial. He is buried in Military cemetery graveyard, Lahore.
References
External links
Lahore Metroblogs eulogy
Pakistan think tank eulogy
Year of birth missing
2007 deaths
Pakistani military personnel killed in action
Special Services Group officers
Punjabi people
Military personnel killed in the insurgency in Khyber Pakhtunkhwa
Military personnel from Lahore
People murdered in Islamabad
|
```go
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
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.
*/
// Code generated by register-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
// GroupName specifies the group name used to register the objects.
const GroupName = "gateway.networking.k8s.io"
// GroupVersion specifies the group and the version used to register the objects.
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1"}
// SchemeGroupVersion is group version used to register these objects
// Deprecated: use GroupVersion instead.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}
var (
// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
SchemeBuilder runtime.SchemeBuilder
localSchemeBuilder = &SchemeBuilder
// Deprecated: use Install instead
AddToScheme = localSchemeBuilder.AddToScheme
Install = localSchemeBuilder.AddToScheme
)
func init() {
// We only register manually written functions here. The registration of the
// generated functions takes place in the generated files. The separation
// makes the code compile even when the generated files are missing.
localSchemeBuilder.Register(addKnownTypes)
}
// Adds the list of known types to Scheme.
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&GRPCRoute{},
&GRPCRouteList{},
&Gateway{},
&GatewayClass{},
&GatewayClassList{},
&GatewayList{},
&HTTPRoute{},
&HTTPRouteList{},
)
// AddToGroupVersion allows the serialization of client types like ListOptions.
v1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}
```
|
```c
/*
*
*/
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "btc_blufi_prf.h"
#include "blufi_int.h"
#include "esp_log.h"
#include "esp_blufi_api.h"
#include "esp_err.h"
#include "btc/btc_task.h"
#include "esp_blufi.h"
#include "osi/allocator.h"
#include "console/console.h"
/*nimBLE Host*/
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
#include "host/ble_hs.h"
#include "host/util/util.h"
#include "host/ble_uuid.h"
#include "host/ble_gatt.h"
#include "services/gap/ble_svc_gap.h"
#include "services/gatt/ble_svc_gatt.h"
#if (BLUFI_INCLUDED == TRUE)
static uint8_t own_addr_type;
struct gatt_value gatt_values[SERVER_MAX_VALUES];
const static char *TAG = "BLUFI_EXAMPLE";
enum {
GATT_VALUE_TYPE_CHR,
GATT_VALUE_TYPE_DSC,
};
static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt,
void *arg);
static const struct ble_gatt_svc_def gatt_svr_svcs[] = {
{
/*** Service: Blufi */
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLUFI_SERVICE_UUID),
.characteristics = (struct ble_gatt_chr_def[])
{ {
/*** Characteristic: P2E */
.uuid = BLE_UUID16_DECLARE(BLUFI_CHAR_P2E_UUID),
.access_cb = gatt_svr_access_cb,
.flags = BLE_GATT_CHR_F_WRITE,
.arg = &gatt_values[0],
.val_handle = &gatt_values[0].val_handle,
}, {
/*** Characteristic: E2P */
.uuid = BLE_UUID16_DECLARE(BLUFI_CHAR_E2P_UUID),
.access_cb = gatt_svr_access_cb,
.flags = BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_NOTIFY,
.arg = &gatt_values[1],
.val_handle = &gatt_values[1].val_handle,
}, {
0, /* No more characteristics in this service. */
}
},
},
{
0, /* No more services. */
},
};
void esp_blufi_gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg)
{
char buf[BLE_UUID_STR_LEN];
switch (ctxt->op) {
case BLE_GATT_REGISTER_OP_SVC:
ESP_LOGI(TAG, "registered service %s with handle=%d",
ble_uuid_to_str(ctxt->svc.svc_def->uuid, buf),
ctxt->svc.handle);
break;
case BLE_GATT_REGISTER_OP_CHR:
ESP_LOGI(TAG, "registering characteristic %s with "
"def_handle=%d val_handle=%d\n",
ble_uuid_to_str(ctxt->chr.chr_def->uuid, buf),
ctxt->chr.def_handle,
ctxt->chr.val_handle);
break;
case BLE_GATT_REGISTER_OP_DSC:
ESP_LOGI(TAG, "registering descriptor %s with handle=%d",
ble_uuid_to_str(ctxt->dsc.dsc_def->uuid, buf),
ctxt->dsc.handle);
break;
default:
assert(0);
break;
}
}
static size_t write_value(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt,
void *arg)
{
struct gatt_value *value = (struct gatt_value *)arg;
uint16_t len;
int rc;
if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) {
if (ctxt->chr->flags & BLE_GATT_CHR_F_WRITE_AUTHOR) {
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
}
} else {
if (ctxt->dsc->att_flags & BLE_ATT_F_WRITE_AUTHOR) {
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
}
}
/* Data may come in linked om. So retrieve all data */
if (SLIST_NEXT(ctxt->om, om_next) != NULL) {
uint8_t *fw_buf = (uint8_t *)malloc(517 * sizeof(uint8_t));
memset(fw_buf, 0x0, 517);
memcpy(fw_buf, &ctxt->om->om_data[0], ctxt->om->om_len);
struct os_mbuf *last;
last = ctxt->om;
uint32_t offset = ctxt->om->om_len;
while (SLIST_NEXT(last, om_next) != NULL) {
struct os_mbuf *temp = SLIST_NEXT(last, om_next);
memcpy(fw_buf + offset , &temp->om_data[0], temp->om_len);
offset += temp->om_len;
last = SLIST_NEXT(last, om_next);
temp = NULL;
}
btc_blufi_recv_handler(fw_buf, offset);
free(fw_buf);
}
else {
btc_blufi_recv_handler(&ctxt->om->om_data[0], ctxt->om->om_len);
}
rc = ble_hs_mbuf_to_flat(ctxt->om, value->buf->om_data,
value->buf->om_len, &len);
if (rc != 0) {
return BLE_ATT_ERR_UNLIKELY;
}
/* Maximum attribute value size is 512 bytes */
assert(value->buf->om_len < MAX_VAL_SIZE);
return 0;
}
static size_t read_value(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt,
void *arg)
{
const struct gatt_value *value = (const struct gatt_value *) arg;
char str[BLE_UUID_STR_LEN];
int rc;
memset(str, '\0', sizeof(str));
if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) {
if (ctxt->chr->flags & BLE_GATT_CHR_F_READ_AUTHOR) {
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
}
ble_uuid_to_str(ctxt->chr->uuid, str);
} else {
if (ctxt->dsc->att_flags & BLE_ATT_F_READ_AUTHOR) {
return BLE_ATT_ERR_INSUFFICIENT_AUTHOR;
}
ble_uuid_to_str(ctxt->dsc->uuid, str);
}
rc = os_mbuf_append(ctxt->om, value->buf->om_data, value->buf->om_len);
return rc == 0 ? 0 : BLE_ATT_ERR_INSUFFICIENT_RES;
}
static int gatt_svr_access_cb(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt,
void *arg)
{
switch (ctxt->op) {
case BLE_GATT_ACCESS_OP_READ_CHR:
return read_value(conn_handle, attr_handle,
ctxt, arg);
case BLE_GATT_ACCESS_OP_WRITE_CHR:
return write_value(conn_handle, attr_handle,
ctxt, arg);
default:
assert(0);
return BLE_ATT_ERR_UNLIKELY;
}
/* Unknown characteristic; the nimble stack should not have called this
* function.
*/
assert(0);
return BLE_ATT_ERR_UNLIKELY;
}
static void init_gatt_values(void)
{
int i = 0;
const struct ble_gatt_svc_def *svc;
const struct ble_gatt_chr_def *chr;
const struct ble_gatt_dsc_def *dsc;
for (svc = gatt_svr_svcs; svc && svc->uuid; svc++) {
for (chr = svc->characteristics; chr && chr->uuid; chr++) {
assert(i < SERVER_MAX_VALUES);
gatt_values[i].type = GATT_VALUE_TYPE_CHR;
gatt_values[i].ptr = (void *)chr;
gatt_values[i].buf = os_msys_get(0, 0);
os_mbuf_extend(gatt_values[i].buf, 1);
++i;
for (dsc = chr->descriptors; dsc && dsc->uuid; dsc++) {
assert(i < SERVER_MAX_VALUES);
gatt_values[i].type = GATT_VALUE_TYPE_DSC;
gatt_values[i].ptr = (void *)dsc;
gatt_values[i].buf = os_msys_get(0, 0);
os_mbuf_extend(gatt_values[i].buf, 1);
++i;
}
}
}
}
int esp_blufi_gatt_svr_init(void)
{
int rc;
ble_svc_gap_init();
ble_svc_gatt_init();
rc = ble_gatts_count_cfg(gatt_svr_svcs);
if (rc != 0) {
return rc;
}
rc = ble_gatts_add_svcs(gatt_svr_svcs);
if (rc != 0) {
return rc;
}
init_gatt_values();
return 0;
}
static int
esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
{
struct ble_gap_conn_desc desc;
int rc;
switch (event->type) {
case BLE_GAP_EVENT_CONNECT:
/* A new connection was established or a connection attempt failed. */
ESP_LOGI(TAG, "connection %s; status=%d",
event->connect.status == 0 ? "established" : "failed",
event->connect.status);
if (event->connect.status == 0) {
blufi_env.is_connected = true;
blufi_env.recv_seq = blufi_env.send_seq = 0;
btc_msg_t msg;
esp_blufi_cb_param_t param;
msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_BLE_CONNECT;
rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
assert(rc == 0);
memcpy(param.connect.remote_bda, desc.peer_id_addr.val, ESP_BLUFI_BD_ADDR_LEN);
param.connect.conn_id = event->connect.conn_handle;
/* save connection handle */
blufi_env.conn_id = event->connect.conn_handle;
btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL, NULL);
}
if (event->connect.status != 0) {
/* Connection failed; resume advertising. */
esp_blufi_adv_start();
}
return 0;
case BLE_GAP_EVENT_DISCONNECT:
ESP_LOGI(TAG, "disconnect; reason=%d", event->disconnect.reason);
memcpy(blufi_env.remote_bda, event->disconnect.conn.peer_id_addr.val, ESP_BLUFI_BD_ADDR_LEN);
blufi_env.is_connected = false;
blufi_env.recv_seq = blufi_env.send_seq = 0;
blufi_env.sec_mode = 0x0;
blufi_env.offset = 0;
if (blufi_env.aggr_buf != NULL) {
osi_free(blufi_env.aggr_buf);
blufi_env.aggr_buf = NULL;
}
btc_msg_t msg;
esp_blufi_cb_param_t param;
msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_BLE_DISCONNECT;
memcpy(param.disconnect.remote_bda, event->disconnect.conn.peer_id_addr.val, ESP_BLUFI_BD_ADDR_LEN);
btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL, NULL);
return 0;
case BLE_GAP_EVENT_CONN_UPDATE:
/* The central has updated the connection parameters. */
ESP_LOGI(TAG, "connection updated; status=%d",
event->conn_update.status);
return 0;
case BLE_GAP_EVENT_ADV_COMPLETE:
ESP_LOGI(TAG, "advertise complete; reason=%d",
event->adv_complete.reason);
esp_blufi_adv_start();
return 0;
case BLE_GAP_EVENT_SUBSCRIBE:
ESP_LOGI(TAG, "subscribe event; conn_handle=%d attr_handle=%d "
"reason=%d prevn=%d curn=%d previ=%d curi=%d\n",
event->subscribe.conn_handle,
event->subscribe.attr_handle,
event->subscribe.reason,
event->subscribe.prev_notify,
event->subscribe.cur_notify,
event->subscribe.prev_indicate,
event->subscribe.cur_indicate);
return 0;
case BLE_GAP_EVENT_MTU:
ESP_LOGI(TAG, "mtu update event; conn_handle=%d cid=%d mtu=%d",
event->mtu.conn_handle,
event->mtu.channel_id,
event->mtu.value);
blufi_env.frag_size = (event->mtu.value < BLUFI_MAX_DATA_LEN ? event->mtu.value : BLUFI_MAX_DATA_LEN) - BLUFI_MTU_RESERVED_SIZE;
return 0;
}
return 0;
}
void esp_blufi_adv_start(void)
{
int rc;
rc = ble_hs_util_ensure_addr(0);
assert(rc == 0);
/* Figure out address to use while advertising (no privacy for now) */
rc = ble_hs_id_infer_auto(0, &own_addr_type);
if (rc != 0) {
ESP_LOGI(TAG, "error determining address type; rc=%d ", rc);
return;
}
/* Printing ADDR */
uint8_t addr_val[6] = {0};
rc = ble_hs_id_copy_addr(own_addr_type, addr_val, NULL);
/* Begin advertising. */
struct ble_gap_adv_params adv_params;
struct ble_hs_adv_fields fields;
const char *name;
/**
* Set the advertisement data included in our advertisements:
* o Flags (indicates advertisement type and other general info).
* o Advertising tx power.
* o Device name.
* o 16-bit service UUIDs (alert notifications).
*/
memset(&fields, 0, sizeof fields);
/* Advertise two flags:
* o Discoverability in forthcoming advertisement (general)
* o BLE-only (BR/EDR unsupported).
*/
fields.flags = BLE_HS_ADV_F_DISC_GEN |
BLE_HS_ADV_F_BREDR_UNSUP;
/* Indicate that the TX power level field should be included; have the
* stack fill this value automatically. This is done by assigning the
* special value BLE_HS_ADV_TX_PWR_LVL_AUTO.
*/
fields.tx_pwr_lvl_is_present = 1;
fields.tx_pwr_lvl = BLE_HS_ADV_TX_PWR_LVL_AUTO;
name = ble_svc_gap_device_name();
fields.name = (uint8_t *)name;
fields.name_len = strlen(name);
fields.name_is_complete = 1;
fields.uuids16 = (ble_uuid16_t[]) {
BLE_UUID16_INIT(BLUFI_APP_UUID)
};
fields.num_uuids16 = 1;
fields.uuids16_is_complete = 1;
rc = ble_gap_adv_set_fields(&fields);
if (rc != 0) {
ESP_LOGE(TAG, "error setting advertisement data; rc=%d", rc);
return;
}
/* Begin advertising. */
memset(&adv_params, 0, sizeof adv_params);
adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER,
&adv_params, esp_blufi_gap_event, NULL);
if (rc != 0) {
ESP_LOGE(TAG, "error enabling advertisement; rc=%d", rc);
return;
}
}
uint8_t esp_blufi_init(void)
{
blufi_env.enabled = true;
esp_blufi_cb_param_t param;
param.init_finish.state = ESP_BLUFI_INIT_OK;
btc_blufi_cb_to_app(ESP_BLUFI_EVENT_INIT_FINISH, ¶m);
return ESP_BLUFI_ERROR;
}
void esp_blufi_deinit(void)
{
blufi_env.enabled = false;
btc_msg_t msg;
esp_blufi_cb_param_t param;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_DEINIT_FINISH;
param.deinit_finish.state = ESP_BLUFI_DEINIT_OK;
btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL, NULL);
}
void esp_blufi_send_notify(void *arg)
{
struct pkt_info *pkts = (struct pkt_info *) arg;
struct os_mbuf *om;
om = ble_hs_mbuf_from_flat(pkts->pkt, pkts->pkt_len);
if (om == NULL) {
ESP_LOGE(TAG, "Error in allocating memory");
return;
}
int rc = 0;
rc = ble_gatts_notify_custom(blufi_env.conn_id, gatt_values[1].val_handle, om);
if (rc != 0) {
ESP_LOGE(TAG, "Error in sending notification");
}
}
void esp_blufi_disconnect(void)
{
ble_gap_terminate(blufi_env.conn_id, BLE_ERR_REM_USER_CONN_TERM);
}
void esp_blufi_adv_stop(void) {}
void esp_blufi_send_encap(void *arg)
{
struct blufi_hdr *hdr = (struct blufi_hdr *)arg;
if (blufi_env.is_connected == false) {
BTC_TRACE_WARNING("%s ble connection is broken\n", __func__);
return;
}
btc_blufi_send_notify((uint8_t *)hdr,
((hdr->fc & BLUFI_FC_CHECK) ?
hdr->data_len + sizeof(struct blufi_hdr) + 2 :
hdr->data_len + sizeof(struct blufi_hdr)));
}
void esp_blufi_btc_init(void)
{
int rc;
rc = btc_init();
assert(rc == 0);
}
void esp_blufi_btc_deinit(void)
{
btc_deinit();
}
int esp_blufi_handle_gap_events(struct ble_gap_event *event, void *arg)
{
struct ble_gap_conn_desc desc;
int rc;
if (event != NULL) {
switch (event->type) {
case BLE_GAP_EVENT_CONNECT:
if (event->connect.status == 0) {
btc_msg_t msg;
esp_blufi_cb_param_t param;
blufi_env.is_connected = true;
blufi_env.recv_seq = blufi_env.send_seq = 0;
blufi_env.conn_id = event->connect.conn_handle;
msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_BLE_CONNECT;
rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
assert(rc == 0);
memcpy(param.connect.remote_bda, desc.peer_id_addr.val, ESP_BLUFI_BD_ADDR_LEN);
param.connect.conn_id = event->connect.conn_handle;
btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL, NULL);
}
return 0;
case BLE_GAP_EVENT_DISCONNECT: {
btc_msg_t msg;
esp_blufi_cb_param_t param;
blufi_env.is_connected = false;
blufi_env.recv_seq = blufi_env.send_seq = 0;
blufi_env.sec_mode = 0x0;
blufi_env.offset = 0;
memcpy(blufi_env.remote_bda,
event->disconnect.conn.peer_id_addr.val,
ESP_BLUFI_BD_ADDR_LEN);
if (blufi_env.aggr_buf != NULL) {
osi_free(blufi_env.aggr_buf);
blufi_env.aggr_buf = NULL;
}
msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI;
msg.act = ESP_BLUFI_EVENT_BLE_DISCONNECT;
memcpy(param.disconnect.remote_bda,
event->disconnect.conn.peer_id_addr.val,
ESP_BLUFI_BD_ADDR_LEN);
btc_transfer_context(&msg, ¶m, sizeof(esp_blufi_cb_param_t), NULL, NULL);
return 0;
}
case BLE_GAP_EVENT_MTU:
blufi_env.frag_size = (event->mtu.value < BLUFI_MAX_DATA_LEN ? event->mtu.value :
BLUFI_MAX_DATA_LEN) - BLUFI_MTU_RESERVED_SIZE;
return 0;
}
}
return 0;
}
#endif
```
|
Grand-Fougeray (; ) is a commune in the Ille-et-Vilaine department of Brittany in north-western France.
Geography
The river Chère forms most of the commune's southern border.
Population
Inhabitants of Grand-Fougeray are called Fulkériens in French.
See also
Communes of the Ille-et-Vilaine department
References
External links
Mayors of Ille-et-Vilaine Association
Communes of Ille-et-Vilaine
|
Joanne Goh is a Malaysian film producer and entrepreneur. Joanne started her career in the entertainment industry in 1997, she is the founder of Jazzy Group of Companies, which organizes live concerts; Jazzy Pictures, a film and TV production company based in Malaysia; and the Malaysia International Film Festival and Malaysia Golden Global Awards.
Career
Jazzy Pictures
In 2017, Goh founded Jazzy Pictures (M) Sdn Bhd, a film production and distribution company.
In 2018, along with Pixel Play Entertainment, Goh co-produced Crossroads: One Two Jaga, which won the Best Film in the 30th Malaysia Film Festival and other local awards. The film’s positive reception paved the way for "a new direction for an industry that comes under close government scrutiny when it comes to subject matter, with its themes of corruption and crime". In the same year, Goh produced Fly By Night, which premiered in the 23rd Busan International Film Festival.
In 2019, Goh produced Nina Wu, a film that was a response to and a reflection of the #MeToo movement. Directed by Taiwanese director Midi Z, the film was selected to compete in the 72nd Cannes Film Festival.
Goh's upcoming projects include Warning From Hell, The Lies I Tell, Reborn, Calling From Dark Side.
MIFFest & MGGA
Established in 2016, Malaysia International Film Festival (MIFFest) and Malaysia Global Golden Awards (MGGA) aim to showcase curated films from all over the world, and to recognize a collection of works selected by a panel of judges who are veterans of the film industry. In an interview with New Straits Times, Goh said that "the purpose of both events is to build a communication platform for global filmmakers and to promote the Malaysian film industry, as well as its arts and culture to the world". Through MiFFest and MGGA, Goh also hopes to promote the Malaysian tourism and arts industries. The festival is supported by the National Film Development Corporation (Finas), Tourism Malaysia and several local film associations.
Fast Forward with Joanne Goh
In 2020, 'Fast Forward with Joanne Goh' was published. It was a biography about Goh's twenty-three years of experience in the entertainment industry.
Producer filmography
Achievement
Jury: Sinag Maynila Independent Film Festival 2019 (Main Competition)
Jury: Asian World Film Festival 2022
Honorary Fellow: Lincoln University College
Further reading
Magazine
Citta Bella (Malaysia): Bella Feature | Career Queen 娱乐大姐大·Joanne Goh 吴佩玲
Sisters Magazine (Malaysia): 【人物专访】Joanne Goh:“光与影,我与电影”
Newspaper
South China Morning Post: Entertainment guru Joanne Goh rolls out the red carpet for Malaysian films
The Sun Daily (Malaysia): Appetite for success
Sin Chew Daily (Malaysia): 巾帼豪杰吴佩玲:我要成为不平凡的人
Oriental Daily (Malaysia): 重重挑战重重过 吴佩玲活出真我
Radio
Melody FM (Malaysia): MELODY 探子回报|第五届MIFFest大马国际电影节回归!
References
Malaysian film producers
Living people
1975 births
|
```python
#!/usr/bin/env python
##
# Massimiliano Patacchiola, Plymouth University 2016
#
# In this example I show you how to use a pretrained Deep Neural Network (DNN)
# for head pose estimation. It requires a tensorflow file containing the weights
# of the network, which are loaded at the beginning of the session.
#
# Attention: this example works with greyscale images of dimension 64x64 pixels
# These are all the modules we'll be using later. Make sure you can import them
# before proceeding further.
from __future__ import print_function
import numpy as np
import tensorflow as tf
import cv2
# Create model
def multilayer_model(_X, _input0, _biases_input0, _hidden1, _biases_hidden1, _hidden2, _biases_hidden2, _output3, _biases_output3):
_input0_result = tf.matmul(_X, _input0) + _biases_input0
_hidden1_result = tf.nn.tanh(tf.matmul(_input0_result, _hidden1) + _biases_hidden1)
_hidden2_result = tf.nn.tanh(tf.matmul(_hidden1_result, _hidden2) + _biases_hidden2)
_output3_result = tf.nn.tanh(tf.matmul(_hidden2_result, _output3) + _biases_output3)
return _output3_result
graph = tf.Graph()
with graph.as_default():
print("Starting Graph creation...")
# Variables
image_size = 64
num_hidden_units_1 = 256
num_hidden_units_2 = 256
num_hidden_units_3 = 256
num_labels = 3
#0- the input placeholder
tf_input = tf.placeholder(tf.float32,shape=(batch_size, image_size * image_size))
#1- weights
#tf.truncated_normal(shape, mean=0.0, stddev=1.0)
weights_input0 = tf.Variable(tf.truncated_normal([image_size * image_size, num_hidden_units_1], 0.0, 1.0))
weights_hidden1 = tf.Variable(tf.truncated_normal([num_hidden_units_1, num_hidden_units_2], 0.0, 1.0))
weights_hidden2 = tf.Variable(tf.truncated_normal([num_hidden_units_2, num_hidden_units_3], 0.0, 1.0))
weights_output3 = tf.Variable(tf.truncated_normal([num_hidden_units_3, num_labels], 0.0, 1.0))
#2- biases
biases_input0 = tf.Variable(tf.zeros([num_hidden_units_1]))
biases_hidden1 = tf.Variable(tf.zeros([num_hidden_units_2]))
biases_hidden2 = tf.Variable(tf.zeros([num_hidden_units_3]))
biases_output3 = tf.Variable(tf.zeros([num_labels]))
#3- testing
prediction = multilayer_model(tf_train_dataset,
weights_input0, biases_input0,
weights_hidden1, biases_hidden1,
weights_hidden2, biases_hidden2,
weights_output3, biases_output3)
print("Finished.")
#Print the variables
print("========== ALL TF VARS ======== ")
all_vars = tf.all_variables()
for k in all_vars:
print(k.name)
#Load the checkpoint
ckpt = tf.train.get_checkpoint_state("./dnn_1600i_4h_3o")
#Create the session
_sess = tf.Session()
#Associate the weights stored in the checkpoint file to the
#local tensorflow variables
tf.train.Saver(({"dnn_weights_input0": weights_input0, "dnn_biases_input0": biases_input0,
"dnn_weights_hidden1": weights_hidden1, "dnn_biases_hidden1": biases_hidden1,
"dnn_weights_hidden2": weights_hidden2, "dnn_biases_hidden2": biases_hidden2,
"dnn_weights_output3": weights_output3, "dnn_biases_output3": biases_output3
})).restore(_sess, ckpt.model_checkpoint_path)
#Load the image in greyscale with OpenCV
image = cv2.imread("image.jpg", 0)
h,w = image.shape
#Resize the image if needed and get the predictions from the model
if(h == w and h>64):
image_resized = cv2.resize(image, (64, 64), interpolation = cv2.INTER_AREA)
image_normalised = np.add(image_resized, -127) #normalisation of the input
feed_dict = {tf_input : image_normalised}
predictions = _sess.run([prediction], feed_dict=feed_dict)
elif(h == w and h==64):
image_normalised = np.add(image_resized, -127) #normalisation of the input
feed_dict = {tf_input : image_normalised}
predictions = _sess.run([prediction], feed_dict=feed_dict)
print(predictions)
#Here to see the output in degrees you should
#multiply the first value inside prediction (roll) times 25
#the second value in prediction (pitch) times 45
#and the third value (yaw) times 90
else:
raise ValueError('DnnHeadPoseEstimation: the image given as input is not squared or it is smaller than 64px.')
```
|
Swans Lagoon is a locality in the Shire of Burdekin, Queensland, Australia. In the , Swans Lagoon had no population.
History
The locality was named and bounded on 23 February 2001. It presumably takes its name from the waterhole of the same name.
References
Shire of Burdekin
Localities in Queensland
|
2009–10 National First Division, was the season from August 2009 until February 2010, of South Africa's second tier of professional football. By the end of the season, the Coastal stream champion Vasco da Gama met to play the overall championship final, against the Inland stream champion Black Leopards. Vasco da Gama won the final, and thereby got promoted to Premier Soccer League. The subsequent playoff stage, was contested by the losing finalist, two second ranked teams of the NFD streams, and the second lowest ranked team of PSL. Winner of the playoff stage, and thereby the second promotion to PSL, was the team Mpumalanga Black Aces.
Season structure
The league is made up of 16 teams, split into 2 streams. Each team plays the other 7 teams in their stream 3 times, for a total of 21 games. Teams receive 3 points for a win, 1 for draw, and 0 for a loss. At the end of the season, the top ranked team from each stream play in a two-legged final, the winner of which is crowned National First Division Champion, and gains automatic promotion to the Premier Soccer League for the next season. The loser of the final, along with the teams which came second in their streams, and the 15th placed PSL team, go into the PSL promotion play-offs. The two teams finishing in last place in their streams are automatically relegated to the Vodacom League. They are replaced by the finalists of the Vodacom League championship game.
Clubs
League standings
Coastal Stream
Inland Stream
Post season
NFD Final
Vasco da Gama and Black Leopards played a two legged tie to determine the 2009–10 NFD champion, and automatic promotion to the PSL. Vasco da Gama won the tie to become NFD champions, and were promoted to the PSL for the 2010–11 season.
Promotion playoffs
Black Leopards (losing finalist), Nathi Lions (2nd in coastal stream), African Warriors (2nd in inland stream), and Mpumalanga Black Aces (15th in PSL), all entered into the promotion playoffs. This playoff competition was played as a cup with two legged matches. The two semifinals were played simultaneously at 17 and 24 March, and the two legged final took place at 3 and 8 April. The two teams to qualify for the final were Black Leopards and Mpumalanga Black Aces, and after ordinary time of the two matches, the aggregate score ended at 3–3, and thus a penalty shoot out. When the first 5 ordinary shots had been completed, there was a winning score of 5–3 to Mpumalanga Black Aces, who thereby had managed to retain their PSL status.
Semifinals:
Promotion Play Off Final:
References
External links
PSL.co.za
National First Division seasons
South
2009–10 in South African soccer leagues
|
```html
---
layout: collection-browser
title: Documentation
subtitle: Learn how to integrate Terragrunt with OpenTofu/Terraform.
excerpt: Learn how to integrate Terragrunt with OpenTofu/Terraform.
permalink: /docs/
slug: docs
nav_title: Documentation
---
{% include collection_browser/browser.html collection=site.docs collection_name='docs' %}
```
|
```html+erb
<% if path.present? %>
<%= render :link %>
<% else %>
<%= render :button %>
<% end %>
```
|
```smalltalk
using System.Threading.Tasks;
using CSharpFunctionalExtensions.ValueTasks;
using Xunit;
namespace CSharpFunctionalExtensions.Tests.ResultTests.Extensions
{
public class FinallyTests_ValueTask_Left : FinallyTestsBase
{
[Theory]
[InlineData(true)]
[InlineData(false)]
public async Task Finally_ValueTask_Left_result_returns_K(bool isSuccess)
{
Result result = Result.SuccessIf(isSuccess, ErrorMessage);
K output = await result.AsValueTask().Finally(Func_Result);
AssertCalled(result, output);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public async Task Finally_ValueTask_Left_result_T_returns_K(bool isSuccess)
{
Result<T> result = Result.SuccessIf(isSuccess, T.Value, ErrorMessage);
K output = await result.AsValueTask().Finally(Func_Result_T);
AssertCalled(result, output);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public async Task Finally_ValueTask_Left_result_T_E_returns_K(bool isSuccess)
{
Result<T, E> result = Result.SuccessIf(isSuccess, T.Value, E.Value);
K output = await result.AsValueTask().Finally(Func_Result_T_E);
AssertCalled(result, output);
}
[Fact]
public async Task your_sha256_hashK()
{
UnitResult<E> result = UnitResult.Success<E>();
K output = await result.AsValueTask().Finally(Func_UnitResult_E);
AssertCalled(result, output);
}
[Fact]
public async Task your_sha256_hashK() {
UnitResult<E> result = UnitResult.Failure(E.Value);
K output = await result.AsValueTask().Finally(Func_UnitResult_E);
AssertCalled(result, output);
}
}
}
```
|
Sarsilmaz Firearms Corp. (often referred to as 'Sars' for short) is a privately owned small arms manufacturer based in Düzce, Turkey. The company was founded in 1880 in the Ottoman Empire, and is the largest small arms manufacturer in Turkey.
Sarsilmaz is the official pistol supplier and producer of many of the small arms for the Turkish National Police and the Turkish Armed Forces, and exports firearms to 78 countries. In addition to their small arms manufacturing, Sarsilmaz entered the aviation components industry under the name TR Mekatronik in 2013, and has become one of the largest subcontractors in the sector.
Sarsilmaz firearms were formerly imported into the United States by E.A.A. In 2018 Sarsilmaz founded SAR USA to be the exclusive importer and distributor for Sarsilmaz firearms into the United States.
Products
Handguns
Semi Automatic
B6
B6C
CM9
CM9 Gen 2
ST9
ST9-S/SS
SAR9
ST10
K11
K10C
P8L
P8S
K2-45
K2C
K12
K12 Sport/X
Kılınç 2000
AR-24
AR-24K
Revolvers
SR-38
Hunting Rifles and Shotguns
Semi-Automatic
Magic
Magic Slug
SA-W 700 series
SA-X 700 series
Franchi
M204 series
M206 W
M212
Over and Under Shotguns
SP-WSS 512 Noble
SP-W 512 Chic
SP-W 512 Bella
SP-WS 512
SP-XS 512
Trap Shooting
SP-512 Trap
SP-512 Double Trap
SP-512 Skeet
Submachine Guns
SAR 109T - adopted by Turkish Army in 2014.
SAR 109C
TE 54
Infantry Rifles
SAR 223P - Turkish produced AR-15/M16 clone
SAR 223T
SAR 223C
SAR 308
SAR 56 - Designed for Police Special Operation Department
Machine Guns
SAR-240 PMT
SAR-127 PMT
References
External links
Companies established in 1880
1880 establishments in the Ottoman Empire
Firearm manufacturers of Turkey
|
The history of Oxford in England dates back to its original settlement in the Saxon period. Originally of strategic significance due to its controlling location on the upper reaches of the River Thames at its junction with the River Cherwell. The town grew in national importance during the Norman period. The University of Oxford was established in the 12th-century and would eventually dominate the activity within the town, this also resulted in several town and gown conflicts. The city was besieged during The Anarchy in 1142 and Oxford Castle was attacked during the Barons War in the early 13th century. Oxford was greatly affected during the English Reformation, brought on by Henry VIII in his dissolution of the monasteries. The town also played an important role in the English Civil War, where it experienced another siege when it housed the court of Charles I.
Later in the 19th and 20th century, the town grew and underwent an industrial boom where major printing and car-manufacturing industries began establishing in the city. These industries later declined in the 1970s and 1980s, leaving behind a city that is now well known for its education and tourist industry.
Medieval period
Oxford was first settled by the Anglo-Saxons and was initially known in Old English as Oxnaford and in Old Norse as Öxnafurða. The name comes from "oxen's ford", which literally meant oxen's shallow river crossing. Around 900, an important north-south route for cattle connecting the south of England to the Midlands needed to cross the River Thames. At Oxford, the Thames splits into many channels, offering a relatively shallow and hence crossable location for people, goods and animals. Oxford thus became a heavily trafficked crossing point and the early Anglo-Saxon settlement developed around the location. There is still speculation about the precise location of the ford that gave Oxford its name, though any approach to Oxford involved the use of several fords, and thus there were likely multiple fords in use throughout the history of the crossing. Most archeological evidence generally points to the south-west of Oxford where there are low elevations and branching streams that offer shallow crossings.
The earliest notice of the City of Oxford was mentioned in AD 912 in the Anglo-Saxon Chronicle, where it states that Edward, son of Alfred the Great "came into possession of "London and Oxford and all regions which owed obedience to these cities".In the 10th century, Oxford became an important military frontier town between the kingdoms of Mercia and Wessex and was raided by Danes. The town was constructed on the northern bank of the river within Mercia, directly opposite the southern side within the territory of Wessex. In 1002, many Danes were killed in Oxford during the St. Brice's Day massacre ordered by Æthelred the Unready. The skeletons of more than 30 suspected victims were unearthed in 2008 during the course of building work at St John's College. The ‘massacre’ was a contributing factor to King Sweyn I of Denmark’s invasion of England in 1003 and the sacking of Oxford by the Danes in 1004.
Oxford was heavily damaged during the Norman Invasion in 1066. Following the conquest, the town was assigned to a governor, Robert D'Oyly, who ordered the construction of Oxford Castle to confirm Norman authority over the area. Robert D'Oyly also ordered the construction of a stone causeway, known as Grandpont for traffic, including Oxen and the carts that they drew, to cross over the flood plains. D'Oyly set up a monastic community in the castle consisting of a chapel and living quarters for monks (St George in the Castle). The community never grew large but it earned its place in history as one of Britain's oldest places of formal education. It was there that in 1139 Geoffrey of Monmouth wrote his History of the Kings of Britain, a compilation of Arthurian legends.
The earliest walls surrounding Oxford town were made of turf bank with a timber palisade. This was then replaced by stone and a ditch was made outside the walls, at least on the north side. The four main gates into Oxford had existed by the Medieval period; the Saxon tower, which originally served as the north gate, remains intact and eventually became incorporated into the structure of St. Michael's church.
During the period of Middle English, Oxford's pronunciation evolved to become Oxenford, as written in "Clerkes Tale of Oxenford" in Chaucer's The Canterbury Tales. Eventually, Modern English saw Oxenford elided to become Oxford, as it is known today.
Additionally, there is evidence of Jews living in the city as early as 1141, and during the 12th century the Jewish community is estimated to have numbered about 80–100. The city was besieged during The Anarchy in 1142. In 1191, a city charter translated from Latin wrote:
Oxford's prestige was enhanced by its charter granted by King Henry II, granting its citizens the same privileges and exemptions as those enjoyed by the capital of the kingdom; and various important religious houses were founded in or near the city. Oxford's status as a liberty obtained from this period until the 19th century. A grandson of King John established Rewley Abbey for the Cistercian Order; and friars of various orders (Dominicans, Franciscans, Carmelites, Augustinians and Trinitarians) all had houses of varying importance at Oxford. Parliaments were often held in the city during the 13th century. The Provisions of Oxford were instigated by a group of barons led by Simon de Montfort; these documents are often regarded as England's first written constitution. Richard I (reigned 1189–1199) and King John (reigned 1199–1216) the sons of Henry II, were both born at Beaumont Palace in Oxford, on 8 September 1157 and 24 December 1166 respectively. A plaque in Beaumont Street commemorates these events.
University of Oxford
The University of Oxford is first mentioned in 12th-century records. Evidence points to magistri teaching here around 1120. Scholars here provided monarchs with a pool of talented government employees, and benefices from the endowments of colleges provided royal civil servants at no cost to the crown. Of the hundreds of aularian houses that sprang up across the city, only St Edmund Hall () remains. What put an end to the halls was the emergence of colleges. Oxford's earliest colleges were University College (1249), Balliol (1263) and Merton (1264). These colleges were established at a time when Europeans were starting to translate the writings of Greek philosophers. These writings challenged European ideology, inspiring scientific discoveries and advancements in the arts, as society began to see itself in a new way. These colleges at Oxford were supported by the Church in the hope of reconciling Greek philosophy and Christian theology.
As a response to the killing of two students in 1209 by the local townspeople, a number of scholars left the town (some leaving to Cambridge to form a sister university). To prevent further troubles, the Papal Legate drew up the Oxford Ordinance in 1214 to grant special rights to scholars which placed them in a privileged position beyond the legal reach of the townspeople. The relationship between "town and gown" has often been uneasy – as many as 93 students and townspeople were killed in the St Scholastica Day Riot of 1355.
Attracted to the intellectual life of the University town, a group of friars (including Agnellus of Pisa) arrived in the early 13th century; the Greyfriars resided on the south part of the medieval town wall while the Blackfriars south of what is now Blue Boar Lane and then to a spot west of St Aldate's. It was here that several notable friars would emerge, such as Roger Bacon, Duns Scotus and William of Ockham. As the town declined economically in the later Middle Ages, the University gained greater power over the town at the expense of the urban community. The University also expanded its landholings and became a powerful employer and consumer of goods and services.
Tudor period
Christ Church Cathedral, Oxford is unique in combining a college chapel and a cathedral in one foundation. Originally St Frideswide's Priory, the building was extended and incorporated into the structure of the Cardinal's College shortly before its refounding as Christ Church in 1546, since when it has functioned as the cathedral of the Diocese of Oxford.
The sweating sickness epidemic in 1517 was particularly devastating to Oxford and Cambridge where it killed half of both cities' populations, including many students and dons.
Oxford was not spared the turmoil of the Reformation, officials of the monarch threw out books relating to Roman Catholicism from Duke Humfrey's Library. The Oxford Martyrs were tried for heresy in 1555 and subsequently burnt at the stake, on what is now Broad Street, for their religious beliefs and teachings. The three martyrs were the bishops Hugh Latimer and Nicholas Ridley, and the archbishop Thomas Cranmer. The Martyrs' Memorial stands nearby, round the corner to the north on St Giles'.
Early modern period
During the English Civil War, Oxford housed the court of Charles I in 1642, after the king was expelled from London. In 1646, during the Siege of Oxford, the town eventually surrendered to Parliamentarian forces commanded by General Fairfax, and occupied by Colonel Richard Ingoldsby. In the final period of the English Civil War in 1652, as news of Charles II approaching the city, the Parliamentarians proceeded to pull down defenses in the Oxford Castle where they were garrisoned and retreated to New College, this resulted in great damage to the college in the process. The city walls at this time was in very bad condition, the moat was rented as a fishpond, while the towers used as a space of residence. Therefore, a new set of ramparts had to be built to defend the town against any coming siege.
It later housed the court of Charles II during the Great Plague of London in 1665–1666. Although reluctant to do so, he was forced to evacuate when the plague got too close. The city suffered two serious fires in 1644 and 1671. The town underwent a radical makeover of its buildings during this period, with the most notable being Tom Tower in Christ Church, the Sheldonian Theatre and the Botanic Gardens.
The mid-to-late 18th century saw other great new landmarks added to the city such as the Radcliffe Camera and the Radcliffe Observatory. While in 1785, a new prison complex was built on the site of the old dilapidated Oxford Castle after it was judged to be in a poor state by John Howard, as the castle had been used as the local prison after the civil war.
Late modern period
In 1790, the Oxford Canal connected the city with Coventry. The Duke's Cut was completed by the Duke of Marlborough in 1789 to link the new canal with the River Thames; and, in 1796, the Oxford Canal company built its own link to the Thames, at Isis Lock. In 1844, the Great Western Railway linked Oxford with London via Didcot and Reading, and other rail routes soon followed. In the 19th century, the controversy surrounding the Oxford Movement in the Church of England drew attention to the city as a focus of theological thought. A permanent military presence was established in the city with the completion of Cowley Barracks in 1876.
Local government in Oxford was reformed by the Municipal Corporations Act 1835, and the boundaries of the borough were extended to include a small area east of the River Cherwell. The boundaries were further extended in 1889 to add the areas of Grandpont and New Hinksey, south of the Thames, which were transferred from Berkshire to Oxfordshire. At the same time Summertown and the western part of Cowley were also added to the borough. In 1890 Oxford became a county borough. Oxford Town Hall was built by Henry T. Hare; the foundation stone was laid on 6 July 1893 and opened by the future King Edward VII on 12 May 1897. The site has been the seat of local government since the Guild Hall of 1292 and though Oxford is a city and a Lord Mayoralty, the building is still called by its traditional name of "Town Hall".
20th and 21st centuries
During the First World War, the population of Oxford changed. The number of University members was significantly reduced as students, fellows and staff enlisted. Some of their places in college accommodation were taken by soldiers in training. Another reminder of the ongoing war was found in the influx of wounded and disabled soldiers, who were treated in new hospitals housed in buildings such as the university's Examination School, the town hall and Somerville College. During the Second World War, Oxford was largely ignored by the German air raids during the Blitz, primarily as Hitler had plans to make Oxford the new capital city. Also perhaps due to the lack of heavy industry such as steelworks or shipbuilding that would have made it a target, although it was still affected by the rationing and influx of refugees fleeing London and other cities. The university's colleges served as temporary military barracks and training areas for soldiers before deployment.By the early 20th century, there was rapid industrial and population growth, with the printing and publishing industries becoming well established by the 1920s. In 1929 the boundaries of the city were extended to include the suburbs of Headington, Cowley and Iffley to the east, and Wolvercote to the north. Also during the 1920s, the economy and society of Oxford underwent a huge transformation as William Morris established Morris Motors Limited to mass-produce cars in Cowley, on the south-eastern edge of the city. By the early 1970s over 20,000 people worked in Cowley at the huge Morris Motors and Pressed Steel Fisher plants. Oxford was now a city of two halves: the university city to the west of Magdalen Bridge and the car town to the east. This led to the witticism that "Oxford is the left bank of Cowley".
On 6 May 1954, Roger Bannister, a 25-year-old medical student, ran the first authenticated sub-four-minute mile at the Iffley Road running track in Oxford. Although he had previously studied at Oxford University, Bannister was studying at St Mary's Hospital Medical School in London at the time. He later returned to Oxford University and became Master of Pembroke College. Oxford's second university, Oxford Brookes University, formerly the Oxford School of Art, then Oxford Polytechnic, based at Headington Hill, was given its charter in 1991 and for ten years has been voted the best new university in the UK. It was named to honour the school's founding principal, John Henry Brookes.
Cowley suffered major job losses in the 1980s and 1990s during the decline of British Leyland, but is now producing the successful Mini for BMW on a smaller site. Much of the original car factory at Cowley was demolished in the 1990s, and is now the site of the Oxford Business Park. The influx of migrant labour to the car plants and hospitals, recent immigration from South Asia, and a large student population, have given Oxford a notably cosmopolitan character, especially in the Headington and Cowley Road areas with their many bars, cafes, restaurants, clubs, Asian shops and fast food outlets and the annual Cowley Road Carnival. Oxford is one of the most diverse small cities in Britain: the most recent population estimates for 2011 showed that 22% of the population were from black or minority ethnic groups, compared to 13% in England.
See also
St. Brice's Day massacre (1003)
Siege of Oxford (1142)
Oxford Parliament (1258)
St Scholastica Day riot (1355)
Oxford Martyrs (1555)
Oxford Parliament (1644)
Oxford Parliament (1681)
Timeline of Oxford
References
Bibliography
Published in the 19th century
Published in the 20th century
Published in the 21st century
External links
A Brief History of Oxford
The Oxford Guide: Category History
|
```smalltalk
namespace Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal;
/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public class NpgsqlSequenceValueGeneratorState : HiLoValueGeneratorState
{
/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public NpgsqlSequenceValueGeneratorState(ISequence sequence)
: base(Check.NotNull(sequence, nameof(sequence)).IncrementBy)
{
Sequence = sequence;
}
/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public virtual ISequence Sequence { get; }
}
```
|
Logrow is an unincorporated community in Brooke County, West Virginia, United States.
Logrow was named for a grove of locust trees near the original town site, according to local history.
References
Unincorporated communities in West Virginia
Unincorporated communities in Brooke County, West Virginia
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pow = require( '@stdlib/math/base/special/pow' );
var Float64Array = require( '@stdlib/array/float64' );
var dcopy = require( '@stdlib/blas/base/dcopy' );
var tryRequire = require( '@stdlib/utils/try-require' );
var pkg = require( './../package.json' ).name;
// VARIABLES //
var dsorthp = tryRequire( resolve( __dirname, './../lib/dsorthp.native.js' ) );
var opts = {
'skip': ( dsorthp instanceof Error )
};
// FUNCTIONS //
/**
* Create a benchmark function.
*
* @private
* @param {PositiveInteger} iter - number of iterations
* @param {PositiveInteger} len - array length
* @returns {Function} benchmark function
*/
function createBenchmark( iter, len ) {
var tmp;
var x;
var i;
var j;
x = [];
for ( i = 0; i < iter; i++ ) {
tmp = new Float64Array( len );
for ( j = 0; j < len; j++ ) {
tmp[ j ] = randu() + j;
}
x.push( tmp );
}
return benchmark;
function benchmark( b ) {
var xc;
var y;
var i;
xc = x.slice();
for ( i = 0; i < iter; i++ ) {
xc[ i ] = dcopy( len, x[ i ], 1, new Float64Array( len ), 1 );
}
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = dsorthp( len, 1, xc[ i ], 1 );
if ( isnan( y[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( y[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
b.end();
}
}
// MAIN //
function main() {
var bopts;
var len;
var min;
var max;
var f;
var i;
min = 1; // 10^min
max = 5; // 10^max
for ( i = min; i <= max; i++ ) {
len = pow( 10, i );
bopts = {
'skip': opts.skip,
'iterations': 1e7 / len
};
f = createBenchmark( bopts.iterations, len );
bench( pkg+'::native,sorted,random:len='+len, bopts, f );
}
}
main();
```
|
```c++
/*
*
* 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.
*/
#include "PyTensorNet.h"
#include "PyDepthNet.h"
#include "depthNet.h"
#include "logging.h"
#include "../../utils/python/bindings/PyCUDA.h"
typedef struct {
PyTensorNet_Object base;
depthNet* net; // object instance
PyObject* depthField; // depth field cudaImage
} PyDepthNet_Object;
#define DOC_DEPTHNET "Mono depth estimation DNN - performs depth mapping on monocular images\n\n" \
"Examples (jetson-inference/python/examples)\n" \
" depthnet.py\n\n" \
"__init__(...)\n" \
" Loads a mono depth estimation model.\n\n" \
" Parameters:\n" \
" network (string) -- name of a built-in network to use,\n" \
" see below for available options.\n\n" \
" argv (strings) -- command line arguments passed to depthNet,\n" \
" see below for available options.\n\n" \
DEPTHNET_USAGE_STRING
// Init
static int PyDepthNet_Init( PyDepthNet_Object* self, PyObject *args, PyObject *kwds )
{
LogDebug(LOG_PY_INFERENCE "PyDepthNet_Init()\n");
// parse arguments
PyObject* argList = NULL;
const char* network = "fcn-mobilenet";
static char* kwlist[] = {"network", "argv", NULL};
if( !PyArg_ParseTupleAndKeywords(args, kwds, "|sO", kwlist, &network, &argList))
return -1;
// determine whether to use argv or built-in network
if( argList != NULL && PyList_Check(argList) && PyList_Size(argList) > 0 )
{
LogDebug(LOG_PY_INFERENCE "depthNet loading network using argv command line params\n");
// parse the python list into char**
const size_t argc = PyList_Size(argList);
if( argc == 0 )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet.__init()__ argv list was empty");
return -1;
}
char** argv = (char**)malloc(sizeof(char*) * argc);
if( !argv )
{
PyErr_SetString(PyExc_MemoryError, LOG_PY_INFERENCE "depthNet.__init()__ failed to malloc memory for argv list");
return -1;
}
for( size_t n=0; n < argc; n++ )
{
PyObject* item = PyList_GetItem(argList, n);
if( !PyArg_Parse(item, "s", &argv[n]) )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet.__init()__ failed to parse argv list");
return -1;
}
LogDebug(LOG_PY_INFERENCE "depthNet.__init__() argv[%zu] = '%s'\n", n, argv[n]);
}
// load the network using (argc, argv)
Py_BEGIN_ALLOW_THREADS
self->net = depthNet::Create(argc, argv);
Py_END_ALLOW_THREADS
// free the arguments array
free(argv);
}
else
{
LogDebug(LOG_PY_INFERENCE "depthNet loading build-in network '%s'\n", network);
// load the built-in network
Py_BEGIN_ALLOW_THREADS
self->net = depthNet::Create(network, DEFAULT_MAX_BATCH_SIZE);
Py_END_ALLOW_THREADS
}
// confirm the network loaded
if( !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet failed to load network");
return -1;
}
// create an image capsule for the depth field
self->depthField = PyCUDA_RegisterImage(self->net->GetDepthField(), self->net->GetDepthFieldWidth(), self->net->GetDepthFieldHeight(),
IMAGE_GRAY32F, 0, true, false);
self->base.net = self->net;
return 0;
}
// Deallocate
static void PyDepthNet_Dealloc( PyDepthNet_Object* self )
{
LogDebug(LOG_PY_INFERENCE "PyDepthNet_Dealloc()\n");
// free the network
SAFE_DELETE(self->net);
// free the container
Py_TYPE(self)->tp_free((PyObject*)self);
}
#define DOC_PROCESS "Compute the depth field from a monocular RGB/RGBA image.\n" \
"The results can also be visualized if output image is provided.\n\n" \
"Parameters:\n" \
" input (capsule) -- CUDA memory capsule (input image)\n" \
" output (capsule) -- CUDA memory capsule (optional output image)\n" \
" colormap (string) -- colormap name (optional)\n" \
" filter (string) -- filtering used in upscaling, 'point' or 'linear' (default is 'linear')\n" \
"Returns: (none)"
// Process
static PyObject* PyDepthNet_Process( PyDepthNet_Object* self, PyObject* args, PyObject *kwds )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
// parse arguments
PyObject* input_capsule = NULL;
PyObject* output_capsule = NULL;
const char* colormap_str = "viridis";
const char* filter_str = "linear";
static char* kwlist[] = {"input", "output", "colormap", "filter", NULL};
if( !PyArg_ParseTupleAndKeywords(args, kwds, "O|Oss", kwlist, &input_capsule, &output_capsule, &colormap_str, &filter_str))
return NULL;
// get pointers to image data
PyCudaImage* input_img = PyCUDA_GetImage(input_capsule);
if( !input_img )
{
PyErr_SetString(PyExc_TypeError, LOG_PY_INFERENCE "failed to get CUDA image from input argument");
return NULL;
}
if( output_capsule != NULL )
{
const cudaColormapType colormap = cudaColormapFromStr(colormap_str);
const cudaFilterMode filterMode = cudaFilterModeFromStr(filter_str);
// get pointers to image data
PyCudaImage* output_img = PyCUDA_GetImage(output_capsule);
if( !output_img )
{
PyErr_SetString(PyExc_TypeError, LOG_PY_INFERENCE "failed to get CUDA image from output argument");
return NULL;
}
bool result = false;
Py_BEGIN_ALLOW_THREADS
result = self->net->Process(input_img->base.ptr, input_img->width, input_img->height, input_img->format,
output_img->base.ptr, output_img->width, output_img->height, output_img->format,
colormap, filterMode);
Py_END_ALLOW_THREADS
if( !result )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet.Process() encountered an error processing the image");
return NULL;
}
}
else
{
bool result = false;
Py_BEGIN_ALLOW_THREADS
result = self->net->Process(input_img->base.ptr, input_img->width, input_img->height, input_img->format);
Py_END_ALLOW_THREADS
if( !result )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet.Process() encountered an error processing the image");
return NULL;
}
}
Py_RETURN_NONE;
}
#define DOC_VISUALIZE "Visualize the raw depth field into a colorized RGB/RGBA depth map.\n\n" \
"Parameters:\n" \
" output (capsule) -- output CUDA memory capsule\n" \
" colormap (string) -- colormap name (optional)\n" \
" filter (string) -- filtering used in upscaling, 'point' or 'linear' (default is 'linear')\n" \
"Returns: (none)"
// Visualize
static PyObject* PyDepthNet_Visualize( PyDepthNet_Object* self, PyObject* args, PyObject *kwds )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
// parse arguments
PyObject* output_capsule = NULL;
const char* colormap_str = "viridis";
const char* filter_str = "linear";
static char* kwlist[] = {"output", "colormap", "filter", NULL};
if( !PyArg_ParseTupleAndKeywords(args, kwds, "O|ss", kwlist, &output_capsule, &colormap_str, &filter_str))
return NULL;
// parse flags
const cudaColormapType colormap = cudaColormapFromStr(colormap_str);
const cudaFilterMode filterMode = cudaFilterModeFromStr(filter_str);
// get pointers to image data
PyCudaImage* output_img = PyCUDA_GetImage(output_capsule);
if( !output_img )
{
PyErr_SetString(PyExc_TypeError, LOG_PY_INFERENCE "failed to get CUDA image from output argument");
return NULL;
}
bool result = false;
Py_BEGIN_ALLOW_THREADS
result = self->net->Visualize(output_img->base.ptr, output_img->width, output_img->height, output_img->format, colormap, filterMode);
Py_END_ALLOW_THREADS
if( !result )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet.Visualize() encountered an error processing the image");
return NULL;
}
Py_RETURN_NONE;
}
#define DOC_GET_NETWORK_NAME "Return the name of the built-in network used by the model.\n\n" \
"Parameters: (none)\n\n" \
"Returns:\n" \
" (string) -- name of the network (e.g. 'MonoDepth-Mobilenet', 'MonoDepth-ResNet18')\n" \
" or 'custom' if using a custom-loaded model"
// GetNetworkName
static PyObject* PyDepthNet_GetNetworkName( PyDepthNet_Object* self )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
return Py_BuildValue("s", self->net->GetNetworkName());
}
#define DOC_GET_DEPTH_FIELD "Return a cudaImage object of the raw depth field.\n" \
"This is a single-channel float32 image that contains the depth estimates.\n\n" \
"Parameters: (none)\n\n" \
"Returns:\n" \
" (cudaImage) -- single-channel float32 depth field"
// GetDepthField
static PyObject* PyDepthNet_GetDepthField( PyDepthNet_Object* self )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
Py_INCREF(self->depthField);
return self->depthField;
}
#define DOC_GET_DEPTH_FIELD_WIDTH "Return the width of the depth field, in pixels.\n\n" \
"Parameters: (none)\n\n" \
"Returns:\n" \
" (int) -- width of the depth field, in pixels" \
// GetDepthFieldWidth
static PyObject* PyDepthNet_GetDepthFieldWidth( PyDepthNet_Object* self )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
return PYLONG_FROM_UNSIGNED_LONG(self->net->GetDepthFieldWidth());
}
#define DOC_GET_DEPTH_FIELD_HEIGHT "Return the height of the depth field, in pixels.\n\n" \
"Parameters: (none)\n\n" \
"Returns:\n" \
" (int) -- height of the depth field, in pixels" \
// GetDepthFieldHeight
static PyObject* PyDepthNet_GetDepthFieldHeight( PyDepthNet_Object* self )
{
if( !self || !self->net )
{
PyErr_SetString(PyExc_Exception, LOG_PY_INFERENCE "depthNet invalid object instance");
return NULL;
}
return PYLONG_FROM_UNSIGNED_LONG(self->net->GetDepthFieldHeight());
}
#define DOC_USAGE_STRING "Return the command line parameters accepted by __init__()\n\n" \
"Parameters: (none)\n\n" \
"Returns:\n" \
" (string) -- usage string documenting command-line options\n"
// Usage
static PyObject* PyDepthNet_Usage( PyDepthNet_Object* self )
{
return Py_BuildValue("s", depthNet::Usage());
}
//your_sha256_hash---------------
static PyTypeObject PyDepthNet_Type =
{
PyVarObject_HEAD_INIT(NULL, 0)
};
static PyMethodDef PyDepthNet_Methods[] =
{
{ "Process", (PyCFunction)PyDepthNet_Process, METH_VARARGS|METH_KEYWORDS, DOC_PROCESS},
{ "Visualize", (PyCFunction)PyDepthNet_Visualize, METH_VARARGS|METH_KEYWORDS, DOC_VISUALIZE},
{ "GetNetworkName", (PyCFunction)PyDepthNet_GetNetworkName, METH_NOARGS, DOC_GET_NETWORK_NAME},
{ "GetDepthField", (PyCFunction)PyDepthNet_GetDepthField, METH_NOARGS, DOC_GET_DEPTH_FIELD},
{ "GetDepthFieldWidth", (PyCFunction)PyDepthNet_GetDepthFieldWidth, METH_NOARGS, DOC_GET_DEPTH_FIELD_WIDTH},
{ "GetDepthFieldHeight", (PyCFunction)PyDepthNet_GetDepthFieldHeight, METH_NOARGS, DOC_GET_DEPTH_FIELD_HEIGHT},
{ "Usage", (PyCFunction)PyDepthNet_Usage, METH_NOARGS|METH_STATIC, DOC_USAGE_STRING},
{NULL} /* Sentinel */
};
// Register type
bool PyDepthNet_Register( PyObject* module )
{
if( !module )
return false;
PyDepthNet_Type.tp_name = PY_INFERENCE_MODULE_NAME ".depthNet";
PyDepthNet_Type.tp_basicsize = sizeof(PyDepthNet_Object);
PyDepthNet_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
PyDepthNet_Type.tp_base = PyTensorNet_Type();
PyDepthNet_Type.tp_methods = PyDepthNet_Methods;
PyDepthNet_Type.tp_new = NULL; /*PyDepthNet_New;*/
PyDepthNet_Type.tp_init = (initproc)PyDepthNet_Init;
PyDepthNet_Type.tp_dealloc = (destructor)PyDepthNet_Dealloc;
PyDepthNet_Type.tp_doc = DOC_DEPTHNET;
if( PyType_Ready(&PyDepthNet_Type) < 0 )
{
LogError(LOG_PY_INFERENCE "depthNet PyType_Ready() failed\n");
return false;
}
Py_INCREF(&PyDepthNet_Type);
if( PyModule_AddObject(module, "depthNet", (PyObject*)&PyDepthNet_Type) < 0 )
{
LogError(LOG_PY_INFERENCE "depthNet PyModule_AddObject('depthNet') failed\n");
return false;
}
return true;
}
```
|
Oyes () is a commune in the Marne department in north-eastern France.
See also
Communes of the Marne department
References
Communes of Marne (department)
|
```html
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8" />
<title>A date range picker for Bootstrap</title>
<link href="path_to_url" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="all" href="../../daterangepicker.css" />
<style type="text/css">
.demo { position: relative; }
.demo i {
position: absolute; bottom: 10px; right: 24px; top: auto; cursor: pointer;
}
</style>
</head>
<body style="margin: 60px 0">
<div class="container">
<h1 style="margin: 0 0 20px 0">Configuration Builder</h1>
<div class="well configurator">
<form>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="parentEl">parentEl</label>
<input type="text" class="form-control" id="parentEl" value="" placeholder="body">
</div>
<div class="form-group">
<label for="startDate">startDate</label>
<input type="text" class="form-control" id="startDate" value="07/01/2015">
</div>
<div class="form-group">
<label for="endDate">endDate</label>
<input type="text" class="form-control" id="endDate" value="07/15/2015">
</div>
<div class="form-group">
<label for="minDate">minDate</label>
<input type="text" class="form-control" id="minDate" value="" placeholder="MM/DD/YYYY">
</div>
<div class="form-group">
<label for="maxDate">maxDate</label>
<input type="text" class="form-control" id="maxDate" value="" placeholder="MM/DD/YYYY">
</div>
</div>
<div class="col-md-4">
<div class="checkbox">
<label>
<input type="checkbox" id="autoApply"> autoApply
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="singleDatePicker"> singleDatePicker
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="showDropdowns"> showDropdowns
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="showWeekNumbers"> showWeekNumbers
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="showISOWeekNumbers"> showISOWeekNumbers
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="timePicker"> timePicker
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="timePicker24Hour"> timePicker24Hour
</label>
</div>
<div class="form-group">
<label for="timePickerIncrement">timePickerIncrement (in minutes)</label>
<input type="text" class="form-control" id="timePickerIncrement" value="1">
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="timePickerSeconds"> timePickerSeconds
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="dateLimit"> dateLimit (with example date range span)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="ranges"> ranges (with example predefined ranges)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="locale"> locale (with example settings)
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="linkedCalendars" checked="checked"> linkedCalendars
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="autoUpdateInput" checked="checked"> autoUpdateInput
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="alwaysShowCalendars"> alwaysShowCalendars
</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="opens">opens</label>
<select id="opens" class="form-control">
<option value="right" selected>right</option>
<option value="left">left</option>
<option value="center">center</option>
</select>
</div>
<div class="form-group">
<label for="drops">drops</label>
<select id="drops" class="form-control">
<option value="down" selected>down</option>
<option value="up">up</option>
</select>
</div>
<div class="form-group">
<label for="buttonClasses">buttonClasses</label>
<input type="text" class="form-control" id="buttonClasses" value="btn btn-sm">
</div>
<div class="form-group">
<label for="applyClass">applyClass</label>
<input type="text" class="form-control" id="applyClass" value="btn-success">
</div>
<div class="form-group">
<label for="cancelClass">cancelClass</label>
<input type="text" class="form-control" id="cancelClass" value="btn-default">
</div>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-md-4 col-md-offset-2 demo">
<h4>Your Date Range Picker</h4>
<input type="text" id="config-demo" class="form-control">
<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
</div>
<div class="col-md-6">
<h4>Configuration</h4>
<div class="well">
<textarea id="config-text" style="height: 300px; width: 100%; padding: 10px"></textarea>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="require.js" data-main="main.js"></script>
</body>
</html>
```
|
```makefile
#!/usr/sbin/dtrace -s
/*
This program is free software; you can redistribute it and/or modify
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, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
Shows basic query execution time, who execute the query, and on what database
*/
#pragma D option quiet
dtrace:::BEGIN
{
printf("%-20s %-20s %-40s %-9s\n", "Who", "Database", "Query", "Time(ms)");
}
mysql*:::query-start
{
self->query = copyinstr(arg0);
self->connid = arg1;
self->db = copyinstr(arg2);
self->who = strjoin(copyinstr(arg3),strjoin("@",copyinstr(arg4)));
self->querystart = timestamp;
}
mysql*:::query-done
{
printf("%-20s %-20s %-40s %-9d\n",self->who,self->db,self->query,
(timestamp - self->querystart) / 1000000);
}
```
|
Henrik Munkeby Nørstebø (born 29 July 1986 in Trondheim, Norway) is a Norwegian trombonist.
Biography
Henrik Munkeby Nørstebø - acoustic and amplified trombone.
Born (1986) in Trondheim, Norway, Nørstebø chose the trombone and began playing in the local marching band at the age of seven. Twenty some years later, he is still riding the ups and downs of an instrumental long term relationship, using the trombone's crudeness as a creative challenge and vehicle to unearth its seemingly limitless possibilities. He has done heavy research into both the boisterous and brassy side of the instrument, as well as its counterpoint in microscopic and ‘electronic’ sound possibilities. Through a technical distillation process, he has developed a vast personal sound vocabulary, spanning from pure long tones to noise and the almost inaudible. Seeking a balance between intuitive and precisely constructed material, he has slowly been moving towards a more holistic sound practice, combining the power of brass tubes with an external approach including sound sources like half-clarinet and various noise generators.
Nørstebø started his solo trajectory in 2007, and has since undergone solo tours in Europe, USA and Australia. His first record ("Solo", 2011) contained widely different stream of consciousness improvisations, while his second solo release (“Melting into foreground”, 2015) was more of a compositional work, focusing on the inner energy of sound and the tension between empty and filled spaces. In his current set up, Nørstebø is utilizing heavy close amplification alongside acoustic elements, producing a multi-faceted body of sound. He is currently working on his third solo release.
His working projects include: the amplified voice and trombone duo Beam Splitter with Audrey Chen, a duo with Austrian sound artist Daniel Lercher, the longstanding all-in improvising unit Lana trio, a duo with experimental turntablist JD Zazie and the acoustic trios Whirl (with Adrian Myhr and Tobias Delius) and Nørstebø/Strid/de Heney (with Nina de Heney and Raymond Strid).
He has toured actively since 2010, and played at clubs and festivals all over Europe, as well as in Russia, Japan, Taiwan, New Zealand, Australia, USA, Brazil and Argentina. Festival performances include: Huddersfield contemporary music festival (UK), A l'arme! festival (Berlin/DE), Gogolfest (Kiev/UA), Fete quaqua (London/UK), Nattjazz (Bergen/NO), Jazzfest Berlin (DE), Kongsberg jazzfestival (NO), Festival Akouphene (Geneva/CH), Angelica festival (Bologna/IT), V:NM festival (Graz/AT), Joyful noise (Biel/CH), Gothenburg art sounds (SE), SoundOut (Canberra/AU) and Ultima contemporary music festival (Oslo, NO).
Nørstebø is also an experienced ensemble player, having performed live and on recordings stretching from the fairest pop to the strangest noise. He is a founding member of Oslo based new music ensemble "Aksiom", and has released three records with the 12-piece freejazzpop-band "Skadedyr". He has also been seen in groups like Johan Lindvall's "Torg" (Jazzland), Mette Henriette "Ø" (ECM), Trondheim jazz orchestra & Kristoffer Lo, Dan Peter Sundland elevenette and Nate Wooley's "Seven storey mountain V".
Educated in improvised music and jazz from the music academies in Gothenburg (BA) and Oslo (MA), he is based in Norway and Berlin.
”On both pieces, Nørstebø keeps his compositional structures clear through a balanced use of filled and empty space. The silences he allows between passages of sound tend to act as boundaries separating sections into disjunctive events defined by dramatic changes in timbre as well as in organization and dynamics. And despite his deliberate distorting and dismantling of the trombone’s conventional voice, he allows a fundamental warmth to pervade both performances.”
- Avant music news, Daniel Barbiero (USA) />
Discography
Solo album
2011: SOLO (Creative Sources)
2015: Melting Into Foreground (SOFA)
Collaborations
With 'As Deafness Increases'
2013: As Deafness Increases (Va Fongool)
With 'Lana Trio' including Andreas Wildhagen and Kjetil Jerve
2013: Lana trio (Va Fongool)
2014: Live In Japan (Va Fongool)
With 'Skadedyr'
2013: Kongekrabbe (Hubro)
2016: Culturen (Hubro)
With Rasmus Borg
2014: 120112 (Edition Wandelweiser Records)
With Daniel Lercher
2014: TH_X (Chmafu Nocords)
With Mette Henriette's 'Ø'
2015: Mette Henriette (ECM Records)
With 'Torg'
2015: Kost/Elak/Gnäll (Jazzland Recordings)
With the trio 'Whirl' including Adrian Myhr and Tobias Delius
2015: Revolving Rapidly Around An Axis (dEN Records)
With Raymond Strid and Nina de Heney
2015: Oslo Wien (Va Fongool)
References
External links
21st-century Norwegian trombonists
Norwegian jazz trombonists
Male trombonists
ECM Records artists
Musicians from Trondheim
1986 births
Living people
21st-century trombonists
21st-century Norwegian male musicians
Male jazz musicians
|
Linda McKnight is a double bassist particularly known for her teaching and solo performances. She is part of the music faculties at Manhattan School of Music, Columbia University, New York University, Columbia Teachers College, and Montclair State University.
Career
McKnight earned her bachelor of music degree from The Juilliard School under Frederick Zimmermann and pursued additional studies with Stuart Sankey, Joseph Cascelli, Warren Benfield, Henry Portnoi, and Homer Mensch. She is a member of the Colonial Symphony of New Jersey and has appeared in chamber groups in Michigan, Iowa, and Indiana during conventions of the International Society of Bassists. Her summer teaching has included the New Jersey Summer Conference for String Education and Chamber Music (formerly NJ-ASTA Summer Conference), Manhattan School of Music Summer Music Camp, and the Oklahoma Summer Arts Institute.
McKnight has been a featured guest artist at workshops and clinics from Maine to Texas, addressing groups of parents, educators, and students on the contrabass and music education. In 1986 she was honored with the NJ-ASTA (American String Teachers Association) Distinguished Service Award for her seven-year term as NJ-ASTA president from 1979 through 1986. Her writings have appeared in String Tones, Tempo, American String Teacher, and International Society of Bassists magazines, and she is the editor of Paul Ramsier’s Pieces for Friends, published by Boosey & Hawkes. McKnight has recorded for the Swedish record label BIS. She is currently on the board of directors for the International Society of Bassists.
References
American classical double-bassists
Women double-bassists
Columbia University faculty
Manhattan School of Music faculty
New York University faculty
Juilliard School alumni
Living people
Year of birth missing (living people)
American music educators
American women music educators
21st-century double-bassists
21st-century American women musicians
American women academics
|
```scheme
;;; -*- Gerbil -*-
;;; vyzo
;;; string buffered io extension methods
(import :std/sugar
:std/error
(only-in :std/srfi/1 reverse!)
../interface
./inline)
(declare (not safe))
(export defstring-reader-ext defstring-reader-ext* defstring-writer-ext defstring-writer-ext*)
(defsyntax (defstring-reader-ext stx)
(syntax-case stx ()
((_ (method . args) body ...)
(with-syntax ((reader-method (stx-identifier #'method "BufferedStringReader-" #'method))
(unchecked-method (stx-identifier #'method "&BufferedStringReader-" #'method)))
#'(begin
(defstring-reader-ext* (method . args) body ...)
(export reader-method unchecked-method))))))
;; TODO implement with interface method infrastructure
(defsyntax (defstring-reader-ext* stx)
(syntax-case stx ()
((_ (method reader . args) body ...)
(with-syntax ((reader-method (stx-identifier #'method "BufferedStringReader-" #'method))
(unchecked-method (stx-identifier #'method "&BufferedStringReader-" #'method)))
#'(begin
(def (reader-method reader . args)
(using (reader : BufferedStringReader)
body ...))
(def (unchecked-method reader . args)
(using (reader :- BufferedStringReader)
body ...)))))))
(defsyntax (defstring-writer-ext stx)
(syntax-case stx ()
((_ (method . args) body ...)
(with-syntax ((writer-method (stx-identifier #'method "BufferedStringWriter-" #'method))
(unchecked-method (stx-identifier #'method "&BufferedStringWriter-" #'method)))
#'(begin
(defstring-writer-ext* (method . args) body ...)
(export writer-method unchecked-method))))))
;; TODO implement with interface method infrastructure
(defsyntax (defstring-writer-ext* stx)
(syntax-case stx ()
((_ (method writer . args) body ...)
(with-syntax ((writer-method (stx-identifier #'method "BufferedStringWriter-" #'method))
(unchecked-method (stx-identifier #'method "&BufferedStringWriter-" #'method)))
#'(begin
(def (writer-method writer . args)
(using (writer : BufferedStringWriter)
body ...))
(def (unchecked-method writer . args)
(using (writer :- BufferedStringWriter)
body ...)))))))
(defstring-reader-ext (read-line reader (sep #\newline) (include-sep? #f) (max-chars #f))
(let* ((separators
(cond
((pair? sep) sep)
((not sep) [])
(else [sep])))
(read-more?
(if max-chars
(lambda (x) (fx< x max-chars))
(lambda (x) #t)))
(finish
(if include-sep?
(lambda (chars drop) (list->string (reverse! chars)))
(lambda (chars drop) (list->string (reverse! (list-tail chars drop)))))))
(let lp ((x 0) (separating separators) (drop 0) (chars []))
(cond
((and sep (null? separating))
(finish chars drop))
((read-more? x)
(let (next (reader.read-char-inline))
(cond
((eof-object? next)
(finish chars drop))
((and sep (eq? (car separating) next))
(lp (fx+ x 1) (cdr separating) (fx+ drop 1) (cons next chars)))
(else
(lp (fx+ x 1) separators 0 (cons next chars))))))
(else
(raise-io-error strbuf-read-line "too many characters" x))))))
(defstring-reader-ext (read-available reader (start 0) (end #f))
(let* ((available (reader.available))
(available-end (+ start available))
(actual-end (if end (min end available-end) available-end))
(buffer (make-string actual-end #\space)))
(reader.read-string buffer start actual-end 0)
buffer))
(defstring-reader-ext (read-available-into reader buffer (start 0) (end #f))
(let* ((available (reader.available))
(len (string-length buffer))
(count (min available (- (if end (min len end) len) start))))
(reader.read-string buffer start (+ start count) 0)
count))
(defstring-writer-ext (write-line writer input (separator #\newline))
(let (result (writer.write-string input 0 (string-length input)))
(if (pair? separator)
(let lp ((rest separator) (result result))
(match rest
([char . rest]
(writer.write-char-inline char)
(lp rest (fx+ result 1)))
(else result)))
(begin
(writer.write-char-inline separator)
(fx+ result 1)))))
```
|
Man Po Kei is a Hongkonger footballer who plays as a defender. She has been a member of the Hong Kong women's national team.
International career
Man Po Kei capped for Hong Kong at senior level during three AFC Women's Asian Cup qualifications (2008 and 2010) and the 2012 AFC Women's Olympic Qualifying Tournament.
See also
List of Hong Kong women's international footballers
References
External links
Living people
Hong Kong women's footballers
Women's association football defenders
Hong Kong women's international footballers
Year of birth missing (living people)
|
Heather Jenner (real name Heather Lyon; born 1914, died 1991 ) was a matchmaker, who ran a marriage bureau, called "The Marriage Bureau", in Bond Street, Mayfair, London.
The daughter of Cyril Arthur Lyon, an Army general, she married, firstly, in 1942, Michael George Cox, from whom she was divorced in 1955 to marry the writer Stephen Potter. Widowed in 1969, she later married Sir John Hastings James, deputy master and Comptroller of the Royal Mint.
She established the agency in 1939, and kept the business secret from her family and friends, using the name 'Heather Jenner', as such activity was considered scandalous at the time.
Her autobiography, Marriage is My Business, was published in 1954.
She appeared as a castaway on the BBC Radio programme Desert Island Discs on 31 July 1967.
Bibliography
(in French)
References
1914 births
1991 deaths
Place of birth missing
Place of death missing
People from Mayfair
Matchmakers
Women autobiographers
English non-fiction writers
English autobiographers
Businesspeople from London
20th-century English businesspeople
|
Chrysoupoli (, before 1925: Σαπαίοι - Sapaioi or Σαρή Σαμπάν - Sari Saban) is a town and a former municipality in the Kavala regional unit, East Macedonia and Thrace, Greece. Since the 2011 local government reform it is part of the municipality Nestos, of which it is the seat and a municipal unit. The municipal unit has an area of 245.181 km2. The population of the municipal unit of Chrysoupoli in 2011 was 16,004.
It was known as "Sarışaban" during Ottoman rule. It was a kaza centre in the Sanjak of Drama, part of the Salonica Vilayet, before the Balkan Wars.
The Nestos Nature Museum is situated in Chrysoupoli.
International relations
Chrysoupoli is twinned with:
Jagodina, Serbia
Zlatograd, Bulgaria
References
Populated places in Kavala (regional unit)
Nestos (municipality)
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "debug-helper-internal.h"
#include "src/common/ptr-compr-inl.h"
#include "torque-generated/class-debug-readers-tq.h"
namespace i = v8::internal;
namespace v8 {
namespace internal {
namespace debug_helper_internal {
bool IsPointerCompressed(uintptr_t address) {
#if COMPRESS_POINTERS_BOOL
return address < i::kPtrComprHeapReservationSize;
#else
return false;
#endif
}
uintptr_t EnsureDecompressed(uintptr_t address,
uintptr_t any_uncompressed_ptr) {
if (!COMPRESS_POINTERS_BOOL || !IsPointerCompressed(address)) return address;
return i::DecompressTaggedAny(any_uncompressed_ptr,
static_cast<i::Tagged_t>(address));
}
d::PropertyKind GetArrayKind(d::MemoryAccessResult mem_result) {
d::PropertyKind indexed_field_kind{};
switch (mem_result) {
case d::MemoryAccessResult::kOk:
indexed_field_kind = d::PropertyKind::kArrayOfKnownSize;
break;
case d::MemoryAccessResult::kAddressNotValid:
indexed_field_kind =
d::PropertyKind::kArrayOfUnknownSizeDueToInvalidMemory;
break;
default:
indexed_field_kind =
d::PropertyKind::kArrayOfUnknownSizeDueToValidButInaccessibleMemory;
break;
}
return indexed_field_kind;
}
std::vector<std::unique_ptr<ObjectProperty>> TqObject::GetProperties(
d::MemoryAccessor accessor) const {
return std::vector<std::unique_ptr<ObjectProperty>>();
}
const char* TqObject::GetName() const { return "v8::internal::Object"; }
void TqObject::Visit(TqObjectVisitor* visitor) const {
visitor->VisitObject(this);
}
bool TqObject::IsSuperclassOf(const TqObject* other) const {
return GetName() != other->GetName();
}
} // namespace debug_helper_internal
} // namespace internal
} // namespace v8
```
|
```xml
import * as angular from 'angular';
import { IGraphHelper } from './GraphHelper';
import { ISiteCollections } from './../models/ISiteCollections';
import { IListCollection } from './../models/IListCollection';
import { IAnnouncements } from './../models/IAnnouncements';
import { IGenericCreateItem } from './../models/IGenericCreateItem';
export default class HomeController {
public static $inject: string[] = ['$rootScope', '$scope', '$http', 'GraphHelper', '$log'];
public hello: any = require('hellojs');
// public variables
public displayName: string;
public vwSC: boolean = false;
public vwLsts: boolean = false;
public vwLstItm: boolean = false;
public vwCreateItem: boolean = false;
public siteCollection: Array<ISiteCollections>;
public listCollection: Array<IListCollection>;
public itemCollection: Array<IAnnouncements>;
public createItemTitle: string;
// private variables
private _siteId: string;
private _listId: string;
constructor(private $rootScope: angular.IRootScopeService, private $scope: angular.IScope,
private $http: angular.IHttpService, private graphHelper: IGraphHelper, private $log: angular.ILogService){
this._initAuth();
}
private _initAuth(): void {
if (localStorage.getItem('auth')){
this._processAuth();
}
else {
let auth: any = this.hello('aad').getAuthResponse();
if (auth != null){
localStorage.setItem('auth', angular.toJson(auth));
this._processAuth();
}
}
}
private _processAuth(){
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.$http.defaults.headers.common.Authorization = 'Bearer ' + auth.access_token;
this.$http.defaults.headers.common.SampleID = 'angular-connect-rest-sharepoint';
if (localStorage.getItem('user') === null){
this.graphHelper.me().then((results: any): void => {
let user = results.data;
localStorage.setItem('user', angular.toJson(user));
this.displayName = user.displayName;
});
}
else {
let user = angular.fromJson(localStorage.getItem('user'));
this.displayName = user.displayName;
}
}
}
public isAuthenticated(): boolean {
return localStorage.getItem('user') !== null;
}
public login(): void {
this.graphHelper.login();
}
public logout(): void {
this.graphHelper.logout();
}
// Get's SharePoint's Root Site Collection for now
// until Microsoft Graph is updated. Then it will be a list of sites
public getSites(): void {
// Check token expiry. If the token is valid for another 5 minutes, we'll use it.
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.graphHelper.getSites().then((results: Array<ISiteCollections>): void => {
this.$log.debug(results);
this.vwSC = true;
this.siteCollection = results;
});
}
else {
// If the token is expired, this sample just redirects the user to sign in.
this.graphHelper.login();
}
}
public getLists(siteId: string): void {
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.graphHelper.getLists(siteId).then((results: Array<IListCollection>): void => {
this.$log.debug(results);
this.vwSC = false;
this.vwLsts = true;
this.listCollection = results;
this._siteId = siteId;
});
}
else {
this.graphHelper.login();
}
}
public getListItems(listId: string): void {
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.graphHelper.getListItems(this._siteId, listId).then((results: Array<IAnnouncements>): void => {
this.$log.debug(results);
this.vwLsts = false;
this.vwLstItm = true;
this.itemCollection = results;
this._listId = listId;
});
}
else {
this.graphHelper.login();
}
}
public showCreateItemForm(): void {
this.vwLstItm = false;
this.vwCreateItem = true;
}
public createItem(): void {
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.graphHelper.createItem(this._siteId, this._listId).then((result: IGenericCreateItem): void => {
this.$log.debug(result);
this.graphHelper.updateItem(this._siteId, this._listId, result, this.createItemTitle)
.then((result: any): void => {
// item create was successfull so navigate back to list item view
this.getListItems(this._listId);
this.vwCreateItem = false;
this.vwLstItm = true;
});
});
}
else {
this.graphHelper.login();
}
}
public deleteItem(item: IGenericCreateItem): void {
let auth: any = angular.fromJson(localStorage.getItem('auth'));
let expiration: Date = new Date();
expiration.setTime((auth.expires - 300) * 1000);
if (expiration > new Date()){
this.graphHelper.deleteItem(this._siteId, this._listId, item).then((result: any): void => {
// delete item was successful so refresh the list items
this.getListItems(this._listId);
});
}
else {
this.graphHelper.login();
}
}
}
```
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_INPUT_SELECTION_H_
#define CC_INPUT_SELECTION_H_
#include "cc/base/cc_export.h"
namespace cc {
template <typename BoundType>
struct CC_EXPORT Selection {
Selection()
: is_editable(false)
, is_empty_text_form_control(false)
{
}
~Selection() { }
BoundType start, end;
bool is_editable;
bool is_empty_text_form_control;
};
template <typename BoundType>
inline bool operator==(const Selection<BoundType>& lhs,
const Selection<BoundType>& rhs)
{
return lhs.start == rhs.start && lhs.end == rhs.end && lhs.is_editable == rhs.is_editable && lhs.is_empty_text_form_control == rhs.is_empty_text_form_control;
}
template <typename BoundType>
inline bool operator!=(const Selection<BoundType>& lhs,
const Selection<BoundType>& rhs)
{
return !(lhs == rhs);
}
} // namespace cc
#endif // CC_INPUT_SELECTION_H_
```
|
The 1878 CCNY Lavender football team represented the City College of New York during the 1878 college football season.
Schedule
References
CCNY
CCNY Beavers football seasons
CCNY Lavender football
|
```makefile
libavfilter/vf_maskedclamp.o: libavfilter/vf_maskedclamp.c \
libavutil/imgutils.h libavutil/avutil.h libavutil/common.h \
libavutil/attributes.h libavutil/macros.h libavutil/version.h \
libavutil/avconfig.h config.h libavutil/intmath.h libavutil/mem.h \
libavutil/error.h libavutil/internal.h libavutil/timer.h libavutil/log.h \
libavutil/cpu.h libavutil/dict.h libavutil/pixfmt.h libavutil/libm.h \
libavutil/intfloat.h libavutil/mathematics.h libavutil/rational.h \
libavutil/pixdesc.h libavutil/pixdesc.h libavutil/opt.h \
libavutil/samplefmt.h libavfilter/avfilter.h libavutil/attributes.h \
libavutil/avutil.h libavutil/buffer.h libavutil/dict.h libavutil/frame.h \
libavutil/buffer.h libavutil/log.h libavutil/samplefmt.h \
libavutil/pixfmt.h libavutil/rational.h libavfilter/version.h \
libavutil/version.h libavfilter/formats.h libavfilter/internal.h \
libavutil/internal.h libavfilter/avfiltergraph.h libavfilter/framepool.h \
libavfilter/thread.h libavfilter/version.h libavfilter/video.h \
libavcodec/avcodec.h libavutil/cpu.h libavutil/channel_layout.h \
libavcodec/version.h libavfilter/framesync.h libavfilter/bufferqueue.h \
libavutil/avassert.h
```
|
```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\Compute;
class Snapshot extends \Google\Collection
{
protected $collection_key = 'storageLocations';
/**
* @var string
*/
public $architecture;
/**
* @var bool
*/
public $autoCreated;
/**
* @var string
*/
public $chainName;
/**
* @var string
*/
public $creationSizeBytes;
/**
* @var string
*/
public $creationTimestamp;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $diskSizeGb;
/**
* @var string
*/
public $downloadBytes;
/**
* @var bool
*/
public $enableConfidentialCompute;
protected $guestOsFeaturesType = GuestOsFeature::class;
protected $guestOsFeaturesDataType = 'array';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $labelFingerprint;
/**
* @var string[]
*/
public $labels;
/**
* @var string[]
*/
public $licenseCodes;
/**
* @var string[]
*/
public $licenses;
/**
* @var string
*/
public $locationHint;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $satisfiesPzi;
/**
* @var bool
*/
public $satisfiesPzs;
/**
* @var string
*/
public $selfLink;
protected $snapshotEncryptionKeyType = CustomerEncryptionKey::class;
protected $snapshotEncryptionKeyDataType = '';
/**
* @var string
*/
public $snapshotType;
/**
* @var string
*/
public $sourceDisk;
protected $sourceDiskEncryptionKeyType = CustomerEncryptionKey::class;
protected $sourceDiskEncryptionKeyDataType = '';
/**
* @var string
*/
public $sourceDiskForRecoveryCheckpoint;
/**
* @var string
*/
public $sourceDiskId;
/**
* @var string
*/
public $sourceInstantSnapshot;
protected $sourceInstantSnapshotEncryptionKeyType = CustomerEncryptionKey::class;
protected $sourceInstantSnapshotEncryptionKeyDataType = '';
/**
* @var string
*/
public $sourceInstantSnapshotId;
/**
* @var string
*/
public $sourceSnapshotSchedulePolicy;
/**
* @var string
*/
public $sourceSnapshotSchedulePolicyId;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $storageBytes;
/**
* @var string
*/
public $storageBytesStatus;
/**
* @var string[]
*/
public $storageLocations;
/**
* @param string
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* @param bool
*/
public function setAutoCreated($autoCreated)
{
$this->autoCreated = $autoCreated;
}
/**
* @return bool
*/
public function getAutoCreated()
{
return $this->autoCreated;
}
/**
* @param string
*/
public function setChainName($chainName)
{
$this->chainName = $chainName;
}
/**
* @return string
*/
public function getChainName()
{
return $this->chainName;
}
/**
* @param string
*/
public function setCreationSizeBytes($creationSizeBytes)
{
$this->creationSizeBytes = $creationSizeBytes;
}
/**
* @return string
*/
public function getCreationSizeBytes()
{
return $this->creationSizeBytes;
}
/**
* @param string
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* @param string
*/
public function setDownloadBytes($downloadBytes)
{
$this->downloadBytes = $downloadBytes;
}
/**
* @return string
*/
public function getDownloadBytes()
{
return $this->downloadBytes;
}
/**
* @param bool
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
/**
* @param GuestOsFeature[]
*/
public function setGuestOsFeatures($guestOsFeatures)
{
$this->guestOsFeatures = $guestOsFeatures;
}
/**
* @return GuestOsFeature[]
*/
public function getGuestOsFeatures()
{
return $this->guestOsFeatures;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLabelFingerprint($labelFingerprint)
{
$this->labelFingerprint = $labelFingerprint;
}
/**
* @return string
*/
public function getLabelFingerprint()
{
return $this->labelFingerprint;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string[]
*/
{
$this->licenseCodes = $licenseCodes;
}
/**
* @return string[]
*/
{
return $this->licenseCodes;
}
/**
* @param string[]
*/
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
{
return $this->licenses;
}
/**
* @param string
*/
public function setLocationHint($locationHint)
{
$this->locationHint = $locationHint;
}
/**
* @return string
*/
public function getLocationHint()
{
return $this->locationHint;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param CustomerEncryptionKey
*/
public function setSnapshotEncryptionKey(CustomerEncryptionKey $snapshotEncryptionKey)
{
$this->snapshotEncryptionKey = $snapshotEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getSnapshotEncryptionKey()
{
return $this->snapshotEncryptionKey;
}
/**
* @param string
*/
public function setSnapshotType($snapshotType)
{
$this->snapshotType = $snapshotType;
}
/**
* @return string
*/
public function getSnapshotType()
{
return $this->snapshotType;
}
/**
* @param string
*/
public function setSourceDisk($sourceDisk)
{
$this->sourceDisk = $sourceDisk;
}
/**
* @return string
*/
public function getSourceDisk()
{
return $this->sourceDisk;
}
/**
* @param CustomerEncryptionKey
*/
public function setSourceDiskEncryptionKey(CustomerEncryptionKey $sourceDiskEncryptionKey)
{
$this->sourceDiskEncryptionKey = $sourceDiskEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getSourceDiskEncryptionKey()
{
return $this->sourceDiskEncryptionKey;
}
/**
* @param string
*/
public function setSourceDiskForRecoveryCheckpoint($sourceDiskForRecoveryCheckpoint)
{
$this->sourceDiskForRecoveryCheckpoint = $sourceDiskForRecoveryCheckpoint;
}
/**
* @return string
*/
public function getSourceDiskForRecoveryCheckpoint()
{
return $this->sourceDiskForRecoveryCheckpoint;
}
/**
* @param string
*/
public function setSourceDiskId($sourceDiskId)
{
$this->sourceDiskId = $sourceDiskId;
}
/**
* @return string
*/
public function getSourceDiskId()
{
return $this->sourceDiskId;
}
/**
* @param string
*/
public function setSourceInstantSnapshot($sourceInstantSnapshot)
{
$this->sourceInstantSnapshot = $sourceInstantSnapshot;
}
/**
* @return string
*/
public function getSourceInstantSnapshot()
{
return $this->sourceInstantSnapshot;
}
/**
* @param CustomerEncryptionKey
*/
public function setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey $sourceInstantSnapshotEncryptionKey)
{
$this->sourceInstantSnapshotEncryptionKey = $sourceInstantSnapshotEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getSourceInstantSnapshotEncryptionKey()
{
return $this->sourceInstantSnapshotEncryptionKey;
}
/**
* @param string
*/
public function setSourceInstantSnapshotId($sourceInstantSnapshotId)
{
$this->sourceInstantSnapshotId = $sourceInstantSnapshotId;
}
/**
* @return string
*/
public function getSourceInstantSnapshotId()
{
return $this->sourceInstantSnapshotId;
}
/**
* @param string
*/
public function setSourceSnapshotSchedulePolicy($sourceSnapshotSchedulePolicy)
{
$this->sourceSnapshotSchedulePolicy = $sourceSnapshotSchedulePolicy;
}
/**
* @return string
*/
public function getSourceSnapshotSchedulePolicy()
{
return $this->sourceSnapshotSchedulePolicy;
}
/**
* @param string
*/
public function setSourceSnapshotSchedulePolicyId($sourceSnapshotSchedulePolicyId)
{
$this->sourceSnapshotSchedulePolicyId = $sourceSnapshotSchedulePolicyId;
}
/**
* @return string
*/
public function getSourceSnapshotSchedulePolicyId()
{
return $this->sourceSnapshotSchedulePolicyId;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setStorageBytes($storageBytes)
{
$this->storageBytes = $storageBytes;
}
/**
* @return string
*/
public function getStorageBytes()
{
return $this->storageBytes;
}
/**
* @param string
*/
public function setStorageBytesStatus($storageBytesStatus)
{
$this->storageBytesStatus = $storageBytesStatus;
}
/**
* @return string
*/
public function getStorageBytesStatus()
{
return $this->storageBytesStatus;
}
/**
* @param string[]
*/
public function setStorageLocations($storageLocations)
{
$this->storageLocations = $storageLocations;
}
/**
* @return string[]
*/
public function getStorageLocations()
{
return $this->storageLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Snapshot::class, 'Google_Service_Compute_Snapshot');
```
|
```objective-c
/*
*
*/
#pragma once
#include <stdint.h>
#include "esp_err.h"
#include "esp_attr.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned (*bootloader_flash_read_status_fn_t)(void);
typedef void (*bootloader_flash_write_status_fn_t)(unsigned);
typedef struct __attribute__((packed))
{
const char *manufacturer;
uint8_t mfg_id; /* 8-bit JEDEC manufacturer ID */
uint16_t flash_id; /* 16-bit JEDEC flash chip ID */
uint16_t id_mask; /* Bits to match on in flash chip ID */
bootloader_flash_read_status_fn_t read_status_fn;
bootloader_flash_write_status_fn_t write_status_fn;
uint8_t status_qio_bit;
} bootloader_qio_info_t;
/**
* @brief Read 8 bit status using RDSR command
*
* @return Value of SR1.
*/
unsigned bootloader_read_status_8b_rdsr(void);
/**
* @brief Read 8 bit status (second byte) using RDSR2 command
*
* @return Value of SR2
*/
unsigned bootloader_read_status_8b_rdsr2(void);
/**
* @brief Read 8 bit status (third byte) using RDSR3 command
*
* @return Value of SR3
*/
unsigned bootloader_read_status_8b_rdsr3(void);
/**
* @brief Read 16 bit status using RDSR & RDSR2 (low and high bytes)
*
* @return Value of SR2#SR1.
*/
unsigned bootloader_read_status_16b_rdsr_rdsr2(void);
/**
* @brief Write 8 bit status using WRSR
*/
void bootloader_write_status_8b_wrsr(unsigned new_status);
/**
* @brief Write 8 bit status (second byte) using WRSR2.
*/
void bootloader_write_status_8b_wrsr2(unsigned new_status);
/**
* @brief Write 8 bit status (third byte) using WRSR3.
*/
void bootloader_write_status_8b_wrsr3(unsigned new_status);
/**
* @brief Write 16 bit status using WRSR, (both write SR1 and SR2)
*/
void bootloader_write_status_16b_wrsr(unsigned new_status);
/**
* @brief Read 8 bit status of XM25QU64A.
*
* @return Value of 8 bit SR.
*/
unsigned bootloader_read_status_8b_xmc25qu64a(void);
/**
* @brief Write 8 bit status for XM25QU64A
*/
void bootloader_write_status_8b_xmc25qu64a(unsigned new_status);
/* Array of known flash chips and data to enable Quad I/O mode
Manufacturer & flash ID can be tested by running "esptool.py
flash_id"
If manufacturer ID matches, and flash ID ORed with flash ID mask
matches, enable_qio_mode() will execute "Read Cmd", test if bit
number "QIE Bit" is set, and if not set it will call "Write Cmd"
with this bit set.
Searching of this table stops when the first match is found.
*/
extern const bootloader_qio_info_t __attribute__((weak)) bootloader_flash_qe_support_list[];
/**
* @brief Unlock Flash write protect.
* Please do not call this function in SDK.
*
* @note This can be overridden because it's attribute weak.
*/
esp_err_t __attribute__((weak)) bootloader_flash_unlock(void);
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH || CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_OCTAL_FLASH
/**
* @brief Enable 32bits address flash(larger than 16MB) can map to cache.
*
* @param flash_mode SPI flash working mode.
*
* @note This can be overridden because it's attribute weak.
*/
void __attribute__((weak)) bootloader_flash_32bits_address_map_enable(esp_rom_spiflash_read_mode_t flash_mode);
#endif
#ifdef __cplusplus
}
#endif
```
|
Sormeh () is a village in Kakavand-e Gharbi Rural District, Kakavand District, Delfan County, Lorestan Province, Iran. At the 2006 census, its population was 356, in 66 families.
References
Populated places in Delfan County
|
```sourcepawn
-- require r/have_gbk.require
disable_query_log;
show collation like 'gbk_chinese_ci';
enable_query_log;
```
|
This article lists the confirmed national football squads for the 2006 FIFA World Cup tournament held in Germany, between 9 June and 9 July 2006. Before announcing their final squad, several teams named a provisional squad of 23 to 33 players, but each country's final squad of 23 players had to be submitted by 15 May 2006. Replacement of injured players was permitted until 24 hours before the team's first World Cup game. Players marked (c) were named as captain for their national squad. Number of caps counts until the start of the World Cup, including all pre-tournament friendlies. Club information is that used by FIFA. Players for whom this information changed during or prior to the tournament are indicated by footnotes.
Group A
Costa Rica
Head coach: Alexandre Guimarães
Ecuador
Head coach: Luis Fernando Suárez
Germany
Head coach: Jürgen Klinsmann
Poland
Head coach: Paweł Janas
Group B
England
Head coach: Sven-Göran Eriksson
Paraguay
Head coach: Aníbal Ruiz
Sweden
Head coach: Lars Lagerbäck
Trinidad and Tobago
Head coach: Leo Beenhakker
Group C
Argentina
Head coach: José Pekerman
Ivory Coast
Head coach: Henri Michel
Netherlands
Head coach: Marco van Basten
Serbia and Montenegro
Head coach: Ilija Petković
Group D
Angola
Head coach: Oliveira Gonçalves
Iran
Head coach: Branko Ivanković
Mexico
Head coach: Ricardo La Volpe
Portugal
Head coach: Luiz Felipe Scolari
Group E
Czech Republic
Head coach: Karel Brückner
Ghana
Head coach: Ratomir Dujković
Italy
Head coach: Marcello Lippi
United States
Head coach: Bruce Arena
Group F
Australia
Head coach: Guus Hiddink
Brazil
Head coach: Carlos Alberto Parreira
Croatia
Head coach: Zlatko Kranjčar
Japan
Head coach: Zico
Group G
France
Head coach: Raymond Domenech
South Korea
Head coach: Dick Advocaat
Switzerland
Head coach: Köbi Kuhn
Togo
Head coach: Otto Pfister
Group H
Saudi Arabia
Head coach: Marcos Paquetá
Spain
Head coach: Luis Aragonés
Tunisia
Head coach: Roger Lemerre
Ukraine
Head coach: Oleg Blokhin
Serhiy Fedorov was injured prior to the start of the tournament. His replacement, Vyacheslav Shevchuk, was also injured shortly after filling in. Oleksandr Yatsenko was then called up, and sat on the bench for the last two matches.
Player representation by league
The squads for Italy and Saudi Arabia were made up entirely of players from their respective domestic leagues. Saudi Arabia were the only team with no players from European clubs. The Ivory Coast squad was made up entirely of players employed by foreign clubs, and 22 out of the 23 players were registered in Europe. Although Turkey, Scotland, and Russia failed to qualify for the finals, their domestic leagues were represented by 12, 11, and 10 players respectively. In total, domestic leagues from 48 countries had players at the 2006 World Cup.
Player representation by club
Finalised clubs' listing as per FIFA, excluding players on standby and loans.
References
Squads
FIFA World Cup squads
|
```c++
/* packer_f.cpp -- Packer filter handling
This file is part of the UPX executable compressor.
All Rights Reserved.
UPX and the UCL library are free software; you can redistribute them
published by the Free Software Foundation; either version 2 of
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; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Markus F.X.J. Oberhumer Laszlo Molnar
<markus@oberhumer.com> <ezerotven+github@gmail.com>
*/
#include "conf.h"
#include "packer.h"
#include "filter.h"
#include "linker.h"
/*************************************************************************
// filter util; see class FilterImpl
**************************************************************************/
bool Packer::isValidFilter(int filter_id) const {
return Filter::isValidFilter(filter_id, getFilters());
}
/*************************************************************************
// addFilter32
**************************************************************************/
#define NOFILT 0 // no filter
#define FNOMRU 1 // filter, but not using mru
#define MRUFLT 2 // mru filter
static inline unsigned f80_call(int filter_id) { return (1 + (0x0f & filter_id)) % 3; }
static inline unsigned f80_jmp1(int filter_id) { return ((1 + (0x0f & filter_id)) / 3) % 3; }
static inline unsigned f80_jcc2(int filter_id) { return f80_jmp1(filter_id); }
void Packer::addFilter32(int filter_id) {
assert(filter_id > 0);
assert(isValidFilter(filter_id));
if (filter_id < 0x80) {
if (0x50 == (0xF0 & filter_id)) {
addLoader("ctok32.00",
((0x50 == filter_id) ? "ctok32.50"
: (0x51 == filter_id) ? "ctok32.51"
: ""),
"ctok32.10");
} else if ((filter_id & 0xf) % 3 == 0) {
if (filter_id < 0x40) {
addLoader("CALLTR00", (filter_id > 0x20) ? "CTCLEVE1" : "", "CALLTR01",
(filter_id & 0xf) > 3
? (filter_id > 0x20 ? "CTBSHR01,CTBSWA01" : "CTBROR01,CTBSWA01")
: "",
"CALLTR02");
} else if (0x40 == (0xF0 & filter_id)) {
addLoader("ctok32.00");
if (9 <= (0xf & filter_id)) {
addLoader("ctok32.10");
}
addLoader("ctok32.20");
if (9 <= (0xf & filter_id)) {
addLoader("ctok32.30");
}
addLoader("ctok32.40");
}
} else
addLoader("CALLTR10", (filter_id & 0xf) % 3 == 1 ? "CALLTRE8" : "CALLTRE9", "CALLTR11",
(filter_id > 0x20) ? "CTCLEVE2" : "", "CALLTR12",
(filter_id & 0xf) > 3
? (filter_id > 0x20 ? "CTBSHR11,CTBSWA11" : "CTBROR11,CTBSWA11")
: "",
"CALLTR13");
}
if (0x80 == (filter_id & 0xF0)) {
const bool x386 = (opt->cpu_x86 <= opt->CPU_386);
const unsigned n_mru = ph.n_mru ? 1 + ph.n_mru : 0;
const bool mrupwr2 = (0 != n_mru) && 0 == ((n_mru - 1) & n_mru);
const unsigned f_call = f80_call(filter_id);
const unsigned f_jmp1 = f80_jmp1(filter_id);
const unsigned f_jcc2 = f80_jcc2(filter_id);
if (NOFILT != f_jcc2) {
addLoader("LXJCC010");
if (n_mru) {
addLoader("LXMRU045");
} else {
addLoader("LXMRU046");
}
if (0 == n_mru || MRUFLT != f_jcc2) {
addLoader("LXJCC020");
} else { // 0 != n_mru
addLoader("LXJCC021");
}
if (NOFILT != f_jcc2) {
addLoader("LXJCC023");
}
}
addLoader("LXUNF037");
if (x386) {
if (n_mru) {
addLoader("LXUNF386");
}
addLoader("LXUNF387");
if (n_mru) {
addLoader("LXUNF388");
}
} else {
addLoader("LXUNF486");
if (n_mru) {
addLoader("LXUNF487");
}
}
if (n_mru) {
addLoader("LXMRU065");
if (256 == n_mru) {
addLoader("MRUBYTE3");
} else {
addLoader("MRUARB30");
if (mrupwr2) {
addLoader("MRUBITS3");
} else {
addLoader("MRUARB40");
}
}
addLoader("LXMRU070");
if (256 == n_mru) {
addLoader("MRUBYTE4");
} else if (mrupwr2) {
addLoader("MRUBITS4");
} else {
addLoader("MRUARB50");
}
addLoader("LXMRU080");
if (256 == n_mru) {
addLoader("MRUBYTE5");
} else {
addLoader("MRUARB60");
if (mrupwr2) {
addLoader("MRUBITS5");
} else {
addLoader("MRUARB70");
}
}
addLoader("LXMRU090");
if (256 == n_mru) {
addLoader("MRUBYTE6");
} else {
addLoader("MRUARB80");
if (mrupwr2) {
addLoader("MRUBITS6");
} else {
addLoader("MRUARB90");
}
}
addLoader("LXMRU100");
}
addLoader("LXUNF040");
if (n_mru) {
addLoader("LXMRU110");
} else {
addLoader("LXMRU111");
}
addLoader("LXUNF041");
addLoader("LXUNF042");
if (n_mru) {
addLoader("LXMRU010");
if (NOFILT != f_jmp1 && NOFILT == f_call) {
addLoader("LXJMPA00");
} else {
addLoader("LXCALLB0");
}
addLoader("LXUNF021");
} else {
addLoader("LXMRU022");
if (NOFILT != f_jmp1 && NOFILT == f_call) {
addLoader("LXJMPA01");
} else {
addLoader("LXCALLB1");
}
}
if (n_mru) {
if (256 != n_mru && mrupwr2) {
addLoader("MRUBITS1");
}
addLoader("LXMRU030");
if (256 == n_mru) {
addLoader("MRUBYTE1");
} else {
addLoader("MRUARB10");
}
addLoader("LXMRU040");
}
addLoader("LXUNF030");
if (NOFILT != f_jcc2) {
addLoader("LXJCC000");
}
if (NOFILT != f_call || NOFILT != f_jmp1) { // at least one is filtered
// shift opcode origin to zero
if (0 == n_mru) {
addLoader("LXCJ0MRU");
} else {
addLoader("LXCJ1MRU");
}
// determine if in range
if ((NOFILT != f_call) && (NOFILT != f_jmp1)) { // unfilter both
addLoader("LXCALJMP");
}
if ((NOFILT == f_call) ^ (NOFILT == f_jmp1)) { // unfilter just one
if (0 == n_mru) {
addLoader("LXCALL00");
} else {
addLoader("LXCALL01");
}
}
// determine if mru applies
if (0 == n_mru || !((FNOMRU == f_call) || (FNOMRU == f_jmp1))) {
// no mru, or no exceptions
addLoader("LXCJ2MRU");
} else {
// mru on one, but not the other
addLoader("LXCJ4MRU");
if (MRUFLT == f_jmp1) { // JMP only
addLoader("LXCJ6MRU");
} else if (MRUFLT == f_call) { // CALL only
addLoader("LXCJ7MRU");
}
addLoader("LXCJ8MRU");
}
}
addLoader("LXUNF034");
if (n_mru) {
addLoader("LXMRU055");
if (256 == n_mru) {
addLoader("MRUBYTE2");
} else if (mrupwr2) {
addLoader("MRUBITS2");
} else {
addLoader("MRUARB20");
}
addLoader("LXMRU057");
}
}
}
#undef NOFILT
#undef FNOMRU
#undef MRUFLT
/*************************************************************************
//
**************************************************************************/
void Packer::defineFilterSymbols(const Filter *ft) {
if (ft->id == 0) {
linker->defineSymbol("filter_length", 0);
linker->defineSymbol("filter_cto", 0);
return;
}
assert(ft->calls > 0);
assert(ft->buf_len > 0);
if (ft->id >= 0x40 && ft->id <= 0x4f) {
linker->defineSymbol("filter_length", ft->buf_len);
linker->defineSymbol("filter_cto", ft->cto);
} else if (ft->id >= 0x50 && ft->id <= 0x5f) {
linker->defineSymbol("filter_id", ft->id);
linker->defineSymbol("filter_cto", ft->cto);
} else if ((ft->id & 0xf) % 3 == 0) {
linker->defineSymbol("filter_length", ft->calls);
linker->defineSymbol("filter_cto", ft->cto);
} else {
linker->defineSymbol("filter_length", ft->lastcall - ft->calls * 4);
linker->defineSymbol("filter_cto", ft->cto);
}
#if 0
if (0x80 == (ft->id & 0xF0)) {
const int mru = ph.n_mru ? 1 + ph.n_mru : 0;
if (mru && mru != 256) {
const unsigned is_pwr2 = (0 == ((mru - 1) & mru));
// patch_le32(0x80 + (char *) loader, lsize - 0x80, "NMRU", mru - is_pwr2);
}
}
#endif
}
/* vim:set ts=4 sw=4 et: */
```
|
Oleamide is an organic compound with the formula . It is the amide derived from the fatty acid oleic acid. It is a colorless waxy solid and occurs in nature. Sometimes labeled as a fatty acid primary amide (FAPA), it is biosynthesized from N-oleoylglycine.
Biochemical and medical aspects
In terms of natural occurrence, oleamide was first detected in human plasma. It was later shown to accumulate in the cerebrospinal fluid during sleep deprivation and induces sleep in animals.
It has been considered as a treatment for mood and sleep disorders, as well as cannabinoid-regulated depression.
In terms of its sleep inducing effects, it is speculated that oleamide interacts with multiple neurotransmitter systems. Some in-vitro studies show that cis-oleamide is an agonist for the cannabinoid receptor CB-1 with an affinity around 8 micromolar. However, given oleamide's relatively low affinity for CB-1 and uncertainty about the concentration and biological role of oleamide in-vivo, it has been argued that it is premature to classify oleamide as an endocannabinoid. At larger doses oleamide can lower the body temperature of mice by about 2 degrees, with the effect lasting about two hours. The mechanism for this remains unknown.
Oleamide is rapidly metabolized by fatty acid amide hydrolase (FAAH), the same enzyme that metabolizes anandamide. It has been postulated that some effects of oleamide are caused by increased concentrations of anandamide brought about through the inhibition of FAAH.
It has been claimed that oleamide increases the activity of choline acetyltransferase, an enzyme that is critical in the production of acetylcholine.
Other occurrences
Oleamide has been found in Ziziphus jujuba, also known as Jujube fruit.
Synthetic oleamide has a variety of industrial uses including as a slip agent, a lubricant, and a corrosion inhibitor.
Oleamide was found to be leaching out of polypropylene plastics in laboratory experiments, affecting experimental results. Since polypropylene is used in a wide number of food containers such as those for yogurt, the problem is being studied.
Oleamide is "one of the most frequent non-cannabinoid ingredients associated with Spice products." Analysis of 44 products synthetic cannabinoid revealed oleamide in 7 of the products tested.
See also
Anandamide
Fatty acid amide hydrolase
Virodhamine
References
Eicosanoids
Endocannabinoids
Fatty acid amides
Hypnotics
Lipids
|
The Hengduan Mountains () are a group of mountain ranges in southwest China that connect the southeast portions of the Tibetan Plateau with the Yunnan–Guizhou Plateau. The Hengduan Mountains are primarily large north-south mountain ranges that effectively separate lowlands in northern Myanmar from the lowlands of the Sichuan Basin. These ranges are characterized by significant vertical relief originating from the Indian subcontinent's collision with the Eurasian Plate, and further carved out by the major rivers draining the eastern Tibetan Plateau. These rivers, the Yangtze, Mekong, and Salween, are recognized today as the Three Parallel Rivers UNESCO World Heritage Site.
The Hengduan Mountains cover much of western present-day Sichuan province as well as the northwestern portions of Yunnan, the easternmost section of the Tibet Autonomous Region, and touching upon parts of southern Qinghai. Additionally, some parts of eastern Kachin State in neighbouring Myanmar are considered part of the Hengduan group. The Hengduan Mountains are approximately long, stretching from 33°N to 25°N. Depending on extent of the definition, the Hengduan Mountains are also approximately wide under the narrowest definition, ranging from 98°E to 102°E. The area covered by these ranges roughly corresponds with the Tibetan region known as Kham.
The Hengduan Mountains subalpine conifer forests is a palaearctic ecoregion in the Temperate coniferous forests biome that covers portions of the mountains.
Geography
The Hengduan Mountain system consists of many component mountain ranges, most of which run roughly north to south. These mountain ranges, in turn, can be further divided into various subranges. The component ranges of the Hengduan are separated by deep river valleys that channel the waters of many of Southeast Asia's great rivers. The core of the Hengduan Mountains can be divided into four major component ranges, described below.
The westernmost primary range of the Hengduan runs north-south between the Salween (Nu) and Mekong (Lancang) Rivers. The northern half of this range, found in the Tibet Autonomous Region, is called the Taniantaweng Mountains while the southern half, in Yunnan, is called the Nu Mountains. A major subrange along this system is the Meili Snow Mountains and their highest peak, Kawagebo.
Moving eastward, the next major subsection of the Hengduan Mountains is the range running between the Mekong (Lancang) and Yangtze (Jinsha) Rivers. The northernmost parts of this range are called the Mangkam Mountains, the middle section is known as the Ninchin Mountains, and the southern end is called the Yun Range. The Yulong Mountains are a subrange of this system and the highest peak here is Jade Dragon Snow Mountain's Shanzidou. Eastern Himalaya, part of larger Himalaya mountains, is Hengduan Mountain's immediate neighbor to its west.
The third primary component of the Hengduan ranges is the section running between the Yangtze (Jinsha) and Yalong Rivers. This section is known for almost its entire length as the Shaluli Mountains except for the northernmost subrange that is called the Chola Mountains. The highest point of this entire section is the Ge'nyen Massif.
The easternmost of the Hengduan core ranges is the Daxue Mountains between the Yalong River and Dadu River. This range is dominated by Mount Gongga, the highest peak in the entire Hengduan group as well as the highest peak east of the Himalayas.
In addition to the four core systems, described above, some adjacent ranges are also sometimes included as part of the Hengduan group. To the west, the Gaoligong Mountains form an additional barrier along the Salween's western edge, but are more accurately described as an extension of the Baxoila Range connecting with the eastern Nyenchen Tanglha Mountains across central Tibet. To the east, the Qionglai Mountains and the Min Mountains are sometimes included as part of the Hengduan Mountains as these two ranges form the eastern edges of the Tibetan Plateau.
Ecosystems
The Hengduan Mountains support a range of habitats, from subtropical to temperate to montane biomes. The mountains are largely covered by subalpine coniferous forests. Elevations range from . The dense, pristine forests, the relative isolation, and the fact that most of the area remained free from glaciation during the ice ages provides a very complex habitat with a high degree of biological diversity.
The ecoregions that coincide with the Hengduan Mountains are:
The Southeast Tibet shrub and meadows in the higher elevation and norther parts of the Hengduan
The Hengduan Mountains subalpine conifer forests in northern Yunnan and western Sichuan parts of the central Hengduan
The Nujiang Langcang Gorge alpine conifer and mixed forests along the westernmost ranges of the Hengduan
The Qionglai-Minshan conifer forests in the east parts of the Hengduan along the edge of the Sichuan Basin
The Yunnan Plateau subtropical evergreen forests at the southern parts of the Hengduan where the mountains transition to the Yungui Plateau
The Northern Indochina subtropical forests in the Nu Mountains, a southwestern component range of the Hengduan in Yunnan
Additionally, the lowest elevation portions of the Jinsha (Yangtze) River and Nu (Salween) River valleys in the southern Hengduan ranges are classified by the Chinese government as a tropical savanna environment.
The easternmost ranges of the Hengduan are home to the rare and endangered giant panda. Other species native to the mountains are the Chinese yew (Taxus chinensis) and various other rare plants, deer, and primates.
Gallery
See also
Global 200
The Hump
References
External links
Biodiversity of the Hengduan Mountains and adjacent areas of south-central China - a research project at Harvard University
PBS NOVA's First Flower discusses botanical diversity in the Hengduan Shan
The 26 mountains of Yunnan
Transhimalayas
Mountain ranges of Myanmar
Mountain ranges of Tibet
Mountain ranges of Sichuan
Mountain ranges of Yunnan
|
Reethigowla, Reethi Gowla or Reethigowlai is a janya raga in carnatic music. It is associated with 22nd melakarta raga Kharaharapriya.
It is Vakra Shadava-Sampoorna (Zig-zag raga with six notes in Arohana and seven in Avarohana). It is a Rakthi Ragam with unique and melodious Sancharams and Prayogams. This Raga invokes Bhakti mixed with immense joy through a Vadi-Samvadi relationship between many of its swaras such as Sa-Ma, Ri-Dha and Ga-Ni. It is also classified as a "rakti" raga (a raga of high melodic content). In the Muthuswami Dikshitar school, it is a melakarta known as Nārīrītigowla.
Arohana and Avarohana
:
:
Popular compositions
Seetha Nayaka by Tyagaraja
Bale balendu-bhushani by Tyagaraja
Nannu vidachi by Tyagaraja
Jo Jo Jo Rama by Tyagaraja
Badalika teera by Tyagaraja
Dvaitamu sukhama by Tyagaraja
Paripalaya paripalaya raghunatha by Tyagaraja
Raaga ratna malikache by Tyagaraja
Chera rava demira by Tyagaraja
Thamboolava Kollu By Purandara Dasa
Janani Ninnuvina by Subbaraya Sastri
Guruvayurappane by Ambujam Krishna
Vrndavana-nilaye radhe , enna punniyam seidenoby Oothukkadu Venkata Kavi
Malarinai thunai , tattvamariya tarama by Papanasam Sivan
Mama hrdaye vihara dayalo by Mysore Vasudevacharya
Pari-palaya mam shri padmanabha murare by Swathi Tirunal
Ninnu vina mari galada by Shyama shastri
Sri jnana-skandam bhavaye by Swami Haridas giri
Kamakoti-pitha sthite kamakshi by Mysore V Ramarathnam
Vanajaaksha by Veenai kuppaiyer
En taamarai en mel by GN Balasubramaniam
Tatvamariya tarama by Papanasam Sivan
Shri krishna kamalanatho by Bangalore T. Srinivas
Film Songs
Tamil Language Songs
Malayalam Language Songs
Kannada Language Songs
Notes
References
External links
All things Reethigowla
Janya ragas
Janya ragas (kharaharapriya)
|
```shell
Quick port test with `netcat`
Logging dropped firewall packets
Sending emails from terminal / scripts
Use `tcpdump` to listen to network interface traffic
Staying connected remotely via SSH without an interactive shell
```
|
In business, operating margin—also known as operating income margin, operating profit margin, EBIT margin and return on sales (ROS)—is the ratio of operating income ("operating profit" in the UK) to net sales, usually expressed in percent.
Net profit measures the profitability of ventures after accounting for all costs.
Return on sales (ROS) is net profit as a percentage of sales revenue. ROS is an indicator of profitability and is often used to compare the profitability of companies and industries of differing sizes. Significantly, ROS does not account for the capital (investment) used to generate the profit. In a survey of nearly 200 senior marketing managers, 69 percent responded that they found the "return on sales" metric very useful.
Unlike Earnings before interest, taxes, depreciation, and amortization (EBITDA) margin, operating margin takes into account depreciation and amortization expenses. {NNP = GNP- depreciation /GNP = GDP- depreciation
Purpose
These financial metrics measure levels and rates of profitability. Probably the most common way to determine the successfulness of a company is to look at the net profits of the business. Companies are collections of projects and markets, individual areas can be judged on how successful they are at adding to the corporate net profit. Not all projects are of equal size, however, and one way to adjust for size is to divide the profit by sales revenue. The resulting ratio is return on sales (ROS), the percentage of sales revenue that gets 'returned' to the company as net profits after all the related costs of the activity are deducted.
Construction
Net profit measures the fundamental profitability of the business. It is the revenues of the activity less the costs of the activity. The main complication is in more complex businesses when overhead needs to be allocated across divisions of the company. Almost by definition, overheads are costs that cannot be directly tied to any specific product or division. The classic example would be the cost of headquarters staff.
Net profit: To calculate net profit for a unit (such as a company or division), subtract all costs, including a fair share of total corporate overheads, from the gross revenues.Return on sales (ROS): Net profit as a percentage of sales revenue.
Earnings Before Interest, Taxes, Depreciation, and Amortization (EBITDA) is a very popular measure of financial performance. It is used to assess the 'operating' profit of the business. It is a rough way of calculating how much cash the business is generating and is even sometimes called the 'operating cash flow'. It can be useful because it removes factors that change the view of performance depending upon the accounting and financing policies of the business. Supporters argue it reduces management's ability to change the profits they report by their choice of accounting rules and the way they generate financial backing for the company. This metric excludes from consideration expenses related to decisions such as how to finance the business (debt or equity) and over what period they depreciate fixed assets. EBITDA is typically closer to actual cash flow than is NOPAT. ... EBITDA can be calculated by adding back the costs of interest, depreciation, and amortization charges and any taxes incurred.
Example: The Coca-Cola Company
It is a measurement of what proportion of a company's revenue is left over, before taxes and other indirect costs (such as rent, bonus, interest, etc.), after paying for variable costs of production as wages, raw materials, etc. A good operating margin is needed for a company to be able to pay for its fixed costs, such as interest on debt. A higher operating margin means that the company has less financial risk.
Operating margin can be considered total revenue from product sales less all costs before adjustment for taxes, dividends to shareholders, and interest on debt.
See also
Efficiency ratio
Incremental operating margin
Profit margin
References
Farris, Paul W.; Neil T. Bendle; Phillip E. Pfeifer; David J. Reibstein (2010). Marketing Metrics: The Definitive Guide to Measuring Marketing Performance.''
Financial ratios
Business economics
Pricing
|
```shell
The `setuid` permission
Executing commands with `sudo` without password
Making a file unalterable with `chattr`
Understanding `umask`
Running a command as another local user
```
|
```javascript
import Vue from "vue";
import VeLoading from "./src/index.js";
VeLoading.install = function (Vue) {
Vue.prototype.$veLoading = VeLoading;
};
export default VeLoading;
```
|
```xml
import {
type LogBase,
logger,
} from '@pnpm/logger'
export const packageImportMethodLogger = logger('package-import-method')
export interface PackageImportMethodMessage {
method: 'clone' | 'hardlink' | 'copy'
}
export type PackageImportMethodLog = { name: 'pnpm:package-import-method' } & LogBase & PackageImportMethodMessage
```
|
```ruby
# frozen_string_literal: true
require "spec_helper"
describe Decidim::Comments::Metrics::CommentsMetricManage do
let(:organization) { create(:organization) }
let(:participatory_process) { create(:participatory_process, organization:) }
let(:component) { create(:component, participatory_space: participatory_process) }
let(:commentable) { create(:dummy_resource, component:) }
let(:author) { create(:user, organization:) }
let(:day) { Time.zone.yesterday }
let!(:comments) { create_list(:comment, 5, created_at: day, author:, commentable:) }
let!(:old_comments) { create_list(:comment, 5, created_at: day - 1.week, author:, commentable:) }
include_context "when managing metrics"
context "when executing" do
it "creates new metric records" do
registry = generate_metric_registry
expect(registry.collect(&:day)).to eq([day])
expect(registry.collect(&:cumulative)).to eq([10])
expect(registry.collect(&:quantity)).to eq([5])
end
it "does not create any record if there is no data" do
registry = generate_metric_registry("2017-01-01")
expect(Decidim::Metric.count).to eq(0)
expect(registry).to be_empty
end
it "updates metric records" do
create(:metric, metric_type: "comments", day:, cumulative: 1, quantity: 1, organization:, related_object: commentable, category: nil, participatory_space: participatory_process)
registry = generate_metric_registry
expect(Decidim::Metric.count).to eq(1)
expect(registry.collect(&:cumulative)).to eq([10])
expect(registry.collect(&:quantity)).to eq([5])
end
end
end
```
|
The 12th Annual Helpmann Awards was held on 24 September 2012 at the Sydney Opera House, in Sydney, New South Wales. Administered by Live Performance Australia (LPA), accolades were presented for achievements in disciplines of Australia's live performance sectors, for productions during the season between 1 March 2011 – 31 May 2012.
Awards were handed out in forty-two categories for achievements in theatre, musicals, opera, ballet, dance and concerts.
With the 2012 edition, LPA established the Helpmann Awards Travel Fund which seeks to provide a greater opportunity for productions outside of Melbourne and Sydney to become Nominated for an Award. The Fund provides travel assistance to members of the voting panel, allowing them to attend productions outside of their home states.
Schedule
Source:
Winners and nominees
In the following tables, winners are listed first and highlighted in boldface.
Theatre
Musicals
Opera
Dance and Physical Theatre
Classical music
Contemporary Music
Other
Industry
Special awards
The JC Williamson Award, a lifetime achievement award, was awarded to the late Indigenous Australian musician Jimmy Little (1 March 1937 – 2 April 2012) and Katharine Brisbane, a theatre journalist and publisher. The Brian Stacey Award, for emerging conductors of live theatre, opera and ballet, was given to Daniel Carter.
See also
66th Tony Awards
2012 Laurence Olivier Awards
Notes
A: The full producing credit for Rock of Ages is Rodney Rigby, Michael Cohl, Reagan Silber, Peter Gordon, Barry Habib, Matthew Weaver, Scott Prisand, Carl Levin, Jeff Davis, S2BN Entertainment in association with Janet Billing Rich, Sar Mercer, Michael Minarik, Mariano Tolentino and Hilary Weaver.
References
Helpmann Awards
Helpmann Awards
Helpmann Awards
Helpmann Awards
Helpmann Awards, 12th
Helpmann Awards
|
```objective-c
#ifndef CURLINC_STDCHEADERS_H
#define CURLINC_STDCHEADERS_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at path_to_url
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
*
***************************************************************************/
#include <sys/types.h>
size_t fread(void *, size_t, size_t, FILE *);
size_t fwrite(const void *, size_t, size_t, FILE *);
int strcasecmp(const char *, const char *);
int strncasecmp(const char *, const char *, size_t);
#endif /* CURLINC_STDCHEADERS_H */
```
|
Ariella Käslin (anglicised Kaeslin; born 11 October 1987) is a Swiss former artistic gymnast. She won all five gold medals at the 2007 Swiss National Championships, and has represented Switzerland at the World Championships in 2007, 2006 and 2005, and was a medalist on the World Cup circuit. Käslin represented Switzerland at the 2008 Olympics, where she placed 18th in the individual all-around final and 5th in the vault event final.
In 2008, 2009 and 2010, Käslin was voted by the Swiss public as "Swiss Sportswoman of the Year"; only cyclist Tony Rominger (1992, 1993, 1994) had previously achieved three consecutive "Sportsman of the Year" awards in Switzerland.
In 2009, she became European Champion on the vault, as well as taking home a bronze medal in the All Around final. She then followed up this success with a silver medal on the vault at the 2009 World Championships.
On 11 July 2011, Käslin announced her retirement from competition.
In April 2021, Käslin came out as a lesbian. Regarding her decision to come out publicly, she remarked: "I then understood that as a public figure, I also had to come out publicly, otherwise I would never be able to live my love for a woman in complete freedom. But I'm also scared."
References
External links
Ariella Käslin homepage
"Gespräch mit Ariella Käslin" 2013 interview (in German)
1987 births
Living people
Swiss female artistic gymnasts
Gymnasts at the 2008 Summer Olympics
Olympic gymnasts for Switzerland
European champions in gymnastics
LGBT gymnasts
Swiss lesbians
Lesbian sportswomen
Swiss LGBT sportspeople
Medalists at the World Artistic Gymnastics Championships
21st-century Swiss LGBT people
Sportspeople from Lucerne
21st-century Swiss women
|
DeJa Skye is the stage name of Willie Redman, an American drag performer who competed on the fourteenth season of RuPaul's Drag Race.
Career
DeJa Skye began working as a drag queen in 2011, when she was 20 years old. Early in her career, she performed in Fresno, Modesto, and Sacramento, California.
DeJa Skye competed on the fourteenth season of RuPaul's Drag Race. She placed in the bottom two at the start of the season, but remained in the competition after eliminating Daya Betty in a lip-sync battle to Alicia Keys' 2001 song "Fallin'". She won the Snatch Game challenge with her impersonation of Lil Jon, which meant she did not have to participate in a special lip-sync battle against the other seven remaining contestants in the competition at that time. After failing to impress judges in a challenge which saw contestants roast judge Ross Mathews, DeJa Skye placed in the bottom three with Jorgeous and Daya Betty, who had returned to the competition. DeJa Skye and Jorgeous were both eliminated by Daya Betty. Sam Damshenas of Gay Times said DeJa Skye's Snatch Game performance "was met with enormous praise for her impersonation of the hip-hop giant, including Jon himself".
Following her appearance on Drag Race, DeJa Skye joined the cast of the Werq the World tour.
Personal life
Redman is from Fresno, California.
DeJa Skye's name comes from Beyoncé's song "Déjà Vu" (2006) and the name of a puppet on the PBS television series The Puzzle Place. She has approximately 42,000 followers on Instagram, as of February 2022.
See also
List of people from Fresno, California
References
External links
Living people
American drag queens
People from Fresno, California
RuPaul's Drag Race contestants
Year of birth missing (living people)
|
The Almaty Pioneers Palace (Russian: Алматинский дворец школьников, tr. almatinskii dvorets shkolnikov) is a Pioneers Palace, an institution from the Soviet Union to provide after-school education for children, built in Almaty in 1983.
History
In 1978 the first secretary of the Central Committee of the Communist Party of Kazakhstan Dinmukhamed Kunaev decided to build the palace. Construction began in 1979 and finished in 1983. The team of architects included , A. P. Zuev, T. S. Abildaev and others. The team of architects was awarded a diploma of the Supreme Soviet of the Kazakh Soviet Socialist Republic.
In 2014, the Pioneers Palace was closed for major reconstruction, the first one in the building's 30-year history. At that time, there were about 80 sports, science and technology, arts and crafts groups. All groups and sections were temporarily transferred to other educational institutions in the city. The reconstruction was finished in 2015.
Architecture
The architectural and planning composition of the four-storey building is in the form of a spiral with pavilion volumes strung on its axis. The main entrance is accented by a grand staircase. The center of the composition is the Celebration hall topped with a dome, to which all groups of rooms of the palace adjoin. Diameter of the dome is 21 meters and its height is 19 meters. The decoration of the Celebration hall is a chandelier, which holds 288 lamps, weighing 3.5 tons, and its diameter is 7 meters. To the left of the dome is a 40-meter observatory tower. Korday and Balkhash granite, shell rock of Mangystau, wood and metal were used in construction. Spacious avenues and squares in front of the building allow for open air mass events. The building is designed for 2,200 schoolchildren. There is an auditorium with 800 seats, rooms for various hobby groups, gyms, a swimming pool and others. It consists of 12 pavilions, with a usable area of over 35,000 square meters.
Heritage status
Since 26 January 1984, the Pioneers Palace has been included in the state list of historical and cultural monuments of local importance in Almaty. Near the Pioneers Palace there is a protective zone, a zone of regulation of development and a zone of protected natural landscape of the objects of historical and cultural heritage.
References
1983 establishments in Kazakh Soviet Socialist Republic
School buildings completed in 1983
Education in Almaty
Buildings and structures in Almaty
|
Mummy, also known as Mummy - Save Me, is a 2016 Indian Kannada language supernatural horror film starring Priyanka Upendra, written and directed by Lohith H. The film is produced by K Ravikumar under KRK Productions and distributed by Horizon Studio. The film was dubbed in Telugu, Hindi, and Tamil as Chinnari, Mummy, and Mummy - Save Me , respectively.
Plot
Priya (Priyanka Upendra), a seven-month pregnant widow, and her six-year-old daughter Kriya (Yuvina Parthavi) move from Bangalore to Goa after the death of her husband (Kriya's father). They move to a large villa, but the family start to experience strange things shortly after the move. Kriya is badly affected by her father's death. He bought her a doll as gift for her before dying. Kriya starts to speak with the doll and considers it as her friend. Priya is grief-stricken and depressed due to her husband's death, and as a result of the loss, she is unable to spend time with Kriya. Kriya herself starts to become stubborn, and gets sad and lonely as her mother is not spending quality time with her.
One day, Kriya sees a ghost for the first time and gets scared. After crying and shouting, she eventually befriends the ghost, and is seen speaking to it. Seeing Kriya speaking alone and due to her behavior, Priya becomes tense and concerned, and consults a doctor. The doctor suggests to Priya to spend time with Kriya. She and Kriya began together spend time, they go out and enjoy each other's company for the first time since her husband’s passing. Priya experiences the same phenomena as Kriya, she sees the ghost.
One day, the doctor, whom Priya consulted, calls her and informs that her daughter Kriya is speaking with someone whom no one except Kriya can see. The doctor then sends a priest to Priya's villa. The same day, Priya gets hurt and even Kriya gets hurt. Their relatives get the mother and daughter to hospital, where the priest comes to meet Priya, and tells them the story behind the ghost.
The ghost's name is Kumari, a former orphan who had married a rich man and was happy with him. Even after eight years of marriage, Kumari was not blessed with a baby, so her in-laws and elders decided and arranged her husband to marry another woman. Kumari was devastated by the news of divorce, but soon she got pregnant. When Kumari was seven months pregnant with their first child, she and her husband decide to visit a temple. While coming back home, they meet with an accident, and they both die. Kumari always wanted a child; however, due to the accident that took her, her husband, and her baby, her wish was incomplete. As a result, she became an evil spirit and has since roamed around the road where her demise had occurred. Knowing about Kumari's wicked nature, a woman from Kerala captured Kumari and tied her in the forest. After 48 years, a young boy got possessed by Kumari and he started to behave like her. The boy's mother called a pandit who captured the ghost but it was unsuccessful, because the pandit died and the spirit of Kumari entered the doll which is now in Kriya's possession.
Kumari forcefully takes Kriya to the villa from hospital. Priya and others also go into the villa, where everyone gets ambushed by the vengeful spirit of Kumari. Kumari starts to drag Kriya to take her with her to the afterlife as the child she longed to have, but Priya doesn't allow her to do so. Priya begs her to leave her child, and even Kriya says that she wants to stay with her mother and doesn't like Kumari at all. Hearing this, Kumari leaves Kriya's hand, and her spirit transforms into ash.
Six months later, Kriya leaves for school and bids farewell to her mother and baby sibling. While leaving the house, Kriya is playing with Kumari again.
Cast
Priyanka Upendra as Priya
Yuvina Parthavi as Kriya
Madhusudan as Father Mosis
Aishwarya Shindogi as Sneha
Vatsala Mohan as Vatsala
Sandeep as John
Sidlingu Sridhar as James
Production
The trailer of Mummy was launched on 30 June 2016 at ETA Mall, Bengaluru, the grand event was graced by her husband Realstar Upendra and actress Tara.
References
External links
2016 horror films
2016 films
2010s supernatural horror films
2010s Kannada-language films
Indian supernatural horror films
|
George Peter Metesky (November 2, 1903 – May 23, 1994), better known as the Mad Bomber, was an American electrician and mechanic who terrorized New York City for 16 years in the 1940s and 1950s with explosives that he planted in theaters, terminals, libraries and offices. Bombs were left in phone booths, storage lockers and restrooms in public buildings, including Grand Central Terminal, Pennsylvania Station, Radio City Music Hall, the New York Public Library, the Port Authority Bus Terminal and the RCA Building, and in the New York City Subway. Metesky also bombed movie theaters, where he cut into seat upholstery and slipped his explosive devices inside.
Angry and resentful about events surrounding a workplace injury suffered years earlier, Metesky planted at least 33 bombs, of which 22 exploded, injuring 15 people.
The hunt for the bomber enlisted an early use of offender profiling. He was apprehended in 1957 based on clues given in letters he wrote to a newspaper. He was found legally insane and committed to a state mental hospital.
Industrial injury
Following World War I, Metesky joined the U.S. Marines, serving as a specialist electrician at the United States Consulate in Shanghai. Returning home, he went to work as a mechanic for a subsidiary of the Consolidated Edison utility company and lived in Waterbury, Connecticut, with his two unmarried sisters. In 1931, Metesky was working as a generator wiper at the company's Hell Gate generating plant when a boiler backfire produced a blast of hot gases. The blast knocked Metesky down and the fumes filled his lungs, choking him.
The accident left him disabled and, after collecting 26 weeks of sick pay, he lost his job. According to claims disputed by Consolidated Edison, the accident led to pneumonia that in turn developed into tuberculosis. A claim for workers' compensation was denied because he waited too long to file it. Three appeals of the denial were also rejected, the last in 1936. He developed a hatred for the company's attorneys and for the three co-workers whose testimony in his compensation case he believed was perjured in favor of the company.
Bombs
He planted his first bomb on November 16, 1940, leaving it on a window sill at the Consolidated Edison power plant at 170 West 64th Street in Manhattan.
His first two bombs drew little attention, but the string of random bombings that began in 1951 frayed the city's nerves and taxed the resources of the New York City Police Department (NYPD). Metesky often placed warning calls to the buildings where he had planted bombs, but would not specify the bomb's exact location. He wrote to newspapers warning that he planned to plant more.
Some bombs came with notes, but the note never revealed a motive, or a reason for choosing that particular location.
Metesky's bombs were gunpowder-filled pipe bombs, ranging in size from long and from in diameter. Most used timers constructed from flashlight batteries and cheap pocket watches. Investigators at bomb sites learned to look for a wool sock – Metesky used these to transport the bombs and sometimes to hang them from a rail or projection.
Between 1940 and 1956, Metesky planted at least 33 bombs, of which 22 exploded, injuring 15 people.
1940–1941
Metesky's first bomb was crude, a short length of brass pipe filled with gunpowder, with an ignition mechanism made of sugar and flashlight batteries. Enclosed in a wooden toolbox and left on a Consolidated Edison power plant window sill, it was found before it could go off. It was wrapped in a note written in distinctive block letters and signed "F.P.", stating
Some investigators wondered if the bomb was an intentional dud, since if it had exploded the note would have been obliterated.
In September 1941, a bomb with a similar ignition mechanism was found lying in the street about five blocks away from the Consolidated Edison headquarters building at 4 Irving Place. This one had no note, and was also a dud. Police theorized that the bomber might have spotted a police officer and dropped the bomb without setting its fuse.
Shortly after the United States entered World War II in December 1941, the police received a letter in block capital letters:
1951–1956
True to his word, Metesky planted no bombs between 1941 and 1951, choosing instead to send letters and postcards to police stations, newspapers, private citizens and Con Edison. Investigators studying the penciled, block-lettered messages noted that the letters G and Y had an odd shape, possibly indicating a European education. The long hiatus since the last bomb and the improved construction techniques of the first new bomb led investigators to believe that the bomber had served in the military.
For his new wave of bombings, Metesky mainly chose public buildings as targets, bombing several of them multiple times. Bombs were left in phone booths, storage lockers and restrooms in public buildings including Grand Central Terminal (five times), Pennsylvania Station (five times), Radio City Music Hall (three times), the New York Public Library (twice), the Port Authority Bus Terminal (twice) and the RCA Building, as well as in the New York City Subway. Metesky also bombed movie theaters, where he cut into seat upholstery and slipped his explosive devices inside.
1951
On March 29, the first Metesky bomb of the new wave, and also the first Metesky bomb to explode, startled commuters in Grand Central Terminal but injured no one. It had been dropped into a sand urn near the Grand Central Oyster Bar & Restaurant on the terminal's lower level. In April, Metesky's next bomb exploded without injury in a telephone booth in the New York Public Library. In August a phone-booth bomb exploded without injury at Grand Central.
Police dismissed the event as the work of "boys or pranksters". The New York Times reported the event in the following day's issue, though only with a three-paragraph brief at the bottom of page 24.
Metesky next planted a bomb that exploded without injury in a phone booth at the Consolidated Edison headquarters building at 4 Irving Place. He also mailed one bomb, which did not explode, to Consolidated Edison from White Plains, New York.
On October 22, the New York Herald Tribune received a letter in penciled block letters, stating
The letter directed police to the Paramount Theater in Times Square, where a bomb was discovered and disabled, and to a telephone booth at Pennsylvania Station where nothing was found.
On November 28, a coin-operated locker at the IRT 14th Street subway station was bombed, without injury. Near the end of the year, the Herald Tribune received another letter, warning:
1952
On March 19, a bomb exploded in a phone booth at the Port Authority Bus Terminal without causing injury. In June and again in December bombs exploded in seats at the Lexington Avenue Loew's theater. The December bombing injured one person, and was the first Metesky bomb to cause injury. Police had asked the newspapers not to print any of the bomber's letters and to play down earlier bombings, but by now the public was becoming aware that a "Mad Bomber" was on the loose.
1953
Bombs exploded in seats at Radio City Music Hall and at the Capitol Theater, with no injuries. A bomb again exploded near the Oyster Bar in Grand Central Terminal, this time in a coin-operated rental locker, again with no injuries. Police described this bomb as the homemade product of a "publicity-seeking jerk". An unexploded bomb was found in a rental locker at Pennsylvania Station.
1954
A bomb wedged behind a sink in a Grand Central Terminal men's room exploded in March, slightly injuring three men.
A bomb planted in a phone booth at the Port Authority Bus Terminal exploded with no injuries. Another bomb was discovered in a phone booth that was removed from Pennsylvania Station for repair.
As a capacity Radio City Music Hall audience of 6,200 watched Bing Crosby's White Christmas on November 7, a bomb stuffed into the bottom cushion of a seat in the 15th row exploded, injuring four patrons. The explosion was muffled by the heavy upholstery, and only those nearby heard it. While the film continued, the injured were escorted to the facility's first-aid room and about 50 people in the immediate area were moved to the back of the theater. After the film and the following stage show concluded an hour-and-a-half later, the police roped off 150 seats in the area of the explosion and began the search for evidence.
1955
A bomb exploded without injuries on the platform at the IRT Sutter Avenue subway station in Brooklyn. A bomb hung beneath a phone booth shelf exploded on the main floor of Macy's department store, with no injuries. Two bombs exploded without injuries at Pennsylvania Station, one in a rental locker and one in a phone booth. A bomb was found at Radio City Music Hall after a warning phone call.
At the Roxy Theater, a bomb dropped out of a slashed seat onto an upholsterer's workbench without exploding. A seat bomb exploded at the Paramount Theater; one patron was struck on the shoe by bomb fragments but disclaimed injury. Investigators discovered a small penknife pushed inside the seat, one of several found at theater seat bombings. They theorized that the bomber left his knives behind in case he was stopped and questioned. In December, a bomb exploded without injuries in a Grand Central men's-room stall.
1956
A 74-year-old men's-room attendant at Pennsylvania Station was seriously injured when a bomb in a toilet bowl exploded. A young man had reported an obstruction and the attendant tried to clear it using a plunger. Among the porcelain fragments, investigators found a watch frame and a wool sock.
A guard at the RCA Building in Rockefeller Center discovered a piece of pipe about five inches long in a telephone booth. A second guard thought it might be useful in a plumbing project and took it home on the bus to New Jersey, where it exploded on his kitchen table early the next morning. No one was injured.
A December 2 bombing at the Paramount Theater in Brooklyn left six of the theater's 1,500 occupants injured, one seriously, and drew tremendous news coverage and editorial attention. The next day, Police Commissioner Stephen P. Kennedy ordered what he called the "greatest manhunt in the history of the Police Department".
On December 24, a New York Public Library clerk using a phone booth dropped a coin. Looking up after he retrieved it, he saw a maroon-colored sock held to the underside of the shelf by a magnet. The sock contained an iron pipe with a threaded cap on each end. After consulting with other employees, he threw the device out a window into Bryant Park, bringing the bomb squad and more than 60 NYPD police officers and detectives to the scene.
In a letter to the New York Journal American the next month, Metesky said that the Public Library bomb, as well as one discovered later the same week inside a seat at the Times Square Paramount, had been planted months before.
1957 discovery
Eight months after Metesky's January 1957 arrest, a bomb not found in several police searches was discovered at the Lexington Avenue Loew's Theater by an upholsterer repairing a recently vandalized seat. It was the last of the three bombs Metesky said he had planted there. The first two had exploded, one in June 1952 and one in December 1952, with the December explosion resulting in one injury.
As of the Loew's discovery, only two of the dozens of bombs that Metesky claimed to have planted remained unaccounted for: one at a Con Edison site on the East River, the other at the Embassy Theater at 7th Avenue and 47th Street.
With the finding of the third Loew's bomb, police closed their "Mad Bomber" case, saying that their searches of the two remaining locations had been so thorough that they were satisfied that the bombs were no longer there, if indeed they ever had been.
Search
Throughout the investigation, the prevailing theory was that the bomber was a former Con Edison employee with a grudge against the company. Con Edison employment records were reviewed, but there were hundreds of other leads, tips and crank letters to be followed up on. Detectives ranged far and wide, checking lawsuit records, mental hospital admissions, vocational schools where bomb parts might be made. Citizens turned in neighbors who behaved oddly, and co-workers who seemed to know too much about bombs. A new group, the Bomb Investigation Unit, was formed to work on nothing but bomber leads.
In April 1956, the department issued a multi-state alert for a person described as a skilled mechanic, with access to a drill press or lathe (for its ability to thread pipe), who posted mail from White Plains, was over 40, and had a "deep-seated hatred of the Consolidated Edison Company". A warning circular picturing a homemade pipe bomb similar to the bomber's was distributed. Police distributed samples of the bomber's distinctive printing and asked anyone who might recognize it to notify them. A review of drivers' license applications in White Plains, the city favored by the bomber for posting his mail, found similarities in 500 of them to the bomber's printing; the names were forwarded to the NYPD for investigation.
The December 2, 1956, bombing of the Brooklyn Paramount drew tremendous news coverage and editorial attention. The following day, Police Commissioner Stephen P. Kennedy met with commanders of every NYPD division and ordered what he called the "greatest manhunt in the history of the Police Department". Calling the bomber's activities "an outrage that cannot be tolerated", he promised "an immediate good promotion" to whoever arrested the bomber, and directed commanders to alert every member of the force to the absolute necessity of a capture.
On December 27, 1956, the New York City Board of Estimate and the Patrolmen's Benevolent Association posted $26,000 in rewards for the bomber's apprehension.
Distractions
Throughout the search, simulated bombs and false bomb reports wasted police resources and frightened an already nervous public.
Around 1951 Frederick Eberhardt, 56 years old and like Metesky a former Con Edison employee with a grudge, sent a simulated pipe bomb filled with sugar to the company's personnel director at 4 Irving Place. Eberhardt was charged with sending threatening material through the mails. At his arraignment in November, an assistant district attorney told the judge, "This defendant is a particular source of annoyance to the New York City police. We are firmly convinced that he is not of sound mind. He has been sending simulated bombs around the city the past few months. Hundreds of police have been called out at all hours of the day and night to investigate because of his actions."
Eberhardt was sent to Bellevue Hospital for psychiatric examination. Several months later the case was dismissed after Eberhardt's lawyer argued successfully that the package contained no "written threats", as the law required.
In October 1951, the main waiting room at Grand Central Terminal was emptied and 3,000 lockers were searched after a telephoned bomb warning. The search involved more than 35 NYPD personnel, and took three hours because 1,500 of the lockers were in use and only one master key was available. As each locker was opened, the head of the bomb squad palpated its contents, keeping a portable fluoroscope at the ready.
On December 29, 1956, at the height of false bomb reports from theaters, department stores, schools and offices, a note left in a phone booth at Grand Central Terminal reported that a bomb had been placed at the Empire State Building, requiring a search of all 102 floors of the landmark. A 63-year-old railroad worker picked up at Grand Central as a suspect died of a heart attack while being questioned at the East 35th Street station house. Later investigation eliminated him as a suspect.
Profile
Fingerprint experts, handwriting experts, the bomb investigation unit and other NYPD groups worked with dedication but made little progress. With traditional police methods seemingly useless against Metesky's erratic bombing campaign, police captain John Cronin approached his friend James A. Brussel, a criminologist, psychiatrist, and assistant commissioner of the New York State Commission for Mental Hygiene. Captain Cronin asked Brussel to meet with Inspector Howard E. Finney, head of the NYPD's Crime Laboratory.
In his office with Finney and two detectives, Brussel examined the crime-scene photos and letters and discussed the bomber's metal-working and electrical skills. As he talked with the police, Brussel developed what he called a kind of "portrait" of the bomber, what would now be called an offender profile. The bomber's belief that he had been wronged by Consolidated Edison and by others acting in concert with Consolidated Edison seemed to dominate his thoughts, leading Brussel to conclude that the bomber was suffering from paranoia, a condition he describes as "a chronic disorder of insidious development, characterized by persistent, unalterable, systematized, logically constructed delusions." Based on the evidence and his own experience dealing with psychotic criminals, Brussel put forth a number of theories beyond the obvious grudge against Consolidated Edison:
Brussel additionally predicted to his visitors that when the bomber was caught, he would be wearing a double-breasted suit, buttoned.
Although the police policy had been to keep the bomber investigation low-key, Brussel convinced them to heavily publicize the profile, predicting that any wrong assumption made in it would prod the bomber to respond. Under the headline "16-Year Search for a Madman", the New York Times version of the profile summarized the major predictions:
Newspapers published the profile on December 25, 1956, alongside the story of the so-called "Christmas Eve" bomb discovered in the Public Library. By the end of the month, bomb hoaxes and false confessions had risen to epidemic proportions. At the peak of the hysteria on December 28, police received over 50 false bomb alarms, over 20 the next day.
Journal-American letters
The day after the profile was published, the New York Journal-American published an open letter, prepared in cooperation with the police, urging the bomber to give himself up. The newspaper promised a "fair trial" and offered to publish his grievances. Metesky wrote back the next day, signing his letter "F.P.". He said that he would not be giving himself up, and revealed a wish to "bring the Con. Edison to justice". He listed all the locations where he had placed bombs that year, and seemed concerned that perhaps not all had been discovered. Later in the letter he said
After some editing by the police, the newspaper published Metesky's letter on January 10, along with another open letter asking him for more information about his grievances.
Metesky's second letter provided some details about the materials used in the bombs (he favored pistol powder, as "shotgun powder has very little power"), promised a bombing "truce" until at least March 1, and wrote "I was injured on job at Consolidated Edison plant – as a result I am adjudged – totally and permanently disabled", going on to say that he had to pay his own medical bills and that Consolidated Edison had blocked his workers' compensation case. He also said
After police editing, the newspaper published his letter on January 15 and asked the bomber for "further details and dates" about his compensation case so that a new and fair hearing could be held.
Metesky's third letter was received by the newspaper on Saturday, January 19. The letter complained of lying unnoticed for hours on "cold concrete" after his injury without any first aid being rendered, then developing pneumonia and later tuberculosis. The letter added details about his lost compensation case and the "perjury" of his co-workers, and gave the date of his injury, September 5, 1931. The letter suggested that if he did not have a family that would be "branded" by his giving himself up, he might consider doing so to get his compensation case reopened.
He thanked the Journal-American for publicizing his case and said "the bombings will never be resumed." This letter was published Tuesday, the day after Metesky was arrested.
Identification
Con Edison clerk Alice Kelly had for days been scouring company workers' compensation files for employees with a serious health problem. On Friday, January 18, 1957, while searching the final batch of "troublesome" worker's compensation case files – those where threats were made or implied – she found a file marked in red with the words "injustice" and "permanent disability", words that had been printed in the Journal-American.
The file indicated that one George Metesky, an employee from 1929 to 1931, had been injured in a plant accident on September 5, 1931. Several letters from Metesky in the file used wording similar to the letters in the Journal-American, including the phrase "dastardly deeds". The police were notified shortly before 5:00 that evening. They initially treated the notification as just "one of a number" of leads they were working on, but asked Waterbury police to do a "discreet check" on George Metesky and the house at 17 Fourth Street.
After Metesky's arrest, early police statements credited the finding of his file to an NYPD detective. Later, a report developed in a reward investigation conceded that Alice Kelly had found the file, and explained the misplaced credit as due to a misunderstanding of the file being "picked up" by the detective (at the Con Edison offices on Monday morning) as meaning that the file was "picked out" (of many). Although the NYPD did officially credit Kelly with turning up the clue that led to Metesky's arrest, she declined to claim the $26,000 in rewards, saying she had merely been doing her job. Consolidated Edison's board of directors also declined to file for the reward, prompting a group of shareholders to file as representatives of Kelly and the company.
Police investigators who later reviewed the path that led them to Metesky said that Con Edison had impeded the investigation for almost two years by repeatedly telling them that the records of employees whose services were terminated prior to 1940, the group Metesky was in, had been destroyed. The investigators said that they had learned of the records' existence only on January 14, through a confidential tip, and that even in the face of police demands and formal requests Con Edison stalled, declaring that the papers were legal documents and that the company's legal department would have to be consulted before granting access. A statement by the president of Consolidated Edison said this was due to a "misunderstanding".
Arrest
Accompanied by Waterbury police, four NYPD detectives arrived at Metesky's home with a search warrant shortly before midnight on Monday, January 21, 1957. They asked him for a handwriting sample, and to make a letter G. He made the G, looked up and said, "I know why you fellows are here. You think I'm the Mad Bomber." The detectives asked what "F.P." stood for, and he responded, "F.P. stands for Fair Play."
He led them to the garage workshop, where they found his lathe. Back in the house they found pipes and connectors suitable for bombs hidden in the pantry, as well as three cheap pocket watches, flashlight batteries, brass terminal knobs, and unmatched wool socks of the type used to transport the bombs. Metesky had answered the door in pajamas; after he was ordered to get dressed for the trip to Waterbury Police Headquarters, he reappeared wearing a double-breasted suit, buttoned.
Interrogation
Metesky told the arresting officers that he had been "gassed" in the Con Edison accident, had contracted tuberculosis as a result, and started planting bombs because he "got a bum deal". Going over a police list of 32 bomb locations, but never using the word "bomb", he remembered the exact date where each "unit" had been placed, and its size. He then added to the police list the size, date and location of 15 early bombs the police had not known about – all left at Con Edison locations, and apparently never reported.
When his Con Edison bombs were not mentioned in the newspapers, he started planting bombs in public places to gain publicity for what he termed the "injustices" done him. He also confirmed the reason no bombs were planted during the United States' involvement in World War II – the former marine had abstained "for patriotic reasons".
In their search, police found parts for a bomb that would have been larger than any of the others. Metesky explained that it was intended for the New York Coliseum.
Indictment
Metesky admitted to placing 32 bombs. After a grand jury heard testimony from 35 witnesses including police experts and those injured, he was indicted on 47 charges – of attempted murder, damaging a building by explosion, maliciously endangering life, and violation of New York State's Sullivan Law by carrying concealed weapons, the bombs. Seven counts of attempted murder were charged, based on the seven persons injured in the preceding five years, the statute of limitations in the case. Metesky was brought to the courtroom to hear the charges from Manhattan's Bellevue Hospital, where he had been undergoing psychiatric examination.
Commitment to Matteawan
After hearing from psychiatric experts, Judge Samuel Liebowitz declared the tubercular Metesky a paranoid schizophrenic, "hopeless and incurable both mentally and physically", and found him legally insane and incompetent to stand trial. On April 18, 1957, Judge Liebowitz committed Metesky to the Matteawan Hospital for the Criminally Insane at Beacon, New York.
Expected to live only a few weeks due to his advanced tuberculosis, Metesky had to be carried into the hospital. After a year and a half of treatment, his health had improved, and a newspaper article written fourteen years later described the 68-year-old Metesky as "vigorous and healthy looking".
While he was at Matteawan, the Journal-American hired a leading workers' compensation attorney Bartholomew James O'Rourke to appeal his disallowed claim for the 1931 injury, on the grounds that Metesky was mentally incompetent at the time and did not know his rights. The appeal was denied.
Metesky was unresponsive to psychiatric therapy, but was a model inmate and caused no trouble. He was visited regularly by his sisters and occasionally by Brussel, to whom he would point out that he had deliberately built his bombs not to kill anyone.
Release
In 1973, the United States Supreme Court ruled that a mentally ill defendant cannot be committed to a hospital operated by the New York State Department of Correctional Services unless a jury finds him dangerous. Since Metesky had been committed to Matteawan without a jury trial, he was transferred to the Creedmoor Psychiatric Center, a state hospital outside the correctional system.
Doctors determined that he was harmless, and because he had already served two-thirds of the 25-year maximum sentence he would have received at trial, Metesky was released on December 13, 1973. The single condition was that he make regular visits to a Connecticut Department of Mental Hygiene clinic near his home.
Interviewed by a reporter upon his release, he said that he had forsworn violence, but reaffirmed his anger and resentment toward Consolidated Edison. He also stated that, before he began planting his bombs,
Metesky returned to his home in Waterbury, where he died 20 years later in 1994 at the age of 90.
References
Further reading
Cannell, Michael (2017). Incendiary: The Psychiatrist, The Mad Bomber and the Invention of Criminal Profiling. Minotaur Books. .
Greenburg, Michael M. (2011). The Mad Bomber of New York: The Extraordinary True Story of the Manhunt that Paralyzed a City. Union Square Press. .
External links
Footage of the arrest of Metesky Newsreel February 11, 1957, Spanish Film Institute files. (video from 04:12, audio in Spanish)
Hearst Newsreel Footage Newsreel January 24, 1957, Hearst Newsreels from the UCLA Film & Television Archive.
1903 births
1994 deaths
American electricians
History of New York City
Improvised explosive device bombings in the United States
People acquitted by reason of insanity
People from Waterbury, Connecticut
People with schizophrenia
Place of birth missing
Serial bombers
Terrorist incidents in New York City
Terrorist incidents in the United States in the 1940s
Terrorist incidents in the United States in the 1950s
United States Marines
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.