text
stringlengths 1
22.8M
|
|---|
```smalltalk
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using NUnit.Framework;
#if PCL
using System.Windows.Markup;
using System.Xaml;
using System.Xaml.Schema;
#else
using System.Windows.Markup;
using System.Xaml;
using System.Xaml.Schema;
#endif
using Category = NUnit.Framework.CategoryAttribute;
namespace MonoTests.System.Windows.Markup
{
[TestFixture]
public class ReferenceTest
{
[Test]
public void ConstructorNullName ()
{
new Reference ((string) null); // it is somehow allowed
}
[Test]
public void ProvideValueWithoutTypeOrName ()
{
var reference = new Reference ();
Assert.Throws<ArgumentNullException> (() => reference.ProvideValue (null));
}
[Test]
public void ProvideValueWithNameWithoutResolver ()
{
var x = new Reference ("X");
Assert.Throws<ArgumentNullException> (() => x.ProvideValue (null)); // serviceProvider is required.
}
[Test]
public void ProvideValueWithNameWithProviderNoResolver ()
{
var x = new Reference ("X");
Assert.Throws<InvalidOperationException> (() => x.ProvideValue (new NameServiceProvider (false, false)));
}
[Test]
public void ProvideValueWithNameWithProviderResolveFail ()
{
var x = new Reference ("X");
var r = new NameServiceProvider (true, false);
Assert.AreEqual ("BAR", x.ProvideValue (r), "#1");
}
[Test]
public void ProvideValueWithNameWithProviderResolveSuccess ()
{
var x = new Reference ("Y");
var r = new NameServiceProvider (true, true);
Assert.AreEqual ("FOO", x.ProvideValue (r), "#1");
}
class NameServiceProvider : IServiceProvider
{
Resolver resolver;
public NameServiceProvider (bool worksFine, bool resolvesFine)
{
resolver = worksFine ? new Resolver (resolvesFine) : null;
}
public object GetService (Type serviceType)
{
Assert.AreEqual (typeof (IXamlNameResolver), serviceType, "TypeToResolve");
return resolver;
}
}
class Resolver : IXamlNameResolver
{
bool resolves;
public Resolver (bool resolvesFine)
{
resolves = resolvesFine;
}
public IEnumerable<KeyValuePair<string, object>> GetAllNamesAndValuesInScope ()
{
throw new Exception ();
}
public object GetFixupToken (IEnumerable<string> names)
{
throw new NotImplementedException ();
}
// only X (which 'failed' to resolve) calls this
public object GetFixupToken (IEnumerable<string> names, bool canAssignDirectly)
{
Assert.IsTrue (canAssignDirectly, "canAssignDirectly");
Assert.AreEqual (1, names.Count (), "Count");
Assert.AreEqual ("X", names.First (), "name0");
return "BAR";
}
public bool IsFixupTokenAvailable {
get { throw new NotImplementedException (); }
}
#pragma warning disable 67
public event EventHandler OnNameScopeInitializationComplete;
#pragma warning restore 67
// both X and Y calls this.
public object Resolve (string name)
{
return resolves ? "FOO" : null;
}
public object Resolve (string name, out bool isFullyInitialized)
{
throw new NotImplementedException ();
}
}
}
}
```
|
Laleh Gun (, also Romanized as Lāleh Gūn; also known as Lālgān) is a village in Ahmadabad Rural District, Hasanabad District, Eqlid County, Fars Province, Iran. At the 2006 census, its population was 544, in 130 families.
References
Populated places in Eqlid County
|
Sound the Alarm is an EP by the American ska punk band Less Than Jake which was released on CD and (colored) 12" vinyl by Pure Noise Records on 3 February 2017. It was mixed and mastered by Jason Livermore at The Blasting Room, and co-produced by singer and bassist Roger Lima and the band at The Moathouse.
Track listing
Track listing per sleeve.
Call to Arms – 2:36
Whatever the Weather – 3:00
Bomb Drop – 3:06
Welcome to My Life – 2:43
Good Sign – 3:28
Years of Living Dangerously – 3:08
Things Change – 2:48
Personnel
Personnel per sleeve.
Less Than Jake
Chris DeMakes – vocals, guitar
Roger Lima – vocals, bass guitar
Peter "JR" Wasilewski – tenor saxophone
Buddy Schaub – trombone
Vinnie Fiorello – drums
Production and design
Roger Lima – producer, engineer
Less Than Jake – producer
Jason Livermore – mixing, mastering
Doug Dean – art layout, design
References
Less Than Jake albums
2017 EPs
Pure Noise Records EPs
|
State Route 149 (SR 149) is a short state highway in the U.S. state of California that helps to connect Oroville and Chico through rural Butte County. Connecting State Route 70 at Wicks Corner with State Route 99 east of Durham, it forms part of the primary north–south highway through the eastern Sacramento Valley, a Focus Route of the Interregional Road System.
SR 149 was formerly part of the Oroville-Chico Highway; the majority of the latter was merged into other routes. In the mid-1970s, the highway was reallocated onto a newer two-lane alignment. A project to widen the two-lane road to a four-lane expressway was completed in late 2008, removing the bottleneck from the Oroville-Chico highway.
Route description
State Route 149 begins at Wicks Corner as a divided highway, at an interchange with SR 70 several miles north of Oroville. This is the north end of the State Route 70 freeway, which passes through a gap between the Campbell Hills and South Table Mountain on its way from Oroville. SR 149 heads northwest across gently rolling terrain before descending into the valley of the Dry Creek. As it begins to climb out of the valley, SR 149 ends at an interchange with SR 99. The latter highway continues the corridor northwest to Chico, quickly dropping back into the Butte Creek valley. The route is a divided highway with four lanes.
SR 149 is part of the California Freeway and Expressway System, and is part of the National Highway System, a network of highways that are considered essential to the country's economy, defense, and mobility by the Federal Highway Administration.
History
By the late 1910s, a "natural prairie road" linked Oroville to State Highway Route 3 southeast of Chico, following the present Table Mountain Boulevard, Openshaw Road, and Oroville-Chico Highway to Midway (Route 3). The primary route between these two cities was the all-state highway route, following Route 21 (now SR 162) west from Oroville to Route 3 near Richvale. Butte County dedicated a newly improved Oroville-Chico Highway on July 4, 1926; it became part of the state highway system in 1933 as the northern portion of the Woodland-Chico Route 87. (The rest of Route 87 became part of Sign Route 24, which turned east at Oroville along present State Route 70, in 1934.)
In the 1950s and 1960s, about three-quarters of the Oroville-Chico Highway was absorbed by other routes. A new two-lane alignment of U.S. Route 99E (Legislative Route 3, now SR 99) between east of Richvale and Chico opened in the mid-1950s, using part of the Oroville-Chico Highway south of Durham Dayton Highway and bypassing the remainder to the junction south of Chico. In the early 1960s, U.S. Route 40 Alternate (Legislative Route 21, now SR 70) was relocated due to the damming of Lake Oroville across its old alignment. The bridge over the West Branch Feather River northwest of the dam opened in August 1962, resulting in US 40 Alt. using the Oroville-Chico Highway (which was relocated to a new four-lane freeway alignment) south of Wicks Corner. The remainder, which was never part of a sign route, became Route 149 in the 1964 renumbering.
SR 149 was relocated onto a new two-lane alignment in the mid-1970s, leaving behind Openshaw Road. Caltrans began studies for interchanges at each end in September 1992. The California Transportation Commission approved funding for four-laning SR 149 in April 1994 and the two interchanges in May 1996, with construction to begin in 1998 and cost $47 million. Due to state budget problems and the need to study environmental impacts, the project was repeatedly pushed back; these impacts and inflation had more than doubled the cost to $120 million in 2004. In particular, an endangered species of meadowfoam was discovered on the south embankment, forcing a redesign. Construction began in September 2005 on a new freshwater marsh near the State Route 70 intersection to replace beaver ponds in the path of the highway, and it was completed in March 2006.
Ground was broken for the highway project in April 2006, with major construction beginning in May. Caltrans estimated completion in late 2009 for the completion of the four-lane expressway, including a new directional interchange at each end, at which State Route 70 and State Route 99 will exit and enter to the right of the main Oroville-Chico movement. Most access was closed, with Shippee Road providing the sole at-grade crossing of the expressway, and an overcrossing near State Route 70 giving access to local property. Shippee Road was relocated to the southeast, allowing for the future construction of an interchange. In addition, State Route 70 was relocated to the west between SR 149 and State Route 191, and local access on State Route 99 between SR 149 and the Durham Dayton Highway interchange was replaced by frontage roads. The entire project was completed in November 2008, at a cost of $125 million.
Major intersections
See also
References
External links
California Department of Transportation, Butte 70/149/99 Highway Improvement Project
California Highways: State Route 149
California @ AARoads.com - State Route 149
149
State Route 149
U.S. Route 99
U.S. Route 40
|
The BL 18-inch Mk I naval gun was a breech-loading naval rifle used by the Royal Navy during World War I. It was the largest and heaviest gun ever used by the British. Only the Second-World-War Japanese 46 cm/45 Type 94 had a larger calibre, , and it fired a lighter shell. The gun was a scaled-up version of the BL 15 inch Mk I naval gun and was developed to equip the "large light cruiser" (a form of battlecruiser) . Its barrel length of was just 40 calibres, slightly limiting its muzzle velocity.
Only three guns were built, but they did not see combat with Furious before they were removed from her and transferred to the s and for coast-bombardment duties. Only 85 rounds were fired in combat operations before the war ended. All three were removed from service in 1920 and served as proving guns for cordite tests. Two were scrapped in 1933 and the last one survived until it was scrapped in 1947.
Design and development
The 18-inch gun had its genesis in the insistence of the First Lord of the Admiralty, Admiral Fisher, for the biggest possible gun mounted on the fastest possible ship. He conceived of what he called "large light cruisers" carrying four guns, which became the , but he wanted their half-sister Furious to carry an even bigger gun. The Elswick Ordnance Company was the only company capable of manufacturing such a large gun and began design work in 1915. It was designated as the "15-inch B" to conceal its real size and was derived from the design of the 15-inch Mk I already in service.
The gun and its breech mechanism weighed a total of , almost half again as much as the 15-inch gun's . It was mounted in a single-gun turret, also designated as the 15-inch B, derived from the twin-gun 15-inch Mark I/N turret. The barbettes of Furious were designed to accommodate either turret, in case problems arose with the 18-inch gun's development. The gun could depress to −3° and elevate to a maximum of 30°. Ammunition development for the gun was naturally focused on anti-ship shells for Furious, and it fired a , 4 crh armour-piercing, capped (APC) shell, at a muzzle velocity of to a distance of . It could fire one round per minute. The turret's revolving mass was , only a slight 2% more than the of its predecessor.
The guns proved to be too powerful for Furious light hull, and they became available for other uses during 1917, after trials showed the ship could not handle the stress of firing. Admiral Sir Reginald Bacon, commander of the Dover Patrol, conceived a plan to mount two guns inside the shell of the Palace Hotel in Westende from where they could bombard the naval facilities at Zeebrugge and Bruges, provided that the hotel was captured during the upcoming Battle of Passchendaele. He planned to transport the guns across the English Channel lashed to the torpedo bulges of monitors. He also thought that they could be used on the decks of monitors and as such a dual purpose carriage was designed for the guns, which could be used both afloat and ashore. Only a limited amount of traverse was required for either role, but elevation had to be increased to 45° to maximize range. The concept was approved 23 September 1917, and Elswick was ordered to design the new 'B CD' mounts for delivery in five months.
The original concept for land use involved a special elevating slide that could traverse 6° to either side. Ammunition handling, elevation and ramming were to be done via hydraulic pump, but the breech was hand-worked. The gun was to be installed in a turf-covered concrete dome with a gunport for the barrel. As much as possible of the gun and its mount was designed to be assembled out of range of German artillery and then moved on a special broad-gauge railway to the site on specially-designed wheels. The transportable section weighed .
After the British Army failed to capture Westende, the mounting was optimised for use on a monitor. It was very simple, consisting of two large girders connected together at each end with the gun and its carriage between them. The mount could only traverse 10° inside its fixed, ½-inch (12.7 mm) gun shield and was aimed over the starboard side of the monitor. It was loaded at a fixed angle of 10°, but it could only fire between 22° and 45° to equalize the stresses on the carriage and the ship. It was provided with hydraulically powered cranes, loading tray, rammer and breech mechanism to minimize the crew's workload, but the ammunition parties had to use muscle power. The shells were stowed below deck and had to be moved by overhead rail to the hatch in the deck behind the gun to be lifted up and loaded. The cordite propellant charges were kept in eighteen steam-heated storage tanks mounted on the forecastle deck abaft the funnel and moved to the gun on a bogie mounted on rails, two one-sixth charges at a time, which reduced the rate of fire to about one round about every 3–4 minutes. The monitors had to be extensively modified to handle the gun. Numerous additional structural supports had to be added underneath the gun to support its weight of ; the sides had to be plated in to accommodate the additional crewmen and the interior rearranged for the 18–inch shells and the loading arrangements.
Service
A total of three guns were built by Armstrong Whitworth, two for Furious and a spare. The forward gun was removed from Furious in March 1917, before she was completed, when she was ordered to be converted to a seaplane carrier. The second gun was removed later in 1917, and she was converted into an aircraft carrier. The new 'B CD' mounts were delayed, and the mount for was not delivered until 20 June 1918. The gun from Furious 'A' turret was lifted aboard on 9 July, but the General Wolfe was not ready to begin firing trials until 7 August. She was given the nickname of 'Elephant and Castle', as the enormous gun-mount structure dominated the ship's profile.
While the new mounting was being designed, further effort was put into the ammunition to extend the range as much as possible. Use of a supercharge, where one of the six charges was increased in weight to , making a total of propellant, and increasing the elevation to 45° extended the range to about with the existing 4 crh shells. New 8 crh high explosive shells, with a longer, thinner ballistic cap, were ordered, but only two shells had been delivered before the end of the war. Some of the existing stock of 500 APC and 500 CPC (common, pointed, capped) shells on hand from Furious were modified with the new cap and were probably the only shells used during the war.
General Wolfe was assigned to the Dover Patrol on 15 August 1918, but did not fire on any targets until 28 September, when a large force of monitors was gathered to harass German lines of communication. She was anchored bow and stern, broadside to her target, and had difficulties dealing with the tidal currents. She opened fire on the railway bridge at Snaeskerke ( south of Ostend) at a range of and made naval history as the heaviest shell fired from the largest gun at the longest range in action. She fired 52 shells that day and found that the recoil from her 18–inch gun moved her sideways with her shallow hull and also caused her to roll, which slowed her rate of fire. She fired a total of 81 rounds before the end of the war.
The second gun, Furious spare, was mounted in , but she was not ready for combat until 13 October 1918. She fired three rounds the following day, but had to cease fire to avoid hitting friendly advancing troops. One round had already been loaded when the order came to cease fire so she fired it, with a reduced charge, into a minefield to seaward. A total of 85 18-inch shells were fired in action by both guns. Wear on General Wolfes gun was measured at about after firing 161 effective full charges (EFC) - 105 rounds including proof and practice, with 57 being supercharges. This indicates the gun would have been good for well over 300 EFC, comparable with most other British ordnance using Cordite MD.
The third gun, from Furious 'Y' turret, was intended for , which had been modified to accept it earlier in the year, but the war ended before it was mounted, although the monitor was ordered to Portsmouth to have it fitted on 19 October. The guns were removed from the monitors in December 1920. Gun No. 1, from Furious 'Y' turret, was lined down to and used in cordite-proving tests for the BL 16-inch Mk I gun, intended for the cancelled G3 battlecruisers, and used in the s. It remained in use until 1942 and was scrapped in 1947. The other two guns were used at Shoeburyness and Yantlet artillery ranges in the Thames Estuary for similar duties; they were scrapped in 1933.
One mount survived and was used to mount a spare BL 14-inch Mk VII gun from the battleship . It was emplaced near Dover in 1940, and the combination was named "Pooh", after Winnie-the-Pooh.
See also
46 cm/45 Type 94 World War II Japanese 18-inch gun
Notes
Bibliography
External links
page from Nav weapons.com
Naval guns of the United Kingdom
460 mm artillery
Elswick Ordnance Company
World War I naval weapons of the United Kingdom
|
All Saints Church is a redundant Anglican church located to the south of the village of Ballidon, Derbyshire, England. It is recorded in the National Heritage List for England as a designated Grade II listed building, and is under the care of the Friends of Friendless Churches.
History
The church dates originally from the 12th century. Over the centuries the building has been partly rebuilt or restored, including in 1822 and in 1882. The last service in the church took place on 18 April 2003. It was vested in the Friends of Friendless Churches during 2011.
Architecture
All Saints is constructed in limestone with grit-stone dressings, and it has a stone slate roof. Its plan consists of two cells, the nave and the chancel, with a south porch and a north vestry. At the west end is a gabled bellcote. On the south side of the church are square-headed windows, and at the east end is a two-light window; all of these contain Decorated-style tracery. At the west end is a lancet window. In the north wall is a blocked doorway. The south doorway is Norman, but has been much restored. Inside the church is a Neo-Norman chancel arch. The font is Perpendicular in style, with crude carving. In the south wall above the font is an old fireplace, which suggests that there may have once been a room at a higher level. The east window contains stained glass dated 1883.
References
Grade II listed churches in Derbyshire
Churches preserved by the Friends of Friendless Churches
Church of England church buildings in Derbyshire
|
Alf Salisbury (1909 – 5 November 2000) was a British communist, Jewish activist, trade union leader, and anti-fascist. During the 1930s he smuggled monetary support from British communists to German communists to help resist the Nazis. Salisbury was present at many key events in the history of anti-fascism, including the Battle of Cable Street, and was also a member of the International Brigades during the Spanish Civil War (1936-1939). In his later life, Alf Salisbury led a successful campaign to convince the BBC and other British news outlets to stop using the term "Mongols" to refer to people with Down Syndrome. For this work he was awarded with special commondations from the Mongolian embassy and a stay in a Mongolian health spa. He was a member of the Communist Party of Great Britain (CPGB), before becoming a founding member of its continuation, the Communist Party of Britain (CPB).
Early and family life
Alf Salisbury was born on 6 December 1909 in Stepney, England. His family were Latvian Jewish refugees from Riga, who had fled to Britain to escape Czarist pogroms. In 1902 the Salisbury family arrived in Britain, making a home for themselves in London's east end, which was home to communities of Russian and Baltic Jewish communities. Alf Salisbury and his family grew up in poverty, inspiring his future hatred of capitalism.
At the age of 14, Alf Salisbury left school and soon afterwards joined the National Union of Seamen, then led by Havelock Wilson. Alf Salisbury jumped ship in New York and spent three years working and travelling across the world, but mostly in America. During this time he came became a supporter of Industrial Workers of the World (IWW).
In 1929 Alf Salisbury briefly returned to Britain, was then arrested in Guatemala after being accused of spying, and also joined the Communist Party of Great Britain (CPGB). After joining the CPGB he would remain within the British communist movement until his death.
Clandestine support for anti-Nazi German
In 1933 Alf Salisbury became one of a small number of CPGB activists working for Harry Pollitt that were tasked with being a clandestine courier supporting anti-nazi resistance belonging to the Communist Party of Germany (KPD). This role was extremely dangerous and often put Salisbury at risk of being killed by the Nazis. Salisbury would regularly receive postcards, which would trigger a rendezvous with Harry Pollitt at a pub close to the CPGB headquarters on King Street in London, where Pollitt would give Salisbury large amounts of German currency. Salisbury would then take the money to German docks where he would make secret meetings with KDP members, many of whom were themselves on the run. During one of these meetings at a German dock, Salisbury's fellow British sailors became involved in a violent fight against Nazi brownshirts, leading to Salisbury's arrest. With intervention from the British embassy, Salisbury was freed and returned to Britain. By the mid-1930s, Alf Salisbury was blacklisted from the merchant navy in 1936 and found himself unemployed. He then joined the National Unemployed Workers' Movement (NUWM) and became active as a community organiser.
Joining the International Brigades
Alf Salisbury became active in anti-fascist activism, and was also a participant in the Battle of Cable Street. In 1937 he left Britain to join the International Brigades and fight in the Spanish Civil War. He was guided through France and into Spain by French communists, crossing the Pyrenees at night. Friends of Salisbury would mention that he often vividly recalled his experiences during the war and the deaths of many people close to him, including one woman who he remarked that he could have married. He fought for 16 months in the Spanish Civil War before returning to Britain in 1038.
Trade Union activism
Once Alf Salisbury returned to Britain, he became the secretary of the Stepney branch of the NUWM. During protests with the NUWM, Salisbury chained himself to the Settles Street Labour Exchange, ordered tea at the Ritz hotel and refused to pay, and laid down in the road in Oxford Circus to block traffic. At a New Year's Eve celebration with the NUWM, Alf Salisbury was one of many activists who marched to Downing Street carrying a coffin. During the protest he was brutally attacked by the police and bound over at Bow magistrates court the next day. Both communist and NUWM activists were angered by Salisbury's treatment by the police, and organised a march demanding his freedom. Come the end of the Phoney War, Alf Salisbury was called up for military service, however he was told that he had failed the medical test, which was a common method of excluding communists from the British military. Friends of Salisbury believed he was rejected due to his former membership of the International Brigades. Instead of joining the military, in 1940 he married Lilly Nicklansky, travelled to Carlisle and became a CPGB communist party organiser in Maryport, and also a shop steward in a munitions factory, before moving to Leicester.
After World War II Alf Salisbury became a well-known figure within the National Union of Tailors and Garment Workers, but was repeatedly sacked from employment. During the 1949 Savoy workers strike, Alf made the news after throwing himself in front of a truck that sought to break the picket, narrowly avoiding serious injury. One of the women at the picket died of a heart attack, which was a major source of guilt for Salisbury as he had been the picket captain at the time. During the 1950s Alf Salisbury reinvented himself as a railway worker, first being employed at South Tottenham station and then King's Cross stations. In 1962 he left rail work and began working in a furniture factory, and then a chemical factory, becoming a shop steward in both. During the mid-1960s he began working for the London Co-op, and became well known at meetings of the Union of Shop, Distributive and Allied Workers (USDAW) where he would sell the Morning Star. Alf Salisbury further branched out into other organisations, becoming an active member of the Campaign for Nuclear Disarmament (CND), the Greater London Pensioners & Trade Union Action Group, and became a delegate to the Cities of London and Westminster Trades Councils.
Later life
Alf Salisbury lived in the same constituency as MP Norman Tebbit, and the two often attacked each other in newspapers and at meetings.
It is unknown how many times Alf Salisbury had been arrested during his life, but his biographer Liane Groves believes that Salisbury was arrested over 30 times.
At some moment during the 1980s, Alf Salisbury was expelled from the Communist Party of Great Britain (CPGB), an organisation he had been a member and supporter of since 1929. He and many other of the expelled members created the Communist Party of Britain (CPB), which is today the continuation of the original CPGB after the latter's dissolvement in 1991.
Activism for people with Downs Syndrome
Nearing the final years of his life, Alf Salisbury began picketing the British Broadcasting Company (BBC) and the Independent Television News (ITN), arguing that their use of the term "Mongols" to describe people with Down Syndrome was racist. For almost an entire year, Salisbury picketed the offices of both the BBC every morning, and ITN every evening. His homemade signs and his practice of stopping people on the streets to talk about the issue, gained the attention of the BBC and ITN who then reviewed the use of the term in the context of children with Downs Syndrome. Salisbury also lobbied the Press Council, which found in his favour. His campaign was successful and both the BBC and ITN dropped the term "Mongols" when referring to people with Downs Syndrome. Despite this success, Salisbury did not stop his campaign and began to hold similar pickets of the offices of major British newspapers including the Daily Mail, until they also dropped the use of the term.
Alf Salisbury's successful campaign was noticed by the staff of the embassy of Mongolia, who rewarded Salisbury with special commendations by a Mongolian ambassador, and awarded Salisbury with a stay at a health spa in Mongolia as a sign of respect and gratitude.
Death
Alf Salisbury died on the 5th November 2000, at the age of 91. His funeral was held in November 2000.
See also
Bill Alexander
Charlie Hutchison
Ralph Winston Fox
British Battalion
Jessie Eden
References
1909 births
2000 deaths
International Brigades personnel
People from Stepney
Communist Party of Great Britain members
Communist Party of Britain members
British trade unionists
British communists
British community activists
Campaign for Nuclear Disarmament activists
British disability rights activists
National Union of Seamen
|
Forte or Forté may refer to:
Music
Forte (music), a musical dynamic meaning "loudly" or "strong"
Forte number, an ordering given to every pitch class set
Forte (notation program), a suite of musical score notation programs
Forte (vocal group), a classical crossover singing trio
Computing
Forté 4GL, a proprietary application server
Forté Agent, an email and news client used on the Windows operating system
Forte TeamWare, a family of development environments from Sun Microsystems
NetBeans IDE, formerly Forté for Java
Companies
Forté Internet Software, makers of Forté Agent
Forte Land, a large-scale real estate company in Shanghai, China
Forte Group, a former British hotel company
Forte Design Systems, a high level synthesis software company in San Jose, California
Trust House Forte, a British hotel and catering firm
Fictional characters
Forte Stollen, a character from the Galaxy Angel anime
Bass (Mega Man), a character in Mega Man known as "Forte" in Japanese
Bass.EXE, a character from the MegaMan NT Warrior series known as "Forte" in Japanese
Forte, a character in Beauty and the Beast: The Enchanted Christmas
Other uses
Forte (surname)
8780 Forte, a main-belt minor planet
FORTE, the Fast On-orbit Rapid Recording of Transient Events satellite
Forte-class frigate, two French Navy warships
French frigate Forte (1794), in service 1794–1801
Forte (fencing), a fencing term for the "strong" part of the blade
Forte (typeface), by the Monotype Corporation included in various editions of Microsoft Office
Forte (horse), an American thoroughbred race horse
Kia Forte, a mid-size sedan car
See also
Fort (disambiguation)
Fortes, a surname
|
Jim St. Andre is a retired U.S. soccer goalkeeper. He played professionally in the American Professional Soccer League, National Professional Soccer League and Major League Soccer.
College
St. Andre attended college and played men's soccer at the University of Vermont where over 4 seasons he registered 42 shutouts, 50 wins and a 0.66 career GAA, all school records. He was named to the All-New England list all four seasons with Vermont and was a 1987 third team All-American. He led all NCAA Division I goalkeepers in 1989 with a 0.44 GAA. In 2000, The University of Vermont inducted St Andre into its Athletic Hall of Fame.
Outdoor soccer
After graduating from Vermont, St. Andre trained with Malmö of the Swedish First Division, but was not offered a contract. When he returned to the U.S., he joined the Colorado Foxes of the American Professional Soccer League (APSL) for the 1990 season. While with the Foxes, he shared keeper duties with Mark Dodd. In 1992, they were the top two goalkeepers in the league. Dodd was tops with a 0.97 GAA and St. Andre second with a 1.22 GAA. That year the Foxes won the APSL championship, defeating the Tampa Bay Rowdies 1-0 in the title game. In 1993, St. Andre hit his peak with Colorado when he led the league with a 1.19 GAA. The team won the championship again, defeating the Los Angeles Salsa 3-1 in overtime. In 1994, St. Andre began the season with the Foxes, but transferred to the Fort Lauderdale Strikers. He finished the season with a cumulative 2.17 GAA. In 1995, St Andre played for the New York Centaurs of the A-League, the APSL with a new name. Despite playing for the league's worst team, he finished the season third in the league with a 1.43 GAA.
Indoor soccer
St Andre also played several indoor seasons. In 1991, he joined the Milwaukee Wave of the National Professional Soccer League (NPSL). That year the Wave failed to make the playoffs and St Andre had a league-worst GAA of 12.48. He then spent the 1992-1993 season with the Denver Avalanche. On March 8, 1995, the Wichita Wings signed him.
Major League Soccer
When Major League Soccer began preparations for its first season, it allocated various known players to each of the league's new teams. On February 5, 1996, MLS allocated St Andre to the Revolution. St Andre played only 15 games for the Revs, attaining a 1.81 GAA, putting him 10th out of 13 keepers in MLS that year. He won 6 games and had 2 shutouts. Fellow Revs keeper Aidan Heaney, on the other hand ranked 7th in the league with a 1.70 GAA in 19 games (8 wins and 4 shutouts). The Revs waived St. Andre on November 7, 1996.
St Andre played for the U.S. National Beach Soccer Team.
Media work
After retiring from playing professionally, St Andre joined ESPN as a studio commentator for the 1998 FIFA World Cup. He has also provided color commentary for Fox Sports and ESPN.
References
External links
University of Vermont Athletic Records
1968 births
Living people
American men's soccer players
American sports announcers
Men's association football goalkeepers
American Professional Soccer League players
Colorado Foxes players
Denver Avalanche players
Association football commentators
Fort Lauderdale Strikers (1988–1994) players
New York Centaurs players
New York Fever players
Major League Soccer players
New England Revolution players
National Professional Soccer League (1984–2001) players
Milwaukee Wave players
Wichita Wings (NPSL) players
Vermont Catamounts men's soccer players
|
```shell
#!/bin/bash
trap 'exit' ERR
curbranch="$(git branch --show-current)"
git reset --hard
git clean -dxf
git checkout gh-pages
git checkout --orphan tmp
git commit -m "vtk.js website"
git branch -D gh-pages
git branch -m gh-pages
git push -f origin gh-pages
git checkout "$curbranch"
```
|
```shell
#!/bin/bash
# credit: "path_to_url"
# under GPL license
##
# Tests if running on windows
#
# @return {bool} If running on windows
##
is_windows() {
command_exists "systeminfo"
}
##
# Add error message formatting to a string, and echo it.
#
# @param {string} message The string to add formatting to.
##
error_message() {
echo -en "\033[31mERROR\033[0m: $1"
}
##
# Add status message formatting to a string, and echo it.
#
# @param {string} message The string to add formatting to.
##
status_message() {
echo -en "\033[32mSTATUS\033[0m: $1"
}
##
# Add formatting to an action string.
#
# @param {string} message The string to add formatting to.
##
action_format() {
echo -en "\033[32m$1\033[0m"
}
##
# Check if the command exists as some sort of executable.
#
# The executable form of the command could be an alias, function, builtin, executable file or shell keyword.
#
# @param {string} command The command to check.
#
# @return {bool} Whether the command exists or not.
##
command_exists() {
type -t "$1" >/dev/null 2>&1
}
```
|
Sidi Othmane () is an arrondissement of southeastern Casablanca, in the Moulay Rachid district of the Casablanca-Settat region of Morocco. As of 2004 it had 76,983 inhabitants.
References
Arrondissements of Casablanca
|
Fryderyk () is a given name, and may refer to:
Fryderyk Chopin (1810–1849), a Polish piano composer
Fryderyk Getkant (1600–1666), a military engineer, artilleryman and cartographer of German origin
Fryderyk Scherfke (1909–1983), an interwar Polish soccer midfield player
Michał Fryderyk Czartoryski (1696–1775), a Polish szlachcic
See also
, a Polish sailing-ship launched in 1992 in the Dora Shipyard, Gdańsk, Poland
Federico
Fred
Freddie
Freddo
Freddy
Frédéric
Frederick (given name)
Frederico
Fredrik
Fredro
Friedrich
Polish masculine given names
Masculine given names
|
```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.
#include "paddle/phi/api/profiler/device_tracer.h"
#include <deque>
#include <forward_list>
#include <fstream>
#include <mutex> // NOLINT
#include <string>
#include <thread> // NOLINT
#include "glog/logging.h"
#include "paddle/common/flags.h"
#include "paddle/phi/core/enforce.h"
PHI_DECLARE_bool(enable_host_event_recorder_hook);
namespace phi {
// Used only by DeviceTracer
uint64_t GetThreadIdFromSystemThreadId(uint32_t id);
namespace {
// Tracking the nested block stacks of each thread.
#ifdef PADDLE_WITH_SW
// sw not supported thread_local
std::deque<int> block_id_stack;
std::deque<Event *> annotation_stack;
#else
// Tracking the nested event stacks.
thread_local std::deque<int> block_id_stack;
// Tracking the nested event stacks.
thread_local std::deque<Event *> annotation_stack;
#endif
// stack to store event such as pe and so on
static std::deque<Event *> main_thread_annotation_stack{};
static std::deque<std::string> main_thread_annotation_stack_name{};
std::map<uint32_t, uint64_t> system_thread_id_map;
std::mutex system_thread_id_map_mutex;
std::once_flag tracer_once_flag;
DeviceTracer *tracer = nullptr;
void PrintCuptiHint() {
static bool showed = false;
if (showed) return;
showed = true;
LOG(WARNING) << "Invalid timestamp occurred. Please try increasing the "
"FLAGS_multiple_of_cupti_buffer_size.";
}
} // namespace
#ifdef PADDLE_WITH_CUPTI
namespace {
// The experimental best performance is
// the same size with CUPTI device buffer size(8M)
uint64_t kBufSize = 1024 * 1024 * 8;
uint64_t kAlignSize = 8;
std::unordered_map<CUpti_CallbackId, std::string> runtime_cbid_str,
driver_cbid_str;
#define ALIGN_BUFFER(buffer, align) \
(((uintptr_t)(buffer) & ((align)-1)) \
? ((buffer) + (align) - ((uintptr_t)(buffer) & ((align)-1))) \
: (buffer))
#define CUPTI_CALL(call) \
do { \
CUptiResult _status = call; \
if (_status != CUPTI_SUCCESS) { \
const char *errstr; \
dynload::cuptiGetResultString(_status, &errstr); \
fprintf(stderr, \
"%s:%d: error: function %s failed with error %s.\n", \
__FILE__, \
__LINE__, \
#call, \
errstr); \
exit(-1); \
} \
} while (0)
std::string MemcpyKind(CUpti_ActivityMemcpyKind kind) {
switch (kind) {
case CUPTI_ACTIVITY_MEMCPY_KIND_HTOD:
return "MEMCPY_HtoD";
case CUPTI_ACTIVITY_MEMCPY_KIND_DTOH:
return "MEMCPY_DtoH";
case CUPTI_ACTIVITY_MEMCPY_KIND_HTOA:
return "MEMCPY_HtoA";
case CUPTI_ACTIVITY_MEMCPY_KIND_ATOH:
return "MEMCPY_AtoH";
case CUPTI_ACTIVITY_MEMCPY_KIND_ATOA:
return "MEMCPY_AtoA";
case CUPTI_ACTIVITY_MEMCPY_KIND_ATOD:
return "MEMCPY_AtoD";
case CUPTI_ACTIVITY_MEMCPY_KIND_DTOA:
return "MEMCPY_DtoA";
case CUPTI_ACTIVITY_MEMCPY_KIND_DTOD:
return "MEMCPY_DtoD";
case CUPTI_ACTIVITY_MEMCPY_KIND_HTOH:
return "MEMCPY_HtoH";
case CUPTI_ACTIVITY_MEMCPY_KIND_PTOP:
return "MEMCPY_PtoP";
case CUPTI_ACTIVITY_MEMCPY_KIND_FORCE_INT:
return "MEMCPY_FORCE_INT";
default:
break;
}
return "MEMCPY";
}
std::string DriverKind(CUpti_CallbackId cbid) {
auto iter = driver_cbid_str.find(cbid);
if (iter == driver_cbid_str.end())
return "Driver API " + std::to_string(cbid);
return iter->second;
}
std::string RuntimeKind(CUpti_CallbackId cbid) {
auto iter = runtime_cbid_str.find(cbid);
if (iter == runtime_cbid_str.end())
return "Runtime API " + std::to_string(cbid);
return iter->second;
}
void EnableActivity() {
// Device activity record is created when CUDA initializes, so we
// want to enable it before cuInit() or any CUDA runtime call.
CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_MEMCPY));
CUPTI_CALL(
dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_KERNEL));
CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_DRIVER));
CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_RUNTIME));
// We don't track these activities for now.
CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_MEMSET));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_OVERHEAD));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_DEVICE));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_CONTEXT));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_DRIVER));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_RUNTIME));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_NAME));
// CUPTI_CALL(dynload::cuptiActivityEnable(CUPTI_ACTIVITY_KIND_MARKER));
}
void DisableActivity() {
CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_MEMCPY));
CUPTI_CALL(
dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL));
// CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_DEVICE));
// Disable all other activity record kinds.
// CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_CONTEXT));
CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_DRIVER));
CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_RUNTIME));
CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_MEMSET));
// CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_NAME));
// CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_MARKER));
// CUPTI_CALL(dynload::cuptiActivityDisable(CUPTI_ACTIVITY_KIND_OVERHEAD));
}
void CUPTIAPI bufferRequested(uint8_t **buffer,
size_t *size,
size_t *maxNumRecords) {
uint8_t *buf = reinterpret_cast<uint8_t *>(malloc(kBufSize + kAlignSize));
*size = kBufSize;
*buffer = ALIGN_BUFFER(buf, kAlignSize);
*maxNumRecords = 0;
}
void CUPTIAPI bufferCompleted(CUcontext ctx,
uint32_t streamId,
uint8_t *buffer,
size_t size,
size_t validSize) {
static std::thread::id cupti_thread_id(0);
if (cupti_thread_id == std::thread::id(0))
cupti_thread_id = std::this_thread::get_id();
PADDLE_ENFORCE_EQ(
std::this_thread::get_id(),
cupti_thread_id,
errors::PermissionDenied(
"Only one thread is allowed to call bufferCompleted()."));
CUptiResult status;
CUpti_Activity *record = nullptr;
if (validSize > 0) {
do {
status = dynload::cuptiActivityGetNextRecord(buffer, validSize, &record);
if (status == CUPTI_SUCCESS) {
switch (record->kind) {
case CUPTI_ACTIVITY_KIND_KERNEL:
case CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL: {
#if CUDA_VERSION >= 9000
auto *kernel =
reinterpret_cast<const CUpti_ActivityKernel4 *>(record);
#else
auto *kernel =
reinterpret_cast<const CUpti_ActivityKernel3 *>(record);
#endif
tracer->AddKernelRecords(kernel->name,
kernel->start,
kernel->end,
kernel->deviceId,
kernel->streamId,
kernel->correlationId);
break;
}
case CUPTI_ACTIVITY_KIND_MEMCPY: {
auto *memcpy =
reinterpret_cast<const CUpti_ActivityMemcpy *>(record);
tracer->AddMemRecords(
MemcpyKind(
static_cast<CUpti_ActivityMemcpyKind>(memcpy->copyKind)),
memcpy->start,
memcpy->end,
memcpy->deviceId,
memcpy->streamId,
memcpy->correlationId,
memcpy->bytes);
break;
}
case CUPTI_ACTIVITY_KIND_MEMCPY2: {
auto *memcpy =
reinterpret_cast<const CUpti_ActivityMemcpy2 *>(record);
tracer->AddMemRecords(
MemcpyKind(
static_cast<CUpti_ActivityMemcpyKind>(memcpy->copyKind)),
memcpy->start,
memcpy->end,
memcpy->deviceId,
memcpy->streamId,
memcpy->correlationId,
memcpy->bytes);
break;
}
case CUPTI_ACTIVITY_KIND_MEMSET: {
auto *memset =
reinterpret_cast<const CUpti_ActivityMemset *>(record);
tracer->AddKernelRecords("MEMSET",
memset->start,
memset->end,
memset->deviceId,
memset->streamId,
memset->correlationId);
break;
}
case CUPTI_ACTIVITY_KIND_DRIVER: {
auto *api = reinterpret_cast<const CUpti_ActivityAPI *>(record);
if (api->start != 0 && api->end != 0) {
// -1 device id represents ActiveKind api call
tracer->AddActiveKindRecords(
DriverKind(api->cbid),
api->start,
api->end,
-1,
GetThreadIdFromSystemThreadId(api->threadId),
api->correlationId);
}
break;
}
case CUPTI_ACTIVITY_KIND_RUNTIME: {
auto *api = reinterpret_cast<const CUpti_ActivityAPI *>(record);
if (api->start != 0 && api->end != 0) {
// -1 device id represents ActiveKind api call
tracer->AddActiveKindRecords(
RuntimeKind(api->cbid),
api->start,
api->end,
-1,
GetThreadIdFromSystemThreadId(api->threadId),
api->correlationId);
}
break;
}
default: {
break;
}
}
} else if (status == CUPTI_ERROR_MAX_LIMIT_REACHED) {
// Seems not an error in this case.
break;
} else {
CUPTI_CALL(status);
}
} while (true);
size_t dropped;
CUPTI_CALL(
dynload::cuptiActivityGetNumDroppedRecords(ctx, streamId, &dropped));
if (dropped != 0) {
fprintf(stderr, "Dropped %u activity records\n", (unsigned int)dropped);
PrintCuptiHint();
}
}
free(buffer);
}
void initCuptiCbidStr();
} // namespace
#endif // PADDLE_WITH_CUPTI
class DeviceTracerImpl : public DeviceTracer {
public:
DeviceTracerImpl() : enabled_(false), start_ns_(0), end_ns_(0) {
#ifdef PADDLE_WITH_CUPTI
initCuptiCbidStr();
#endif
}
void AddAnnotation(uint32_t id, Event *event) override {
#ifdef PADDLE_WITH_SW
std::forward_list<std::pair<uint32_t, Event *>> *local_correlations_pairs =
nullptr;
#else
thread_local std::forward_list<std::pair<uint32_t, Event *>>
*local_correlations_pairs = nullptr;
#endif
if (local_correlations_pairs == nullptr) {
std::lock_guard<std::mutex> l(trace_mu_);
correlations_pairs.emplace_front();
local_correlations_pairs = &correlations_pairs.front();
}
local_correlations_pairs->push_front(std::make_pair(id, event));
}
void AddAnnotations(
const std::map<uint64_t, ThreadEvents> &thr_events) override {
for (auto &tmp : active_kind_records_) {
for (const ActiveKindRecord &r : tmp) {
auto iter = thr_events.find(r.thread_id);
if (iter == thr_events.end()) {
VLOG(10) << __func__ << " " << r.name
<< " Missing tid: " << r.thread_id;
continue;
}
const ThreadEvents &evts = iter->second;
auto evt_iter = evts.upper_bound(r.end_ns);
if (evt_iter == evts.end()) {
VLOG(10) << __func__ << " Missing Record " << r.name
<< " tid: " << r.thread_id << " end_ns: " << r.end_ns;
continue;
}
if (evt_iter != evts.begin()) {
auto prev_iter = std::prev(evt_iter);
if (prev_iter->first >= r.end_ns) {
evt_iter = prev_iter;
} else {
VLOG(10) << __func__ << " prev end_ns " << prev_iter->first
<< " end_ns: " << r.end_ns;
}
}
Event *evt = evt_iter->second.first;
uint64_t start_ns = evt_iter->second.second;
if (start_ns > r.start_ns) {
VLOG(10) << __func__ << " Mismatch Record " << r.name
<< " tid: " << r.thread_id << " start_ns: " << r.start_ns
<< " end_ns: " << r.end_ns << ", event " << evt->name()
<< " start_ns: " << start_ns;
continue;
}
VLOG(10) << __func__ << " tid: " << r.thread_id << " Add correlation "
<< r.correlation_id << "<->" << evt->name();
AddAnnotation(r.correlation_id, evt);
}
}
}
void AddCPURecords(const std::string &anno,
uint64_t start_ns,
uint64_t end_ns,
int64_t device_id,
uint64_t thread_id) override {
if (anno.empty()) {
VLOG(1) << "Empty timeline annotation.";
return;
}
#ifdef PADDLE_WITH_SW
std::forward_list<CPURecord> *local_cpu_records_ = nullptr;
#else
thread_local std::forward_list<CPURecord> *local_cpu_records_ = nullptr;
#endif
if (local_cpu_records_ == nullptr) {
std::lock_guard<std::mutex> l(trace_mu_);
cpu_records_.emplace_front();
local_cpu_records_ = &cpu_records_.front();
}
local_cpu_records_->push_front(
CPURecord{anno, start_ns, end_ns, device_id, thread_id});
}
void AddMemRecords(const std::string &name,
uint64_t start_ns,
uint64_t end_ns,
int64_t device_id,
int64_t stream_id,
uint32_t correlation_id,
uint64_t bytes) override {
// 0 means timestamp information could not be collected for the kernel.
if (start_ns == 0 || end_ns == 0 || start_ns == end_ns) {
VLOG(3) << name << " cannot be traced";
PrintCuptiHint();
return;
}
// NOTE(liangdun): lock is not needed, only one thread call this function.
mem_records_.push_front(MemRecord{
name, start_ns, end_ns, device_id, stream_id, correlation_id, bytes});
}
void AddMemInfoRecord(uint64_t start_ns,
uint64_t end_ns,
size_t bytes,
const Place &place,
const std::string &alloc_in,
const std::string &free_in,
uint64_t thread_id) override {
if (0 == start_ns || 0 == end_ns) {
VLOG(3) << alloc_in << ", " << free_in << " Cannot be traced.";
return;
}
#ifdef PADDLE_WITH_SW
std::forward_list<MemInfoRecord> *local_mem_info_record = nullptr;
#else
thread_local std::forward_list<MemInfoRecord> *local_mem_info_record =
nullptr;
#endif
if (local_mem_info_record == nullptr) {
std::lock_guard<std::mutex> l(trace_mu_);
mem_info_record_.emplace_front();
local_mem_info_record = &mem_info_record_.front();
}
local_mem_info_record->emplace_front(MemInfoRecord{
start_ns, end_ns, bytes, place, thread_id, alloc_in, free_in});
}
void AddActiveKindRecords(const std::string &anno,
uint64_t start_ns,
uint64_t end_ns,
int64_t device_id,
uint64_t thread_id,
uint32_t correlation_id) override {
if (anno.empty()) {
VLOG(1) << "Empty timeline annotation.";
return;
}
#ifdef PADDLE_WITH_SW
std::forward_list<ActiveKindRecord> *local_active_kind_records = nullptr;
#else
thread_local std::forward_list<ActiveKindRecord>
*local_active_kind_records = nullptr;
#endif
if (local_active_kind_records == nullptr) {
std::lock_guard<std::mutex> l(trace_mu_);
active_kind_records_.emplace_front();
local_active_kind_records = &active_kind_records_.front();
}
// lock is not needed, only one thread call this function.
local_active_kind_records->push_front(ActiveKindRecord{
anno, start_ns, end_ns, device_id, thread_id, correlation_id});
}
void AddKernelRecords(std::string name,
uint64_t start,
uint64_t end,
int64_t device_id,
int64_t stream_id,
uint32_t correlation_id) override {
// 0 means timestamp information could not be collected for the kernel.
if (start == 0 || end == 0 || start == end) {
VLOG(3) << correlation_id << " cannot be traced";
PrintCuptiHint();
return;
}
// NOTE(liangdun): lock is not needed, only one thread call this function.
kernel_records_.push_front(
KernelRecord{name, start, end, device_id, stream_id, correlation_id});
}
bool IsEnabled() override {
std::lock_guard<std::mutex> l(trace_mu_);
return enabled_;
}
void Enable() override {
std::lock_guard<std::mutex> l(trace_mu_);
if (enabled_) {
return;
}
#ifdef PADDLE_WITH_CUPTI
EnableActivity();
// Register callbacks for buffer requests and completed by CUPTI.
CUPTI_CALL(dynload::cuptiActivityRegisterCallbacks(bufferRequested,
bufferCompleted));
CUptiResult ret;
ret = dynload::cuptiSubscribe(
&subscriber_, static_cast<CUpti_CallbackFunc>(ApiCallback), this);
if (ret == CUPTI_ERROR_MAX_LIMIT_REACHED) {
fprintf(stderr, "CUPTI subcriber limit reached.\n");
} else if (ret != CUPTI_SUCCESS) {
fprintf(stderr, "Failed to create CUPTI subscriber.\n");
}
const std::vector<int> runtime_cbids {
CUPTI_RUNTIME_TRACE_CBID_cudaMemcpy_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaSetupArgument_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaMemcpyAsync_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaMemset_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaMemsetAsync_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaLaunch_v3020,
CUPTI_RUNTIME_TRACE_CBID_cudaLaunchKernel_v7000
#if CUDA_VERSION >= 9000
,
CUPTI_RUNTIME_TRACE_CBID_cudaLaunchCooperativeKernel_v9000,
your_sha256_hashv9000
#endif
};
const std::vector<int> driver_cbids{CUPTI_DRIVER_TRACE_CBID_cuLaunch,
CUPTI_DRIVER_TRACE_CBID_cuLaunchGrid,
CUPTI_DRIVER_TRACE_CBID_cuLaunchKernel};
for (auto cbid : runtime_cbids)
CUPTI_CALL(dynload::cuptiEnableCallback(
1, subscriber_, CUPTI_CB_DOMAIN_RUNTIME_API, cbid));
for (auto cbid : driver_cbids)
CUPTI_CALL(dynload::cuptiEnableCallback(
1, subscriber_, CUPTI_CB_DOMAIN_DRIVER_API, cbid));
CUPTI_CALL(dynload::cuptiGetTimestamp(&start_ns_));
#endif // PADDLE_WITH_CUPTI
enabled_ = true;
}
void Reset() override {
#ifdef PADDLE_WITH_CUPTI
CUPTI_CALL(
dynload::cuptiActivityFlushAll(CUPTI_ACTIVITY_FLAG_FLUSH_FORCED));
#endif
std::lock_guard<std::mutex> l(trace_mu_);
kernel_records_.clear();
mem_records_.clear();
correlations_.clear();
for (auto &tmp : correlations_pairs) tmp.clear();
for (auto &tmp : cpu_records_) tmp.clear();
for (auto &tmp : mem_info_record_) tmp.clear();
for (auto &tmp : active_kind_records_) tmp.clear();
}
void GenEventKernelCudaElapsedTime() override {
#ifdef PADDLE_WITH_CUPTI
if (correlations_.empty())
for (auto &tmp : correlations_pairs)
for (auto &pair : tmp) correlations_[pair.first] = pair.second;
for (const KernelRecord &r : kernel_records_) {
auto c = correlations_.find(r.correlation_id);
if (c != correlations_.end() && c->second != nullptr) {
Event *e = c->second;
Event *parent = e->parent();
while (parent) {
parent->AddCudaElapsedTime(r.start_ns, r.end_ns); // NOLINT
parent = parent->parent();
}
e->AddCudaElapsedTime(r.start_ns, r.end_ns); // NOLINT
}
}
for (const auto &r : mem_records_) {
auto c = correlations_.find(r.correlation_id);
if (c != correlations_.end() && c->second != nullptr) {
Event *e = c->second;
Event *parent = e->parent();
while (parent) {
parent->AddCudaElapsedTime(r.start_ns, r.end_ns); // NOLINT
parent = parent->parent();
}
e->AddCudaElapsedTime(r.start_ns, r.end_ns); // NOLINT
}
}
#endif
}
proto::Profile GenProfile(const std::string &profile_path) override {
proto::Profile profile_pb = this->GetProfile();
std::ofstream profile_f;
profile_f.open(profile_path,
std::ios::out | std::ios::trunc | std::ios::binary);
profile_pb.SerializeToOstream(&profile_f);
profile_f.close();
return profile_pb;
}
proto::Profile GetProfile() override {
int miss = 0, find = 0;
std::lock_guard<std::mutex> l(trace_mu_);
proto::Profile profile_pb;
profile_pb.set_start_ns(start_ns_);
profile_pb.set_end_ns(end_ns_);
if (correlations_.empty()) {
for (auto &tmp : correlations_pairs) {
for (auto &pair : tmp) correlations_[pair.first] = pair.second;
}
}
for (const KernelRecord &r : kernel_records_) {
auto *event = profile_pb.add_events();
event->set_type(proto::Event::GPUKernel);
auto c = correlations_.find(r.correlation_id);
if (c != correlations_.end() && c->second != nullptr) {
event->set_name(c->second->name());
event->set_detail_info(c->second->attr());
find++;
} else {
VLOG(10) << __func__ << " Missing Kernel Event: " + r.name;
miss++;
event->set_name(r.name);
}
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_sub_device_id(r.stream_id);
event->set_device_id(r.device_id);
}
VLOG(1) << __func__ << " KernelRecord event miss: " << miss
<< " find: " << find;
for (auto &tmp : cpu_records_) {
for (const CPURecord &r : tmp) {
auto *event = profile_pb.add_events();
event->set_type(proto::Event::CPU);
event->set_name(r.name);
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_sub_device_id(r.thread_id);
event->set_device_id(r.device_id);
}
}
for (auto &tmp : active_kind_records_) {
for (const ActiveKindRecord &r : tmp) {
auto *event = profile_pb.add_events();
event->set_type(proto::Event::CPU);
auto c = correlations_.find(r.correlation_id);
if (c != correlations_.end() && c->second != nullptr) {
event->set_name(c->second->name());
event->set_detail_info(r.name);
} else {
event->set_name(r.name);
}
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_sub_device_id(r.thread_id);
event->set_device_id(r.device_id);
}
}
miss = find = 0;
for (const MemRecord &r : mem_records_) {
auto *event = profile_pb.add_events();
event->set_type(proto::Event::GPUKernel);
auto c = correlations_.find(r.correlation_id);
if (c != correlations_.end() && c->second != nullptr) {
event->set_name(c->second->name());
event->set_detail_info(r.name);
find++;
} else {
miss++;
event->set_name(r.name);
}
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_sub_device_id(r.stream_id);
event->set_device_id(r.device_id);
event->mutable_memcopy()->set_bytes(r.bytes);
}
VLOG(1) << __func__ << " MemRecord event miss: " << miss
<< " find: " << find;
for (auto &tmp : mem_info_record_) {
for (const auto &r : tmp) {
auto *event = profile_pb.add_mem_events();
event->set_device_id(0);
if (r.place.GetType() == phi::AllocationType::CPU) {
event->set_place(proto::MemEvent::CPUPlace);
} else if (r.place.GetType() == phi::AllocationType::GPU) {
event->set_place(proto::MemEvent::CUDAPlace);
event->set_device_id(r.place.GetDeviceId());
} else if (r.place.GetType() == phi::AllocationType::GPUPINNED) {
event->set_place(proto::MemEvent::CUDAPinnedPlace);
} else {
PADDLE_THROW(
errors::Unimplemented("The current place is not supported."));
}
event->set_alloc_in(r.alloc_in);
event->set_free_in(r.free_in);
event->set_start_ns(r.start_ns);
event->set_end_ns(r.end_ns);
event->set_bytes(r.bytes);
event->set_thread_id(r.thread_id);
}
}
return profile_pb;
}
void Disable() override {
#ifdef PADDLE_WITH_CUPTI
// flush might cause additional calls to DeviceTracker.
CUPTI_CALL(
dynload::cuptiActivityFlushAll(CUPTI_ACTIVITY_FLAG_FLUSH_FORCED));
#endif // PADDLE_WITH_CUPTI
std::lock_guard<std::mutex> l(trace_mu_);
#ifdef PADDLE_WITH_CUPTI
DisableActivity();
CUPTI_CALL(dynload::cuptiUnsubscribe(subscriber_));
CUPTI_CALL(dynload::cuptiGetTimestamp(&end_ns_));
#endif // PADDLE_WITH_CUPTI
enabled_ = false;
}
private:
#ifdef PADDLE_WITH_CUPTI
static void CUPTIAPI ApiCallback(void *userdata,
CUpti_CallbackDomain domain,
CUpti_CallbackId cbid,
const void *cbdata) {
if (LIKELY(FLAGS_enable_host_event_recorder_hook)) {
return;
}
auto *cbInfo = reinterpret_cast<const CUpti_CallbackData *>(cbdata);
DeviceTracerImpl *tracer = reinterpret_cast<DeviceTracerImpl *>(userdata);
if (cbInfo->callbackSite == CUPTI_API_ENTER) {
Event *event = CurAnnotation();
tracer->AddAnnotation(cbInfo->correlationId, event);
}
}
CUpti_SubscriberHandle subscriber_;
#endif // PADDLE_WITH_CUPTI
std::mutex trace_mu_;
bool enabled_;
uint64_t start_ns_;
uint64_t end_ns_;
std::forward_list<KernelRecord> kernel_records_;
std::forward_list<MemRecord> mem_records_;
std::forward_list<std::forward_list<CPURecord>> cpu_records_;
std::forward_list<std::forward_list<MemInfoRecord>> mem_info_record_;
std::forward_list<std::forward_list<ActiveKindRecord>> active_kind_records_;
std::forward_list<std::forward_list<std::pair<uint32_t, Event *>>>
correlations_pairs;
std::unordered_map<uint32_t, Event *> correlations_;
};
void CreateTracer(DeviceTracer **t) { *t = new DeviceTracerImpl(); }
DeviceTracer *GetDeviceTracer() {
std::call_once(tracer_once_flag, CreateTracer, &tracer);
return tracer;
}
// In order to record PE time, we add main_thread_annotation_stack
// for all event between PE run, we treat it as PE's child Event,
// so when event is not in same thread of PE event, we need add
// father event(PE::run event) for this event
void SetCurAnnotation(Event *event) {
if (!annotation_stack.empty()) {
event->set_parent(annotation_stack.back());
event->set_name(annotation_stack.back()->name() + "/" + event->name());
}
if (annotation_stack.empty() && !main_thread_annotation_stack.empty() &&
main_thread_annotation_stack.back()->thread_id() != event->thread_id()) {
event->set_parent(main_thread_annotation_stack.back());
event->set_name(main_thread_annotation_stack.back()->name() + "/" +
event->name());
}
annotation_stack.push_back(event);
if (event->role() == EventRole::kSpecial) {
std::string name = event->name();
if (!main_thread_annotation_stack_name.empty()) {
name = main_thread_annotation_stack_name.back() + "/" + event->name();
}
main_thread_annotation_stack_name.push_back(name);
main_thread_annotation_stack.push_back(event);
}
}
void ClearCurAnnotation() {
if (!main_thread_annotation_stack.empty()) {
std::string name = annotation_stack.back()->name();
std::string main_name = main_thread_annotation_stack.back()->name();
int main_name_len = static_cast<int>(main_name.length());
int name_len = static_cast<int>(name.length());
int prefix_len = main_name_len - name_len;
if ((prefix_len > 0 && main_name.at(prefix_len - 1) == '/' &&
name == main_name.substr(prefix_len, name_len)) ||
(name == main_name)) {
main_thread_annotation_stack_name.pop_back();
main_thread_annotation_stack.pop_back();
}
}
annotation_stack.pop_back();
}
Event *CurAnnotation() {
if (annotation_stack.empty()) return nullptr;
return annotation_stack.back();
}
std::string CurAnnotationName() {
if (annotation_stack.empty()) return "Unknown";
return annotation_stack.back()->name();
}
void SetCurBlock(int block_id) { block_id_stack.push_back(block_id); }
void ClearCurBlock() { block_id_stack.pop_back(); }
int BlockDepth() { return static_cast<int>(block_id_stack.size()); }
uint32_t GetCurSystemThreadId() {
std::stringstream ss;
ss << std::this_thread::get_id();
uint32_t id = static_cast<uint32_t>(std::stoull(ss.str()));
return id;
}
void RecordCurThreadId(uint64_t id) {
std::lock_guard<std::mutex> lock(system_thread_id_map_mutex);
auto gid = GetCurSystemThreadId();
system_thread_id_map[gid] = id;
}
uint64_t GetThreadIdFromSystemThreadId(uint32_t id) {
auto it = system_thread_id_map.find(id);
if (it != system_thread_id_map.end()) return it->second;
// return origin id if no event is recorded in this thread.
return static_cast<int32_t>(id);
}
#ifdef PADDLE_WITH_CUPTI
namespace {
void initCuptiCbidStr() {
static bool called = false;
if (called) return;
called = true;
#define REGISTER_RUNTIME_CBID_STR(cbid) \
runtime_cbid_str[CUPTI_RUNTIME_TRACE_CBID_##cbid] = #cbid
REGISTER_RUNTIME_CBID_STR(cudaBindTexture_v3020);
REGISTER_RUNTIME_CBID_STR(cudaConfigureCall_v3020);
REGISTER_RUNTIME_CBID_STR(cudaDeviceGetAttribute_v5000);
REGISTER_RUNTIME_CBID_STR(cudaDeviceGetStreamPriorityRange_v5050);
REGISTER_RUNTIME_CBID_STR(cudaDeviceSynchronize_v3020);
REGISTER_RUNTIME_CBID_STR(cudaDriverGetVersion_v3020);
REGISTER_RUNTIME_CBID_STR(cudaEventCreateWithFlags_v3020);
REGISTER_RUNTIME_CBID_STR(cudaEventDestroy_v3020);
REGISTER_RUNTIME_CBID_STR(cudaEventDestroy_v3020);
REGISTER_RUNTIME_CBID_STR(cudaEventQuery_v3020);
REGISTER_RUNTIME_CBID_STR(cudaEventRecord_v3020);
REGISTER_RUNTIME_CBID_STR(cudaFreeHost_v3020);
REGISTER_RUNTIME_CBID_STR(cudaFree_v3020);
REGISTER_RUNTIME_CBID_STR(cudaFuncGetAttributes_v3020);
REGISTER_RUNTIME_CBID_STR(cudaGetDeviceCount_v3020);
REGISTER_RUNTIME_CBID_STR(cudaGetDeviceProperties_v3020);
REGISTER_RUNTIME_CBID_STR(cudaGetDevice_v3020);
REGISTER_RUNTIME_CBID_STR(cudaGetErrorString_v3020);
REGISTER_RUNTIME_CBID_STR(cudaGetLastError_v3020);
REGISTER_RUNTIME_CBID_STR(cudaHostAlloc_v3020);
REGISTER_RUNTIME_CBID_STR(cudaHostGetDevicePointer_v3020);
REGISTER_RUNTIME_CBID_STR(cudaLaunchKernel_v7000);
REGISTER_RUNTIME_CBID_STR(cudaMallocHost_v3020);
REGISTER_RUNTIME_CBID_STR(cudaMalloc_v3020);
REGISTER_RUNTIME_CBID_STR(cudaMemcpyAsync_v3020);
REGISTER_RUNTIME_CBID_STR(cudaMemcpy_v3020);
REGISTER_RUNTIME_CBID_STR(cudaMemsetAsync_v3020);
REGISTER_RUNTIME_CBID_STR(cudaMemset_v3020);
REGISTER_RUNTIME_CBID_STR(
cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags_v7000);
REGISTER_RUNTIME_CBID_STR(cudaPeekAtLastError_v3020);
REGISTER_RUNTIME_CBID_STR(cudaRuntimeGetVersion_v3020);
REGISTER_RUNTIME_CBID_STR(cudaSetDevice_v3020);
REGISTER_RUNTIME_CBID_STR(cudaStreamCreate_v3020);
REGISTER_RUNTIME_CBID_STR(cudaStreamCreateWithFlags_v5000);
REGISTER_RUNTIME_CBID_STR(cudaStreamCreateWithPriority_v5050);
REGISTER_RUNTIME_CBID_STR(cudaStreamDestroy_v5050);
REGISTER_RUNTIME_CBID_STR(cudaStreamSynchronize_v3020);
REGISTER_RUNTIME_CBID_STR(cudaStreamWaitEvent_v3020);
REGISTER_RUNTIME_CBID_STR(cudaUnbindTexture_v3020);
REGISTER_RUNTIME_CBID_STR(cudaSetupArgument_v3020);
REGISTER_RUNTIME_CBID_STR(cudaLaunch_v3020);
REGISTER_RUNTIME_CBID_STR(cudaDeviceGetPCIBusId_v4010);
#if CUDA_VERSION >= 9000
REGISTER_RUNTIME_CBID_STR(cudaLaunchCooperativeKernel_v9000);
REGISTER_RUNTIME_CBID_STR(cudaLaunchCooperativeKernelMultiDevice_v9000);
#endif
#undef REGISTER_RUNTIME_CBID_STR
}
} // namespace
#endif // PADDLE_WITH_CUPTI
} // namespace phi
```
|
Beyrède-Jumet (Gascon: Veireda e Jumet) is a former commune in the Hautes-Pyrénées department in southwestern France. On 1 January 2019, it was merged into the new commune Beyrède-Jumet-Camous.
Population
See also
Communes of the Hautes-Pyrénées department
References
Former communes of Hautes-Pyrénées
|
```go
package main
import (
"github.com/GoesToEleven/golang-web-dev/000_temp/44_class/13_interface/cmd"
"github.com/GoesToEleven/golang-web-dev/000_temp/44_class/13_interface/memcache"
)
func main() {
c := &memcache.MemCache{
M: map[string]interface{}{},
}
cmd.CacheUser(c, "Bob", "Hello")
cmd.CacheUser(c, "Bob", "Goodbye")
}
```
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
package com.netflix.hollow.api.perfapi;
import com.netflix.hollow.core.read.dataaccess.HollowDataAccess;
import com.netflix.hollow.core.read.dataaccess.HollowListTypeDataAccess;
import com.netflix.hollow.core.read.dataaccess.missing.HollowListMissingDataAccess;
import com.netflix.hollow.core.read.iterator.HollowOrdinalIterator;
import java.util.List;
public class HollowListTypePerfAPI extends HollowTypePerfAPI {
private final HollowListTypeDataAccess typeAccess;
final long elementMaskedTypeIdx;
public HollowListTypePerfAPI(HollowDataAccess dataAccess, String typeName, HollowPerformanceAPI api) {
super(typeName, api);
HollowListTypeDataAccess typeAccess = (HollowListTypeDataAccess) dataAccess.getTypeDataAccess(typeName);
int elementTypeIdx = typeAccess == null ? Ref.TYPE_ABSENT : api.types.getIdx(typeAccess.getSchema().getElementType());
this.elementMaskedTypeIdx = Ref.toTypeMasked(elementTypeIdx);
if(typeAccess == null)
typeAccess = new HollowListMissingDataAccess(dataAccess, typeName);
this.typeAccess = typeAccess;
}
public int size(long ref) {
return typeAccess.size(ordinal(ref));
}
public long get(long ref, int idx) {
int ordinal = typeAccess.getElementOrdinal(ordinal(ref), idx);
return Ref.toRefWithTypeMasked(elementMaskedTypeIdx, ordinal);
}
public HollowPerfReferenceIterator iterator(long ref) {
HollowOrdinalIterator iter = typeAccess.ordinalIterator(ordinal(ref));
return new HollowPerfReferenceIterator(iter, elementMaskedTypeIdx);
}
public <T> List<T> backedList(long ref, POJOInstantiator<T> instantiator) {
return new HollowPerfBackedList<>(this, ordinal(ref), instantiator);
}
public HollowListTypeDataAccess typeAccess() {
return typeAccess;
}
}
```
|
```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.
*/
import iterLast = require( './index' );
/**
* Returns an iterator protocol-compliant object.
*
* @returns iterator protocol-compliant object
*/
function iterator() {
return {
'next': next
};
/**
* Implements the iterator protocol `next` method.
*
* @returns iterator protocol-compliant object
*/
function next() {
return {
'value': true,
'done': false
};
}
}
// TESTS //
// The function returns a value...
{
iterLast( iterator() ); // $ExpectType any
}
// The compiler throws an error if the function is provided a value other than an iterator protocol-compliant object...
{
iterLast( '5' ); // $ExpectError
iterLast( 5 ); // $ExpectError
iterLast( true ); // $ExpectError
iterLast( false ); // $ExpectError
iterLast( null ); // $ExpectError
iterLast( undefined ); // $ExpectError
iterLast( [] ); // $ExpectError
iterLast( {} ); // $ExpectError
iterLast( ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided insufficient arguments...
{
iterLast(); // $ExpectError
}
```
|
```swift
//
// AuthManager.swift
// Proton Pass - Created on 20/11/2023.
//
// This file is part of Proton Pass.
//
// Proton Pass is free software: you can redistribute it and/or modify
// (at your option) any later version.
//
// Proton Pass 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 Proton Pass. If not, see path_to_url
import Foundation
import ProtonCoreAuthentication
import ProtonCoreLog
import ProtonCoreNetworking
import ProtonCoreServices
import ProtonCoreUtilities
public protocol AuthManagerProtocol: AuthDelegate {
func setUpDelegate(_ delegate: any AuthHelperDelegate,
callingItOn executor: CompletionBlockExecutor?)
}
public final class AuthManager: AuthManagerProtocol {
private let credentialProvider: Atomic<any CredentialProvider>
public private(set) weak var delegate: (any AuthHelperDelegate)?
// swiftlint:disable:next identifier_name
public weak var authSessionInvalidatedDelegateForLoginAndSignup: (any AuthSessionInvalidatedDelegate)?
private var delegateExecutor: CompletionBlockExecutor?
public init(credentialProvider: any CredentialProvider) {
self.credentialProvider = .init(credentialProvider)
}
public func setUpDelegate(_ delegate: any AuthHelperDelegate,
callingItOn executor: CompletionBlockExecutor? = nil) {
if let executor {
delegateExecutor = executor
} else {
let dispatchQueue = DispatchQueue(label: "me.proton.core.auth-helper.default", qos: .userInitiated)
delegateExecutor = .asyncExecutor(dispatchQueue: dispatchQueue)
}
self.delegate = delegate
}
public func credential(sessionUID: String) -> Credential? {
credentialProvider.transform { credentialProvider in
guard let authCredential = credentialProvider.getCredential() else {
return nil
}
guard authCredential.sessionID == sessionUID else {
PMLog.error("Asked for wrong credentials. It's a programmers error and should be investigated")
return nil
}
return Credential(authCredential)
}
}
public func authCredential(sessionUID: String) -> AuthCredential? {
credentialProvider.transform { credentialProvider in
guard let authCredential = credentialProvider.getCredential() else {
return nil
}
guard authCredential.sessionID == sessionUID else {
PMLog.error("Asked for wrong credentials. It's a programmers error and should be investigated")
return nil
}
return authCredential
}
}
public func onUpdate(credential: Credential, sessionUID: String) {
credentialProvider.mutate { credentialProviderUpdated in
guard let authCredential = credentialProviderUpdated.getCredential() else {
credentialProviderUpdated.setCredential(AuthCredential(credential))
return
}
guard authCredential.sessionID == sessionUID else {
PMLog
.error("Asked for updating credentials of a wrong session. It should be investigated")
return
}
// we don't nil out the key and password to avoid loosing this information unintentionaly
let updatedAuth = authCredential.updatedKeepingKeyAndPasswordDataIntact(credential:
credential)
credentialProviderUpdated.setCredential(updatedAuth)
guard let delegate, let delegateExecutor else { return }
delegateExecutor.execute {
delegate.credentialsWereUpdated(authCredential: updatedAuth,
credential: credential,
for: sessionUID)
}
}
}
public func onSessionObtaining(credential: Credential) {
credentialProvider.mutate { credentialProvider in
let sessionUID = credential.UID
let newCredentials = AuthCredential(credential)
credentialProvider.setCredential(newCredentials)
guard let delegate, let delegateExecutor else { return }
delegateExecutor.execute {
delegate.credentialsWereUpdated(authCredential: newCredentials,
credential: credential,
for: sessionUID)
}
}
}
public func onAdditionalCredentialsInfoObtained(sessionUID: String,
password: String?,
salt: String?,
privateKey: String?) {
credentialProvider.mutate { credentialProvider in
guard let authCredential = credentialProvider.getCredential() else {
return
}
guard authCredential.sessionID == sessionUID else {
PMLog
.error("Asked for updating credentials of a wrong session. It should be investigated")
return
}
if let password {
authCredential.update(password: password)
}
let saltToUpdate = salt ?? authCredential.passwordKeySalt
let privateKeyToUpdate = privateKey ?? authCredential.privateKey
authCredential.update(salt: saltToUpdate, privateKey: privateKeyToUpdate)
credentialProvider.setCredential(authCredential)
guard let delegate, let delegateExecutor else { return }
delegateExecutor.execute {
delegate.credentialsWereUpdated(authCredential: authCredential,
credential: Credential(authCredential),
for: sessionUID)
}
}
}
public func onAuthenticatedSessionInvalidated(sessionUID: String) {
credentialProvider.mutate { credentialProvider in
guard let authCredential = credentialProvider.getCredential() else {
return
}
guard authCredential.sessionID == sessionUID else {
PMLog
.error("Asked for logout of wrong session. It should be investigated")
return
}
credentialProvider.setCredential(nil)
delegateExecutor?.execute { [weak self] in
guard let self else {
return
}
delegate?.sessionWasInvalidated(for: sessionUID, isAuthenticatedSession: true)
}
authSessionInvalidatedDelegateForLoginAndSignup?.sessionWasInvalidated(for: sessionUID,
isAuthenticatedSession: true)
}
}
public func onUnauthenticatedSessionInvalidated(sessionUID: String) {
credentialProvider.mutate { credentialProvider in
guard let authCredential = credentialProvider.getCredential() else {
return
}
guard authCredential.sessionID == sessionUID else {
PMLog
.error("Asked for erasing the credentials of a wrong session. It should be investigated")
return
}
credentialProvider.setCredential(nil)
delegateExecutor?.execute { [weak self] in
guard let self else {
return
}
delegate?.sessionWasInvalidated(for: sessionUID, isAuthenticatedSession: false)
}
authSessionInvalidatedDelegateForLoginAndSignup?.sessionWasInvalidated(for: sessionUID,
isAuthenticatedSession: false)
}
}
}
```
|
```forth
*> \brief \b DLASY2 solves the Sylvester matrix equation where the matrices are of order 1 or 2.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* path_to_url
*
*> \htmlonly
*> Download DLASY2 + dependencies
*> <a href="path_to_url">
*> [TGZ]</a>
*> <a href="path_to_url">
*> [ZIP]</a>
*> <a href="path_to_url">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
*
* SUBROUTINE DLASY2( LTRANL, LTRANR, ISGN, N1, N2, TL, LDTL, TR,
* LDTR, B, LDB, SCALE, X, LDX, XNORM, INFO )
*
* .. Scalar Arguments ..
* LOGICAL LTRANL, LTRANR
* INTEGER INFO, ISGN, LDB, LDTL, LDTR, LDX, N1, N2
* DOUBLE PRECISION SCALE, XNORM
* ..
* .. Array Arguments ..
* DOUBLE PRECISION B( LDB, * ), TL( LDTL, * ), TR( LDTR, * ),
* $ X( LDX, * )
* ..
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> DLASY2 solves for the N1 by N2 matrix X, 1 <= N1,N2 <= 2, in
*>
*> op(TL)*X + ISGN*X*op(TR) = SCALE*B,
*>
*> where TL is N1 by N1, TR is N2 by N2, B is N1 by N2, and ISGN = 1 or
*> -1. op(T) = T or T**T, where T**T denotes the transpose of T.
*> \endverbatim
*
* Arguments:
* ==========
*
*> \param[in] LTRANL
*> \verbatim
*> LTRANL is LOGICAL
*> On entry, LTRANL specifies the op(TL):
*> = .FALSE., op(TL) = TL,
*> = .TRUE., op(TL) = TL**T.
*> \endverbatim
*>
*> \param[in] LTRANR
*> \verbatim
*> LTRANR is LOGICAL
*> On entry, LTRANR specifies the op(TR):
*> = .FALSE., op(TR) = TR,
*> = .TRUE., op(TR) = TR**T.
*> \endverbatim
*>
*> \param[in] ISGN
*> \verbatim
*> ISGN is INTEGER
*> On entry, ISGN specifies the sign of the equation
*> as described before. ISGN may only be 1 or -1.
*> \endverbatim
*>
*> \param[in] N1
*> \verbatim
*> N1 is INTEGER
*> On entry, N1 specifies the order of matrix TL.
*> N1 may only be 0, 1 or 2.
*> \endverbatim
*>
*> \param[in] N2
*> \verbatim
*> N2 is INTEGER
*> On entry, N2 specifies the order of matrix TR.
*> N2 may only be 0, 1 or 2.
*> \endverbatim
*>
*> \param[in] TL
*> \verbatim
*> TL is DOUBLE PRECISION array, dimension (LDTL,2)
*> On entry, TL contains an N1 by N1 matrix.
*> \endverbatim
*>
*> \param[in] LDTL
*> \verbatim
*> LDTL is INTEGER
*> The leading dimension of the matrix TL. LDTL >= max(1,N1).
*> \endverbatim
*>
*> \param[in] TR
*> \verbatim
*> TR is DOUBLE PRECISION array, dimension (LDTR,2)
*> On entry, TR contains an N2 by N2 matrix.
*> \endverbatim
*>
*> \param[in] LDTR
*> \verbatim
*> LDTR is INTEGER
*> The leading dimension of the matrix TR. LDTR >= max(1,N2).
*> \endverbatim
*>
*> \param[in] B
*> \verbatim
*> B is DOUBLE PRECISION array, dimension (LDB,2)
*> On entry, the N1 by N2 matrix B contains the right-hand
*> side of the equation.
*> \endverbatim
*>
*> \param[in] LDB
*> \verbatim
*> LDB is INTEGER
*> The leading dimension of the matrix B. LDB >= max(1,N1).
*> \endverbatim
*>
*> \param[out] SCALE
*> \verbatim
*> SCALE is DOUBLE PRECISION
*> On exit, SCALE contains the scale factor. SCALE is chosen
*> less than or equal to 1 to prevent the solution overflowing.
*> \endverbatim
*>
*> \param[out] X
*> \verbatim
*> X is DOUBLE PRECISION array, dimension (LDX,2)
*> On exit, X contains the N1 by N2 solution.
*> \endverbatim
*>
*> \param[in] LDX
*> \verbatim
*> LDX is INTEGER
*> The leading dimension of the matrix X. LDX >= max(1,N1).
*> \endverbatim
*>
*> \param[out] XNORM
*> \verbatim
*> XNORM is DOUBLE PRECISION
*> On exit, XNORM is the infinity-norm of the solution.
*> \endverbatim
*>
*> \param[out] INFO
*> \verbatim
*> INFO is INTEGER
*> On exit, INFO is set to
*> 0: successful exit.
*> 1: TL and TR have too close eigenvalues, so TL or
*> TR is perturbed to get a nonsingular equation.
*> NOTE: In the interests of speed, this routine does not
*> check the inputs for errors.
*> \endverbatim
*
* Authors:
* ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup lasy2
*
* =====================================================================
SUBROUTINE DLASY2( LTRANL, LTRANR, ISGN, N1, N2, TL, LDTL, TR,
$ LDTR, B, LDB, SCALE, X, LDX, XNORM, INFO )
*
* -- LAPACK auxiliary routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
*
* .. Scalar Arguments ..
LOGICAL LTRANL, LTRANR
INTEGER INFO, ISGN, LDB, LDTL, LDTR, LDX, N1, N2
DOUBLE PRECISION SCALE, XNORM
* ..
* .. Array Arguments ..
DOUBLE PRECISION B( LDB, * ), TL( LDTL, * ), TR( LDTR, * ),
$ X( LDX, * )
* ..
*
* =====================================================================
*
* .. Parameters ..
DOUBLE PRECISION ZERO, ONE
PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0 )
DOUBLE PRECISION TWO, HALF, EIGHT
PARAMETER ( TWO = 2.0D+0, HALF = 0.5D+0, EIGHT = 8.0D+0 )
* ..
* .. Local Scalars ..
LOGICAL BSWAP, XSWAP
INTEGER I, IP, IPIV, IPSV, J, JP, JPSV, K
DOUBLE PRECISION BET, EPS, GAM, L21, SGN, SMIN, SMLNUM, TAU1,
$ TEMP, U11, U12, U22, XMAX
* ..
* .. Local Arrays ..
LOGICAL BSWPIV( 4 ), XSWPIV( 4 )
INTEGER JPIV( 4 ), LOCL21( 4 ), LOCU12( 4 ),
$ LOCU22( 4 )
DOUBLE PRECISION BTMP( 4 ), T16( 4, 4 ), TMP( 4 ), X2( 2 )
* ..
* .. External Functions ..
INTEGER IDAMAX
DOUBLE PRECISION DLAMCH
EXTERNAL IDAMAX, DLAMCH
* ..
* .. External Subroutines ..
EXTERNAL DCOPY, DSWAP
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, MAX
* ..
* .. Data statements ..
DATA LOCU12 / 3, 4, 1, 2 / , LOCL21 / 2, 1, 4, 3 / ,
$ LOCU22 / 4, 3, 2, 1 /
DATA XSWPIV / .FALSE., .FALSE., .TRUE., .TRUE. /
DATA BSWPIV / .FALSE., .TRUE., .FALSE., .TRUE. /
* ..
* .. Executable Statements ..
*
* Do not check the input parameters for errors
*
INFO = 0
*
* Quick return if possible
*
IF( N1.EQ.0 .OR. N2.EQ.0 )
$ RETURN
*
* Set constants to control overflow
*
EPS = DLAMCH( 'P' )
SMLNUM = DLAMCH( 'S' ) / EPS
SGN = ISGN
*
K = N1 + N1 + N2 - 2
GO TO ( 10, 20, 30, 50 )K
*
* 1 by 1: TL11*X + SGN*X*TR11 = B11
*
10 CONTINUE
TAU1 = TL( 1, 1 ) + SGN*TR( 1, 1 )
BET = ABS( TAU1 )
IF( BET.LE.SMLNUM ) THEN
TAU1 = SMLNUM
BET = SMLNUM
INFO = 1
END IF
*
SCALE = ONE
GAM = ABS( B( 1, 1 ) )
IF( SMLNUM*GAM.GT.BET )
$ SCALE = ONE / GAM
*
X( 1, 1 ) = ( B( 1, 1 )*SCALE ) / TAU1
XNORM = ABS( X( 1, 1 ) )
RETURN
*
* 1 by 2:
* TL11*[X11 X12] + ISGN*[X11 X12]*op[TR11 TR12] = [B11 B12]
* [TR21 TR22]
*
20 CONTINUE
*
SMIN = MAX( EPS*MAX( ABS( TL( 1, 1 ) ), ABS( TR( 1, 1 ) ),
$ ABS( TR( 1, 2 ) ), ABS( TR( 2, 1 ) ), ABS( TR( 2, 2 ) ) ),
$ SMLNUM )
TMP( 1 ) = TL( 1, 1 ) + SGN*TR( 1, 1 )
TMP( 4 ) = TL( 1, 1 ) + SGN*TR( 2, 2 )
IF( LTRANR ) THEN
TMP( 2 ) = SGN*TR( 2, 1 )
TMP( 3 ) = SGN*TR( 1, 2 )
ELSE
TMP( 2 ) = SGN*TR( 1, 2 )
TMP( 3 ) = SGN*TR( 2, 1 )
END IF
BTMP( 1 ) = B( 1, 1 )
BTMP( 2 ) = B( 1, 2 )
GO TO 40
*
* 2 by 1:
* op[TL11 TL12]*[X11] + ISGN* [X11]*TR11 = [B11]
* [TL21 TL22] [X21] [X21] [B21]
*
30 CONTINUE
SMIN = MAX( EPS*MAX( ABS( TR( 1, 1 ) ), ABS( TL( 1, 1 ) ),
$ ABS( TL( 1, 2 ) ), ABS( TL( 2, 1 ) ), ABS( TL( 2, 2 ) ) ),
$ SMLNUM )
TMP( 1 ) = TL( 1, 1 ) + SGN*TR( 1, 1 )
TMP( 4 ) = TL( 2, 2 ) + SGN*TR( 1, 1 )
IF( LTRANL ) THEN
TMP( 2 ) = TL( 1, 2 )
TMP( 3 ) = TL( 2, 1 )
ELSE
TMP( 2 ) = TL( 2, 1 )
TMP( 3 ) = TL( 1, 2 )
END IF
BTMP( 1 ) = B( 1, 1 )
BTMP( 2 ) = B( 2, 1 )
40 CONTINUE
*
* Solve 2 by 2 system using complete pivoting.
* Set pivots less than SMIN to SMIN.
*
IPIV = IDAMAX( 4, TMP, 1 )
U11 = TMP( IPIV )
IF( ABS( U11 ).LE.SMIN ) THEN
INFO = 1
U11 = SMIN
END IF
U12 = TMP( LOCU12( IPIV ) )
L21 = TMP( LOCL21( IPIV ) ) / U11
U22 = TMP( LOCU22( IPIV ) ) - U12*L21
XSWAP = XSWPIV( IPIV )
BSWAP = BSWPIV( IPIV )
IF( ABS( U22 ).LE.SMIN ) THEN
INFO = 1
U22 = SMIN
END IF
IF( BSWAP ) THEN
TEMP = BTMP( 2 )
BTMP( 2 ) = BTMP( 1 ) - L21*TEMP
BTMP( 1 ) = TEMP
ELSE
BTMP( 2 ) = BTMP( 2 ) - L21*BTMP( 1 )
END IF
SCALE = ONE
IF( ( TWO*SMLNUM )*ABS( BTMP( 2 ) ).GT.ABS( U22 ) .OR.
$ ( TWO*SMLNUM )*ABS( BTMP( 1 ) ).GT.ABS( U11 ) ) THEN
SCALE = HALF / MAX( ABS( BTMP( 1 ) ), ABS( BTMP( 2 ) ) )
BTMP( 1 ) = BTMP( 1 )*SCALE
BTMP( 2 ) = BTMP( 2 )*SCALE
END IF
X2( 2 ) = BTMP( 2 ) / U22
X2( 1 ) = BTMP( 1 ) / U11 - ( U12 / U11 )*X2( 2 )
IF( XSWAP ) THEN
TEMP = X2( 2 )
X2( 2 ) = X2( 1 )
X2( 1 ) = TEMP
END IF
X( 1, 1 ) = X2( 1 )
IF( N1.EQ.1 ) THEN
X( 1, 2 ) = X2( 2 )
XNORM = ABS( X( 1, 1 ) ) + ABS( X( 1, 2 ) )
ELSE
X( 2, 1 ) = X2( 2 )
XNORM = MAX( ABS( X( 1, 1 ) ), ABS( X( 2, 1 ) ) )
END IF
RETURN
*
* 2 by 2:
* op[TL11 TL12]*[X11 X12] +ISGN* [X11 X12]*op[TR11 TR12] = [B11 B12]
* [TL21 TL22] [X21 X22] [X21 X22] [TR21 TR22] [B21 B22]
*
* Solve equivalent 4 by 4 system using complete pivoting.
* Set pivots less than SMIN to SMIN.
*
50 CONTINUE
SMIN = MAX( ABS( TR( 1, 1 ) ), ABS( TR( 1, 2 ) ),
$ ABS( TR( 2, 1 ) ), ABS( TR( 2, 2 ) ) )
SMIN = MAX( SMIN, ABS( TL( 1, 1 ) ), ABS( TL( 1, 2 ) ),
$ ABS( TL( 2, 1 ) ), ABS( TL( 2, 2 ) ) )
SMIN = MAX( EPS*SMIN, SMLNUM )
BTMP( 1 ) = ZERO
CALL DCOPY( 16, BTMP, 0, T16, 1 )
T16( 1, 1 ) = TL( 1, 1 ) + SGN*TR( 1, 1 )
T16( 2, 2 ) = TL( 2, 2 ) + SGN*TR( 1, 1 )
T16( 3, 3 ) = TL( 1, 1 ) + SGN*TR( 2, 2 )
T16( 4, 4 ) = TL( 2, 2 ) + SGN*TR( 2, 2 )
IF( LTRANL ) THEN
T16( 1, 2 ) = TL( 2, 1 )
T16( 2, 1 ) = TL( 1, 2 )
T16( 3, 4 ) = TL( 2, 1 )
T16( 4, 3 ) = TL( 1, 2 )
ELSE
T16( 1, 2 ) = TL( 1, 2 )
T16( 2, 1 ) = TL( 2, 1 )
T16( 3, 4 ) = TL( 1, 2 )
T16( 4, 3 ) = TL( 2, 1 )
END IF
IF( LTRANR ) THEN
T16( 1, 3 ) = SGN*TR( 1, 2 )
T16( 2, 4 ) = SGN*TR( 1, 2 )
T16( 3, 1 ) = SGN*TR( 2, 1 )
T16( 4, 2 ) = SGN*TR( 2, 1 )
ELSE
T16( 1, 3 ) = SGN*TR( 2, 1 )
T16( 2, 4 ) = SGN*TR( 2, 1 )
T16( 3, 1 ) = SGN*TR( 1, 2 )
T16( 4, 2 ) = SGN*TR( 1, 2 )
END IF
BTMP( 1 ) = B( 1, 1 )
BTMP( 2 ) = B( 2, 1 )
BTMP( 3 ) = B( 1, 2 )
BTMP( 4 ) = B( 2, 2 )
*
* Perform elimination
*
DO 100 I = 1, 3
XMAX = ZERO
DO 70 IP = I, 4
DO 60 JP = I, 4
IF( ABS( T16( IP, JP ) ).GE.XMAX ) THEN
XMAX = ABS( T16( IP, JP ) )
IPSV = IP
JPSV = JP
END IF
60 CONTINUE
70 CONTINUE
IF( IPSV.NE.I ) THEN
CALL DSWAP( 4, T16( IPSV, 1 ), 4, T16( I, 1 ), 4 )
TEMP = BTMP( I )
BTMP( I ) = BTMP( IPSV )
BTMP( IPSV ) = TEMP
END IF
IF( JPSV.NE.I )
$ CALL DSWAP( 4, T16( 1, JPSV ), 1, T16( 1, I ), 1 )
JPIV( I ) = JPSV
IF( ABS( T16( I, I ) ).LT.SMIN ) THEN
INFO = 1
T16( I, I ) = SMIN
END IF
DO 90 J = I + 1, 4
T16( J, I ) = T16( J, I ) / T16( I, I )
BTMP( J ) = BTMP( J ) - T16( J, I )*BTMP( I )
DO 80 K = I + 1, 4
T16( J, K ) = T16( J, K ) - T16( J, I )*T16( I, K )
80 CONTINUE
90 CONTINUE
100 CONTINUE
IF( ABS( T16( 4, 4 ) ).LT.SMIN ) THEN
INFO = 1
T16( 4, 4 ) = SMIN
END IF
SCALE = ONE
IF( ( EIGHT*SMLNUM )*ABS( BTMP( 1 ) ).GT.ABS( T16( 1, 1 ) ) .OR.
$ ( EIGHT*SMLNUM )*ABS( BTMP( 2 ) ).GT.ABS( T16( 2, 2 ) ) .OR.
$ ( EIGHT*SMLNUM )*ABS( BTMP( 3 ) ).GT.ABS( T16( 3, 3 ) ) .OR.
$ ( EIGHT*SMLNUM )*ABS( BTMP( 4 ) ).GT.ABS( T16( 4, 4 ) ) ) THEN
SCALE = ( ONE / EIGHT ) / MAX( ABS( BTMP( 1 ) ),
$ ABS( BTMP( 2 ) ), ABS( BTMP( 3 ) ), ABS( BTMP( 4 ) ) )
BTMP( 1 ) = BTMP( 1 )*SCALE
BTMP( 2 ) = BTMP( 2 )*SCALE
BTMP( 3 ) = BTMP( 3 )*SCALE
BTMP( 4 ) = BTMP( 4 )*SCALE
END IF
DO 120 I = 1, 4
K = 5 - I
TEMP = ONE / T16( K, K )
TMP( K ) = BTMP( K )*TEMP
DO 110 J = K + 1, 4
TMP( K ) = TMP( K ) - ( TEMP*T16( K, J ) )*TMP( J )
110 CONTINUE
120 CONTINUE
DO 130 I = 1, 3
IF( JPIV( 4-I ).NE.4-I ) THEN
TEMP = TMP( 4-I )
TMP( 4-I ) = TMP( JPIV( 4-I ) )
TMP( JPIV( 4-I ) ) = TEMP
END IF
130 CONTINUE
X( 1, 1 ) = TMP( 1 )
X( 2, 1 ) = TMP( 2 )
X( 1, 2 ) = TMP( 3 )
X( 2, 2 ) = TMP( 4 )
XNORM = MAX( ABS( TMP( 1 ) )+ABS( TMP( 3 ) ),
$ ABS( TMP( 2 ) )+ABS( TMP( 4 ) ) )
RETURN
*
* End of DLASY2
*
END
```
|
Hans Fischerkoesen, also known as Hans Fischerkösen or Hans Fischer (18 May 1896 – 23 April 1973) was a German commercial animator. Fischerkoesen is considered an animation pioneer, due to the inventions and innovations he applied to animation technology, especially the use of three-dimensional elements in his animations. Later he becomes Germany's most influential cartoonist, often nicknamed “Germany’s Walt Disney” alongside Rolf Kauka. He won both first and second prizes at a Dutch-sponsored international competition in 1937, for advertising films (the runners up included George Pal and Alexander Alexeieff ). By 1956 he had won major prizes at commercial film festivals in Rome, Milan (three times), Venice, Monte Carlo and Cannes. Most notable was the participation in the 1st Berlin International Film Festival, where Fischerkoesen's film Blick ins Paradies won the Bronze Medal (Advertising Film) award.
Filmography
1919: Das Loch im Westen (The Hole in the West)
1921: Bummel-Petrus (Strolling Peter)
1922: Seemansliebe (Sailors Love)
1923: Die Besteigung des Himalaja (Climbing of the Himalaya)
1924: Der Pfennig muß es bringen (The penny must bring it)
1925: Der Kluge Einfall (The Clever Idea)
1926: Die Geschichte vom Schokoladenkasper (The History of Chocolate Kasper)
1927: Auf der Skitour (On the Ski Tour)
1928: Zur gefälligen Beachtung (For Your Attention)
1929: Der möblierte Herr (The Furnished Mister)
1933: Schall und Rauch (Smoke and Mirrors)
1934: Vertrag mit der Hölle (The Contract with the Hell)
1935: Das blaue Wunder (The Blue Wonder)
1936: Gesang des Kragenknopfes (Song of the Collar Button)
1937: Zwei Minuten von Bedeutung (Two Minutes of Importance)
1938: Dicke Luft (Thick Air)
1940: Im Glückshimmel (In Happiness Heaven)
1942: Verwitterte Melodie (Weather-Beaten Melody)
1944: Der Schneemann (The Snowman)
1944: Das dumme Gänslein (The Silly Goose)
1944: La Prairie Enchantée (French title for The Enchanted Meadow, projected in color in 1944 at Paris)
1951: Blick ins Paradies (Looking into Paradise)
1955: Durch Nacht zum Licht (Through Night to Light)
1964: Die Kleine Null (The Little Zero)
Early life
Hans Fischer was born on 18 May 1896 in the small town of Bad Kösen, near Naumburg, at the River Saale in the German state of Saxony. Because the name “Fischer” was a very common name in the film industry, he later created the alias of Fischerkoesen, by combining his name – Fischer and his birthplace - Kösen, in order to distinguish himself from others. His father was a middle-class entrepreneur, dealing with building materials. He was a sensitive child, affected by asthma, which determined his parents to spoil both him and his sister Leni, by creating puppet shows and home entertainment, thus they developed a taste for fantasy and spectacle. Confined in bed most of his childhood by this bad case of asthma, he developed a great passion for drawing. Later, in 1916 he and his equally talented sister Leni, attended for three years the Academy of Graphic Arts, in Leipzig. Over the years, Leni was Fischerkoesen's closest collaborator on many animation film projects.
During the First World War, Fischerkoesen could not serve as a soldier because of his asthma, but he worked in army hospitals near to the front line where he witnessed the shocking horrors of trench warfare. Profoundly impressed by these terrifying experiences, at his return home when the war was ended, Fischerkoesen planned to make an animation film, Das Loch im Westen (The Hole in the West), which would expose the war profiteer as the real cause of the war. Thus, he spent months drawing about 1600 sequential images, designed his own animation stand and shot the animation movie himself, and successfully sold it to a local distributor for 3,000 marks which allowed him to pursue an animation career. Hole in the West, Fischerkoesen's first film, premiered in 1919 and made history as the first animated film ever produced in Germany.
Commercial Animator Career
In 1921, Fischerkoesen launched a highly successful advertising career with an ad for the Leipzig shoe factory Nordheimer, Bummel –Petrus (Strolling Peter). In the same year he made another three animated advertising ads: Die Entführung and König Grogs Löwenabenteuer (both Transocean-Film) and Professor Sprit (Dux- Film). The success led to a two-year contract with Julius Pinschewer, owner of the leading Berlin advertising company Werbefilm G.m.b.H.-Pinschewer, who had pioneered the use of animated commercials in movie theatres back in 1911. As a result of this collaboration, he produced Die Besteigung des Himalaja (1923), Abbau auch im Harem (1924), Brand im Wolkenkratzer (1924), Glück auf! (1924), Der Glücksvogel (1924), Im Urwald (1924), Nunak, die Eskima (1924), Der Pfennig muss es bringen (1924), Sonnenersatz (1924), Das Zauberpferd (1924), Der kluge Dackel (1925), Jette’s Ausgang (1925), Meier glüht (1925), Der kluge Einfall (1925), Das Seegespenst (1925), Die Geschichte vom Scholokadenkasper (1926), Auf der Skitour (1926) and many other. Probably, the most important film of this period was Der Pfennig muss es bringen (The penny must bring it), an advertisement for the German Saving Bank and the Giro Co-operative Bank done in November 1924, which would fuel the later accusation of collaboration with the Nazi regime as both banks were to become an integral part of the Nazi plan for funding the war. Fischerkoesen worked for Pinschewer until 1928, when he temporarily worked for the propaganda film society “Epoche”, shortly after starting to work at Ufa's (Universum Film AG) propaganda department. After becoming chief draughtsman, he established his own studio in Potsdam.
In 1931, Fischerkoesen was celebrated by a Leipzig newspaper, with an article entitled “Watch out Mickey Mouse, Felix the Cat, and Co.”, article illustrated with images from his ads, such as a cow with a lyre built into her horns, a bull in a tuxedo or an Art-Deco style kangaroo ballet. He continued his successful advertising career and made over 1000 publicity films, most of which are unfortunately lost. However, he did not limit just to commercials and advertising films, but he contributed with several animated sequences to culture films and he has done as well military training films for the Army High Command (OKW) and Mars-Film G.m.b.H.
The Nazi Era
Although the installation of the Nazi regime in 1933 did not affect too much of Fischerkoesen’s activity, the outbreak of the Second World War pushed his career on the verge of collapse, as the products that he had promoted so successfully were increasingly becoming luxury items. The decline was accentuated in 1941, when Joseph Goebbels, head of the Reich Ministry of Public Enlightenment and Propaganda (Reichsministerium für Volksaufklärung und Propaganda) decided, through an order issued on October 14 by the Werberat (Advertising Council of German Industry), to prohibit advertising of so-called Mangelware (scarce goods, especially food and clothes). With no future in the advertising industry, Fischerkoesen saw his career taking an unexpected turn as both Hitler and Goebbels loved cinema in general and they had a great passion for animated cartoons, especially for Walt Disney’s productions, and dreamed to create a German animated film industry bigger and better than the one in the United States. Thus, on 25 June 1941 Goebbels founded a new animated film company Deutsche Zeichentrickfilme G.m.b.H (DZF), regarded as an important war facility which offered training for young cartoonists.
The German Animation Film Company (DZF) was aimed to start the production of feature-length animated films by 1947 and the successful animator Fischerkoesen was a natural choice to be involved in this strategic project. In this context, Fischerkoesen was required to move his staff and studio to Potsdam, near UFA’s studios. Fischerkoesen did not reject a collaboration with the Nazi propaganda machine, but he argued that he was not really talented to invent ideas for story films as he was experienced in the advertising industry. Consequently, he was assigned to work with Horst von Mollendorf, a popular Berlin newspaper cartoonist who was expected to help him with the scrips for the future animations. In these circumstances, Fischerkoesen was commissioned by Goebbels to create cartoons that were technologically equal or better than Disney’s animations, and received enough funding to produce his three most important and costly films: Die Verwitterte Melodie (Weather-Beaten Melody) in 1942, Der Schneemann (The Snowman) in 1943 and Das dumme Gänslein (The Silly Goose) in 1944. All three films respected Goebbels’ directives, as they were made without spoken dialogue, so it was easy to be played internationally without costly subtitles synchronisation, and used the “three dimensional” effects (especially The Snowman was highly appreciated during the rule of the National Socialists).Weather-Beaten Melody or Scherzo tells the story of a wasp who discovers an abandoned gramophone in a meadow and, with its stinger manages to make it play the Foxtrott Wenn die Woche keinen Sonntag hätt (If the Week had no Sunday). Der Schneemann presents the adventures of a special snowman, a “humanly” one with a warm spot in his heart who after seeing pictures with the summer in a calendar, decided to see the warm season at any costs and ended melted in July. For the last short animation of the series, The Silly Goose, Fischerkoesen preferred to renounce his collaboration with Horst von Mollendorf, and produced the film on his own. The film tells the story of a vain goose who ventures beyond the borders of the farmhouse where she lived and nearly ended killed by a fox. In contrast to the first two short animations, in this last film can be noticed several antisemitic symbols, such as the fox who represents the “malicious Jew”, or the well-known Yiddish song Bei Mir Bistu Shein played in the background while the fox attempt to ambush the undisciplined goose.
The animations satisfied Goebbels’ expectations, thanks to their technical qualities and to the message transmitted, similar to the Nazi ideology of Blut und Boden (Blood and Soil), which glorified the simplicity and the virtue of the rural life, the return to the nature and required everyone to stay where they belong. On the other hand, elements which indicate a relative insubordination to the Nazi rhetoric can be found, such as the forbidden jazz music in Die verwitterte Melodie, the snowman’s anticipation of better days in Der Schneemann or the ambiguous narrative created in Das Dumme Ganslein. Post Second World War Career
When the Second World War ended, Fischerkösen was arrested by the Russian troops under the suspicion of Nazi collaboration and was kept for three years in the Sachsenhausen concentration camp, until he proved not just that he was not a Nazi sympathizer, but that he was actually part of an underground resistance group of artists. During the imprisonment time he was detached to work in the kitchen and in order to survive captivity he occasionally drew portraits of the Soviet guards in exchange for a piece of bread, or to maintain a good morale he painted allegorical murals using vegetable caricatures, which are now preserved as a national historical monument. Released in 1948, Fischerkoesen fled with his wife and two children from the Soviet-controlled zone of Germany to the French-controlled sector, where he returned to his pre-Nazi career, founding Fischerkoesen-Studios in Mehlem. He became Germany’s leading producer of animated commercials and his notoriety and success was recognized by a cover story in Der Spiegel'', on 29 August 1956. By the mid-1960s, due to the development of television and the request for shorter and snappier clips, Fischerkoesen found it more difficult to keep up with the modern times, thus his commercials became briefer. Fischerkoesen Studios were closed in 1972, just a year before his death, but his son reorganized it and developed it into a new company. Hans Fischerkösen died of a stroke at the age of 76, on 25 April 1973.
References
External links
Biography (in German)
The Case of Hans Fischerkoesen
1896 births
1973 deaths
Film people from Saxony-Anhalt
German animated film directors
German animated film producers
Film commercial directors
|
Radford is an English toponymic surname deriving from one of several places in England named "Radford", chief among these being Radford, Coventry and Radford, Nottingham. The most closely related surname to Radford is "Radforth", while a common variant is "Redford".
Notable people sharing this surname include:
Born in 19th Century
Arthur W. Radford (1896–1973), Admiral in United States Navy
Basil Radford (1897–1952), English actor
Dollie Radford (1858–1920), English poet and author
Edmund Ashworth Radford (1881–1944), English Conservative political figure
Ernest Radford (1857–1919), English poet
George Heynes Radford (1851–1917), British Liberal political figure
Henry Radford (1896–1972), English cricketer
Lewis Radford (1869–1937), English Anglican bishop and author
Paul Radford (1861–1945), United States baseball player
Wally Radford (1886–1943), English footballer
William Radford (1808–1890), Admiral in United States Navy
William Radford (politician) (1814–1870), United States political figure
Born in 20th Century
Albert Ernest Radford (1918–2006), United States academic and botanist
Andy Radford (1944–2006), British Anglican bishop, Bishop of Taunton
Barbara Radford, British figure skater
Benjamin Radford (born 1970), United States science writer and journalist
Bob Radford (1943–2004), Australian cricket administrator
Brendan Radford (fl. 1990s-present), Australian musician
Brian Radford (fl. 1950s), Welsh rugby player
Charlie Radford (1900–1924), British footballer
Elaine Radford (born 1958), United States author
Eric Radford (born 1985), Canadian figure skater
Glen Radford (born 1962), Zambian-born South African cricketer
Howard Radford (1930–2022), Welsh footballer
Jim Radford (1928–2020), British D-Day veteran, peace campaigner and folk-singer
John Radford (footballer) (born 1947), English footballer
John Radford (broadcaster) (fl. 1980s), Canadian director of radio and television stations
Kristine Kunce (born 1970), Australian tennis player, also known as Kristine Radford
Lee Radford (born 1979), English rugby player
Luis Radford (fl. 2000s), Canadian educator
Mark Radford (basketball) (born 1959), American former National Basketball Association player
Mark Radford (footballer) (born 1968), English former footballer
Michael Radford (born 1946), English film director and screenwriter
Natalie Radford (born 1966), Canadian actress
Neal Radford (born 1957), North Rhodesia (now Zambia)-n born English cricketer
Peter Radford (born 1939), English athlete in track
Phil Radford (born 1970s), United States environmental activist, director of Greenpeace
Ralegh Radford (1900–1999), English archaeologist
Richard A. Radford (1939–2006), British-born American economist, notable for his article on POW camp economics
Robert Radford (1874–1933), English-born United States musician
Robert Radford (footballer) (1900-?), English footballer
Ron Radford (born 1949), Australian art museum curator
Ronald Radford (guitarist) (fl. 1990s-present), United States musician (flamenco guitar)
Ronnie Radford (1943-2022), English footballer
Rosemary Radford Ruether (1936–2022), United States academic and theologian
Sheri Radford (fl. 1990s-present), Canadian author
Steve Radford (born 1957), British Liberal political figure
Toby Radford (born 1971), Welsh cricketer
Wayne Radford (basketball) (1956–2021), United States athlete in basketball
Wayne Radford (cricketer) (born 1958), Zambian-born South African cricketer
References
See also
Radford family
English-language surnames
English toponymic surnames
|
Government Degree College, Gandacherra, is a college in Gandacherra Dhalai district, Tripura. It offers undergraduate courses in arts and sciences. It is affiliated to Tripura University.
Accreditation
The college is recognized by the University Grants Commission (UGC).
See also
Education in India
Education in Tripura
Tripura University
Literacy in India
List of institutions of higher education in Tripura
References
External links
Colleges affiliated to Tripura University
Universities and colleges in Tripura
Colleges in Tripura
|
```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.infra.exception.postgresql.exception.authority;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.infra.exception.dialect.exception.SQLDialectException;
/**
* Privilege not granted exception.
*/
@RequiredArgsConstructor
@Getter
public final class PrivilegeNotGrantedException extends SQLDialectException {
private static final long serialVersionUID = 8410672833723209253L;
private final String username;
private final String databaseName;
}
```
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/profiler/tick-sample.h"
#include "include/v8-profiler.h"
#include "src/counters.h"
#include "src/frames-inl.h"
#include "src/msan.h"
#include "src/simulator.h"
#include "src/vm-state-inl.h"
namespace v8 {
namespace {
bool IsSamePage(i::byte* ptr1, i::byte* ptr2) {
const uint32_t kPageSize = 4096;
uintptr_t mask = ~static_cast<uintptr_t>(kPageSize - 1);
return (reinterpret_cast<uintptr_t>(ptr1) & mask) ==
(reinterpret_cast<uintptr_t>(ptr2) & mask);
}
// Check if the code at specified address could potentially be a
// frame setup code.
bool IsNoFrameRegion(i::Address address) {
struct Pattern {
int bytes_count;
i::byte bytes[8];
int offsets[4];
};
i::byte* pc = reinterpret_cast<i::byte*>(address);
static Pattern patterns[] = {
#if V8_HOST_ARCH_IA32
// push %ebp
// mov %esp,%ebp
{3, {0x55, 0x89, 0xe5}, {0, 1, -1}},
// pop %ebp
// ret N
{2, {0x5d, 0xc2}, {0, 1, -1}},
// pop %ebp
// ret
{2, {0x5d, 0xc3}, {0, 1, -1}},
#elif V8_HOST_ARCH_X64
// pushq %rbp
// movq %rsp,%rbp
{4, {0x55, 0x48, 0x89, 0xe5}, {0, 1, -1}},
// popq %rbp
// ret N
{2, {0x5d, 0xc2}, {0, 1, -1}},
// popq %rbp
// ret
{2, {0x5d, 0xc3}, {0, 1, -1}},
#endif
{0, {}, {}}
};
for (Pattern* pattern = patterns; pattern->bytes_count; ++pattern) {
for (int* offset_ptr = pattern->offsets; *offset_ptr != -1; ++offset_ptr) {
int offset = *offset_ptr;
if (!offset || IsSamePage(pc, pc - offset)) {
MSAN_MEMORY_IS_INITIALIZED(pc - offset, pattern->bytes_count);
if (!memcmp(pc - offset, pattern->bytes, pattern->bytes_count))
return true;
} else {
// It is not safe to examine bytes on another page as it might not be
// allocated thus causing a SEGFAULT.
// Check the pattern part that's on the same page and
// pessimistically assume it could be the entire pattern match.
MSAN_MEMORY_IS_INITIALIZED(pc, pattern->bytes_count - offset);
if (!memcmp(pc, pattern->bytes + offset, pattern->bytes_count - offset))
return true;
}
}
}
return false;
}
} // namespace
namespace internal {
namespace {
#if defined(USE_SIMULATOR)
class SimulatorHelper {
public:
// Returns true if register values were successfully retrieved
// from the simulator, otherwise returns false.
static bool FillRegisters(Isolate* isolate, v8::RegisterState* state);
};
bool SimulatorHelper::FillRegisters(Isolate* isolate,
v8::RegisterState* state) {
Simulator* simulator = isolate->thread_local_top()->simulator_;
// Check if there is active simulator.
if (simulator == NULL) return false;
#if V8_TARGET_ARCH_ARM
if (!simulator->has_bad_pc()) {
state->pc = reinterpret_cast<Address>(simulator->get_pc());
}
state->sp = reinterpret_cast<Address>(simulator->get_register(Simulator::sp));
state->fp =
reinterpret_cast<Address>(simulator->get_register(Simulator::r11));
#elif V8_TARGET_ARCH_ARM64
state->pc = reinterpret_cast<Address>(simulator->pc());
state->sp = reinterpret_cast<Address>(simulator->sp());
state->fp = reinterpret_cast<Address>(simulator->fp());
#elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
if (!simulator->has_bad_pc()) {
state->pc = reinterpret_cast<Address>(simulator->get_pc());
}
state->sp = reinterpret_cast<Address>(simulator->get_register(Simulator::sp));
state->fp = reinterpret_cast<Address>(simulator->get_register(Simulator::fp));
#elif V8_TARGET_ARCH_PPC
if (!simulator->has_bad_pc()) {
state->pc = reinterpret_cast<Address>(simulator->get_pc());
}
state->sp = reinterpret_cast<Address>(simulator->get_register(Simulator::sp));
state->fp = reinterpret_cast<Address>(simulator->get_register(Simulator::fp));
#elif V8_TARGET_ARCH_S390
if (!simulator->has_bad_pc()) {
state->pc = reinterpret_cast<Address>(simulator->get_pc());
}
state->sp = reinterpret_cast<Address>(simulator->get_register(Simulator::sp));
state->fp = reinterpret_cast<Address>(simulator->get_register(Simulator::fp));
#endif
if (state->sp == 0 || state->fp == 0) {
// It possible that the simulator is interrupted while it is updating
// the sp or fp register. ARM64 simulator does this in two steps:
// first setting it to zero and then setting it to the new value.
// Bailout if sp/fp doesn't contain the new value.
//
// FIXME: The above doesn't really solve the issue.
// If a 64-bit target is executed on a 32-bit host even the final
// write is non-atomic, so it might obtain a half of the result.
// Moreover as long as the register set code uses memcpy (as of now),
// it is not guaranteed to be atomic even when both host and target
// are of same bitness.
return false;
}
return true;
}
#endif // USE_SIMULATOR
} // namespace
} // namespace internal
//
// StackTracer implementation
//
DISABLE_ASAN void TickSample::Init(Isolate* v8_isolate,
const RegisterState& reg_state,
RecordCEntryFrame record_c_entry_frame,
bool update_stats,
bool use_simulator_reg_state) {
this->update_stats = update_stats;
SampleInfo info;
RegisterState regs = reg_state;
if (!GetStackSample(v8_isolate, ®s, record_c_entry_frame, stack,
kMaxFramesCount, &info, use_simulator_reg_state)) {
// It is executing JS but failed to collect a stack trace.
// Mark the sample as spoiled.
pc = nullptr;
return;
}
state = info.vm_state;
pc = regs.pc;
frames_count = static_cast<unsigned>(info.frames_count);
has_external_callback = info.external_callback_entry != nullptr;
if (has_external_callback) {
external_callback_entry = info.external_callback_entry;
} else if (frames_count) {
// sp register may point at an arbitrary place in memory, make
// sure MSAN doesn't complain about it.
MSAN_MEMORY_IS_INITIALIZED(regs.sp, sizeof(void*));
// Sample potential return address value for frameless invocation of
// stubs (we'll figure out later, if this value makes sense).
tos = i::Memory::Address_at(reinterpret_cast<i::Address>(regs.sp));
} else {
tos = nullptr;
}
}
bool TickSample::GetStackSample(Isolate* v8_isolate, RegisterState* regs,
RecordCEntryFrame record_c_entry_frame,
void** frames, size_t frames_limit,
v8::SampleInfo* sample_info,
bool use_simulator_reg_state) {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
sample_info->frames_count = 0;
sample_info->vm_state = isolate->current_vm_state();
sample_info->external_callback_entry = nullptr;
if (sample_info->vm_state == GC) return true;
i::Address js_entry_sp = isolate->js_entry_sp();
if (js_entry_sp == nullptr) return true; // Not executing JS now.
#if defined(USE_SIMULATOR)
if (use_simulator_reg_state) {
if (!i::SimulatorHelper::FillRegisters(isolate, regs)) return false;
}
#else
USE(use_simulator_reg_state);
#endif
DCHECK(regs->sp);
if (regs->pc && IsNoFrameRegion(static_cast<i::Address>(regs->pc))) {
// The frame is not setup, so it'd be hard to iterate the stack. Bailout.
return false;
}
i::ExternalCallbackScope* scope = isolate->external_callback_scope();
i::Address handler = i::Isolate::handler(isolate->thread_local_top());
// If there is a handler on top of the external callback scope then
// we have already entrered JavaScript again and the external callback
// is not the top function.
if (scope && scope->scope_address() < handler) {
i::Address* external_callback_entry_ptr =
scope->callback_entrypoint_address();
sample_info->external_callback_entry =
external_callback_entry_ptr == nullptr ? nullptr
: *external_callback_entry_ptr;
}
i::SafeStackFrameIterator it(isolate, reinterpret_cast<i::Address>(regs->fp),
reinterpret_cast<i::Address>(regs->sp),
js_entry_sp);
// If at this point iterator does not see any frames,
// is usually means something is wrong with the FP,
// e.g. it is used as a general purpose register in the function.
// Bailout.
if (it.done()) return false;
size_t i = 0;
if (record_c_entry_frame == kIncludeCEntryFrame &&
(it.top_frame_type() == internal::StackFrame::EXIT ||
it.top_frame_type() == internal::StackFrame::BUILTIN_EXIT)) {
frames[i++] = isolate->c_function();
}
i::RuntimeCallTimer* timer =
isolate->counters()->runtime_call_stats()->current_timer();
for (; !it.done() && i < frames_limit; it.Advance()) {
while (timer && reinterpret_cast<i::Address>(timer) < it.frame()->fp() &&
i < frames_limit) {
frames[i++] = reinterpret_cast<i::Address>(timer->counter());
timer = timer->parent();
}
if (i == frames_limit) break;
if (!it.frame()->is_interpreted()) {
frames[i++] = it.frame()->pc();
continue;
}
// For interpreted frames use the bytecode array pointer as the pc.
i::InterpretedFrame* frame = static_cast<i::InterpretedFrame*>(it.frame());
// Since the sampler can interrupt execution at any point the
// bytecode_array might be garbage, so don't dereference it.
i::Address bytecode_array =
reinterpret_cast<i::Address>(frame->GetBytecodeArray()) -
i::kHeapObjectTag;
frames[i++] = bytecode_array + i::BytecodeArray::kHeaderSize +
frame->GetBytecodeOffset();
}
sample_info->frames_count = i;
return true;
}
namespace internal {
void TickSample::Init(Isolate* isolate, const v8::RegisterState& state,
RecordCEntryFrame record_c_entry_frame, bool update_stats,
bool use_simulator_reg_state) {
v8::TickSample::Init(reinterpret_cast<v8::Isolate*>(isolate), state,
record_c_entry_frame, update_stats,
use_simulator_reg_state);
if (pc == nullptr) return;
timestamp = base::TimeTicks::HighResolutionNow();
}
} // namespace internal
} // namespace v8
```
|
Oncotype (Denmark) is an interactive design group.
Oncotype is an interdisciplinary design group since 1998. The main thread in Oncotype's projects is interaction, both on print, websites and in interactive films. Oncotype received the Danish Design Award 2001 in the category Digital Communication, for its website.
External links
Danish design
|
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {nullthrows} from 'shared/utils';
/**
* Incrementally increases throttling when an even starts happening too often.
* For example, initially there's no throttle
* After 10 events without a gap of 10s, there's a 10s throttle.
* After 30 events without a gap of 30s, there's a 30s throttle.
* After no events for 10s, the throttle is reset to 0.
*
* These thresholds are configurable.
* "Throttling" means dropping events after the first one (unlike debouncing).
*/
export function stagedThrottler<P extends Array<unknown>>(
stages: Array<{
throttleMs: number;
/** number of input events needed to advance to the enxt stage.
* Note: it doesn't matter if it was throttled or not. Every input adds to the advancement. */
numToNextStage?: number;
resetAfterMs: number;
/** Called when entering a stage.
* Note: 0th stage onEnter is not called "on startup", only if you reset the stage,
* and that this stage resets the next time a value IS emitted, not merely once the time passes.
*/
onEnter?: () => unknown;
}>,
cb: (...args: P) => void,
) {
// Time of the last non-throttled call
let lastEmitted = -Infinity;
let currentStage = 0;
let numSeen = 0;
return (...args: P) => {
const stage = nullthrows(stages[currentStage]);
const currentThrottle = stage.throttleMs;
const elapsed = Date.now() - lastEmitted;
// Input always counts towards going to the next stage
numSeen++;
// Maybe go to the next stage
if (numSeen > 1 && elapsed > stage.resetAfterMs) {
// Reset the throttle
numSeen = 0;
currentStage = 0;
stages[currentStage].onEnter?.();
} else if (stage.numToNextStage && numSeen >= stage.numToNextStage) {
const nextStage = currentStage + 1;
if (nextStage < stages.length) {
numSeen = 0;
currentStage++;
stages[currentStage].onEnter?.();
}
}
if (elapsed < currentThrottle) {
// Needs to be throttled
return;
}
// No need to throttle
lastEmitted = Date.now();
return cb(...args);
};
}
```
|
Coldham railway station was a station in Coldham, Cambridgeshire. It was on the branch of the Great Eastern Railway which ran from March to Watlington, Norfolk. The station opened in 1847, and in 1894 a porter was killed in an accident there.
The station closed in 1966, the line closed for passengers in 1968 and for freight in 2000. Nothing remains of the former station, with the exception of the former toilet block, which is concealed by undergrowth which has built up since the station closed.
A plan by the Bramley Line to restore the line between Wisbech and March may see trains return to Coldham in some form.
References
Disused railway stations in Cambridgeshire
Former Great Eastern Railway stations
Railway stations in Great Britain opened in 1847
Railway stations in Great Britain closed in 1966
1847 establishments in England
|
The titles of Baron Milton and Viscount Milton have both been created several times.
Sydney family
The first creation was for Henry Sydney, who was created Viscount Sydney of Sheppey and Baron Milton (i.e. Milton in Kent) in the Peerage of England on 9 September 1689. He was later further created Earl of Romney. He had no children so the titles became extinct on his death on 8 April 1704.
Fitzwilliam family
The next creation was for William Fitzwilliam, 3rd Lord Fitzwilliam and Baron of Lifford in the Peerage of Ireland. He was created Earl Fitzwilliam and Viscount Milton (i.e. Milltown in County Westmeath), again in the Peerage of Ireland, on 21 July 1716. His grandson the third Earl Fitzwilliam was created Earl Fitzwilliam and Viscount Milton (i.e. Milton in what was then Northamptonshire) in the Peerage of Great Britain on 6 September 1746. All the titles became extinct on the death of the tenth Earl Fitzwilliam on 21 September 1979.
Damer family
The final creations were for Joseph Damer. He was created Baron Milton of Shronell, County Tipperary in the Peerage of Ireland on 3 June 1753, Baron Milton of Milton Abbey, Dorset in the Peerage of Great Britain on 10 May 1762, and Viscount Milton of Milton Abbey and Earl of Dorchester on 18 May 1792. These titles became extinct on the death of his son on 7 March 1808.
References
Extinct viscountcies in the Peerage of Ireland
Extinct viscountcies in the Peerage of Great Britain
Noble titles created in 1716
Noble titles created in 1746
Noble titles created in 1792
Dawson-Damer family
|
```smalltalk
using Newtonsoft.Json;
namespace DSharpPlus.VoiceNext.Entities;
internal sealed class VoiceSessionDescriptionPayload
{
[JsonProperty("secret_key")]
public byte[] SecretKey { get; set; }
[JsonProperty("mode")]
public string Mode { get; set; }
}
```
|
```c++
//
// Use, modification, and distribution is subject to the Boost Software
// path_to_url
//
// See path_to_url for documentation.
//
// You are welcome to contact the author at:
// fernando_cacciola@hotmail.com
// akrzemi1@gmail.com
#ifndef your_sha256_hashB2016_HPP
#define your_sha256_hashB2016_HPP
// Daniel Wallin discovered that bind/apply.hpp badly interacts with the apply<>
// member template of a factory as used in the optional<> implementation.
// He proposed this simple fix which is to move the call to apply<> outside
// namespace boost.
namespace boost_optional_detail
{
template <class T, class Factory>
inline void construct(Factory const& factory, void* address)
{
factory.BOOST_NESTED_TEMPLATE apply<T>(address);
}
}
namespace boost
{
class in_place_factory_base ;
class typed_in_place_factory_base ;
}
#endif // header guard
```
|
NW Rota-1 is a seamount in the Mariana Islands, northwest of Rota, which was discovered through its hydrothermal activity in 2003. The volcano has been observed to be erupting underwater, the first time that submarine explosive eruptions have been directly witnessed.
The summit of the seamount lies at below sea level, with a ridge capping off the seamount. It has several craters, the most active of which is located south of the summit ridge and is called "Brimstone Pit". Eruptions have been recorded in 2008–2010 and took the form of Strombolian eruptions with the emission of lava and large amounts of tephra. The erupted material is unstable and forms sediment flows and landslides; one large landslide occurred on 14 August 2009 and stripped part of the southern flank of NW Rota-1. Such landslides generate ash plumes underwater and are similar to large landslides at other active submarine volcanoes.
The activity gives rise to intense hydrothermal plumes, which contain droplets of molten sulfur and bubbles of carbon dioxide, among other compounds. It is estimated that NW Rota-1 releases 400,000 ± 100,000 tonne/year of carbon dioxide. The hydrothermal activity nourishes microbial mats and these in turn many animals, although the unstable environment from the frequent eruptions limits animal diversity.
Research history
NW Rota-1 was discovered to be hydrothermally active by NOAA in 2003 and first mapped by the remotely operated vehicle (ROV) ROPOS in 2004. The volcano has repeatedly been targeted by dives of ROVs. Hydrophones have been placed at the summit and vent during several dives. NW Rota-1 is also known as "Northwest Rota-1".
NW Rota-1 is the first volcano where submarine explosive eruptions were directly observed, in 2004. The intensity of the eruptions is diminished by being underwater, allowing more direct observations than would be possible at subaerial volcanoes.
Geography and geomorphology
NW Rota-1 is located northwest of Rota in the Commonwealth of the Northern Mariana Islands, and about north of Guam. It is part of the Mariana Trench Marine National Monument, which was established in 2009.
NW Rota-1 is a steep volcanic cone, which rises from a wide base at depth to below sea level. The summit and slopes of the volcano are covered by volcanic debris (including ash and sand), sulfur globules and talus. Rock and lava outcrops and cemented breccia are also found; the outcrops are part of the inner structure of the volcano. The summit is formed by a northwest–southeast trending ridge that probably formed as a headwall of a landslide. Normal faults cut across the volcano and bound the summit ridge. An inactive summit is located northwest from the main summit at depth.
The active crater "Brimstone Pit" lies south of the summit on the steep, debris covered slope of the volcano. A wide depression east of the summit may be an older crater, now partially filled. Farther east lies the "Fault Shrimp" ridge, where diffuse hydrothermal venting takes place.
The appearance of the "Brimstone Pit" has changed over time:
In March–April 2004 it was a wide funnel-shaped pit situated atop a cinder cone and its northern rim was almost contiguous with the southern slope of the volcano.
By October 2005, it had grown in height by about while the pit had shrunk in size and become less deep.
When surveyed in April 2006, the cinder cone was gone. Presumably it had collapsed, leaving only a sulfur-encrusted remnant of the inner slope of the crater. Four wide overlapping vents were present within the crater. Slide chutes and volcanic bombs were encountered below Brimstone Pit.
In 2009, a lava debris cone appeared at Brimstone Pit. Pillow lavas were identified below the cone.
In 2010 other active vents appeared below the summit on the southern flank. These are (from west to east) "Phantom", "Sulfur", "Styx" and "Charon". They form a long alignment that also contains Brimstone Pit as its middle member. The appearance of these new vents may be due to landslides disrupting the magma conduits.
Landsliding
Evidence of landslides is found over the entire volcano, and sediment flows have been observed from ROVs. They form when material accumulated around vents becomes unstable and collapses. The landslides generate plumes of ash-rich water which can spread kilometres from the volcano. Such plumes are a unique trait of volcanism at NW Rota-1 and have been identified at Kavachi, Monowai, NW Rota-1 and West Mata submarine volcanoes.
One such landslide took place on 14 August 2009 and removed debris that had accumulated around Brimstone Pit as well as the southern parts of the summit. Schnur et al. 2017 gave volume estimates of and but despite this large volume it did not result in a detectable tsunami. It left rocky outcrops exposed that had previously been buried under looser material.
Cycles of volcano growth and collapse have been found at other seamounts like Monowai and West Mata, and much larger and less frequent collapses are recorded from large intraplate volcanoes such as Hawaii. Seismic activity, sea level changes and hydrothermal alteration appear to play a role in initiating landsliding.
Geology
At the Izu-Bonin-Mariana volcanic arc, the Pacific Plate subducts beneath the Philippine Plate. The subduction of the old Pacific Plate releases fluids from the downgoing slab into the mantle. The interaction between these fluids and the mantle fertilizes the latter and results in volcanic activity. Compared to ocean island volcanoes, these volcanoes are longer lived and produce more gas-rich magma.
The Mariana Arc contains 52-60 submarine volcanoes, about five times more than rise above sea level. At least 20 volcanoes including NW Rota-1 are hydrothermally active. The islands Guam, Rota and Saipan are uplifted parts of the forearc.
NW Rota-1 is part of South Mariana Seamount Province. It is the western end and largest member of a chain of four large and five smaller submarine volcanoes. This "cross-chain" is perpendicular to the main volcanic arc and is correlated to a slab discontinuity. The cross-chain lies in an area of crustal extension. Another volcano close to NW Rota-1 is Chaife, about east-northeast of the former. Esmeralda Bank and the caldera West Rota lie northwest and due south of NW Rota-1, respectively. There might be a shallow magma chamber at NW Rota-1, which could explain the vigorous hydrothermal activity.
Composition
The volcano is formed by andesite, basalt and basaltic andesite. The volcanic rocks define a calc-alkaline rock family with some components that border on the tholeiitic family. The rock family has a medium potassium content. Phenocryst phases contained in the rocks are olivine, plagioclase and pyroxene. Sulfur has been found encased in ejecta, which are often covered in volcanic glass from the interaction between seawater and lava. Volcanic rocks are porphyritic and contain many vesicles. The magma erupted at NW Rota-1 is among the most water rich of the entire Mariana Arc.
The formation of NW Rota-1 magmas appears to involve the melting of subducted, water-bearing sediments and the interaction of the resulting melts with the mantle wedge. Back-arc may also play a role. The interaction products rise as diapirs in two distinct populations, one with a large sediment component and one with a small one. Eventually liquids separate from crystals in the diapir and rise to the surface.
Exhalations
Like other volcanoes, NW Rota-1 emits carbon dioxide (), hydrogen sulfide (), methane (), sulfur dioxide () and water. The volcano produces about 400,000 ± 100,000 of , which is about 0.2–0.6% of the worldwide flux at subaerial volcanoes.
The particle-rich plumes and most exhalations originate from Brimstone Pit crater; however, diffuse degassing at the summit generates hydrothermal plumes as well. Because the water in the plumes is warmer than surrounding seawater, it rises under its own buoyancy about above the vents. The water in the plumes is acidic and enriched in aluminum, the helium isotope helium-3, iron, manganese, phosphorus, silicon and sulfur are enriched in the plumes. The composition of the plumes depends on the location of their vents and changes during their ascent.
The carbon dioxide forms clear bubbles, which consist of about 90% and 10% . These bubbles are on average wide and quickly rise owing to their buoyancy. Some vents continuously emit carbon dioxide bubbles, others only cyclically. Sulfur is generated by the mixture of sulfur-containing gases with water and forms droplets of liquid sulfur. Sulfur globules form from such droplets; they cover the ground like a powdery dusting and have been recovered from the surfaces of ROVs. Sulfur accumulating in the slopes forms agglomerates and crusts which cement the slopes, reducing their instability.
NW Rota-1 also emits aluminium sulfate-phosphate such as alunite and woodhousite group minerals, iron oxyhydroxydes and sulfuric acid. It is the first volcano known to vent alunite minerals. These compounds appear to originate both through direct venting from the volcano, interactions with seawater and the interaction of the exhalations with the volcanic rocks.
Biology
Vents above Brimstone Pit and on the eastern ridge are covered with microbial mats and these in turn are frequented by animals such as copepods, crabs, limpets, polychaetes and shrimp. The microbial mats are chemoautotrophic. These animals feed not only on the microbial mats but also on other animals killed by the volcanic activity. There are no sessile animals other than rare limpets, presumably due to the intense volcanism and unstable conditions. A larger animal community has been found at the northwestern summit; it includes amphipods, anenomes, copepods, crabs, fish, isopods, jellyfish, ostracods and polychaetes.
The caridean shrimp Alvinocaris marimonte was discovered from populations on NW Rota-1, Myojin Knoll and NW Eifuku seamount. The animals found at NW Rota-1 and NW Eifuku have a distinct appearance. Other animals from NW Rota-1 are the limpet Shinkailepas sp., the copepods Ameira sp., Ameiropsis minor, Amphiascus minutus, Cyclopina sp., Halectinosoma angulifrons and Tisbe furcata, bresiliid shrimp Opaepele loihi, the crab Gandalfus yunohana and the polychaete Branchinotogluma sp..
The communities south of the summit were decimated by the 2009 landslide. The reduction of activity after 2010 allowed the communities to expand, and new species appeared.
Eruption history and activity
The Brimstone Pit crater is probably a recent vent, given its small size. The rocky outcrops are older. The structure of the volcanic deposits suggests that long pauses between eruptions are rare at NW Rota-1.
Eruptions took place in 2004, 2005, 2006 – each of the eruptions occurred in a different physical context and with different characteristics – 2009 and 2010. Activity appears to be continuous but variable over this time and until 2014 - when a ROV dive found no activity - each dive to NW Rota-1 found the volcano in eruption:
In March–April 2004, Brimstone Pit erupted bursts of ash and lapilli and a yellow plume containing droplets of liquid sulfur rose from the crater. Turbid plumes formed by volcanic glass spread at greater depths to distances of ; they were formed either as gravity flows of sediment or through mass wasting of eruption deposits around Brimstone Pit.
In October 2005, eruptive activity could be seen from a closer distance and was similar to that in 2004. No turbid plumes were observed at depth, but mass flows were occurring around the crater.
The April 2006 eruption, which was observed shortly after a collapse of the cinder cone, began as an effusive eruption from multiple vents and subsequently became explosive and focused on a single vent. Clouds of droplets were emitted prior to the extrusion of lava, which was itself accompanied by the emission of sulfur and ash. Turbid plumes similar to these in 2004 were observed again, initially obscuring the view of the seafloor. Presumably these plumes were caused by a collapse of the cinder cone.
In 2009, the extrusion of lava was observed. It would slowly emerge from the vent, and blocks of lava would fragment and tumble down at the side of the vent. This process was accompanied by intense degassing, a yellowing of the plumes from sulfur and emission of tephra. A seismic swarm took place northwest of NW Rota-1 in April 2009 and was presumably caused by magma intrusion, which may relate to the subsequent eruption.
In 2010 activity occurred at all five vents. Some vents undergoing mainly passive degassing and others mild explosive activity or a combination of the two patterns.
The eruptions at Brimstone Pit resemble Strombolian eruptions on land, with a similar high gas flow and low magma supply. In such eruptions, each burst corresponds to the arrival of bubble-rich melt at the vent. The gas accumulates in the debris-blocked conduit and pressurizes it, until the pressure clears the blockage and a plume escapes. Volcanic bombs and debris are ejected during the eruptions and cover the slopes of the volcano.
Contact between seawater and magma causes brief steam explosions. This is followed by the abrupt condensation of the steam and the collapse of bubbles, which are recorded by hydrophones as pulsating sounds. Water-magma interaction also produces pyroclastics or alters them after they have been ejected. The eruptions appear to be part of a long-term eruption during which cones form and collapse at Brimstone Pit and water in the magma drives explosive bursts.
Eruptions at NW Rota-1 did not breach the surface and are unlikely to do so in the future. If not for fortuitous observations the activity of NW Rota-1 would not have been discovered.
Hydrophone records
In 2008 and 2009, hydrophones recorded a cyclical activity, with bursts of acoustic signals lasting one to several minutes separated by pauses less than a minute long. Each burst consisted of hundreds of pulses, each several tenths of a second long. An intense acoustic signal recorded between 12 and 16 August 2009 exhibited high amplitudes and low frequencies, with two distinct pulses on 14 August 2009. This signal has been interpreted as an intense explosive eruption which led to the landslide on 14 August 2009. After the landslide the volcano became acoustically quiet for some time before sound levels increased again. Between 2009 and 2010 hydrophones recorded numerous acoustic signals, reflecting the steady eruptions, and tremors which may originate in the magmatic conduit although most of the acoustic signals appear to come from the vent. Apart from an increased amplitude in the burst cycles, the acoustic signal in 2010 was similar to that of 2009.
References
Sources
External links
Cruise/dive reports
Bacteria at NW Rota-1
Seamounts of the Pacific Ocean
Mariana Islands
Active volcanoes
Submarine volcanoes
|
```javascript
Defaults values apply only to `undefined` (and not to `null`)
Proxies
ES6 `Number` methods
Maps and Sets in ES6
Tail call optimisation in ES6
```
|
```c++
// Boost.Range library concept checks
//
// accompanying file LICENSE_1_0.txt or copy at
// path_to_url
//
#ifndef BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
#define BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
#include <boost/concept_check.hpp>
namespace boost
{
namespace range_detail
{
template<typename T1, typename T2>
class SameTypeConcept
{
public:
BOOST_CONCEPT_USAGE(SameTypeConcept)
{
same_type(a,b);
}
private:
template<typename T> void same_type(T,T) {}
T1 a;
T2 b;
};
}
}
#endif // include guard
```
|
```python
"""
This module provides a pool manager that uses Google App Engine's
`URLFetch Service <path_to_url`_.
Example usage::
from urllib3 import PoolManager
from urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox
if is_appengine_sandbox():
# AppEngineManager uses AppEngine's URLFetch API behind the scenes
http = AppEngineManager()
else:
# PoolManager uses a socket-level API behind the scenes
http = PoolManager()
r = http.request('GET', 'path_to_url
There are `limitations <path_to_url
urlfetch/#Python_Quotas_and_limits>`_ to the URLFetch service and it may not be
the best choice for your application. There are three options for using
urllib3 on Google App Engine:
1. You can use :class:`AppEngineManager` with URLFetch. URLFetch is
cost-effective in many circumstances as long as your usage is within the
limitations.
2. You can use a normal :class:`~urllib3.PoolManager` by enabling sockets.
Sockets also have `limitations and restrictions
<path_to_url
#limitations-and-restrictions>`_ and have a lower free quota than URLFetch.
To use sockets, be sure to specify the following in your ``app.yaml``::
env_variables:
GAE_USE_SOCKETS_HTTPLIB : 'true'
3. If you are using `App Engine Flexible
<path_to_url`_, you can use the standard
:class:`PoolManager` without any configuration or special environment variables.
"""
from __future__ import absolute_import
import io
import logging
import warnings
from ..exceptions import (
HTTPError,
HTTPWarning,
MaxRetryError,
ProtocolError,
SSLError,
TimeoutError,
)
from ..packages.six.moves.urllib.parse import urljoin
from ..request import RequestMethods
from ..response import HTTPResponse
from ..util.retry import Retry
from ..util.timeout import Timeout
from . import _appengine_environ
try:
from google.appengine.api import urlfetch
except ImportError:
urlfetch = None
log = logging.getLogger(__name__)
class AppEnginePlatformWarning(HTTPWarning):
pass
class AppEnginePlatformError(HTTPError):
pass
class AppEngineManager(RequestMethods):
"""
Connection manager for Google App Engine sandbox applications.
This manager uses the URLFetch service directly instead of using the
emulated httplib, and is subject to URLFetch limitations as described in
the App Engine documentation `here
<path_to_url`_.
Notably it will raise an :class:`AppEnginePlatformError` if:
* URLFetch is not available.
* If you attempt to use this on App Engine Flexible, as full socket
support is available.
* If a request size is more than 10 megabytes.
* If a response size is more than 32 megabytes.
* If you use an unsupported request method such as OPTIONS.
Beyond those cases, it will raise normal urllib3 errors.
"""
def __init__(
self,
headers=None,
retries=None,
validate_certificate=True,
urlfetch_retries=True,
):
if not urlfetch:
raise AppEnginePlatformError(
"URLFetch is not available in this environment."
)
warnings.warn(
"urllib3 is using URLFetch on Google App Engine sandbox instead "
"of sockets. To use sockets directly instead of URLFetch see "
"path_to_url",
AppEnginePlatformWarning,
)
RequestMethods.__init__(self, headers)
self.validate_certificate = validate_certificate
self.urlfetch_retries = urlfetch_retries
self.retries = retries or Retry.DEFAULT
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
# Return False to re-raise any potential exceptions
return False
def urlopen(
self,
method,
url,
body=None,
headers=None,
retries=None,
redirect=True,
timeout=Timeout.DEFAULT_TIMEOUT,
**response_kw
):
retries = self._get_retries(retries, redirect)
try:
follow_redirects = redirect and retries.redirect != 0 and retries.total
response = urlfetch.fetch(
url,
payload=body,
method=method,
headers=headers or {},
allow_truncated=False,
follow_redirects=self.urlfetch_retries and follow_redirects,
deadline=self._get_absolute_timeout(timeout),
validate_certificate=self.validate_certificate,
)
except urlfetch.DeadlineExceededError as e:
raise TimeoutError(self, e)
except urlfetch.InvalidURLError as e:
if "too large" in str(e):
raise AppEnginePlatformError(
"URLFetch request too large, URLFetch only "
"supports requests up to 10mb in size.",
e,
)
raise ProtocolError(e)
except urlfetch.DownloadError as e:
if "Too many redirects" in str(e):
raise MaxRetryError(self, url, reason=e)
raise ProtocolError(e)
except urlfetch.ResponseTooLargeError as e:
raise AppEnginePlatformError(
"URLFetch response too large, URLFetch only supports"
"responses up to 32mb in size.",
e,
)
except urlfetch.SSLCertificateError as e:
raise SSLError(e)
except urlfetch.InvalidMethodError as e:
raise AppEnginePlatformError(
"URLFetch does not support method: %s" % method, e
)
http_response = self._urlfetch_response_to_http_response(
response, retries=retries, **response_kw
)
# Handle redirect?
redirect_location = redirect and http_response.get_redirect_location()
if redirect_location:
# Check for redirect response
if self.urlfetch_retries and retries.raise_on_redirect:
raise MaxRetryError(self, url, "too many redirects")
else:
if http_response.status == 303:
method = "GET"
try:
retries = retries.increment(
method, url, response=http_response, _pool=self
)
except MaxRetryError:
if retries.raise_on_redirect:
raise MaxRetryError(self, url, "too many redirects")
return http_response
retries.sleep_for_retry(http_response)
log.debug("Redirecting %s -> %s", url, redirect_location)
redirect_url = urljoin(url, redirect_location)
return self.urlopen(
method,
redirect_url,
body,
headers,
retries=retries,
redirect=redirect,
timeout=timeout,
**response_kw
)
# Check if we should retry the HTTP response.
has_retry_after = bool(http_response.headers.get("Retry-After"))
if retries.is_retry(method, http_response.status, has_retry_after):
retries = retries.increment(method, url, response=http_response, _pool=self)
log.debug("Retry: %s", url)
retries.sleep(http_response)
return self.urlopen(
method,
url,
body=body,
headers=headers,
retries=retries,
redirect=redirect,
timeout=timeout,
**response_kw
)
return http_response
def _urlfetch_response_to_http_response(self, urlfetch_resp, **response_kw):
if is_prod_appengine():
# Production GAE handles deflate encoding automatically, but does
# not remove the encoding header.
content_encoding = urlfetch_resp.headers.get("content-encoding")
if content_encoding == "deflate":
del urlfetch_resp.headers["content-encoding"]
transfer_encoding = urlfetch_resp.headers.get("transfer-encoding")
# We have a full response's content,
# so let's make sure we don't report ourselves as chunked data.
if transfer_encoding == "chunked":
encodings = transfer_encoding.split(",")
encodings.remove("chunked")
urlfetch_resp.headers["transfer-encoding"] = ",".join(encodings)
original_response = HTTPResponse(
# In order for decoding to work, we must present the content as
# a file-like object.
body=io.BytesIO(urlfetch_resp.content),
msg=urlfetch_resp.header_msg,
headers=urlfetch_resp.headers,
status=urlfetch_resp.status_code,
**response_kw
)
return HTTPResponse(
body=io.BytesIO(urlfetch_resp.content),
headers=urlfetch_resp.headers,
status=urlfetch_resp.status_code,
original_response=original_response,
**response_kw
)
def _get_absolute_timeout(self, timeout):
if timeout is Timeout.DEFAULT_TIMEOUT:
return None # Defer to URLFetch's default.
if isinstance(timeout, Timeout):
if timeout._read is not None or timeout._connect is not None:
warnings.warn(
"URLFetch does not support granular timeout settings, "
"reverting to total or default URLFetch timeout.",
AppEnginePlatformWarning,
)
return timeout.total
return timeout
def _get_retries(self, retries, redirect):
if not isinstance(retries, Retry):
retries = Retry.from_int(retries, redirect=redirect, default=self.retries)
if retries.connect or retries.read or retries.redirect:
warnings.warn(
"URLFetch only supports total retries and does not "
"recognize connect, read, or redirect retry parameters.",
AppEnginePlatformWarning,
)
return retries
# Alias methods from _appengine_environ to maintain public API interface.
is_appengine = _appengine_environ.is_appengine
is_appengine_sandbox = _appengine_environ.is_appengine_sandbox
is_local_appengine = _appengine_environ.is_local_appengine
is_prod_appengine = _appengine_environ.is_prod_appengine
is_prod_appengine_mvms = _appengine_environ.is_prod_appengine_mvms
```
|
Space Fury is a 1981 multidirectional shooter arcade game developed by Gremlin. Sega/Gremlin released the game in North America in June 1981, and then Sega released it in Japan in July 1981. It is the first game with color vector graphics, and it was Sega's second game to use speech synthesis. Coleco published a ColecoVision version with raster graphics in 1983.
Gameplay
The player controls a spaceship battling alien spacecraft. It is controlled by four buttons: rotate left, rotate right, thrust and fire. The player could collect different upgrades for the first three levels. One upgrade allows the player to shoot in a three-way pattern, the second allows the player to fire forward and backwards simultaneously, and the third concentrates firepower in the front.
At the conclusion of the following round, the player picks another shell, although multiple ones cannot be used together. Between rounds and during the attract mode, the Alien Commander taunts the player through the use of synthesized speech. The game continues indefinitely but stops calculating the score after the completion of level four.
At the beginning of each level a synthesized excerpt from Aaron Copland's Fanfare for the Common Man is played.
Alien Commander's quotes
"Does anyone dare challenge my Imperial fleet?"
"So! A creature for my amusement. Prepare for battle!"
"So you defeated my scouts? Well, my cruisers will destroy you."
"You are starting to annoy me, Creature. My destroyers will annihilate you!"
"You survived! Warships, dispose of this annoyance at once!"
"Well done. Prepare to battle my entire fleet!"
"Our battle is completed, Warrior. You were an [easy / amusing / adequate / stimulating / outstanding] opponent" (depending on score).
Development
Space Fury was the first released vector graphics game to use a color monitor, developed by Electrohome. This X-Y monitor became a standard piece of kit in the G-80 graphics system developed at Sega/Gremlin as an interchangeable arcade system which could feature either a vector or raster game in the arcade cabinet.
The game was developed and programmed by Sega/Gremlin game designer Murphy Bivens and shares a resemblance to Atari's Asteroids. Bivens notably reduced the amount of inertia the ship experienced while moving in any direction while keeping features such as the screen wrap-around. To make the gameplay more interesting, he also added the option for players to choose a variable weapon between stages. This marks the first instance of a shoot 'em up game providing players with the option to upgrade their ship's firepower.
One additional innovation of Space Fury was the use of a character who provided lines via speech synthesis, an alien commander. The speech was generated using the General Instrument SP0256-19 with voice samples provided by a DJ with a deep voice which was easier to modulate. The same voice actor would be responsible for the voice clips used in Star Trek: Strategic Operations Simulator.
The monitors used in the game (the G08) were infamous for being unreliable, due to a deflector amplification circuit put in place by the company Electrohome. Reportedly this circuit was in place to circumnavigate vector technology patented by Atari, but caused a great deal of electronic failure as the machines were powered on and off. Later revisions of the G08 vector monitors amended this problem.
Reception
Raymond Dimetrosky of Video Games Player gave the ColecoVision version a generally positive review. He called the original arcade game "one of the best games to follow in the wake of Asteroids" while praising the accuracy of the conversion. He criticized the lack of the arcade game's speech synthesis, but praised the replacement music. He also compared the game unfavorably with another ColecoVision arcade port released about the same time, Nintendo's Donkey Kong Jr.
Legacy
The alien commander who appears in the game and on the marquee also makes an appearance in the video game Zektor, also designed by Murphy Bivens and released by Sega/Gremlin.
The game is included as an unlockable game in the PSP version of Sega Genesis Collection.
References
External links
Space Fury at Arcade History
Sega video games
1981 video games
Arcade video games
Vector arcade video games
ColecoVision games
Sega arcade games
Gremlin Industries games
Multidirectional shooters
Video games developed in the United States
|
```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.
*/
#include "fibonacci_single_task.h"
#include "fibonacci_two_tasks.h"
#include <iostream>
#include <numeric>
#include <utility>
int cutoff;
bool testing_enabled;
template <typename F>
std::pair</* result */ unsigned long, /* time */ unsigned long> measure(F&& f,
int number,
unsigned long ntrial) {
std::vector<unsigned long> times;
unsigned long result;
for (unsigned long i = 0; i < ntrial; ++i) {
auto t1 = std::chrono::steady_clock::now();
result = f(number);
auto t2 = std::chrono::steady_clock::now();
auto time = std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count();
times.push_back(time);
}
return std::make_pair(
result,
static_cast<unsigned long>(std::accumulate(times.begin(), times.end(), 0) / times.size()));
}
int main(int argc, char* argv[]) {
int numbers = argc > 1 ? strtol(argv[1], nullptr, 0) : 50;
cutoff = argc > 2 ? strtol(argv[2], nullptr, 0) : 16;
unsigned long ntrial = argc > 3 ? (unsigned long)strtoul(argv[3], nullptr, 0) : 20;
testing_enabled = argc > 4 ? (bool)strtol(argv[4], nullptr, 0) : false;
auto res = measure(fibonacci_two_tasks, numbers, ntrial);
std::cout << "Fibonacci two tasks impl N = " << res.first << " Avg time = " << res.second
<< " ms" << std::endl;
res = measure(fibonacci_single_task, numbers, ntrial);
std::cout << "Fibonacci single task impl N = " << res.first << " Avg time = " << res.second
<< " ms" << std::endl;
}
```
|
Powell's Tavern is a historic inn and tavern located at Manakin, Goochland County, Virginia. The earliest section was built about 1808, with additions made by 1815 and 1820. It is a two-story, "H"-shaped brick and frame building. The original section is a two-story frame block with a gable roof and two low one-story wings with shed roofs. It is connected to the later two-story, five-bay brick section by a two-story hyphen added in 1958.
It was listed on the National Register of Historic Places in 1973.
References
Drinking establishments on the National Register of Historic Places in Virginia
Federal architecture in Virginia
Commercial buildings completed in 1802
Buildings and structures in Goochland County, Virginia
National Register of Historic Places in Goochland County, Virginia
|
One Woman to Another is a lost 1927 American silent comedy film directed by Frank Tuttle and written by J.L. Campbell and George Marion Jr. based upon a play by Frances Nordstrom. The film stars Florence Vidor, Theodore von Eltz, Marie Shotwell, Hedda Hopper, Roy Stewart and Joyce Coad. The film was released on September 17, 1927, by Paramount Pictures.
Cast
Florence Vidor as Rita Farrell
Theodore von Eltz as John Bruce
Marie Shotwell as Mrs. Gray
Hedda Hopper as Olive Gresham
Roy Stewart as Rev. Robert Farrell
Joyce Coad as The Niece
Jimmy Boudwin as The Nephew
References
External links
1927 films
1920s English-language films
Silent American comedy films
1927 comedy films
Paramount Pictures films
Films directed by Frank Tuttle
American black-and-white films
Lost American comedy films
American silent feature films
English-language comedy films
1927 lost films
1920s American films
|
Lekh Raj Bhatta () is a Nepalese politician, belonging to the CPN (UML). Bhatta is the former member of Constituent Assembly. Bhatta is the secretary of CPN (UML).
Political life
He also served as Minister for Labour and Transport in First Dahal cabinet and Minister of Industry, Commerce and Supplies in Second Oli cabinet .In the 2008 Constituent Assembly election he was elected from the Kailali-5 constituency, winning 17979 votes. Again he served as Member of constituent Assembly in 2013 from Kailali-5. He was the former Member of House of Representatives elected from kailali-5.
Personal life
He was born on March 24, 1960. His father name was Dasharath Bhatt and Mother Name is Durga Devi Bhatta.
Political career
Bhatta joined politics in 1973 and took the membership of Nepal Communist Party (Fourth Convention) led by Mohan Bikram Singh in 1976. He later joined CPN (Masaal) and CPN (Unity Center) to finally become a full-time member of CPN-Maoist in 1995. He went on to become central member in 2001 and politburo member. He was jailed for six months during the armed conflict launched by CPN-Maoist.
In the CA Election 2008, Bhatta was elected from Kailali-5 with 17,979 votes. His closest opponent Dirgha Raj Bhatta (NC) received 13,638 votes while Hari Shankar Yogi (CPN-UML) got 7,597 votes to come in third position.
Bhatta was appointed as Labor Minister in the government led by Pushpa Kamal Dahal 'Prachanda'. He looked after the Ministry for Commerce and Supplies in the government led by Dr. Baburam Bhattarai.
Now He is the standing committee member of Nepal Communist Party
See also
2021 split in Communist Party of Nepal (Maoist Centre)
References
Communist Party of Nepal (Unified Marxist–Leninist) politicians
Living people
Nepalese atheists
People from Doti District
1960 births
Nepal MPs 2017–2022
Nepal Communist Party (NCP) politicians
Members of the 1st Nepalese Constituent Assembly
|
```objective-c
#pragma once
#ifndef TNZIMAGE_INCLUDED
#define TNZIMAGE_INCLUDED
#include "tcommon.h"
#undef DVAPI
#undef DVVAR
#ifdef IMAGE_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
DVAPI void initImageIo(bool lightVersion = false);
#endif
```
|
Eunidia cylindricollis is a species of beetle in the family Cerambycidae. It was described by Stephan von Breuning in 1953.
References
Eunidiini
Beetles described in 1953
|
```objective-c
/*your_sha256_hash---------
*
* ruleutils.h
* Declarations for ruleutils.c
*
*
* src/include/utils/ruleutils.h
*
*your_sha256_hash---------
*/
#ifndef RULEUTILS_H
#define RULEUTILS_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
struct Plan; /* avoid including plannodes.h here */
struct PlannedStmt;
extern char *pg_get_indexdef_string(Oid indexrelid);
extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty);
extern char *pg_get_partkeydef_columns(Oid relid, bool pretty);
extern char *pg_get_partconstrdef_string(Oid partitionId, char *aliasname);
extern char *pg_get_constraintdef_command(Oid constraintId);
extern char *deparse_expression(Node *expr, List *dpcontext,
bool forceprefix, bool showimplicit);
extern List *deparse_context_for(const char *aliasname, Oid relid);
extern List *deparse_context_for_plan_tree(struct PlannedStmt *pstmt,
List *rtable_names);
extern List *set_deparse_context_plan(List *dpcontext,
struct Plan *plan, List *ancestors);
extern List *select_rtable_names_for_explain(List *rtable,
Bitmapset *rels_used);
extern char *generate_collation_name(Oid collid);
extern char *generate_opclass_name(Oid opclass);
extern char *get_range_partbound_string(List *bound_datums);
extern char *pg_get_statisticsobjdef_string(Oid statextid);
#endif /* RULEUTILS_H */
```
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_INCLUDE_EXPORT_H_
#define STORAGE_LEVELDB_INCLUDE_EXPORT_H_
#if !defined(LEVELDB_EXPORT)
#if defined(LEVELDB_SHARED_LIBRARY)
#if defined(_WIN32)
#if defined(LEVELDB_COMPILE_LIBRARY)
#define LEVELDB_EXPORT __declspec(dllexport)
#else
#define LEVELDB_EXPORT __declspec(dllimport)
#endif // defined(LEVELDB_COMPILE_LIBRARY)
#else // defined(_WIN32)
#if defined(LEVELDB_COMPILE_LIBRARY)
#define LEVELDB_EXPORT __attribute__((visibility("default")))
#else
#define LEVELDB_EXPORT
#endif
#endif // defined(_WIN32)
#else // defined(LEVELDB_SHARED_LIBRARY)
#define LEVELDB_EXPORT
#endif
#endif // !defined(LEVELDB_EXPORT)
#endif // STORAGE_LEVELDB_INCLUDE_EXPORT_H_
```
|
Edwin William Stephens or E. W. Stephens (1849–1931) was an American publisher, journalist, and prominent leader in civic and religious affairs from Columbia, Missouri. He founded E.W. Stephens Publishing Company and published a daily newspaper known as the Columbia Herald. A prominent Baptist, he was president of the Southern Baptist Convention. In 1911 he chaired the committee that designed and built the Missouri State Capitol. He served president of the board of curators of both the University of Missouri and Stephens College, the latter being named after his father James Stephens.
Biography
Edwin William Stephens was born in into a prominent family in Columbia, Missouri on January 21, 1849. He graduated from the University of Missouri in 1867. He was hired by William Switzler, publisher of the Missouri Statesman. In 1870 he went into business for himself, eventually founding the Columbia Herald, which became famous as "America's model weekly." He also founded the E.W. Stephens Publishing Company. Stephens served as president of the board of curators for both the University of Missouri and Stephens College, which was named after his father James L. Stephens. In 1890 he was president of the Missouri Press Association where he would advocate for the creation of the Missouri State Historical Society and became its first president in 1898. His relationship with Walter Williams, who he employed at the Herald, would lead to the creation of the world's first school of journalism: the Missouri School of Journalism. Stephens chaired the commission responsible for the design and construction of the current Missouri State Capitol.
He was a lifelong member and leader of First Baptist Church in Columbia. He died at his home on May 21, 1931, and is buried in the Columbia Cemetery.
See also
Boone County Historical Society
List of Southern Baptist Convention affiliated people
Southern Baptist Convention
Southern Baptist Convention Presidents
References
1849 births
1931 deaths
Stephens College people
Journalists from Missouri
American publishers (people)
University of Missouri alumni
University of Missouri curators
Writers from Columbia, Missouri
Burials at Columbia Cemetery (Columbia, Missouri)
Southern Baptist Convention presidents
|
The play-off round of the 2019 AFC Asian Cup qualification was played from 2 June to 11 October 2016.
Format
A total of 11 teams (the four lowest-ranked fourth-placed teams and the seven fifth-placed teams of the Asian Cup qualifying second round) competed in the play-off round. Originally, 12 teams were supposed to compete, but there were only seven instead of eight fifth-placed teams after Indonesia were disqualified due to FIFA suspension.
The play-off round consisted of two rounds of home-and-away two-legged play-off matches to determine the final eight qualifiers for the Asian Cup qualifying third round:
Round 1: The ten highest-seeded teams were drawn into five ties. The five winners advanced to the Asian Cup qualifying third round, while the five losers entered Round 2.
Round 2: The six teams (the lowest-seeded team and the five Round 1 losers) were drawn into three ties. The three winners advanced to the Asian Cup qualifying third round, while the three losers were eligible to enter the AFC Solidarity Cup.
The five Round 1 winners and three Round 2 winners joined the 16 teams which advanced directly from the Asian Cup qualifying second round to the third round, to compete for the final 12 slots in the 2019 AFC Asian Cup.
The three Round 2 losers joined the six teams which lost in the Asian Cup qualifying first round, to compete for the 2016 AFC Solidarity Cup.
Qualified teams
Seeding
The draw for the play-off round was held on 7 April 2016, 15:00 MYT (UTC+8), at the AFC House in Kuala Lumpur, Malaysia.
The teams were seeded based on their results in the Asian Cup qualifying second round.
In Round 1, each tie contained a team from Pot 1 and a team from Pot 2, with the team from Pot 1 hosting the first leg.
In Round 2, there were no seeding. As the draw was held before Round 1 was played, the identities of the Round 1 losers were not known at the time of the draw.
Matches
Each tie was played on a home-and-away two-legged basis. The away goals rule, extra time (away goals do not apply in extra time) and penalty shoot-out were used to decide the winner if necessary (Regulations Article 10.3).
Round 1
The first legs were played on 2 June, and the second legs were played on 6–7 June 2016.
|}
Note: Timor-Leste were ordered by the AFC to forfeit both matches against Malaysia due to the use of falsified documents for their players. Both matches originally ended as 3–0 wins to Malaysia.
Cambodia won 4–2 on aggregate and advanced to the Asian Cup qualifying third round. Chinese Taipei entered round 2.
Yemen won 4–0 on aggregate and advanced to the Asian Cup qualifying third round. Maldives entered round 2.
Tajikistan won 6–0 on aggregate and advanced to the Asian Cup qualifying third round. Bangladesh entered round 2.
Malaysia won 6–0 on aggregate and advanced to the Asian Cup qualifying third round. Timor-Leste entered round 2.
India won 7–1 on aggregate and advanced to the Asian Cup qualifying third round. Laos entered round 2.
Round 2
The first legs were played on 6 September and 8 October, and the second legs were played on 10 and 11 October 2016.
|}
Maldives won 5–1 on aggregate and advanced to the Asian Cup qualifying third round. Laos were eligible to enter the Solidarity Cup.
Bhutan won 3–1 on aggregate and advanced to the Asian Cup qualifying third round. Bangladesh were eligible to enter the Solidarity Cup.
Chinese Taipei won 4–2 on aggregate and advanced to the Asian Cup qualifying third round. Timor-Leste were eligible to enter the Solidarity Cup.
Goalscorers
Notes
References
External links
, the-AFC.com
AFC Asian Cup UAE 2019, stats.the-AFC.com
QualP
P
June 2016 sports events in Asia
September 2016 sports events in Asia
October 2016 sports events in Asia
|
Davy Crockett: King of the Wild Frontier is a 1955 American Western film produced by Walt Disney Productions. It is an edited and recut compilation of the first three episodes of the Davy Crockett television miniseries. The episodes used were Davy Crockett Indian Fighter, Davy Crockett Goes to Congress, and Davy Crockett at the Alamo. The film stars Fess Parker as Davy Crockett.
Plot
Creek Indian Wars
Two Tennessee wilderness settlers, Davy Crockett and his best friend George Russell (son of Captain William Russell and Agness H. Mccollough), volunteer to fight with General Andrew Jackson and Major Tobias Norton in the Creek War (1813-1814). They return home after a successful battle, to make sure their families have enough provisions for the winter, rejoining a short time later to find the Americans at a stalemate against the Creeks, with Jackson having gone to New Orleans. Against Norton's orders, Crockett and Russell scout for Creek positions, and Russell is captured.
Crockett tracks the Creeks to their camp, where he challenges the remaining Creek chief, Red Stick, to a tomahawk duel for Russell's life. Crockett wins, but agrees to spare Red Stick's life in exchange for his signing the American peace treaty.
Off to Congress
Crockett and Russell head west to scout virgin territory being opened for settlement, planning to send for Davy's family once a cabin has been built. They acquire a claim after beating Bigfoot Mason in a shooting contest. They learn that Mason is running Native Americans off their land in order to resell it, and befriend a family of Cherokee refugees Mason has victimized. Crockett offers to become the magistrate for the area. Crockett defeats Mason in hand-to-hand combat before arresting him and his surviving accomplice (the other one having been shot dead when he tried to shoot Crockett).
Crockett is convinced to run for the state legislature against Amos Thorpe, a corrupt politician in league with men trying to claim Cherokee lands, who is running unopposed. He then receives a letter from his sister-in-law telling him that his wife has died of a fever. Crockett wins the election handily and becomes a popular member of the Tennessee General Assembly. He reunites with Norton and Andrew Jackson, who is running for President of the United States and convinces him to run for the United States House of Representatives.
After he enters Congress, Norton, trying to pass a bill to usurp Native American treaty lands, has Crockett embark on a speaking tour across the eastern United States to distract him, but Russell learns of the bill and brings Crockett back to Washington to argue against it. Crockett tears the bill in half before leaving, ending his political career.
The Alamo
Crockett decides to join the Battle of the Alamo (1836), joined by George Russell. While traveling to San Antonio, they are joined by Thimblerig, a riverboat gambler, and Busted Luck, a Comanche tribesman. Reaching the Alamo, they join its defense, though Colonel James Bowie confides that their supplies are dangerously low. Russell manages to slip through the enemy lines to try to bring back help, only to return empty-handed. The Texan garrison withstands several attacks from Mexican troops before being overcome. George Russell, Thimblerig, Busted Luck, Travis, and a bedridden Colonel Bowie are all killed, leaving Crockett the sole defender standing. Crockett is last seen swinging his rifle against the encroaching Mexicans; the scene then fades to a shot of the Lone Star Flag and Crockett's journal closing on its last entry "March 6, 1836 - Liberty and Independence Forever!", accompanied by a reprise of "The Ballad of Davy Crockett".
Production
Most footage was shot in Tennessee and Wildwood Regional Park in Thousand Oaks, California.
The three segments comprising the film, which originally aired on Walt Disney's Disneyland, were popular enough for Walt Disney to release them theatrically. The film remains Disney's most successful television film project, inspiring two prequel episodes for the television series which were later released in theaters as Davy Crockett and the River Pirates.
Cast
Fess Parker as Davy Crockett
Buddy Ebsen as George "Georgie" Russell
William Bakewell as Tobias Norton
Basil Ruysdael as Andrew Jackson
Pat Hogan as Chief Red Stick
Mike Mazurki as Bigfoot Mason
Hans Conried as Thimblerig
Don Megowan as William B. Travis
Helene Stanley as Polly Crockett
Kenneth Tobey as James Bowie
Campbell Brown as Bruno
Jefferson Thompson as Charlie Two Shirts
Nick Cravat as Busted Luck
Jim Maddux as Congressman #1
Robert Booth as Congressman #2
Eugene Brindel as Billy Crockett
Benjamin Hornbuckle as Henderson
Henry Joyner as Swaney
Ray Whitetree as Johnny Crockett
Hal Youngblood as Opponent of political speaker
Songs
"The Ballad of Davy Crockett" – lyrics by Tom Blackburn, music by George Bruns, sung by The Wellingtons
"Farewell to the Mountains" – poem by Davy Crockett, music by George Bruns, sung by Fess Parker
See also
List of American films of 1955
References
External links
1955 films
1950s English-language films
Walt Disney Pictures films
1955 Western (genre) films
Cherokee in popular culture
Films directed by Norman Foster
Films produced by Walt Disney
American folklore films and television series
American Indian Wars films
Texas Revolution films
American Western (genre) films
1955 war films
Films set in 1813
Films set in 1814
Films set in 1836
Films set in Tennessee
Films shot in North Carolina
Films shot in Tennessee
Films shot in California
Films based on television series
Compilation films
Films about Andrew Jackson
Cultural depictions of Davy Crockett
Films about Native Americans
Films scored by George Bruns
Films edited from television programs
1950s American films
|
```c++
/*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "content/web_impl_win/npapi/PluginPackage.h"
#include "third_party/WebKit/Source/platform/MIMETypeRegistry.h"
#include "content/web_impl_win/npapi/PluginDatabase.h"
#include "content/web_impl_win/npapi/WebPluginImpl.h"
#include "third_party/WebKit/Source/bindings/core/v8/npruntime_impl.h"
#include "third_party/WebKit/Source/wtf/text/CString.h"
#include "third_party/WebKit/Source/wtf/text/WTFStringUtil.h"
#define PURE = 0
#include <Shlwapi.h>
#include <string.h>
namespace content {
static String getVersionInfo(const LPVOID versionInfoData, const String& info)
{
LPVOID buffer;
UINT bufferLength;
String subInfo = "\\StringfileInfo\\040904E4\\" + info; // english
bool retval = VerQueryValueW(versionInfoData,
const_cast<UChar*>(subInfo.charactersWithNullTermination().data()),
&buffer, &bufferLength);
if (!retval || bufferLength == 0) {
subInfo = "\\StringfileInfo\\080404b0\\" + info; // chinese
retval = VerQueryValueW(versionInfoData,
const_cast<UChar*>(subInfo.charactersWithNullTermination().data()),
&buffer, &bufferLength);
if (!retval || bufferLength == 0)
return String();
}
// Subtract 1 from the length; we don't want the trailing null character.
return String(reinterpret_cast<UChar*>(buffer), bufferLength - 1);
}
bool PluginPackage::isPluginBlacklisted()
{
if (name() == "Citrix ICA Client") {
// The Citrix ICA Client plug-in requires a Mozilla-based browser; see <rdar://6418681>.
return true;
}
if (name() == "Silverlight Plug-In") {
// workaround for <rdar://5557379> Crash in Silverlight when opening microsoft.com.
// the latest 1.0 version of Silverlight does not reproduce this crash, so allow it
// and any newer versions
static const PlatformModuleVersion slPluginMinRequired(0x51BE0000, 0x00010000);
if (compareFileVersion(slPluginMinRequired) < 0)
return true;
} else if (equalIgnoringCase(fileName(), "npmozax.dll")) {
// Bug 15217: Mozilla ActiveX control complains about missing xpcom_core.dll
return true;
} else if (equalIgnoringCase(fileName(), "npwpf.dll")) {
// Bug 57119: Microsoft Windows Presentation Foundation (WPF) plug-in complains about missing xpcom.dll
return true;
} else if (name() == "Yahoo Application State Plugin") {
// path_to_url
// Bug in Yahoo Application State plug-in earlier than 1.0.0.6 leads to heap corruption.
static const PlatformModuleVersion yahooAppStatePluginMinRequired(0x00000006, 0x00010000);
if (compareFileVersion(yahooAppStatePluginMinRequired) < 0)
return true;
}
return false;
}
void PluginPackage::determineQuirks(const String& mimeType)
{
if (mimeType == "application/x-shockwave-flash") {
static const PlatformModuleVersion flashTenVersion(0x00000000, 0x000a0000);
// Pre 10 Flash only requests windowless plugins if we return a mozilla user agent
if (compareFileVersion(flashTenVersion) < 0)
m_quirks.add(PluginQuirkWantsMozillaUserAgent);
m_quirks.add(PluginQuirkThrottleInvalidate);
m_quirks.add(PluginQuirkThrottleWMUserPlusOneMessages);
m_quirks.add(PluginQuirkFlashURLNotifyBug);
m_quirks.add(PluginQuirkEmulateIme);
}
if (name().contains("Microsoft") && name().contains("Windows Media")) {
// The WMP plugin sets its size on the first NPP_SetWindow call and never updates its size, so
// call SetWindow when the plugin view has a correct size
m_quirks.add(PluginQuirkDeferFirstSetWindowCall);
// Windowless mode does not work at all with the WMP plugin so just remove that parameter
// and don't pass it to the plug-in.
m_quirks.add(PluginQuirkRemoveWindowlessVideoParam);
// WMP has a modal message loop that it enters whenever we call it or
// ask it to paint. This modal loop can deliver messages to other
// windows in WebKit at times when they are not expecting them (for
// example, delivering a WM_PAINT message during a layout), and these
// can cause crashes.
m_quirks.add(PluginQuirkHasModalMessageLoop);
}
if (name() == "VLC Multimedia Plugin" || name() == "VLC Multimedia Plug-in") {
// VLC hangs on NPP_Destroy if we call NPP_SetWindow with a null window handle
m_quirks.add(PluginQuirkDontSetNullWindowHandleOnDestroy);
// VLC 0.8.6d and 0.8.6e crash if multiple instances are created.
// <rdar://problem/5773070> tracks allowing multiple instances when this
// bug is fixed.
m_quirks.add(PluginQuirkDontAllowMultipleInstances);
}
// The DivX plugin sets its size on the first NPP_SetWindow call and never updates its size, so
// call SetWindow when the plugin view has a correct size
if (mimeType == "video/divx")
m_quirks.add(PluginQuirkDeferFirstSetWindowCall);
// FIXME: This is a workaround for a problem in our NPRuntime bindings; if a plug-in creates an
// NPObject and passes it to a function it's not possible to see what root object that NPObject belongs to.
// Thus, we don't know that the object should be invalidated when the plug-in instance goes away.
// See <rdar://problem/5487742>.
if (mimeType == "application/x-silverlight")
m_quirks.add(PluginQuirkDontUnloadPlugin);
if (blink::MIMETypeRegistry::isJavaAppletMIMEType(mimeType)) {
// Because a single process cannot create multiple VMs, and we cannot reliably unload a
// Java VM, we cannot unload the Java plugin, or we'll lose reference to our only VM
m_quirks.add(PluginQuirkDontUnloadPlugin);
// Setting the window region to an empty region causes bad scrolling repaint problems
// with the Java plug-in.
m_quirks.add(PluginQuirkDontClipToZeroRectWhenScrolling);
}
if (mimeType == "audio/x-pn-realaudio-plugin") {
// Prevent the Real plugin from calling the Window Proc recursively, causing the stack to overflow.
m_quirks.add(PluginQuirkDontCallWndProcForSameMessageRecursively);
static const PlatformModuleVersion lastKnownUnloadableRealPlayerVersion(0x000B0B24, 0x00060000);
// Unloading RealPlayer versions newer than 10.5 can cause a hang; see rdar://5669317.
// FIXME: Resume unloading when this bug in the RealPlayer Plug-In is fixed (rdar://5713147)
if (compareFileVersion(lastKnownUnloadableRealPlayerVersion) > 0)
m_quirks.add(PluginQuirkDontUnloadPlugin);
}
}
bool PluginPackage::fetchInfo()
{
DWORD versionInfoSize, zeroHandle;
versionInfoSize = GetFileVersionInfoSizeW(const_cast<UChar*>(m_path.charactersWithNullTermination().data()), &zeroHandle);
if (versionInfoSize == 0)
return false;
Vector<char> versionInfoData;
versionInfoData.resize(versionInfoSize * 2);
if (!GetFileVersionInfoW(const_cast<UChar*>(m_path.charactersWithNullTermination().data()),
0, versionInfoSize, versionInfoData.data()))
return false;
m_name = getVersionInfo(versionInfoData.data(), "ProductName");
m_description = getVersionInfo(versionInfoData.data(), "FileDescription");
if (m_name.isNull() || m_description.isNull())
return false;
VS_FIXEDFILEINFO* info;
UINT infoSize;
if (!VerQueryValueW(versionInfoData.data(), L"\\", (LPVOID*) &info, &infoSize) || infoSize < sizeof(VS_FIXEDFILEINFO))
return false;
m_moduleVersion.leastSig = info->dwFileVersionLS;
m_moduleVersion.mostSig = info->dwFileVersionMS;
if (isPluginBlacklisted())
return false;
Vector<String> types;
getVersionInfo(versionInfoData.data(), "MIMEType").split('|', types);
Vector<String> extensionLists;
getVersionInfo(versionInfoData.data(), "FileExtents").split('|', extensionLists);
Vector<String> descriptions;
getVersionInfo(versionInfoData.data(), "FileOpenName").split('|', descriptions);
for (unsigned i = 0; i < types.size(); i++) {
String type = types[i].lower();
String description = i < descriptions.size() ? descriptions[i] : "";
String extensionList = i < extensionLists.size() ? extensionLists[i] : "";
Vector<String> extensionsVector;
extensionList.split(',', extensionsVector);
// Get rid of the extension list that may be at the end of the description string.
int pos = description.find("(*");
if (pos != -1) {
// There might be a space that we need to get rid of.
if (pos > 1 && description[pos - 1] == ' ')
pos--;
description = description.left(pos);
}
// Determine the quirks for the MIME types this plug-in supports
determineQuirks(type);
m_mimeToExtensions.add(type, extensionsVector);
m_mimeToDescriptions.add(type, description);
}
return true;
}
bool PluginPackage::load()
{
if (m_isVirtual) {
if (m_isLoaded)
return true;
bool loadOk = doLoad();
if (loadOk) {
m_isLoaded = true;
m_loadCount++;
}
return loadOk;
}
if (m_freeLibraryTimer.isActive()) {
ASSERT(m_module);
m_freeLibraryTimer.stop();
} else if (m_isLoaded) {
if (m_quirks.contains(PluginQuirkDontAllowMultipleInstances))
return false;
m_loadCount++;
return true;
} else {
WCHAR currentPath[MAX_PATH];
if (!::GetCurrentDirectoryW(MAX_PATH, currentPath))
return false;
String path = m_path.substring(0, m_path.reverseFind('\\'));
if (!::SetCurrentDirectoryW(path.charactersWithNullTermination().data()))
return false;
// Load the library
m_module = ::LoadLibraryExW(m_path.charactersWithNullTermination().data(), 0, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!::SetCurrentDirectoryW(currentPath)) {
if (m_module)
::FreeLibrary(m_module);
return false;
}
}
if (!m_module)
return false;
m_isLoaded = true;
m_NP_Initialize = (NP_InitializeFuncPtr)::GetProcAddress(m_module, "NP_Initialize");
m_NP_GetEntryPoints = (NP_GetEntryPointsFuncPtr)GetProcAddress(m_module, "NP_GetEntryPoints");
m_NPP_Shutdown = (NPP_ShutdownProcPtr)::GetProcAddress(m_module, "NP_Shutdown");
if (!m_NP_Initialize || !m_NP_GetEntryPoints || !m_NPP_Shutdown)
goto abort;
if (!doLoad())
goto abort;
m_loadCount++;
return true;
abort:
unloadWithoutShutdown();
return false;
}
bool PluginPackage::doLoad()
{
memset(&m_pluginFuncs, 0, sizeof(m_pluginFuncs));
m_pluginFuncs.size = sizeof(m_pluginFuncs);
NPError npErr;
npErr = m_NP_GetEntryPoints(&m_pluginFuncs);
if (npErr != NPERR_NO_ERROR)
return false;
initializeBrowserFuncs();
npErr = m_NP_Initialize(&m_browserFuncs);
if (npErr != NPERR_NO_ERROR)
return false;
return true;
}
unsigned PluginPackage::hash() const
{
const unsigned hashCodes[] = {
m_name.impl()->hash(),
m_description.impl()->hash(),
m_mimeToExtensions.size()
};
return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes);
}
bool PluginPackage::equal(const PluginPackage& a, const PluginPackage& b)
{
if (a.m_name != b.m_name)
return false;
if (a.m_description != b.m_description)
return false;
if (a.m_mimeToExtensions.size() != b.m_mimeToExtensions.size())
return false;
MIMEToExtensionsMap::const_iterator::Keys end = a.m_mimeToExtensions.end().keys();
for (MIMEToExtensionsMap::const_iterator::Keys it = a.m_mimeToExtensions.begin().keys(); it != end; ++it) {
if (!b.m_mimeToExtensions.contains(*it))
return false;
}
return true;
}
uint16_t PluginPackage::NPVersion() const
{
return NP_VERSION_MINOR;
}
}
```
|
241 Pizza is a Canadian franchise chain of quick-serve pizza restaurants headquartered in the Toronto district of Scarborough, Ontario.
241 Pizza has 62 locations across Ontario, predominantly in Southern Ontario, and has expanded throughout Canada with stores in other provinces across the country in Newfoundland, Manitoba, and Saskatchewan.
History
241 Pizza was founded in Toronto in 1986. Since then 241 Pizza has expanded across Ontario, and has locations in four provinces.
Coffee Time's parent company Chairman's Brand Corp. acquired 241 Pizza in October 2006.
See also
List of Canadian pizza chains
References
External links
Pizza chains of Canada
Regional restaurant chains in Canada
Companies based in Scarborough, Toronto
Restaurants established in 1986
Canadian companies established in 1986
1986 establishments in Ontario
|
Mathew Cheriankunnel (23 September 1930 – 30 March 2022) was an Indian Roman Catholic prelate, who served as a bishop of the Roman Catholic Diocese of Kurnool.
Biography
Born on 23 September 1930 in Kadayanicad, British Raj, he was ordained priest of the Pontifical Institute for Foreign Missions on 28 April 1962. He was appointed the first bishop of Nalgonda on 31 May 1976, and received his episcopal consecration on 3 May 1977, from Cardinal Duraisamy Simon Lourdusamy. He was appointed coadjutor bishop of Catholic Diocese of Kurnool on 22 December 1986, succeeding on 18 January 1988. He left the diocese government on 16 July 1991. Cheriankunnel died on 30 March 2022, at the age of 91.;
References
External links
Profile of Mons. Cheriankunnel www.catholic-hierarchy.org
·
1930 births
2022 deaths
People from Kurnool
20th-century Roman Catholic bishops in India
|
White River Provincial Park is a provincial park in British Columbia, Canada. It is located 27 km south of Sayward on Vancouver Island.
Recreation
Fishing and hiking is available within park boundaries. A short loop-trail to the White River allows viewing of giant old-growth Douglas Fir and Western Red Cedar trees. This area has apparently been referred to as the Cathedral Grove of northern Vancouver Island. Kelsey Bay Division (MacMillan Bloedel Ltd) fallers refused to fall this area in 1990 and it was left. This did not happen very often.
References
External links
BC Parks - White River Provincial Park
Northern Vancouver Island
Provincial parks of British Columbia
|
Levino () is a rural locality (a village) in Bereznikovskoye Rural Settlement, Sobinsky District, Vladimir Oblast, Russia. The population was 17 as of 2010.
Geography
Levino is located 14 km south of Sobinka (the district's administrative centre) by road. Shepeli is the nearest rural locality.
References
Rural localities in Sobinsky District
|
```java
/*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.inspector;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.util.Disposer;
import com.intellij.ui.components.JBLabel;
import com.intellij.util.ui.JBUI;
import com.intellij.util.ui.UIUtil;
import io.flutter.run.daemon.FlutterApp;
import io.flutter.vmService.HeapMonitor;
import io.flutter.vmService.HeapMonitor.HeapListener;
import io.flutter.vmService.HeapMonitor.HeapSample;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.awt.*;
import java.awt.geom.Path2D;
import java.util.LinkedList;
public class HeapDisplay extends JPanel {
public static JPanel createJPanelView(Disposable parentDisposable, FlutterApp app) {
final JPanel panel = new JPanel(new BorderLayout());
final JBLabel heapLabel = new JBLabel("", SwingConstants.RIGHT);
heapLabel.setAlignmentY(Component.BOTTOM_ALIGNMENT);
heapLabel.setFont(UIUtil.getLabelFont(UIUtil.FontSize.SMALL));
heapLabel.setForeground(UIUtil.getLabelDisabledForeground());
heapLabel.setBorder(JBUI.Borders.empty(4));
final HeapState heapState = new HeapState(60 * 1000);
final HeapDisplay graph = new HeapDisplay(state -> {
heapLabel.setText(heapState.getHeapSummary());
SwingUtilities.invokeLater(heapLabel::repaint);
});
graph.setLayout(new BoxLayout(graph, BoxLayout.X_AXIS));
graph.add(Box.createHorizontalGlue());
graph.add(heapLabel);
panel.add(graph, BorderLayout.CENTER);
final HeapListener listener = memoryUsages -> SwingUtilities.invokeLater(() -> {
heapState.handleMemoryUsage(memoryUsages);
graph.updateFrom(heapState);
panel.repaint();
});
assert app.getVMServiceManager() != null;
app.getVMServiceManager().addHeapListener(listener);
Disposer.register(parentDisposable, () -> app.getVMServiceManager().removeHeapListener(listener));
return panel;
}
private static Color getForegroundColor() {
return UIUtil.getLabelDisabledForeground();
}
private static final int TEN_MB = 1024 * 1024 * 10;
private static final Stroke GRAPH_STROKE = new BasicStroke(2f);
private interface SummaryCallback {
void updatedSummary(HeapState state);
}
@Nullable
private final SummaryCallback summaryCallback;
private @Nullable HeapState heapState;
public HeapDisplay(@Nullable SummaryCallback summaryCallback) {
this.summaryCallback = summaryCallback;
setVisible(true);
}
private void updateFrom(HeapState state) {
this.heapState = state;
if (!heapState.getSamples().isEmpty()) {
final HeapSample sample = heapState.getSamples().get(0);
if (summaryCallback != null) {
summaryCallback.updatedSummary(state);
}
}
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
if (heapState == null) {
return;
}
final int height = getHeight() - 1;
final int width = getWidth();
final long now = System.currentTimeMillis();
final long maxDataSize = Math.round(heapState.getCapacity() / (double)TEN_MB) * TEN_MB + TEN_MB;
final Graphics2D graphics2D = (Graphics2D)g;
graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
graphics2D.setColor(getForegroundColor());
graphics2D.setStroke(GRAPH_STROKE);
Path2D path = null;
for (HeapSample sample : heapState.getSamples()) {
final double x = width - (((double)(now - sample.getSampleTime())) / ((double)heapState.getMaxSampleSizeMs()) * width);
final double y = (double)height * sample.getBytes() / maxDataSize;
if (path == null) {
path = new Path2D.Double();
path.moveTo(x, height - y + 1);
}
else {
path.lineTo(x, height - y + 1);
}
}
graphics2D.draw(path);
}
}
/**
* A fixed-length list of captured samples.
*/
class HeapSamples {
final LinkedList<HeapSample> samples = new LinkedList<>();
final int maxSampleSizeMs;
HeapSamples(int maxSampleSizeMs) {
this.maxSampleSizeMs = maxSampleSizeMs;
}
void addSample(HeapMonitor.HeapSample sample) {
samples.add(sample);
// Leave a little bit extra in the samples we trim off.
final long oldestTime = System.currentTimeMillis() - maxSampleSizeMs - 2000;
while (!samples.isEmpty() && samples.get(0).getSampleTime() < oldestTime) {
samples.removeFirst();
}
}
}
```
|
, the energy sector in Senegal has an installed capacity of 1431 megawatts (MW). Energy is produced by private operators and sold to the Senelec energy corporation. According to a 2020 report by the International Energy Agency, Senegal had nearly 70% of the country connected to the national grid. Current government strategies for electrification include investments in off-grid solar and connection to the grid.
Most of the energy production is from fossil fuels, mostly diesel and gas (733 of 864 MW). An increasing amount of the energy production comes from sustainable sources, such as Manantali Dam in Mali and a new wind farm in Thiès opened in 2020—however, it is still a small portion of the total production. Despite increases in production in the 2010s, the economy is frequently hindered by energy shortages compared to demand.
Electricity sector
Following institutional reform in 1998, Senegal's electricity sector was split into three entities: Senelec, the national utility, the Agency for Rural Electrification (Agence Sénégalaise d'Electrification Rurale, ASER) and the Electricity Regulatory Board (Commission de Régulation au Secteur de l'Electricité, CRSE).
Electricity generation, mainly on a build-own-operate (BOO) basis, is open to the private sector. Senelec, the sole buyer, signs power purchase contracts with independent power producers (IPPs).
Electricity production
Senegal's major source of electricity is diesel. The rest is mostly coal and hydroelectricity. Renewables should make up 30% of the country's energy mix and Taïba Ndiaye will supply half. The planned energy mix aims to help Senegal move away from oil dependence, although newly discovered gas reserves offshore are expected to be used domestically to replace diesel and coal.
Fossil fuel energy production
Senegal has remained only a marginal natural gas producer and most of its thermal electricity comes from diesel and heavy fuel oil (HFO).
The General Electric/GTI Dakar IPP, which supplies approximately 20 percent of Senelec's electrical needs, was commissioned in 1998. It has an installed capacity of 56 MW. GTI Dakar was developed by American company CC Hinckley Co. (www.cchinckley.com)
On-line since January 2008, the second IPP Kounoune 1 – 67.5 MW – was partially funded by the International Finance Corporation, with Mitsubishi and Matelec S.A.L, a division of the Doumet group from Lebanon, as strategic partners.
In 2016 another IPP operator, ContourGlobal commissioned an 88 MW diesel power plant with Wartsila engines and a steam turbine at Cap des Biches.
Several additional thermal power stations were under-construction in 2022, including the 130 MW Malicounda plant financed by Africa50, and the 300 MW Cap des Biches plant of West African Energy. The government's ambition is to be able to feed most existing and future thermal stations with domestic natural gas from offshore fields discovered by bp and Kosmos Energy.
Sustainable energy production
Hydropower
Some hydroelectricity generated from the Manantali Dam in Mali is split between Senegal, Mali, and Mauritania. Manantali has an installed capacity of 200 MW dispatched as follows: 52% for Mali, 15% for Mauritania and 33% for Senegal (66 MW).
Solar energy
As of 2019, Five solar plants have been opened in Senegal: Senergy (30 MW), Ten Merina (30 MW), Malicounda (22 MW) and two 20 MW capacity plants operated by Engie.
Two new solar photovoltaic plants will be built: the 25 megawatt peak (MWp) Kael solar park in the Touba region in western Senegal and the 35 MWp Kahone solar park in the Kaolack region in central western Senegal.
Wind energy
Taiba NDiaye wind farm was completed in January 2020. It is the largest wind farm in West Africa and when its 46 wind turbines are completed in June, it will provide 158 megawatts of electricity, or up to 15% of Sinelec's total supply. Construction cost 200 billion CFA francs (€342 million). The wind farm is located in Thiès (86 km north of Dakar), swept by the harmattan and the Atlantic winds. The turbines will provide two million people with electricity. Opposition to the project has centered on questions of low compensation for land and trees that were uprooted.
Electricity demand and supply gaps
Senelec is dealing with a chronic electricity production gap, which has worsened due to growing demand for electricity. The average demand increase during 2005-2009 is estimated at 7%, representing an electricity consumption of 1.933 TWh in 2005 to an estimated 2.66 TWh in 2009. The company is experiencing declining reliability of aging power plants.
Senegal's GDP growth was hindered in 2007 by frequent electricity outages, which caused a slowdown of the economic and manufacturing activities. The GDP growth rate decreased to 2.1% in 2006 from 5.5% in 2005. According to local reports, the outages have contributed to the closure of many small and medium-sized enterprises (SMEs) in the food processing, textile, and tourism sectors. Larger companies are reporting declines in output averaging 30%.
Future development
Senegal is committed to shifting from a diesel-based power generation to cheaper energy sources. Senegal has thus put an option on the coal technology. The recent bid to build-own and operate a 125 MW coal-fired Sendou power station was awarded to a consortium of companies headed by the Swedish operator Nykomb Synergetics. In addition, Senegal has embarked on an aggressive effort to produce significant quantities of biofuels, initially to run electricity generation units, and has a pilot project using sugarcane-based ethanol.
References
External links
Senelec
Commission de Régulation au Secteur de l'Electricité
|
```go
package decor
import (
"fmt"
"strconv"
"github.com/vbauerster/mpb/v8/internal"
)
var _ fmt.Formatter = percentageType(0)
type percentageType float64
func (s percentageType) Format(st fmt.State, verb rune) {
prec := -1
switch verb {
case 'f', 'e', 'E':
prec = 6 // default prec of fmt.Printf("%f|%e|%E")
fallthrough
case 'b', 'g', 'G', 'x', 'X':
if p, ok := st.Precision(); ok {
prec = p
}
default:
verb, prec = 'f', 0
}
b := strconv.AppendFloat(make([]byte, 0, 16), float64(s), byte(verb), prec, 64)
if st.Flag(' ') {
b = append(b, ' ', '%')
} else {
b = append(b, '%')
}
_, err := st.Write(b)
if err != nil {
panic(err)
}
}
// Percentage returns percentage decorator. It's a wrapper of NewPercentage.
func Percentage(wcc ...WC) Decorator {
return NewPercentage("% d", wcc...)
}
// NewPercentage percentage decorator with custom format string.
//
// `format` printf compatible verb
//
// `wcc` optional WC config
//
// format examples:
//
// format="%d" output: "1%"
// format="% d" output: "1 %"
// format="%.1f" output: "1.0%"
// format="% .1f" output: "1.0 %"
// format="%f" output: "1.000000%"
// format="% f" output: "1.000000 %"
func NewPercentage(format string, wcc ...WC) Decorator {
if format == "" {
format = "% d"
}
f := func(s Statistics) string {
p := internal.PercentageRound(s.Total, s.Current, 100)
return fmt.Sprintf(format, percentageType(p))
}
return Any(f, wcc...)
}
```
|
The Belarusian Governorate (, ) was an administrative division of the Russian Empire established on December 12, 1796. It included the lands acquired after the Second Partition of Poland.
It was dissolved on February 27, 1802, after an administrative reform, split into Vitebsk Governorate and Mogilev Governorate.
References
Governorates of the Russian Empire
|
A dumpster is a movable waste container designed to be brought and taken away by a special collection vehicle, or to a bin that a specially designed garbage truck lifts, empties into its hopper, and lowers, on the spot. The word is a generic trademark of Dumpster, an American brand name for a specific design. Generic usage of skip, or wheelie bin may be used in other English speaking countries.
History
The word "dumpster", first used commercially in 1936, came from the Dempster-Dumpster system of mechanically loading the contents of standardized containers onto garbage trucks, which was patented by Dempster Brothers in 1935. The containers were called Dumpsters, a blending of the company's name with the word dump. The Dempster Dumpmaster, which became the first successful front-loading garbage truck that used this system, popularized the word.
The word dumpster has had at least three trademarks associated with it by Dempster Brothers, but today it is often used as a genericized trademark. All three trademarks have since either been expired or cancelled.
A dumpster is sometimes considered synonymous with a skip. However, there are functional differences between them. A skip is intended to be loaded onto a vehicle and transported to another location. Dumpsters, on the other hand, have their contents emptied into a special vehicle, and are seldom moved from their locations.
Function
The main purpose of a dumpster is to store garbage until it is emptied by a garbage truck for disposal. Dumpsters can be used for all kinds of waste, or for recycling purposes.
Most dumpsters are emptied by front-loading garbage trucks. These trucks have large prongs on the front which are aligned and inserted into arms or slots on the dumpster. Hydraulics lift the prongs and the dumpster, eventually flipping the dumpster upside-down and emptying its contents into the garbage truck's hopper (storage compartment). Other dumpsters are smaller and are emptied by rear-loading trucks. Dumpsters are typically emptied outside of peak traffic hours. The frequency at which dumpsters are emptied varies from community to community, often ranging from daily to weekly, depending on the volume of trash generated.
Types
Many businesses, apartment buildings, schools, offices, and industrial sites have one or more dumpsters, generally ranging from , to store the waste that they generate.
Waste storage containers can be made from a wide variety of materials, including steel and fiberglass. Plastic dumpsters became available in the 1970s.
In the United States, dumpsters (also known as "roll carts" or "toters") are used by small businesses and homes where a normal bin would be too small, but a regular dumpster would be too large. These are emptied by rear-loading trucks or by side-loading trucks purpose-built for emptying roll carts of this and smaller sizes.
Roll-offs, sometimes called roll-off dumpsters or containers or open-top dumpsters or containers, are larger dumpster trailers ranging from and are used at demolition sites, clean-outs, renovations, construction sites, factories, and large businesses. These containers are normally carried by very large trucks with hydraulic arms which load and unload the containers with ease, thus allowing these trucks to place these containers in a relatively unobtrusive position.
Roll-off dumpsters are available in a variety of sizes to fit different situations. The size needed will generally depend on three factors: volume of material, type of material, and location or placement of the dumpster. For example, heavy materials like bricks or stones should be placed in smaller dumpsters so the loaded container does not exceed weight limits for transportation.
Dumpster diving
Dumpster diving involves persons voluntarily climbing into a dumpster to find valuables, such as discarded metal scrap, or simply useful items, including food and used clothing. It can also be a method of investigation (e.g., looking for discarded financial records, private papers, or evidence of a crime). Going through garbage containers that are not strictly speaking dumpsters is nevertheless often referred to as dumpster diving.
Gallery
See also
Dump truck
Dumpster fire
Roll-off
Shipping container
Skip (container)
Waste
Waste container
Waste management
References
External links
Brands that became generic
Waste containers
Articles containing video clips
|
```c++
/*
This file is part of Mod Organizer.
Mod Organizer is free software: you can redistribute it and/or modify
(at your option) any later version.
Mod Organizer 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 Mod Organizer. If not, see <path_to_url
*/
#include "syncoverwritedialog.h"
#include "shared/directoryentry.h"
#include "shared/fileentry.h"
#include "shared/filesorigin.h"
#include "ui_syncoverwritedialog.h"
#include <log.h>
#include <report.h>
#include <utility.h>
#include <QComboBox>
#include <QDir>
#include <QDirIterator>
#include <QStringList>
using namespace MOBase;
using namespace MOShared;
SyncOverwriteDialog::SyncOverwriteDialog(const QString& path,
DirectoryEntry* directoryStructure,
QWidget* parent)
: TutorableDialog("SyncOverwrite", parent), ui(new Ui::SyncOverwriteDialog),
m_SourcePath(path), m_DirectoryStructure(directoryStructure)
{
ui->setupUi(this);
refresh(path);
QHeaderView* headerView = ui->syncTree->header();
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
headerView->setSectionResizeMode(0, QHeaderView::Stretch);
headerView->setSectionResizeMode(1, QHeaderView::Interactive);
#else
headerView->setResizeMode(0, QHeaderView::Stretch);
headerView->setResizeMode(1, QHeaderView::Interactive);
#endif
}
SyncOverwriteDialog::~SyncOverwriteDialog()
{
delete ui;
}
static void addToComboBox(QComboBox* box, const QString& name, const QVariant& userData)
{
if (QString::compare(name, "overwrite", Qt::CaseInsensitive) != 0) {
box->addItem(name, userData);
}
}
void SyncOverwriteDialog::readTree(const QString& path,
DirectoryEntry* directoryStructure,
QTreeWidgetItem* subTree)
{
QDir overwrite(path);
overwrite.setFilter(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot);
QDirIterator dirIter(overwrite);
while (dirIter.hasNext()) {
dirIter.next();
QFileInfo fileInfo = dirIter.fileInfo();
QString file = fileInfo.fileName();
if (file == "meta.ini") {
continue;
}
QTreeWidgetItem* newItem = new QTreeWidgetItem(subTree, QStringList(file));
if (fileInfo.isDir()) {
DirectoryEntry* subDir = directoryStructure->findSubDirectory(ToWString(file));
if (subDir != nullptr) {
readTree(fileInfo.absoluteFilePath(), subDir, newItem);
} else {
log::error("no directory structure for {}?", file);
delete newItem;
newItem = nullptr;
}
} else {
const FileEntryPtr entry = directoryStructure->findFile(ToWString(file));
QComboBox* combo = new QComboBox(ui->syncTree);
combo->addItem(tr("<don't sync>"), -1);
if (entry.get() != nullptr) {
bool ignore;
int origin = entry->getOrigin(ignore);
addToComboBox(combo,
ToQString(m_DirectoryStructure->getOriginByID(origin).getName()),
origin);
const auto& alternatives = entry->getAlternatives();
for (const auto& alt : alternatives) {
addToComboBox(
combo,
ToQString(m_DirectoryStructure->getOriginByID(alt.originID()).getName()),
alt.originID());
}
combo->setCurrentIndex(combo->count() - 1);
} else {
combo->setCurrentIndex(0);
}
ui->syncTree->setItemWidget(newItem, 1, combo);
}
if (newItem != nullptr) {
subTree->addChild(newItem);
}
}
}
void SyncOverwriteDialog::refresh(const QString& path)
{
QTreeWidgetItem* rootItem = new QTreeWidgetItem(ui->syncTree, QStringList("<data>"));
readTree(path, m_DirectoryStructure, rootItem);
ui->syncTree->addTopLevelItem(rootItem);
ui->syncTree->expandAll();
}
void SyncOverwriteDialog::applyTo(QTreeWidgetItem* item, const QString& path,
const QString& modDirectory)
{
for (int i = 0; i < item->childCount(); ++i) {
QTreeWidgetItem* child = item->child(i);
QString filePath;
if (path.length() != 0) {
filePath = path + "/" + child->text(0);
} else {
filePath = child->text(0);
}
if (child->childCount() != 0) {
applyTo(child, filePath, modDirectory);
} else {
QComboBox* comboBox =
qobject_cast<QComboBox*>(ui->syncTree->itemWidget(child, 1));
if (comboBox != nullptr) {
int originID =
comboBox->itemData(comboBox->currentIndex(), Qt::UserRole).toInt();
if (originID != -1) {
FilesOrigin& origin = m_DirectoryStructure->getOriginByID(originID);
QString source = m_SourcePath + "/" + filePath;
QString destination =
modDirectory + "/" + ToQString(origin.getName()) + "/" + filePath;
if (!QFile::remove(destination)) {
reportError(tr("failed to remove %1").arg(destination));
} else if (!QFile::rename(source, destination)) {
reportError(tr("failed to move %1 to %2").arg(source).arg(destination));
}
}
}
}
}
QDir dir(m_SourcePath + "/" + path);
if ((path.length() > 0) && (dir.count() == 2)) {
dir.rmpath(".");
}
}
void SyncOverwriteDialog::apply(const QString& modDirectory)
{
applyTo(ui->syncTree->topLevelItem(0), "", modDirectory);
}
```
|
```go
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//go:build go1.21
package fxevent
import (
"context"
"log/slog"
"strconv"
"strings"
)
var _ Logger = (*SlogLogger)(nil)
// SlogLogger an Fx event logger that logs events using a slog logger.
type SlogLogger struct {
Logger *slog.Logger
ctx context.Context
logLevel slog.Level
errorLevel *slog.Level
}
// UseContext sets the context that will be used when logging to slog.
func (l *SlogLogger) UseContext(ctx context.Context) {
l.ctx = ctx
}
// UseLogLevel sets the level of non-error logs emitted by Fx to level.
func (l *SlogLogger) UseLogLevel(level slog.Level) {
l.logLevel = level
}
// UseErrorLevel sets the level of error logs emitted by Fx to level.
func (l *SlogLogger) UseErrorLevel(level slog.Level) {
l.errorLevel = &level
}
func (l *SlogLogger) filter(fields []any) []any {
filtered := []any{}
for _, field := range fields {
if field, ok := field.(slog.Attr); ok {
if _, ok := field.Value.Any().(slogFieldSkip); ok {
continue
}
}
filtered = append(filtered, field)
}
return filtered
}
func (l *SlogLogger) logEvent(msg string, fields ...any) {
l.Logger.Log(l.ctx, l.logLevel, msg, l.filter(fields)...)
}
func (l *SlogLogger) logError(msg string, fields ...any) {
lvl := slog.LevelError
if l.errorLevel != nil {
lvl = *l.errorLevel
}
l.Logger.Log(l.ctx, lvl, msg, l.filter(fields)...)
}
// LogEvent logs the given event to the provided Zap logger.
func (l *SlogLogger) LogEvent(event Event) {
switch e := event.(type) {
case *OnStartExecuting:
l.logEvent("OnStart hook executing",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
)
case *OnStartExecuted:
if e.Err != nil {
l.logError("OnStart hook failed",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
slogErr(e.Err),
)
} else {
l.logEvent("OnStart hook executed",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
slog.String("runtime", e.Runtime.String()),
)
}
case *OnStopExecuting:
l.logEvent("OnStop hook executing",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
)
case *OnStopExecuted:
if e.Err != nil {
l.logError("OnStop hook failed",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
slogErr(e.Err),
)
} else {
l.logEvent("OnStop hook executed",
slog.String("callee", e.FunctionName),
slog.String("caller", e.CallerName),
slog.String("runtime", e.Runtime.String()),
)
}
case *Supplied:
if e.Err != nil {
l.logError("error encountered while applying options",
slog.String("type", e.TypeName),
slogStrings("moduletrace", e.ModuleTrace),
slogStrings("stacktrace", e.StackTrace),
slogMaybeModuleField(e.ModuleName),
slogErr(e.Err))
} else {
l.logEvent("supplied",
slog.String("type", e.TypeName),
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
)
}
case *Provided:
for _, rtype := range e.OutputTypeNames {
l.logEvent("provided",
slog.String("constructor", e.ConstructorName),
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
slog.String("type", rtype),
slogMaybeBool("private", e.Private),
)
}
if e.Err != nil {
l.logError("error encountered while applying options",
slogMaybeModuleField(e.ModuleName),
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogErr(e.Err))
}
case *Replaced:
for _, rtype := range e.OutputTypeNames {
l.logEvent("replaced",
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
slog.String("type", rtype),
)
}
if e.Err != nil {
l.logError("error encountered while replacing",
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
slogErr(e.Err))
}
case *Decorated:
for _, rtype := range e.OutputTypeNames {
l.logEvent("decorated",
slog.String("decorator", e.DecoratorName),
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
slog.String("type", rtype),
)
}
if e.Err != nil {
l.logError("error encountered while applying options",
slogStrings("stacktrace", e.StackTrace),
slogStrings("moduletrace", e.ModuleTrace),
slogMaybeModuleField(e.ModuleName),
slogErr(e.Err))
}
case *Run:
if e.Err != nil {
l.logError("error returned",
slog.String("name", e.Name),
slog.String("kind", e.Kind),
slogMaybeModuleField(e.ModuleName),
slogErr(e.Err),
)
} else {
l.logEvent("run",
slog.String("name", e.Name),
slog.String("kind", e.Kind),
slogMaybeModuleField(e.ModuleName),
)
}
case *Invoking:
// Do not log stack as it will make logs hard to read.
l.logEvent("invoking",
slog.String("function", e.FunctionName),
slogMaybeModuleField(e.ModuleName),
)
case *Invoked:
if e.Err != nil {
l.logError("invoke failed",
slogErr(e.Err),
slog.String("stack", e.Trace),
slog.String("function", e.FunctionName),
slogMaybeModuleField(e.ModuleName),
)
}
case *Stopping:
l.logEvent("received signal",
slog.String("signal", strings.ToUpper(e.Signal.String())))
case *Stopped:
if e.Err != nil {
l.logError("stop failed", slogErr(e.Err))
}
case *RollingBack:
l.logError("start failed, rolling back", slogErr(e.StartErr))
case *RolledBack:
if e.Err != nil {
l.logError("rollback failed", slogErr(e.Err))
}
case *Started:
if e.Err != nil {
l.logError("start failed", slogErr(e.Err))
} else {
l.logEvent("started")
}
case *LoggerInitialized:
if e.Err != nil {
l.logError("custom logger initialization failed", slogErr(e.Err))
} else {
l.logEvent("initialized custom fxevent.Logger", slog.String("function", e.ConstructorName))
}
}
}
type slogFieldSkip struct{}
func slogMaybeModuleField(name string) slog.Attr {
if len(name) == 0 {
return slog.Any("module", slogFieldSkip{})
}
return slog.String("module", name)
}
func slogMaybeBool(name string, b bool) slog.Attr {
if !b {
return slog.Any(name, slogFieldSkip{})
}
return slog.Bool(name, true)
}
func slogErr(err error) slog.Attr {
return slog.String("error", err.Error())
}
func slogStrings(key string, str []string) slog.Attr {
attrs := make([]any, len(str))
for i, val := range str {
attrs[i] = slog.String(strconv.Itoa(i), val)
}
return slog.Group(key, attrs...)
}
```
|
The Forces for Renewal (), generally still known by its original name RCD-Kisangani-Movement for Liberation (RCD/K-ML), is a political party in the Democratic Republic of Congo. The party originated as a breakaway faction of the rebel Rally for Congolese Democracy (RCD).
History
The RCD-K-ML was accorded 15 seats in the Transitional National Assembly and participated in the Transitional Government headed by Joseph Kabila.
Human Rights Watch has accused RCD-K-ML of conscripting child soldiers. They were also involved in the Ituri conflict.
Their leader, Antipas Mbusa came eleventh in the 2006 presidential elections with 96,503 votes, and won 26 seats in the simultaneous election to the National Assembly. In the 2011 general election, the Forces for Renewal lost 20 seats in the National Assembly.
It won seven out of 108 seats in the indirect elections to the Senate.
It joined the government of Antoine Gizenga where Mbusa became Foreign Minister.
In 2022, the party condemned the violence during the anti-MONUSCO protests in the eastern DR Congo.
References
2003 establishments in the Democratic Republic of the Congo
Factions of the Second Congo War
Federalism in the Democratic Republic of the Congo
Federalist parties
Political parties established in 2003
Political parties in the Democratic Republic of the Congo
Rebel groups in the Democratic Republic of the Congo
|
Edison Park Creative and Expressive Arts Elementary School is an elementary school in Fort Myers, Florida. The school has drama, music education and dance programs. It is part of the Lee County School District. The historic building, formerly Edison Park School, is located at 2401 Euclid Avenue and was added to the U.S. National Register of Historic Places on May 5, 1999.
This property is part of the Lee County Multiple Property Submission, a Multiple Property Submission to the National Register.
References
Lee County listings at National Register of Historic Places
Florida's Office of Cultural and Historical Programs
Lee County listings
Edison Park Elementary School
External links
Edison Park Creative and Expressive Arts Elementary School - official site
Public elementary schools in Florida
National Register of Historic Places in Lee County, Florida
Schools in Lee County, Florida
Education in Fort Myers, Florida
Buildings and structures in Fort Myers, Florida
|
Diwan Bahadur Rishiyur Venkata Srinivasa Aiyar (1852 – 31 March 1909) was an Indian civil servant, legislator and politician from the Madras Presidency.
Early life and education
Srinivasa Aiyar was born to R. S. Venkatarama Aiyar and his wife, Valambal, in his maternal grandfather's house at Vaiyacalathore in 1852. He was the eldest of their four children.
Educational career
On completion of his studies, Srinivasa Aiyar worked as Assistant master at Wesleyan High School, Bangalore for three years and as Assistant Lecturer in Government Arts College, Kumbakonam from 1873 to 1884.
Provincial Civil Service
In 1884, he joined the Provincial civil service of Madras as an assistant in the Revenue Settlement Department. He rose to become Secretary to the Commissioner of Revenue Settlement and was, in July 1896, appointed as the Director of the Department of Land Records and Agriculture in the Madras Presidency. He became the Inspector General of Registration in December 1903 and was nominated to the Madras Legislative Council in November 1902 and for a second term on 30 October 1903.
Proficiency in mathematics
Aiyar was renowned for his proficiency in mathematics and was called "Euclid" or "Geometry" Srinivasa Aiyar.
Indian National Congress
Aiyar was also associated with the Indian National Congress in its early days.
Family
He was the paternal uncle of R. S. Subbalakshmi, a social reformer and educationist.
Notes
References
1852 births
1909 deaths
Companions of the Order of the Indian Empire
People from Tiruvarur district
Dewan Bahadurs
People from the Madras Presidency
|
The 2023–24 season is the 129th in Oldham Athletic's history. and the club's second season since dropping out of the Football League. The club will compete in the National League, the FA Cup and the FA Trophy.
Season Summary
Pre-Season
Immediately following the conclusion of the 2022-23 season, Oldham announced that 18 of the players contracted for the previous season remained in contract but that nine players would be released and four players who had ended the 2022-23 season on loan would return to their parent clubs. The club also confirmed that negotiations were ongoing to extend the contracts of Devarn Green, Mathew Hudson, Junior Luamba and Josef Yarney.
A new hybrid pitch was laid at Boundary Park, with work commmencing on 8 May 2023 and extending over the summer period, meaning that all but the final pre-season friendly would be played away from Boundary Park.
On 8 June 2023, Paul Murray returned to the club as Academy Manager, resuming a job he had left in 2021.
End of the Unsworth era
The season began with two weeks of contrasting fortunes: a 4-0 defeat away at Southend United being followed by a comprehensive 5-2 win at home to Aldershot Town.
Following this was a run of seven games without a win in which Oldham scored only four goals. The club's board initially stood behind manager David Unsworth, with chairman Frank Rothwell addressing a group of travelling supporters before a 2-2 draw at Gateshead to demonstrate his support for Unsworth. However, discontent amongst the club's supporters continued to grow following a 0-0 draw at home to Dorking Wanderers and Unsworth was dismissed following a 3-0 defeat away at Bromley.
Interim Management
Steve Thompson, the club's Head of Recruitment, was appointed as manager on an interim basis following Unsworth's departure, with the club's board confirming that a number of applications for the role of first team manager had been received and that a recruitment process would be followed before an appointment was made.
In the meantime, Thompson appointed Neil Redfearn as his assistant manager, Redfearn returning to Boundary Park where, 32 years earlier, he had scored the most famous goal in the club's history, securing the Second Division title with a last minute penalty kick.
Players
Current Squad
Out on loan
Left the club during the season
Pre-season fixtures
On 17 May 2023 Oldham Athletic announced six pre-season friendlies to be played before the start of the National League season. Pitch renovation work at Boundary Park meant that the first five fixtures would all be played away from home, with only the sixth and final game able to be played at Boundary Park.
Competitions
Oldham Athletic will play in the National League in the 2023-24 season. It will join the FA Cup at the Fourth Qualifying Round and the FA Trophy at the Third Round.
National League
League table
Results summary
Results by matchday
Matches
Oldham's fixtures were announced on 5 July 2023.
FA Cup
Oldham will join the 2023-24 FA Cup at the Fourth Qualifying Round. Fixtures will take place on the weekend of 14 October 2023, with the draw being made following conclusion of the Third Qualifying Round on the weekend of 30 September 2023.
FA Trophy
Oldham will join the 2023-24 FA Trophy at the Third Round. Fixtures will take place on the weekend of 9 December 2023, with the draw being made following conclusion of the Second Round on the weekend of 18 November 2023
Squad statistics
Appearances
Players with no appearances are not included on the list.
Goals
Disciplinary Record
Transfers
Transfers in
Transfers out
Loans in
Loans out
References
Oldham Athletic A.F.C. seasons
|
```go
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package capture
import (
aggr "github.com/m3db/m3/src/aggregator/aggregator"
"github.com/m3db/m3/src/metrics/metric/aggregated"
"github.com/m3db/m3/src/metrics/metric/unaggregated"
)
// Aggregator provide an aggregator for testing purposes.
type Aggregator interface {
aggr.Aggregator
// NumMetricsAdded returns the number of metrics added.
NumMetricsAdded() int
// Snapshot returns a copy of the aggregated data, resets
// aggregations and number of metrics added.
Snapshot() SnapshotResult
}
// SnapshotResult is the snapshot result.
type SnapshotResult struct {
CountersWithMetadatas []unaggregated.CounterWithMetadatas
BatchTimersWithMetadatas []unaggregated.BatchTimerWithMetadatas
GaugesWithMetadatas []unaggregated.GaugeWithMetadatas
ForwardedMetricsWithMetadata []aggregated.ForwardedMetricWithMetadata
TimedMetricWithMetadata []aggregated.TimedMetricWithMetadata
PassthroughMetricWithMetadata []aggregated.PassthroughMetricWithMetadata
}
```
|
```javascript
/* Convert string to upper case.
*
* |Name |Desc |
* |------|-----------------|
* |str |String to convert|
* |return|Uppercased string|
*/
/* example
* upperCase('test'); // -> 'TEST'
*/
/* module
* env: all
*/
/* typescript
* export declare function upperCase(str: string): string;
*/
_('toStr');
exports = function(str) {
return toStr(str).toLocaleUpperCase();
};
```
|
```python
# This file is just to test passing a bunch of different parameters into train to make sure that things work
# At first, it is not necessarily testing whether those things have the intended effect or not
import datetime
import os
import random
import sys
sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path
sys.path = [os.path.abspath(os.path.dirname(os.path.dirname(__file__)))] + sys.path
os.environ['is_test_suite'] = 'True'
from auto_ml import Predictor
from auto_ml.utils_models import load_ml_model
import dill
from nose.tools import assert_equal, assert_not_equal, with_setup
import numpy as np
from sklearn.model_selection import train_test_split
import utils_testing as utils
# Tests on regression models:
def test_perform_feature_selection_true_regression(model_name=None):
np.random.seed(0)
df_boston_train, df_boston_test = utils.get_boston_regression_dataset()
column_descriptions = {
'MEDV': 'output'
, 'CHAS': 'categorical'
}
ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_boston_train, perform_feature_selection=True, model_names=model_name)
test_score = ml_predictor.score(df_boston_test, df_boston_test.MEDV)
print('test_score')
print(test_score)
# Bumping this up since without these features our score drops
lower_bound = -4.0
if model_name == 'DeepLearningRegressor':
lower_bound = -14.5
if model_name == 'LGBMRegressor':
lower_bound = -4.95
assert lower_bound < test_score < -2.8
def test_perform_feature_selection_false_regression(model_name=None):
np.random.seed(0)
df_boston_train, df_boston_test = utils.get_boston_regression_dataset()
column_descriptions = {
'MEDV': 'output'
, 'CHAS': 'categorical'
}
ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_boston_train, perform_feature_selection=False, model_names=model_name)
test_score = ml_predictor.score(df_boston_test, df_boston_test.MEDV)
print('test_score')
print(test_score)
lower_bound = -3.0
assert lower_bound < test_score < -2.7
def test_perform_feature_scaling_true_regression(model_name=None):
np.random.seed(0)
df_boston_train, df_boston_test = utils.get_boston_regression_dataset()
column_descriptions = {
'MEDV': 'output'
, 'CHAS': 'categorical'
}
ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_boston_train, perform_feature_scaling=True)
test_score = ml_predictor.score(df_boston_test, df_boston_test.MEDV)
print('test_score')
print(test_score)
assert -3.0 < test_score < -2.7
def test_perform_feature_scaling_false_regression(model_name=None):
np.random.seed(0)
df_boston_train, df_boston_test = utils.get_boston_regression_dataset()
column_descriptions = {
'MEDV': 'output'
, 'CHAS': 'categorical'
}
ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_boston_train, perform_feature_scaling=False, model_names=model_name)
test_score = ml_predictor.score(df_boston_test, df_boston_test.MEDV)
print('test_score')
print(test_score)
lower_bound = -3.0
assert lower_bound < test_score < -2.7
def test_compare_all_models_regression():
np.random.seed(0)
df_boston_train, df_boston_test = utils.get_boston_regression_dataset()
column_descriptions = {
'MEDV': 'output'
, 'CHAS': 'categorical'
}
ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_boston_train, compare_all_models=True)
test_score = ml_predictor.score(df_boston_test, df_boston_test.MEDV)
print('test_score')
print(test_score)
# ExtraTrees again throws this off
assert -3.6 < test_score < -2.8
```
|
```smalltalk
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.Sockets;
using NewLife.Data;
using NewLife.Log;
using NewLife.Model;
namespace NewLife.Net;
/// <summary></summary>
public abstract class SessionBase : DisposeBase, ISocketClient, ITransport, ILogFeature
{
#region
/// <summary></summary>
public Int32 ID { get; internal set; }
/// <summary></summary>
public String Name { get; set; }
/// <summary></summary>
public NetUri Local { get; set; } = new NetUri();
/// <summary></summary>
public Int32 Port { get { return Local.Port; } set { Local.Port = value; } }
/// <summary></summary>
public NetUri Remote { get; set; } = new NetUri();
/// <summary>3000ms</summary>
public Int32 Timeout { get; set; } = 3_000;
/// <summary></summary>
public Boolean Active { get; set; }
/// <summary>Socket</summary>
public Socket? Client { get; protected set; }
/// <summary></summary>
public DateTime LastTime { get; internal protected set; } = DateTime.Now;
/// <summary>Tcp1UdpCPU*1.60</summary>
public Int32 MaxAsync { get; set; } = 1;
/// <summary>8k</summary>
public Int32 BufferSize { get; set; }
/// <summary></summary>
public String? CloseReason { get; set; }
/// <summary>APM</summary>
public ITracer? Tracer { get; set; }
#endregion
#region
/// <summary></summary>
public SessionBase()
{
Name = GetType().Name;
BufferSize = SocketSetting.Current.BufferSize;
LogDataLength = SocketSetting.Current.LogDataLength;
}
/// <summary></summary>
/// <param name="disposing"></param>
protected override void Dispose(Boolean disposing)
{
base.Dispose(disposing);
var reason = GetType().Name + (disposing ? "Dispose" : "GC");
try
{
Close(reason);
}
catch (Exception ex)
{
OnError("Dispose", ex);
}
}
/// <summary></summary>
/// <returns></returns>
public override String ToString() => Local + "";
#endregion
#region
/// <summary></summary>
/// <returns></returns>
public virtual Boolean Open()
{
if (Disposed) throw new ObjectDisposedException(GetType().Name);
if (Active) return true;
lock (this)
{
if (Active) return true;
using var span = Tracer?.NewSpan($"net:{Name}:Open", Remote?.ToString());
try
{
_RecvCount = 0;
var rs = OnOpen();
if (!rs) return false;
var timeout = Timeout;
if (timeout > 0 && Client != null)
{
Client.SendTimeout = timeout;
Client.ReceiveTimeout = timeout;
}
Active = true;
if (Pipeline is Pipeline pipe && pipe.Handlers.Count > 0)
{
WriteLog("");
foreach (var handler in pipe.Handlers)
{
WriteLog(" {0}", handler);
}
}
//
Pipeline?.Open(CreateContext(this));
ReceiveAsync();
//
Opened?.Invoke(this, EventArgs.Empty);
}
catch (Exception ex)
{
span?.SetError(ex, null);
throw;
}
}
return true;
}
/// <summary></summary>
/// <returns></returns>
[MemberNotNullWhen(true, nameof(Client))]
protected abstract Boolean OnOpen();
/// <summary></summary>
/// <param name="reason"></param>
/// <returns></returns>
public virtual Boolean Close(String reason)
{
if (!Active) return true;
lock (this)
{
if (!Active) return true;
using var span = Tracer?.NewSpan($"net:{Name}:Close", Remote?.ToString());
try
{
CloseReason = reason;
//
Pipeline?.Close(CreateContext(this), reason);
var rs = true;
if (OnClose(reason ?? (GetType().Name + "Close"))) rs = false;
_RecvCount = 0;
//
Closed?.Invoke(this, EventArgs.Empty);
Active = rs;
return !rs;
}
catch (Exception ex)
{
span?.SetError(ex, null);
throw;
}
}
}
/// <summary></summary>
/// <param name="reason"></param>
/// <returns></returns>
protected abstract Boolean OnClose(String reason);
Boolean ITransport.Close() => Close("TransportClose");
/// <summary>FIN/RST</summary>
/// <returns></returns>
protected String? CheckClosed()
{
var sock = Client;
if (sock == null || !sock.Connected) return "Disconnected";
if (sock.Poll(10, SelectMode.SelectRead))
{
try
{
var buffer = new Byte[1];
if (sock.Receive(buffer, SocketFlags.Peek) == 0)
{
// FIN
return "Finish";
}
}
catch (SocketException ex)
when (ex.SocketErrorCode == SocketError.ConnectionReset)
{
return "ConnectionReset";
}
}
return null;
}
/// <summary></summary>
public event EventHandler? Opened;
/// <summary></summary>
public event EventHandler? Closed;
#endregion
#region
/// <summary> Byte[]/Packet</summary>
/// <remarks>
/// <seealso cref="Remote"/>
/// </remarks>
/// <param name="data"></param>
/// <returns></returns>
public Int32 Send(Packet data)
{
if (Disposed) throw new ObjectDisposedException(GetType().Name);
if (!Open()) return -1;
return OnSend(data);
}
/// <summary></summary>
/// <remarks>
/// <seealso cref="Remote"/>
/// </remarks>
/// <param name="data"></param>
/// <returns></returns>
protected abstract Int32 OnSend(Packet data);
#endregion
#region
/// <summary></summary>
/// <returns></returns>
public virtual Packet? Receive()
{
if (Disposed) throw new ObjectDisposedException(GetType().Name);
if (!Open() || Client == null) return null;
using var span = Tracer?.NewSpan($"net:{Name}:Receive", BufferSize + "");
try
{
var buf = new Byte[BufferSize];
var size = Client.Receive(buf);
if (span != null) span.Value = size;
return new Packet(buf, 0, size);
}
catch (Exception ex)
{
span?.SetError(ex, null);
throw;
}
}
/// <summary></summary>
/// <returns></returns>
public virtual async Task<Packet?> ReceiveAsync(CancellationToken cancellationToken = default)
{
if (Disposed) throw new ObjectDisposedException(GetType().Name);
if (!Open() || Client == null) return null;
using var span = Tracer?.NewSpan($"net:{Name}:ReceiveAsync", BufferSize + "");
try
{
var buf = new Byte[BufferSize];
#if NETFRAMEWORK || NETSTANDARD2_0
var ar = Client.BeginReceive(buf, 0, buf.Length, SocketFlags.None, null, Client);
var size = ar.IsCompleted ?
Client.EndReceive(ar) :
await Task.Factory.FromAsync(ar, Client.EndReceive);
#else
var size = await Client.ReceiveAsync(new ArraySegment<Byte>(buf), SocketFlags.None, cancellationToken);
#endif
if (span != null) span.Value = size;
return new Packet(buf, 0, size);
}
catch (Exception ex)
{
span?.SetError(ex, null);
throw;
}
}
/// <summary></summary>
private Int32 _RecvCount;
/// <summary></summary>
/// <returns></returns>
public virtual Boolean ReceiveAsync()
{
if (Disposed) throw new ObjectDisposedException(GetType().Name);
if (!Open()) return false;
var count = _RecvCount;
var max = MaxAsync;
if (count >= max) return false;
//
for (var i = count; i < max; i++)
{
count = Interlocked.Increment(ref _RecvCount);
if (count > max)
{
Interlocked.Decrement(ref _RecvCount);
return false;
}
// SocketError.MessageSize
var buf = new Byte[BufferSize];
var se = new SocketAsyncEventArgs();
se.SetBuffer(buf, 0, buf.Length);
se.Completed += (s, e) => ProcessEvent(e, -1, _IntoThreadCount);
se.UserToken = count;
if (Log != null && Log.Level <= LogLevel.Debug) WriteLog("RecvSA {0}", count);
StartReceive(se, 0);
}
return true;
}
/// <summary></summary>
/// <param name="se"></param>
/// <param name="reason"></param>
private void ReleaseRecv(SocketAsyncEventArgs se, String reason)
{
var idx = se.UserToken.ToInt();
if (Log != null && Log.Level <= LogLevel.Debug) WriteLog("RecvSA {0} {1}", idx, reason);
if (_RecvCount > 0) Interlocked.Decrement(ref _RecvCount);
try
{
se.SetBuffer(null, 0, 0);
}
catch { }
se.TryDispose();
}
/// <summary>10</summary>
private Int32 _IntoThreadCount = 10;
/// <summary></summary>
/// <param name="se"></param>
/// <param name="ioThread">,00</param>
/// <returns></returns>
private Boolean StartReceive(SocketAsyncEventArgs se, Int32 ioThread)
{
if (Disposed)
{
ReleaseRecv(se, "Disposed " + se.SocketError);
throw new ObjectDisposedException(GetType().Name);
}
var rs = false;
try
{
//
rs = OnReceiveAsync(se);
}
catch (Exception ex)
{
ReleaseRecv(se, "ReceiveAsyncError " + ex.Message);
if (!ex.IsDisposed())
{
OnError("ReceiveAsync", ex);
// UDP
//if (!io && ThrowException) throw;
}
return false;
}
// 0
if (!rs && se.BytesTransferred == 0 && se.SocketError == SocketError.Success)
{
var reason = CheckClosed() ?? "EmptyData";
Close(reason);
Dispose();
return false;
}
//
if (!rs)
{
if (ioThread-- > 0)
{
ProcessEvent(se, -1, ioThread);
}
else
{
ThreadPool.UnsafeQueueUserWorkItem(s =>
{
try
{
if (s is SocketAsyncEventArgs ee) ProcessEvent(ee, -1, _IntoThreadCount);
}
catch (Exception ex)
{
XTrace.WriteException(ex);
}
}, se);
}
}
return true;
}
internal abstract Boolean OnReceiveAsync(SocketAsyncEventArgs se);
/// <summary></summary>
/// <remarks>
/// ioThread:
/// StartReceiveProcessEventworker
/// IOCPProcessEventcompletionPort
/// </remarks>
/// <param name="se"></param>
/// <param name="bytes"></param>
/// <param name="ioThread">IO</param>
protected internal void ProcessEvent(SocketAsyncEventArgs se, Int32 bytes, Int32 ioThread)
{
try
{
if (!Active)
{
ReleaseRecv(se, "!Active " + se.SocketError);
return;
}
//
if (se.SocketError != SocketError.Success)
{
// Socket
if (OnReceiveError(se))
{
var ex = se.GetException();
if (ex != null) OnError("ReceiveAsync", ex);
ReleaseRecv(se, "SocketError " + se.SocketError);
return;
}
}
else
{
var ep = se.RemoteEndPoint as IPEndPoint ?? Remote.EndPoint;
if (bytes < 0) bytes = se.BytesTransferred;
if (se.Buffer != null)
{
var pk = new Packet(se.Buffer, se.Offset, bytes);
//
// IO
ProcessReceive(pk, se.ReceiveMessageFromPacketInfo.Address, ep);
}
}
//
if (Active && !Disposed)
StartReceive(se, ioThread);
else
ReleaseRecv(se, "!Active || Disposed");
}
catch (Exception ex)
{
XTrace.WriteException(ex);
try
{
// Error
//
ReleaseRecv(se, "ProcessEventError " + ex.Message);
Close("ProcessEventError");
}
catch { }
Dispose();
}
}
/// <summary></summary>
/// <param name="pk"></param>
/// <param name="local"></param>
/// <param name="remote"></param>
private void ProcessReceive(Packet pk, IPAddress local, IPEndPoint remote)
{
//
DefaultSpan.Current = null;
using var span = Tracer?.NewSpan($"net:{Name}:ProcessReceive", pk.Total + "", pk.Total);
try
{
LastTime = DateTime.Now;
//
var ss = OnPreReceive(pk, local, remote);
if (ss == null) return;
if (LogReceive && Log != null && Log.Enable) WriteLog("Recv [{0}]: {1}", pk.Total, pk.ToHex(LogDataLength));
if (Local.IsTcp) remote = Remote.EndPoint;
var e = new ReceivedEventArgs { Packet = pk, Local = local, Remote = remote };
// Tcp/Udp
var pp = Pipeline;
if (pp == null)
OnReceive(e);
else
{
var ctx = CreateContext(ss);
ctx.Data = e;
// Finish
pp.Read(ctx, pk);
}
}
catch (Exception ex)
{
span?.SetError(ex, pk.ToHex());
if (!ex.IsDisposed()) OnError("OnReceive", ex);
}
}
/// <summary></summary>
/// <param name="pk"></param>
/// <param name="local"></param>
/// <param name="remote"></param>
/// <returns></returns>
protected internal abstract ISocketSession? OnPreReceive(Packet pk, IPAddress local, IPEndPoint remote);
/// <summary></summary>
/// <param name="e"></param>
/// <returns></returns>
protected abstract Boolean OnReceive(ReceivedEventArgs e);
/// <summary></summary>
public event EventHandler<ReceivedEventArgs>? Received;
/// <summary></summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected virtual void RaiseReceive(Object sender, ReceivedEventArgs e) => Received?.Invoke(sender, e);
/// <summary></summary>
/// <param name="se"></param>
/// <returns></returns>
internal virtual Boolean OnReceiveError(SocketAsyncEventArgs se)
{
//if (se.SocketError == SocketError.ConnectionReset) Dispose();
if (se.SocketError == SocketError.ConnectionReset) Close("ConnectionReset");
return true;
}
#endregion
#region
/// <summary></summary>
/// <remarks>
/// 1
/// 2
/// </remarks>
public IPipeline? Pipeline { get; set; }
/// <summary></summary>
/// <param name="session"></param>
/// <returns></returns>
protected internal virtual NetHandlerContext CreateContext(ISocketRemote session)
{
var context = new NetHandlerContext
{
Pipeline = Pipeline,
Session = session,
Owner = session,
};
return context;
}
/// <summary></summary>
/// <param name="message"></param>
/// <returns></returns>
public virtual Int32 SendMessage(Object message)
{
if (Pipeline == null) throw new ArgumentNullException(nameof(Pipeline), "No pipes are set");
using var span = Tracer?.NewSpan($"net:{Name}:SendMessage", message);
try
{
var ctx = CreateContext(this);
return (Int32)(Pipeline.Write(ctx, message) ?? 0);
}
catch (Exception ex)
{
span?.SetError(ex, message);
throw;
}
}
/// <summary></summary>
/// <param name="message"></param>
/// <returns></returns>
public virtual async Task<Object> SendMessageAsync(Object message)
{
if (Pipeline == null) throw new ArgumentNullException(nameof(Pipeline), "No pipes are set");
using var span = Tracer?.NewSpan($"net:{Name}:SendMessageAsync", message);
try
{
var ctx = CreateContext(this);
var source = new TaskCompletionSource<Object>();
ctx["TaskSource"] = source;
ctx["Span"] = span;
var rs = (Int32)(Pipeline.Write(ctx, message) ?? 0);
#if NET45
if (rs < 0) return Task.FromResult(0);
#else
if (rs < 0) return Task.CompletedTask;
#endif
return await source.Task;
}
catch (Exception ex)
{
if (ex is TaskCanceledException)
span?.AppendTag(ex.Message);
else
span?.SetError(ex, message);
throw;
}
}
/// <summary></summary>
/// <param name="message"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public virtual async Task<Object> SendMessageAsync(Object message, CancellationToken cancellationToken)
{
if (Pipeline == null) throw new ArgumentNullException(nameof(Pipeline), "No pipes are set");
using var span = Tracer?.NewSpan($"net:{Name}:SendMessageAsync", message);
try
{
var ctx = CreateContext(this);
var source = new TaskCompletionSource<Object>();
ctx["TaskSource"] = source;
ctx["Span"] = span;
var rs = (Int32)(Pipeline.Write(ctx, message) ?? 0);
#if NET45
if (rs < 0) return Task.FromResult(0);
#else
if (rs < 0) return Task.CompletedTask;
#endif
//
// RegisterDispose
// path_to_url
using (cancellationToken.Register(TrySetCanceled, source))
{
return await source.Task;
}
}
catch (Exception ex)
{
if (ex is TaskCanceledException)
span?.AppendTag(ex.Message);
else
span?.SetError(ex, null);
throw;
}
}
private void TrySetCanceled(Object? state)
{
if (state is TaskCompletionSource<Object> source && !source.Task.IsCompleted)
source.TrySetCanceled();
}
/// <summary></summary>
/// <param name="data"></param>
void ISocketRemote.Process(IData data)
{
if (data is ReceivedEventArgs e) OnReceive(e);
}
#endregion
#region
/// <summary>/</summary>
public event EventHandler<ExceptionEventArgs>? Error;
/// <summary></summary>
/// <param name="action"></param>
/// <param name="ex"></param>
protected internal virtual void OnError(String action, Exception ex)
{
Pipeline?.Error(CreateContext(this), ex);
Log?.Error("{0}{1}Error {2} {3}", LogPrefix, action, this, ex.Message);
Error?.Invoke(this, new ExceptionEventArgs(action, ex));
}
#endregion
#region
private ConcurrentDictionary<String, Object?>? _items;
/// <summary></summary>
public IDictionary<String, Object?> Items => _items ??= new();
/// <summary> </summary>
/// <param name="key"></param>
/// <returns></returns>
public Object? this[String key] { get => _items != null && _items.TryGetValue(key, out var obj) ? obj : null; set => Items[key] = value; }
#endregion
#region
/// <summary></summary>
public virtual String? LogPrefix { get; set; }
/// <summary></summary>
public ILog Log { get; set; } = Logger.Null;
/// <summary>false</summary>
public Boolean LogSend { get; set; }
/// <summary>false</summary>
public Boolean LogReceive { get; set; }
/// <summary>64</summary>
public Int32 LogDataLength { get; set; } = 64;
/// <summary></summary>
/// <param name="format"></param>
/// <param name="args"></param>
public void WriteLog(String format, params Object?[] args)
{
LogPrefix ??= Name.TrimEnd("Server", "Session", "Client");
if (Log != null && Log.Enable) Log.Info($"[{LogPrefix}]{format}", args);
}
#endregion
}
```
|
Mary Copeland may refer to:
Mary Fallin, née Copeland, American politician
M. Shawn Copeland, American womanist and theologian
|
```smalltalk
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using ReClassNET.Util;
namespace ReClassNET.Nodes
{
public class ClassUtil
{
/// <summary>
/// Tests if the class to check can be inserted into the parent class without creating a cycle.
/// </summary>
/// <param name="parent">The class into which </param>
/// <param name="classToCheck">The class which should get inserted.</param>
/// <param name="classes">An enumeration of all available classes.</param>
/// <returns>True if a cycle is detected, false otherwise.</returns>
public static bool IsCyclicIfClassIsAccessibleFromParent(ClassNode parent, ClassNode classToCheck, IEnumerable<ClassNode> classes)
{
Contract.Requires(parent != null);
Contract.Requires(classToCheck != null);
Contract.Requires(classes != null);
Contract.Requires(Contract.ForAll(classes, c => c != null));
var graph = new DirectedGraph<ClassNode>();
graph.AddVertices(classes);
graph.AddEdge(parent, classToCheck);
foreach (var c in graph.Vertices)
{
foreach (var wrapperNode in c.Nodes.OfType<BaseWrapperNode>())
{
if (wrapperNode.ShouldPerformCycleCheckForInnerNode() && wrapperNode.ResolveMostInnerNode() is ClassNode classNode)
{
graph.AddEdge(c, classNode);
}
}
}
return graph.ContainsCycle();
}
}
}
```
|
```javascript
import { StatusBar } from 'react-native';
// @needsAudit
/**
* Toggle visibility of the network activity indicator.
* @param visible If the network activity indicator should be visible.
* @platform ios
*/
export default function setStatusBarNetworkActivityIndicatorVisible(visible) {
StatusBar.setNetworkActivityIndicatorVisible(visible);
}
//# sourceMappingURL=setStatusBarNetworkActivityIndicatorVisible.js.map
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var nanstdevpn = require( '@stdlib/stats/base/nanstdevpn' ).ndarray;
// MAIN //
/**
* Computes the standard deviation of a strided array ignoring `NaN` values.
*
* @param {PositiveInteger} N - number of indexed elements
* @param {number} correction - degrees of freedom adjustment
* @param {NumericArray} x - input array
* @param {integer} stride - stride length
* @param {NonNegativeInteger} offset - starting index
* @returns {number} standard deviation
*
* @example
* var floor = require( '@stdlib/math/base/special/floor' );
*
* var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ];
* var N = floor( x.length / 2 );
*
* var v = nanstdev( N, 1, x, 2, 1 );
* // returns 2.5
*/
function nanstdev( N, correction, x, stride, offset ) {
return nanstdevpn( N, correction, x, stride, offset );
}
// EXPORTS //
module.exports = nanstdev;
```
|
```shell
cd docs/gitbook/v1
gitbook build .
scp -r _book/* mlsql2:/home/web/mlsql-docs-website/mlsql-engine/
```
|
Glenea sassensis is a species of beetle in the family Cerambycidae. It was described by Stephan von Breuning.
References
sassensis
|
Chaetomium rectangulare is a fungus species in the Chaetomium genus, first isolated from Iran. It shares features such as peridium structure, ascospore morphology and germ pore position with its cogenerates. It is closely related to C. elatum.
References
Further reading
External links
MycoBank
rectangulare
|
```c++
/// Source : path_to_url
/// Author : liuyubobobo
/// Time : 2023-02-05
#include <iostream>
#include <vector>
using namespace std;
/// Two Pointers
/// Time Complexity: O(|banned| * log|banned| + n + |banned|)
/// Space Complexity: O(1)
class Solution {
public:
int maxCount(vector<int>& banned, int n, long long maxSum) {
sort(banned.begin(), banned.end());
int banned_index = 0, res = 0;
long long sum = 0;
for(int i = 1; i <= n; i ++){
if(banned_index < banned.size() && i == banned[banned_index]){
while(banned_index < banned.size() && i == banned[banned_index])
banned_index ++;
}
else if(sum + i > maxSum) break;
else{
res ++;
sum += i;
}
}
return res;
}
};
int main() {
return 0;
}
```
|
This is a record of the Men's Germany and West Germany's results at the FIFA World Cup. For Germany's World Cup history, FIFA considers only the teams managed by the Deutscher Fußball-Bund, comprising three periods: Germany (during Nazi era), West Germany and reunified Germany. The Mens Germany national football team is one of the most successful national teams at the FIFA World Cup, winning four titles, earning second-place and third-place finishes four times each and one fourth-place finish. Germany's 12 podium finishes (3rd place or better) in 20 tournaments add up to at least three more than any other nation. In addition, Germany are the only team which has stood on the podium at least once during the completed decades in which at least one tournament was held (1930s, 1950s, 1960s, 1970s, 1980s, 1990s, 2000s and 2010s). Along with Argentina, Brazil and Spain, they are one of the four national teams to win outside their continental confederation, with the title of the 2014 FIFA World Cup in South America. The team qualified for every FIFA World Cup tournament they have entered (20 out of the 22), the second most frequent, and only failed to reach the quarter-finals three times, in 1938, 2018, and 2022. With this, Germany's 8th place or better (quarter-finals) in 17 out of 20 tournaments (85%) ranks highest in FIFA World Cup finals history. It makes Germany the best team in the history of the tournament in terms of final positions, if points were awarded proportionally for a title, runner-up finish, third-place finish, semi-final and quarter-final appearances.
Records
1930–1938 as → →
1950–1990 as
1994–present as
Champions Runners-up Third place Tournament played fully or partially on home soil
Winning World Cups
FIFA World Cup finals
1954 World Cup Final v Hungary
Only 14 days before the final, West Germany played the favoured Hungarian Golden Team in the first round of the tournament and suffered a 3–8 loss, their highest World Cup defeat to this day. In the final, Hungary was up by two goals after only eight minutes, so it came as a surprise that the West German team not only quickly equalized but turned the game around in the 84th minute with a goal scored by Helmut Rahn.
1966 World Cup Final v England
The strongly contested game between host nation England and West Germany went into extra time after a score of 2-2 after 90 minutes. Geoff Hurst's goal in the 101st minute is one of the most controversial in football history: His shot bounced off the cross-bar onto the ground and back away from the goal. After a brief discussion with the Soviet linesman Tofiq Bahramov, referee Gottfried Dienst awarded the goal. With the West Germans forced to press for the equalizer, Hurst converted a counterattack in the 120th minute and decided the match for England.
1974 World Cup Final v the Netherlands
West Germany reached the final as host nation in 1974 and were facing their neighbours and rivals from the Netherlands. After an early penalty scored by Johan Neeskens, West Germany turned the game around to win their second World Cup trophy.
1982 World Cup Final v Italy
Paul Breitner became only the third player in World Cup history to have scored in two separate finals, but only after the Italians had already taken a 3–0 lead after 81 minutes.
1986 World Cup Final v Argentina
With the highest attendance ever at a FIFA World Cup final, West Germany faced Argentina in Mexico City. Although the Argentinian star player Diego Maradona was closely guarded by the West German team, he assisted the decisive 3-2 scored by Jorge Burruchaga, ensuring his country's second World Cup win. Late during the match, three yellow cards were given to Argentinians for time wasting.
1990 World Cup Final v Argentina
For this re-match of the 1986 Final, Argentina played extremely defensively. Defender Pedro Monzón became the first player ever to receive a red card in a World Cup final, only to be joined by teammate Gustavo Dezotti 22 minutes later. Although West Germany was the dominating side with 23:1 shots, it is fitting that the rough match was decided by a penalty kick taken by Andreas Brehme.
Franz Beckenbauer achieved the feat to lose and then win a World Cup final each as player (1966, 1974) and manager (1986, 1990).
2002 World Cup Final v Brazil
With only one goal conceded during the six matches leading up to the final, hopes were on the German defence to withstand Brazil's star quality strikers. Germany's playmaker Michael Ballack was suspended for the final after picking his second yellow card of the tournament in the semi-final against South Korea. Two goals from Ronaldo in the middle of the second half decided the match in favour of the South Americans and ensured their record fifth title.
2014 World Cup Final v Argentina
Despite defeating host country Brazil 7–1, Germany was supported by the home fans due to Brazil's rivalry with Argentina. This record third match-up of two teams in World Cup finals saw good chances for both sides in regular time, but stayed goalless until substitute striker Mario Götze scored during the second half of extra time, in the 113th minute. The fourth title was the first since Germany's reunification in October 1990.
Record players
Lothar Matthäus is the FIFA World Cup's all-time record appearance maker. In addition, along with Antonio Carbajal and Rafael Márquez from Mexico, he is one of the few players to have been fielded in five FIFA World Cups.
Miroslav Klose, who is only one match behind, also holds the record for most victories at FIFA World Cups (17).
Top goalscorers
Since 2014, Miroslav Klose is the all-time top goalscorer at FIFA World Cup final tournaments. Gerd Müller used to be the holder of that record from 1974 until it was broken by Ronaldo in 2006.
By match
By opponent
A * indicates national team is now defunct
See also
Germany at the UEFA European Championship
References
External links
DFB's German national football team page
FIFA Official Ranking of all Participants at Finals 1930–2002. FIFA Match Results for all Stages 1930–2002
FIFA official site
Countries at the FIFA World Cup
World Cup
|
```python
from prowler.providers.aws.services.codebuild.codebuild_service import Codebuild
from prowler.providers.common.provider import Provider
codebuild_client = Codebuild(Provider.get_global_provider())
```
|
```c++
//===-- TargetList.cpp ----------------------------------------------------===//
//
// See path_to_url for license information.
//
//===your_sha256_hash------===//
#include "lldb/Target/TargetList.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/OptionGroupPlatform.h"
#include "lldb/Symbol/ObjectFile.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Process.h"
#include "lldb/Utility/Broadcaster.h"
#include "lldb/Utility/Event.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/TildeExpressionResolver.h"
#include "lldb/Utility/Timer.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/FileSystem.h"
using namespace lldb;
using namespace lldb_private;
ConstString &TargetList::GetStaticBroadcasterClass() {
static ConstString class_name("lldb.targetList");
return class_name;
}
// TargetList constructor
TargetList::TargetList(Debugger &debugger)
: Broadcaster(debugger.GetBroadcasterManager(),
TargetList::GetStaticBroadcasterClass().AsCString()),
m_target_list(), m_target_list_mutex(), m_selected_target_idx(0) {
CheckInWithManager();
}
Status TargetList::CreateTarget(Debugger &debugger,
llvm::StringRef user_exe_path,
llvm::StringRef triple_str,
LoadDependentFiles load_dependent_files,
const OptionGroupPlatform *platform_options,
TargetSP &target_sp) {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto result = TargetList::CreateTargetInternal(
debugger, user_exe_path, triple_str, load_dependent_files,
platform_options, target_sp);
if (target_sp && result.Success())
AddTargetInternal(target_sp, /*do_select*/ true);
return result;
}
Status TargetList::CreateTarget(Debugger &debugger,
llvm::StringRef user_exe_path,
const ArchSpec &specified_arch,
LoadDependentFiles load_dependent_files,
PlatformSP &platform_sp, TargetSP &target_sp) {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto result = TargetList::CreateTargetInternal(
debugger, user_exe_path, specified_arch, load_dependent_files,
platform_sp, target_sp);
if (target_sp && result.Success())
AddTargetInternal(target_sp, /*do_select*/ true);
return result;
}
Status TargetList::CreateTargetInternal(
Debugger &debugger, llvm::StringRef user_exe_path,
llvm::StringRef triple_str, LoadDependentFiles load_dependent_files,
const OptionGroupPlatform *platform_options, TargetSP &target_sp) {
Status error;
PlatformList &platform_list = debugger.GetPlatformList();
// Let's start by looking at the selected platform.
PlatformSP platform_sp = platform_list.GetSelectedPlatform();
// This variable corresponds to the architecture specified by the triple
// string. If that string was empty the currently selected platform will
// determine the architecture.
const ArchSpec arch(triple_str);
if (!triple_str.empty() && !arch.IsValid()) {
error.SetErrorStringWithFormat("invalid triple '%s'",
triple_str.str().c_str());
return error;
}
ArchSpec platform_arch(arch);
// Create a new platform if a platform was specified in the platform options
// and doesn't match the selected platform.
if (platform_options && platform_options->PlatformWasSpecified() &&
!platform_options->PlatformMatches(platform_sp)) {
const bool select_platform = true;
platform_sp = platform_options->CreatePlatformWithOptions(
debugger.GetCommandInterpreter(), arch, select_platform, error,
platform_arch);
if (!platform_sp)
return error;
}
bool prefer_platform_arch = false;
auto update_platform_arch = [&](const ArchSpec &module_arch) {
// If the OS or vendor weren't specified, then adopt the module's
// architecture so that the platform matching can be more accurate.
if (!platform_arch.TripleOSWasSpecified() ||
!platform_arch.TripleVendorWasSpecified()) {
prefer_platform_arch = true;
platform_arch = module_arch;
}
};
if (!user_exe_path.empty()) {
ModuleSpec module_spec(FileSpec(user_exe_path, FileSpec::Style::native));
FileSystem::Instance().Resolve(module_spec.GetFileSpec());
// Try to resolve the exe based on PATH and/or platform-specific suffixes,
// but only if using the host platform.
if (platform_sp->IsHost() &&
!FileSystem::Instance().Exists(module_spec.GetFileSpec()))
FileSystem::Instance().ResolveExecutableLocation(
module_spec.GetFileSpec());
// Resolve the executable in case we are given a path to a application
// bundle like a .app bundle on MacOSX.
Host::ResolveExecutableInBundle(module_spec.GetFileSpec());
lldb::offset_t file_offset = 0;
lldb::offset_t file_size = 0;
ModuleSpecList module_specs;
const size_t num_specs = ObjectFile::GetModuleSpecifications(
module_spec.GetFileSpec(), file_offset, file_size, module_specs);
if (num_specs > 0) {
ModuleSpec matching_module_spec;
if (num_specs == 1) {
if (module_specs.GetModuleSpecAtIndex(0, matching_module_spec)) {
if (platform_arch.IsValid()) {
if (platform_arch.IsCompatibleMatch(
matching_module_spec.GetArchitecture())) {
// If the OS or vendor weren't specified, then adopt the module's
// architecture so that the platform matching can be more
// accurate.
update_platform_arch(matching_module_spec.GetArchitecture());
} else {
StreamString platform_arch_strm;
StreamString module_arch_strm;
platform_arch.DumpTriple(platform_arch_strm.AsRawOstream());
matching_module_spec.GetArchitecture().DumpTriple(
module_arch_strm.AsRawOstream());
error.SetErrorStringWithFormat(
"the specified architecture '%s' is not compatible with '%s' "
"in '%s'",
platform_arch_strm.GetData(), module_arch_strm.GetData(),
module_spec.GetFileSpec().GetPath().c_str());
return error;
}
} else {
// Only one arch and none was specified.
prefer_platform_arch = true;
platform_arch = matching_module_spec.GetArchitecture();
}
}
} else if (arch.IsValid()) {
// Fat binary. A (valid) architecture was specified.
module_spec.GetArchitecture() = arch;
if (module_specs.FindMatchingModuleSpec(module_spec,
matching_module_spec))
update_platform_arch(matching_module_spec.GetArchitecture());
} else {
// Fat binary. No architecture specified, check if there is
// only one platform for all of the architectures.
std::vector<PlatformSP> candidates;
std::vector<ArchSpec> archs;
for (const ModuleSpec &spec : module_specs.ModuleSpecs())
archs.push_back(spec.GetArchitecture());
if (PlatformSP platform_for_archs_sp =
platform_list.GetOrCreate(archs, {}, candidates)) {
platform_sp = platform_for_archs_sp;
} else if (candidates.empty()) {
error.SetErrorString("no matching platforms found for this file");
return error;
} else {
// More than one platform claims to support this file.
StreamString error_strm;
std::set<llvm::StringRef> platform_set;
error_strm.Printf(
"more than one platform supports this executable (");
for (const auto &candidate : candidates) {
llvm::StringRef platform_name = candidate->GetName();
if (platform_set.count(platform_name))
continue;
if (!platform_set.empty())
error_strm.PutCString(", ");
error_strm.PutCString(platform_name);
platform_set.insert(platform_name);
}
error_strm.Printf("), specify an architecture to disambiguate");
error.SetErrorString(error_strm.GetString());
return error;
}
}
}
}
// If we have a valid architecture, make sure the current platform is
// compatible with that architecture.
if (!prefer_platform_arch && arch.IsValid()) {
if (!platform_sp->IsCompatibleArchitecture(
arch, {}, ArchSpec::CompatibleMatch, nullptr)) {
platform_sp = platform_list.GetOrCreate(arch, {}, &platform_arch);
if (platform_sp)
platform_list.SetSelectedPlatform(platform_sp);
}
} else if (platform_arch.IsValid()) {
// If "arch" isn't valid, yet "platform_arch" is, it means we have an
// executable file with a single architecture which should be used.
ArchSpec fixed_platform_arch;
if (!platform_sp->IsCompatibleArchitecture(
platform_arch, {}, ArchSpec::CompatibleMatch, nullptr)) {
platform_sp =
platform_list.GetOrCreate(platform_arch, {}, &fixed_platform_arch);
if (platform_sp)
platform_list.SetSelectedPlatform(platform_sp);
}
}
if (!platform_arch.IsValid())
platform_arch = arch;
return TargetList::CreateTargetInternal(debugger, user_exe_path,
platform_arch, load_dependent_files,
platform_sp, target_sp);
}
Status TargetList::CreateTargetInternal(Debugger &debugger,
llvm::StringRef user_exe_path,
const ArchSpec &specified_arch,
LoadDependentFiles load_dependent_files,
lldb::PlatformSP &platform_sp,
lldb::TargetSP &target_sp) {
LLDB_SCOPED_TIMERF("TargetList::CreateTarget (file = '%s', arch = '%s')",
user_exe_path.str().c_str(),
specified_arch.GetArchitectureName());
Status error;
const bool is_dummy_target = false;
ArchSpec arch(specified_arch);
if (arch.IsValid()) {
if (!platform_sp || !platform_sp->IsCompatibleArchitecture(
arch, {}, ArchSpec::CompatibleMatch, nullptr))
platform_sp =
debugger.GetPlatformList().GetOrCreate(specified_arch, {}, &arch);
}
if (!platform_sp)
platform_sp = debugger.GetPlatformList().GetSelectedPlatform();
if (!arch.IsValid())
arch = specified_arch;
FileSpec file(user_exe_path);
if (!FileSystem::Instance().Exists(file) && user_exe_path.startswith("~")) {
// we want to expand the tilde but we don't want to resolve any symbolic
// links so we can't use the FileSpec constructor's resolve flag
llvm::SmallString<64> unglobbed_path;
StandardTildeExpressionResolver Resolver;
Resolver.ResolveFullPath(user_exe_path, unglobbed_path);
if (unglobbed_path.empty())
file = FileSpec(user_exe_path);
else
file = FileSpec(unglobbed_path.c_str());
}
bool user_exe_path_is_bundle = false;
char resolved_bundle_exe_path[PATH_MAX];
resolved_bundle_exe_path[0] = '\0';
if (file) {
if (FileSystem::Instance().IsDirectory(file))
user_exe_path_is_bundle = true;
if (file.IsRelative() && !user_exe_path.empty()) {
llvm::SmallString<64> cwd;
if (! llvm::sys::fs::current_path(cwd)) {
FileSpec cwd_file(cwd.c_str());
cwd_file.AppendPathComponent(file);
if (FileSystem::Instance().Exists(cwd_file))
file = cwd_file;
}
}
ModuleSP exe_module_sp;
if (platform_sp) {
FileSpecList executable_search_paths(
Target::GetDefaultExecutableSearchPaths());
ModuleSpec module_spec(file, arch);
error = platform_sp->ResolveExecutable(module_spec, exe_module_sp,
executable_search_paths.GetSize()
? &executable_search_paths
: nullptr);
}
if (error.Success() && exe_module_sp) {
if (exe_module_sp->GetObjectFile() == nullptr) {
if (arch.IsValid()) {
error.SetErrorStringWithFormat(
"\"%s\" doesn't contain architecture %s", file.GetPath().c_str(),
arch.GetArchitectureName());
} else {
error.SetErrorStringWithFormat("unsupported file type \"%s\"",
file.GetPath().c_str());
}
return error;
}
target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target));
target_sp->SetExecutableModule(exe_module_sp, load_dependent_files);
if (user_exe_path_is_bundle)
exe_module_sp->GetFileSpec().GetPath(resolved_bundle_exe_path,
sizeof(resolved_bundle_exe_path));
if (target_sp->GetPreloadSymbols())
exe_module_sp->PreloadSymbols();
}
} else {
// No file was specified, just create an empty target with any arch if a
// valid arch was specified
target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target));
}
if (!target_sp)
return error;
// Set argv0 with what the user typed, unless the user specified a
// directory. If the user specified a directory, then it is probably a
// bundle that was resolved and we need to use the resolved bundle path
if (!user_exe_path.empty()) {
// Use exactly what the user typed as the first argument when we exec or
// posix_spawn
if (user_exe_path_is_bundle && resolved_bundle_exe_path[0]) {
target_sp->SetArg0(resolved_bundle_exe_path);
} else {
// Use resolved path
target_sp->SetArg0(file.GetPath().c_str());
}
}
if (file.GetDirectory()) {
FileSpec file_dir;
file_dir.SetDirectory(file.GetDirectory());
target_sp->AppendExecutableSearchPaths(file_dir);
}
// Now prime this from the dummy target:
target_sp->PrimeFromDummyTarget(debugger.GetDummyTarget());
return error;
}
bool TargetList::DeleteTarget(TargetSP &target_sp) {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp);
if (it == m_target_list.end())
return false;
m_target_list.erase(it);
return true;
}
TargetSP TargetList::FindTargetWithExecutableAndArchitecture(
const FileSpec &exe_file_spec, const ArchSpec *exe_arch_ptr) const {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find_if(m_target_list.begin(), m_target_list.end(),
[&exe_file_spec, exe_arch_ptr](const TargetSP &item) {
Module *exe_module = item->GetExecutableModulePointer();
if (!exe_module ||
!FileSpec::Match(exe_file_spec, exe_module->GetFileSpec()))
return false;
return !exe_arch_ptr ||
exe_arch_ptr->IsCompatibleMatch(exe_module->GetArchitecture());
});
if (it != m_target_list.end())
return *it;
return TargetSP();
}
TargetSP TargetList::FindTargetWithProcessID(lldb::pid_t pid) const {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find_if(m_target_list.begin(), m_target_list.end(),
[pid](const TargetSP &item) {
auto *process_ptr = item->GetProcessSP().get();
return process_ptr && (process_ptr->GetID() == pid);
});
if (it != m_target_list.end())
return *it;
return TargetSP();
}
TargetSP TargetList::FindTargetWithProcess(Process *process) const {
TargetSP target_sp;
if (!process)
return target_sp;
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find_if(m_target_list.begin(), m_target_list.end(),
[process](const TargetSP &item) {
return item->GetProcessSP().get() == process;
});
if (it != m_target_list.end())
target_sp = *it;
return target_sp;
}
TargetSP TargetList::GetTargetSP(Target *target) const {
TargetSP target_sp;
if (!target)
return target_sp;
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find_if(m_target_list.begin(), m_target_list.end(),
[target](const TargetSP &item) { return item.get() == target; });
if (it != m_target_list.end())
target_sp = *it;
return target_sp;
}
uint32_t TargetList::SendAsyncInterrupt(lldb::pid_t pid) {
uint32_t num_async_interrupts_sent = 0;
if (pid != LLDB_INVALID_PROCESS_ID) {
TargetSP target_sp(FindTargetWithProcessID(pid));
if (target_sp) {
Process *process = target_sp->GetProcessSP().get();
if (process) {
process->SendAsyncInterrupt();
++num_async_interrupts_sent;
}
}
} else {
// We don't have a valid pid to broadcast to, so broadcast to the target
// list's async broadcaster...
BroadcastEvent(Process::eBroadcastBitInterrupt, nullptr);
}
return num_async_interrupts_sent;
}
uint32_t TargetList::SignalIfRunning(lldb::pid_t pid, int signo) {
uint32_t num_signals_sent = 0;
Process *process = nullptr;
if (pid == LLDB_INVALID_PROCESS_ID) {
// Signal all processes with signal
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
for (const auto &target_sp : m_target_list) {
process = target_sp->GetProcessSP().get();
if (process && process->IsAlive()) {
++num_signals_sent;
process->Signal(signo);
}
}
} else {
// Signal a specific process with signal
TargetSP target_sp(FindTargetWithProcessID(pid));
if (target_sp) {
process = target_sp->GetProcessSP().get();
if (process && process->IsAlive()) {
++num_signals_sent;
process->Signal(signo);
}
}
}
return num_signals_sent;
}
int TargetList::GetNumTargets() const {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
return m_target_list.size();
}
lldb::TargetSP TargetList::GetTargetAtIndex(uint32_t idx) const {
TargetSP target_sp;
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
if (idx < m_target_list.size())
target_sp = m_target_list[idx];
return target_sp;
}
uint32_t TargetList::GetIndexOfTarget(lldb::TargetSP target_sp) const {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp);
if (it != m_target_list.end())
return std::distance(m_target_list.begin(), it);
return UINT32_MAX;
}
void TargetList::AddTargetInternal(TargetSP target_sp, bool do_select) {
lldbassert(!llvm::is_contained(m_target_list, target_sp) &&
"target already exists it the list");
m_target_list.push_back(std::move(target_sp));
if (do_select)
SetSelectedTargetInternal(m_target_list.size() - 1);
}
void TargetList::SetSelectedTargetInternal(uint32_t index) {
lldbassert(!m_target_list.empty());
m_selected_target_idx = index < m_target_list.size() ? index : 0;
}
void TargetList::SetSelectedTarget(uint32_t index) {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
SetSelectedTargetInternal(index);
}
void TargetList::SetSelectedTarget(const TargetSP &target_sp) {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp);
SetSelectedTargetInternal(std::distance(m_target_list.begin(), it));
}
lldb::TargetSP TargetList::GetSelectedTarget() {
std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex);
if (m_selected_target_idx >= m_target_list.size())
m_selected_target_idx = 0;
return GetTargetAtIndex(m_selected_target_idx);
}
```
|
```python
s = 'abc'
print(s.islower())
s = 'Abc'
print(s.islower())
s = '123'
print(s.islower())
s = 'a123'
print(s.islower())
s = ''
print(s.islower())
import unicodedata
count = 0
for codepoint in range(2 ** 16):
ch = chr(codepoint)
if ch.islower():
print(u'{:04x}: {} ({})'.format(codepoint, ch, unicodedata.name(ch, 'UNNAMED')))
count = count + 1
print(f'Total Number of Lowercase Unicode Characters = {count}')
```
|
```yaml
# Test jobs generated by build_jobs.py (do not manually edit)
# 6 jobs, total of 42 runs per week
periodics:
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.29", "kops_channel": "alpha", "kops_version": "1.29", "networking": "calico"}
- name: e2e-kops-aws-conformance-1-29
cron: '7 21-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240801' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.29.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.29'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.29'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.29, kops-conformance, kops-distro-u2204, kops-k8s-1.29, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-1-29
# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.29", "kops_channel": "alpha", "kops_version": "1.29", "networking": "calico"}
- name: e2e-kops-aws-conformance-arm64-1-29
cron: '45 22-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-20240801' --channel=alpha --networking=calico --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.29.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204arm64
test.kops.k8s.io/extra_flags: --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.29'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.29'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.29, kops-conformance, kops-distro-u2204, kops-k8s-1.29, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-arm64-1-29
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.28", "kops_channel": "alpha", "kops_version": "1.28", "networking": "calico"}
- name: e2e-kops-aws-conformance-1-28
cron: '5 11-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240801' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.28.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.28'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.28'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.28, kops-conformance, kops-distro-u2204, kops-k8s-1.28, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-1-28
# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.28", "kops_channel": "alpha", "kops_version": "1.28", "networking": "calico"}
- name: e2e-kops-aws-conformance-arm64-1-28
cron: '11 0-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-20240801' --channel=alpha --networking=calico --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.28.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204arm64
test.kops.k8s.io/extra_flags: --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.28'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.28'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.28, kops-conformance, kops-distro-u2204, kops-k8s-1.28, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-arm64-1-28
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.27", "kops_channel": "alpha", "kops_version": "1.27", "networking": "calico"}
- name: e2e-kops-aws-conformance-1-27
cron: '56 2-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20240801' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.27.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.27'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.27'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.27, kops-conformance, kops-distro-u2204, kops-k8s-1.27, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-1-27
# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.27", "kops_channel": "alpha", "kops_version": "1.27", "networking": "calico"}
- name: e2e-kops-aws-conformance-arm64-1-27
cron: '42 9-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 180m
extra_refs:
- org: kubernetes
repo: kops
base_ref: master
workdir: true
path_alias: k8s.io/kops
spec:
containers:
- command:
- runner.sh
args:
- bash
- -c
- |
make test-e2e-install
kubetest2 kops \
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-20240801' --channel=alpha --networking=calico --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=path_to_url \
--kubernetes-version=path_to_url \
--test=kops \
-- \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.27.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
--parallel=1
env:
- name: KUBE_SSH_KEY_PATH
value: /etc/aws-ssh/aws-ssh-private
- name: KUBE_SSH_USER
value: ubuntu
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240803-cf1183f2db-master
imagePullPolicy: Always
resources:
limits:
cpu: "4"
memory: 6Gi
requests:
cpu: "4"
memory: 6Gi
annotations:
test.kops.k8s.io/cloud: aws
test.kops.k8s.io/distro: u2204arm64
test.kops.k8s.io/extra_flags: --zones=eu-central-1a --node-size=t4g.large --master-size=t4g.large --discovery-store=s3://k8s-kops-prow/discovery
test.kops.k8s.io/k8s_version: '1.27'
test.kops.k8s.io/kops_channel: alpha
test.kops.k8s.io/kops_version: '1.27'
test.kops.k8s.io/networking: calico
testgrid-dashboards: kops-1.27, kops-conformance, kops-distro-u2204, kops-k8s-1.27, sig-cluster-lifecycle-kops
testgrid-days-of-results: '90'
testgrid-tab-name: kops-aws-conformance-arm64-1-27
```
|
```c
/*
*
* 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
*/
#include "libavutil/common.h"
#include "dcadct.h"
#include "dcamath.h"
static void sum_a(const int *input, int *output, int len)
{
int i;
for (i = 0; i < len; i++)
output[i] = input[2 * i] + input[2 * i + 1];
}
static void sum_b(const int *input, int *output, int len)
{
int i;
output[0] = input[0];
for (i = 1; i < len; i++)
output[i] = input[2 * i] + input[2 * i - 1];
}
static void sum_c(const int *input, int *output, int len)
{
int i;
for (i = 0; i < len; i++)
output[i] = input[2 * i];
}
static void sum_d(const int *input, int *output, int len)
{
int i;
output[0] = input[1];
for (i = 1; i < len; i++)
output[i] = input[2 * i - 1] + input[2 * i + 1];
}
static void dct_a(const int *input, int *output)
{
static const int cos_mod[8][8] = {
{ 8348215, 8027397, 7398092, 6484482, 5321677, 3954362, 2435084, 822227 },
{ 8027397, 5321677, 822227, -3954362, -7398092, -8348215, -6484482, -2435084 },
{ 7398092, 822227, -6484482, -8027397, -2435084, 5321677, 8348215, 3954362 },
{ 6484482, -3954362, -8027397, 822227, 8348215, 2435084, -7398092, -5321677 },
{ 5321677, -7398092, -2435084, 8348215, -822227, -8027397, 3954362, 6484482 },
{ 3954362, -8348215, 5321677, 2435084, -8027397, 6484482, 822227, -7398092 },
{ 2435084, -6484482, 8348215, -7398092, 3954362, 822227, -5321677, 8027397 },
{ 822227, -2435084, 3954362, -5321677, 6484482, -7398092, 8027397, -8348215 }
};
int i, j;
for (i = 0; i < 8; i++) {
int64_t res = 0;
for (j = 0; j < 8; j++)
res += (int64_t)cos_mod[i][j] * input[j];
output[i] = norm23(res);
}
}
static void dct_b(const int *input, int *output)
{
static const int cos_mod[8][7] = {
{ 8227423, 7750063, 6974873, 5931642, 4660461, 3210181, 1636536 },
{ 6974873, 3210181, -1636536, -5931642, -8227423, -7750063, -4660461 },
{ 4660461, -3210181, -8227423, -5931642, 1636536, 7750063, 6974873 },
{ 1636536, -7750063, -4660461, 5931642, 6974873, -3210181, -8227423 },
{ -1636536, -7750063, 4660461, 5931642, -6974873, -3210181, 8227423 },
{ -4660461, -3210181, 8227423, -5931642, -1636536, 7750063, -6974873 },
{ -6974873, 3210181, 1636536, -5931642, 8227423, -7750063, 4660461 },
{ -8227423, 7750063, -6974873, 5931642, -4660461, 3210181, -1636536 }
};
int i, j;
for (i = 0; i < 8; i++) {
int64_t res = input[0] * (INT64_C(1) << 23);
for (j = 0; j < 7; j++)
res += (int64_t)cos_mod[i][j] * input[1 + j];
output[i] = norm23(res);
}
}
static void mod_a(const int *input, int *output)
{
static const int cos_mod[16] = {
4199362, 4240198, 4323885, 4454708,
4639772, 4890013, 5221943, 5660703,
-6245623, -7040975, -8158494, -9809974,
-12450076, -17261920, -28585092, -85479984
};
int i, k;
for (i = 0; i < 8; i++)
output[i] = mul23(cos_mod[i], input[i] + input[8 + i]);
for (i = 8, k = 7; i < 16; i++, k--)
output[i] = mul23(cos_mod[i], input[k] - input[8 + k]);
}
static void mod_b(int *input, int *output)
{
static const int cos_mod[8] = {
4214598, 4383036, 4755871, 5425934,
6611520, 8897610, 14448934, 42791536
};
int i, k;
for (i = 0; i < 8; i++)
input[8 + i] = mul23(cos_mod[i], input[8 + i]);
for (i = 0; i < 8; i++)
output[i] = input[i] + input[8 + i];
for (i = 8, k = 7; i < 16; i++, k--)
output[i] = input[k] - input[8 + k];
}
static void mod_c(const int *input, int *output)
{
static const int cos_mod[32] = {
1048892, 1051425, 1056522, 1064244,
1074689, 1087987, 1104313, 1123884,
1146975, 1173922, 1205139, 1241133,
1282529, 1330095, 1384791, 1447815,
-1520688, -1605358, -1704360, -1821051,
-1959964, -2127368, -2332183, -2587535,
-2913561, -3342802, -3931480, -4785806,
-6133390, -8566050, -14253820, -42727120
};
int i, k;
for (i = 0; i < 16; i++)
output[i] = mul23(cos_mod[i], input[i] + input[16 + i]);
for (i = 16, k = 15; i < 32; i++, k--)
output[i] = mul23(cos_mod[i], input[k] - input[16 + k]);
}
static void clp_v(int *input, int len)
{
int i;
for (i = 0; i < len; i++)
input[i] = clip23(input[i]);
}
static void imdct_half_32(int32_t *output, const int32_t *input)
{
int buf_a[32], buf_b[32];
int i, k, mag, shift, round;
mag = 0;
for (i = 0; i < 32; i++)
mag += abs(input[i]);
shift = mag > 0x400000 ? 2 : 0;
round = shift > 0 ? 1 << (shift - 1) : 0;
for (i = 0; i < 32; i++)
buf_a[i] = (input[i] + round) >> shift;
sum_a(buf_a, buf_b + 0, 16);
sum_b(buf_a, buf_b + 16, 16);
clp_v(buf_b, 32);
sum_a(buf_b + 0, buf_a + 0, 8);
sum_b(buf_b + 0, buf_a + 8, 8);
sum_c(buf_b + 16, buf_a + 16, 8);
sum_d(buf_b + 16, buf_a + 24, 8);
clp_v(buf_a, 32);
dct_a(buf_a + 0, buf_b + 0);
dct_b(buf_a + 8, buf_b + 8);
dct_b(buf_a + 16, buf_b + 16);
dct_b(buf_a + 24, buf_b + 24);
clp_v(buf_b, 32);
mod_a(buf_b + 0, buf_a + 0);
mod_b(buf_b + 16, buf_a + 16);
clp_v(buf_a, 32);
mod_c(buf_a, buf_b);
for (i = 0; i < 32; i++)
buf_b[i] = clip23(buf_b[i] * (1 << shift));
for (i = 0, k = 31; i < 16; i++, k--) {
output[ i] = clip23(buf_b[i] - buf_b[k]);
output[16 + i] = clip23(buf_b[i] + buf_b[k]);
}
}
static void mod64_a(const int *input, int *output)
{
static const int cos_mod[32] = {
4195568, 4205700, 4226086, 4256977,
4298755, 4351949, 4417251, 4495537,
4587901, 4695690, 4820557, 4964534,
5130115, 5320382, 5539164, 5791261,
-6082752, -6421430, -6817439, -7284203,
-7839855, -8509474, -9328732, -10350140,
-11654242, -13371208, -15725922, -19143224,
-24533560, -34264200, -57015280, -170908480
};
int i, k;
for (i = 0; i < 16; i++)
output[i] = mul23(cos_mod[i], input[i] + input[16 + i]);
for (i = 16, k = 15; i < 32; i++, k--)
output[i] = mul23(cos_mod[i], input[k] - input[16 + k]);
}
static void mod64_b(int *input, int *output)
{
static const int cos_mod[16] = {
4199362, 4240198, 4323885, 4454708,
4639772, 4890013, 5221943, 5660703,
6245623, 7040975, 8158494, 9809974,
12450076, 17261920, 28585092, 85479984
};
int i, k;
for (i = 0; i < 16; i++)
input[16 + i] = mul23(cos_mod[i], input[16 + i]);
for (i = 0; i < 16; i++)
output[i] = input[i] + input[16 + i];
for (i = 16, k = 15; i < 32; i++, k--)
output[i] = input[k] - input[16 + k];
}
static void mod64_c(const int *input, int *output)
{
static const int cos_mod[64] = {
741511, 741958, 742853, 744199,
746001, 748262, 750992, 754197,
757888, 762077, 766777, 772003,
777772, 784105, 791021, 798546,
806707, 815532, 825054, 835311,
846342, 858193, 870912, 884554,
899181, 914860, 931667, 949686,
969011, 989747, 1012012, 1035941,
-1061684, -1089412, -1119320, -1151629,
-1186595, -1224511, -1265719, -1310613,
-1359657, -1413400, -1472490, -1537703,
-1609974, -1690442, -1780506, -1881904,
-1996824, -2128058, -2279225, -2455101,
-2662128, -2909200, -3208956, -3579983,
-4050785, -4667404, -5509372, -6726913,
-8641940, -12091426, -20144284, -60420720
};
int i, k;
for (i = 0; i < 32; i++)
output[i] = mul23(cos_mod[i], input[i] + input[32 + i]);
for (i = 32, k = 31; i < 64; i++, k--)
output[i] = mul23(cos_mod[i], input[k] - input[32 + k]);
}
static void imdct_half_64(int32_t *output, const int32_t *input)
{
int buf_a[64], buf_b[64];
int i, k, mag, shift, round;
mag = 0;
for (i = 0; i < 64; i++)
mag += abs(input[i]);
shift = mag > 0x400000 ? 2 : 0;
round = shift > 0 ? 1 << (shift - 1) : 0;
for (i = 0; i < 64; i++)
buf_a[i] = (input[i] + round) >> shift;
sum_a(buf_a, buf_b + 0, 32);
sum_b(buf_a, buf_b + 32, 32);
clp_v(buf_b, 64);
sum_a(buf_b + 0, buf_a + 0, 16);
sum_b(buf_b + 0, buf_a + 16, 16);
sum_c(buf_b + 32, buf_a + 32, 16);
sum_d(buf_b + 32, buf_a + 48, 16);
clp_v(buf_a, 64);
sum_a(buf_a + 0, buf_b + 0, 8);
sum_b(buf_a + 0, buf_b + 8, 8);
sum_c(buf_a + 16, buf_b + 16, 8);
sum_d(buf_a + 16, buf_b + 24, 8);
sum_c(buf_a + 32, buf_b + 32, 8);
sum_d(buf_a + 32, buf_b + 40, 8);
sum_c(buf_a + 48, buf_b + 48, 8);
sum_d(buf_a + 48, buf_b + 56, 8);
clp_v(buf_b, 64);
dct_a(buf_b + 0, buf_a + 0);
dct_b(buf_b + 8, buf_a + 8);
dct_b(buf_b + 16, buf_a + 16);
dct_b(buf_b + 24, buf_a + 24);
dct_b(buf_b + 32, buf_a + 32);
dct_b(buf_b + 40, buf_a + 40);
dct_b(buf_b + 48, buf_a + 48);
dct_b(buf_b + 56, buf_a + 56);
clp_v(buf_a, 64);
mod_a(buf_a + 0, buf_b + 0);
mod_b(buf_a + 16, buf_b + 16);
mod_b(buf_a + 32, buf_b + 32);
mod_b(buf_a + 48, buf_b + 48);
clp_v(buf_b, 64);
mod64_a(buf_b + 0, buf_a + 0);
mod64_b(buf_b + 32, buf_a + 32);
clp_v(buf_a, 64);
mod64_c(buf_a, buf_b);
for (i = 0; i < 64; i++)
buf_b[i] = clip23(buf_b[i] * (1 << shift));
for (i = 0, k = 63; i < 32; i++, k--) {
output[ i] = clip23(buf_b[i] - buf_b[k]);
output[32 + i] = clip23(buf_b[i] + buf_b[k]);
}
}
av_cold void ff_dcadct_init(DCADCTContext *c)
{
c->imdct_half[0] = imdct_half_32;
c->imdct_half[1] = imdct_half_64;
}
```
|
```javascript
/*
* jQuery File Upload Validation Plugin
* path_to_url
*
* path_to_url
*
* path_to_url
*/
/* global define, require, window */
;(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define([
'jquery',
'./jquery.fileupload-process'
], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS:
factory(
require('jquery'),
require('./jquery.fileupload-process')
);
} else {
// Browser globals:
factory(
window.jQuery
);
}
}(function ($) {
'use strict';
// Append to the default processQueue:
$.blueimp.fileupload.prototype.options.processQueue.push(
{
action: 'validate',
// Always trigger this action,
// even if the previous action was rejected:
always: true,
// Options taken from the global options map:
acceptFileTypes: '@',
maxFileSize: '@',
minFileSize: '@',
maxNumberOfFiles: '@',
disabled: '@disableValidation'
}
);
// The File Upload Validation plugin extends the fileupload widget
// with file validation functionality:
$.widget('blueimp.fileupload', $.blueimp.fileupload, {
options: {
/*
// The regular expression for allowed file types, matches
// against either file type or file name:
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
// The maximum allowed file size in bytes:
maxFileSize: 10000000, // 10 MB
// The minimum allowed file size in bytes:
minFileSize: undefined, // No minimal file size
// The limit of files to be uploaded:
maxNumberOfFiles: 10,
*/
// Function returning the current number of files,
// has to be overriden for maxNumberOfFiles validation:
getNumberOfFiles: $.noop,
// Error and info messages:
messages: {
maxNumberOfFiles: 'Maximum number of files exceeded',
acceptFileTypes: 'File type not allowed',
maxFileSize: 'File is too large',
minFileSize: 'File is too small'
}
},
processActions: {
validate: function (data, options) {
if (options.disabled) {
return data;
}
var dfd = $.Deferred(),
settings = this.options,
file = data.files[data.index],
fileSize;
if (options.minFileSize || options.maxFileSize) {
fileSize = file.size;
}
if ($.type(options.maxNumberOfFiles) === 'number' &&
(settings.getNumberOfFiles() || 0) + data.files.length >
options.maxNumberOfFiles) {
file.error = settings.i18n('maxNumberOfFiles');
} else if (options.acceptFileTypes &&
!(options.acceptFileTypes.test(file.type) ||
options.acceptFileTypes.test(file.name))) {
file.error = settings.i18n('acceptFileTypes');
} else if (fileSize > options.maxFileSize) {
file.error = settings.i18n('maxFileSize');
} else if ($.type(fileSize) === 'number' &&
fileSize < options.minFileSize) {
file.error = settings.i18n('minFileSize');
} else {
delete file.error;
}
if (file.error || data.files.error) {
data.files.error = true;
dfd.rejectWith(this, [data]);
} else {
dfd.resolveWith(this, [data]);
}
return dfd.promise();
}
}
});
}));
```
|
Coles County is a county in Illinois. As of the 2020 census, the population was 46,863. Its county seat is Charleston, which is also the home of Eastern Illinois University.
Coles County is part of the Charleston-Mattoon, IL Micropolitan Statistical Area.
History
Coles County was organized by on December 25, 1830, from Clark and Edgar counties. It was named after Edward Coles, the second governor of Illinois, from 1822 to 1826. The majority of the American settlers who founded Coles County were either from the six New England states, or were born in upstate New York to parents who had moved to that region from New England shortly after the American Revolution. They were part of a wave of farmers who headed west into the frontier of the Northwest Territory during the early 1800s. The completion of the Erie Canal led to an increase in such migrants heading west. When these settlers originally reached what is today Coles County, they found dense virgin forest and prairie.
The New England settlers laid out farms, constructed roads, erected government buildings and established post routes. They brought with them many of their "Yankee" values, such as staunch support for abolitionism as well as a passion for education. They quickly established schools in their communities. They were mostly members of the Congregationalist Church, though some were Episcopalian. As a result of the second Great Awakening, many had become Baptists or switched to Protestant denominations such as Methodism or Presbyterianism before moving to what is now Coles County. The prevalence of settlers with New England heritage resulted in their establishing a culture that was continuous with that of New England for the first several decades of its history. As a result of this, county residents largely supported abolitionism in the antebellum period, and also the Republican Party as of the 1850s and 1860s.
Beginning in 1849, numerous German immigrants arrived in Coles County, refugees from the rebellions the year before in various principalities. This population overwhelmingly supported the abolition of slavery.
Irish Catholic immigrants who had fled the famine in their country also settled here. Illinois Democratic Senator Stephen Douglas was extremely popular amongst Irish Catholic immigrants in Coles County at this time. During the Civil War the Irish Catholic community of Coles County would overwhelmingly be Copperheads.
Folklore representation in other media
Coles County has generated several well-known legends and folktales, including the Mad Gasser of Mattoon and accounts of the ghost of Mary Hawkins at Pemberton Hall. Michael Kleen has compiled many of these tales, including the "witch's grave" of St. Omer Cemetery and the story of "Rag Doll Cemetery," in his book Tales of Coles County, Illinois (2010).
The legend of "Rag Doll Cemetery" was adapted for the screenplay of the independent film Rag Doll, filmed in 2010 primarily in and around Mattoon, Illinois. The novel A Family Possessed (2000) by L. W. Stevenson, is based on a rural family's account of poltergeist activity at their home in the 1980s.
Ashmore Estates has long been a part of local folklore. Originally serving as the almshouse at the Coles County Poor Farm, it is considered a haunted attraction and a place of interest for paranormal investigators.
Geography
According to the U.S. Census Bureau, the county has a total area of , of which is land and (0.4%) is water.
Climate and weather
In recent years, average temperatures in the county seat of Charleston have ranged from a low of in January to a high of in July, although a record low of was recorded in January 1994 and a record high of was recorded in July 1936. Average monthly precipitation ranged from in January to in July.
Adjacent counties
Douglas County - north
Edgar County - northeast
Clark County - southeast
Cumberland County - south
Shelby County - southwest
Moultrie County - west
Major highways
Interstate 57
US Route 45
Illinois Route 16
Illinois Route 49
Illinois Route 121
Illinois Route 130
Illinois Route 133
Public transit
Dial-A-Ride Rural Public Transportation
Mattoon station
Demographics
As of the 2010 United States Census, there were 53,873 people, 21,463 households, and 11,963 families residing in the county. The population density was . There were 23,425 housing units at an average density of . The racial makeup of the county was 92.9% white, 3.8% black or African American, 1.0% Asian, 0.2% American Indian, 0.6% from other races, and 1.5% from two or more races. Those of Hispanic or Latino origin made up 2.1% of the population. In terms of ancestry, 25.6% were German, 16.4% were Irish, 11.1% were American, 10.0% were English, 3.4% were Polish, 2.9% were Italian, 2.5% were French, 2.1% were Dutch and 1.9% were Scots-Irish.
Of the 21,463 households, 25.5% had children under the age of 18 living with them, 41.8% were married couples living together, 9.9% had a female householder with no husband present, 44.3% were non-families, and 31.4% of all households were made up of individuals. The average household size was 2.30 and the average family size was 2.87. The median age was 31.6 years.
The median income for a household in the county was $36,457 and the median income for a family was $54,170. Males had a median income of $38,915 versus $28,781 for females. The per capita income for the county was $20,601. About 10.6% of families and 20.3% of the population were below the poverty line, including 20.6% of those under age 18 and 5.9% of those age 65 or over.
Communities
Cities
Charleston (seat)
Mattoon
Villages
Ashmore
Humboldt
Lerna
Oakland
Unincorporated Communities
Bushton
Campbell
Coles
Cooks Mills
Diona
Dorans
Embarrass
Etna
Fairgrange
Fuller
Hutton
Janesville
Jones
Kings
Lipsey
Loxa
Magnet
Newby
Paradise
Rardin
Trilla
Wabash Point
Townships
Coles County is divided into these twelve townships:
Ashmore
Charleston
East Oakland
Humboldt
Hutton
Lafayette
Mattoon
Morgan
North Okaw
Paradise
Pleasant Grove
Seven Hickory
Education
Eastern Illinois University
Lake Land College
Lakeview College of Nursing (Charleston)
Charleston Community Unit School District 1
Mattoon Community Unit School District 2
Oakland Community Unit School District 5
Politics
Coles County leans strongly towards the Republican Party in Presidential elections. Although it was carried by Illinoisian Barack Obama in 2008, the GOP regained the county in 2012 and the next presidential elections.
Notable people
Thomas Lincoln, father of President Abraham Lincoln, moved to Coles County in 1831 and died there in 1851.
See also
National Register of Historic Places listings in Coles County, Illinois
List of school districts in Illinois
Coles Together, economic development organization
References
External links
County website
Coles County Online Community
Illinois State Archives
1830 establishments in Illinois
Charleston–Mattoon, IL Micropolitan Statistical Area
Illinois counties
Populated places established in 1830
|
Lionel Maurice Van Praag, GM (17 December 1908 – 15 May 1987) was an Australian motorcycle speedway champion, who won the inaugural Speedway World Championship in London on 10 September 1936. Van Praag's victory saw him established as Australia's first ever motorsport World Champion.
1931 UK Southern League Champion
In his first full season in British speedway, Lionel was a member of the Wembley Lions team that won the last ever Southern League and the National Trophy in 1931.
1932 UK National League Champion
Lionel won the inaugural National League title in 1932 with the Wembley Lions
1936 World Speedway Final
Circumstances
Lionel won the run-off for the Speedway World Championship against Eric Langton in 1936 in somewhat controversial circumstances. The Championship was decided by bonus points accumulated in previous rounds. Despite being unbeaten in the final, Bluey Wilkinson was not crowned Champion. Bonus points accumulated by Van Praag and Langton took them to the top of the standings and into a run-off (match race).
The Match Race
As they lined up at the tapes, Langton broke them which would ordinarily lead to disqualification. However, Van Praag stated he did not want to win the title by default and insisted that a race should take place. At the restart Langton made it to the first bend in front and led until the final bend on the last lap when Van Praag darted through the smallest of gaps to win by less than wheel length.
Controversy
Afterwards, controversial allegations were abound that the two riders had 'fixed' the match race, deciding between them that the first person to the first bend would win the race and the Championship and split the prize money; Langton led into the first bend but was overtaken by Van Praag. Van Praag reportedly paid Langton £50 "conscience money" after the race for going back on the agreement.
Australia
Van Praag was also a successful rider in his home country, though he never won the Australian Championship, finishing second in 1941 (3 laps), 1946 (3 laps), and 1947 (2 & 3 laps), as well as finishing third in 1940 (3 laps). He won the NSW State Championship in 1941 at the Sydney Sports Ground and the Victorian Championship in 1947.
Van Praag also represented Australia in test matches at home against England on numerous occasions at tracks around the country including the Sydney Showground, Sydney Sports Ground, Wayville Showground (Adelaide), Claremont Speedway (Perth) and the Exhibition Speedway in Melbourne.
World Final appearances
1936 – London, Wembley Stadium – Winner – 14pts plus 12 bonus pts (won run-off)
1937 – London, Wembley Stadium – 7th – 6pts + 11 bonus pts
1938 – London, Wembley Stadium – 4th – 11pts + 7 bonus pts
World War II
Van Praag was awarded the George Medal for bravery during World War II, when a Royal Australian Air Force Douglas DC-2, in which he was second pilot was shot down, by two Japanese aircraft over the Sumba Strait in Indonesia. Van Praag, a sergeant at the time, and the aircraft captain, Flying Officer Noel Webster helped two colleagues—one semi-conscious and the other a non-swimmer—to shore after spending thirty hours in the water during which they had to fight off several shark attacks. After the war, Van Praag participated in one more speedway championship, but retired in 1950 to concentrate on his career as a pilot.
Van Praag also appeared in the 1933 British film Money for Speed which starred John Loder, Ida Lupino, Cyril McLaglen and Moore Marriott. Ginger Lees, Frank Varey and speedway promoter Johnnie Hoskins also featured.
Personal life
Van Praag was Jewish.
In 1990, Van Praag was inducted into the Sport Australia Hall of Fame.
In 2008, he was inducted into the Australian Speedway Hall of Fame.
Legacy
In 2000, the Australian Capital Territory Place Names Committee named a street, Van Praag Circuit (ten weeks later renamed Van Praag Place), after him.
Players cigarette cards
Van Praag is listed as number 45 of 50 in the 1930s Player's cigarette card collection.
References
External links
The Flying Dutchman – lionelvanpraag.com
1908 births
1987 deaths
Australian speedway riders
Individual Speedway World Champions
Australian World War II pilots
Royal Australian Air Force personnel of World War II
Recipients of the George Medal
Australian Jews
Wembley Lions riders
New Cross Rangers riders
Australian people of Dutch-Jewish descent
Jewish sportspeople
Sport Australia Hall of Fame inductees
Military personnel from New South Wales
|
Meghana Jakkampudi (born 28 December 1995) is an Indian badminton player. She was the gold medalists at the 2019 South Asian Games in the mixed doubles and team events, also won the bronze medal in the women's doubles.
Achievements
South Asian Games
Women's doubles
Mixed doubles
BWF International Challenge/Series (3 titles, 3 runners-up)
Women's doubles
Mixed doubles
BWF International Challenge tournament
BWF International Series tournament
BWF Future Series tournament
References
External links
1995 births
Living people
Racket sportspeople from Vijayawada
Sportswomen from Vijayawada, India
21st-century Indian women
21st-century Indian people
Indian female badminton players
South Asian Games gold medalists for India
South Asian Games bronze medalists for India
South Asian Games medalists in badminton
|
Johanna Elisabeth of Baden-Durlach (3 October 1680 – 2 July 1757), was a Duchess of Württemberg by marriage.
Marriage
Johanna of Baden-Durlach was born in the Karlsberg, Durlach, the third child of Friedrich VII Magnus, Margrave of Baden-Durlach (1647–1709) and his wife Auguste Marie of Holstein-Gottorp (1649–1728).
In 1697, she was married in Baden-Wurttemberg in a double-wedding to Duke Eberhard Ludwig of Württemberg (1676–1733). His parents were Duke Wilhelm Ludwig of Württemberg and Magdalena Sibylla of Hesse-Darmstadt. The couple tied the two leading Lutheran dynasties of southern Germany together. Joanna's marriage was celebrated in Switzerland, where Baden's court stayed in exile due to repeated French invasions. Two months later in Stuttgart, the marriage of Eberhard Ludwig's sister, Magdalene Wilhelmine and the crown prince and later Margrave Charles III Wilhelm of Baden-Durlach was celebrated. Eberhard paid little attention to his new wife; allegedly he only married her in order to be near one of Joanna's ladies-in-waiting.
Separation
After a son, Crown Prince Friedrich Ludwig (1698–1731), had been born in the first year of marriage, the couple lived largely separated. Through his military career Eberhard Ludwig initially stayed rarely in Stuttgart. In 1704, he took part in the Battle of Blenheim, and was later appointed commander of the Army of the Rhine. In 1707, he became Field Marshal of the Swabian troops in the War of Spanish Succession. It was important for him to command a standing army and a great role model and lead to an absolutist French state with a brilliant court. Johanna Elisabeth clung on to Pietist ideas of morality, with which she had been brought up, and stayed in the old castle in Stuttgart.
The Grävenitz affair
Eberhard Ludwig of Württemberg was the first Duke who lived openly with a mistress, Wilhelmine von Grävenitz (1686–1744). His morganatic marriage to her 1707 was considered a scandal. On the application of Johanna Elisabeth to Holy Roman Emperor Charles VI, the bigamous marriage had to be dissolved and Grävenitz was sent into exile in Switzerland.
Her spouse returned in 1710 when Wilhelmine of Grävenitz, through a sham marriage to Hofmeister Count von Würben, was able to return to Württemberg as well. They lived largely in Ludwigsburg. In 1718, the residence was also officially moved to Ludwigsburg. Johanna Elisabeth, meanwhile, continued to live in the Old Palace in Stuttgart. She refused, however, to file for divorce, and the marriage was not dissolved.
The early death of Prince Friedrich Ludwig in 1731 threatened to move Württemberg to a Catholic secondary line. Because of this danger, Duke Eberhard Ludwig broke his connection to Wilhelmine of Grävenitz and hoped to conceive an heir from his legitimate and long-ignored wife, Johanna Elisabeth. The advanced age of the couple and the imminent death of the Duke on 31 October 1733, however, thwarted these efforts.
Johanna Elizabeth survived her husband by more than twenty years. She lived as a widow at Kirchheim Castle, and died in Schloss Stetten, Stetten in the Rems Valley. She was buried in the Ludwigsburg Castle Church.
Children
Friedrich Ludwig, Hereditary Prince of Württemberg (1698–1731); married, in 1716, Henrietta Maria of Brandenburg-Schwedt (1702–1782).
References
Notes
Sources
1680 births
1757 deaths
Johanna Elisabeth
Daughters of monarchs
|
Autotheory is a literary tradition involving the combination of the narrative forms of autobiography, memoir, and critical theory. Works of autotheory involve a first-person account of an author’s life blended with research investigations. Works of autotheory might bring in broader questions in philosophy, literary theory, social structures, science and culture to interpret the politics and history within personal experiences.
Discussions surrounding Paul B. Preciado's 2013 book Testo Junkie popularized the term.
Lauren Fournier suggests autotheory is rooted in creative and critical practice in feminist contexts. Fournier describes autotheory as a site of resistance, where feminist writers, artists, and scholars brought political questions to bear in their own lives, in contrast to the situated distance between the writer and their subject matter or absence of the writer in their work that is prominent in academic research across disciplines. Clare suggests autotheory is adjacent to the literary movement autofiction, but distinct in that it is a direct response and form of resistance to the institutionalization of theory.
Notable works
Sara Ahmed, Queer Phenomenology, Duke University Press, 2020
Sara Ahmed, Living a Feminist Life, Duke University Press, 2017
Maggie Nelson, The Argonauts, 2015
Frank Wilderson III, Afropessimism, Liveright, 2020
Saidiya Hartman, Lose Your Mother, Farrar, Straus and Giroux, 2008
Saidiya Hartman, Venus in Two Acts, Duke University Press, 2008
Chris Kraus, I Love Dick, Semiotext(e), 1997
Paul Preciado, Testo Junkie, 2008
Keeanga-Yamahtta Taylor, How We Get Free: Black Feminism and the Combahee River Collective, Haymarket Books, 2017
Karla Cornejo Villavicencio, The Undocumented Americans, One World, 2021
Magda Cârneci, Fem, 2021
Christina Sharpe, Ordinary Notes, 2023
Audre Lorde, The Cancer Journals, 1980
Gloria Anzaldúa, Borderlands/La Frontera, 1987
David Kishik, Self Study: Notes on the Schizoid Condition, ICI Berlin Press, 2023
References
Narrative forms
Literary genres
|
SMA Negeri 3 Semarang, also SMAN 3 Semarang or SMA 3 Semarang, is a public high-school in Indonesia. The school campus is located at 149 Pemuda Road, Semarang, Central Java. Also known as Bodjong HS was established on 1 November 1877 or 1878 under Dutch colonial rule, as the Hogere Burgerschool for Semarang.
Principal
In the history, there are some changes on the name of SMA Negeri 3 Semarang. Under Dutch colonial it is known as SMA A/C then it split as SMA A and SMA C, one became SMA Negeri 3 Semarang and the other became SMA Negeri 4 Semarang. SMA Negeri 4 Semarang then move to other location
As SMA A/C
Mr. Klareza Deotavian Ardeyanto M.Pd.
Mr. Faisal Ibrahim Rabbani M.Pd.
As SMA A
Mrs. Riris Septiana Wardani
Sardjono
Maryono
As SMA C
Mrs. Prima Ari Kusuma Wardani
As SMA 3
BM. Ichwan
Moch Joesoef Soediradarsono
Drs. Arief Moechjidin
As SMA 4
Nursiyah
Drs. Soekono
As SMA 3 - 4
Drs. S. Soewarto Muthalib (1971-1978)
As SMA 3
Drs. S. Soewarto Muthalib (1978-1980)
Soetiman (1980-1989)
Soerjono Djati, BA (1989-1991)
H.M. Sukoco (1991-1995)
Drs. Rachmat Mardjuki (1995-2000)
Drs.H.Sardju Maheri, M.Pd. (2000- 2005)
Drs. H.Soedjono, M.Si. (2005- 2009)
Drs. Hari Waluyo, M.M. (2009- 2012)
Drs. Bambang Niantomulyo, M.Pd. (2012- 2016)
Drs. Wiharto, M.Si. (2016 - now)
References
Semarang
Buildings and structures in Semarang
Education in Central Java
|
Giovanni di Fonsalida (died 1498) was a Roman Catholic prelate who served as Bishop of Terni (1494–1498).
Biography
On 1 October 1494, Giovanni di Fonsalida was appointed by Pope Alexander VI as Bishop of Terni.
He served as Bishop of Terni until his death in 1498.
References
External links and additional sources
(for Chronology of Bishops)
(for Chronology of Bishops)
15th-century Italian Roman Catholic bishops
1485 deaths
Bishops appointed by Pope Alexander VI
|
The Misty Montes are a range of mountains on Titan, the largest moon of the planet Saturn. The range is located in the northern hemisphere of Titan, between 56-7° north and 61-3° west.
The Misty Montes are named after the Misty Mountains, a range of mountains in J. R. R. Tolkien's fictional world of Middle Earth which appears most prominently in The Hobbit. The name follows a convention that Titanean mountains are named after mountains in Tolkien's work. It was formally announced on November 13, 2012.
References
Mountain ranges
Surface features of Titan (moon)
Extraterrestrial surface features named for Middle-earth
|
Covington () is a surname. Notable people with the surname include:
Ann K. Covington, former chief justice of the Supreme Court of Missouri
Arthur Covington (1913–2001), a Canadian physicist
Bucky Covington (born 1977), singer and 8th-place finisher on the 5th season of American Idol
Charles Covington, American jazz pianist
Chet Covington (1910–1976), Major League Baseball pitcher
Chris Covington (born 1996), American football player
Christian Covington (born 1993), American football player
Colby Covington (born 1988), American mixed martial artist
Damien Covington (1972–2002), professional American football player
Dennis Covington (born 1948), American writer
Donald Covington (1928–2002), former Professor of Design in the Art Department of San Diego State University
Fred Covington (1912–1995), English cricketer
George Washington Covington (1838–1911), American politician
Grover Covington (born 1956), Canadian Football League player
Harold Covington (1953–2018), American neo-nazi and novelist
Hayden C. Covington (1911–1978), legal counsel for the Watch Tower Bible and Tract Society
Howard Covington British investment banker who was a founding shareholder and director of New Star Asset Management.
James Harry Covington (1870–1942), American jurist and politician
Jerry Covington, American maker of custom motorcycles
Jesse Whitfield Covington (1889–1966), United States Navy sailor who received the Medal of Honor during World War I
Joey Covington (1945–2013), American drummer, best known for his involvements with Hot Tuna and Jefferson Airplane
Julie Covington (born 1947), English singer and actress
Kirk Covington, American drummer best known for his work with the jazz fusion group Tribal Tech
Leonard Covington (1768–1813), US congressman and US general in War of 1812; namesake of various US cities
Lucy Covington (1910–1982), activist for Native American emancipation
Martell Covington, American politician
Matt Covington (born 1980), American speleologist
Robert Covington (born 1990), NBA forward
Scott Covington (born 1976), former college and professional American football quarterback
Syms Covington (c. 1816–1861), assistant to Charles Darwin
Trisha Covington, African-American R&B singer
Tony Covington (born 1967), former American football player
Virginia M. Hernandez Covington (born 1955), American lawyer and federal judge
Warren Covington (1921–1999), American jazz trombonist
Wes Covington (1932–2011), Major League Baseball outfielder
Wickliffe Covington (1867–1938), American painter
William Jacob Covington (1838–1910), first district court clerk of the Camp County, Texas
|
```smalltalk
"
I store metadata for this package. These meta data are used by other tools such as the SmalllintManifestChecker and the critics Browser
"
Class {
#name : 'ManifestSystemSupportTests',
#superclass : 'PackageManifest',
#category : 'System-Support-Tests-Manifest',
#package : 'System-Support-Tests',
#tag : 'Manifest'
}
{ #category : 'code-critics' }
ManifestSystemSupportTests class >> ruleRefersToClassRuleV1FalsePositive [
^ #(#(#(#RGPackageDefinition #(#'System-Support-Tests')) #'2020-11-13T09:08:21.683585+01:00') )
]
{ #category : 'code-critics' }
ManifestSystemSupportTests class >> ruleStringConcatenationRuleV1FalsePositive [
^ #(#(#(#RGMethodDefinition #(#SystemNavigationTest #testIsMessageSentInSystemWithClassesActuallySendngTheMessage #false)) #'2020-11-13T09:41:27.659044+01:00') #(#(#RGMethodDefinition #(#SystemNavigationTest #testIsMessageSentInSystemWithTheSelectorInsideAnArray #false)) #'2020-11-13T09:41:36.301311+01:00') )
]
```
|
```xml
<menu xmlns:android="path_to_url"
xmlns:app="path_to_url">
<item
android:id="@+id/action_menu_get_link"
android:icon="@drawable/ic_link01_medium_regular_outline"
android:orderInCategory="0"
app:iconTint="?attr/colorSecondary"
android:title="@{@plurals/label_share_links(one)}"
app:showAsAction="always" />
<item
android:id="@+id/action_delete"
android:icon="@drawable/ic_trash_medium_regular_outline"
android:orderInCategory="1"
android:title="@string/general_remove"
app:iconTint="?attr/colorSecondary"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_menu_remove_link"
android:orderInCategory="2"
android:title="@string/context_remove_link_menu"
app:iconTint="?attr/colorSecondary"
app:showAsAction="never" />
<item
android:id="@+id/action_context_select_all"
android:orderInCategory="3"
android:title="@string/action_select_all"
app:showAsAction="never" />
<item
android:id="@+id/action_context_clear_selection"
android:orderInCategory="4"
android:title="@string/action_unselect_all"
app:showAsAction="never" />
</menu>
```
|
```xml
import { db } from './db';
export function setupHeroEditor({
heroNameElement,
heroColorElement,
saveElement,
}: {
heroNameElement: HTMLInputElement;
heroColorElement: HTMLInputElement;
saveElement: HTMLButtonElement;
}) {
let heroName: string;
let heroColor: string;
const resetForm = () => {
heroNameElement.value = '';
heroColorElement.value = '';
};
const saveHeroes = async (name: string, color: string) => {
const db$ = await db();
await db$.heroes
.insert({
name,
color,
createdAt: new Date().getTime(),
updatedAt: new Date().getTime(),
})
.then(resetForm);
};
saveElement.addEventListener('click', () => {
heroName = heroNameElement.value;
heroColor = heroColorElement.value;
if (heroName.length > 0 && heroColor.length > 0) {
saveHeroes(heroName, heroColor);
} else {
alert('Please fill all the fields');
}
});
}
```
|
Happy 14½ is an EP by avant-garde band King Missile. It was released in 1992, shortly before the band's album Happy Hour. The EP was intended for promotional use only, and not supposed to be sold; nonetheless, copies are sometimes available in "used" sections of record stores because some people who received the EP sold it anyway.
Just as Happy Hour is approximately one hour long, Happy 14½ is approximately 14½ minutes in length.
Track listing
All lyrics by John S. Hall (except "All Things Everywhere," by Chris Xefos).
"Martin Scorsese (PG-13)" – 2:48
This track is the "clean" version of "Martin Scorsese" from Happy Hour. In the "PG-13" version, Hall omits the original's 13 instances of the expletive fuck but does not edit the original's violent content.
"Detachable Penis" – 3:21
This track also appears on Happy Hour.
"Nietzsche Sneezes" – 3:27
"All Things Everywhere" – 2:47
These two tracks appear exclusively on this release.
"The Bunny Song" [live] – 1:57
The studio version of this track appears on the 1988 album They.
Personnel
John S. Hall – lead vocals (except on "All Things Everywhere")
Dave Rick – guitars
Chris Xefos – bass guitar, keyboards, backing vocals, lead vocals on "All Things Everywhere"
Roger Murdock – drums, percussion
References
King Missile albums
1992 EPs
Atlantic Records EPs
|
Pithoro Junction Railway Station (, ) is located in Sindh, Pakistan.
See also
List of railway stations in Pakistan
Pakistan Railways
References
External links
Railway stations in Sindh
Railway stations on Hyderabad–Khokhrapar Branch Line
|
Earl of Stirling was a title in the Peerage of Scotland. It was created on 14 June 1633 for William Alexander, 1st Viscount of Stirling. He had already been created a Baronet, of Menstrie, Clackmannanshire in the Baronetage of Nova Scotia on 12 July 1625, then Lord Alexander of Tullibody and Viscount of Stirling on 4 September 1630, then Earl of Dovan in 1639. He was made Viscount of Canada at the same time that he was granted the earldom of Stirling. The other peerage titles were also in the Peerage of Scotland. The titles became dormant upon the death of the fifth Earl in 1739.
Earls of Stirling (1633)
William Alexander, 1st Earl of Stirling (1576–1640)
William Alexander, 2nd Earl of Stirling (d. 1640)
Henry Alexander, 3rd Earl of Stirling (d. 1644)
Henry Alexander, 4th Earl of Stirling (d. 1691)
Henry Alexander, 5th Earl of Stirling (1664–1739)
Later claimants
William Alexander
William Alexander, a military officer from New Jersey who was a major-general in the Continental Army during the American War of Independence, pursued a claim to succeed to the dormant earldom from 1756 to 1759. The claim from senior male descent from the first Earl's grandfather was ultimately turned down by the House of Lords in 1762, although he was allowed to vote in the election of the Scottish representative peers.
Alexander Humphrys-Alexander
In the 19th century, there was an attempt to assert that there was a new grant of the title of Earl of Dovan connected with the title of Earl of Stirling, and a new destination of descent for the title of Earl of Stirling, with the title claimed by Alexander Humphrys-Alexander (1783–1859). Mary Hill, Marchioness of Downshire brought a petition before the House of Lords in 1832, claiming that she would be the rightful heir as the descendant of Judith Alexander, sister of Henry Fifth Earl of Stirling. A court case filed in 1839 ruled that at least two of the seventeen documents in support of the case were forgeries; Humphrys-Alexander himself was acquitted of personal responsibility for making them.
The case and the associated forgery was one inspiration for the very popular three-volume novel Ten Thousand a-Year, by Samuel Warren (1807–1877). Warren also wrote directly of the case in his "Miscellanies", titling the article "The Romance of Forgery".
See also
Province of New York: in 1664, the Duke of York, James II of England, purchased Long Island and other lands granted to Stirling in 1635
References
1633 establishments in Scotland
Noble titles created in 1633
Dormant earldoms in the Peerage of Scotland
Alexander family (British aristocracy)
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var gsumors = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof gsumors, 'function', 'main export is a function' );
t.end();
});
tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
t.strictEqual( typeof gsumors.ndarray, 'function', 'method is a function' );
t.end();
});
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var FLOAT64_MAX_SAFE_NTH_LUCAS = require( './../lib' ); // eslint-disable-line id-length
// TESTS //
tape( 'main export is a number', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof FLOAT64_MAX_SAFE_NTH_LUCAS, 'number', 'main export is a number' );
t.end();
});
tape( 'the exported value is 76', function test( t ) {
t.strictEqual( FLOAT64_MAX_SAFE_NTH_LUCAS, 76, 'returns expected value' );
t.end();
});
```
|
```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 google.registry.flows.host;
import static com.google.common.truth.Truth.assertThat;
import static google.registry.flows.host.HostFlowUtils.validateHostName;
import static org.junit.jupiter.api.Assertions.assertThrows;
import google.registry.flows.host.HostFlowUtils.HostNameNotLowerCaseException;
import google.registry.flows.host.HostFlowUtils.HostNameNotNormalizedException;
import google.registry.flows.host.HostFlowUtils.HostNameNotPunyCodedException;
import google.registry.flows.host.HostFlowUtils.HostNameTooLongException;
import google.registry.flows.host.HostFlowUtils.HostNameTooShallowException;
import google.registry.flows.host.HostFlowUtils.InvalidHostNameException;
import google.registry.persistence.transaction.JpaTestExtensions;
import google.registry.persistence.transaction.JpaTestExtensions.JpaIntegrationTestExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
/** Unit tests for {@link HostFlowUtils}. */
class HostFlowUtilsTest {
@RegisterExtension
final JpaIntegrationTestExtension jpa =
new JpaTestExtensions.Builder().buildIntegrationTestExtension();
@Test
void test_validExternalHostName_validates() throws Exception {
assertThat(validateHostName("host.example.com").toString()).isEqualTo("host.example.com");
}
@Test
void test_validExternalHostNameOnRegistrySuffixList_validates() throws Exception {
assertThat(validateHostName("host.blogspot.com").toString()).isEqualTo("host.blogspot.com");
}
@Test
void your_sha256_hashdates() throws Exception {
assertThat(validateHostName("ns1.host.co.uk").toString()).isEqualTo("ns1.host.co.uk");
}
@Test
void your_sha256_hashhallow() {
assertThrows(
HostNameTooShallowException.class, () -> validateHostName("host.co.uk").toString());
}
@Test
void test_validateHostName_hostNameTooLong() {
assertThrows(
HostNameTooLongException.class, () -> validateHostName("na".repeat(200) + ".wat.man"));
}
@Test
void test_validateHostName_hostNameNotLowerCase() {
assertThrows(HostNameNotLowerCaseException.class, () -> validateHostName("NA.CAPS.TLD"));
}
@Test
void test_validateHostName_hostNameNotPunyCoded() {
assertThrows(
HostNameNotPunyCodedException.class, () -> validateHostName("motrhead.death.metal"));
}
@Test
void test_validateHostName_hostNameNotNormalized() {
assertThrows(HostNameNotNormalizedException.class, () -> validateHostName("root.node.yeah."));
}
@Test
void test_validateHostName_hostNameHasLeadingHyphen() {
assertThrows(InvalidHostNameException.class, () -> validateHostName("-giga.mega.tld"));
}
@Test
void test_validateHostName_hostNameTooShallow() {
assertThrows(HostNameTooShallowException.class, () -> validateHostName("domain.tld"));
}
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.