text
stringlengths 1
22.8M
|
|---|
Augustus Fendler (January 10, 1813 – November 27, 1883), alternatively written as August Fendler, was a Prussian-born American natural history collector.
Early travels
Fendler first attended preparatory school at the age of 12. After four years, he discontinued his education for financial reasons and apprenticed for the town clerk. He disliked the work, and yearned for travel.
Fendler gained his first taste of exploration as a physician's assistant. He partook in an inspection trip of the cholera quarantine camps on the Russian border of Prussia. Upon his return, he briefly worked as a tanner, then spent a year in a polytechnical school based in Berlin. He dropped out and found his way to Bremen, eventually sailing to Baltimore, Maryland in 1836.
Fendler initially found work as a tanner in Philadelphia, then moved to New York City and pursued lamp manufacturing. The panic of 1837 lead to the closing of his shop, and consequently, he left New York for St. Louis in 1838. He resumed working in the lamp business, but left the city shortly before Christmas the same year.
Fendler continued south through New Orleans, before heading west to Texas. He was granted a land permit in Houston, but abandoned the claim as he had no rifle nor interest in fighting Comanches to secure the land.
Yellow fever drove Fendler from Texas, and he became a school teacher in Illinois. Suddenly driven by the desire for a solitary life, he settled in a dilapidated log cabin on an island on the Missouri River near Wellington. He remained here for six months, surviving off of wild game and reading. He left after the island became flooded. In 1841, he returned to Königsberg, Prussia.
Initial collections
Ernst Heinrich Friedrich Meyer, professor of botany at the University of Königsberg, convinced Fendler that he could make a profit collecting plant specimens. He went back to St. Louis with his brother, making the acquaintance of Georg Engelmann. Fendler began sending his specimens to Asa Gray at the behest of Engelmann. During the Mexican American War in 1846, Fendler traveled with the U.S Army to Santa Fe, New Mexico. He collected specimens throughout the year, once again returning to St. Louis in 1847. His collection is hailed as the first from this part of the country, and he collected over 17,000 specimens during this trip.
In 1849, he attempted to travel to the Great Salt Lake, but a flood stymied his progress. On his return to St. Louis, he found a fire destroyed all his possessions, personal collections, and travel journals. He left the city with his brother, and continued to New Orleans. He gathered supplies for a collecting trip at Englemann's expense, and sailed to Chagres, Panama.
Fendler collected at the mouth of the Chagres River for four months. He arrived back in New Orleans on April 20, 1850, but continued up to Camden, Arkansas to make further collections. The Fendler brothers, running low on funds, opened up a gas lamp business in Memphis, Tennessee. Fendler continued to collect plants in his spare time, and began running horticultural experiments with some of the specimens he collected. He reported his data to Englemann and the Smithsonian Institution. By late 1853, the lamp business became unprofitable and Fendler sought to move again.
Venezuelan collections
On the December 24, 1853, the Fendlers left New York harbor for Venezuela. They arrived at La Guaira on January 21, 1854, and Fendler immediately began collecting plants. Although initially hoping to settle in Caracas, the expensive cost of living in the city prompted them to purchase a small farm near Colonia Tovar. In Venezuela, he not only collected plants, but also operated meteorological studies during his stay. He collaborated with Joseph Henry of the Smithsonian Institution, who published his observations.
After two years of collecting in Colonia Tovar, Fendler was forced to take longer excursions to find new specimens. He traveled from Maracai to Puerto Colombia, as well as from Valencia to San Estevan. He also traveled from Petaquire to the Atlantic coast. Fendler visited the United States in 1856, selling moss specimens to William Starling Sullivant and lichen specimens to Edward Tuckerman.
Later life
The Fendlers returned to St. Louis in 1864, and they purchased a densely wooded tract of land in Allenton, Missouri. They cleared the land and homesteaded for the next 7 years. Fendler accepted a short-term offer from Asa Gray to work as his curator in Cambridge, Massachusetts. The brothers sold the farm in 1871, and visited Germany. Here, Fendler improved his botanical knowledge through visits with Johann Caspary and Alexander Braun. The brothers returned to the United States in 1873.
The brothers initially settled in Wilmington, Delaware, with Fendler finding employment arranging herbarium specimens for William Marriott Canby. Here he continued making meteorological observations for Engelmann. Discomfort caused by rheumatism had Fendler searching for a place with a fairer climate. Fendler therefore moved to Port of Spain, Trinidad in 1877.
Fendler continued collecting plants and corresponding with Canby, Gray and Engelmann until his death on November 27, 1883.
Eponyms
Genera
(Hydrangeaceae) Fendlera Engelm. & A.Gray
(Hydrangeaceae) Fendlerella (Greene) A.Heller
Species
(Adiantaceae) Argyrochosma fendleri (Kunze) Windham
(Annonaceae) Annona fendleri (R.E.Fr.) H.Rainer
(Apiaceae) Tiedemannia fendleri J.M.Coult. & Rose
(Apocynaceae) Amblyanthera fendleri Müll.Arg.
(Araceae) Monstera fendleri Engl.
(Araliaceae) Dendropanax fendleri Seem.
(Asclepiadaceae) Funastrum fendleri Schltr.
(Asteraceae) Heteropleura fendleri (Sch.Bip.) Rydb.
(Blechnaceae) Spicanta fendleri (Hook.) Kuntze
(Cactaceae) Echinocereus fendleri (Engelm.) Sencke ex J.N.Haage
(Malvaceae) Sphaeralcea fendleri A.Gray
(Ranunculaceae) Thalictrum fendleri Engelm. ex A.Gray
(Selaginellaceae) Selaginella fendleri (Underw.) Hieron.
Publications
Fendler, Augustus. The Mechanism of the Universe, and Its Primary Effort-Exerting Powers. The Nature of Force and the Constitution of Matter. Commercial Printing Co., 1874.
References
1813 births
1883 deaths
Natural history collectors
|
The XM395 Precision Guided Mortar Munition (PGMM) is a 120 mm guided mortar round developed by Alliant Techsystems.
Design
Based on Orbital ATK's Precision Guidance Kit for 155 mm artillery projectiles, XM395 combines GPS guidance and directional control surfaces into a package that replaces standard fuzes, transforming existing 120 mm mortar bodies into precision-guided munitions. The XM395 munition consists of a GPS-guided kit fitted to standard 120 mm smoothbore mortar rounds that includes the fitting of a nose and tail subsystem containing the maneuvering parts.
History
The U.S. Army began seeking a guided mortar in response to fighting conditions experienced during the War in Afghanistan. Taliban fighters often engaged troops in small unit actions from prepared fighting positions on ridgelines and high ground. These types of ambushes offered limited exposure targets to direct fire weapons, and close air support was limited from rules of engagement and bad weather. Troops also spotted Taliban movements along distant ridgelines or valleys but didn't have the range with direct fire weapons to engage them. Because of this, the Army started the Accelerated Precision Mortar Initiative (APMI) from an urgent operational needs statement in February 2009 to create a GPS-guided 120 mm mortar with accuracy of CEP at ; because APMI was an urgent request, it was accelerated by an Other Transaction Authority rather the traditional acquisition process. GPS was chosen over laser designation as the guidance system because the enemy frequently ducked down behind ridges and rock outcroppings, so laser designation would have limited ability to target them, while a GPS round could give accurate targeting even when taking cover behind obstacles. In April 2010, the Army announced that ATK had won a competitive shoot-off during the winter against competitors Raytheon and General Dynamics, and been selected to provide a new precision-guided mortar under the APMI needs statement.
Soldiers of an Infantry Brigade Combat Team received the first APMI cartridges in March 2011, with plans to field them in all seven deployed IBCTs within six months. The first shell was fired on 26 March by Company C, 1-506th Infantry, 4th Brigade Combat Team, 101st Airborne Division, which landed four meters from the target. Heavy mortars are traditionally employed at battalion-level for immediate fire suppression and support, but they were the primary indirect fire weapon available to remote forward operating bases, so guided mortars gave a battalion commander accurate artillery fire without needing to request an M982 Excalibur from a brigade-level howitzer. The ATK XM395 PGMM cartridge uses a standard M934 high-explosive 120 mm projectile body with a GPS receiver in the nose and computer controlled aerodynamic directional fins for stability and to keep it on the programmed trajectory. It has a multi-mode airburst, point detonation, and delay fuse. Unguided 120 mm mortars have accuracy of at maximum range, which can be reduced to with precision position and pointing systems. The PGMM can hit within 10 meters of a target, and often hits within four, making it seven times more accurate. Although not designed to replace unguided mortars, the PGMM allows mortar teams to eliminate point targets that would require 8-10 rounds using one or two. This lengthens the amount of time a typical team with 25 rounds can operate and increases the number of targets it can engage without needing resupply. It also expands potential target zones that previously required soldiers to clear because inaccurate artillery would cause collateral damage, since insurgents deliberately attacked from populated areas hoping troops wouldn't risk civilian casualties. The XM395 kit costs $10,000 each, much less than the guided Excalibur 155 mm shell. There is also no current requirement for guidance for 60 mm or 81 mm mortars.
In July 2012, the Army announced fielding of the APMI precision mortar to Stryker Brigade Combat Teams in Afghanistan. Previously, the rounds were fielded by dismounted troops stationed on combat outposts. When paired with the M1129 Stryker Double-V Hull Mortar Carrier Vehicle (MCVV) mobile platform, it increases the battlespace where the guided rounds can be used.
The Army bought 5,480 mortar guidance kits in response to an operational needs statement in Afghanistan, sometimes hitting as close as 2.2 meters from the target. With the success of the XM395, the Army is seeking a guided 120 mm mortar Program of Record with comparable accuracy through the High Explosive Guided Mortar (HEGM) proposal. Deliveries would not take place until around 2020, so ATK is pushing to continue orders of the XM395 to avoid an inventory gap if a contingency arises. HEGM seeks to improve upon APMI through increased range, reliability, and lethality. The Army developed its own HEGM prototype called the Guided Enhanced Fragmentation Mortar (GEFM), which will be made available to industry when a request for proposals is released to industry to offer their own smart mortar solutions. The HEGM program objective is to create a round accurate to within one meter CEP, with dual GPS/SAL guidance to hit targets that have relocated and to function in a GPS-degraded environment. The Army closed its initial solicitation period for designs in January 2017, and plans to award multiple contracts by the end of the year, leading to an open competition in 2018 and production beginning in 2021 with 14,000 HEGM rounds to be produced.
Program status
December 2004: Alliant Techsystems regains an $80 million contract from the U.S. Army to begin production on the XM395 precision-guided mortar munition after a protest by Lockheed Martin a year previously.
January 2006: Successfully completed the preliminary design review (PDR) stage.
February 2006: Successful ballistic flight test at Yuma Proving Grounds.
February 2007: Funding for program withdrawn in proposed FY2008 budget.
March 2007: Successful guided flight test.
April 2010: ATK's XM395 wins the U.S. Army's competition for the preferred mortar guidance kit.
March 2011: XM395 munition kit makes its combat debut in Afghanistan.
Export Customer - Singapore Army
In March 2017, the U.S. approved the sale of 2,000 XM395 APMI rounds to Singapore.
See also
Strix mortar round
GMM 120
M982 Excalibur
Precision Guidance Kit
Expeditionary Fire Support System
References
External links
Precision Guided Mortar Munition (PGMM) - ATK
M395 Precision-Guided Mortar Munition (PGMM) - Global Security
Precision Munitions for 120mm Mortars - Defense Update
Distributed Aperture Semi-Active Laser Seeker (DASALS) - BAE Systems
Mortar munitions
Alliant Techsystems
|
```java
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
////////////////////////////////////////////////////////////////////////////////
package com.firebase.jobdispatcher;
import android.net.Uri;
import android.support.annotation.NonNull;
import java.util.List;
/** The class contains a summary of the events which caused the job to be executed. */
public class TriggerReason {
private final List<Uri> triggeredContentUris;
TriggerReason(@NonNull List<Uri> mTriggeredContentUris) {
this.triggeredContentUris = mTriggeredContentUris;
}
@NonNull
public List<Uri> getTriggeredContentUris() {
return triggeredContentUris;
}
}
```
|
Munira Yamin Satti (died 7 January 2021) was a Pakistani politician who had been a member of the Provincial Assembly of the Punjab from 15 August 2018 to 7 January 2021.
Political career
She was elected to the Provincial Assembly of the Punjab as a candidate of Pakistan Muslim League (N) (PML-N) on a reserved seat for women in 2018 Pakistani general election.
Death
She died on 7 January 2021, due to COVID-19, during the COVID-19 pandemic in Pakistan.
References
Punjabi people
Pakistan Muslim League (N) MPAs (Punjab)
Year of birth missing
2021 deaths
Deaths from the COVID-19 pandemic in Punjab, Pakistan
|
```c++
#ifndef BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP
#define BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// polymorphic_xml_oarchive.hpp
// Use, modification and distribution is subject to the Boost Software
// path_to_url
// See path_to_url for updates, documentation, and revision history.
#include <boost/config.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/detail/polymorphic_oarchive_route.hpp>
namespace boost {
namespace archive {
typedef detail::polymorphic_oarchive_route<
xml_oarchive_impl<naked_xml_oarchive>
> polymorphic_xml_oarchive;
} // namespace archive
} // namespace boost
// required by export
BOOST_SERIALIZATION_REGISTER_ARCHIVE(
boost::archive::polymorphic_xml_oarchive
)
#endif // BOOST_ARCHIVE_POLYMORPHIC_XML_OARCHIVE_HPP
```
|
Richard Marles (born 1967) is an Australian politician and the incumbent Deputy Prime Minister of Australia.
Marles may also refer to:
Henry Marles (1871–1955), inventor of the Marles steering gear
Fay Marles (born 1926), Australian public servant and the mother of Richard Marles
|
Carlene King Johnson Drake (May 31, 1933 - April 15, 1969) was an American model and beauty pageant titleholder who won Miss USA 1955.
Johnson was from Rutland, Vermont. She attended Middlebury College, where she was a member of the Nu chapter Sigma Kappa sorority. She was a legacy of Sigma Kappa sorority, as her mother, Katherine King Johnson, was a member of the Alpha Kappa Chapter. She later attended the Forsyth School of Dental Hygiene at Tufts University in Boston, where she was voted Inter Fraternity Council Queen.
She was crowned Miss Vermont 1953 after which she went on to become Miss USA in 1955, Vermont's only representative (as of 2022) to achieve the national title.
Johnson was born to Dr. Norman and Katherine King Johnson. She had two brothers, named Lyman and Raymond E. On December 21, 1957, she married Lawrence Drake. They divorced in April 1966 after she discovered his adultery. On March 21, 1968, she married Don Carroll Holloway.
She has never made public appearance in her later years. At the age of 35, she was diagnosed with diabetes but managed to overcome it due to fund raising.
References
External links
Miss USA official website
Mention of Carlene King Johnson's death
Carlene King Johnson Holloway at Find-A-Grave
1933 births
1968 deaths
Beauty pageant contestants from Vermont
Miss America 1950s delegates
Miss Universe 1955 contestants
Miss USA winners
People from Rutland (town), Vermont
Middlebury College alumni
Tufts University School of Dental Medicine alumni
20th-century American people
|
José Menéndez Menéndez (1846–1918) was a Spanish businessman based in Argentina and Chilean Patagonia. He was the initiator of large companies that remain to this day.
Twenty-first century scholarship has uncovered the history of Menéndez and his business partners in the Braun family in the genocide of the Selk'nam people of Patagonia.
Biography
Early years
Menéndez was born in Santo Domingo de Miranda (Avilés), Spain, on November 2, 1846. Second child of seven, the marriage of Manuel Menéndez Cañedo and Alvarez, and María Menéndez Granda, peasants of modest means. The field work prevented him from receiving formal education, but he managed to acquire the rudiments of literacy and numeracy, thanks to his maternal uncle Joseph who was a teacher. At a young age he left his homeland in search of opportunity in America, after passing through the island of Cuba, until finally settling in Argentina.
In 1866 José Menéndez Menéndez arrived in Buenos Aires. He was employed as a bookkeeper in signatures Corti Riva y Cia. and then Etchart and Co. firm. These jobs familiarized him with the shipping business, a sector that years later would develop in Patagonia, where he worked as a merchant, businessman and cattle shipping.
Marriage and family
On March 19, 1873, he married María Behety Chapital, born on May 24, 1848, in Montevideo, the daughter of the French Basque couple Félix Behety and María Chapital. The wedding was held at the Church of La Merced, Buenos Aires, a city where the family settled for a while. Menéndez had nine children: Alexander and Josephine, born in Buenos Aires; Jose, Julio and Maria, born in Punta Arenas. María died as an infant of pulmonary ailments. Mary (II), Alfonso, Charles and Herminia, were born in Punta Arenas. Josephine married Maurice Braun, a businessman and associate of Jose Menéndez, and Charles, a lawyer, married to Cristina García González Bonorino. Mary married businessman Francisco Campos Torreblanca.
During the military revolt in Punta Arenas known as the Mutiny of the Gunners (1877), the city suffered damage and acts of barbarism. Among the acts committed, is the loss of a leg to gangrene by Maria Behety because of a wound by a stray bullet in the forest, amputated by a doctor who had fled the city with them.
In Patagonia
In 1874 José Menéndez moved to Punta Arenas, Chile, which later became his residence and base of their core business. In 1876, he began the business of sheep farming, carrying sheep from the Falkland Islands, under the company "José Menéndez and Co." and the Estancia San Gregorio, now historic site of the Chilean commune, under the same name.
In September 1892 the steamship Amadeo arrived in Punta Arenas on its maiden voyage, carrying bricks to build the family home. It was the first of the ships of their property. The Amadeus has been declared a National Monument by the Chilean Government, and its remains are on the beaches of the bay of San Gregorio (Chile), on the Strait of Magellan.
In 1894 José Menéndez traveled with the Salesian Father José María Beauvoir to land south of the Rio Grande, in the Argentine territory. Later, in 1896, founded the First Estancia of Argentina of that he bought from the Argentinian Government. Currently this is Estancia José Menéndez, located 17 km. southwest of the Rio Grande. Jose Menendez founded a new branch of his business house in the city of Rio Gallegos, and shortly thereafter in Santa Cruz.
In 1893 he participated in the first group of shareholders of the Sociedad Explotadora de Tierra del Fuego (SETF), where he owned 200 shares and a share of over 15%. The Society set up a sheep empire that spanned much of Patagonia. Their main remnant is the Cold Storage Plant of Bories, located in Puerto Bories, now converted into a hotel.
In Punta Arenas, they opened many of the houses and buildings including a theater.
Later, in 1897, he opened a second venture livestock, after the success he had obtained in Estancia "Primera Argentina", he created the "Second Argentina". Currently Estancia María Behety, located 15 km. northwest of the city of Rio Grande, where in 1935 he built the shearing shed still "the largest of the world".
In 1903, he bought land adjacent to Gregory Bay on the Strait of Magallanes. That way, he owned 430,000 hectares in Tierra del Fuego.
After becoming and seen as one of the greatest landowners then began new business, among many others, bought the mine Loreto, to Agustin Ross, created the fat-rendering and manufacturing of packaged meat in the great factory of Jose Menendez, base of the "Sociedad Explotadora de Tierra del Fuego", increased its maritime fleet well, started a stimulus for the creation of roads and highways in the south organized banks and colonized vast southern regions.
In 1907, due to the financial crisis was associated with Mauricio Braun, until then its main competitor and son, when he married Josefina Menéndez Behety.
In 1910, he founded the Company and Commercial Cattle Behety Menendez, based in Punta Arenas. And then he formed the company with Import and Export of Patagonia. Its activities included convenience stores, cattle farms and shipping fleet. In the 1960s most of the assets of the society were cleared and gave impetus to the chain of supermarkets La Anonima with over one hundred branches throughout Patagonia and the central Argentina province of Buenos Aires. Late in the 20th century, the stock package focused on the heirs of the Mauricio Braun family.
Genocide of the Selk'nam people
In the 21st century, the Historical Truth Commission of 2008 and related scholarship uncovered the involvement of the Menéndez and Braun families in the genocide of the Selk'nam people, calling into question their laudable reputation.
Death
José Menéndez died on April 24, 1918, at age 71 in Buenos Aires, where he owned residence. He was buried in the cemetery in Punta Arenas.
References
Works cited
Martinic Beros, Mateo. Menéndez y Braun, prohombres patagónicos. Edition of Universidad de Magallanes. pp. 433. Consulted on November 2, 2010.
1846 births
1918 deaths
People from Avilés
Spanish mass murderers
19th-century Spanish businesspeople
History of Patagonia
20th-century Spanish businesspeople
Genocide perpetrators
|
Gino Gallagher (c. 1963 – 30 January 1996) was an Irish republican who was Chief of Staff of the Irish National Liberation Army.
Murder
On the morning of 30 January 1996 Gallagher attended a social security office on the Falls Road where he signed on every two weeks. As he stood at the counter he was shot four times in the back of the head by a gunman and died instantly.
Gallagher's killing followed internal disagreements over the future of the republican socialist movement. The opposing "INLA-GHQ" faction, led by former Chief of Staff Hugh Torney disbanded in September of the same year following Torney's killing.
Kevin McAlorum, who was paid to kill Gallagher by Torney's faction, was himself murdered in 2004, although this was not linked to any political dispute.
References
External links
Hume raises Irish peace hopes The Independent, 31 January 1996
1963 births
1996 deaths
Deaths by firearm in Northern Ireland
Irish National Liberation Army members
Irish republicans
People killed during The Troubles (Northern Ireland)
|
```yaml
plural : "1"
direction : "LTR"
numbers {
formats {
currency : "#,##0.00;(#,##0.00)"
}
}
currencies {
NGN {
symbol : ""
}
}
datetime {
formats {
date {
full : "EEEE, d MMMM y"
long : "d MMMM y"
medium : "d MMM y"
short : "dd/MM/y"
}
time {
full : "h:mm:ss a zzzz"
long : "h:mm:ss a z"
medium : "h:mm:ss a"
short : "h:mm a"
}
}
formatNames {
months {
abbreviated {
1 : "r"
2 : "rl"
3 : "rn"
4 : "gb"
5 : "bibi"
6 : "kdu"
7 : "Agm"
8 : "gn"
9 : "Owewe"
10 : "wr"
11 : "Bl"
12 : "p"
}
wide {
1 : "O r"
2 : "O rl"
3 : "O rn"
4 : "O gb"
5 : "O bibi"
6 : "O kdu"
7 : "O Agm"
8 : "O gn"
9 : "O Owewe"
10 : "O wr"
11 : "O Bl"
12 : "O p"
}
}
days {
abbreviated {
sun : "k"
mon : "Aj"
tue : "sgun"
wed : "jr"
thu : "jb"
fri : "t"
sat : "bmta"
}
short {
sun : "k"
mon : "Aj"
tue : "sgun"
wed : "jr"
thu : "jb"
fri : "t"
sat : "bmta"
}
wide {
sun : "j k"
mon : "j Aj"
tue : "j sgun"
wed : "jr"
thu : "jb"
fri : "j t"
sat : "j bmta"
}
}
periods {
abbreviated {
am : "r"
pm : "sn"
}
narrow {
am : "r"
pm : "sn"
}
wide {
am : "r"
pm : "sn"
}
}
}
}
```
|
Dialytes striatulus is a species of aphodiine dung beetle in the family Scarabaeidae. It is found in North America.
References
Further reading
Scarabaeidae
Articles created by Qbugbot
Beetles described in 1825
|
```c
/* Generic hooks for the RTL middle-end.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
Software Foundation; either version 2, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
for more details.
along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "rtlhooks-def.h"
#include "expr.h"
#include "recog.h"
/* For speed, we will copy the RTX hooks struct member-by-member
instead of doing indirect calls. For these reason, we initialize
*two* struct rtl_hooks globals: rtl_hooks is the one that is used
to actually call the hooks, while general_rtl_hooks is used
to restore the hooks by passes that modify them. */
const struct rtl_hooks general_rtl_hooks = RTL_HOOKS_INITIALIZER;
struct rtl_hooks rtl_hooks = RTL_HOOKS_INITIALIZER;
rtx
gen_lowpart_general (enum machine_mode mode, rtx x)
{
rtx result = gen_lowpart_common (mode, x);
if (result)
return result;
/* If it's a REG, it must be a hard reg that's not valid in MODE. */
else if (REG_P (x)
/* Or we could have a subreg of a floating point value. */
|| (GET_CODE (x) == SUBREG
&& FLOAT_MODE_P (GET_MODE (SUBREG_REG (x)))))
{
result = gen_lowpart_common (mode, copy_to_reg (x));
gcc_assert (result != 0);
return result;
}
else
{
int offset = 0;
/* The only additional case we can do is MEM. */
gcc_assert (MEM_P (x));
/* The following exposes the use of "x" to CSE. */
if (GET_MODE_SIZE (GET_MODE (x)) <= UNITS_PER_WORD
&& SCALAR_INT_MODE_P (GET_MODE (x))
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (GET_MODE (x)))
&& ! no_new_pseudos)
return gen_lowpart_general (mode, force_reg (GET_MODE (x), x));
if (WORDS_BIG_ENDIAN)
offset = (MAX (GET_MODE_SIZE (GET_MODE (x)), UNITS_PER_WORD)
- MAX (GET_MODE_SIZE (mode), UNITS_PER_WORD));
if (BYTES_BIG_ENDIAN)
/* Adjust the address so that the address-after-the-data
is unchanged. */
offset -= (MIN (UNITS_PER_WORD, GET_MODE_SIZE (mode))
- MIN (UNITS_PER_WORD, GET_MODE_SIZE (GET_MODE (x))));
return adjust_address (x, mode, offset);
}
}
/* Similar to gen_lowpart, but cannot emit any instruction via
copy_to_reg or force_reg. Mainly used in simplify-rtx.c. */
rtx
gen_lowpart_no_emit_general (enum machine_mode mode, rtx x)
{
rtx result = gen_lowpart_if_possible (mode, x);
if (result)
return result;
else
return x;
}
rtx
reg_num_sign_bit_copies_general (rtx x ATTRIBUTE_UNUSED,
enum machine_mode mode ATTRIBUTE_UNUSED,
rtx known_x ATTRIBUTE_UNUSED,
enum machine_mode known_mode ATTRIBUTE_UNUSED,
unsigned int known_ret ATTRIBUTE_UNUSED,
unsigned int *result ATTRIBUTE_UNUSED)
{
return NULL;
}
rtx
reg_nonzero_bits_general (rtx x ATTRIBUTE_UNUSED,
enum machine_mode mode ATTRIBUTE_UNUSED,
rtx known_x ATTRIBUTE_UNUSED,
enum machine_mode known_mode ATTRIBUTE_UNUSED,
unsigned HOST_WIDE_INT known_ret ATTRIBUTE_UNUSED,
unsigned HOST_WIDE_INT *nonzero ATTRIBUTE_UNUSED)
{
return NULL;
}
bool
reg_truncated_to_mode_general (enum machine_mode mode ATTRIBUTE_UNUSED,
rtx x ATTRIBUTE_UNUSED)
{
return false;
}
/* Assuming that X is an rtx (e.g., MEM, REG or SUBREG) for a fixed-point
number, return an rtx (MEM, SUBREG, or CONST_INT) that refers to the
least-significant part of X.
MODE specifies how big a part of X to return.
If the requested operation cannot be done, 0 is returned.
This is similar to gen_lowpart_general. */
rtx
gen_lowpart_if_possible (enum machine_mode mode, rtx x)
{
rtx result = gen_lowpart_common (mode, x);
if (result)
return result;
else if (MEM_P (x))
{
/* This is the only other case we handle. */
int offset = 0;
rtx new;
if (WORDS_BIG_ENDIAN)
offset = (MAX (GET_MODE_SIZE (GET_MODE (x)), UNITS_PER_WORD)
- MAX (GET_MODE_SIZE (mode), UNITS_PER_WORD));
if (BYTES_BIG_ENDIAN)
/* Adjust the address so that the address-after-the-data is
unchanged. */
offset -= (MIN (UNITS_PER_WORD, GET_MODE_SIZE (mode))
- MIN (UNITS_PER_WORD, GET_MODE_SIZE (GET_MODE (x))));
new = adjust_address_nv (x, mode, offset);
if (! memory_address_p (mode, XEXP (new, 0)))
return 0;
return new;
}
else if (mode != GET_MODE (x) && GET_MODE (x) != VOIDmode)
return gen_lowpart_SUBREG (mode, x);
else
return 0;
}
```
|
```c
/* BFD back-end for i386 a.out binaries.
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* The only 386 aout system we have here is GO32 from DJ.
These numbers make BFD work with that. If your aout 386 system
doesn't work with these, we'll have to split them into different
files. Send me (sac@cygnus.com) the runes to make it work on your
system, and I'll stick it in for the next release. */
#define N_HEADER_IN_TEXT(x) 0
#define N_TXTOFF(x) 0x20
#define N_TXTADDR(x) (N_MAGIC(x)==ZMAGIC ? 0x1020 : 0)
#define N_TXTSIZE(x) ((x).a_text)
#if 0
#define N_DATADDR(x) (N_MAGIC(x)==OMAGIC? (N_TXTADDR(x)+(x).a_text) : (SEGMENT_SIZE + ((0x1020+(x).a_text-1) & ~(SEGMENT_SIZE-1))))
#define NOSUBEXECB
#endif
#define TARGET_PAGE_SIZE 4096
#define SEGMENT_SIZE 0x400000
#define DEFAULT_ARCH bfd_arch_i386
/* Do not "beautify" the CONCAT* macro args. Traditional C will not
remove whitespace added here, and thus will fail to concatenate
the tokens. */
#define MY(OP) CONCAT2 (i386aout_,OP)
#define TARGETNAME "a.out-i386"
#define NO_WRITE_HEADER_KLUDGE 1
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
#include "aout/aout64.h"
#include "libaout.h"
static bfd_boolean i386aout_write_object_contents PARAMS ((bfd *));
static bfd_boolean MY (set_sizes) PARAMS ((bfd *));
/* Set the machine type correctly. */
static bfd_boolean
i386aout_write_object_contents (abfd)
bfd *abfd;
{
struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd);
N_SET_MACHTYPE (*execp, M_386);
obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
WRITE_HEADERS (abfd, execp);
return TRUE;
}
#define MY_write_object_contents i386aout_write_object_contents
#define MY_backend_data &MY(backend_data)
static const struct aout_backend_data MY(backend_data) = {
0, /* zmagic contiguous */
1, /* text incl header */
0, /* entry is text address */
0, /* exec_hdr_flags */
0, /* text vma? */
MY(set_sizes),
1, /* exec header not counted */
0, /* add_dynamic_symbols */
0, /* add_one_symbol */
0, /* link_dynamic_object */
0, /* write_dynamic_symbol */
0, /* check_dynamic_reloc */
0 /* finish_dynamic_link */
};
#include "aout-target.h"
```
|
```xml
/**
* this handles how plugins are added to rxdb
* basically it changes the internal prototypes
* by passing them to the plugins-functions
*/
import {
RxSchema
} from './rx-schema.ts';
import {
basePrototype as RxDocumentPrototype
} from './rx-document.ts';
import {
RxQueryBase
} from './rx-query.ts';
import {
RxCollectionBase
} from './rx-collection.ts';
import {
RxDatabaseBase
} from './rx-database.ts';
import type {
RxPlugin
} from './types/index.d.ts';
import { overwritable } from './overwritable.ts';
import {
HOOKS,
runPluginHooks
} from './hooks.ts';
import { newRxError, newRxTypeError } from './rx-error.ts';
/**
* prototypes that can be manipulated with a plugin
*/
const PROTOTYPES: { [k: string]: any; } = {
RxSchema: RxSchema.prototype,
RxDocument: RxDocumentPrototype,
RxQuery: RxQueryBase.prototype,
RxCollection: RxCollectionBase.prototype,
RxDatabase: RxDatabaseBase.prototype
};
const ADDED_PLUGINS: Set<RxPlugin | any> = new Set();
const ADDED_PLUGIN_NAMES: Set<string> = new Set();
/**
* Add a plugin to the RxDB library.
* Plugins are added globally and cannot be removed.
*/
export function addRxPlugin(plugin: RxPlugin) {
runPluginHooks('preAddRxPlugin', { plugin, plugins: ADDED_PLUGINS });
// do nothing if added before
if (ADDED_PLUGINS.has(plugin)) {
return;
} else {
// ensure no other plugin with the same name was already added
if (ADDED_PLUGIN_NAMES.has(plugin.name)) {
throw newRxError('PL3', {
name: plugin.name,
plugin,
});
}
ADDED_PLUGINS.add(plugin);
ADDED_PLUGIN_NAMES.add(plugin.name);
}
/**
* To identify broken configurations,
* we only allow RxDB plugins to be passed into addRxPlugin().
*/
if (!plugin.rxdb) {
throw newRxTypeError('PL1', {
plugin
});
}
if (plugin.init) {
plugin.init();
}
// prototype-overwrites
if (plugin.prototypes) {
Object
.entries(plugin.prototypes)
.forEach(([name, fun]) => {
return (fun as any)(PROTOTYPES[name]);
});
}
// overwritable-overwrites
if (plugin.overwritable) {
Object.assign(
overwritable,
plugin.overwritable
);
}
// extend-hooks
if (plugin.hooks) {
Object
.entries(plugin.hooks)
.forEach(([name, hooksObj]) => {
if (hooksObj.after) {
HOOKS[name].push(hooksObj.after);
}
if (hooksObj.before) {
HOOKS[name].unshift(hooksObj.before);
}
});
}
}
```
|
The General Industrial Union of Furniture Makers and Woodworkers (, ABMH) was a trade union representing workers involved in making things with wood in the Netherlands.
The union was founded on 1 May 1871, as the Dutch Furniture Makers' Union, under the leadership of Bernardus Heldt. Later in the year, it was a founding affiliate of the General Dutch Workers' Union, of which Heldt also became the leader. However, in 1893, it left to join the National Labour Secretariat, and then in 1906 was a founding affiliate of the Dutch Confederation of Trade Unions (NVV).
The union affiliated to the International Federation of Woodworkers in 1906, in which it thereafter played a prominent role. In 1908, it absorbed the Dutch Wallpaperers', Upholsterers' and Bedmakers' Union, and renamed itself as the General Dutch Union of Furniture Makers, Wallpaperers and Related Workers. Despite this, its membership remained small, at only 2,285 in 1914.
The NVV reorganised its affiliates as industrial unions in the early 1950s, and in 1952, the union became the ABMH. By 1969, it had 9,724 members, and on 1 January 1971, it merged with the General Dutch Construction Union to form the General Dutch Union of the Building and Wood Industries.
Presidents
1871: Bernardus Heldt
N. Walop
Freek van de Walle
1919: Kees Woudenberg
1929:
c.1950: K. van den Berg
c.1960: H. Scholten
References
Furniture industry trade unions
Trade unions established in 1871
Trade unions disestablished in 1970
Trade unions in the Netherlands
|
```c++
#include <cctype>
#include <cstdint>
#include <fstream>
#include <boost/algorithm/string.hpp>
#include "filesystem.h"
#include "midgard/logging.h"
#include "mjolnir/osmdata.h"
#include "mjolnir/util.h"
using namespace valhalla::mjolnir;
namespace {
// Temporary files used during tile building
const std::string count_file = "osmdata_counts.bin";
const std::string restrictions_file = "osmdata_restrictions.bin";
const std::string viaset_file = "osmdata_viaset.bin";
const std::string access_restrictions_file = "osmdata_access_restrictions.bin";
const std::string bike_relations_file = "osmdata_bike_relations.bin";
const std::string way_ref_file = "osmdata_way_refs.bin";
const std::string way_ref_rev_file = "osmdata_way_refs_rev.bin";
const std::string node_names_file = "osmdata_node_names.bin";
const std::string unique_names_file = "osmdata_unique_strings.bin";
const std::string lane_connectivity_file = "osmdata_lane_connectivity.bin";
const std::string pronunciation_file = "osmdata_pronunciation_file.bin";
const std::string language_file = "osmdata_language_file.bin";
// Data structures to assist writing and reading data
struct TempRestriction {
uint64_t way_id;
OSMRestriction restriction;
TempRestriction() : way_id(0), restriction(OSMRestriction()) {
}
TempRestriction(const uint64_t w, const OSMRestriction& r) : way_id(w), restriction(r) {
}
};
struct TempWayRef {
uint64_t way_id;
uint32_t name_index;
TempWayRef() : way_id(0), name_index(0) {
}
TempWayRef(const uint64_t w, const uint32_t& index) : way_id(w), name_index(index) {
}
};
struct BikeRelation {
uint64_t way_id;
OSMBike relation;
BikeRelation() : way_id(0), relation(OSMBike()) {
}
BikeRelation(const uint64_t w, const OSMBike& r) : way_id(w), relation(r) {
}
};
struct TempAccessRestriction {
uint64_t way_id;
OSMAccessRestriction restriction;
TempAccessRestriction() : way_id(0), restriction(OSMAccessRestriction()) {
}
TempAccessRestriction(const uint64_t w, const OSMAccessRestriction& r) : way_id(w), restriction(r) {
}
};
struct TempLaneConnectivity {
uint64_t way_id;
OSMLaneConnectivity lane;
TempLaneConnectivity() : way_id(0), lane(OSMLaneConnectivity()) {
}
TempLaneConnectivity(const uint64_t w, const OSMLaneConnectivity& l) : way_id(w), lane(l) {
}
};
struct TempLinguistic {
uint64_t way_id;
OSMLinguistic linguistic;
TempLinguistic() : way_id(0), linguistic(OSMLinguistic()) {
}
TempLinguistic(const uint64_t w, const OSMLinguistic& l) : way_id(w), linguistic(l) {
}
};
bool write_restrictions(const std::string& filename, const RestrictionsMultiMap& res_map) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_restrictions failed to open output file: " + filename);
return false;
}
// Convert the multi map into a vector of TempRestriction
std::vector<TempRestriction> res;
for (auto it = res_map.cbegin(); it != res_map.cend(); ++it) {
res.emplace_back(it->first, it->second);
}
// Write the count and then the via ids
uint32_t sz = res.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(res.data()), res.size() * sizeof(TempRestriction));
file.close();
return true;
}
bool write_viaset(const std::string& filename, const ViaSet& via_set) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_viaset failed to open output file: " + filename);
return false;
}
// Create a vector to hold the elements of the via set
uint32_t i = 0;
std::vector<uint32_t> via_vector(via_set.size());
for (const auto v : via_set) {
via_vector[i] = v;
++i;
}
// Write the count and then the via ids
uint32_t sz = via_vector.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(via_vector.data()), via_vector.size() * sizeof(uint32_t));
file.close();
return true;
}
bool write_access_restrictions(const std::string& filename,
const AccessRestrictionsMultiMap& access_map) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_access_restrictions failed to open output file: " + filename);
return false;
}
// Convert the multi map into a vector of TempAccessRestriction
std::vector<TempAccessRestriction> res;
for (auto it = access_map.cbegin(); it != access_map.cend(); ++it) {
res.emplace_back(it->first, it->second);
}
// Write the count and then the via ids
uint32_t sz = res.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(res.data()), res.size() * sizeof(TempAccessRestriction));
file.close();
return true;
}
bool write_bike_relations(const std::string& filename, const BikeMultiMap& bike_relations) {
// Open file and truncate
std::stringstream in_mem;
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_bike_relations failed to open output file: " + filename);
return false;
}
// Create a vector of bike relations from the multimap
std::vector<BikeRelation> relations;
for (auto it = bike_relations.cbegin(); it != bike_relations.cend(); ++it) {
relations.emplace_back(it->first, it->second);
}
// Write the count and then the bike relations
uint32_t sz = relations.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(relations.data()),
relations.size() * sizeof(BikeRelation));
file.close();
return true;
}
bool write_way_refs(const std::string& filename, const OSMStringMap& way_refs) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_way_refs failed to open output file: " + filename);
return false;
}
// Store the way Id keys and name indexes in a TempWayRef vector
uint32_t i = 0;
std::vector<TempWayRef> temp_wayrefs(way_refs.size());
std::vector<char> strings;
for (const auto& s : way_refs) {
temp_wayrefs[i] = {s.first, s.second};
++i;
}
// Write the count and then the TempWayRefs
uint32_t sz = temp_wayrefs.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(temp_wayrefs.data()),
temp_wayrefs.size() * sizeof(TempWayRef));
file.close();
return true;
}
bool write_node_names(const std::string& filename, const UniqueNames& names) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_node_names failed to open output file: " + filename);
return false;
}
// Store a count of strings followed by an array of string lengths
uint32_t name_count = names.Size();
std::vector<uint32_t> lengths(name_count);
std::vector<char> namebuf;
for (uint32_t n = 0; n < name_count; ++n) {
const auto& str = names.name(n + 1); // Add 1 since the first name is blank
lengths[n] = str.length() + 1; // Add 1 for the null terminator
// Copy the string to the namebuf and add a terminator
std::copy(str.c_str(), str.c_str() + str.length(), back_inserter(namebuf));
namebuf.push_back(0);
}
// Write to file
file.write(reinterpret_cast<const char*>(&name_count), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(lengths.data()), lengths.size() * sizeof(uint32_t));
uint32_t sz = namebuf.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(namebuf.data()), namebuf.size());
return true;
}
bool write_unique_names(const std::string& filename, const UniqueNames& names) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_unique_names failed to open output file: " + filename);
return false;
}
// Store a count of strings followed by an array of string lengths
uint32_t name_count = names.Size();
std::vector<uint32_t> lengths(name_count);
std::vector<char> namebuf;
for (uint32_t n = 0; n < name_count; ++n) {
const auto& str = names.name(n + 1); // Add 1 since the first name is blank
lengths[n] = str.length() + 1; // Add 1 for the null terminator
// Copy the string to the namebuf and add a terminator
std::copy(str.c_str(), str.c_str() + str.length(), back_inserter(namebuf));
namebuf.push_back(0);
}
// Write to file
file.write(reinterpret_cast<const char*>(&name_count), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(lengths.data()), lengths.size() * sizeof(uint32_t));
uint32_t sz = namebuf.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(namebuf.data()), namebuf.size());
return true;
}
bool write_lane_connectivity(const std::string& filename,
const OSMLaneConnectivityMultiMap& lane_map) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_lane_connectivity failed to open output file: " + filename);
return false;
}
// Convert the multi map into a vector of TempLaneConnectivity
std::vector<TempLaneConnectivity> lanes;
for (auto it = lane_map.cbegin(); it != lane_map.cend(); ++it) {
lanes.emplace_back(it->first, it->second);
}
// Write the count and then the via ids
uint32_t sz = lanes.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(lanes.data()),
lanes.size() * sizeof(TempLaneConnectivity));
file.close();
return true;
return true;
}
bool write_linguistic(const std::string& filename, const LinguisticMultiMap& ling_map) {
// Open file and truncate
std::ofstream file(filename.c_str(), std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("write_linguistic failed to open output file: " + filename);
return false;
}
// Convert the multi map into a vector of TempLinguistic
std::vector<TempLinguistic> ling;
for (auto it = ling_map.cbegin(); it != ling_map.cend(); ++it) {
ling.emplace_back(it->first, it->second);
}
// Write the count and then the via ids
uint32_t sz = ling.size();
file.write(reinterpret_cast<const char*>(&sz), sizeof(uint32_t));
file.write(reinterpret_cast<const char*>(ling.data()), ling.size() * sizeof(TempLinguistic));
file.close();
return true;
}
bool read_restrictions(const std::string& filename, RestrictionsMultiMap& res_map) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_restrictions failed to open input file: " + filename);
return false;
}
// Read the count and then the temporary restriction list
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<TempRestriction> access_res(count);
file.read(reinterpret_cast<char*>(access_res.data()), count * sizeof(TempRestriction));
file.close();
// Iterate through the temporary restriction list and add to the restriction multi-map
for (const auto& r : access_res) {
res_map.insert({r.way_id, r.restriction});
}
return true;
}
bool read_viaset(const std::string& filename, ViaSet& via_set) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_viaset failed to open input file: " + filename);
return false;
}
// Read the count and then the via ids
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<uint32_t> via_vector(count);
file.read(reinterpret_cast<char*>(via_vector.data()), count * sizeof(uint32_t));
file.close();
// Iterate through the vector of via Ids and add them to the via set
for (const auto v : via_vector) {
via_set.insert(v);
}
return true;
}
bool read_access_restrictions(const std::string& filename, AccessRestrictionsMultiMap& access_map) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_access_restrictions failed to open input file: " + filename);
return false;
}
// Read the count and then the temporary access restriction list
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<TempAccessRestriction> access_res(count);
file.read(reinterpret_cast<char*>(access_res.data()), count * sizeof(TempAccessRestriction));
file.close();
// Iterate through the temporary access restriction list and add to the restriction multi-map
for (const auto& r : access_res) {
access_map.insert({r.way_id, r.restriction});
}
return true;
}
bool read_bike_relations(const std::string& filename, BikeMultiMap& bike_relations) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_bike_relations failed to open input file: " + filename);
return false;
}
// Read the count and then the bike relations list
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<BikeRelation> rel(count);
file.read(reinterpret_cast<char*>(rel.data()), count * sizeof(BikeRelation));
file.close();
// Iterate through the temporary bike relations list and add to the bike relations multi-map
for (const auto& r : rel) {
bike_relations.insert({r.way_id, r.relation});
}
return true;
}
bool read_way_refs(const std::string& filename, OSMStringMap& way_refs) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_way_refs failed to open input file: " + filename);
return false;
}
// Read the wayids (keys)
uint32_t count;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<TempWayRef> temp_wayrefs(count);
file.read(reinterpret_cast<char*>(temp_wayrefs.data()), sizeof(TempWayRef) * count);
// Iterate through the temp wayrefs and form map
for (const auto& r : temp_wayrefs) {
way_refs[r.way_id] = r.name_index;
}
return true;
}
bool read_node_names(const std::string& filename, UniqueNames& names) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_node_names failed to open input file: " + filename);
return false;
}
// Read from file
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<uint32_t> lengths(count);
file.read(reinterpret_cast<char*>(lengths.data()), count * sizeof(uint32_t));
uint32_t bufsize = 0;
file.read(reinterpret_cast<char*>(&bufsize), sizeof(uint32_t));
std::vector<char> namebuf(bufsize);
file.read(reinterpret_cast<char*>(namebuf.data()), bufsize);
// Iterate through the temporary data and add the unique names
uint32_t offset = 0;
for (uint32_t n = 0; n < count; ++n) {
std::string name(&namebuf[offset]);
names.index(name);
offset += lengths[n];
if ((name.length() + 1) != lengths[n]) {
LOG_ERROR("name " + name + " length should be " + std::to_string(lengths[n]));
}
}
return true;
}
bool read_unique_names(const std::string& filename, UniqueNames& names) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_unique_names failed to open input file: " + filename);
return false;
}
// Read from file
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<uint32_t> lengths(count);
file.read(reinterpret_cast<char*>(lengths.data()), count * sizeof(uint32_t));
uint32_t bufsize = 0;
file.read(reinterpret_cast<char*>(&bufsize), sizeof(uint32_t));
std::vector<char> namebuf(bufsize);
file.read(reinterpret_cast<char*>(namebuf.data()), bufsize);
// Iterate through the temporary data and add the unique names
uint32_t offset = 0;
for (uint32_t n = 0; n < count; ++n) {
std::string name(&namebuf[offset]);
names.index(name);
offset += lengths[n];
if ((name.length() + 1) != lengths[n]) {
LOG_ERROR("name " + name + " length should be " + std::to_string(lengths[n]));
}
}
return true;
}
bool read_lane_connectivity(const std::string& filename, OSMLaneConnectivityMultiMap& lane_map) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_lane_connectivity failed to open input file: " + filename);
return false;
}
// Read the count and then the temporary lane connectivity list
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<TempLaneConnectivity> lanes(count);
file.read(reinterpret_cast<char*>(lanes.data()), count * sizeof(TempLaneConnectivity));
file.close();
// Iterate through the temporary lane connectivity list and add to the lane connectivity multi-map
for (const auto& l : lanes) {
lane_map.insert({l.way_id, l.lane});
}
return true;
}
bool read_linguistic(const std::string& filename, LinguisticMultiMap& ling_map) {
// Open file and truncate
std::ifstream file(filename, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("read_linguistic failed to open input file: " + filename);
return false;
}
// Read the count and then the temporary access restriction list
uint32_t count = 0;
file.read(reinterpret_cast<char*>(&count), sizeof(uint32_t));
std::vector<TempLinguistic> ling(count);
file.read(reinterpret_cast<char*>(ling.data()), count * sizeof(TempLinguistic));
file.close();
// Iterate through the temporary access restriction list and add to the restriction multi-map
for (const auto& l : ling) {
ling_map.insert({l.way_id, l.linguistic});
}
return true;
}
} // namespace
namespace valhalla {
namespace mjolnir {
// Write OSMData to temporary files
bool OSMData::write_to_temp_files(const std::string& tile_dir) {
LOG_INFO("Write OSMData to temp files");
// Write counts
std::string countfile = tile_dir + count_file;
std::ofstream file(countfile, std::ios::out | std::ios::binary | std::ios::trunc);
if (!file.is_open()) {
LOG_ERROR("Failed to open output file: " + countfile);
return false;
}
file.write(reinterpret_cast<const char*>(&max_changeset_id_), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&osm_node_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&osm_way_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&osm_way_node_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&node_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&edge_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&node_ref_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&node_name_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&node_exit_to_count), sizeof(uint64_t));
file.write(reinterpret_cast<const char*>(&node_linguistic_count), sizeof(uint64_t));
file.close();
// Write the rest of OSMData
bool status = write_restrictions(tile_dir + restrictions_file, restrictions) &&
write_viaset(tile_dir + viaset_file, via_set) &&
write_access_restrictions(tile_dir + access_restrictions_file, access_restrictions) &&
write_bike_relations(tile_dir + bike_relations_file, bike_relations) &&
write_way_refs(tile_dir + way_ref_file, way_ref) &&
write_way_refs(tile_dir + way_ref_rev_file, way_ref_rev) &&
write_node_names(tile_dir + node_names_file, node_names) &&
write_unique_names(tile_dir + unique_names_file, name_offset_map) &&
write_lane_connectivity(tile_dir + lane_connectivity_file, lane_connectivity_map) &&
write_linguistic(tile_dir + pronunciation_file, pronunciations) &&
write_linguistic(tile_dir + language_file, langs);
LOG_INFO("Done");
return status;
}
// Read OSMData from temporary files
bool OSMData::read_from_temp_files(const std::string& tile_dir) {
LOG_INFO("Read OSMData from temp files");
std::string tile_directory = tile_dir;
if (tile_directory.back() != filesystem::path::preferred_separator) {
tile_directory.push_back(filesystem::path::preferred_separator);
}
// Open the count file
std::string countfile = tile_directory + count_file;
std::ifstream file(countfile, std::ios::in | std::ios::binary);
if (!file.is_open()) {
LOG_ERROR("Failed to open input file: " + countfile);
return false;
}
file.read(reinterpret_cast<char*>(&max_changeset_id_), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&osm_node_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&osm_way_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&osm_way_node_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&node_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&edge_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&node_ref_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&node_name_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&node_exit_to_count), sizeof(uint64_t));
file.read(reinterpret_cast<char*>(&node_linguistic_count), sizeof(uint64_t));
file.close();
// Read the other data
bool status =
read_restrictions(tile_directory + restrictions_file, restrictions) &&
read_viaset(tile_directory + viaset_file, via_set) &&
read_access_restrictions(tile_directory + access_restrictions_file, access_restrictions) &&
read_bike_relations(tile_directory + bike_relations_file, bike_relations) &&
read_way_refs(tile_directory + way_ref_file, way_ref) &&
read_way_refs(tile_directory + way_ref_rev_file, way_ref_rev) &&
read_node_names(tile_directory + node_names_file, node_names) &&
read_unique_names(tile_directory + unique_names_file, name_offset_map) &&
read_lane_connectivity(tile_directory + lane_connectivity_file, lane_connectivity_map) &&
read_linguistic(tile_directory + pronunciation_file, pronunciations) &&
read_linguistic(tile_directory + language_file, langs);
LOG_INFO("Done");
initialized = status;
return status;
}
// Read OSMData from temporary files
bool OSMData::read_from_unique_names_file(const std::string& tile_dir) {
LOG_INFO("Read OSMData unique_names from temp file");
// Read the other data
bool status = read_unique_names(tile_dir + unique_names_file, name_offset_map);
LOG_INFO("Done");
return status;
}
// add the direction information to the forward or reverse map for relations.
void OSMData::add_to_name_map(const uint64_t member_id,
const std::string& direction,
const std::string& reference,
const bool forward) {
std::string dir = direction;
boost::algorithm::to_lower(dir);
dir[0] = std::toupper(dir[0]);
// TODO: network=e-road with int_ref=E #
if ((boost::starts_with(dir, "North (") || boost::starts_with(dir, "South (") ||
boost::starts_with(dir, "East (") || boost::starts_with(dir, "West (")) ||
dir == "North" || dir == "South" || dir == "East" || dir == "West") {
if (forward) {
auto iter = way_ref.find(member_id);
if (iter != way_ref.end()) {
std::string ref = name_offset_map.name(iter->second);
way_ref[member_id] = name_offset_map.index(ref + ";" + reference + "|" + dir);
} else {
way_ref[member_id] = name_offset_map.index(reference + "|" + dir);
}
} else {
auto iter = way_ref_rev.find(member_id);
if (iter != way_ref_rev.end()) {
std::string ref = name_offset_map.name(iter->second);
way_ref_rev[member_id] = name_offset_map.index(ref + ";" + reference + "|" + dir);
} else {
way_ref_rev[member_id] = name_offset_map.index(reference + "|" + dir);
}
}
}
}
void OSMData::cleanup_temp_files(const std::string& tile_dir) {
auto remove_temp_file = [](const std::string& fname) {
if (filesystem::exists(fname)) {
filesystem::remove(fname);
}
};
remove_temp_file(tile_dir + count_file);
remove_temp_file(tile_dir + restrictions_file);
remove_temp_file(tile_dir + viaset_file);
remove_temp_file(tile_dir + access_restrictions_file);
remove_temp_file(tile_dir + bike_relations_file);
remove_temp_file(tile_dir + way_ref_file);
remove_temp_file(tile_dir + way_ref_rev_file);
remove_temp_file(tile_dir + node_names_file);
remove_temp_file(tile_dir + unique_names_file);
remove_temp_file(tile_dir + lane_connectivity_file);
remove_temp_file(tile_dir + pronunciation_file);
remove_temp_file(tile_dir + language_file);
}
} // namespace mjolnir
} // namespace valhalla
```
|
The March 707 was a British Group 7 sports prototype racing car, built by March Engineering in 1970 for the Can-Am series. As with all other full-size Can-Am cars of the time, it used a large-displacement, mid-mounted, , naturally-aspirated, Chevrolet big-block V8 engine, generating between . It was driven by New Zealand racing driver, Chris Amon.
References
Sports prototypes
Can-Am cars
March vehicles
|
```php
<?php
namespace Faker\Test\Provider;
use Faker\Provider\en_US\Text;
use Faker\Generator;
class TextTest extends \PHPUnit_Framework_TestCase
{
public function testTextMaxLength()
{
$generator = new Generator();
$generator->addProvider(new Text($generator));
$generator->seed(0);
$lengths = array(10, 20, 50, 70, 90, 120, 150, 200, 500);
foreach ($lengths as $length) {
$this->assertLessThan($length, $generator->realText($length));
}
}
/**
* @expectedException \InvalidArgumentException
*/
public function testTextMaxIndex()
{
$generator = new Generator();
$generator->addProvider(new Text($generator));
$generator->seed(0);
$generator->realText(200, 11);
}
/**
* @expectedException \InvalidArgumentException
*/
public function testTextMinIndex()
{
$generator = new Generator();
$generator->addProvider(new Text($generator));
$generator->seed(0);
$generator->realText(200, 0);
}
/**
* @expectedException \InvalidArgumentException
*/
public function testTextMinLength()
{
$generator = new Generator();
$generator->addProvider(new Text($generator));
$generator->seed(0);
$generator->realText(9);
}
}
```
|
```yaml
# Each section from every release note are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
enhancements:
- |
Retry HTTP transaction when the HTTP status code is 404 (Not found).
```
|
James Heyward Trapier (November 24, 1815 – December 21, 1865) was a career United States Army officer who fought during the Mexican–American War. He also served as a Confederate general during the American Civil War, dying shortly after its conclusion.
Early life and career
Trapier was born in 1815 at a plantation called "Windsor" located along the Black River near the city of Georgetown, South Carolina. In 1834 he attended the United States Military Academy at West Point, and graduated four years later standing third out of 45 cadets. P.G.T. Beauregard, whom Trapier would serve under later in life, placed second in this same class. He was commissioned a second lieutenant in the 1st U.S. Artillery on July 1, 1838. Six days later Trapier transferred to the Engineer Corps, and he was promoted to the rank of first lieutenant on July 1, 1839. He was a cousin of Thomas F. Drayton.
In his work for the Engineers, Trapier helped in the construction of defenses on the coastline of the United States. He also served in the Mexican–American War from 1846–1848, and he would resign his commission on February 28, 1848. After tendering his resignation, Trapier moved back to his plantation in South Carolina and became a planter. He also was active in the South Carolina State Militia, rising to the rank of colonel and serving as the militia's aide-de-camp. As the chief of ordnance of South Carolina, Trapier "ensured that the state was
well-armed."
Civil War service
At the start of the American Civil War in 1861, Trapier chose to follow his home state and the Confederate cause. He entered the Confederate Army in January, assigned as a captain in the Engineers as well as aide-de-camp to South Carolina's Governor Francis W. Pickens. He then began his service under Brig. Gen. Beauregard, becoming part of his staff in April and Chief Engineer of the newly formed Department of South Carolina until November. While there he aided Beauregard in the construction of artillery batteries within Charleston Harbor, and on June 19 he was promoted to major and was assigned assistant quartermaster.
Trapier was promoted to the rank of brigadier general on October 21, 1861. He was given command the District of Middle and Eastern Florida from November 5 until March 14 of the following year. He then was ordered to the Western Theater and Gen. Albert Sidney Johnston's Army of the Mississippi, with Brig. Gen. Joseph Finegan taking over his district command in April. Trapier was assigned to lead the 4th Brigade of the 2nd Division in Maj. Gen. Braxton Bragg's II Corps in March. Gen. Beauregard assumed command of the Army of the Mississippi upon Johnston's death at Shiloh and led it during the First Battle of Corinth in late April.
Trapier was then temporarily given command of the 1st Division of the I Corps on April 14 when its commander, Charles Clark, fell ill. When Clark recovered, Trapier was then given temporary command of the 2nd Division of Bragg's II Corps, and led it in this capacity during the Battle of Farmington. Trapier's performance during the Union siege at Corinth was highly criticized and Bragg, now the army commander, ordered him relieved of command and sent him home for duty in South Carolina.
In November 1862, Trapier was given command of the Fourth Military District of South Carolina, headquartered in Georgetown. This district encompassed the area from the North Carolina line to the Santee River. Trapier strengthened the defense of this district by placing troops in coastal fortifications, notably Battery White, which guarded Winyah Bay.
In April 1863, Trapier was called by Gen. P.G.T. Beauregard, who at this time commanded at Charleston, to command the garrison located on Sullivan's Island during Union Admiral Samuel DuPonts' naval assault on the city. DuPont's attack failed and, with Charleston safe, Trapier reported back to Georgetown.
After April 1863, Trapier performed well in the command of the district although constantly plagued by a lack of supplies and troops. Trapier asked the Confederate government repeatedly for extra troops to defend this district; however, the government allocated what extra troops it had to more active theaters.
Trapier's district was unmolested until February 25, 1865 when Union Admiral John Dahlgren's fleet sailed into Georgetown's harbor and captured the town. Trapier evacuated the town and its outlying fortifications previous to its occupation in concurrence with the surrender of Charleston. On March 1, 1865, Admiral Dahlgren's flagship, the USS Harvest Moon, struck a torpedo that had been placed there by Trapier's orders. The admiral was uninjured but the Harvest Moon sank.
There is no record showing Gen. Trapier was ever captured or paroled. Trapier was not with Confederate forces under Gen. Joseph Johnston in North Carolina at the time of surrender.
Postbellum and death
After the end of the war, Trapier returned to farming in South Carolina. He died at the age of 50 during the winter of 1865 at the home of a friend in Georgetown. He was buried there in the cemetery of Prince George Winyah Churchyard.
See also
List of American Civil War generals (Confederate)
Notes
References
Cozzens, Peter. The Darkest Days of the War: The Battles of Iuka and Corinth. Chapel Hill: University of North Carolina Press, 1997. .
Eicher, John H., and David J. Eicher, Civil War High Commands. Stanford: Stanford University Press, 2001. .
Sifakis, Stewart. Who Was Who in the Civil War. New York: Facts On File, 1988. .
Smith, Timothy B., Corinth 1862: Siege, Battle, Occupation, University Press of Kansas, 2012, .
Warner, Ezra J. Generals in Gray: Lives of the Confederate Commanders. Baton Rouge: Louisiana State University Press, 1959. .
Wright, Marcus J., General Officers of the Confederate Army: Officers of the Executive Departments of the Confederate States, Members of the Confederate Congress by States. Mattituck, NY: J. M. Carroll & Co., 1983. . First published 1911 by Neale Publishing Co.
Confederate States Army brigadier generals
United States Military Academy alumni
United States Army officers
American military personnel of the Mexican–American War
People of South Carolina in the American Civil War
People from Georgetown County, South Carolina
1815 births
1865 deaths
|
```protocol buffer
//
syntax = "proto3";
option go_package = "github.com/hyperledger/fabric-protos-go/ledger/rwset/kvrwset";
option java_package = "org.hyperledger.fabric.protos.ledger.rwset.kvrwset";
package kvrwset;
// KVRWSet encapsulates the read-write set for a chaincode that operates upon a KV or Document data model
// This structure is used for both the public data and the private data
message KVRWSet {
repeated KVRead reads = 1;
repeated RangeQueryInfo range_queries_info = 2;
repeated KVWrite writes = 3;
repeated KVMetadataWrite metadata_writes = 4;
}
// HashedRWSet encapsulates hashed representation of a private read-write set for KV or Document data model
message HashedRWSet {
repeated KVReadHash hashed_reads = 1;
repeated KVWriteHash hashed_writes = 2;
repeated KVMetadataWriteHash metadata_writes = 3;
}
// KVRead captures a read operation performed during transaction simulation
// A 'nil' version indicates a non-existing key read by the transaction
message KVRead {
string key = 1;
Version version = 2;
}
// KVWrite captures a write (update/delete) operation performed during transaction simulation
message KVWrite {
string key = 1;
bool is_delete = 2;
bytes value = 3;
}
// KVMetadataWrite captures all the entries in the metadata associated with a key
message KVMetadataWrite {
string key = 1;
repeated KVMetadataEntry entries = 2;
}
// KVReadHash is similar to the KVRead in spirit. However, it captures the hash of the key instead of the key itself
// version is kept as is for now. However, if the version also needs to be privacy-protected, it would need to be the
// hash of the version and hence of 'bytes' type
message KVReadHash {
bytes key_hash = 1;
Version version = 2;
}
// KVWriteHash is similar to the KVWrite. It captures a write (update/delete) operation performed during transaction simulation
message KVWriteHash {
bytes key_hash = 1;
bool is_delete = 2;
bytes value_hash = 3;
}
// KVMetadataWriteHash captures all the upserts to the metadata associated with a key hash
message KVMetadataWriteHash {
bytes key_hash = 1;
repeated KVMetadataEntry entries = 2;
}
// KVMetadataEntry captures a 'name'ed entry in the metadata of a key/key-hash.
message KVMetadataEntry {
string name = 1;
bytes value = 2;
}
// Version encapsulates the version of a Key
// A version of a committed key is maintained as the height of the transaction that committed the key.
// The height is represenetd as a tuple <blockNum, txNum> where the txNum is the position of the transaction
// (starting with 0) within block
message Version {
uint64 block_num = 1;
uint64 tx_num = 2;
}
// RangeQueryInfo encapsulates the details of a range query performed by a transaction during simulation.
// This helps protect transactions from phantom reads by varifying during validation whether any new items
// got committed within the given range between transaction simuation and validation
// (in addition to regular checks for updates/deletes of the existing items).
// readInfo field contains either the KVReads (for the items read by the range query) or a merkle-tree hash
// if the KVReads exceeds a pre-configured numbers
message RangeQueryInfo {
string start_key = 1;
string end_key = 2;
bool itr_exhausted = 3;
oneof reads_info {
QueryReads raw_reads = 4;
QueryReadsMerkleSummary reads_merkle_hashes = 5;
}
}
// QueryReads encapsulates the KVReads for the items read by a transaction as a result of a query execution
message QueryReads {
repeated KVRead kv_reads = 1;
}
// QueryReadsMerkleSummary encapsulates the Merkle-tree hashes for the QueryReads
// This allows to reduce the size of RWSet in the presence of query results
// by storing certain hashes instead of actual results.
// maxDegree field refers to the maximum number of children in the tree at any level
// maxLevel field contains the lowest level which has lesser nodes than maxDegree (starting from leaf level)
message QueryReadsMerkleSummary {
uint32 max_degree = 1;
uint32 max_level = 2;
repeated bytes max_level_hashes = 3;
}
```
|
The President Guard Regiment (PGR) is a cavalry regiment of Bangladesh Army under the Executive Office of the President of Bangladesh. It is located at Dhaka Cantonment, Banga Bhaban and Ganabhaban. It provides military support for all security functions; including presidential travel, general medical support, emergency medical services, and hospitality services. The PGR is headed by the Military Secretary to the President and the Commander, President Guard Regiment. The regiment was created by President Ziaur Rahman in 1976. It was originally designated as the Presidential Security Force. The PSF was restructured and upgraded to full regimental status by President Hussain Muhammad Ershad in 1982 and the new title of President Guard Regiment was adopted.
History
The "predecessor" of the regiment was the President's Bodyguard of Pakistan, which was itself descended from the colonial-era Governor General's Bodyguard. This role was discontinued in 1971 with Bangladeshi independence but the regiment was established in 1976 and restructured in 1982, and charged with ensuring the physical security of the President, visiting heads of state and high-ranking dignitaries.
Mission and function
The force is charged with providing security for the President of Bangladesh, the Prime Minister of Bangladesh, their immediate family members and any other VVIPs designated as such by both enacted legislation and government decisions.
All presidential aides-de-camp are assigned under this office. Visiting spouses of foreign Heads of State, Heads of Government and dignitaries also receive their protection.
The commander of the President Guard Regiment is an army major general with the designation of Military Secretary to the President; the equivalent of the U.S. Director of the White House Military Office. The commander reports directly to the president.
The Commander is normally a Brigadier General with responsibility for the day-to-day administration of the regiment.
The regiment consists of eight platoons, each commanded by either a major or a captain. The regiment's uniform varies slightly from that of other units of the Bangladesh Army. Its members are authorised to carry firearms when in uniform, even during peacetime.
See also
Governor General's Bodyguard
President's Bodyguard (India)
President's Bodyguard (Pakistan)
Household Cavalry (United Kingdom)
References
Regiments of Bangladesh
Protective security units
Guards regiments
|
Andy Greenberg is a technology journalist serving as a senior writer at Wired magazine. He previously worked as a staff writer at Forbes magazine and as a contributor for Forbes.com. He has published the books This Machine Kills Secrets concerning whistleblowing as well as Sandworm, concerning the eponymous hacking group.
Writing
Greenberg's July 2015 article about Charlie Miller and Chris Valasek's Jeep hack resulted in the recall of 1.4 million vehicles by Chrysler. On the day of the article's publication, a Bill was introduced in the U.S. Senate seeking standards to protect cars against digital hacks.
Greenberg's 2012 book This Machine Kills Secrets was a New York Times Editors' Choice. He is featured in the 2015 documentary film Deep Web, about the trial of Ross Ulbricht.
In 2014, Greenberg was nominated along with Ryan Mac for a Gerald Loeb Award for their Forbes Magazine article, "Big Brother's Brain". The same year, he was named as one of the SANS Institute's Top Cybersecurity Journalist Award Winners. In 2013, his Forbes.com story "Meet The Hackers Who Sell Spies The Tools To Crack Your PC (And Get Paid Six-Figure Fees)" won "The Single Best Blog Post of the Year" award from the Security Bloggers Network.
He received the 2019 Gerald Loeb Award for International Reporting for the article "The Code that Crashed the World: The Untold Story of NotPetya, the Most Devastating Cyberattack in History".
In his 2019 book Sandworm he describes how digital detectives unraveled the "Olympic Destroyer" malware and traced it so far that they could attribute it to Russia's military intelligence agency, the GRU.
Publications
This Machine Kills Secrets: Julian Assange, the cypherpunks, and their fight to empower whistleblowers. London: Penguin Group, 2012. .
Sandworm: a new era of cyberwar and the hunt for the Kremlin's most dangerous hackers. New York City: Knopf Doubleday, 2019. .
Tracers in the Dark: The Global Hunt for the Crime Lords of Cryptocurrency. Doubleday, 2022. .
See also
Computer worm
References
American technology journalists
Year of birth missing (living people)
Living people
Journalists from Brooklyn
Gerald Loeb Award winners International
|
Ciénaga de Zapata is one of 14 municipalities of the Matanzas Province, Cuba, and the municipal seat is located at Playa Larga, at the northern end of the Bahia de Cochinos ("Bay of Pigs"). A large part of the municipality is protected as the Zapata Swamp.
It is the largest municipality of Cuba with 4,162 km2.
Among the villages included in the municipal territory, one of the most famous is Playa Girón, site of the Bay of Pigs Invasion in 1961. Other villages are Bermejas, Buenaventura, Caleta del Rosario, Caleta Sábalo, El Jiquí, El Maíz, El Rincón, Guamá, Guasasa, Helechal, La Ceiba, La Florestal, La Salina, Maneadero, Palpite, Playa Maceo, Playa Maquina, San Blás, San Lázaro, Santo Tomás and Sopillar.
In 2004, the municipality of Cienaga de Zapata had a population of 8,611. With a total area of , it has a population density of .
References
External links
Populated places in Matanzas Province
|
Techrules () is a Chinese automobile manufacturer headquartered in Yizhuang, China that specializes in producing sports cars.
History
Techrules was founded in 2015, and is based in Yizhuang, China.
The AT96 was Techrules's first car, coming out in 2016. It uses a multi-fuel (jet fuel, kerosene, natural gas, biogas) aviation turbine to charge the batteries. It has 1030 hp and 6372 lb-ft of torque, a 0-60 mph time of 2.5 seconds, and a top speed of 218 mph. The GT96 was an all diesel version of the AT96.
Their second vehicle was the Techrules Ren, which came out in 2018. It is a high performance sports car that uses a diesel turbine engine as well as an option of 3 electric batteries. Its annual output is 10 units per year. It has a top speed of 199 mph. The Ren is not street legal in the US or Europe.
Vehicles
Current models
Techrules currently has three production vehicles.
See also
Leapmotor
Levdeo
Aoxin
References
External links
Car brands
Car manufacturers of China
Chinese brands
Techrules vehicles
|
John Tierney (born 9 December 1951) is an Irish Social Democratic and Labour Party (SDLP) politician who served as a Member of the Legislative Assembly (MLA) for Foyle from 1998 to 2003.
Early life and career
Born in Derry, Tierney worked as a tool setter before joining the Social Democratic and Labour Party (SDLP). He was elected to Derry City Council in 1981, and served as the Mayor of Derry in 1984. In 1996, Tierney was elected to the Northern Ireland Forum for Foyle, and he held his seat at the 1998 Northern Ireland Assembly election. He stood down from the Council in 2001, while the following year, he became the whip of the SDLP group on the Assembly.
Tierney stood down from the Assembly at the 2003 election, and in 2007 was co-opted back on to Derry City Council.
References
1951 births
Living people
Mayors of Derry
Members of the Northern Ireland Forum
Northern Ireland MLAs 1998–2003
Social Democratic and Labour Party MLAs
Politicians from Derry (city)
|
```c
/* Serial interface for raw TCP connections on Un*x like systems
Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "defs.h"
#include "serial.h"
#include "ser-unix.h"
#include <sys/types.h>
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h> /* For FIONBIO. */
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> /* For FIONBIO. */
#endif
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <signal.h>
#include "gdb_string.h"
static int net_open (struct serial *scb, const char *name);
static void net_close (struct serial *scb);
void _initialize_ser_tcp (void);
/* seconds to wait for connect */
#define TIMEOUT 15
/* how many times per second to poll deprecated_ui_loop_hook */
#define POLL_INTERVAL 2
/* Open a tcp socket */
static int
net_open (struct serial *scb, const char *name)
{
char *port_str, hostname[100];
int n, port, tmp;
int use_udp;
struct hostent *hostent;
struct sockaddr_in sockaddr;
use_udp = 0;
if (strncmp (name, "udp:", 4) == 0)
{
use_udp = 1;
name = name + 4;
}
else if (strncmp (name, "tcp:", 4) == 0)
name = name + 4;
port_str = strchr (name, ':');
if (!port_str)
error ("net_open: No colon in host name!"); /* Shouldn't ever happen */
tmp = min (port_str - name, (int) sizeof hostname - 1);
strncpy (hostname, name, tmp); /* Don't want colon */
hostname[tmp] = '\000'; /* Tie off host name */
port = atoi (port_str + 1);
/* default hostname is localhost */
if (!hostname[0])
strcpy (hostname, "localhost");
hostent = gethostbyname (hostname);
if (!hostent)
{
fprintf_unfiltered (gdb_stderr, "%s: unknown host\n", hostname);
errno = ENOENT;
return -1;
}
if (use_udp)
scb->fd = socket (PF_INET, SOCK_DGRAM, 0);
else
scb->fd = socket (PF_INET, SOCK_STREAM, 0);
if (scb->fd < 0)
return -1;
sockaddr.sin_family = PF_INET;
sockaddr.sin_port = htons (port);
memcpy (&sockaddr.sin_addr.s_addr, hostent->h_addr,
sizeof (struct in_addr));
/* set socket nonblocking */
tmp = 1;
ioctl (scb->fd, FIONBIO, &tmp);
/* Use Non-blocking connect. connect() will return 0 if connected already. */
n = connect (scb->fd, (struct sockaddr *) &sockaddr, sizeof (sockaddr));
if (n < 0 && errno != EINPROGRESS)
{
net_close (scb);
return -1;
}
if (n)
{
/* looks like we need to wait for the connect */
struct timeval t;
fd_set rset, wset;
int polls = 0;
FD_ZERO (&rset);
do
{
/* While we wait for the connect to complete
poll the UI so it can update or the user can
interrupt. */
if (deprecated_ui_loop_hook)
{
if (deprecated_ui_loop_hook (0))
{
errno = EINTR;
net_close (scb);
return -1;
}
}
FD_SET (scb->fd, &rset);
wset = rset;
t.tv_sec = 0;
t.tv_usec = 1000000 / POLL_INTERVAL;
n = select (scb->fd + 1, &rset, &wset, NULL, &t);
polls++;
}
while (n == 0 && polls <= TIMEOUT * POLL_INTERVAL);
if (n < 0 || polls > TIMEOUT * POLL_INTERVAL)
{
if (polls > TIMEOUT * POLL_INTERVAL)
errno = ETIMEDOUT;
net_close (scb);
return -1;
}
}
/* Got something. Is it an error? */
{
int res, err, len;
len = sizeof(err);
res = getsockopt (scb->fd, SOL_SOCKET, SO_ERROR, &err, &len);
if (res < 0 || err)
{
if (err)
errno = err;
net_close (scb);
return -1;
}
}
/* turn off nonblocking */
tmp = 0;
ioctl (scb->fd, FIONBIO, &tmp);
if (use_udp == 0)
{
/* Disable Nagle algorithm. Needed in some cases. */
tmp = 1;
setsockopt (scb->fd, IPPROTO_TCP, TCP_NODELAY,
(char *)&tmp, sizeof (tmp));
}
/* If we don't do this, then GDB simply exits
when the remote side dies. */
signal (SIGPIPE, SIG_IGN);
return 0;
}
static void
net_close (struct serial *scb)
{
if (scb->fd < 0)
return;
close (scb->fd);
scb->fd = -1;
}
void
_initialize_ser_tcp (void)
{
struct serial_ops *ops = XMALLOC (struct serial_ops);
memset (ops, 0, sizeof (struct serial_ops));
ops->name = "tcp";
ops->next = 0;
ops->open = net_open;
ops->close = net_close;
ops->readchar = ser_unix_readchar;
ops->write = ser_unix_write;
ops->flush_output = ser_unix_nop_flush_output;
ops->flush_input = ser_unix_flush_input;
ops->send_break = ser_unix_nop_send_break;
ops->go_raw = ser_unix_nop_raw;
ops->get_tty_state = ser_unix_nop_get_tty_state;
ops->set_tty_state = ser_unix_nop_set_tty_state;
ops->print_tty_state = ser_unix_nop_print_tty_state;
ops->noflush_set_tty_state = ser_unix_nop_noflush_set_tty_state;
ops->setbaudrate = ser_unix_nop_setbaudrate;
ops->setstopbits = ser_unix_nop_setstopbits;
ops->drain_output = ser_unix_nop_drain_output;
ops->async = ser_unix_async;
serial_add_interface (ops);
}
```
|
```kotlin
plugins {
id("profiler.embedded-library")
}
dependencies {
implementation(libs.toolingApi)
implementation(project(":client-protocol"))
}
```
|
```go
// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go
// Code generated by the command above; see README.md. DO NOT EDIT.
//go:build darwin && amd64 && go1.13
// +build darwin,amd64,go1.13
package unix
import (
"syscall"
"unsafe"
)
var _ syscall.Errno
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func closedir(dir uintptr) (err error) {
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
var libc_closedir_trampoline_addr uintptr
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
res = Errno(r0)
return
}
var libc_readdir_r_trampoline_addr uintptr
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
```
|
Cinema and Science (CISCI) is a European educational project of the Austrian physicist Heinz Oberhummer. It is funded by the European Commission
and was awarded of being a star project. CISCI describes and explains scientific as well as pseudo-scientific contents with the help of popular movies in eight European languages.
The analyses and descriptions of movie scenes for pupils and teachers is provided on a free web-based data bank. With CISCI education in science
will be more interesting and pupils can be motivated to participate more in science education. The contents are continuously supplemented by scientists and teachers as well as scientifically and didactically reviewed under co-ordination of the Vienna University of Technology.
Literature
H. Oberhummer: Cinema and Science (CISCI) – A New Innovative On-Line Educational Environment. In Proceedings of the EDEN 2006 Annual Conference, Vienna, Austria, 2006, p. 154-159
References
External links
CISCI Homepage with material to movies
CISCI Homepage in the Xplora Gateway
Press reports about Cinema and Science
Austrian science websites
Online film databases
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
for (let i = 0; i < 100; i++) {
// - length > 2 to trigger sorting.
// - key > kRequiresSlowElementsLimit required to set the according bit on the
// dictionary elements store.
let key = 1073741800 + i;
var a = { length: 12, 1: 0xFA, [key]: 0xFB };
%HeapObjectVerify(a);
assertEquals(["1", ""+key, "length"], Object.keys(a));
// Sort, everything > length is ignored.
Array.prototype.sort.call(a);
%HeapObjectVerify(a);
assertEquals(["0", ""+key, "length"], Object.keys(a));
// Sorting again to trigger bug caused by not setting requires_slow_elements
Array.prototype.sort.call(a);
%HeapObjectVerify(a);
assertEquals(["0", ""+key, "length"], Object.keys(a));
}
```
|
David Austin (born David Mortimer) is a British singer and songwriter, who released the single "Turn to Gold", co-written with George Michael in 1984. It reached No. 68 in the UK Singles Chart. The single featured backing vocals from Michael, who called Austin his best friend in the documentary film, A Different Story.
His follow-up single, "This Boy Loves the Sun", was released in the late summer of 1984 but did not chart.
A third single, "Love While You Can" was released only in Japan. This also featured uncredited vocals by Michael.
Formerly busking partners, Austin and Michael's joint work included the download-only single "John and Elvis Are Dead", their biggest hit "You Have Been Loved" and "Look at Your Hands" from the album Faith. "December Song (I Dreamed of Christmas)" was a Christmas single released by Michael and Austin together on 14 December 2009.
He appears as a guitarist in Wham!'s video for the song "The Edge of Heaven".
References
Sources
British record producers
British pop singers
British male singers
Living people
Year of birth missing (living people)
Boogie Box High members
British male songwriters
|
```php
<?php declare(strict_types=1);
namespace Nuwave\Lighthouse\WhereConditions;
use GraphQL\Language\AST\FieldDefinitionNode;
use GraphQL\Language\AST\InputValueDefinitionNode;
use GraphQL\Language\AST\InterfaceTypeDefinitionNode;
use GraphQL\Language\AST\ObjectTypeDefinitionNode;
use GraphQL\Language\Parser;
use Illuminate\Container\Container;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Database\Query\Builder as QueryBuilder;
use Nuwave\Lighthouse\Schema\AST\ASTHelper;
use Nuwave\Lighthouse\Schema\AST\DocumentAST;
use Nuwave\Lighthouse\Schema\Directives\BaseDirective;
use Nuwave\Lighthouse\Support\Contracts\ArgBuilderDirective;
use Nuwave\Lighthouse\Support\Contracts\ArgManipulator;
use Nuwave\Lighthouse\Support\Traits\GeneratesColumnsEnum;
abstract class WhereConditionsBaseDirective extends BaseDirective implements ArgBuilderDirective, ArgManipulator
{
use GeneratesColumnsEnum;
/**
* @param \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<\Illuminate\Database\Eloquent\Model>|\Illuminate\Database\Eloquent\Relations\Relation<\Illuminate\Database\Eloquent\Model> $builder the builder used to resolve the field
* @param array<string, mixed> $value the client given value of the argument
*/
protected function handle(QueryBuilder|EloquentBuilder|Relation $builder, array $value): void
{
$handler = $this->directiveHasArgument('handler')
? $this->getResolverFromArgument('handler')
: Container::getInstance()->make(WhereConditionsHandler::class);
$handler($builder, $value);
}
public function manipulateArgDefinition(
DocumentAST &$documentAST,
InputValueDefinitionNode &$argDefinition,
FieldDefinitionNode &$parentField,
ObjectTypeDefinitionNode|InterfaceTypeDefinitionNode &$parentType,
): void {
$this->validateMutuallyExclusiveArguments(['columns', 'columnsEnum']);
if ($this->hasAllowedColumns()) {
$restrictedWhereConditionsName = ASTHelper::qualifiedArgType($argDefinition, $parentField, $parentType) . $this->generatedInputSuffix();
$argDefinition->type = Parser::namedType($restrictedWhereConditionsName);
$allowedColumnsEnumName = $this->generateColumnsEnum($documentAST, $argDefinition, $parentField, $parentType);
$documentAST
->setTypeDefinition(
WhereConditionsServiceProvider::createWhereConditionsInputType(
$restrictedWhereConditionsName,
"Dynamic WHERE conditions for the `{$argDefinition->name->value}` argument of the query `{$parentField->name->value}`.",
$allowedColumnsEnumName,
),
)
->setTypeDefinition(
WhereConditionsServiceProvider::createHasConditionsInputType(
$restrictedWhereConditionsName,
"Dynamic HAS conditions for WHERE conditions for the `{$argDefinition->name->value}` argument of the query `{$parentField->name->value}`.",
),
);
} else {
$argDefinition->type = Parser::namedType(WhereConditionsServiceProvider::DEFAULT_WHERE_CONDITIONS);
}
}
/** Get the suffix that will be added to generated input types. */
abstract protected function generatedInputSuffix(): string;
}
```
|
This is a list of members of the South Australian House of Assembly from 2002 to 2006, as elected at the 2002 state election:
Kris Hanna, the member for Mitchell, was elected as a representative of the Labor Party, but resigned from the party on 30 January 2003 and joined the South Australian Greens. He later resigned from the party on 8 February 2006, after failing to win the top position on their Legislative Council ticket for the 2006 election, and served out the remainder of his term as an independent.
Members of South Australian parliaments by term
21st-century Australian politicians
|
Hauksson is an Icelandic patronymic, literally meaning "son of Hauk". Notable people with the name include:
Ágúst Hauksson (born 1960), Icelandic footballer
Eiríkur Hauksson (born 1959), Icelandic footballer
Georg Guðni Hauksson (1961–2011), Icelandic painter
Haukur Heiðar Hauksson (born 1991), Icelandic footballer
Óskar Örn Hauksson (born 1984), Icelandic footballer
Icelandic-language masculine surnames
|
```jsx
import React from "react";
import Consequence from "../Consequence";
import TaskStuckProcedure from "./procedures/TaskStuckProcedure";
import MessageStuckProcedure from "./procedures/MessageStuckProcedure";
function MessageStuckConsequence(props) {
if (!props.show) {
return null
}
return (
<Consequence
indicator="Message Stuck"
color="red"
problem="At least one message bus message is stuck: Claimed by the receiver node to work on but not executed."
acceptableRange={[
"Message processing must complete within 1 hour after acknowledgment by the receiver nzyme node"
]}
consequences={[
"An expected background action of the program was not performed"
]}
procedure={<MessageStuckProcedure />}
/>
)
}
export default MessageStuckConsequence;
```
|
Mark Curtis is a British author, historian and journalist who is the co-founder and editor of media organisation Declassified UK. He is also the author of several books on British foreign policy since the Second World War, including Secret Affairs: Britain's Collusion with Radical Islam, Unpeople: Britain's Secret Human Rights Abuses and Web of Deceit: Britain's Real Role in the World.
Biography
Curtis studied at Goldsmiths, University of London and the London School of Economics, before becoming a research fellow at the Royal Institute of International Affairs. He subsequently worked at the international development NGOs ActionAid and Christian Aid, before becoming director of the World Development Movement. He established a consultancy, Curtis Research, and undertook research projects for international NGOs until co-founding the investigative journalism website Declassified UK with Matt Kennard in 2019; focusing on the foreign, military and intelligence policies of the British government.
Works
Web of Deceit
In 2003, Curtis published Web of Deceit: Britain's Real Role in the World. The book discusses British foreign policy since the Second World War, including Britain's role in the "war on terror" as part of the policies of the second Blair ministry. In the book, Curtis claims that Britain is an "outlaw state", as according to him it frequently violates international law and supports autocratic regimes. Curtis also focuses on events such as the expulsion of the Chagossians, UK government involvement in the Indonesian Communist Purge, Operation Ajax, the Mau Mau Uprising and the Malayan Emergency. Web of Deceit was praised by Green Party politician Caroline Lucas as being "a remarkable rescue operation" and "a powerful call to action for all those who strive to understand how the world has been shaped by western powers in order that they may change it."
Unpeople
In 2004, Curtis published his fifth book, Unpeople: Britain's Secret Human Rights Abuses. The book analyses the Blair ministry's foreign policies since the 2003 invasion of Iraq, and connects to various foreign policy decisions of the Home Office since the end of the Second World War. Curtis analysed various events such as the Ramadan Revolution, the New Order regime's rise to power, the Vietnam War, and the 1973 Chilean coup d'état; arguing that the British government either supported or welcomed these events, and conducts secretive propaganda claims to misinform the British public of events occurring abroad. The book was translated into Croatian in 2017 by Sanja Stojić.
Secret Affairs
In Secret Affairs: Britain's Collusion with Radical Islam, published in 2010, Curtis discusses how "Britain has been colluding with radical Islam for decades", claiming this relationship dates back to the 19th and 20th centuries. In the book, Curtis explores British foreign policy in the Muslim world, including the 1953 Iranian coup d'état, Soviet–Afghan War, Kosovo War and Syrian Civil War. According to Curtis, British foreign policy in the region "have generally aimed at maintaining in power or installing governments that will promote Western-friendly oil policies." In addition, the book also claims the British government has supported efforts to train militants from Fada'iyan-e Islam, Harkat-ul-Mujahideen, the Libyan Islamic Fighting Group, the Kosovo Liberation Army and the Islamic Front. The book also explores British involvement in the Soviet–Afghan War, including training and supplying the mujahideen; attempts by the British government to cultivate relations with the Muslim Brotherhood in Egypt after the fall of Hosni Mubarak; the UK's participation in the 2011 military intervention in Libya, and Saudi Arabia–United Kingdom relations.
Selected publications
Unpeople: Britain's Secret Human Rights Abuses, Vintage, 2004
Web of Deceit: Britain's Real Role in the World, Vintage, 2003
Trade for Life: Making Trade Work for Poor People, Christian Aid, 2001
The Great Deception: Anglo-American Power and World Order, Pluto Press, 1998
The Ambiguities of Power: British Foreign Policy since 1945, Zed Books, 1995
References
External links
Mark Curtis' personal website
Journalisted – Articles by Mark Curtis
Mark Curtis at Media Lens
Mark Curtis at CiF
Book preview of Unpeople in The Guardian.
Book review of Web of Deceit in The Guardian
Alumni of the London School of Economics
British male journalists
British political writers
Living people
Year of birth missing (living people)
|
Leslie Bevis (born February 13, 1954) is an American former model and actress.
Career
Bevis worked as a model in Europe before her work in film and television. Besides making several appearances on Star Trek: Deep Space Nine, she has made numerous other television appearances, such as in Matlock, V, Dallas, Street Hawk, Night Court, Falcon Crest, MacGyver, Hunter and Murder, She Wrote. Bevis is perhaps best known for the role of Ruth Perkins in The Young and the Restless, which she played in 1998 and 1999.
She has also had minor roles in feature films such as Commanderette Zircon in Spaceballs, Cassandra in Alien Nation, and a news reporter in The Opposite of Sex.
Personal life
Bevis married then Cincinnati Bengals punter and wide receiver Pat McInally in 1984. They have two children and reside in Seal Beach, California.
References
External links
1954 births
Actresses from Washington, D.C.
American film actresses
American television actresses
Living people
20th-century American actresses
21st-century American women
|
```c
/* Test of <alignof.h>.
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with this program. If not, see <path_to_url */
/* Written by Bruno Haible <bruno@clisp.org>, 2009. */
#include <config.h>
#include <alignof.h>
#include <stddef.h>
#include <stdint.h>
#include "verify.h"
typedef long double longdouble;
typedef struct { char a[1]; } struct1;
typedef struct { char a[2]; } struct2;
typedef struct { char a[3]; } struct3;
typedef struct { char a[4]; } struct4;
#define CHECK(type) \
typedef struct { char slot1; type slot2; } type##_helper; \
verify (alignof_slot (type) == offsetof (type##_helper, slot2)); \
const int type##_slot_alignment = alignof_slot (type); \
const int type##_type_alignment = alignof_type (type);
CHECK (char)
CHECK (short)
CHECK (int)
CHECK (long)
CHECK (float)
CHECK (double)
CHECK (longdouble)
#ifdef INT64_MAX
CHECK (int64_t)
#endif
CHECK (struct1)
CHECK (struct2)
CHECK (struct3)
CHECK (struct4)
int
main ()
{
return 0;
}
```
|
```c++
/*******************************************************************************
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*******************************************************************************/
#ifndef GPU_INTEL_JIT_JIT_GENERATOR_HPP
#define GPU_INTEL_JIT_JIT_GENERATOR_HPP
#include <memory>
// Must be included before emulation.hpp
#include "gpu/intel/jit/ngen/ngen.hpp"
#include "common/impl_registration.hpp"
#include "common/nstl.hpp"
#include "gpu/intel/compute/device_info.hpp"
#include "gpu/intel/gpu_primitive.hpp"
#include "gpu/intel/jit/emulation.hpp"
#include "gpu/intel/jit/jit_generator_base.hpp"
#include "gpu/intel/jit/utils/ngen_type_bridge.hpp"
#include "xpu/utils.hpp"
#include "gpu/intel/jit/ngen/ngen_opencl.hpp"
namespace dnnl {
namespace impl {
namespace gpu {
namespace intel {
namespace jit {
using gpu_gen_t = ngen::HW;
constexpr gpu_gen_t gpu_gen9 = ngen::HW::Gen9;
constexpr gpu_gen_t gpu_gen11 = ngen::HW::Gen11;
constexpr gpu_gen_t gpu_xe_lp = ngen::HW::XeLP;
constexpr gpu_gen_t gpu_xe_hp = ngen::HW::XeHP;
constexpr gpu_gen_t gpu_xe_hpg = ngen::HW::XeHPG;
constexpr gpu_gen_t gpu_xe_hpc = ngen::HW::XeHPC;
constexpr gpu_gen_t gpu_xe2 = ngen::HW::Xe2;
// nGEN jit generator
//
// The main purpose of this header file is to provide extra features for nGEN
// kernel generator, e.g. additional macros and debugging capabilities.
//
// Jit generator provides additional memory to simplify kernel debugging. This
// memory is allocated using Shared Virtual Memory (SVM) feature in OpenCL 2.0.
// SVM enables the host and device portions of an OpenCL application to
// seamlessly share pointers and complex pointer-containing data-structures.
// This memory can be used to dump state of GPU registers or view GPU memory on
// the host in debugger.
//
// In order to use debug memory:
// 1. Allocate it using 'void jit_generator::dbg_alloc(cl_context context)'
// 2. Get memory pointer using 'void* jit_generator::dbg_memory()'
// 3. Pass it as extra OpenCL kernel argument and define it as new argument in
// kernel interface at corresponding order.
// 4. Set a breakpoint after 'dnnl_stream_wait()', memory will be available on
// the host side after kernel execution.
//
// A short example below demonstrates how to use debug memory:
//
// ``` c++
// status_t primitive_impl_t::execute(const exec_ctx_t &ctx) {
// ...
// auto gpu_engine = utils::downcast<ocl_gpu_engine*>(engine);
// jit_generator->dbg_alloc(gpu_engine->context());
// void* dbg_mem = jit_generator->dbg_memory();
// ...
// compute::kernel_arg_list_t arg_list;
// arg_list.set(0, src);
// arg_list.set(1, dst);
// arg_list.set(2, dbg_mem, kernel_arg_t::kind_t::svm);
// ...
// parallel_for(ctx, nd_range, kernel_, arg_list);
// }
//
// ngen_kernel_t() : jit_generator<...>() {
// externalName("ngen_kernel");
// newArgument("src", GlobalPtr);
// newArgument("dst", GlobalPtr);
// newArgument("dbg_mem", GlobalPtr);
// finalizeInterface();
// ...
// auto header = r32;
// auto data = r64;
// mov<uint64_t>(1, r64, getArgument("dbg_mem"));
// store(1, scattered_dword(), A64, header, data);
// ...
// }
// ```
//
template <gpu_gen_t hw>
struct jit_eltwise_injector_f32;
template <gpu_gen_t hw>
struct jit_reduction_injector_f32;
template <gpu_gen_t hw>
struct jit_post_op_injector;
template <gpu_gen_t hw>
class jit_generator : public ngen::OpenCLCodeGenerator<hw>,
public jit_generator_base {
friend struct jit_eltwise_injector_f32<hw>;
friend struct jit_reduction_injector_f32<hw>;
friend struct jit_post_op_injector<hw>;
friend struct EmulationImplementation;
private:
#ifdef CL_VERSION_2_0
struct svm_deleter {
cl_context context_;
void operator()(void *ptr) noexcept {
if (ptr) clSVMFree(context_, ptr);
}
};
std::unique_ptr<void, svm_deleter> dbg_memory_;
#endif
public:
jit_generator() = default;
const char *kernel_name() const override {
return ngen::OpenCLCodeGenerator<hw>::getExternalName().c_str();
}
xpu::binary_t get_binary(cl_context context, cl_device_id device) override {
return ngen::OpenCLCodeGenerator<hw>::getBinary(context, device);
}
#ifdef CL_VERSION_2_0
void dbg_alloc(cl_context context);
void *dbg_memory() const { return dbg_memory_.get(); }
#endif
void emath(ngen::MathFunction fc, int simd, ngen::GRF dst, ngen::GRF src) {
const int max_exec_size = ngen::GRF::bytes(hw) / sizeof(float);
for (; simd > 0; simd -= max_exec_size, dst++, src++)
this->math(nstl::min(simd, max_exec_size), fc, dst, src);
}
void eexp(int simd, const ngen::GRF &dst, const ngen::GRF &src) {
emath(ngen::MathFunction::exp, simd, dst, src);
}
void einv(int simd, const ngen::GRF &dst, const ngen::GRF &src) {
emath(ngen::MathFunction::inv, simd, dst, src);
}
};
#ifdef CL_VERSION_2_0
template <gpu_gen_t hw>
void jit_generator<hw>::dbg_alloc(cl_context context) {
constexpr size_t size = 1048576;
void *mem = clSVMAlloc(
context, CL_MEM_READ_WRITE | CL_MEM_SVM_FINE_GRAIN_BUFFER, size, 0);
dbg_memory_ = decltype(dbg_memory_)(mem, svm_deleter {context});
memset(mem, 0xcd, size);
}
#endif
void check_kernel_size(
const std::string &kernel_name, size_t kernel_size, size_t icache_size);
template <template <ngen::HW> class KernelT, ngen::HW arch, typename... ArgsT>
std::unique_ptr<jit::jit_generator_base> make_generator(
const compute::device_info_t &device_info, ArgsT &&...args) {
auto raw_kernel = new KernelT<arch>(std::forward<ArgsT>(args)...);
check_kernel_size(raw_kernel->kernel_name(),
raw_kernel->getRootStreamLength(), device_info.icache_size());
return std::unique_ptr<jit::jit_generator_base>(raw_kernel);
}
template <template <ngen::HW> class KernelT, typename... ArgsT>
compute::kernel_t make_kernel(gpu_primitive_t *primitive, bool register_kernel,
impl::engine_t *engine, ArgsT &&...args) {
using namespace compute;
kernel_t kernel;
if (primitive->cache_blob()) {
status_t status = primitive->create_kernel(
engine, &kernel, nullptr, register_kernel);
if (status != status::success) return kernel_t();
return kernel;
}
auto *compute_engine = utils::downcast<compute_engine_t *>(engine);
auto *device_info = compute_engine->device_info();
auto arch = convert_dnnl_arch_to_ngen(device_info->gpu_arch());
std::unique_ptr<jit::jit_generator_base> jit_kernel;
#define CASE(gpu_arch) \
case gpu_arch: \
jit_kernel = make_generator<KernelT, gpu_arch>( \
*device_info, std::forward<ArgsT>(args)...); \
break;
switch (arch) {
REG_GEN9_ISA(CASE(gpu_gen9));
REG_GEN11_ISA(CASE(gpu_gen11));
REG_XELP_ISA(CASE(gpu_xe_lp));
REG_XEHP_ISA(CASE(gpu_xe_hp));
REG_XEHPG_ISA(CASE(gpu_xe_hpg));
REG_XEHPC_ISA(CASE(gpu_xe_hpc));
REG_XE2_ISA(CASE(gpu_xe2));
default: break;
}
#undef CASE
if (!jit_kernel) return kernel_t();
status_t status = primitive->create_kernel(
engine, &kernel, jit_kernel.get(), register_kernel);
if (status != status::success) return kernel_t();
return kernel;
}
template <template <ngen::HW> class KernelT, typename... ArgsT>
compute::kernel_t make_kernel(
gpu_primitive_t *primitive, impl::engine_t *engine, ArgsT &&...args) {
return make_kernel<KernelT>(primitive, /*register_kernel=*/true, engine,
std::forward<ArgsT>(args)...);
}
} // namespace jit
} // namespace intel
} // namespace gpu
} // namespace impl
} // namespace dnnl
#endif // GPU_INTEL_JIT_JIT_GENERATOR_HPP
```
|
```batchfile
cls
call ../../../language/build/locatevc.bat
cl /c /DEBUG ring_opengl43.c -I "..\..\..\extensions\libdepwin\glew\include" -I "..\..\..\extensions\libdepwin\freeglut\include" -I"..\..\..\language\include"
link /DEBUG ring_opengl43.obj ..\..\..\lib\ring.lib ..\..\..\extensions\libdepwin\glew\lib\release\win32\glew32.lib ..\..\..\extensions\libdepwin\freeglut\lib\freeglut.lib /DLL /OUT:..\..\..\bin\ring_opengl43.dll /SUBSYSTEM:CONSOLE,"5.01"
del ring_opengl43.obj
```
|
Jason Koster (born 11 March 1983) is a New Zealand judoka. He competed in the Men's −100 kg event at the 2014 Commonwealth Games where he won a bronze medal.
References
External links
Jason Koster at The-Sports.org
1983 births
Living people
New Zealand male judoka
Commonwealth Games bronze medallists for New Zealand
Judoka at the 2014 Commonwealth Games
Commonwealth Games medallists in judo
20th-century New Zealand people
21st-century New Zealand people
Medallists at the 2014 Commonwealth Games
|
```java
/*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.shardingsphere.agent.spi;
import org.apache.shardingsphere.agent.api.PluginConfiguration;
/**
* Plugin lifecycle service.
*/
public interface PluginLifecycleService extends AutoCloseable {
/**
* Start plugin.
*
* @param pluginConfig plugin configuration
* @param isEnhancedForProxy is enhanced for proxy
*/
void start(PluginConfiguration pluginConfig, boolean isEnhancedForProxy);
/**
* Get plugin type.
*
* @return plugin type
*/
String getType();
@Override
default void close() {
}
}
```
|
```go
package tfhcl
import (
"fmt"
"github.com/hashicorp/hcl/v2"
"github.com/terraform-linters/tflint/terraform/tfdiags"
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert"
"github.com/zclconf/go-cty/cty/gocty"
)
type expandDynamicSpec struct {
blockType string
blockTypeRange hcl.Range
defRange hcl.Range
forEachVal cty.Value
iteratorName string
labelExprs []hcl.Expression
contentBody hcl.Body
}
func (b *expandBody) decodeDynamicSpec(blockS *hcl.BlockHeaderSchema, rawSpec *hcl.Block) (*expandDynamicSpec, hcl.Diagnostics) {
var diags hcl.Diagnostics
var schema *hcl.BodySchema
if len(blockS.LabelNames) != 0 {
schema = dynamicBlockBodySchemaLabels
} else {
schema = dynamicBlockBodySchemaNoLabels
}
specContent, specDiags := rawSpec.Body.Content(schema)
diags = append(diags, specDiags...)
if specDiags.HasErrors() {
return nil, diags
}
//// for_each attribute
eachAttr := specContent.Attributes["for_each"]
eachVal, eachDiags := eachAttr.Expr.Value(b.ctx)
diags = append(diags, eachDiags...)
if !eachVal.CanIterateElements() && eachVal.Type() != cty.DynamicPseudoType {
// We skip this error for DynamicPseudoType because that means we either
// have a null (which is checked immediately below) or an unknown
// (which is handled in the expandBody Content methods).
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic for_each value",
Detail: fmt.Sprintf("Cannot use a %s value in for_each. An iterable collection is required.", eachVal.Type().FriendlyName()),
Subject: eachAttr.Expr.Range().Ptr(),
Expression: eachAttr.Expr,
EvalContext: b.ctx,
})
return nil, diags
}
if eachVal.IsNull() {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic for_each value",
Detail: "Cannot use a null value in for_each.",
Subject: eachAttr.Expr.Range().Ptr(),
Expression: eachAttr.Expr,
EvalContext: b.ctx,
})
return nil, diags
}
//// iterator attribute
iteratorName := blockS.Type
if iteratorAttr := specContent.Attributes["iterator"]; iteratorAttr != nil {
itTraversal, itDiags := hcl.AbsTraversalForExpr(iteratorAttr.Expr)
diags = append(diags, itDiags...)
if itDiags.HasErrors() {
return nil, diags
}
if len(itTraversal) != 1 {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic iterator name",
Detail: "Dynamic iterator must be a single variable name.",
Subject: itTraversal.SourceRange().Ptr(),
})
return nil, diags
}
iteratorName = itTraversal.RootName()
}
var labelExprs []hcl.Expression
if labelsAttr := specContent.Attributes["labels"]; labelsAttr != nil {
var labelDiags hcl.Diagnostics
labelExprs, labelDiags = hcl.ExprList(labelsAttr.Expr)
diags = append(diags, labelDiags...)
if labelDiags.HasErrors() {
return nil, diags
}
if len(labelExprs) > len(blockS.LabelNames) {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Extraneous dynamic block label",
Detail: fmt.Sprintf("Blocks of type %q require %d label(s).", blockS.Type, len(blockS.LabelNames)),
Subject: labelExprs[len(blockS.LabelNames)].Range().Ptr(),
})
return nil, diags
} else if len(labelExprs) < len(blockS.LabelNames) {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Insufficient dynamic block labels",
Detail: fmt.Sprintf("Blocks of type %q require %d label(s).", blockS.Type, len(blockS.LabelNames)),
Subject: labelsAttr.Expr.Range().Ptr(),
})
return nil, diags
}
}
// Since our schema requests only blocks of type "content", we can assume
// that all entries in specContent.Blocks are content blocks.
if len(specContent.Blocks) == 0 {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Missing dynamic content block",
Detail: "A dynamic block must have a nested block of type \"content\" to describe the body of each generated block.",
Subject: &specContent.MissingItemRange,
})
return nil, diags
}
if len(specContent.Blocks) > 1 {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Extraneous dynamic content block",
Detail: "Only one nested content block is allowed for each dynamic block.",
Subject: &specContent.Blocks[1].DefRange,
})
return nil, diags
}
return &expandDynamicSpec{
blockType: blockS.Type,
blockTypeRange: rawSpec.LabelRanges[0],
defRange: rawSpec.DefRange,
forEachVal: eachVal,
iteratorName: iteratorName,
labelExprs: labelExprs,
contentBody: specContent.Blocks[0].Body,
}, diags
}
func (s *expandDynamicSpec) newBlock(i *dynamicIteration, ctx *hcl.EvalContext) (*hcl.Block, hcl.Diagnostics) {
var diags hcl.Diagnostics
var labels []string
var labelRanges []hcl.Range
lCtx := i.EvalContext(ctx)
for _, labelExpr := range s.labelExprs {
labelVal, labelDiags := labelExpr.Value(lCtx)
diags = append(diags, labelDiags...)
if labelDiags.HasErrors() {
return nil, diags
}
var convErr error
labelVal, convErr = convert.Convert(labelVal, cty.String)
if convErr != nil {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic block label",
Detail: fmt.Sprintf("Cannot use this value as a dynamic block label: %s.", convErr),
Subject: labelExpr.Range().Ptr(),
Expression: labelExpr,
EvalContext: lCtx,
})
return nil, diags
}
if labelVal.IsNull() {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic block label",
Detail: "Cannot use a null value as a dynamic block label.",
Subject: labelExpr.Range().Ptr(),
Expression: labelExpr,
EvalContext: lCtx,
})
return nil, diags
}
if !labelVal.IsKnown() {
return nil, diags
}
if labelVal.IsMarked() {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid dynamic block label",
Detail: "Cannot use a marked value as a dynamic block label.",
Subject: labelExpr.Range().Ptr(),
Expression: labelExpr,
EvalContext: lCtx,
})
return nil, diags
}
labels = append(labels, labelVal.AsString())
labelRanges = append(labelRanges, labelExpr.Range())
}
block := &hcl.Block{
Type: s.blockType,
TypeRange: s.blockTypeRange,
Labels: labels,
LabelRanges: labelRanges,
DefRange: s.defRange,
Body: s.contentBody,
}
return block, diags
}
type expandMetaArgSpec struct {
rawBlock *hcl.Block
countSet bool
countVal cty.Value
countNum int
forEachSet bool
forEachVal cty.Value
}
func (b *expandBody) decodeMetaArgSpec(rawSpec *hcl.Block) (*expandMetaArgSpec, hcl.Diagnostics) {
spec := &expandMetaArgSpec{rawBlock: rawSpec}
var diags hcl.Diagnostics
specContent, _, specDiags := rawSpec.Body.PartialContent(expandableBlockBodySchema)
diags = append(diags, specDiags...)
if specDiags.HasErrors() {
return spec, diags
}
//// count attribute
if countAttr, exists := specContent.Attributes["count"]; exists {
spec.countSet = true
countVal, countDiags := countAttr.Expr.Value(b.ctx)
diags = append(diags, countDiags...)
countVal, _ = countVal.Unmark()
spec.countVal = countVal
// We skip validation for count attribute if the value is unknwon
if countVal.IsKnown() {
if countVal.IsNull() {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid count argument",
Detail: `The given "count" argument value is null. An integer is required.`,
Subject: countAttr.Expr.Range().Ptr(),
Expression: countAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
var convErr error
countVal, convErr = convert.Convert(countVal, cty.Number)
if convErr != nil {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Incorrect value type",
Detail: fmt.Sprintf("Invalid expression value: %s.", tfdiags.FormatError(convErr)),
Subject: countAttr.Expr.Range().Ptr(),
Expression: countAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
err := gocty.FromCtyValue(countVal, &spec.countNum)
if err != nil {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid count argument",
Detail: fmt.Sprintf(`The given "count" argument value is unsuitable: %s.`, err),
Subject: countAttr.Expr.Range().Ptr(),
Expression: countAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
if spec.countNum < 0 {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid count argument",
Detail: `The given "count" argument value is unsuitable: negative numbers are not supported.`,
Subject: countAttr.Expr.Range().Ptr(),
Expression: countAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
}
}
//// for_each attribute
if eachAttr, exists := specContent.Attributes["for_each"]; exists {
spec.forEachSet = true
eachVal, eachDiags := eachAttr.Expr.Value(b.ctx)
diags = append(diags, eachDiags...)
spec.forEachVal = eachVal
if !eachVal.CanIterateElements() && eachVal.Type() != cty.DynamicPseudoType {
// We skip this error for DynamicPseudoType because that means we either
// have a null (which is checked immediately below) or an unknown
// (which is handled in the expandBody Content methods).
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "The `for_each` value is not iterable",
Detail: fmt.Sprintf("`%s` is not iterable", eachVal.GoString()),
Subject: eachAttr.Expr.Range().Ptr(),
Expression: eachAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
if eachVal.IsNull() {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: "Invalid for_each argument",
Detail: `The given "for_each" argument value is unsuitable: the given "for_each" argument value is null. A map, or set of strings is allowed.`,
Subject: eachAttr.Expr.Range().Ptr(),
Expression: eachAttr.Expr,
EvalContext: b.ctx,
})
return spec, diags
}
}
return spec, diags
}
```
|
```scala
/*
*/
package akka.stream.alpakka.mqtt.streaming
package impl
import akka.annotation.InternalApi
import akka.stream.{Attributes, FlowShape, Inlet, Outlet}
import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler}
import akka.util.ByteString
import scala.annotation.tailrec
import scala.collection.immutable
@InternalApi private[streaming] object MqttFrameStage {
@tailrec
def frames(
maxPacketSize: Int,
bytesReceived: ByteString,
bytesToEmit: Vector[ByteString]
): Either[IllegalStateException, (immutable.Iterable[ByteString], ByteString)] = {
import MqttCodec._
val i = bytesReceived.iterator
val _ = i.drop(1) // Length starts at offset 1
i.decodeRemainingLength() match {
case Right(remainingLength) =>
val headerSize = bytesReceived.size - i.len
val packetSize = remainingLength + headerSize
if (packetSize <= maxPacketSize) {
if (bytesReceived.size >= packetSize) {
val (b0, b1) = bytesReceived.splitAt(packetSize)
frames(maxPacketSize, b1, bytesToEmit :+ b0)
} else {
Right((bytesToEmit, bytesReceived))
}
} else {
Left(new IllegalStateException(s"Max packet size of $maxPacketSize exceeded with $packetSize"))
}
case _: Left[BufferUnderflow.type, Int] @unchecked =>
Right((bytesToEmit, bytesReceived))
}
}
}
/*
* Handles the framing of MQTT streams given that a length byte starts at an offset of 1 and
* can then continue to be specified given the setting of a high bit, up to a maximum of
* 4 bytes.
*
* 2.2.3 Remaining Length
* path_to_url
*/
@InternalApi private[streaming] final class MqttFrameStage(maxPacketSize: Int)
extends GraphStage[FlowShape[ByteString, ByteString]] {
import MqttFrameStage._
private val in = Inlet[ByteString]("MqttFrame.in")
private val out = Outlet[ByteString]("MqttFrame.out")
override def shape: FlowShape[ByteString, ByteString] = FlowShape.of(in, out)
override def createLogic(inheritedAttributes: Attributes): GraphStageLogic =
new GraphStageLogic(shape) {
setHandler(
in,
new InHandler {
private var bytesReceived = ByteString.empty
override def onPush(): Unit = {
val bytes = grab(in)
bytesReceived = bytesReceived ++ bytes
frames(maxPacketSize, bytesReceived, Vector.empty) match {
case Right((framed, remaining)) =>
emitMultiple(out, framed)
bytesReceived = remaining
if (!hasBeenPulled(in)) pull(in)
case Left(ex) =>
failStage(ex)
}
}
}
)
setHandler(out, new OutHandler {
override def onPull(): Unit =
if (!hasBeenPulled(in)) pull(in)
})
}
}
```
|
Dương Thị Vân (born 20 September 1994) is a Vietnamese footballer who plays as a midfielder for Women's Championship club Than Khoáng Sản and the Vietnam women's national team.
International Apps
International goals
.''Scores and results are list Vietnam's goal tally first.
References
1994 births
Living people
Women's association football midfielders
Vietnamese women's footballers
Vietnam women's international footballers
SEA Games gold medalists for Vietnam
SEA Games medalists in football
Competitors at the 2023 SEA Games
21st-century Vietnamese women
People from Hà Nam Province
2023 FIFA Women's World Cup players
|
The Hartlepool Post is an online newspaper and forum serving Hartlepool and the surrounding area. It has an average of 50,000 monthly visitors to its site and 9 contributors.
The paper opposes the whipped system of party politics in local Government and support Independent Councillors. Most of its content therefore relates to local politics and is often critical of the whipped parties. New sister sites for East Durham and Teesside are expected in 2013.
Popularity
Alexa Rank 2,937,116 ()
Alexa Rank 9,855,331 ()
References
British news websites
Newspapers established in 2002
Organisations based in the Borough of Hartlepool
|
```javascript
Generators as iterators in ES6
ES6 `Number` methods
Strings in ES6
Maps and Sets in ES6
`WeakMap` in ES6
```
|
```c
/*
* imx dump header bitstream filter
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* FFmpeg 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 GNU
*
* You should have received a copy of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @file
* imx dump header bitstream filter
* modifies bitstream to fit in mov and be decoded by final cut pro decoder
*/
#include "avcodec.h"
#include "bsf.h"
#include "bytestream.h"
static int imx_dump_header(AVBSFContext *ctx, AVPacket *out)
{
/* MXF essence element key */
static const uint8_t imx_header[16] = { 0x06,0x0e,0x2b,0x34,0x01,0x02,0x01,0x01,0x0d,0x01,0x03,0x01,0x05,0x01,0x01,0x00 };
AVPacket *in;
int ret = 0;
uint8_t *out_buf;
ret = ff_bsf_get_packet(ctx, &in);
if (ret < 0)
return ret;
ret = av_new_packet(out, in->size + 20);
if (ret < 0)
goto fail;
out_buf = out->data;
bytestream_put_buffer(&out_buf, imx_header, 16);
bytestream_put_byte(&out_buf, 0x83); /* KLV BER long form */
bytestream_put_be24(&out_buf, in->size);
bytestream_put_buffer(&out_buf, in->data, in->size);
ret = av_packet_copy_props(out, in);
if (ret < 0)
goto fail;
fail:
if (ret < 0)
av_packet_unref(out);
av_packet_free(&in);
return ret;
}
static const enum AVCodecID codec_ids[] = {
AV_CODEC_ID_MPEG2VIDEO, AV_CODEC_ID_NONE,
};
const AVBitStreamFilter ff_imx_dump_header_bsf = {
.name = "imxdump",
.filter = imx_dump_header,
.codec_ids = codec_ids,
};
```
|
Michal Horský (1 July 1943, Trnava – 18 March 2018) was a Slovak political scientist and politician. A member of the Public Against Violence, he was elected to the Chamber of the Nations, the upper chamber of the Federal Assembly of Czechoslovakia, between 1990 and 1992.
References
1943 births
2018 deaths
Politicians from Trnava
Public Against Violence politicians
Civic Democratic Union (Slovakia) politicians
Members of the Chamber of the Nations of Czechoslovakia (1990–1992)
Slovak political scientists
|
Fort Buenaventura, located in west Ogden, Utah, United States, was the first permanent Anglo settlement in the Great Basin. Built just east of the Weber River in 1846 by Miles Goodyear, the fort and its surrounding lands were purchased by Mormon settlers in 1847 and renamed Brownsville (then later Ogden). Following flooding along the river in 1850, the fort was abandoned.
In 1980, Fort Buenaventura State Park was opened, which included a replica of the fort at its original location. In 2002, ownership of the park was transferred to Weber County, which now operates the fort and surrounding recreational facilities.
History
Fort Buenaventura was the first permanent settlement by people of European descent in the Great Basin. It was established by the trapper Miles Goodyear and his business partner Captain Wells in 1846.
The fort was built near a bend on the east bank of the Weber River, and served as a trading post for trappers and travelers. The settlement's location is about a mile west-southwest from the present-day Ogden municipal building.
In November 1847, Fort Buenaventura and the surrounding land claim were purchased by recently arrived Mormon settlers for $1,950 (equivalent to about $ in ). The settlement was then renamed Brownsville but was later changed to Ogden after Peter Skene Ogden, who trapped beaver in the Weber Valley. The fort was abandoned following flooding in 1850, and settlers constructed a new fort (Brown's Fort) a short distance to the south and east. At least one cabin was saved from the original fort; this structure is preserved at the Weber County Daughters of Utah Pioneers museum as the "Miles Goodyear Cabin."
Weber County park
The site of the original Fort Buenaventura is now a park occupying . The park, which includes a replica of the original fort, was dedicated as a Utah State Park in October 1980.
Prior to the replica's construction, during fall 1979, Dr. Evan DeBloois, a regional archaeologist with the U.S. Forest Service and adjunct professor at nearby Weber State University, completed an archaeological excavation. The excavation uncovered parts of the old stockade, revealing the fort's original dimensions.
The replica was constructed using techniques from the original fort's construction, including mortise and tenon joints, and was made as accurate as possible based on existing evidence. One major exception being its construction out of quaking aspen and lodgepole pine, rather than cottonwood like the original. Following a damaging windstorm, portions of the fort had to be reconstructed in 2000. This reconstruction was made using higher quality materials.
Following budget cuts, the state turned over ownership of the property to Weber County in 2002 (and ended its status as a "state park"). Located at 2450 "A" Avenue in Ogden, the county-run park offers camping, canoeing and meeting facilities during the summer season.
See also
Fort Robidoux, another early trading post in present-day Utah
References
External links
Fort Buenaventura - Weber County Parks and Rec
Mexican–American War forts
Buenaventura
Buildings and structures in Ogden, Utah
Parks in Utah
1846 establishments in North America
Populated places in Weber County, Utah
Museums in Weber County, Utah
Military and war museums in Utah
Pre-statehood history of Utah
Protected areas of Weber County, Utah
Tourist attractions in Ogden, Utah
|
```php
<?php
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing;
use PhpOffice\PhpSpreadsheet\Writer\BaseWriter;
require __DIR__ . '/../Header.php';
// Create new Spreadsheet object
$helper->log('Create new Spreadsheet object');
$spreadsheet = new Spreadsheet();
$sheet1 = $spreadsheet->getActiveSheet();
$sheet1->setTitle('SheetWithData');
$sheet1->getCell('G1')->setValue('X');
$sheet1->getCell('E5')->setValue('Y');
$sheet1->getCell('A8')->setValue('Z');
// Set document properties
$helper->log('Set document properties');
$spreadsheet->getProperties()->setCreator('Maarten Balliauw')
->setLastModifiedBy('Maarten Balliauw')
->setTitle('Office 2007 XLSX Test Document')
->setSubject('Office 2007 XLSX Test Document')
->setDescription('Test document for Office 2007 XLSX, generated using PHP classes.')
->setKeywords('office 2007 openxml php')
->setCategory('Test result file');
// Generate an image
$helper->log('Generate an image');
$gdImage = imagecreatetruecolor(120, 20);
if (!$gdImage) {
throw new Exception('Cannot Initialize new GD image stream');
}
$textColor = imagecolorallocate($gdImage, 255, 255, 255);
if ($textColor === false) {
throw new Exception('imagecolorallocate failed');
}
imagestring($gdImage, 1, 5, 5, 'Created with PhpSpreadsheet', $textColor);
// Add a drawing to the worksheet
$helper->log('Add a drawing to the worksheet');
$drawing = new MemoryDrawing();
$drawing->setName('Sample image');
$drawing->setDescription('Sample image');
$drawing->setImageResource($gdImage);
$drawing->setRenderingFunction(MemoryDrawing::RENDERING_JPEG);
$drawing->setMimeType(MemoryDrawing::MIMETYPE_DEFAULT);
$drawing->setHeight(36);
$drawing->setWorksheet($sheet1);
$drawing->setCoordinates('C5');
$helper->log('Create new sheet');
$sheet2 = $spreadsheet->createSheet();
$sheet2->setTitle('SheetWithoutData');
// Add a drawing to the new worksheet
$helper->log('Add a drawing to the new worksheet');
$drawing = new MemoryDrawing();
$drawing->setName('Sample image');
$drawing->setDescription('Sample image');
$drawing->setImageResource($gdImage);
$drawing->setRenderingFunction(MemoryDrawing::RENDERING_JPEG);
$drawing->setMimeType(MemoryDrawing::MIMETYPE_DEFAULT);
$drawing->setHeight(36);
$drawing->setWorksheet($sheet2);
$drawing->setCoordinates('C5');
// Save
$helper->write(
$spreadsheet,
__FILE__,
['Xlsx', 'Html'],
false,
function (BaseWriter $writer): void {
if (method_exists($writer, 'writeAllSheets')) {
$writer->writeAllSheets();
}
}
);
$spreadsheet->disconnectWorksheets();
```
|
```c++
/* Boost.MultiIndex test for for MPL operations.
*
* (See accompanying file LICENSE_1_0.txt or copy at
* path_to_url
*
* See path_to_url for library home page.
*/
#include <boost/detail/lightweight_test.hpp>
#include "test_mpl_ops.hpp"
int main()
{
test_mpl_ops();
return boost::report_errors();
}
```
|
Charles de Saint-Ours (August 24, 1753 – November 11, 1834) was a seigneur and political figure in Lower Canada.
He was born Roch-Louis de Saint-Ours in the town of Quebec in 1753. He became a major in the militia in 1774 and took part in the defence of Fort St John's (later Saint-Jean-sur-Richelieu) against the Americans. He was taken prisoner, returned to Quebec in 1777 and became a lieutenant in the Canadian volunteers. He was named aide-de-camp to Governor Sir Guy Carleton and also served as aide-de-camp for Prince William Henry, who later became William IV, during his visit to the province in 1787. In 1792, he inherited parts of the seigneuries of Saint-Ours, L'Assomption, and Deschaillons; he eventually acquired all of the seigneury of Saint-Ours. Around 1792, he married Josette Murray, whose great-uncle was former governor James Murray. He became a captain in the regular army in 1795, later retiring on half pay. Saint-Ours was named to the Legislative Council of Lower Canada in 1808 and remained a member until his death. He served as colonel in the militia during the War of 1812.
He died at Saint-Ours in 1834.
His brother Paul-Roch also served as a member of the legislative council. His daughter Josette married Pierre-Dominique Debartzch, who later served on the legislative council. His son François-Roch became a member of the legislative assembly. His niece Josephte-Catherine married Jacques Dorion, a doctor and later a member of the assembly.
References
1753 births
1834 deaths
Canadian people of the War of 1812
Members of the Legislative Council of Lower Canada
|
```go
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: echo.proto
package testpb
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Message struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Sequence int32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_08134aea513e0001, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (m *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(m, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *Message) GetSequence() int32 {
if m != nil {
return m.Sequence
}
return 0
}
func init() {
proto.RegisterType((*Message)(nil), "testpb.Message")
}
func init() { proto.RegisterFile("echo.proto", fileDescriptor_08134aea513e0001) }
var fileDescriptor_08134aea513e0001 = []byte{
// 196 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0x31, 0x4b, 0xc0, 0x30,
0x10, 0x85, 0x89, 0x68, 0xab, 0xe7, 0x20, 0x64, 0x2a, 0x9d, 0x8a, 0x53, 0xa6, 0x44, 0xea, 0x20,
0x4e, 0x82, 0xe0, 0xe8, 0x52, 0x37, 0xb7, 0xe6, 0x3c, 0x93, 0xa0, 0x69, 0xe2, 0x25, 0x15, 0xfc,
0xf7, 0x62, 0xab, 0x0e, 0x2e, 0x6e, 0xf7, 0x1d, 0x77, 0xdf, 0xe3, 0x01, 0x10, 0xfa, 0xa4, 0x33,
0xa7, 0x9a, 0x64, 0x53, 0xa9, 0xd4, 0x6c, 0xcf, 0x6f, 0xa0, 0xbd, 0xa7, 0x52, 0x66, 0x47, 0xb2,
0x83, 0x36, 0xee, 0x63, 0x27, 0x06, 0xa1, 0x4e, 0xa6, 0x1f, 0x94, 0x3d, 0x1c, 0x17, 0x7a, 0x5b,
0x69, 0x41, 0xea, 0x0e, 0x06, 0xa1, 0x8e, 0xa6, 0x5f, 0x1e, 0x5f, 0xe0, 0xf4, 0x0e, 0x7d, 0x7a,
0x20, 0x7e, 0x0f, 0x48, 0x52, 0xc1, 0xe1, 0x17, 0xca, 0x33, 0xbd, 0x07, 0xe8, 0x6f, 0x7b, 0xff,
0x77, 0x21, 0x47, 0x80, 0xed, 0xb1, 0x32, 0xcd, 0xf1, 0xff, 0x7b, 0x25, 0x2e, 0xc4, 0xed, 0xf5,
0xe3, 0x95, 0x0b, 0xd5, 0xaf, 0x56, 0x63, 0x8a, 0xc6, 0x7f, 0x64, 0xe2, 0x57, 0x7a, 0x72, 0xc4,
0xe6, 0x79, 0xb6, 0x1c, 0xd0, 0x60, 0x8a, 0x31, 0x2d, 0xc6, 0x71, 0xc6, 0x48, 0x95, 0x03, 0x16,
0xb3, 0x6b, 0x6c, 0xb3, 0xf5, 0xbe, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x48, 0xde, 0xb3, 0x72,
0x05, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// EchoServiceClient is the client API for EchoService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to path_to_url#ClientConn.NewStream.
type EchoServiceClient interface {
Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
EchoStream(ctx context.Context, opts ...grpc.CallOption) (EchoService_EchoStreamClient, error)
}
type echoServiceClient struct {
cc grpc.ClientConnInterface
}
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient {
return &echoServiceClient{cc}
}
func (c *echoServiceClient) Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) {
out := new(Message)
err := c.cc.Invoke(ctx, "/testpb.EchoService/Echo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *echoServiceClient) EchoStream(ctx context.Context, opts ...grpc.CallOption) (EchoService_EchoStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_EchoService_serviceDesc.Streams[0], "/testpb.EchoService/EchoStream", opts...)
if err != nil {
return nil, err
}
x := &echoServiceEchoStreamClient{stream}
return x, nil
}
type EchoService_EchoStreamClient interface {
Send(*Message) error
Recv() (*Message, error)
grpc.ClientStream
}
type echoServiceEchoStreamClient struct {
grpc.ClientStream
}
func (x *echoServiceEchoStreamClient) Send(m *Message) error {
return x.ClientStream.SendMsg(m)
}
func (x *echoServiceEchoStreamClient) Recv() (*Message, error) {
m := new(Message)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// EchoServiceServer is the server API for EchoService service.
type EchoServiceServer interface {
Echo(context.Context, *Message) (*Message, error)
EchoStream(EchoService_EchoStreamServer) error
}
// UnimplementedEchoServiceServer can be embedded to have forward compatible implementations.
type UnimplementedEchoServiceServer struct {
}
func (*UnimplementedEchoServiceServer) Echo(ctx context.Context, req *Message) (*Message, error) {
return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
}
func (*UnimplementedEchoServiceServer) EchoStream(srv EchoService_EchoStreamServer) error {
return status.Errorf(codes.Unimplemented, "method EchoStream not implemented")
}
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer) {
s.RegisterService(&_EchoService_serviceDesc, srv)
}
func _EchoService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Message)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EchoServiceServer).Echo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testpb.EchoService/Echo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EchoServiceServer).Echo(ctx, req.(*Message))
}
return interceptor(ctx, in, info, handler)
}
func _EchoService_EchoStream_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(EchoServiceServer).EchoStream(&echoServiceEchoStreamServer{stream})
}
type EchoService_EchoStreamServer interface {
Send(*Message) error
Recv() (*Message, error)
grpc.ServerStream
}
type echoServiceEchoStreamServer struct {
grpc.ServerStream
}
func (x *echoServiceEchoStreamServer) Send(m *Message) error {
return x.ServerStream.SendMsg(m)
}
func (x *echoServiceEchoStreamServer) Recv() (*Message, error) {
m := new(Message)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _EchoService_serviceDesc = grpc.ServiceDesc{
ServiceName: "testpb.EchoService",
HandlerType: (*EchoServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Echo",
Handler: _EchoService_Echo_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "EchoStream",
Handler: _EchoService_EchoStream_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "echo.proto",
}
```
|
The Ross Booth Memorial Bridge, historically known as the Winfield Toll Bridge, also known as, is a historic three-span cantilever Warren Truss bridge located at Winfield and Red House, Putnam County, West Virginia. It was built in 1955, and spans the Kanawha River, carrying West Virginia Route 34. The cantilever through-truss consists of two anchor spans each in length and the main span in length between pier center lines. The main span consists of two cantilever arms and a suspended span.
It was listed on the National Register of Historic Places in 2011.
References
Road bridges on the National Register of Historic Places in West Virginia
Bridges completed in 1955
Buildings and structures in Putnam County, West Virginia
National Register of Historic Places in Putnam County, West Virginia
Former toll bridges in West Virginia
Cantilever bridges in the United States
Warren truss bridges in the United States
1955 establishments in West Virginia
Kanawha River
|
Georgios Jakobides (Γεώργιος Ιακωβίδης; 11 January 1853 – 13 December 1932) was a painter and one of the main representatives of the Greek artistic movement of the Munich School. He founded and was the first curator of the National Gallery of Greece in Athens.
Life
He was born in Chidira, Lesbos, Ottoman Empire. At the age of 13, he traveled to Smyrna to live with his uncle and study at the Evangelical School. From 1870 to 1876, Jakobides studied sculpture and painting at the Athens School of Fine Arts, and in 1877 he went to the Academy of Fine Arts in Munich on a scholarship to continue his painting studies under Karl Theodor von Piloty.
In Munich, he lived for 17 years where he worked in his studio, painting mythological scenes, genre pictures, and portraits. His work is influenced by German academic Realism. His most famous paintings were of children, but it said that after his wife's death in 1889, he stopped painting happy themes. In the capital of Bavaria, he was regarded as a successful German artist selling many of his works at high prices. The Greek government invited him in 1900 to return to Athens to organize the National Gallery of Athens, and in 1904 he was appointed Director of the Athens School of Fine Arts, where he taught for 25 years. At this time, additional to his themes he produced formal portraits of eminent Greeks (e.g., Queen Sophia). He opposed all new artistic tendencies, including Impressionism and Expressionism, but supported younger artists to follow their own individual artistic tendencies.
He was awarded at five international exhibits: among those in Berlin 1891 and in Paris 1900.
His works are found in the National Gallery of Athens, private collections and in museums and art galleries around the world including art galleries in Germany and the Art Institute of Chicago.
His opus consists of some two hundred oil paintings, several of which are on display in Europe and overseas. His son, the actor Michalis Iakovides, donated his personal journal – which includes a list of his paintings between 1878 and 1919 – to the National Gallery of Greece in 1951.
He died in Athens in 1932.
Legacy
In addition to his work as a painter, Jakobides was commissioned to create designs for a number of modern Greek coins including the 1 and 2 drachma coins from 1910 and 1911, the 50 lepta of 1921, and the 10 lepta of 1922.
Gallery
See also
Munich School
Art in modern Greece
References
External links
Jakobides Digital Museum
National Gallery of Athens Official website
Andreas S. Ioannou, 19th Century Greek Art.
1853 births
1932 deaths
19th-century German male artists
19th-century Greek painters
20th-century Greek male artists
20th-century Greek painters
Academic staff of the Athens School of Fine Arts
Greek art curators
Greek male painters
Greek portrait painters
Greeks from the Ottoman Empire
Members of the Academy of Athens (modern)
Munich School
People from Eresos-Antissa
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or
* data (collectively the "Software"), free of charge and under any and all
* copyright rights in the Software, and any and all patent rights owned or
* freely licensable by each licensor hereunder covering either (i) the
* unmodified Software as contributed to or provided by such licensor, or (ii)
* the Larger Works (as defined below), to deal in both
*
* (a) the Software, and
*
* (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
* one is included with the Software each a "Larger Work" to which the Software
* is contributed by such licensors),
*
* without restriction, including without limitation the rights to copy, create
* derivative works of, display, perform, and distribute the Software and make,
* use, sell, offer for sale, import, export, have made, and have sold the
* Software and the Larger Work(s), and to sublicense the foregoing rights on
* either these or other terms.
*
* This license is subject to the following condition:
*
* The above copyright notice and either this complete permission notice or at a
* minimum a reference to the UPL must be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oracle.truffle.api.object;
/**
* Double-typed storage location.
*
* @since 0.8 or earlier
* @see Location
* @see DynamicObjectLibrary#getDoubleOrDefault
* @see DynamicObjectLibrary#putDouble
*/
@Deprecated(since = "22.2")
public interface DoubleLocation {
/**
* @see Location#get(DynamicObject, Shape)
* @since 0.8 or earlier
*/
@Deprecated(since = "22.2")
double getDouble(DynamicObject store, Shape shape);
/**
* @see Location#get(DynamicObject, boolean)
* @since 0.8 or earlier
*/
@Deprecated(since = "22.2")
double getDouble(DynamicObject store, boolean condition);
/**
* @see Location#set(DynamicObject, Object, Shape)
* @since 0.8 or earlier
*/
@SuppressWarnings("deprecation")
@Deprecated(since = "22.2")
void setDouble(DynamicObject store, double value, Shape shape) throws FinalLocationException;
}
```
|
```ruby
class Treecc < Formula
desc "Aspect-oriented approach to writing compilers"
homepage "path_to_url"
url "path_to_url"
sha256 your_sha256_hash
license "GPL-2.0"
livecheck do
url "path_to_url"
regex(/href=.*?treecc[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: your_sha256_hash
sha256 cellar: :any_skip_relocation, arm64_ventura: your_sha256_hash
sha256 cellar: :any_skip_relocation, arm64_monterey: your_sha256_hash
sha256 cellar: :any_skip_relocation, arm64_big_sur: your_sha256_hash
sha256 cellar: :any_skip_relocation, sonoma: your_sha256_hash
sha256 cellar: :any_skip_relocation, ventura: your_sha256_hash
sha256 cellar: :any_skip_relocation, monterey: your_sha256_hash
sha256 cellar: :any_skip_relocation, big_sur: your_sha256_hash
sha256 cellar: :any_skip_relocation, catalina: your_sha256_hash
sha256 cellar: :any_skip_relocation, mojave: your_sha256_hash
sha256 cellar: :any_skip_relocation, high_sierra: your_sha256_hash
sha256 cellar: :any_skip_relocation, sierra: your_sha256_hash
sha256 cellar: :any_skip_relocation, el_capitan: your_sha256_hash
sha256 cellar: :any_skip_relocation, x86_64_linux: your_sha256_hash
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"
bin.install "treecc"
end
test do
system bin/"treecc", "-v"
end
end
```
|
```ocaml
(** Dynamic values *)
(** Representation of OCaml values such that they can be processed without
knowing their type. *)
type t =
| Opaque
| Unit
| Int of int
| Int32 of int32
| Int64 of int64
| Nativeint of nativeint
| Bool of bool
| String of string
| Bytes of bytes
| Char of char
| Float of float
| Option of t option
| List of t list
| Array of t array
| Tuple of t list
| Record of (string * t) list
| Variant of string * t list
| Map of (t * t) list
| Set of t list
val equal : t -> t -> bool
val compare : t -> t -> Ordering.t
val hash : t -> int
val pp : t -> _ Pp.t
val to_string : t -> string
(** {1 Constructors} *)
type 'a builder = 'a -> t
val unit : unit builder
val char : char builder
val string : string builder
val int : int builder
val int32 : int32 builder
val int64 : int64 builder
val nativeint : nativeint builder
val float : float builder
val bool : bool builder
val pair : 'a builder -> 'b builder -> ('a * 'b) builder
val triple : 'a builder -> 'b builder -> 'c builder -> ('a * 'b * 'c) builder
val list : 'a builder -> 'a list builder
val array : 'a builder -> 'a array builder
val option : 'a builder -> 'a option builder
val opaque : _ builder
val record : (string * t) list -> t
val variant : string -> t list -> t
val result : 'a builder -> 'error builder -> ('a, 'error) result builder
```
|
Lake Warren was a proglacial lake that formed in the Lake Erie basin around 12,700 years before present (YBP) when Lake Whittlesey dropped in elevation. Lake Warren is divided into three stages: Warren I , Warren II , and Warren III , each defined by the relative elevation above sea level.
Origin
Lake Warren followed Lake Wayne. It covered the basin of Lake Erie, part of Lake Huron, including Saginaw Bay and the lowland, which separates Lake Huron from Lake Erie. It included a part of the Lake Ontario basin and the lowland between Lakes Ontario and Erie.
Lake Warren included the Saginaw basin and the Huron-Erie basin. Its outlet was through the Grand River to Lake Chicago. The beach stands at above sea level west of the hinge line, unaffected by the isostatic rebound. It is marginally above the outlet, at . Lake Warren was preceded by a lower stage, which had its outlet through the Mohawk valley.
Lake Warren came into existence its waters were raised from Lake Wayne by advancing ice front. The ice both compacted the area where the melt water could be held, raising the water level, while blocking the lower outlet from Lake Wayne.
Size
Lake Warren was about half the size of the present day Lake Erie, lying in the southern half of the basin.
Beach
The beach rises to the north of the Grand River outlet at per mile until it reaches near Gladwin. It is also nearly on the point of the "Thumb" in Huron county north of Bad Axe. The beach is horizontal from Lenox, in St. Clair county, around the west end of Lake Erie, then along the south shore through Ohio to the Pennsylvania line, a distance of . Between there and Batavia, New York, it rises in the next .
The beach marks a lake level which lasted a considerable period of time, shorter than either the Arkona or the Lake Whittlesey durations. The delta deposits are not as extensive as Lake Arkona. Its shore deposits vary, where the lakebed was till or gravelly material, a gravelly beach was formed. Where the lakebed was sandy it is a sandy ridge.
Lakes Warren and Wayne
The relatively strong but discontinuous multiple sand and gravel beach ridges occurring as close as 40 feet and as much as 100 feet below the Whittlesey strand line in western New York (between are correlated with Glacial Lake Warren. These ridges occur at the foot of the Allegheny Plateau. They are frequently associated with deltas. The ridges are well developed in a few areas well beyond the Plateau in the Lakes Erie and Ontario lowlands. In many cases, the ridges and deltas are underlain by silts of Lake Whittlesey lakebed.
See also
Proglacial lakes of the Lake Erie Basin
Lake Maumee
Lake Arkona
Lake Wayne
Lake Whittlesey
Lake Warren
Lake Grassmere
Early Lake Algonquin
Lake Lundy and Dana
Early Lake Erie
Lake Erie
References
Strand Lines and Chronology of the Glacial Great Lakes in Northwestern New York; Parker E. Calkin; Department of Geological Sciences, State University of New York at Buffalo; The Ohio Journal of Science 70(2): 78, March, 1970
Chapter XIX, Glacial Lake Warren; Frank B. Taylor; Glacial Formations and Drainage Features Erie and Ohio Basins; Frank Leverett and Frank B. Taylor; Government Printing Office; Washington, D.C.; 1902; pg 741-757
Moraines of the Maumee Lobe; Glacial Formations and Drainage Features of the Erie and Ohio Basins; Monograph XLI; Frank Leverett; Government Printing Office; Washington, D.C.; 1902
Publication 9. Geological Series 7; Surface Geology and Agricultural Conditions of the Southern Peninsula of Michigan; Frank Leverett with a Chapter on Climate by C. F. Schneider;Michigan Geological and Biological Survey Lansing Michigan; 1911
Bull. Geol. Soo. America, vol. S, 1897, pp. 274–297; also vol. 10, 1899, pp. 27–68.
Mon. U. S. Geol. Survey, vol. 41, 1902, pp. 760–771.
Correlation of Erie-Huron beaches with outlets and moraines of southeastern Michigan: Bull. Geol. Soc. America, vol. S, 1897, pp. 56–57.
Former lakes of the United States
Geology of Ohio
Geology of Michigan
Geology of New York (state)
Geology of Pennsylvania
Geological history of the Great Lakes
Proglacial lakes
Lake Erie
Glacial lakes of the United States
|
George William Anderson (1791 – 12 March 1857) was the officiating governor of Bombay during the British Raj from 28 April 1841 to 9 June 1842.
Anderson entered the Bombay Civil Service in 1806. He was responsible for drawing up the Bombay Civil Code of 1827 and served as a judge in the Sadr Diwani and Sadr Faujdari courts. In 1838, he was named to the Indian Law Commission and from 1843 to 1846 was President of the Bombay Branch of the Royal Asiatic Society. He was knighted in 1849.
He was 7th Governor of Mauritius from 8 June 1849 until 19 October 1850, when he was appointed governor of Ceylon, following the harsh suppression of the 1848 civil uprising by the previous office holder, Viscount Torrington. He resigned in 1855.
References
Governors of Bombay
Governors of British Ceylon
1857 deaths
1791 births
Burials at Kensal Green Cemetery
British people in colonial India
|
```yaml
init_config:
loader: core
use_device_id_as_hostname: true
instances:
- ip_address: dd-snmp
port: 1161
community_string: "cisco-nexus"
```
|
Laccaria laccata, commonly known as the deceiver, lackluster laccaria, or waxy laccaria, is a white-spored species of small edible mushroom found throughout North America and Europe. It is a highly variable mushroom (hence 'deceiver'), and can look quite washed out, colorless and drab, but when younger it often assumes red, pinkish brown, and orange tones. The species is often considered by mushroom collectors to be a 'mushroom weed' because of its abundance and plain stature.
Taxonomy
The deceiver was first described by Tyrolian naturalist Giovanni Antonio Scopoli in 1772 as Agaricus laccatus, before being given its current binomial name by Mordecai Cubitt Cooke in 1884. The specific epithet is derived from the Latin adjective laccatus 'varnished' or 'shining'. Clitocybe laccata is an old alternative name. Var. pallidifolia, described by Charles Horton Peck, is the most common variety found in North America.
It is the type species of the cosmopolitan mushroom genus Laccaria; where their relations lie among the gilled mushrooms is unclear, but they are currently classified in the family Hydnangiaceae.
The deceiver gets its common name from its variable appearance. Other names include lacklustre laccaria, and, by the Zapotec people, Beshia ladhi biinii (also the name of other members of Laccaria).
Description
The deceiver is a small mushroom with a cap measuring in diameter, convex when young and later flattening or even depressed in the center. It can be various shades of salmon pink, brick-red, or shades of orange or brown when moist or young, and duller and paler when dry. The fibrous stipe is high and wide. The irregular gills are widely spaced and decurrent or adnexed, and of similar color to the cap, though whiten with spores as the mushroom matures. The spore print is white, and the round spiny spores are 7–10 μm in diameter. The flesh is thin and has little taste.
Formerly considered a subspecies by French mycologist René Maire, the close deceiver (Laccaria proxima) is a European relative with a fine scaly cap and found in wetter habitats. Microscopically, its spores are narrower and more oval-shaped.
In California, what was thought to be L. laccata under eucalyptus has turned out to be the Australian species Laccaria fraterna. Other similar species include Laccaria amethysteo-occidentalis and Laccaria bicolor.
Distribution and habitat
Laccaria laccata is found in scattered troops in wooded areas, and on heathland often in poor soil. It is very common in all of the northern temperate zones, but tends to favor cool weather. L. laccata is mycorrhizal with several types of trees, including members of the Pinaceae (Pines), Fagaceae (Beech), and Betulaceae (Birch). It is found across Europe and North America, south into Mexico and Costa Rica. Laccaria species are mycorrhizal, and thought by some to be pioneer species.
The roots of Corylus avellana (Hazel) are also used as a host for the fungus in Great Britain.
Edibility
Although small, the deceiver is edible and mild-tasting. The tough stalks are usually not eaten. It is one of many mushrooms traditionally eaten by the Zapotec people of Oaxaca in Mexico. However, it is important to distinguish it from potentially lethal small brown mushrooms.
References
External links
Laccaria laccata var. laccata at the Field Museum of Natural History website
Edible fungi
laccata
Fungi of Europe
Fungi of North America
Taxa named by Giovanni Antonio Scopoli
|
Trygve Tollefsbol is a Distinguished Professor at the University of Alabama at Birmingham (UAB) in the department of Biology . Coining the term “epigenetics diet” in 2011, Tollefsbol has been a leader in the field of phytochemical-based epigenetic mechanisms to prevent cancer. In his role as founder and chief editor for Elsevier's Translational Epigenetics, an internationally recognized series, he has directed the publication of almost 50 books on the topic of epigenetics.
Career
Tollefsbol's edited and co-authored textbook, Handbook of Epigenetics, is one of the standards in the field and is in the third edition. He has 20 books either published or in press on topics such as epigenetics, aging, cancer and telomerase as editor and co-author and his book, Medical Epigenetics, was awarded by the Association of American Publishers Award for Professional and Scholarly Excellence (PROSE Award).
Tollefsbol has contributed chapters on epigenetics in Lewin's GENES, one of the leading and most well-known international textbooks in molecular biology and has published over 200 scientific articles. The focus of his early research involved mechanisms of DNA methylation in aging and he was among the pioneers advocating the importance of epigenetic processes such as DNA methylation in aging cells.
He graduated cum laude with a Bachelor of Science from the University of Houston and obtained a Master of Science, Doctor of Osteopathic Medicine, and Doctor of Philosophy from the University of North Texas Health Sciences Center and completed his postdoctoral studies at Duke University and the University of North Carolina.
Tollefsbol joined the faculty at UAB in 1998 where he is a Distinguished Professor of Biology and a senior scientist in the O’Neal Comprehensive Cancer Center, Integrative Center for Aging Research, Nutrition Obesity Research Center, Comprehensive Diabetes Center, and the University Wide Microbiome Center . He founded and directed the UAB Cell Senescence Culture Facility for more than 20 years, a service that facilitated the research of numerous investigators both at UAB and nationally.
Tollefsbol received an unsolicited grant award from the Glenn Foundation for Medical Research for his research on the mechanisms of biological aging and served for many years as Associate Editor of Frontiers in Genetics, a leading international journal in his area, and was awarded Outstanding Associate Editor in 2021. He has served as chair and/or panel member for grant Study Sections for the NIH Center for Scientific Review on multiple occasions. Tollefsbol married fellow scientist Lucy G. Andrews in 1990 who collaborated with him on many of his studies.
He received the Ireland Award for Scholarly Distinction at UAB in 2015.
References
University of Alabama at Birmingham faculty
Epigeneticists
Year of birth missing (living people)
Living people
|
```yaml
version: "3"
services:
db:
image: postgres:10.4
ports:
- "5432:5432"
sqs:
image: softwaremill/elasticmq
hostname: sqs
ports:
- 9324:9324
django:
hostname: django
env_file:
- docker/dev/docker.env
build:
context: ./
dockerfile: docker/dev/django/Dockerfile
ports:
- "8000:8000"
depends_on:
- db
- sqs
- statsd-exporter
volumes:
- .:/code
worker:
env_file:
- docker/dev/docker.env
build:
context: ./
dockerfile: docker/dev/worker/Dockerfile
depends_on:
- django
volumes:
- .:/code
worker_py3_8:
env_file:
- docker/dev/docker.env
build:
context: ./
dockerfile: docker/dev/worker_py3.8/Dockerfile
depends_on:
- django
volumes:
- .:/code
nodejs:
hostname: nodejs
build:
context: ./
dockerfile: docker/dev/nodejs/Dockerfile
environment:
NODE_ENV: development
ports:
- "8888:8888"
- "35729:35729"
volumes:
- .:/code
- /code/node_modules
- /code/bower_components
statsd-exporter:
hostname: statsd
image: prom/statsd-exporter:latest
command:
- '--log.level=info'
- '--web.telemetry-path=/statsd/metrics'
ports:
- '9125:9125'
- '9102:9102'
```
|
```javascript
import { Component } from 'substance'
export default class UnsupportedInlineNodeComponent extends Component {
render ($$) {
const node = this.props.node
let data
if (node._isXMLNode) {
data = node.toXML().serialize()
} else if (node.data) {
data = node.data
} else {
data = JSON.stringify(node.toJSON())
}
let el = $$('span').addClass('sc-unsupported-inline-node').append(
$$('code').text(data)
).attr({
'data-id': node.id,
contenteditable: false
})
return el
}
}
```
|
```objective-c
#pragma once
#include <base/types.h>
#include <base/defines.h>
#include <Common/Exception.h>
#ifdef OS_LINUX /// Because of futex
#include <atomic>
#include <mutex>
#include <unordered_map>
#include <memory>
namespace DB
{
// Scoped object, enabling thread cancellation (cannot be nested).
// Intended to be used once per cancelable task. It erases any previously held cancellation signal.
// Note that by default thread is not cancelable.
struct Cancelable
{
Cancelable();
~Cancelable();
};
// Scoped object, disabling thread cancellation (cannot be nested; must be inside `Cancelable` region)
struct NonCancelable
{
NonCancelable();
~NonCancelable();
};
// Responsible for synchronization needed to deliver thread cancellation signal.
// Basic building block for cancelable synchronization primitives.
// Allows to perform cancelable wait on memory addresses (think futex)
class CancelToken
{
public:
CancelToken();
CancelToken(const CancelToken &) = delete;
CancelToken(CancelToken &&) = delete;
CancelToken & operator=(const CancelToken &) = delete;
CancelToken & operator=(CancelToken &&) = delete;
~CancelToken();
// Returns token for the current thread
static CancelToken & local()
{
static thread_local CancelToken token;
return token;
}
// Cancelable wait on memory address (futex word).
// Thread will do atomic compare-and-sleep `*address == value`. Waiting will continue until `notify_one()`
// or `notify_all()` will be called with the same `address` or calling thread will be canceled using `signal()`.
// Note that spurious wake-ups are also possible due to cancellation of other waiters on the same `address`.
// WARNING: `address` must be 2-byte aligned and `value` highest bit must be zero.
// Return value:
// true - woken by either notify or spurious wakeup;
// false - iff cancellation signal has been received.
// Implementation details:
// It registers `address` inside token's `state` to allow other threads to wake this thread and deliver cancellation signal.
// Highest bit of `*address` is used for guaranteed delivery of the signal, but is guaranteed to be zero on return due to cancellation.
// Intended to be called only by thread associated with this token.
bool wait(UInt32 * address, UInt32 value);
// Throws `DB::Exception` received from `signal()`. Call it if `wait()` returned false.
// Intended to be called only by thread associated with this token.
[[noreturn]] void raise();
// Regular wake by address (futex word). It does not interact with token in any way. We have it here to complement `wait()`.
// Can be called from any thread.
static void notifyOne(UInt32 * address);
static void notifyAll(UInt32 * address);
// Send cancel signal to thread with specified `tid`.
// If thread was waiting using `wait()` it will be woken up (unless cancellation is disabled).
// Can be called from any thread.
static void signal(UInt64 tid);
static void signal(UInt64 tid, int code, const String & message);
// Flag used to deliver cancellation into memory address to wake a thread.
// Note that most significant bit at `addresses` to be used with `wait()` is reserved.
static constexpr UInt32 signaled = 1u << 31u;
private:
friend struct Cancelable;
friend struct NonCancelable;
// Restores initial state for token to be reused. See `Cancelable` struct.
// Intended to be called only by thread associated with this token.
void reset()
{
state.store(0);
}
// Enable thread cancellation. See `NonCancelable` struct.
// Intended to be called only by thread associated with this token.
void enable()
{
chassert((state.load() & disabled) == disabled);
state.fetch_and(~disabled);
}
// Disable thread cancellation. See `NonCancelable` struct.
// Intended to be called only by thread associated with this token.
void disable()
{
chassert((state.load() & disabled) == 0);
state.fetch_or(disabled);
}
// Singleton. Maps thread IDs to tokens.
struct Registry
{
std::mutex mutex;
std::unordered_map<UInt64, CancelToken*> threads; // By thread ID
void insert(CancelToken * token);
void remove(CancelToken * token);
void signal(UInt64 tid);
void signal(UInt64 tid, int code, const String & message);
static const std::shared_ptr<Registry> & instance();
};
// Cancels this token and wakes thread if necessary.
// Can be called from any thread.
void signalImpl();
void signalImpl(int code, const String & message);
// Lower bit: cancel signal received flag
static constexpr UInt64 canceled = 1;
// Upper bits - possible values:
// 1) all zeros: token is enabed, i.e. wait() call can return false, thread is not waiting on any address;
// 2) all ones: token is disabled, i.e. wait() call cannot be canceled;
// 3) specific `address`: token is enabled and thread is currently waiting on this `address`.
static constexpr UInt64 disabled = ~canceled;
static_assert(sizeof(UInt32 *) == sizeof(UInt64)); // State must be able to hold an address
// All signal handling logic should be globally serialized using this mutex
static std::mutex signal_mutex;
// Cancellation state
alignas(64) std::atomic<UInt64> state;
[[maybe_unused]] char padding[64 - sizeof(state)];
// Cancellation exception
int exception_code;
String exception_message;
// Token is permanently attached to a single thread. There is one-to-one mapping between threads and tokens.
const UInt64 thread_id;
// To avoid `Registry` destruction before last `Token` destruction
const std::shared_ptr<Registry> registry;
};
}
#else
// WARNING: We support cancelable synchronization primitives only on linux for now
namespace DB
{
struct Cancelable
{
Cancelable() = default;
~Cancelable() = default;
};
struct NonCancelable
{
NonCancelable() = default;
~NonCancelable() = default;
};
class CancelToken
{
public:
CancelToken() = default;
CancelToken(const CancelToken &) = delete;
CancelToken(CancelToken &&) = delete;
CancelToken & operator=(const CancelToken &) = delete;
~CancelToken() = default;
static CancelToken & local()
{
static CancelToken token;
return token;
}
bool wait(UInt32 *, UInt32) { return true; }
[[noreturn]] void raise();
static void notifyOne(UInt32 *) {}
static void notifyAll(UInt32 *) {}
static void signal(UInt64) {}
static void signal(UInt64, int, const String &) {}
};
}
#endif
```
|
```objective-c
//
// RTAppDelegate.h
// RTRootNavigationController
//
// Created by rickytan on 06/08/2016.
//
@import UIKit;
@interface RTAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
```
|
Aleut or variation may refer to;
Aleuts, a peoples found in the Bering Sea/Straits area
Aleut language, the language spoken by these peoples
Alutiiq, a people found on the Aleut-Alaska Peninsula and Kodiah Island Archipelago, sometimes called "Aleut"
Alutiiq language, the language spoken by these people, sometimes called "Aleut"
Eskimo-Aleut language, the macrolanguage parent to Arctic languages of North America and eastern Asia
Alaska Peninsula, also called the Aleut Peninsula, the peninsula leading from the Alaska state mainland to the Aleutian Islands
Aleutian Islands or Aleuts, Aleut Islands; an archipelago linking the Aleut-Alaska Peninsula of North America to the Kamchatka Peninsula of Asia
Aleutsky District or Aleut District, Kamchatka Krai, Russian Far East, Russia
The Aleut Corporation (founded 1972), an Alaska Native Regional Corporation for the Aleut people
See also
Aleutian (disambiguation)
|
Agnin () is a commune in the Isère department in the Auvergne-Rhône-Alpes region of south-eastern France.
The inhabitants of the commune are known as Agnitaires
The commune has been awarded one flower by the National Council of Towns and Villages in Bloom in the Competition of cities and villages in Bloom.
Geography
Agnin is located some 25 km south of Vienne and 5 km north-east of Saint-Rambert-d'Albon. It can be accessed by the road D519 from near Chanas in the west passing through the southern part of the commune and continuing to Bouge-Chambalud. Parallel to this road in the north of the commune is the D51 road from Salaise-sur-Sanne in the west passing through the commune and the village and continuing to Anjou in the east. The D131 also comes from the Ville-sous-Anjou in the north joining the D51 west of the village. The Route de Bouge connects the village to the D519 in the south of the commune. The commune is mostly farmland with significant areas of housing in the north and some small areas of forest in the south.
An unnamed stream flows south forming the western border of the commune and another unnamed stream flows through the commune then forms the south-western border. They both join in the south-west and continue flowing west. The Dolon stream forms the southern border of the commune
Neighbouring communes and villages
Toponymy
Like the nearby town of Anjou the origin of the name Agnin comes from the name of a Roman noble Anianus who owned vast territory in that era. The name of the town changed a few centuries later to Agnino which was the name used in the 11th century to describe this commune. Then over the following centuries Agnino became the Agnin known today.
Heraldry
Administration
List of Successive Mayors of Agnin
Population
Sites and Monuments
The portal and tower of Bâtie Manor are registered as historical monuments.
Gaulas Castle
A Church from the 12th century
Typical houses
Gallo-Roman remains at Golat
See also
Communes of the Isère department
References
External links
Agnin Official website
Agnin on the old IGN website
Agnin on the 1750 Cassini Map
Communes of Isère
Dauphiné
|
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
namespace Aurora.Utils
{
public class TimedListObject
{
public object item;
Timer timer;
List<TimedListObject> mainList;
public TimedListObject(object item, int duration, List<TimedListObject> list)
{
mainList = list;
this.item = item;
if(duration != 0)
{
timer = new Timer(duration);
timer.Elapsed += Timer_Elapsed;
timer.Start();
}
}
private void Timer_Elapsed(object sender, ElapsedEventArgs e)
{
if(mainList.Contains(this))
{
mainList.Remove(this);
if (item is IDisposable)
((IDisposable)item).Dispose();
timer.Elapsed -= Timer_Elapsed;
}
}
public void AdjustDuration(int duration)
{
timer.Stop();
timer.Interval = duration;
timer.Start();
}
}
}
```
|
```objective-c
/* text_page.h
* Declarations of routine to construct a simple text page from a file.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
*
* This program is free software; you can redistribute it and/or
* as published by the Free Software Foundation; either version 2
*
* 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __TEXT_PAGE_H__
#define __TEXT_PAGE_H__
/** @file
* Construct a simple text page widget from a file.
*/
/** Construct a simple text page widget from a file (UTF8 encoded).
*
* @param absolute_path the path to the text file
* @return the new widget
*/
extern GtkWidget * text_page_new(const char *absolute_path);
/** Clear and insert the file content (again).
*
* @param page the text_page from text_page_new()
* @param absolute_path the path to the text file
*/
extern void text_page_redraw(GtkWidget *page, const char *absolute_path);
#endif /* __TEXT_PAGE_H__ */
/*
* Editor modelines
*
* Local Variables:
* c-basic-offset: 4
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* ex: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
*/
```
|
Khull (Noor-abad) is a village in the Noor-abad constituency of Kulgam district of Jammu and Kashmir in India administered Kashmir. It is about from Srinagar.
The full name of Khull is Qasba Khull (Noorabad) and it is a tehsil of district Kulgam.
Education
There are more than 19 schools along with a religious institute namely Darul uloom Ishatul Quran wa Sunnah Ardpora, Qasba Khull Noorabad
Govt Higher Secondary school Qasba khull noorabad
Hanfia Noorani public high school khull
Govt High School qasba khull
Gousia Little angels school Qasba khull
Govt Girls High school qasba khull
Govt Middle school bungam khull
Govt Middle school Putpora bungam
New Radiant Public School Qasba khull noorabad
Green Valley School qasba khull noorabad
Govt Middle School Ringth qasba khull noorabad
Govt Middle school gujar basti khull
Govt Middle school Baba pora
Govt Middle school Lateef bagh khull
Two Sports Stadium is also located near Ardpora named as MNDLS Stadium qasba Khull noorabad and Ringat named Ringat qasba khull playground
References
Villages in Kulgam district
|
```objective-c
/* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
#define CFLAGS cflags
/*
* Generate CFLAGS as an array of individual characters. This is a
* workaround for the situation where CFLAGS gets too long for a C90 string
* literal
*/
static const char cflags[] = {
'c','o','m','p','i','l','e','r',':',' ','c','c',' ','-','D','D',
'S','O','_','D','L','F','C','N',' ','-','D','H','A','V','E','_',
'D','L','F','C','N','_','H',' ','-','D','N','D','E','B','U','G',
' ','-','D','O','P','E','N','S','S','L','_','T','H','R','E','A',
'D','S',' ','-','D','O','P','E','N','S','S','L','_','N','O','_',
'D','Y','N','A','M','I','C','_','E','N','G','I','N','E',' ','-',
'D','O','P','E','N','S','S','L','_','P','I','C',' ','-','D','O',
'P','E','N','S','S','L','_','I','A','3','2','_','S','S','E','2',
' ','-','D','O','P','E','N','S','S','L','_','B','N','_','A','S',
'M','_','M','O','N','T',' ','-','D','O','P','E','N','S','S','L',
'_','B','N','_','A','S','M','_','M','O','N','T','5',' ','-','D',
'O','P','E','N','S','S','L','_','B','N','_','A','S','M','_','G',
'F','2','m',' ','-','D','S','H','A','1','_','A','S','M',' ','-',
'D','S','H','A','2','5','6','_','A','S','M',' ','-','D','S','H',
'A','5','1','2','_','A','S','M',' ','-','D','R','C','4','_','A',
'S','M',' ','-','D','M','D','5','_','A','S','M',' ','-','D','A',
'E','S','_','A','S','M',' ','-','D','V','P','A','E','S','_','A',
'S','M',' ','-','D','B','S','A','E','S','_','A','S','M',' ','-',
'D','G','H','A','S','H','_','A','S','M',' ','-','D','E','C','P',
'_','N','I','S','T','Z','2','5','6','_','A','S','M',' ','-','D',
'P','A','D','L','O','C','K','_','A','S','M',' ','-','D','P','O',
'L','Y','1','3','0','5','_','A','S','M',' ','-','D','O','P','E',
'N','S','S','L','D','I','R','=','"','\\','"','/','u','s','r','/',
'l','o','c','a','l','/','s','s','l','\\','"','"',' ','-','D','E',
'N','G','I','N','E','S','D','I','R','=','"','\\','"','/','u','s',
'r','/','l','o','c','a','l','/','l','i','b','/','e','n','g','i',
'n','e','s','-','1','.','1','\\','"','"',' ','\0'
};
#define PLATFORM "platform: darwin64-x86_64-cc"
#define DATE "built on: Tue Nov 20 09:37:39 2018"
```
|
```php
<?php
/**
* Class for working with MO files
*
* @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $
* @package pomo
* @subpackage mo
*/
require_once dirname(__FILE__) . '/translations.php';
require_once dirname(__FILE__) . '/streams.php';
if ( ! class_exists( 'MO', false ) ):
class MO extends Gettext_Translations {
var $_nplurals = 2;
/**
* Fills up with the entries from MO file $filename
*
* @param string $filename MO file to load
*/
function import_from_file($filename) {
$reader = new POMO_FileReader($filename);
if (!$reader->is_resource())
return false;
return $this->import_from_reader($reader);
}
/**
* @param string $filename
* @return bool
*/
function export_to_file($filename) {
$fh = fopen($filename, 'wb');
if ( !$fh ) return false;
$res = $this->export_to_file_handle( $fh );
fclose($fh);
return $res;
}
/**
* @return string|false
*/
function export() {
$tmp_fh = fopen("php://temp", 'r+');
if ( !$tmp_fh ) return false;
$this->export_to_file_handle( $tmp_fh );
rewind( $tmp_fh );
return stream_get_contents( $tmp_fh );
}
/**
* @param Translation_Entry $entry
* @return bool
*/
function is_entry_good_for_export( $entry ) {
if ( empty( $entry->translations ) ) {
return false;
}
if ( !array_filter( $entry->translations ) ) {
return false;
}
return true;
}
/**
* @param resource $fh
* @return true
*/
function export_to_file_handle($fh) {
$entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) );
ksort($entries);
$magic = 0x950412de;
$revision = 0;
$total = count($entries) + 1; // all the headers are one entry
$originals_lenghts_addr = 28;
$translations_lenghts_addr = $originals_lenghts_addr + 8 * $total;
$size_of_hash = 0;
$hash_addr = $translations_lenghts_addr + 8 * $total;
$current_addr = $hash_addr;
fwrite($fh, pack('V*', $magic, $revision, $total, $originals_lenghts_addr,
$translations_lenghts_addr, $size_of_hash, $hash_addr));
fseek($fh, $originals_lenghts_addr);
// headers' msgid is an empty string
fwrite($fh, pack('VV', 0, $current_addr));
$current_addr++;
$originals_table = chr(0);
$reader = new POMO_Reader();
foreach($entries as $entry) {
$originals_table .= $this->export_original($entry) . chr(0);
$length = $reader->strlen($this->export_original($entry));
fwrite($fh, pack('VV', $length, $current_addr));
$current_addr += $length + 1; // account for the NULL byte after
}
$exported_headers = $this->export_headers();
fwrite($fh, pack('VV', $reader->strlen($exported_headers), $current_addr));
$current_addr += strlen($exported_headers) + 1;
$translations_table = $exported_headers . chr(0);
foreach($entries as $entry) {
$translations_table .= $this->export_translations($entry) . chr(0);
$length = $reader->strlen($this->export_translations($entry));
fwrite($fh, pack('VV', $length, $current_addr));
$current_addr += $length + 1;
}
fwrite($fh, $originals_table);
fwrite($fh, $translations_table);
return true;
}
/**
* @param Translation_Entry $entry
* @return string
*/
function export_original($entry) {
//TODO: warnings for control characters
$exported = $entry->singular;
if ($entry->is_plural) $exported .= chr(0).$entry->plural;
if ($entry->context) $exported = $entry->context . chr(4) . $exported;
return $exported;
}
/**
* @param Translation_Entry $entry
* @return string
*/
function export_translations($entry) {
//TODO: warnings for control characters
return $entry->is_plural ? implode(chr(0), $entry->translations) : $entry->translations[0];
}
/**
* @return string
*/
function export_headers() {
$exported = '';
foreach($this->headers as $header => $value) {
$exported.= "$header: $value\n";
}
return $exported;
}
/**
* @param int $magic
* @return string|false
*/
function get_byteorder($magic) {
// The magic is 0x950412de
// bug in PHP 5.0.2, see path_to_url
$magic_little = (int) - 1794895138;
$magic_little_64 = (int) 2500072158;
// 0xde120495
$magic_big = ((int) - 569244523) & 0xFFFFFFFF;
if ($magic_little == $magic || $magic_little_64 == $magic) {
return 'little';
} else if ($magic_big == $magic) {
return 'big';
} else {
return false;
}
}
/**
* @param POMO_FileReader $reader
*/
function import_from_reader($reader) {
$endian_string = MO::get_byteorder($reader->readint32());
if (false === $endian_string) {
return false;
}
$reader->setEndian($endian_string);
$endian = ('big' == $endian_string)? 'N' : 'V';
$header = $reader->read(24);
if ($reader->strlen($header) != 24)
return false;
// parse header
$header = unpack("{$endian}revision/{$endian}total/{$endian}originals_lenghts_addr/{$endian}translations_lenghts_addr/{$endian}hash_length/{$endian}hash_addr", $header);
if (!is_array($header))
return false;
// support revision 0 of MO format specs, only
if ( $header['revision'] != 0 ) {
return false;
}
// seek to data blocks
$reader->seekto( $header['originals_lenghts_addr'] );
// read originals' indices
$originals_lengths_length = $header['translations_lenghts_addr'] - $header['originals_lenghts_addr'];
if ( $originals_lengths_length != $header['total'] * 8 ) {
return false;
}
$originals = $reader->read($originals_lengths_length);
if ( $reader->strlen( $originals ) != $originals_lengths_length ) {
return false;
}
// read translations' indices
$translations_lenghts_length = $header['hash_addr'] - $header['translations_lenghts_addr'];
if ( $translations_lenghts_length != $header['total'] * 8 ) {
return false;
}
$translations = $reader->read($translations_lenghts_length);
if ( $reader->strlen( $translations ) != $translations_lenghts_length ) {
return false;
}
// transform raw data into set of indices
$originals = $reader->str_split( $originals, 8 );
$translations = $reader->str_split( $translations, 8 );
// skip hash table
$strings_addr = $header['hash_addr'] + $header['hash_length'] * 4;
$reader->seekto($strings_addr);
$strings = $reader->read_all();
$reader->close();
for ( $i = 0; $i < $header['total']; $i++ ) {
$o = unpack( "{$endian}length/{$endian}pos", $originals[$i] );
$t = unpack( "{$endian}length/{$endian}pos", $translations[$i] );
if ( !$o || !$t ) return false;
// adjust offset due to reading strings to separate space before
$o['pos'] -= $strings_addr;
$t['pos'] -= $strings_addr;
$original = $reader->substr( $strings, $o['pos'], $o['length'] );
$translation = $reader->substr( $strings, $t['pos'], $t['length'] );
if ('' === $original) {
$this->set_headers($this->make_headers($translation));
} else {
$entry = &$this->make_entry($original, $translation);
$this->entries[$entry->key()] = &$entry;
}
}
return true;
}
/**
* Build a Translation_Entry from original string and translation strings,
* found in a MO file
*
* @static
* @param string $original original string to translate from MO file. Might contain
* 0x04 as context separator or 0x00 as singular/plural separator
* @param string $translation translation string from MO file. Might contain
* 0x00 as a plural translations separator
*/
function &make_entry($original, $translation) {
$entry = new Translation_Entry();
// look for context
$parts = explode(chr(4), $original);
if (isset($parts[1])) {
$original = $parts[1];
$entry->context = $parts[0];
}
// look for plural original
$parts = explode(chr(0), $original);
$entry->singular = $parts[0];
if (isset($parts[1])) {
$entry->is_plural = true;
$entry->plural = $parts[1];
}
// plural translations are also separated by \0
$entry->translations = explode(chr(0), $translation);
return $entry;
}
/**
* @param int $count
* @return string
*/
function select_plural_form($count) {
return $this->gettext_select_plural_form($count);
}
/**
* @return int
*/
function get_plural_forms_count() {
return $this->_nplurals;
}
}
endif;
```
|
```rust
/*
*
* This software may be used and distributed according to the terms of the
*/
use std::fmt;
use anyhow::Result;
use async_trait::async_trait;
use blobstore::Blobstore;
use blobstore::BlobstoreBytes;
use blobstore::BlobstoreGetData;
use blobstore::BlobstoreIsPresent;
use context::CoreContext;
use crate::bubble::Bubble;
/// EphemeralHandle is a blobstore that wraps both a bubble blobstore and a
/// backing "persistent" blobstore. First, it queries the bubble blobstore
/// and if a blob is not present, it queries the persistent one.
#[derive(Debug)]
pub struct EphemeralHandle<B: Blobstore> {
bubble: Bubble,
main_blobstore: B,
}
impl<B: Blobstore> EphemeralHandle<B> {
pub(crate) fn new(bubble: Bubble, main_blobstore: B) -> Self {
Self {
bubble,
main_blobstore,
}
}
}
impl<B: Blobstore> fmt::Display for EphemeralHandle<B> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"EphemeralHandle<{}, {}>",
self.bubble, self.main_blobstore
)
}
}
#[async_trait]
impl<B: Blobstore> Blobstore for EphemeralHandle<B> {
async fn get<'a>(
&'a self,
ctx: &'a CoreContext,
key: &'a str,
) -> Result<Option<BlobstoreGetData>> {
Ok(match self.bubble.get(ctx, key).await? {
Some(content) => Some(content),
None => self.main_blobstore.get(ctx, key).await?,
})
}
async fn put<'a>(
&'a self,
ctx: &'a CoreContext,
key: String,
value: BlobstoreBytes,
) -> Result<()> {
self.bubble.put(ctx, key, value).await
}
async fn is_present<'a>(
&'a self,
ctx: &'a CoreContext,
key: &'a str,
) -> Result<BlobstoreIsPresent> {
Ok(match self.bubble.is_present(ctx, key).await? {
BlobstoreIsPresent::Absent | BlobstoreIsPresent::ProbablyNotPresent(_) => {
self.main_blobstore.is_present(ctx, key).await?
}
BlobstoreIsPresent::Present => BlobstoreIsPresent::Present,
})
}
}
```
|
The General Post Office in St. Martin's Le Grand (later known as GPO East) was the main post office for London between 1829 and 1910, the headquarters of the General Post Office of the United Kingdom of Great Britain and Ireland, and England's first purpose-built post office.
Originally known as the General Letter Office, the headquarters of the General Post Office (GPO) had been based in the City of London since the first half of the 17th century. For 150 years it was in Lombard Street, before a new purpose-built headquarters, designed by Robert Smirke, was opened on the eastern side of St. Martin's Le Grand in 1829. As well as functioning as a post office and sorting office, the building contained the main offices and facilities for the Postmaster General of the United Kingdom and other senior administrative officials.
While externally attractive, Smirke's General Post Office suffered over the years from internal shortcomings due to ever-increasing demands on available space. In the later part of the 19th century the GPO expanded into other buildings on St Martin's Le Grand, and further afield. After a new building was opened in nearby King Edward Street, Smirke's General Post Office was demolished in 1912.
Before the Great Fire of London
Before the establishment of the General Post Office, post houses were set up in the City of London and elsewhere to provide horses for the conveyance of individuals or messages on behalf of the royal court. In 1526 a warrant was issued to the Court of Aldermen requiring a number of horses to be kept on hand if required for the King's Post; they in turn arranged with the innkeeper of the Windmill in Old Jewry to ensure that four horses would be kept available for those wishing to ride post, along with four more to be provided by the local hackney men (who kept horses for hire). By the mid-17th century there were separate post houses in London at the start of each of the post roads (which ran from London to different parts of the kingdom), including one in Bishopsgate Street for the route to Edinburgh, one at Charing Cross for the road to Plymouth and one in Southwark for the Dover road; these were invariably attached to licensed premises (where horses were customarily stabled). At this time the general administration of the Inland post and the Foreign post seems to have been carried out either from the houses of their chief officers, or else from one or other of the City's post houses.
By 1653, though, a General Letter Office had been established 'at the Old Post House at the lower end of Threadneedle Street, by the Stocks'. This was a substantial building, which provided accommodation as well as office space for a number of Post Office officials. It was, however, destroyed in the Great Fire of London in 1666; following which the business of the Post Office was carried on from a series of temporary offices in various locations.
General Post Office, Lombard Street
In 1678 the General Post Office found a more permanent home in a mansion in Lombard Street, belonging to Sir Robert Vyner; (the Post Office initially rented the property, before finally purchasing it from the Vyner family in 1705).
The Post Office in Lombard Street was built around a courtyard, open to the public and accessed from the street via an imposing gateway. Facing the gate across the courtyard was the sorting office, beneath which in the basement was the letter-carriers' office. On the left was the foreign letter office and on the right was the Board-room (which was attached to the official residence of the Postmasters General). Elsewhere in the building accommodation was provided for clerks and other members of staff, who were at that time required to live on site owing to the need to be available when the post arrived, by day or by night.
By 1687 the Post Office had expanded to the south and west as far as Sherborne Lane, where an additional entrance was constructed. The General Post Office remained in Lombard Street for a century and a half, during which time it continued to expand into neighbouring properties; however the increased employment of mail coaches towards the end of the 18th century caused difficulties as there was very little space for them to pull up and they were forced to queue in the narrow street.
With the post office having this outgrown its premises in Lombard Street a site was sought for a new building. An 1815 Act of Parliament authorised commissioners to identify a suitable location, and to pay compensation to the owners of properties on the site. A parcel of land on the east side of St. Martin's Le Grand was chosen; however the clearance and preparation of the densely-occupied site took several years, and it was only in May 1824 that the stones of the new building began to be laid.
General Post Office, St Martin's Le Grand
Smirke's new General Post Office opened on 23 September 1829. It was the UK's second purpose-built post office; Dublin's GPO (completed in 1818 to a design by Francis Johnston and still in use) predates it. The new Post Office was 'one of the largest public edifices now existing in the City of London' in 1829.
Design and operation
The Post Office was built in the Grecian style with Ionic porticoes along the main (west) front, and was long and wide and high. Above a basement storey of granite it was brick-built, but encased on all sides in Portland stone. The building's main façade had a central hexastyle Greek Ionic portico with a pediment, and two tetrastyle porticoes without pediments at each end. Above the main entrance was a large chiming clock (by Vulliamy) with an external and internal dial, which governed timekeeping within the building.
Mail coaches and mail carts
The General Post Office was built in the era of the mail coach, with a driveway leading around the back of the building to a courtyard on the north side where the coaches would assemble. Each night, from all around the country, London-bound mail coaches would set off at different times, so as to arrive at St Martin's Le Grand between 5 and 6 o'clock in the morning; the mail was then unloaded and sorted, ready for delivery at 8am. Then in the evening, the coaches were loaded with sacks of mail destined for the provinces. The daily departure of the mail coaches regularly attracted crowds of spectators. At 8pm, Monday-Saturday, all the coaches would set off in different directions from St Martin's Le Grand; each would follow its own set route, progressively dropping off mail bags at every post town on the way to its final destination. Mail for destinations overseas was mostly taken to Falmouth or Dover to be loaded on to packet boats.
In between the arrival and departure of the mail coaches, red-painted mail carts would come and go all through the day, collecting and delivering mail within the London postal area. Working alongside the mail carts were riding-boys, who would carry sacks of mail on horseback. (Usually aged between 13 and 16, they would often go on to drive the mail carts when they were older). The carts and riding-boys would collect mail from, and deliver it to, 'receiving houses' all round London. By 1850 the London District Office was carrying out ten collections and deliveries a day, six days a week, in the central London area (within a 3-mile radius of St Martin's Le Grand) and between three and five collections in the suburbs (within a 12-mile radius). There were no deliveries or collections of any kind on Sundays.
The Grand Public Hall
Behind the central portico of the Post Office was a Grand Public Hall, forming a public thoroughfare from St Martin's-le-Grand to Foster Lane; it measured by and had aisles on either side separated from the centre by rows of ionic columns. Members of the public could post letters and other items from inside the hall through boxes in the wall, from where they would fall into hoppers and be loaded into trolleys to be taken to the sorting offices beyond. There were also windows and offices where payments could be made. Each day, shortly before 6pm (the deadline for the Inland post), there would always be a last-minute rush of people with letters and newspapers to post; the windows above the slots were then opened to facilitate delivery, but were always closed on the sixth stroke of the clock (after which items could be posted at the 'late' window, but only with payment of a surcharge). Charles Dickens described the daily 6 o'clock rush in a descriptive and detailed article on the workings of the Post Office in 1850.
The Grand Public Hall divided the building in two: personnel to the south dealt mainly with the London post, while those to the north dealt mainly with the national post. (Up until 1855 two separately-constituted corps of letter-carriers worked from the two separate halves of the building: the blue-liveried London District carriers on the one hand, and the red-uniformed General Post carriers on the other.) A tunnel and conveyor system beneath the Grand Public Hall linked the two halves of the building.
The principal offices
In 1829 the three 'great divisions' of the General Post Office were:
The Inland Office (also called the General Post), which was responsible for conveying letters between London and other post towns (across the rest of the UK and the wider British Empire).
The Foreign Office, responsible for the passage of letters to and from other overseas destinations (including dealing with foreign postal services as required).
The London District Office (also called the Two-penny Post) for sending letters within the London area (successor to the London Penny Post established by William Dockwra in 1680).
The Inland Office
The Inland Office was based in the northern half of the building. Immediately adjacent to the Public Hall on this side were the rooms for receiving newspapers, inland letters and ship letters posted by members of the public through the slots; beyond these were large halls for the sorting, marking and despatching of items, the largest of which was the Inland Letter Office.
The Inland Letter Office, centrally-placed within the northern half of the building, was a sizeable chamber measuring by . It was here that letters for and from the provinces were received, stamped, counted and sorted. The room was a hive of activity at the start of the day, when coaches arrived from around the country laden with letters for London; and at the end of the day, when the letters from London were sorted and stamped before being bagged, and loaded on coaches for delivery to provincial post offices all round the country.
Alongside the Inland Letter Office to the west was the Letter-carriers' Office ( by ), with elegant iron galleries and spiral staircases. Here, each morning, the letter-carriers would sort their designated letters into different 'walks' before setting off to deliver them. Letters destined for addresses in central London were delivered by the Inland department's own letter-carriers, while those for the suburbs were sent on the under-floor conveyor to the London District office for delivery. In the evening, the Letter-carriers' Office was used for the sorting of large numbers of newspapers for overnight despatch).
On the east side of the Inland Letter Office (with an entrance from Foster Lane) was a large vestibule, where the incoming and outgoing letter bags were received from and despatched to the mail coaches. Before leaving the building they were placed in the custody of the Mail-Guards, who were armed and accompanied the bags on the coaches to ensure safe delivery. The Mail-Guards had rooms, including an armoury, in the basement of the building.
Other rooms in the northern half of the building included the Dead Letter Office, the Missing Letter Office and the Blind Office (for deciphering illegible addresses). The Superintending President of the Inland Office had his office at the northernmost end of the building, overlooking the yard. Connected with the Inland department was the Ship Letter Office, which transported mail by sea to certain destinations using privately-owned ships (at a cheaper rate than the Government-owned packet boats, which were overseen by a different office in the other half of the building). Likewise the West India Office and the North American Office, which were adjacent to the Inland Letter Office and managed the transport of mail to and from parts of the British Empire.
The Foreign Office
Adjoining the Public Hall on the south side of the building was the Foreign Letter Office, from which letters were sent to a great variety of (non-British) overseas destinations by way of the packet service. Its clerks were provided with overnight accommodation on the second floor, so as to be available for duty whenever letters might arrive from overseas, day or night. The Foreign department also maintained its own team of letter-carriers at this time, to deliver mail to addresses in central London.
The London District Office
Also in the southern half of the building were the offices of the London District Office or 'Two-penny Post', which occupied three large rooms to the east of the Foreign Office (the receiving room, sorters' office and carriers' office). Measuring just by , the London District sorting office was considerably smaller than its Inland counterpart.
The London District Office had its own entrance on the east side, by which letter bags were conveyed to and from the waiting mail carts and riding-boys. There was also stabling provided on this side of the building for a limited number of horses. The London District office operated in a similar way to the Inland office, but on a more constant basis as letters were received and despatched at regular times all through the day. From St Martin's Le Grand the letters went out in sealed bags to the receiving houses, where letter-carriers would be on hand to deliver them (at this time the London District Office had over a hundred receiving houses across London, and the Inland Office around 50).
Other offices
The Receiver General and the Accountant General also had their offices on the south side of the Public Hall; the poste restante office for London was also located there. A corridor next to the main entrance on the south side led to a 'grand staircase', which provided access to rooms on the first floor (principally the Board Room and the Secretary's office). The Secretary of the Post Office, who was the chief administrative officer of the GPO, was also provided with an official residence at the south-west corner of the building.
Changes and developments
Almost as soon as it had opened, the building was found to be short of space.
1830s
As early as 1831 a gallery was inserted into the main Inland sorting office to provide extra capacity. In 1836, following the death of Sir Francis Freeling, the Secretary's residence in the south-west corner of the building was given over to office use.
Within a decade of the building's opening, rail had replaced road as the principal means of distribution around the country, consigning the mail coach to history. The Inland Office now used horse-drawn mail-vans to convey sacks of letters to the railway termini where they were loaded on to trains or Travelling Post Offices.
1840s
Following the introduction of the uniform penny post in 1840, the number of letters passing through the building increased substantially. To help with the increased volume of post, a new sorting office was built immediately above the old one, 'suspended from a strong arched iron girder roof by iron rods' (a solution which, though ingenious, left the principal room below entirely deprived of natural light). At around the same time a transit system was installed whereby 'two endless chains, worked by a steam-engine, carry, in rapid succession, a series of shelves, each holding four or five men and their letter-bags, which are thus raised to various parts of the building'. The upper room took over the function of the dual-purpose letter-carriers' office / newspaper sorting office, allowing the inland letter office to expand into the vacated space below.
The Money Order Office had been established in 1838, in two small rooms at the north end of the building. In the 1840s it operated from a large room adjoining the Public Hall on the south side near the main entrance; but it soon outgrew these premises and in 1846 the Money Order Office was provided with new premises (designed by Sydney Smirke) just across the road at No. 1 Aldersgate Street.
At around the same time the Foreign Letter Office was made an adjunct to the Inland Letter Office (both administratively and physically): an arch was inserted in the north wall of the Inland Office beyond which several rooms were knocked together to create a new sorting office for the 'Colonial and Foreign Division' (measuring by ), which was linked by way of a mail-hoist to the Ship-letter Office above.
On the south side of the building, the London District office then expanded into spaces vacated by the Foreign Office; before long the London District sorting office had more than doubled in size.
1850s
Reforms undertaken in the 1850s, when the Duke of Argyll was Postmaster General, helped ease the overcrowding somewhat: as well as amalgamating the separate corps of letter-carriers (and their separate receiving houses), in 1856 he divided London into ten postal districts, each with its own district office able to receive and distribute its own mail (whereas previously all London's letters had had to pass through St Martin's Le Grand for sorting and redistribution).
1860s
Nevertheless the ongoing expansion of the work of the Post Office meant that the building was soon once again occupied well beyond its intended capacity; The Times reported in 1860 that "rooms have been overcrowded, closets turned into offices, extra rooms hung by tie rods to the girders of the ceiling". Work requiring bright light was conducted in poorly illuminated areas, odours spread from the lavatories to the kitchens, while a combination of gas lighting and poor ventilation meant that workers often felt nauseous.
From 1868, the GPO experimented with the services of the London Pneumatic Despatch Company, which operated a pneumatic tube from Euston railway station for the delivery of mail, but the experiment was unsuccessful and terminated in 1874.
In 1870, with space in the building remaining at a premium, the Grand Public Hall was closed and converted into another additional sorting room. Slots were then installed under the portico for members of the public to post their letters.
Additional buildings
GPO West
In 1874 a new building, designed by James Williams, was opened on the western side of St. Martin's Le Grand: GPO West. It had originally been designed to house the main administrative offices and senior GPO officials on the lower two floors, and the Post Office Savings Bank on the upper two floors (leaving the old building to focus on letters and newspapers); but following the nationalisation of the UK's electrical telegraph companies in 1870, the upper floors were given over to telegraphic equipment and the building became known as the Central Telegraph Office (CTO). The instrument rooms employed nearly a thousand people at a time sending and receiving messages; the basement served as a battery room, with space for 40,000 cells.
As well as using wire connections, the CTO was linked to 38 different branch offices around central London using a network of pneumatic tubes (inherited from the Electric Telegraph Company and subsequently expanded). Three steam engines in the north courtyard powered the entire system (generating a pressure and vacuum for sending and receiving), fed by four boilers in the south courtyard.
Not long after GPO West opened still more space was needed: in 1882 it expanded to the west, being linked to an adjacent building via bridges across Roman Bath Street; and in 1884 an additional storey was built on the top. In 1892 it was said to be the largest telegraph station in the world. By this time the Central Hall on the ground floor had been converted to serve as the main pneumatic tube room, while the second, third and fourth floors were occupied by the instrument rooms of the electric telegraph systems. In 1896 the headquarters of the GPO's new Telephone section was established in GPO West, in rooms vacated by the senior officials and administrative staff (who had recently moved into their own separate building).
GPO South
Meanwhile, in 1880, a new building opened a quarter of a mile to the south in Queen Victoria Street; it initially accommodated the Post Office Central Savings Bank. In 1890 it expanded into another building immediately to the north, to which it was linked by a bridge over (and tunnel under) Knightrider Street. In the early 1900s the savings bank moved out to West Kensington, while the building (which had by then been given the designation GPO South) became London's first telephone exchange and offices for the GPO's London Telephone Service.
GPO North
In 1895, GPO North was opened immediately to the north of GPO West (and connected to it across Angel Street by a second-floor footbridge), as the GPO continued to expand. Known as Post Office Headquarters (PHQ), it was designed by Henry Tanner to house the Postmaster General and the GPO's administrative departments (the Secretary's Office, the Accountant General's Office, the Solicitor's Office, etc.). To make way for the new building the old Bull and Mouth Inn was demolished, where at one time the mail coaches had been harnessed to their horses ready to collect the mail from the Post Office across the road.
The building had a large courtyard at its centre, entered via covered passageways at either end. The outer arched entrances were topped with sculptural likenesses of two recent Postmasters General: H. C. Raikes (facing St Martin's Le Grand) and Arnold Morley (overlooking King Edward Street); while the equivalent arches on the courtyard side had representations of David Plunket and George Shaw Lefevre (recent First Commissioners of Works). The Postmaster General had his office on the ground floor, on the King Edward Street side; the Permanent Secretary and his staff were on the first floor. Beneath the courtyard was a large basement designed to hold the Post Office archives.
GPO East
Meanwhile, Robert Smirke's original General Post Office (which, to avoid confusion, had been renamed GPO East) continued to deal with letters and newspapers. When the parcel post was being introduced 1882, a sorting office was swiftly constructed for it by James Williams at basement level, extending into the Post Office yard; then in 1889 the parcel-post sorting office was relocated to Mount Pleasant. In 1893 an additional storey was added to the top of GPO East.
Nevertheless, the 1896 report of the Tweedmouth Committee on Post Office Establishments declared the building to be 'incommodious, insanitary and overcrowded'. The following year it was decided 'to reconstruct the building within the present outer walls'. To enable the rebuilding, the Inland and Newspaper sections of the General Post Office were transferred in 1900 to a new building on the Mount Pleasant site, leaving GPO East to focus on the sorting of London and Foreign correspondence.
In 1900 the Central London Railway was opened, with the nearest station to St. Martin's Le Grand being named Post Office. (Subsequently, in 1937, it was renamed St Paul's).
Demolition and replacement
In 1905 King Edward VII laid the foundation stone of a new building on King Edward Street, immediately to the west of GPO North (and designed, as the latter had been, by Sir Henry Tanner). Opened as the King Edward Building (KEB) in 1910, it was envisaged as a replacement for Smirke's GPO East, housing the main sorting offices for London (EC district) and the Foreign Section, as well as serving as London's principal public post office.
With the opening of the new King Edward Building, the original Smirke building was closed in 1910; two years later it was demolished. The intention had been to construct a new 'GPO East' on the site, to accommodate the GPO's still-expanding administrative staff; but although plans were drawn up these never came to fruition, and the land was eventually sold in 1923.
Aftermath
The St Martin's Le Grand area remained a hub for London's postal services well into the second half of the twentieth century. In organisational terms, the General Post Office became The Post Office in 1969, changing from a Government department to a statutory corporation.
In the mid-1920s several steel-framed office blocks were built on the site of Smirke's demolished 'GPO East' by the newly-formed St Martin's Le Grand Property Group, and let (for the most part) to banks and manufacturing firms. Damaged during the war, they were subsequently rebuilt and in 1947 two of the blocks (Armour House and Union House) were let to the GPO on a 42-year lease. Subsequently a third block (Empire House) was added; all three remained in Post Office use until the late 1980s.
GPO West continued to operate as the Central Telegraph Office (CTO); it also housed the Engineering Department. It was damaged by an aerial bomb dropped by a zeppelin during the First World War, and was severely damaged by incendiary bombs during the Second World War, but was subsequently restored to use. In 1962 the Central Telegraph Office was relocated and GPO West went on to serve as overflow office accommodation for Post Office Headquarters staff; however it was later deemed unsafe and was demolished in 1967. BT Centre (until 2021 the headquarters of BT Group) now stands on the site (BT was originally formed from the Post Office Telecommunications division). A plaque on the side of the BT Centre records that 'From this site Guglielmo Marconi made the first public transmission of wireless signals on 27 July 1896'.
GPO South, having been converted into a telephone exchange, continued to expand; having been rebuilt in 1933, it is now known as the Faraday Building.
GPO North continued to serve as Post Office Headquarters (PHQ) until 1984, when the headquarters division moved to 33 Grosvenor Place. The building was subsequently sold to Nomura Holdings who reconstructed it internally (though the old façade was retained) and renamed it Nomura House.
The King Edward Building remained in use until the mid-1990s. Since 1927 it had been served by the Post Office Railway, which provided a subterranean mail transport link between several different district and sorting offices. For much of the century KEB had offered a counter service 24 hours a day, but it closed to the public in April 1994. It then continued to operate as the Royal Mail City and International Office until July 1996 when these functions were transferred to Mount Pleasant Sorting Office. Lastly, the National Postal Museum (which had opened within the building in 1966) closed in 1996. The building was sold the following year.
The demolition of Smirke's 1829 General Post Office was not unopposed, and there were moves at the time to salvage the central portico and pediment and rebuild them elsewhere (one suggested location being Shadwell Park). These ideas came to nought, however, and today one of the only surviving fragments of the building is an Ionic capital from the right-hand side of the portico: this five-ton piece was presented to Walthamstow Urban District Council and is sited in Vestry Road. Other Ionic capitals from the portico found their way into the gardens at Hyde Hall, Sawbridgeworth, where they served as flower pots.
See also
Tibs the Great
References
External links
Postal history of the United Kingdom
Postal system of the United Kingdom
1827 establishments in the United Kingdom
1912 disestablishments in England
Former buildings and structures in the City of London
Demolished buildings and structures in London
Buildings and structures demolished in 1912
London
Infrastructure in London
Post office buildings in the United Kingdom
|
Myrtle Solomon (9 June 1921 – 22 April 1987) was a British pacifist. She was general secretary of the Peace Pledge Union (PPU), a British pacifist organisation, between 1965 and 1972, and chair of the War Resisters International (WRI) between 1975 and 1986.
Early life
Solomon was born in Kensington, London, the third of five children of fairly liberal and affluent Jewish parents. Her father was a solicitor, while her mother came from the family that ran the Lewis's store in Manchester. Before the Second World War her parents played an important role in helping Jewish refugees escape from Germany and Austria.
Solomon attended St Paul's Girls' School but left at the age of 16. In the Second World War she worked for a year with the Women's Voluntary Service driving a mobile canteen. Not yet a pacifist she then worked in an armaments factory. This experience turned her into a feminist. Women doing skilled work were being paid less than men who swept the floors. Another issue that concerned her at the time was the British nationality law where a British man could pass his nationality to his wife but a British woman could not make her husband British.
Feminism
After the war Myrtle Solomon joined a group called “Women for Westminster” that campaigned on feminist issues and it was here she met Sybil Morrison, a fellow lesbian, who was an active pacifist and a member of the Peace Pledge Union: “I admired her very much and learned a lot from her, and it seemed quite natural to me to become a pacifist then.” They became close friends and were living together at the time of Morrison's death in 1984.
Pacifism
Solomon began working for the PPU in 1957 as organiser for the London area. General Secretary 1965–1972, she was credited with reinvigorating the PPU after it lost members to the Campaign for Nuclear Disarmament in the late 1950s and early 1960s. She represented the PPU on the War Resisters International for six years and in 1975 was elected Chair of the WRI, an election she modestly attributed to the fact that she was a woman. But, as with the PPU, WRI was close to collapse and Solomon played an important role in rescuing it, for a time living in the building in Brussels where the WRI offices were situated.
A highlight of Solomon's tenure at WRI was a speech she made to the United Nations Conference on Disarmament in 1982, including the following observation: “Talk of disarmament has become a mythical ritual - a strange macabre dance of millions of words - but the weapons are never put down. To justify a totally illusory need, a whole new language has been invented by a sick society dominated by its weaponry.”
Myrtle Solomon was also a Trustee of the Lansbury House Trust Fund (LHTF). She bequeathed money to LHTF for the establishment of the Myrtle Solomon Memorial Fund to compile, publish and maintain an international survey on compulsory military service and on provisions for conscientious objection.
See also
List of peace activists
References
1921 births
1987 deaths
British anti-war activists
British feminists
British Jews
British pacifists
British women in World War II
Jewish feminists
Jewish pacifists
Pacifist feminists
Jewish British activists
|
Iandumoema is a genus of harvestmen, with three species:
Iandumoema uai, I. setimapocu, and I. smeagol, each known only from caves in the state of Minas Gerais, Southeastern Brazil. The genus name derives from the Tupi language words iandu ("spider") and moema ("false"), in reference to the popular misconception that harvestmen are spiders. The species Iandumoema smeagol lacks eyes.
References
Harvestman genera
Cave arachnids
Invertebrates of Brazil
|
```objective-c
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#pragma once
#ifdef PADDLE_WITH_CUDNN_FRONTEND
#include "paddle/common/errors.h"
#include "paddle/phi/backends/dynload/cudnn.h"
#include "paddle/phi/backends/dynload/cudnn_frontend.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/core/enforce.h"
enum class MHA_Layout {
BS3HD = 0,
BSHD_BS2HD = 1,
BSHD_BSHD_BSHD = 2,
// more layout to be added if needed in the future.
};
enum class MHA_Matrix {
Q_Matrix = 0, // queries
K_Matrix = 1, // keys
K_Matrix_Transpose = 2, // keys transposed
V_Matrix = 3, // values
V_Matrix_Transpose = 4, // value matrix transposed
S_Matrix = 5, // output of GEMM1
O_Matrix = 6, // final output
};
enum class MHA_Mask_Type {
NO_MASK = 0,
CAUSAL_MASK = 1,
PADDING_MASK = 2,
PADDING_CAUSAL_MASK = 3,
};
enum class MHA_Bias_Type {
NO_BIAS = 0,
PRE_SCALE_BIAS = 1,
POST_SCALE_BIAS = 2
// ALIBI = 3,
};
struct FADescriptor_v1 {
std::int64_t b;
std::int64_t h;
std::int64_t hg;
std::int64_t s_q;
std::int64_t s_kv;
std::int64_t d;
std::int64_t bias_b;
std::int64_t bias_h;
float attnScale;
bool isTraining;
float dropoutProbability;
MHA_Layout layout;
MHA_Bias_Type bias_type;
MHA_Mask_Type mask_type;
cudnn_frontend::DataType_t tensor_type;
bool operator<(const FADescriptor_v1& rhs) const {
return std::tie(b,
h,
hg,
s_q,
s_kv,
d,
bias_b,
bias_h,
attnScale,
isTraining,
dropoutProbability,
layout,
mask_type,
bias_type,
tensor_type) < std::tie(rhs.b,
rhs.h,
rhs.hg,
rhs.s_q,
rhs.s_kv,
rhs.d,
rhs.bias_b,
rhs.bias_h,
rhs.attnScale,
rhs.isTraining,
rhs.dropoutProbability,
rhs.layout,
rhs.mask_type,
rhs.bias_type,
rhs.tensor_type);
}
};
void fused_attn_arbitrary_seqlen_fwd_impl(int64_t b,
int64_t h,
int64_t hg,
int64_t s_q,
int64_t s_kv,
int64_t d,
int64_t bias_b,
int64_t bias_h,
bool is_training,
float scaling_factor,
float dropout_probability,
MHA_Layout layout,
MHA_Bias_Type bias_type,
MHA_Mask_Type mask_type,
void* devPtrQ,
void* devPtrK,
void* devPtrV,
void* devPtrBias,
void* devPtrSoftmaxStats,
void* devPtrO,
void* devPtrDropoutSeed,
void* devPtrDropoutOffset,
void* devPtrCuSeqlensQ,
void* devPtrCuSeqlensKV,
cudnn_frontend::DataType_t tensorType,
void* workspace,
size_t* workspace_size,
const phi::GPUContext& dev_ctx);
void fused_attn_arbitrary_seqlen_bwd_impl(int64_t b,
int64_t h,
int64_t hg,
int64_t s_q,
int64_t s_kv,
int64_t d,
int64_t bias_b,
int64_t bias_h,
float scaling_factor,
float dropout_probability,
MHA_Layout layout,
MHA_Bias_Type bias_type,
MHA_Mask_Type mask_type,
void* devPtrQ,
void* devPtrKTranspose,
void* devPtrVTranspose,
void* devPtrO,
void* devPtrSoftmaxStats,
void* devPtrBias,
void* devPtrdQ,
void* devPtrdK,
void* devPtrdV,
void* devPtrdO,
void* devPtrdBias,
void* devPtrDropoutSeed,
void* devPtrDropoutOffset,
void* devPtrCuSeqlensQ,
void* devPtrCuSeqlensKV,
cudnn_frontend::DataType_t tensorType,
void* workspace,
size_t* workspace_size,
const phi::GPUContext& dev_ctx);
#endif // PADDLE_WITH_CUDNN_FRONTEND
```
|
```javascript
ace.define("ace/theme/gruvbox.css",["require","exports","module"], function(require, exports, module){module.exports = ".ace-gruvbox .ace_gutter-active-line {\n background-color: #3C3836;\n}\n\n.ace-gruvbox {\n color: #EBDAB4;\n background-color: #1D2021;\n}\n\n.ace-gruvbox .ace_invisible {\n color: #504945;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_selection {\n background: rgba(179, 101, 57, 0.75)\n}\n\n.ace-gruvbox.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #002240;\n}\n\n.ace-gruvbox .ace_keyword {\n color: #8ec07c;\n}\n\n.ace-gruvbox .ace_comment {\n font-style: italic;\n color: #928375;\n}\n\n.ace-gruvbox .ace-statement {\n color: red;\n}\n\n.ace-gruvbox .ace_variable {\n color: #84A598;\n}\n\n.ace-gruvbox .ace_variable.ace_language {\n color: #D2879B;\n}\n\n.ace-gruvbox .ace_constant {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_constant.ace_language {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_constant.ace_numeric {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_string {\n color: #B8BA37;\n}\n\n.ace-gruvbox .ace_support {\n color: #F9BC41;\n}\n\n.ace-gruvbox .ace_support.ace_function {\n color: #F84B3C;\n}\n\n.ace-gruvbox .ace_storage {\n color: #8FBF7F;\n}\n\n.ace-gruvbox .ace_keyword.ace_operator {\n color: #EBDAB4;\n}\n\n.ace-gruvbox .ace_punctuation.ace_operator {\n color: yellow;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_active-line {\n background: #3C3836;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_selected-word {\n border-radius: 4px;\n border: 8px solid #3f475d;\n}\n\n.ace-gruvbox .ace_print-margin {\n width: 5px;\n background: #3C3836;\n}\n\n.ace-gruvbox .ace_indent-guide {\n background: url(\"data:image/png;base64,your_sha256_hashz6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC\") right repeat-y;\n}\n\n.ace-gruvbox .ace_indent-guide-active {\n background: url(\"data:image/png;base64,your_sha256_hashEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC\") right repeat-y;\n}\n";
});
ace.define("ace/theme/gruvbox",["require","exports","module","ace/theme/gruvbox.css","ace/lib/dom"], function(require, exports, module){exports.isDark = true;
exports.cssClass = "ace-gruvbox";
exports.cssText = require("./gruvbox.css");
var dom = require("../lib/dom");
dom.importCssString(exports.cssText, exports.cssClass, false);
}); (function() {
ace.require(["ace/theme/gruvbox"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
```
|
Mythological mountains are an important motif in Chinese mythology and related mythologies. Some mountains are more mythological than others with some only having conjectural relations to real mountains. In some cases historical records indicate that explorers named newly charted mountains after mythological mountains; thus, sometimes real mountains were named after mythological mountains. For example, the identification of Kunlun kept moving west (when it was not stated to be in the south). In other cases, the mountains seem real enough, but a mythological or fictional layer or layers have been added to their description; for example, the stories told about the Flaming Mountains. Due to the features of Chinese vocabulary, syntax, and resulting translations, it is not clear whether a given "mountain" is one mountain, a mountain range, or merely a significant hill, though mythological exaggeration occurs. For example, some mountains are said to reach up into Heaven. Mountains or mythological mountains significantly related to Chinese and related mythology include:
Eight Pillars: eight mountains holding the earth and heaven apart
Feather Mountain: a place of exile during or just after the world flood and other events
Flaming Mountains: located in the Tian Shan range of Central Asia. Subject of Chinese stories and Uyghur mythology
Jade Mountain: in some accounts the dwelling of Xiwangmu, Queen Mother of the West
Kunlun Mountain: a mythical mountain, dwelling of various divinities and fabulous plants and animals
Mount Buzhou: mythological mountain, one of the Pillars holding the earth and sky apart, damaged by Gong Gong
Mount Penglai: paradise; a fabled isle in the China Sea
Locations in Chinese mythology
Mythological mountains
|
```python
import importlib
import inspect
import json
import logging
import os
import sys
import types
from azure.common.credentials import BasicTokenAuthentication
from azure.core.credentials import AccessToken
from azure.identity import (AzureCliCredential, ClientSecretCredential,
ManagedIdentityCredential, CertificateCredential)
from azure.identity._credentials.azure_cli import _run_command
from msrestazure.azure_cloud import AZURE_PUBLIC_CLOUD
from requests import HTTPError
from c7n_azure import constants
from c7n_azure.utils import (C7nRetryPolicy, ManagedGroupHelper,
ResourceIdParser, StringUtils,
cost_query_override_api_version,
custodian_azure_send_override,
get_keyvault_auth_endpoint, get_keyvault_secret,
log_response_data)
from functools import lru_cache
log = logging.getLogger('custodian.azure.session')
class AzureCredential:
def __init__(self, cloud_endpoints, authorization_file=None, subscription_id_override=None):
# type: (*str, *str) -> None
if authorization_file:
with open(authorization_file) as json_file:
self._auth_params = json.load(json_file)
else:
self._auth_params = {
'client_id': os.environ.get(constants.ENV_CLIENT_ID),
'client_secret': os.environ.get(constants.ENV_CLIENT_SECRET),
'access_token': os.environ.get(constants.ENV_ACCESS_TOKEN),
'tenant_id': os.environ.get(constants.ENV_TENANT_ID),
'use_msi': bool(os.environ.get(constants.ENV_USE_MSI)),
'subscription_id': os.environ.get(constants.ENV_SUB_ID),
'keyvault_client_id': os.environ.get(constants.ENV_KEYVAULT_CLIENT_ID),
'keyvault_secret_id': os.environ.get(constants.ENV_KEYVAULT_SECRET_ID),
'client_certificate_path': os.environ.get(
constants.ENV_CLIENT_CERTIFICATE_PATH),
'client_certificate_password': os.environ.get(
constants.ENV_CLIENT_CERTIFICATE_PASSWORD),
'enable_cli_auth': True
}
self._auth_params['authority'] = cloud_endpoints.endpoints.active_directory
keyvault_client_id = self._auth_params.get('keyvault_client_id')
keyvault_secret_id = self._auth_params.get('keyvault_secret_id')
# If user provided KeyVault secret, we will pull auth params information from it
try:
if keyvault_secret_id:
self._auth_params.update(
json.loads(
get_keyvault_secret(
keyvault_client_id,
keyvault_secret_id)
))
except HTTPError as e:
e.message = 'Failed to retrieve SP credential ' \
'from Key Vault with client id: {0}'.format(keyvault_client_id)
raise
self._credential = None
if self._auth_params.get('access_token') is not None:
auth_name = 'Access Token'
pass
elif (self._auth_params.get('client_id') and
self._auth_params.get('client_secret') and
self._auth_params.get('tenant_id')
):
auth_name = 'Principal'
self._credential = ClientSecretCredential(
client_id=self._auth_params['client_id'],
client_secret=self._auth_params['client_secret'],
tenant_id=self._auth_params['tenant_id'],
authority=self._auth_params['authority'])
elif (self._auth_params.get('client_id') and
self._auth_params.get('tenant_id') and
self._auth_params.get('client_certificate_path')):
auth_name = 'Certificate'
self._credential = CertificateCredential(
client_id=self._auth_params['client_id'],
tenant_id=self._auth_params['tenant_id'],
certificate_path=self._auth_params['client_certificate_path'],
password=self._auth_params['client_certificate_password'],
)
elif self._auth_params.get('use_msi'):
auth_name = 'MSI'
self._credential = ManagedIdentityCredential(
client_id=self._auth_params.get('client_id'))
elif self._auth_params.get('enable_cli_auth'):
auth_name = 'Azure CLI'
self._credential = AzureCliCredential()
account_info = _run_command('az account show --output json', timeout=10)
account_json = json.loads(account_info)
self._auth_params['subscription_id'] = account_json['id']
self._auth_params['tenant_id'] = account_json['tenantId']
if subscription_id_override is not None:
self._auth_params['subscription_id'] = subscription_id_override
self._subscription_id = self._auth_params['subscription_id']
self._tenant_id = self._auth_params['tenant_id']
log.info('Authenticated [%s | %s%s]',
auth_name, self.subscription_id,
' | Authorization File' if authorization_file else '')
def get_token(self, *scopes, **kwargs):
# Access Token is used only in tests realistically because
# KeyVault, Storage and mgmt plane requires separate tokens.
# TODO: Should we scope this to tests only?
if (self._auth_params.get('access_token')):
return AccessToken(self._auth_params['access_token'], expires_on=0)
try:
return self._credential.get_token(*scopes, **kwargs)
except Exception as e:
log.error('Failed to authenticate.\nMessage: {}'.format(e))
exit(1)
# This is temporary until all SDKs we use are upgraded to Track 2
# List of legacy users:
# - DNS
# - Record Set (uses DNS SDK)
# - Azure Graph
def legacy_credentials(self, scope):
# Track 2 SDKs use tuple
token = self.get_token((scope + '.default'))
return BasicTokenAuthentication(token={'access_token': token.token})
@property
def tenant_id(self):
# type: (None) -> str
return self._tenant_id
@property
def auth_params(self):
# type: (None) -> str
return self._auth_params
@property
def subscription_id(self):
# type: (None) -> str
return self._subscription_id
class Session:
def __init__(self, subscription_id=None, authorization_file=None,
cloud_endpoints=None, resource_endpoint_type=constants.DEFAULT_AUTH_ENDPOINT):
"""
:param subscription_id: If provided overrides environment variables.
:param authorization_file: Path to file populated from 'get_functions_auth_string'
:param cloud_endpoints: List of endpoints for specified Azure Cloud. Defaults to public.
:param auth_endpoint: Resource endpoint for OAuth token.
"""
self._provider_cache = {}
self.subscription_id_override = subscription_id
self.credentials = None
self.authorization_file = authorization_file
self.cloud_endpoints = cloud_endpoints or AZURE_PUBLIC_CLOUD
self.resource_endpoint_type = resource_endpoint_type
self.resource_endpoint = self.get_auth_endpoint(resource_endpoint_type)
self.storage_endpoint = self.cloud_endpoints.suffixes.storage_endpoint
def _initialize_session(self):
"""
Creates a session using available authentication type.
"""
# Only run once
if self.credentials is not None:
return
try:
self.credentials = AzureCredential(
self.cloud_endpoints,
authorization_file=self.authorization_file,
subscription_id_override=self.subscription_id_override)
except Exception as e:
if hasattr(e, 'message'):
log.error(e.message)
else:
log.exception("Failed to authenticate.")
sys.exit(1)
if self.credentials is None:
log.error('Failed to authenticate.')
sys.exit(1)
def get_session_for_resource(self, resource):
return Session(
subscription_id=self.subscription_id_override,
authorization_file=self.authorization_file,
cloud_endpoints=self.cloud_endpoints,
resource_endpoint_type=resource)
@lru_cache()
def client(self, client, vault_url=None):
self._initialize_session()
service_name, client_name = client.rsplit('.', 1)
svc_module = importlib.import_module(service_name)
klass = getattr(svc_module, client_name)
klass_parameters = inspect.signature(klass).parameters
legacy = False
if 'credentials' in klass_parameters and 'tenant_id' in klass_parameters:
client = klass(credentials=self.credentials.legacy_credentials(self.resource_endpoint),
tenant_id=self.credentials.tenant_id,
base_url=self.resource_endpoint)
legacy = True
elif 'credentials' in klass_parameters:
client = klass(credentials=self.credentials.legacy_credentials(self.resource_endpoint),
subscription_id=self.credentials.subscription_id,
base_url=self.cloud_endpoints.endpoints.resource_manager)
legacy = True
else:
client_args = {
'credential': self.credentials,
'raw_response_hook': log_response_data,
'retry_policy': C7nRetryPolicy(),
'credential_scopes': [self.resource_endpoint + ".default"]
}
# TODO: remove when fixed: path_to_url
# This workaround will replace used api-version for costmanagement requests
# 2020-06-01 is not supported, but 2019-11-01 is working as expected.
if client == 'azure.mgmt.costmanagement.CostManagementClient':
client_args['raw_request_hook'] = cost_query_override_api_version
if 'subscription_id' in klass_parameters:
client_args['subscription_id'] = self.subscription_id
client_args['base_url'] = self.cloud_endpoints.endpoints.resource_manager
elif 'vault_url' in klass_parameters:
client_args['vault_url'] = vault_url
client = klass(**client_args)
if legacy:
# Override send() method to log request limits & custom retries
service_client = client._client
service_client.orig_send = service_client.send
service_client.send = types.MethodType(custodian_azure_send_override, service_client)
# Don't respect retry_after_header to implement custom retries
service_client.config.retry_policy.policy.respect_retry_after_header = False
return client
@property
def subscription_id(self):
self._initialize_session()
return self.credentials.subscription_id
def get_credentials(self):
self._initialize_session()
return self.credentials
def get_subscription_id(self):
self._initialize_session()
return self.credentials.subscription_id
def get_function_target_subscription_name(self):
self._initialize_session()
if constants.ENV_FUNCTION_MANAGEMENT_GROUP_NAME in os.environ:
return os.environ[constants.ENV_FUNCTION_MANAGEMENT_GROUP_NAME]
return os.environ.get(constants.ENV_FUNCTION_SUB_ID, self.subscription_id)
def get_function_target_subscription_ids(self):
self._initialize_session()
if constants.ENV_FUNCTION_MANAGEMENT_GROUP_NAME in os.environ:
return ManagedGroupHelper.get_subscriptions_list(
os.environ[constants.ENV_FUNCTION_MANAGEMENT_GROUP_NAME], self)
return [os.environ.get(constants.ENV_FUNCTION_SUB_ID, self.subscription_id)]
def resource_api_version(self, resource_id):
""" latest non-preview api version for resource """
namespace = ResourceIdParser.get_namespace(resource_id)
resource_type = ResourceIdParser.get_resource_type(resource_id)
cache_id = namespace + resource_type
if cache_id in self._provider_cache:
return self._provider_cache[cache_id]
resource_client = self.client('azure.mgmt.resource.ResourceManagementClient')
provider = resource_client.providers.get(namespace)
# The api version may be directly provided
if not provider.resource_types and resource_client.providers.api_version:
return resource_client.providers.api_version
rt = next((t for t in provider.resource_types
if StringUtils.equal(t.resource_type, resource_type)), None)
if rt and rt.api_versions:
versions = [v for v in rt.api_versions if 'preview' not in v.lower()]
api_version = versions[0] if versions else rt.api_versions[0]
self._provider_cache[cache_id] = api_version
return api_version
def get_tenant_id(self):
self._initialize_session()
return self.credentials.tenant_id
def get_functions_auth_string(self, target_subscription_id):
"""Build auth json string for deploying Azure Functions.
Look for dedicated Functions environment variables or fall
back to normal Service Principal variables.
"""
self._initialize_session()
function_auth_variables = [
constants.ENV_FUNCTION_TENANT_ID,
constants.ENV_FUNCTION_CLIENT_ID,
constants.ENV_FUNCTION_CLIENT_SECRET
]
required_params = ['client_id', 'client_secret', 'tenant_id']
function_auth_params = {k: v for k, v in self.credentials.auth_params.items()
if k in required_params and v is not None}
function_auth_params['subscription_id'] = target_subscription_id
# Use dedicated function env vars if available
if all(k in os.environ for k in function_auth_variables):
function_auth_params['client_id'] = os.environ[constants.ENV_FUNCTION_CLIENT_ID]
function_auth_params['client_secret'] = os.environ[constants.ENV_FUNCTION_CLIENT_SECRET]
function_auth_params['tenant_id'] = os.environ[constants.ENV_FUNCTION_TENANT_ID]
# Verify SP authentication parameters
if any(k not in function_auth_params.keys() for k in required_params):
raise NotImplementedError(
"Service Principal credentials are the only "
"supported auth mechanism for deploying functions.")
return json.dumps(function_auth_params, indent=2)
def get_auth_endpoint(self, endpoint):
if endpoint == constants.VAULT_AUTH_ENDPOINT:
return get_keyvault_auth_endpoint(self.cloud_endpoints)
elif endpoint == constants.STORAGE_AUTH_ENDPOINT:
# These endpoints are not Cloud specific, but the suffixes are
return constants.STORAGE_AUTH_ENDPOINT
else:
return getattr(self.cloud_endpoints.endpoints, endpoint)
```
|
```xml
/*
* @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.
*/
// TypeScript Version: 4.1
/**
* Tests if two arguments are strictly equal.
*
* ## Notes
*
* - The function differs from the `===` operator in that the function treats `-0` and `+0` as distinct.
*
* @param a - first input value
* @param b - second input value
* @returns boolean indicating whether two arguments are strictly equal
*
* @example
* var bool = isStrictEqual( true, true );
* // returns true
*
* @example
* var bool = isStrictEqual( 3.14, 3.14 );
* // returns true
*
* @example
* var bool = isStrictEqual( {}, {} );
* // returns false
*
* @example
* var bool = isStrictEqual( -0.0, -0.0 );
* // returns true
*
* @example
* var bool = isStrictEqual( -0.0, 0.0 );
* // returns false
*
* @example
* var bool = isStrictEqual( NaN, NaN );
* // returns false
*
* @example
* var bool = isStrictEqual( [], [] );
* // returns false
*/
declare function isStrictEqual( a: any, b: any ): boolean;
// EXPORTS //
export = isStrictEqual;
```
|
```css
CSS Specificity
Use `border-radius` to style rounded corners of an element
Difference between `initial` and `inherit`
Disable resizable property of `textarea`
Conditional comments
```
|
```objective-c
//
// This program is free software; you can redistribute it and/or modify
// published by the Free Software Foundation.
#pragma once
#include "app/pref/preferences.h"
#include "app/ui/editor/standby_state.h"
#include "app/ui/editor/symmetry_handles.h"
namespace app {
class Editor;
class MovingSymmetryState : public StandbyState {
public:
MovingSymmetryState(Editor* editor, ui::MouseMessage* msg,
Axis axis,
Option<int>& axisPos);
virtual ~MovingSymmetryState();
virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override;
virtual bool onMouseMove(Editor* editor, ui::MouseMessage* msg) override;
virtual bool onUpdateStatusBar(Editor* editor) override;
virtual bool requireBrushPreview() override { return false; }
private:
Axis m_symmetryAxis;
Option<int>& m_symmetryAxisPos;
int m_symmetryAxisStart;
gfx::Point m_mouseStart;
};
} // namespace app
```
|
Myle () was a town of ancient Lycia.
Its site is unlocated.
References
Populated places in ancient Lycia
Former populated places in Turkey
Lost ancient cities and towns
|
Andrés Gutiérrez Vera (born 8 July 1993) is a Mexican professional boxer. He challenged for the WBA featherweight title in 2017.
Professional career
On 7 August 2010 Gutiérrez beat veteran Carlos Aboyte by first round K.O. In July 2017, he was expected to face former WBA featherweight champion Carl Frampton but the fight was cancelled due to Gutierrez slipping in his shower. Frampton had previously missed weight. Gutiérrez lost to Abner Mares in October 2017.
Personal life
Gutiérrez has a family boxing gym in Querétaro, Mexico named "Los 4 Jaguares".
References
External links
Mexican male boxers
Boxers from Querétaro
Sportspeople from Querétaro City
Super-bantamweight boxers
1993 births
Living people
|
Prison slang is an argot used primarily by criminals and detainees in correctional institutions. It is a form of anti-language. Many of the terms deal with criminal behavior, incarcerated life, legal cases, street life, and different types of inmates. Prison slang varies depending on institution, region, and country. Prison slang can be found in other written forms such as diaries, letters, tattoos, ballads, songs, and poems. Prison slang has existed as long as there have been crime and prisons; in Charles Dickens' time it was known as "thieves' cant". Words from prison slang often eventually migrate into common usage, such as "snitch", "ducking", and "narc". Terms can also lose meaning or become obsolete such as "slammer" and "bull-derm."
Examples
Prison slang, like other types of slang and dialects, varies by region. For that reason, the origins and the movement of prison slang across prisons are of interest to many linguists and cultural anthropologists.
Some prison slang are quite old. For example, "to cart", meaning to transfer to another prison, has been in use in Glasgow since 1733.
A two-year study was done by Bert Little, Ph.D. on American English slang with the main focus being in the coastal plain region of the Southeast U.S. His study published by The Trustees of Indiana University on behalf of the Anthropological Linguistics journal goes on to provide an extensive glossary of common prison slang terms that he found circling through the prison systems. Studies by Alicja Dziedzic-Rawska from the Maria Curie-Skłodowska University in Poland describe prison slang as "extremely rich and creative" with new words being formed on a daily basis. These are mainly used as a means of security against unauthorized parties receiving a certain message and, in some cases, can be a way to ensure a prison inmate's survival within the cells.
Australia
Israel
United Kingdom
United States
Zimbabwe
See also
Gassing (prison slang)
References
External links
Prison Slang (US and UK)
http://psychrod.com/the-unique-dialect-of-prison-slang/
Slang
Slang
|
Seedan () () is a 2011 Indian Tamil-language romantic fantasy drama film directed by Subramaniam Siva. The film stars Unni Mukundan and Ananya in the lead, and features Dhanush in an extended cameo appearance, while Sheela, Suhasini Mani Ratnam, Vivek, Ponvannan, and Ilavarasu appear in supporting roles.
The film, a partial remake of the 2002 Malayalam film, Nandanam, released on 25 February 2011 to mixed reviews. This film was dubbed in Telugu as Mahalakshmi.
Plot
Mahalakshmi is a servant at the residence of the elderly Amritavalli. Everyone is really fond of her and treats her as one of the family, not a servant. However, she finds herself doing all the work in the house. She is also a great devotee of the indian god Murugan. Despite residing in Pazhani, she is unable to attend a Murugan temple there.
In a dream, she finds herself at her wedding with an unknown man. The next day that man comes to the house. He is none other than Amritavalli's own grandson Mano Ramalingam. He falls in love with Maha. Maha, though hesitant at first, finds herself in love with him as well. Mano constantly assures Maha that his mother will arrange marriage. However, as fate has it, Mano is afraid to admit to his mother Thangam that he is in love. This encourages Thangam to fix his marriage with her childhood friend's daughter. However, when Thangam learns of the love affair, she is helpless, and all she is able to do is encourage the lovebirds to forget each other. Soon, everyone (except Amritavalli, Thangam and Mano) treats Maha as a servant, not a family member. Maha, angry, claims to Lord Murugan that she will not face ever again.
Enters Saravanan, who enters as a cook appointed by Madhava Gounder. Everyone finds Saravanan's cooking awesome. However, Maha disapproves as cooking was her only peaceful hobby in the house after she fell in Love. Saravanan is told to stay in the guest house where Gumbidiswamy is staying. Gumbidiswamy is a fraud and is now trying to pass as a swami. For this reason, he has stayed at their house. It did not take Saravanan long to realize that Gumbidiswamy is a fraud, and he used this to blackmail him. Having this control over Gumbidiswamy, Saravanan tells him to tell everyone that according to background and religious research, Mano and his fiancee are not suitable for each other.
After doing many things such as this, Saravanan is able to unite Maha and Mano. Thangam and Amritavalli agree to let Mano marry Maha. Maha and Mano (on the day of their wedding) search for Saravanan to thank him for his help. Instead of Saravanan, another person comes and says he is the only Saravanan around the area. Disappointed, Maha goes to Murugan's Altar to pray and there she sees Saravanan. He soon fades away. At that point, Maha understood that Saravanan was Murugan himself. The film ends with a message that god may come down to earth in a human form to help those in need.
Cast
Production
In early 2003, Sibi Sathyaraj was set to make his acting debut through Swami, the Tamil remake of the Malayalam film Nandanam (2003), directed by Renjith. Navya Nair was cast as the lead actress and A. R. Rahman was considered as the music composer, in the film to be produced by Swargachitra Appachan. However, despite beginning pre-production work, the film was later dropped.
Music
The soundtrack album was composed by Dhina in his 50th film.
Reception
Critical response
Rohit Ramachandran of nowrunning.com gave it 3/5 stars stating that "Seedan spirals downward and falls flat on its face." The Times of India gave the film three out of five stars and wrote that "Though Subramaniam Siva meanders in the first half by making substantial changes in the original, he displays a much better grip in the second, which makes the movie an enjoyable watch".
References
External links
2011 romantic drama films
2011 films
2010s Tamil-language films
Indian romantic drama films
Tamil remakes of Malayalam films
Films scored by Dhina
Films directed by Subramaniam Siva
|
Beddomeia fultoni (B. fultoni) is a species of small freshwater snail belonging to the family Tateidae.
The species is endemic to Australia. Commonly known as Farnhams Creek hydrobiid snail, the species used to belong to the family Hydrobiidae sensu lato (s.l.) and is listed as one of 37 threatened Beddomeia species on the Tasmanian Threatened Species Protection Act 1995.
Found within north-western Tasmania, the species has a somewhat small range. Previously, they have only been identified in sites within six different streams which are separated by a maximum of 4km. A large portion of the Beddomeia species, including B. fultoni fall into the category of narrow-range endemic species. These narrow-range taxa are generally poorly reserved due to limitations caused by small distributions, size, mobility, biogeographical boundaries and highly specific habitat requirements. Habitat disturbance from agricultural and domestic land use, climate change and invasive species are currently the principal threats contributing to the vulnerability of the species.
Taxonomy
Freshwater Mollusca can be divided into two classes, the bivalves (mussels, clams and pea shells and the gastropods (snails). These two classes differ significantly in physical appearance, biology and ecology but are grouped due to similarities found between body plans.
The Hydrobiidae family, in which used to belong the Beddomeia genus and Beddomeia fultoni species, is the most diverse group of the taxonomic subclass Caenogastropoda and has over 267 known species. The Beddomeia complex can be separated into found distinct genera; These genera include Beddomeia, Phrantela, Nanocochlea and Victodrobia. Of the 67 species that belong within the Beddomeia complex, 47 of these species are of the Beddomeia genus. This genus is endemic and restricted to Tasmania and occupies the northern areas of the state.
Within this clade the family Planorbidae is the next largest with about 40 species. Approximately half of the known hydrobiids are located in Tasmania, however, speciose faunas occur in south-eastern Australia and in the Great Artesian Basin. While some Hydrobiids have widespread and abundant populations, others, like B. fultoni are restricted to singular streams where genetic divergences occur within the same habitat.
Description
Hydrobiid snails are often around 1.0 -7.0 mm in length and often have smooth shells that can be opaque to a darker brown in colour. B. fultoni has a shell that is 3.07-3.78 mm in length and 2.24 – 2.78 mm in width and have a protoconch of approximately 1.5 whorls. The umbilicus of the shell is not sexually dimorphic and is either very small or closed and is characterized by 0.16-0.39mm wide chink.
Due to their small size and cryptic nature, information surrounding the ecology and biology of hydrobiid snails is relatively limited. At a species level, the identification of hydrobiids and other closely related families can be challenging. Distinguishing factors include a number of defined anatomical and shell characteristics, however, in more recent times a move from morphological taxonomy has seen a rise in the use of allozyme electrophoresis and DNA-based techniques for species identification. A study conducted in 2005 used a variety of Tasmanian species, including Pseudotricula, Nanocochlea, Austropyrgus and Beddomeia species in order to phylogenetically analyse the subterranean genera and is currently the only reported sequencing of Beddomeia species. Due to high variability within each species of the Beddomeia family, certain morphological traits are referred to as 'plastic'. These traits and characteristics are also convergent as multiple similarities can be seen between two or more species and therefore, cannot reliably be used as a direct indication of species.
B. fultoni co-exist with some species of Austropyrgus which may cause confusion due to similar appearances. However, B. fultoni can usually be identified by the absence of operculum peg, a characteristic not appearing on any Beddomeia species.
Distribution and habitat
Patterns of high diversity are generally presented by gastropods with increasing species richness and increasing endemicity at lower latitudes. However, an exception of this is Tasmania, which holds the most diverse freshwater fauna in Australia. Through the use of anatomical traits to investigate speciation within a hydrobiid complex located in south-eastern Australia, 67 hydrobiid species were classified by Ponder et al. and the Beddomeia complex was categorised into four genera; three of which (Beddomeia, Phrantela and Nanocochlea) are endemic to Tasmania, with Victoria being the sole habitat of the fourth genus, Victodrobia . There is a minimal geographical separation between these four genera particularly between the morphologically similar Austropyrgus and Nanocochlea and the supposedly closely related Beddomeia and Phrantela genera. The B.fultoni species can be described as cryptic in habitat due to the tendency to be located within environments within small and large streams of low hydrological variation.
B. fultoni is geographically restricted to the Montagu catchment in north-western Tasmania, where it has been located within the headwater tributaries of Fixters and Farnhams creeks. Within Fixters Creek the species is generally found on roots, wood, leaves and stones at Farnhams Creek. B.fultoni have only been identified within only 6 different streams with a maximum of 4km separating these sites, revealing the extremely narrow range of the species. This can be seen in Table 1, a population summary for Beddomeia fultoni assembled by K. Richards. Currently, the length of stream that the species occurs in unknown; however, inhospitable environments downstream of these catchments, caused by factors such as intensive dairy production, limit further radiation. Inhospitable environments such as wide streams, areas with high levels of agricultural development, production forestry, and domestic residences further separate subpopulations occurring within these catchments.
Species such as B.fultoni which exhibit small ranges of distribution do so as a result of limitation by size, dispersal capabilities and mobility. Historical biogeographical obstructions often determine the small ranges of species, however for those with minimal dispersal capabilities, migration between suitable habitats is significantly hindered. The presence of substances such as root mates, various substrates, CWD, and detritus have been associated with the occurrence of B. fultoni within its known habitats.
* NRM region = Natural Resource Management region
Conservation and threats
In 1995 Beddomeia fultoni was listed as rare on the Tasmanian Threatened Species protection Act 1995. In 2009 this status was elevated to endangered due to the species meeting the listing criterion for in two sections of criterion B. This includes criterion B1, as the species distribution is extremely fragmented and has been identified at no more than 5 locations and B2, as the species has a shown that a continuous population decline could be observed, inclined or projected due to occurrence and quality of habitat. Species are regarded as endangered when factors that have contributed to its decline continue to operate in the same manner and minimise the long-term chances of the species' survival prospects.
Key factors that have been identified as threats to B.fultoni and other Beddomeia species include habitat modification and destruction, interspecific competition from introduced species, climate change and stochastic effects.
Habitat disturbance
Areas within North-Western Tasmania have been targeted for agricultural development and intensive vegetable production due to the deep ferrosols, including deep basalt soils, present. As a result, B.fultoni are highly vulnerable to anthropogenic habitat destruction and modification. Habitat suitability for B.fultoni is reduced by increases to stream temperatures as a result of the permanent removal of riparian vegetation. Retention of this riparian vegetation within hydrobiid habitats is a crucial factor in the survival of these populations and in terms of conservation, forestry, agricultural and mining activities have shown to have negatively impacted these areas. These damages are yet to be quantified however, it is predicted that a range from short to long term effects will be observed, with some being permanent. Currently the effectiveness of various riparian buggers are being investigated and reviewed in order to limit the impacts on water quality and ecology in areas that are subject to anthropogenic disruption. Without intervention, it is predicted that by the year 2100, human land-use alteration will have the greatest global impact on biodiversity, followed by more popularised events such as climate change and nitrogen deposition.
Climate change
Alongside invasive species, climate change is one of the greatest biodiversity threats and is expected to provoke or contribute to the extinction of many species such as B. fultoni in the future. As a result of increased global temperatures, predictions of increased rainfall, along with severe storm and flooding events, create major concern for freshwater populations. These events decrease habitat availability and often contribute to the modification of riparian vegetation communities. Other factors caused by climate change, such as increased water temperature, sea level, human activity and habitat availability, further disrupt the ability of species, such as B. fultoni, to survive.
Management
As of 2020 there are over 180 rare, vulnerable, or endangered animal species that have been identified under the Threatened Species Protection Act 1995. Over half of these listed species are invertebrates and 37 species are from the genus Beddomeia. Management of B. fultoni alongside other members of the Beddomeia genus is predominantly governed by a series of parliamentary acts such as Tasmania's Threatened Species Protection Act 1995; Nature conservation act 2000 and Environment Protection and Biodiversity Conservation Act, 1999. The conservation measures are implemented through careful planning, restrictions and rule-sets such as the Forest Practices Code. However, currently species management is hampered by the lack of understanding and knowledge of the species' habitat preferences and responses to disturbance. For B. fultoni management, the main objective is to decrease extinction risk through the maintenance of the integrity of habitat at known sites. In addition to this, identifying new subpopulations of the species and increasing ecological understanding are also critical factors in the long-term management of the species.
Behaviour and ecology
Reproduction and lifestyle
The Beddomeia species have shown no signs of seasonal reproductive peaks and are able to breed throughout the entire year. The species reproduces sexually and lays single eggs which are contained within a secreted sand-grain capsule. The size of the egg capsules is approximately one third of the adult body size and individual capsules are equipped with broad attachment bases. This design allows for eggs to be attached to the underside of submerged rocks. Incubation periods are unknown; however, prior to emergence, eggs develop into completely formed juvenile snail. It is predicted that most Beddomeia species live to approximately 5 years; however, these species develop slowly and are only expected to reach sexual maturity after 2-3 years. Due to low egg capsule to snail abundance ratios being recorded, it is believed that the fecundity of B. fultoni is low. These methods of reproduction prevent Beddomeia species from dispersing into new habitat, unlike most other molluscs which have a free-swimming larval stage.
Predators and competition
Molluscs in general have been found to be a large contributor to the diet of platypus; however, in Tasmania, stonefly nymphs, introduced trout and platypus have been outlined as key predators of hydrobiids. With exception to shell morphology, physiological predation responses of Hydrobiids are currently poorly known. Native snail populations and species like B. fultoni, particularly in lowland rural and urban streams, have also been negatively affected through the introduction of species such a Potamopyrgus antipodarium.
Feeding and digestion
In most occurrences, snails consume food via their mouths as they crawl over surfaces. Food is obtained in processes such as "area restricted searching" and "giving-up-time", in which the snails travel rapidly until they encounter a source of food and remain in this area until the resources run low have been. A method called "tropotaxis" allows the snails to orient in still waters by sensing and measuring the concentration of attractants in nearby locations. Upon arrival of these food sources, similar chemicals which stimulate tropotaxis are used to stimulate a feeding response. A muscular organ which contains the trophic apparatus, called the proboscis, is the first part of a snail to make contact with the substrate. It is common to find sand grains in the stomachs of freshwater snails such as Beddomeia fultoni. It is likely that this material is gathered and actively ingested in order to be used in the trituration of food.
See also
List of non-marine molluscs of Australia
List of marine molluscs of Australia
List of Beddomeia species
Winston Ponder
References
External links
Gastropods of Australia
Tateidae
Beddomeia
Vulnerable fauna of Australia
Endemic fauna of Australia
Gastropods described in 1993
Taxonomy articles created by Polbot
Taxa named by Winston Ponder
|
This is a list of notable Americo-Liberian people.
The Americo-Liberian or Congau ethnic group has produced several notable politicians, businessman, and professionals including:
Politicians and Administrators
Wilmot Collins, Liberian-born American politician serving as the mayor of Helena, Montana
Nathaniel Barnes, Liberian businessman and politician
Charles Cecil Dennis, Liberian diplomat and politician
C. Cyvette M. Gibson, Mayor of Paynesville, Liberia
Louis Arthur Grimes, Liberian jurist
Richard Abrom Henries, Liberian politician
Elijah Johnson, Liberian pioneer and founding father of Liberia
James A. A. Pierre, Liberian politician
Charles Taylor, Liberian President and convicted war criminal
Hilary Teague, Liberian pioneer and author of the Liberian Declaration of Independence
Frank E. Tolbert, Liberian politician and businessman
E. Reginald Townsend, Liberian politician and journalist
Winston Tubman, Liberian lawyer and politician
Clarence Lorenzo Simpson Sr., Liberian politician and former Vice President
Kimmie Weeks, Liberian human rights activist
Educators and Writers
Edward Wilmot Blyden, Liberian intellectual scholar and Pan-Africanist pioneer
Mary Antoinette Brown-Sherman, Liberian educator and first African woman to serve as president of a university
Anna E. Cooper, educator, dean of the University of Liberia
Helene Cooper, journalist for The New York Times
John Payne Jackson, influential journalist in the Lagos Colony and founder of the Lagos Weekly Record
Wayétu Moore, author
Entrepreneurs and Businesspersons
Romeo A. Horton, a founder of the Africa Development Bank
Clarence Lorenzo Simpson Jr., Liberian judge and businessman
Benoni Urey, Liberian businessman and the wealthiest Liberian
Rhoda Weeks-Brown, General counsel to the IMF
Scientists and Medical professionals
Solomon Carter Fuller, Liberian pioneer and African-American psychiatrist and physician
American-born presidents of Liberia
Americo-Liberians formed a cultural elite in Liberia. The following presidents of Liberia were born in the United States:
Joseph Jenkins Roberts, first and seventh president. Born in Norfolk, Virginia
Stephen Allen Benson, second president. Born in Cambridge, Dorchester County, Maryland
Daniel Bashiel Warner, third president. Born in Baltimore County, Maryland
James Spriggs-Payne, fourth and eighth president. Born in Richmond, Virginia
Edward James Roye, fifth president. Born in Newark, Licking County, Ohio.
James Skivring Smith, sixth president. Born in Charleston, South Carolina, Charleston County, South Carolina
Anthony W. Gardiner, ninth president. Born in Southampton County, Virginia
Alfred F. Russell, tenth president. Born in Lexington, Fayette County, Kentucky
William D. Coleman, thirteenth president. Born in Fayette County, Kentucky
Garretson W. Gibson, fourteenth president. Born in Baltimore, Maryland
Also one Americo-Liberian president of Liberia was born in the British West Indies:
Arthur Barclay, the fifteenth president of Liberia, was born in Bridgetown, Barbados
All subsequent presidents were born in Liberia.
References
Creole peoples
Americo-Liberian people
Americo-Liberian people
|
Menshevizing idealism, also known as menshevistic idealism (), is a term that was widely used in Soviet Marxist literature and referred to the errors committed in philosophy by Abram Deborin’s group. The term was coined by Joseph Stalin in 1930. According to Soviet philosophers, Menshevistic idealism tried to identify Marxist dialectics with Hegel’s, divorced theory from practice, and underestimated the Leninist stage in the development of philosophy.
References
Further reading
Коршунов Н. Б. Так называемый «меньшевиствующий идеализм» в аспекте философских дискуссий начала 30-х годов в СССР. Диссертация на соискание учёной степени кандидата философских наук : 09.00.03. — Москва, 2003. — 248 с.
Menshevizing idealism
Russian philosophy
|
```xml
import React, { useCallback, useState } from 'react'
import styled from '../../../design/lib/styled'
import { useGlobalData } from '../../../cloud/lib/stores/globalData'
import ErrorPage from '../../../cloud/components/error/ErrorPage'
import { useDialog, DialogIconTypes } from '../../../design/lib/stores/dialog'
import { useTranslation } from 'react-i18next'
import { deleteUser } from '../../../cloud/api/users'
import { UserFeedbackFormData } from '../../../cloud/components/FeedbackForm/types'
import { useToast } from '../../../design/lib/stores/toast'
import NavigationBarContainer from '../atoms/NavigationBarContainer'
import { LoadingButton } from '../../../design/components/atoms/Button'
import useSignOut from '../../lib/signOut'
const AccountDeletePage = () => {
const { globalData } = useGlobalData()
const { currentUser } = globalData
const [sendingRemoval, setSendingRemoval] = useState<boolean>(false)
const { messageBox } = useDialog()
const { pushMessage } = useToast()
const { t } = useTranslation()
const signOut = useSignOut()
const [feedback, setFeedback] = useState<UserFeedbackFormData>({
needFeatures: false,
needCheaper: false,
needIntegrations: false,
})
const updateFeedback = useCallback(
(obj: Partial<UserFeedbackFormData>) => {
setFeedback((prev) => {
return {
...prev,
...obj,
}
})
},
[setFeedback]
)
const deleteHandler = useCallback(async () => {
if (currentUser == null) {
return
}
messageBox({
title: `Delete your account?`,
message: `Are you sure to delete this account and all of its content? Your 1-man teams and all of their documents will be removed alongside it.`,
iconType: DialogIconTypes.Warning,
buttons: [
{
variant: 'secondary',
label: 'Cancel',
cancelButton: true,
defaultButton: true,
},
{
variant: 'danger',
label: 'Delete',
onClick: async () => {
setSendingRemoval(true)
try {
await deleteUser(currentUser.id, feedback)
signOut()
} catch (error) {
pushMessage({
title: 'Error',
description: error.message,
})
setSendingRemoval(false)
}
},
},
],
})
}, [messageBox, currentUser, pushMessage, feedback, signOut])
if (currentUser == null) {
return (
<ErrorPage
error={{
name: 'Forbidden',
message: 'You need to login in order to access this content.',
}}
/>
)
}
return (
<Container>
<NavigationBarContainer label='Delete Account' />
<div className='body'>
<p>
Please let us know the reasons why so that we can further improve our
product.
</p>
<div className='body__form'>
<div className='body__form__control'>
<label className='body__form__control__checkbox'>
<input
type='checkbox'
checked={feedback.needFeatures}
onClick={(event) =>
updateFeedback({
needFeatures: (event.target as HTMLInputElement).checked,
})
}
/>
I need more features
</label>
{feedback.needFeatures && (
<textarea
className='body__form__control__extraTextarea'
value={feedback.features}
onChange={(event) =>
updateFeedback({
features: event.target.value,
})
}
placeholder='What kind of features do you want?'
/>
)}
</div>
<div className='body__form__control'>
<label className='body__form__control__checkbox'>
<input
type='checkbox'
checked={feedback.needIntegrations}
onClick={(event) =>
updateFeedback({
needIntegrations: (event.target as HTMLInputElement)
.checked,
})
}
/>
I need more integrations
</label>
{feedback.needIntegrations && (
<textarea
className='body__form__control__extraTextarea'
value={feedback.integrations}
onChange={(event) =>
updateFeedback({
integrations: event.target.value,
})
}
placeholder='What kind of integrations do you want?'
/>
)}
</div>
<div className='body__form__control'>
<label className='body__form__control__checkbox'>
<input
type='checkbox'
checked={feedback.needCheaper}
onClick={(event) =>
updateFeedback({
needCheaper: (event.target as HTMLInputElement).checked,
})
}
/>
Pricing is too steep
</label>
{feedback.needCheaper && (
<textarea
className='body__form__control__extraTextarea'
value={feedback.price}
placeholder='What would be the proper price for you?'
onChange={(event) =>
updateFeedback({
price: event.target.value,
})
}
/>
)}
</div>
<div className='body__form__control'>
<LoadingButton
spinning={sendingRemoval}
className='body__form__control__button'
variant='danger'
disabled={sendingRemoval}
onClick={deleteHandler}
>
{t('general.delete')}
</LoadingButton>
</div>
</div>
</div>
</Container>
)
}
export default AccountDeletePage
const Container = styled.div`
.body {
padding: ${({ theme }) => theme.sizes.spaces.md}px;
}
.body__form__control {
margin-bottom: ${({ theme }) => theme.sizes.spaces.md}px;
input[type='checkbox'] {
margin-right: ${({ theme }) => theme.sizes.spaces.sm}px;
}
}
.body__form__control__checkbox {
display: block;
}
.body__form__control__extraTextarea {
display: block;
margin-top: ${({ theme }) => theme.sizes.spaces.sm}px;
width: 100%;
height: 50px;
padding: ${({ theme }) => theme.sizes.spaces.sm}px;
}
.body__form__control__button {
width: 100%;
}
`
```
|
```objective-c
#pragma once
#include "idocumentstore.h"
namespace search {
class DocumentStoreVisitorProgress : public IDocumentStoreVisitorProgress
{
double _progress;
public:
DocumentStoreVisitorProgress();
void updateProgress(double progress) override;
virtual double getProgress() const;
};
} // namespace proton
```
|
```html+erb
<%= render partial: "placeholder", locals: { title: "FAQ" } %>
```
|
Necremnoides is a genus of hymenopteran insects of the family Eulophidae.
References
Key to Nearctic eulophid genera
Universal Chalcidoidea Database
Eulophidae
|
The Slovak Football League () is a national American Football league in Slovakia. The league was founded in 2011 by the Slovak Association of American Football; there are seven teams that compete in the league today.
Teams
Bratislava Monarchs
Cassovia Steelers
Nitra Knights
Trnava Bulldogs
Žilina Warriors
Zvolen Patriots
Former teams
Banská Bystrica Daemons
Smolenice Eagles
Topoľčany Kings
Champions
Historical Stats
References
External links
The Official Website of the Slovak Association of American Football
American football in Slovakia
American football leagues in Europe
Sports leagues established in 2011
Amer
2011 establishments in Slovakia
|
```go
// +build example
// Package unitTest demonstrates how to unit test, without needing to pass a
// connector to every function, code that uses DynamoDB.
package unitTest
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface"
)
// ItemGetter can be assigned a DynamoDB connector like:
// svc := dynamodb.DynamoDB(sess)
// getter.DynamoDB = dynamodbiface.DynamoDBAPI(svc)
type ItemGetter struct {
DynamoDB dynamodbiface.DynamoDBAPI
}
// Get a value from a DynamoDB table containing entries like:
// {"id": "my primary key", "value": "valuable value"}
func (ig *ItemGetter) Get(id string) (value string) {
var input = &dynamodb.GetItemInput{
Key: map[string]*dynamodb.AttributeValue{
"id": {
S: aws.String(id),
},
},
TableName: aws.String("my_table"),
AttributesToGet: []*string{
aws.String("value"),
},
}
if output, err := ig.DynamoDB.GetItem(input); err == nil {
if _, ok := output.Item["value"]; ok {
dynamodbattribute.Unmarshal(output.Item["value"], &value)
}
}
return
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.